gitoria

kunibert

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmainbd3591c7conductor: gates run on the live day44 binarymremain/reports/K13-vendored-paths.md

8.4 KB

  1. # K13: vendored paths do not block app verdicts
  2. 2026-11-04, loreana, local main. Implemented and proved with fake Gitoria/fake Codex only. No real model run, deployment, push, byrodin access, tickets, or messages to others.
  3. ## Diff summary
  4. - `lib/run-job.hl`: optional repo config becomes child argv; prefix list is one argument.
  5. - `tools/runner.hl`: consumes `--vendored` and `--vendored-link` into runner settings, available to all review modes.
  6. - `lib/review-vendored.hl`: combines configured prefixes with `.kunibertignore` read through git from the exact PR HEAD, before the worktree exists. Ignores blank/comment lines, trims file entries, removes duplicates, and matches plain path prefixes without globs. Splits parsed findings into app/framework lists before memory allocation, removes replies to legacy vendored threads, and recomputes the app verdict when vendor prefixes exist. No prefix configured or found retains the old review behavior, including existing unresolved-thread wake verdicts (K7/K11).
  7. - `lib/runner.hl`: settles legacy vendored thread keys before thread updates/wake prompts, then filters the validated model result before `applyResult`, posting, and state persistence. Framework findings never allocate T<n> keys or inline comments. Existing legacy keys remain stable and settled.
  8. - `lib/review-memory.hl`: ignores updates to legacy vendored threads; they cannot reopen or cause reply updates in the wake prompt.
  9. - `lib/review-post.hl`: adds one Framework section after the axes and before Gates, with the required sentence, optional URL, and severity/title/path/body bullets matching the off-diff format. Status counts app findings/replies and appends framework-note count. Existing quiet rule operates on app findings and the recomputed verdict.
  10. - `lib/review-prompt.hl` and `lib/review-wake.hl` are unchanged; the model still reviews everything. Existing settled-thread handling excludes legacy vendor threads from open keys and still-open counts.
  11. ## Configuration and argv
  12. Example optional fields in an existing repo entry (documentation only; no operator repos.json edited):
  13. ```json
  14. {"vendored": ["plugins/", "bin/"], "vendoredLink": "https://framework.example/issues"}
  15. ```
  16. The review child receives `--vendored plugins/,bin/ --vendored-link https://framework.example/issues`. `argvFor` and CLI parsing are both exercised by K13. The link is displayed only when framework findings exist. No external report or message is sent.
  17. The PR HEAD may additionally contain `.kunibertignore`, one literal prefix per line, e.g.:
  18. ```text
  19. # vendored framework
  20. plugins/
  21. bin/
  22. ```
  23. Its prefixes are unioned with config; no implicit defaults, README inference, or globs. A directory prefix ends with `/`: `plugins/` matches `plugins/x.js` but not `plugins-other/app.js`. `lib/` remains app code unless explicitly configured. With prefixes present: any app blocker/major means request_changes; no app findings means approve; other app findings mean comment. Vendor majors cannot cause failure.
  24. ## Proof commands and exact results
  25. Runtime: `/media/STORAGE/projects/hybriel/native/zig-out/bin/hybriel`. Commands ran from `/media/STORAGE/projects/kunibert`, one at a time. The driver is `/media/STORAGE/claude-scratch/kunibert/K13/run-gates.py`; it verifies ports 8840–8859 are free before each gate. Full exact stdout/stderr is retained in the linked artifacts; `gate-results.json` records exit codes and final lines. Required older gates were run as provided and regenerated their existing scratch fixtures; new proof files are confined to K13. The conductor's `jb.sh`, `pr2.txt`, and `t.json` were left untouched.
  26. | Exact command | Exit | Output marker | PASS lines | Complete stdout/stderr |
  27. | --- | ---: | --- | ---: | --- |
  28. | `python3 -I /media/STORAGE/claude-scratch/kunibert/K4/proof.py` | 0 | `ALL OK` | 0 | [K4-output.txt](/media/STORAGE/claude-scratch/kunibert/K13/K4-output.txt) |
  29. | `python3 -I /media/STORAGE/claude-scratch/kunibert/K6/scripts/proof.py` | 0 | `ALL OK` | 36 | [K6-output.txt](/media/STORAGE/claude-scratch/kunibert/K13/K6-output.txt) |
  30. | `python3 -I /media/STORAGE/claude-scratch/kunibert/K7/scripts/proof.py` | 0 | `ALL OK` | 36 | [K7-output.txt](/media/STORAGE/claude-scratch/kunibert/K13/K7-output.txt) |
  31. | `python3 -I /media/STORAGE/claude-scratch/kunibert/K8/scripts/proof.py` | 0 | `ALL OK` | 25 | [K8-output.txt](/media/STORAGE/claude-scratch/kunibert/K13/K8-output.txt) |
  32. | `python3 -I /media/STORAGE/claude-scratch/kunibert/K9/scripts/proof.py` | 0 | `ALL OK` | 15 | [K9-output.txt](/media/STORAGE/claude-scratch/kunibert/K13/K9-output.txt) |
  33. | `python3 -I /media/STORAGE/claude-scratch/kunibert/K11/scripts/proof.py` | 0 | `ALL OK` | 17 | [K11-output.txt](/media/STORAGE/claude-scratch/kunibert/K13/K11-output.txt) |
  34. | `python3 -I /media/STORAGE/claude-scratch/kunibert/K12/proof.py` | 0 | `ALL OK` | 19 | [K12-output.txt](/media/STORAGE/claude-scratch/kunibert/K13/K12-output.txt) |
  35. | `python3 -I /media/STORAGE/claude-scratch/kunibert/K13/proof.py` | 0 | `ALL OK` | 20 | [K13-output.txt](/media/STORAGE/claude-scratch/kunibert/K13/K13-output.txt) |
  36. K9's `ALL OK` is followed by its cleanup line; the marker was checked anywhere in the full output. K12 includes its map proof as well as intake/network proofs. `git diff --check` passed with no output.
  37. The first K7 attempt exceeded its 15-second service readiness window during cold compilation: exit 1, connection refused, zero PASS lines. The attempt is preserved in `K13/K7-cold-start-output.txt`. Its recorded PIDs 1356687 and 1356796 were confirmed absent and the port range free. Service compilation was warmed with `/media/STORAGE/projects/hybriel/native/zig-out/bin/hybriel service /media/STORAGE/claude-scratch/kunibert/K13/nonexistent-config.json` (expected exit 1 for the nonexistent config, before any listener/model); then the whole required gate sequence passed unchanged. No assertion changes or runtime workarounds were needed.
  38. Exact final K13 output:
  39. ```text
  40. PASS argvFor: config vendored [plugins/, bin/] -> one --vendored plugins/,bin/; vendoredLink -> --vendored-link
  41. PASS a: major framework + minor app -> comment, exactly 1 inline app.js
  42. PASS a: Framework section has title, path:line and indented body
  43. PASS Framework section follows axes
  44. PASS a: status success: 1 new finding(s), 0 thread replies, 1 framework note(s)
  45. PASS f: vendoredLink appears in review body
  46. PASS a: only app finding enters memory
  47. PASS b: framework-only major -> approve, success, 0 inline
  48. PASS b: framework-only findings create no memory threads
  49. PASS e: second same-head framework-only run quiet (early skip)
  50. PASS e: model runs again on unchanged head with same framework-only result: quiet, no second review
  51. PASS c: no config; HEAD .kunibertignore comments/blanks/trim/dedup -> approve, success, 0 inline
  52. PASS union: config bin/ + HEAD plugins/; lib/ stays app code
  53. PASS d: no config/file -> plugins major request_changes, failure, 1 inline
  54. PASS d: no framework section when none exists
  55. PASS legacy: settled key, excluded from wake open keys and thread updates
  56. PASS legacy: excluded from still-open review lists
  57. PASS legacy: model reply/resolve for vendored thread discarded; no reply POST
  58. PASS legacy: no additional framework memory threads
  59. PASS plain prefix: plugins/ does not match plugins-other/
  60. ALL OK
  61. -- stopped exact fake gitoria PID 1382552
  62. ```
  63. K13 additionally proves the actual `argvFor` list/link encoding, config/file union, no automatic `lib/` exclusion, memory containing only app threads, directory-prefix boundaries, old threads excluded from wake open keys/updates/still-open body lists, and no reply or resolve POST for a model reply to a vendored thread. Quiet behavior is tested both by the early same-head skip and by actually running the fake model again on the same head through a pending note, returning the same framework-only result.
  64. All gate processes cleaned up their own exact PIDs. K13 used only port 8853 and terminated fake Gitoria PID 1382552. Final command `ss -ltnp '( sport >= :8840 and sport <= :8859 )'` returned only:
  65. ```text
  66. State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
  67. ```
  68. ## Open points / DOCS
  69. - No open implementation or proof failures. All eight required gates are ALL OK.
  70. - DOCS: no missing language feature or documentation gap blocked this implementation; no handwritten JavaScript was introduced.
  71. - Validation is local with fakes as required; no production review or deployment was performed. Operator repo configuration remains to be supplied separately when desired.
  72. - Existing unrelated `LOG.md`, `STATUS.md`, and untracked mission changes are excluded from the implementation commit.

