kunibert
All repositories: gitoria
5.6 KB
# K14: fresh Review again and vendored prompt context2026-11-04, loreana, local main. Implements kunibert#14 and kunibert#15 using fake Gitoria and fake Codex only.## Diff summary- `lib/gitoria-events.hl`: `review_requested` sets reset=true and force=true, using the same queue/runner reset path as `@kunibert reset`. Reset clears the session and pending notes, increments generation, and retains threads and settled keys.- `lib/review-prompt.hl`: one `withVendored` helper appends the required single line with the combined configured/HEAD ignore prefixes, and returns the original prompt when prefixes are empty.- `lib/runner.hl`: `codexTurn` applies that helper before saving instructions or using the long-prompt file indirection. Both normal and missing-session fallback calls pass the prefixes; first review, wake, and fresh-after-reset therefore use the same helper.- `lib/review-wake.hl`: forced wakes describe author notes/forced wakes accurately and name Review again and @kunibert reset as fresh-session actions. Author-note and CLI --force wakes still resume.## Local proofRuntime: `/media/STORAGE/projects/hybriel/native/zig-out/bin/hybriel`. Working directory: `/media/STORAGE/projects/kunibert`. New fixtures and artifacts are confined to `/media/STORAGE/claude-scratch/kunibert/K14/`; K14 copies the K13 fake API/Codex setup and adds a signed-hook service on 8854 (fake API on 8853). No real model run, deployment, push, byrodin access, ticket update, or message was performed. No operator repos.json was edited.K14 checks an existing settled T1 thread through a signed review_requested hook, generation increment, reset=true child log, no Codex resume, and exact preservation of threads/settled. It checks unchanged @kunibert reset behavior, actual new-head synchronize resume, author-note forced resume, and exactly one required vendored line in first/wake/reset/missing-session fallback prompts. No-prefix first and wake prompts omit the line. Prompt/argv snapshots and service logs are retained in K14/calls and K14/svc.log.Commands were run sequentially; the driver `/media/STORAGE/claude-scratch/kunibert/K14/run-gates.py` runs the eight older gates one at a time and saves full stdout/stderr plus gate-results.json. Each gate's ALL OK marker is checked in its complete output. No older assertion was edited. Existing proof scripts regenerate their own scratch fixtures as part of their required execution.| Exact command | Exit | Output marker | PASS lines | Full stdout/stderr || --- | ---: | --- | ---: | --- || `python3 -I /media/STORAGE/claude-scratch/kunibert/K4/proof.py` | 0 | `ALL OK` | 0 | [K4-output.txt](/media/STORAGE/claude-scratch/kunibert/K14/K4-output.txt) || `python3 -I /media/STORAGE/claude-scratch/kunibert/K6/scripts/proof.py` | 0 | `ALL OK` | 36 | [K6-output.txt](/media/STORAGE/claude-scratch/kunibert/K14/K6-output.txt) || `python3 -I /media/STORAGE/claude-scratch/kunibert/K7/scripts/proof.py` | 0 | `ALL OK` | 36 | [K7-output.txt](/media/STORAGE/claude-scratch/kunibert/K14/K7-output.txt) || `python3 -I /media/STORAGE/claude-scratch/kunibert/K8/scripts/proof.py` | 0 | `ALL OK` | 25 | [K8-output.txt](/media/STORAGE/claude-scratch/kunibert/K14/K8-output.txt) || `python3 -I /media/STORAGE/claude-scratch/kunibert/K9/scripts/proof.py` | 0 | `ALL OK` | 15 | [K9-output.txt](/media/STORAGE/claude-scratch/kunibert/K14/K9-output.txt) || `python3 -I /media/STORAGE/claude-scratch/kunibert/K11/scripts/proof.py` | 0 | `ALL OK` | 17 | [K11-output.txt](/media/STORAGE/claude-scratch/kunibert/K14/K11-output.txt) || `python3 -I /media/STORAGE/claude-scratch/kunibert/K12/proof.py` | 0 | `ALL OK` | 19 | [K12-output.txt](/media/STORAGE/claude-scratch/kunibert/K14/K12-output.txt) || `python3 -I /media/STORAGE/claude-scratch/kunibert/K13/proof.py` | 0 | `ALL OK` | 20 | [K13-output.txt](/media/STORAGE/claude-scratch/kunibert/K14/K13-output.txt) || `python3 -I /media/STORAGE/claude-scratch/kunibert/K14/proof.py` | 0 | `ALL OK` | 12 | [K14-output.txt](/media/STORAGE/claude-scratch/kunibert/K14/K14-output.txt) |Exact K14 stdout/stderr:```textPASS d: first review includes exactly one vendored line with plugins/PASS a: signed review_requested on existing session starts fresh Codex without resumePASS a: threads and settled keys kept exactlyPASS a: review child receives reset=truePASS d: fresh-after-reset prompt includes vendored line and settled ledgerPASS b: @kunibert reset remains fresh and preserves threads/settledPASS c: synchronize resumes existing sessionPASS d: wake includes exactly one vendored linePASS forced author-note wake still resumes with note and vendored linePASS fallback: missing session gets fresh prompt with exactly one vendored linePASS e: no prefixes leaves first prompt unchangedPASS e: no prefixes leaves wake prompt unchangedALL OK-- stopped exact service PID 1593156-- stopped exact fake gitoria PID 1592791```## Ports and cleanupBefore K14, and before each older gate, `ss -ltnp '( sport >= :8840 and sport <= :8859 )'` was checked. K14 stopped only its exact service PID 1593156 and fake Gitoria PID 1592791. Older gates clean up their own exact processes.Final port check returned only the header (all ports 8840–8859 free):```textState Recv-Q Send-Q Local Address:Port Peer Address:PortProcess````git diff --check` passed without output.## Open points / DOCSNo open implementation or proof failures. K4, K6, K7, K8, K9, K11, K12, K13, and K14 are each ALL OK. Local fake validation only; deployment remains outside this mission.No language documentation gap blocked the work; no handwritten JavaScript was added. Unrelated pre-existing LOG.md, STATUS.md, and the untracked mission file 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