kunibert
All repositories: gitoria
5.1 KB
# Mission K13: vendored framework code must not block an app PR (kunibert#13)Task (ticket title): "Vendored framework code must not block an app PR's verdict."Apollo's request (2026-11-04, verbatim): "skip vendored paths (bin/, plugins/, lib/ vendored from the set — read the repo's vendoring marker/README line; else a .kunibert ignore file in the repo) for the verdict; report framework findings as one non-blocking note with a link instead."Trigger: https://jukebox.gitoria.worldapi.org/pulls/2 got request_changes only for 4 findings in plugins/fetch and plugins/web (vendored Hybriel). jukebox has no machine-readable vendor marker (README prose only; its lib/ is app code), so the conductor decided the design below.## Read first- /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md and /media/STORAGE/projects/hybriel/docs/CODE-ORDER.md. Copy working shapes; a gap → DOCS line in the report, no workaround, no hand-written JavaScript.- lib/run-job.hl (argvFor: how a repos.json entry becomes the review child's argv), tools/runner.hl (argv parsing of review-pr), lib/runner.hl (~line 180–245: review flow, firstNew, hooks.post/finish), lib/review-memory.hl (applyResult: findings become threads T<n>), lib/review-post.hl (postReview, reviewBody, statusFor), lib/review-output.hl, lib/review-prompt.hl.- reports/K11-no-tools-no-review.md and reports/K12-day39-cleanup.md for how earlier proofs were built.## Design (decided; build exactly this)1. Vendored paths per repo = union of (a) optional `vendored` list in the repos.json entry (e.g. ["plugins/", "bin/"]), passed to the review child as one argv option (e.g. `--vendored plugins/,bin/`); (b) optional file `.kunibertignore` at the repo root of the PR HEAD (one path prefix per line, `#` comments and blank lines skipped). Matching: plain path prefix (a dir entry ends with /). No globs.2. The model still reviews everything (no prompt change needed beyond optionally one line telling it vendored dirs exist is NOT required; keep the prompt unchanged).3. After the model result is parsed: findings whose path is under a vendored prefix are split off as "framework findings". They get NO inline comment, NO thread, are NOT stored in review memory as threads (so they never show as "still open" and are never re-raised as open), and do NOT count in the verdict or status.4. Verdict is recomputed from the remaining (app) findings with the prompt's rule: any blocker/major → request_changes; none → approve; otherwise comment. Status summary counts app findings only and adds ", N framework note(s)" when N>0.5. Review body: one extra section after the axes, only when framework findings exist: `### Framework (vendored, not blocking)` + one line `These paths are vendored framework code; the findings go to the framework's maintainers and do not affect this verdict.` + optional link line when the repos.json entry has `vendoredLink` (a URL string) + one bullet per finding: badge/severity title (`path:line`) and its body (same format as the existing "Not on changed lines" bullets).6. Earlier threads (from runs before this change) whose path is vendored: excluded from the "still open" lists and from the wake prompt's open keys (treat as settled for counting). Do not post replies to them.7. The quiet rule (no new post when nothing changed) must still work; a run whose only findings are framework ones on an unchanged head and verdict counts as "nothing new".## Proof (local, loreana, fake gitoria/fake codex only, NO real model run)In /media/STORAGE/claude-scratch/kunibert/K13/ (copy the K11/K12 fake setup): (a) fake model returns 1 major in plugins/x.js + 1 minor in app.js, repos.json vendored ["plugins/"] → posted review verdict comment, exactly 1 inline comment (app.js), body has the Framework section with the plugins finding, status success with "1 new finding(s)… 1 framework note(s)"; (b) only framework findings (major) → approve, status success, 0 inline; (c) no vendored config but `.kunibertignore` containing `plugins/` at head → same as (b); (d) no config, no file → old behaviour (major in plugins → request_changes, failure); (e) a second run on the same head with the same framework-only result → quiet (no second review); (f) vendoredLink appears when set.All local gates: `python3 -I /media/STORAGE/claude-scratch/kunibert/{K4/proof.py,K6/scripts/proof.py,K7/scripts/proof.py,K8/scripts/proof.py,K9/scripts/proof.py,K11/scripts/proof.py,K12/proof.py}` plus the K13 proof → each ALL OK (K9's last line is cleanup; grep ALL OK). Ports 8840–8859 only: check `ss -ltnp` first; kill only exact PIDs your own runs left; all free after. Run gates one at a time (an earlier `| grep -c` loop left processes on 8841/8842).## LimitsAbout 60 tool calls. Do NOT deploy, push, touch byrodin, or edit repos.json anywhere. Commit locally on main (`-c user.name=Kunibert -c [email protected]`, short message, no self-attribution). No tickets, no messages to others. Scratch only under /media/STORAGE/claude-scratch/kunibert/K13/ (jb.sh and pr2.txt there are the conductor's; leave them).Report: /media/STORAGE/projects/kunibert/reports/K13-vendored-paths.md: diff summary, the argv/config shape, exact proof commands and outputs, open points. Stop when done or blocked.
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