Branches

Latest commits

  • bd3591c7conductor: gates run on the live day44 binarymre
  • 47f747a7records: jukebox #9 fix livemre
  • 0a3169fdMerge branch 'vendored-size' into mainKunibert
  • e447bb09Vendored size fix: keep renames with an app side whole; type the filter parameter (L10)mre
  • 99ccc742Vendored size fix: no renames in the app diff, filter the resumed delta toomre
  • 1a52e100|||PR Diff size limit counts only app files when vendored paths are setmre
  • 50a1867estatus: jukebox #9mre
  • c57484e6log: jukebox #9 diff sizemre
  • 795a20carecords: guard fix live (PR 8)mre
  • 6981d96fMerge branch 'fresh-on-nocmd' into mainKunibert
  • 37c47840runner: one shared prompt for both fresh-session fallbacks (L16)mre
  • f945d2e1|||PR runner: a resumed run with no command on a new head gets one fresh session instead of a tool errormre
  • 10b2a49estatus: PR 314, guard fix proposedmre
  • e73995a3log: hycon PR 314 approved after fresh reviewmre
  • f60427falog: hycon PR 314 false tool errormre
  • 481974f7log: Hermes accepts PR 259 findingmre
  • bb0976acrecords: hycon PR 259 design findingmre
  • 5c637c24records: hycon PR 259 false tool errormre
  • a344c406log: routger 132 reviewedmre
  • 56e70dcbrecords: review time limit 1800 s (routger 132)mre