kunibert
All repositories: gitoria
8.5 KB
# K17: fresh sessions answer under open threads2026-11-04, loreana, local main. Implementation complete; required all-green verification is BLOCKED by the unchanged K7 expectation described below.## Diff summary- `lib/review-wake.hl`: shared `freshThreads` prompt section lists earlier OPEN app threads by key, path:line, axis and title, excluding resolved, settled and vendored threads. It requires checking the current head, replying with a short assessment and resolve=false when still valid, or replying with resolve=true when fixed. The existing memory rules and settled ledger/keys retain the never-raise-again rule.- `lib/runner.hl`: both reset/fresh sessions and missing-session fallback use that section. Removed the wording that earlier unresolved judgements are discarded. The synchronize session selection and wake prompt remain unchanged.- `lib/review-memory.hl`: `mergeOpenFindings` runs after `appResult` and before `applyResult`. A finding at the same path AND line as an earlier open app thread becomes a reply with title, blank line, body, resolve=false. An existing model reply to that key wins; duplicate findings are dropped. Matching ignores axis/title, excludes resolved/settled/vendored threads, and chooses the first matching earlier thread. CLI JSON reports `merged`, counting converted or dropped duplicates. Vendored findings/replies are filtered before this backstop.The backstop applies to all model results, including resumes, as required by build step 2. Normal resume argv and prompt construction are unchanged, but a resume result containing a duplicate finding now posts a reply; this is the K7 conflict.## Proof setup and exact commandsRuntime: `/media/STORAGE/projects/hybriel/native/zig-out/bin/hybriel`. Working directory: `/media/STORAGE/projects/kunibert`.New proof and artifacts: `/media/STORAGE/claude-scratch/kunibert/K17/`. Copied K14 fake Codex/API setup; K17 uses fake API port 8853 and signed-hook service port 8854. Existing conductor t*.json, edits.json and scrub.py were left untouched. The requested older gates regenerate their own existing scratch fixtures. No real model, deployment, push, byrodin access, ticket action, or external message was performed.K17 explicitly supplies `/media/STORAGE/claude-scratch/kunibert/K17/bin/codex` using `--codex-bin`; its service config also sets absolute `codexBin`. The older harnesses rely on PATH, so the sequential driver uses a scratch Python launcher to run their original source with a subprocess guard: direct runner invocations receive `--codex-bin <absolute gate fake path>`, and generated service configs receive the same absolute `codexBin`, which service children pass as `--codex-bin`. No older proof source or assertion was edited. This changes harness configuration only, not assertions or fake model results.Driver command: `python3 -I /media/STORAGE/claude-scratch/kunibert/K17/run-gates.py`. For its commands below, PATH is prefixed with `/media/STORAGE/claude-scratch/kunibert/K17/gate-bin`; that Python launcher invokes `/usr/bin/python3 -I /media/STORAGE/claude-scratch/kunibert/K17/safe-gate.py`, which executes each original proof source. Guard and driver source, and `safety-argv.jsonl`, are retained in K17. Initial K17 proof was also run directly using the command listed below and passed; the final sequential rerun covers the committed code.| Exact proof command | Exit | Result | 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/K17/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/K17/K6-output.txt) || `python3 -I /media/STORAGE/claude-scratch/kunibert/K7/scripts/proof.py` | 1 | NOT ALL OK | 10 | [K7-output.txt](/media/STORAGE/claude-scratch/kunibert/K17/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/K17/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/K17/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/K17/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/K17/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/K17/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/K17/K14-output.txt) || `python3 -I /media/STORAGE/claude-scratch/kunibert/K16/proof.py` | 0 | ALL OK | 44 | [K16-output.txt](/media/STORAGE/claude-scratch/kunibert/K17/K16-output.txt) || `python3 -I /media/STORAGE/claude-scratch/kunibert/K17/proof.py` | 0 | ALL OK | 16 | [K17-output.txt](/media/STORAGE/claude-scratch/kunibert/K17/K17-output.txt) |Exact final K17 output:```textPASS d: first review includes exactly one vendored line with plugins/PASS a: review_requested starts a fresh session through resetPASS a: fresh prompt lists only open app T1 with key, path:line, axis, titlePASS a: prompt instructs current-head assessment, reply or resolve, no duplicatesPASS b: model reply posts once to T1 gitoria thread; no new threadPASS e: settled thread remains in settled ledgerPASS vendored legacy thread stays excluded and settledPASS c: duplicate cart.py:3 becomes a reply, no new threadPASS backstop: merged=1, explicit model reply wins, duplicate droppedPASS d: another line creates a new thread; matching line merges with merged=1PASS f: synchronize resumes existing session with unchanged wake promptPASS fallback: missing session includes open T1, reply instructions, settled ledger, vendored linePASS vendored finding and legacy reply remain outside merge and postingPASS fixed open thread reply resolves and settles T1PASS e: no prefixes leaves first prompt unchangedPASS e: no prefixes leaves wake prompt unchangedALL OK-- stopped exact service PID 1856934-- stopped exact fake gitoria PID 1856801```## K7 blocker / changed old assertionsNo old assertion was changed, including no assertion about the old discarded wording. K7's follow-up fixture returns the same two findings on synchronize. The new required backstop converts those duplicates into replies. T1 has gitoria id th1 and therefore receives an additional reply POST. K7 expects only pending/review/final-status writes in both runs and fails before its later checks:```text('PUT', '/statuses/0c9f3d278bcc6ce0532261f1beac5e0985763a04')('POST', '/pulls/1/reviews')('PUT', '/statuses/0c9f3d278bcc6ce0532261f1beac5e0985763a04')('PUT', '/statuses/f78f58781dfc0771a4989229bffcb4e0379b1bfb')('POST', '/pulls/1/reviews')('POST', '/pulls/1/threads/th1/replies')('PUT', '/statuses/f78f58781dfc0771a4989229bffcb4e0379b1bfb')FAIL run 1: pending, review, status; then run 2 (follow-up, head2): pending, review, statusABORT-- stopped by PID: [1840031, 1840144]```The mission permits updating an older assertion only when it asserts the old discarded text. This failure is a different expectation, so it was retained and reported rather than weakened. The all-ALL-OK requirement cannot be claimed. Open decision: authorize updating K7's follow-up expectation for the required duplicate-to-reply behavior, or clarify that the backstop should be limited to fresh/fallback sessions. The current implementation follows the unqualified backstop requirement.## Ports, cleanup and remaining checksBefore each gate the driver ran `ss -ltnp '( sport >= :8840 and sport <= :8859 )'` and required only the header. Per-gate snapshots are `K17/<gate>-ports-before.txt`. Gates stopped only their own exact processes; K17 final fake API PID was 1856801 and service PID was 1856934. Final check:```textState Recv-Q Send-Q Local Address:Port Peer Address:PortProcess````git diff --check` passed without output. No language documentation gap blocked this work; no handwritten JavaScript was added. The implementation and this report alone are included in the local commit; pre-existing STATUS.md edits and the untracked mission file are excluded.Open points: K7 is NOT ALL OK; K4, K6, K8, K9, K11, K12, K13, K14, K16 and K17 are each ALL OK. No deployment was performed.
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