Reconcile docs with reality; fix module graph, token compare, health #1

Open
kami wants to merge 216 commits from webui-and-audit-reconciliation into master
Showing only changes of commit 6eef1096bf - Show all commits
+59
View File
@@ -1636,3 +1636,62 @@ Fixed in `0bd86e2`. The brief carries the shape, and every local refusal now
reaches the agent. `TestPhaseSealSchemasDecode` decodes each documented shape
with the function the worker uses: flipping `dead_ends` back to strings
reproduces run 5's exact error at build time.
## Run 5: the whole chain, live, 2026-08-28 02:05
Filed as `kami/test-e2e#5`, task `06G4A4F0TFXKZHJE48N05XN1HG`, harness
`workpc-claude`, both halves on `cd1675a`.
```text
01:13:19 launched, then stalled: F33 confirmed an editor that had not rendered
02:00:05 worker restarted on cd1675a
02:00:06 phase request refused, delivered into the pane (F39)
02:02 agent rewrote research.json, unprompted by any human
02:03:00 research to plan accepted
02:03:31 plan session launched carrying accepted research
02:04:05 plan.json refused: changes[0].intent 840 characters exceeds the 500 bound
02:04:07 operator correction posted to the issue
02:04:10 delivered to the live plan session, decision 06G4AG40NR866DVD875ERFZT70
02:04:30 plan to implement accepted
02:04:37 plan.json names it: "Human decision: JSON keys must be snake_case..."
02:05:06 implement session launched
```
Three seconds from comment to delivery. `delivered_decisions` holds exactly one
id, so the notice did not repeat.
### The authority order, as rendered
```text
## Goal
## Acceptance
## Current human decisions
- correction (operator_instruction): for --json, use snake_case keys.
keep the default text output byte-for-byte unchanged.
## Current phase implement
## Repository rules
## Verified git state
## Accepted research
## Accepted plan
## Continuity from the previous session
### Dead ends already tried
```
Human correction above accepted plan, above accepted research, stale continuity
below all of them. That is the target chain, live.
### What each fix bought, observed rather than argued
- F33: the 02:03:31 and 02:05:06 launches both logged `submit_attempts=2`. The
resend path is doing real recovery on every rotation.
- F39: two refusals delivered, one for `research.json` and one for `plan.json`.
The agent corrected both without a human touching anything. Before tonight
each would have been a silent stall until lease expiry.
- F38: the plan brief carried the plan schema, so the plan artifact failed on a
length bound rather than on a guessed shape.
- F20 and F23: one comment, one decision, one delivery, one receipt.
### Standing caveat
Run 5 is implementing, not finished. The chain this run set out to prove is
proven. Completion, the review phase, and the final report are still ahead.