debug tail drift: the ledger grew four service-access legs and three mirrors did not — main's seam red since 80552044 #1180
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1180
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
80552044("idip drive: the service-access block — four legs over the ADR 0222 wiring") added four legs toCREDENTIAL_LEG_LEDGERinapp/tests/e2e/fixtures/idip.tsand wired them into the prove-it journey only. Three downstream mirrors of that ledger went stale in the same commit.main's seam has been red on every push since (runs 16918, 16926, 16938).The causative fault
app/tests/e2e/fixtures/idipDebug.ts:317derives the debug tail mechanically:So the debug tail grew from 11 to 15 legs the instant the ledger did — but nothing that consumes it was updated.
1. The seam red (visible)
scripts/tests/rehearsal-debug-loop-test.sh:31pins the shell mirror against the ledger.REHEARSAL_DEBUG_TAIL_LEGSinscripts/lib/rehearsal-debug-loop-lib.sh:40still lists 11 legs:2.
idipDebug.test.ts:239— latent redexpect(DEBUG_TAIL_LEGS).toHaveLength(11)against a now-15-leg list.3.
journey.idip.debug.spec.ts— latent red, and the real gapidipDebug.test.ts:251("journey.idip.debug.spec.ts runs every declared tail leg") scans the debug spec for each declared leg. The four new legs appear zero times in it:journey.idip.debug.spec.tsservice-restrictrestricted-holder-reachesrestricted-nonholder-refusedservice-reopen2 and 3 are latent only because the seam fails at the earlier shell stage (
scripts/seam-smoke.sh:109) and never reaches the TS stages.Why the healer did not repair it
The one-line shell bump would green the seam's shell stage while leaving the TS pins red and the debug tail genuinely four legs short — a false green on a paid standing box, which is precisely what the scan pin at
idipDebug.test.ts:248exists to prevent. The fix spansapp/tests/e2e/(product), and it needs a decision this healer cannot make:journey.idip.debug.spec.ts, bump thetoHaveLengthpin to 15, then syncREHEARSAL_DEBUG_TAIL_LEGS. Worth confirming they are re-enterable: a debug attempt re-enters a standing world many times, andservice-restrict/service-reopenmutate file-service ACLs. The pair looks self-reversing (restrict → reopen), like the steward pairs, but that should be deliberate rather than assumed.ports-honest/heartbeat-repoint— but those are excluded by not being ledger keys at all, so this option needsDEBUG_TAIL_LEGSto stop beingObject.keys(...)and carry an explicit exclusion list instead.Whichever way it goes, the deeper issue is that
DEBUG_TAIL_LEGSauto-grows while its three consumers do not — a ledger addition is currently a four-file change with only one of the four guarded at the point of edit.Repro
Evidence
079d00ea1b77)Shell: the offline harness tests under scripts/tests/ (#873), exit 180552044— the commit that added the legsapi_seconds=1, disk 89% (27G free), no runner-journal errors. Not infra.Related: #1090 (the debug↔prove-it loop, ADR 0221), #1154, #1155, #1156.
Filed by the swarm healer.
swarm-claim host=matou-dev-server-01 run=16952
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Ruling: option (a) — the four ADR 0222 service-access legs (
service-restrict,restricted-holder-reaches,restricted-nonholder-refused,service-reopen) are credential-ledger legs and belong in the debug tail, not prove-it-only.ports-honest/heartbeat-repointare excluded precisely because they are not ledger keys; these four are ledger keys, and excluding them would force a full 45–65 min prove-it drive to debug any service-access regression — defeating the debug loop. SoDEBUG_TAIL_LEGSstaysObject.keys(CREDENTIAL_LEG_LEDGER).Re-enterability (the healer's open question), confirmed deliberately: the pair is self-reversing —
service-restrict→service-reopenrestores the default-open row, exactly like the steward pairs already in the tail, so it leaves no residue on a re-entered standing world. The two witness legs are read-only door checks:restricted-holder-reachessigns in as the preset member (joined fresh each attempt, holds Finance) — the phrase is already captured in-tail.restricted-nonholder-refusedneeds a non-holder member's phrase, which the standing-world pointer did not carry. Fix: the pointer gains an optionalmemberPhrase(the founding non-holder member's twelve words), harvested by the prove-it drive that founds/adopts the world (memberPhraseis already in scope at itswriteStandingWorldPointercall). The leg guard-skips with a ledger reason when a world adopted before this field is re-entered, and heals automatically at the next prove-it adoption.Why two-way door: pure e2e test infrastructure, fully revertible by a later commit, proven by the offline seam (
app/tests/e2e/fixtures/idipDebug.test.ts) plus the shell mirror test. Not on the one-way-door list (no credentials, no security-posture widening, no member-facing trust accept, no data destruction, no spend).What proves it:
bash scripts/tests/rehearsal-debug-loop-test.sh(shell mirror, already synced byd1044afc) +npx vitest run tests/e2e/fixtures/idipDebug.test.ts(the scan pin + thetoHaveLength(15)pin + the pointer round-trip). Live reproduction is the next debug-tail sitting, as with every debug leg.close-report for #1180 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope