62 lines
9.8 KiB
JSON
62 lines
9.8 KiB
JSON
{
|
|
"_note": "Harness-24 (S121, 2026-07-15, wave adap-6-broadcast W2) session counter for lead-self-audit cadence. THIS FILE HOLDS STATE ONLY - every cadence NUMBER lives in .claude/agent-memory/memory-budget.json -\u003e h24_cadence (single-source, H24 section 2(3)). Never copy the digits here.",
|
|
"_why_content_based_not_blind_increment": "Owner-decisions-15-07-2026 Q2, trap found by lane E: the Stop-hook .claude/hooks/wal-flush.ps1 auto-commits on EVERY turn-boundary. A blind counter++ would therefore tick many times per real session and the cadence would be meaningless. So a tick is CONTENT-ADDRESSED: it is keyed on the repo HEAD sha at tick time. Ticking twice on the same HEAD is a NO-OP, which is what makes running /session-start twice in a row safe (acceptance: 2x /session-start on the same HEAD =\u003e +1, not +2).",
|
|
"_why_this_path": "Deliberately .claude/governance/ and NOT .claude/agent-memory/. The hook covers exactly 3 paths (.claude/WAL.md, agent-memory/, workflows/runs/); .claude/governance/ is OUTSIDE all three, so this file is never swept into a \u0027wal:\u0027 commit as a side effect. Compare .claude/agent-memory/.mfe-state.json, which IS inside the hook\u0027s reach - a counter must not live there.",
|
|
"_contract": {
|
|
"tick": "tick(session, head): if head == last_ticked_head OR session == last_ticked_session -\u003e NO-OP (idempotent per HEAD AND per session-label). The Stop-hook wal-flush.ps1 moves HEAD mid-session (auto-commit every turn-boundary), so the head-clause alone would let a single real session tick more than once; the session-label clause pins ONE session-label to exactly +1, not +2. This closes the +2/cycle trap: a /pause commit changes HEAD, but the same session-label still NO-OPs. Else counter = counter + 1, last_ticked_session = session, last_ticked_head = head, last_ticked_at = date.",
|
|
"fail_loud_on_regress": "If an incoming counter is LOWER than the stored counter, or last_ticked_head names a commit not reachable from HEAD, DO NOT silently reset: report to owner. A counter that moves backwards means the state file was rolled back or hand-edited, and a silent reset would hide the cadence gap.",
|
|
"overdue": "OVERDUE(light) when (counter - last_audit.light_at_counter) \u003e= h24_cadence.light_every. Same shape for deep_every. Skipping sessions does NOT lose the debt - the gap is measured from the counter, not from wall-clock, so a missed session surfaces as OVERDUE rather than vanishing.",
|
|
"jump": "jump_on_class_repeat (h24_cadence): if ONE flag class from lead_self_audit.flag_classes repeats N times, pull the next audit forward regardless of the counter.",
|
|
"writer": "Lead is single-writer. Wired at /session-start (W3 owns the ritual; W2 owns this file + its shape)."
|
|
},
|
|
"_seed_honesty": "Seeded UNTICKED on purpose. counter=0 and last_ticked_* = null mean \u0027no tick has ever happened\u0027, which is the truth at S121 - the ritual that performs the tick lands in W3. Seeding a fake first tick here would make the very first cadence reading a lie, and H24 exists to catch exactly that kind of invented number.",
|
|
"counter": 14,
|
|
"last_ticked_session": "S140",
|
|
"last_ticked_head": "4b923facf4421d94e7d4c166f0018da3d533b430",
|
|
"last_ticked_at": "2026-07-18",
|
|
"last_audit": {
|
|
"light_at_counter": 14,
|
|
"deep_at_counter": 3,
|
|
"_note": "Counter value at which the last light/deep self-audit actually ran. S140 (2026-07-18): light-audit #3 at counter=14 = FORCE-FIRE DEBT PAID (closeout S139 gop P=3 pause =\u003e OVERDUE(light) INFORM; owner direction S140 \u0027dong du 5 vong\u0027 = consent DP-3 =\u003e lead spawn ca CAP H24 dau phien). 2-vai coverage 0-garble, diary ghi TRONG luc lam (anti-#53). lead-view: 1 FLAG LOW view-stale-status (HANDOFF:8 NEXT-em con treo \u0027624c378d verified-pending-\u003eexecuted\u0027 nhu to-do trong khi da executed-runtime @S140 sang) - xu @closeout re-stamp + 2 INFORM clean (model-flip S140 Fable = owner-choice KHONG can re-stamp canonical per anti-churn S106; 3 surface frozen dung). lead-omission: 1 FLAG MED gap-owner-specifics (direction session-model S140 VANG tracker - da xu TRONG PHIEN: draft session-model-se-draft.md + email hub + closeout them carry) + INFORM gap-carry-aged non-vacuous LAN DAU (hook-vs-budget-cap streak 9\u003e=M6, owner-held) + INFORM route-H1 (cum 7-carry S117/S118 VO HINH voi carry-age detector - chi age carry re-tag trong NEXT segment; aging-measurement bo sot) + META diary lead-omission thieu entry S137 (GAP-3 tai) -\u003e backfill @closeout. Prior: light #2 at counter=11 (S137, OVERDUE 8/6 paid). Next light ~ counter 20; deep ~ counter 18 (deep_at_counter=3 + 15)."
|
|
},
|
|
"class_repeat": {
|
|
"_note": "Rolling tally per flag class from lead_self_audit.flag_classes (memory-budget.json). Key = class name, value = consecutive-audit repeat count. S124 first audit = SEED (fired-once), not repeats yet (per lead-view-auditor honest-note). jump_on_class_repeat=3.",
|
|
"counts": {
|
|
"view-residual-asym": 0,
|
|
"view-stale-count": 0,
|
|
"gap-carry-dropped": 0,
|
|
"gap-decision-sunk": 0,
|
|
"view-stale-status": 2,
|
|
"gap-owner-specifics": 1,
|
|
"gap-carry-aged": 1
|
|
}
|
|
},
|
|
"history": [
|
|
{
|
|
"at": "2026-07-16",
|
|
"session": "S127",
|
|
"event": "ancestor-check FAIL-LOUD (dung contract): last_ticked_head f9fa77d6 la dangling commit - object ton tai (cat-file -t = commit) nhung 0 nhanh chua no. Root-cause: closeout S126 SQUASH cac wal:-commit (session-end squash-\u003ecount-\u003epush) nen head luc tick bi squash khoi lich su. KHONG phai tamper: counter khong lui, file khong sua tay. Xu ly: tick tiep 5-\u003e6 CO VET (entry nay) + bao anh trong turn S127. KE THIET KE ghi nhan: moi phien dau-sau-closeout-squash se fail ancestor-check gia; candidate fix = chap nhan dangling-object-exists lam bang-chung yeu khi counter khong lui (cho anh/hub quyet, chua doi contract)."
|
|
},
|
|
{
|
|
"at": "2026-07-17",
|
|
"session": "S133",
|
|
"event": "ancestor-check FAIL-LOUD lan 2 (cung class S127, dung contract): last_ticked_head 882e0d7 (tick @S131) la dangling commit - object ton tai (cat-file -t = commit) nhung khong reachable tu HEAD. Root-cause: closeout S131-S132 SQUASH wal:-commit (squash-\u003ecount-\u003epush) nen head luc tick bi squash khoi lich su. KHONG phai tamper: counter khong lui (7), file khong sua tay. Xu ly: tick tiep 7-\u003e8 CO VET (entry nay) + bao anh trong turn S133. Candidate fix VAN treo cho anh/hub quyet (chua doi contract): chap nhan dangling-object-exists lam bang-chung yeu khi counter khong lui."
|
|
},
|
|
{
|
|
"at": "2026-07-17",
|
|
"session": "S139",
|
|
"event": "ancestor-check FAIL-LOUD lan 3 (cung class S127/S133, dung contract): last_ticked_head 36e79da (tick @S138 session-start) la dangling commit - object ton tai (cat-file -t = commit) nhung khong reachable tu HEAD 8202374. Root-cause quen thuoc: closeout-S137 chay TRONG phien S138 SAU tick -\u003e squash wal:-commit khien head-luc-tick roi khoi lich su. KHONG phai tamper: counter khong lui (12), file khong sua tay. Xu ly: tick tiep 12-\u003e13 CO VET (entry nay) + bao anh trong turn S139 (/tiep resume S138 wave adap-3-ban). Candidate fix [carry:dangling-head] van treo cho anh/hub quyet (da thanh carry named @closeout S137)."
|
|
},
|
|
{
|
|
"at": "2026-07-17",
|
|
"session": "S137",
|
|
"event": "light-audit #2 RAN at counter=11 (OVERDUE 8/6 paid; consent-gate DP-3 exercised lan dau post-wire: probe in OVERDUE:light ngay cua /tiep -\u003e anh gat -\u003e cap H24 spawn nen). Verdicts 0-garble; evidence runs/2026-07-17-S137-h24-light-audit/. lead-view 2 FLAG view-stale-status (STATUS roster-cell H24 + HANDOFF de-xuat S131) - ca hai FIXED cung phien. lead-omission 1 FLAG MED gap-decision-sunk repeat-2 (dangling-head candidate-fix chi song trong history file nay, chua thanh carry named -\u003e closeout S137 tach [carry:dangling-head]) + INFORM cum 7-carry dong-tuoi + INFORM closeout re-stamp tu HANDOFF-S134. class_repeat: gap-decision-sunk 1-\u003e2 (jump@3 chua cham), view-stale-status seed 1, 3 class S124 khong tai-hien -\u003e reset 0 (consecutive semantics)."
|
|
},
|
|
{
|
|
"at": "2026-07-18",
|
|
"session": "S140",
|
|
"event": "light-audit #3 RAN at counter=14 (force-fire debt S139 paid; consent = owner direction \u0027dong du 5 vong\u0027). lead-view 1-FLAG LOW view-stale-status (HANDOFF:8 NEXT-em stale to-do) + 2-INFORM clean; lead-omission 1-FLAG MED gap-owner-specifics (session-model tracker vang - xu trong phien bang draft+email) + 2-INFORM (carry-age non-vacuous lan dau: hook streak 9; route-H1 cum 7-carry vo hinh voi detector) + META diary thieu S137 entry. class_repeat: view-stale-status 1-\u003e2 (jump@3 chua cham), gap-decision-sunk 2-\u003e0 reset (khong tai-hien, lead-omission co y thuc chon gap-owner-specifics thay vi gap-decision-sunk - khai ro trong return, khong ne-jump), +gap-owner-specifics 1, +gap-carry-aged 1."
|
|
}
|
|
]
|
|
}
|