close-report gate 9: a mirror in ANOTHER repo — gate 7 cannot see the copy matou-app vendors, so a golden moves alone and both repos close green (the #1959 retro) #1963
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#1963
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?
Parent
What to build
Gate 7 asks "did this close ship the mirror too?" That question can only be answered when both files live in this repo — and the app-door golden's entire purpose is to be copied into
matou-app, "so neither side guesses the wire".#1959 added an
unlocksection tointernal/idp/testdata/app-door-golden.jsonand closed gate-clean. matou-app's vendored copy was never updated; it still has nounlockkey at all. So matou-app#664's wallet and this repo's door shipped two different contracts — the wallet omits theaidthe door relays as the panel's identity check, and reads the door'sansweredas a refusal — and both repos were green. Every fresh unlock would have failed closed on a live community, which is where #1936 would have found it.Gate 7 could not have caught this: its pairing is within one repo by construction.
.sandcastle/mirrors.tsvhas no way to name a path it cannot see.Gate 9 — cross-repo mirrors. A new repo-level registry,
.sandcastle/cross-repo-mirrors.tsv, in the shape of its two siblings:Touching a trigger obliges a
cross_repoentry in the close-report envelope naming that trigger and an open issue in that foreign repo which owes the copy. The gate cannot demand the foreign file change here — that is the whole problem — but it can demand that someone is written down as owing it, and still exists. That is exactly gate 6'sowed_bybargain, applied across the repo split.Fails closed, per the discipline: a malformed registry line, a non-list
cross_repo, a non-object entry, a malformed issue reference, an issue in the wrong repo, and an issue that is closed or unverifiable are each a violation. Waivable only by a non-emptycross_repo_waiver, surfaced in the posted comment for a human to read. The foreign tracker comes through acr_foreign_issue_stateseam so the library stays pure and offline, ascr_issue_statealready does.Additive and default-open: no registry, or no trigger matched, is a no-op, so every existing passing envelope still passes.
Acceptance criteria
changed_filestouches a registry trigger, when nocross_repoentry names it, then the close is refused, naming the trigger, the foreign repo and the foreign path.cross_reponames an open issue in that repo, then it passes.owner/repo#Nreference, then the close is refused — each fails closed.cross_repo_waiver, then the gate is overridden and the waiver appears in the comment posted to the thread..sandcastle/tests/close-report-lib-test.sh, andpreflight-swarm.sh'sguard_close_reportgains a gate-9 fixture that goes red if the gate is removed.Blocked by
Further notes
.sandcastle/is protected (#445), so this lands from an interactive session under ADR 0174, as #1940 and #1943 did.close-report for #1963 — status
successGate 9 lands in
.sandcastle/close-report-lib.shwith its registry.sandcastle/cross-repo-mirrors.tsv, seeded with the two goldens matou-app vendors (app-door, spaces-door).The regression it exists for, proven: #1959's real commit (
e77f5955) replayed against the shipped registry is now refused —Acceptance:
close-report.shsurfacescross_repo_waiverbesidemirror_waiverguard_close_reportgoes RED when the gate is stripped (verified against a gate-9-less copy of the library)Two decisions worth naming:
owed_bybargain: name an issue in the foreign repo that owes the copy, and it must still be open. A closed one owes nothing, so it is refused.cr_foreign_issue_statemirrorscr_issue_state—CR_FOREIGN_ISSUE_STATE_CMDin tests, the repo base derived offFORGEJO_APIin production — so the library stays pure and offline. Anything it cannot verify open echoesmissing, and the gate fails closed on that (T41).Additive and default-open throughout: no registry, or no trigger matched, is a no-op.
Landed from a session under ADR 0174 (
.sandcastle/is protected, #445), as #1940 and #1943 were.envelope
Ruled by agent under ADR 0174 — veto anytime.
Ruling: already implemented → closed as done (not rejected)
Category enhancement (a new close-report gate), state wontfix — used here in its "already implemented, no work remaining" sense, not "rejected". Gate 9 is built, landed on
main, and verified.Where it lives:
.sandcastle/cross-repo-mirrors.tsv— the new repo-level registry (seeded with the app-door and spaces-door goldens matou-app vendors)..sandcastle/close-report-lib.sh— the gate itself (cross_repo/cross_repo_waiver, thecr_foreign_issue_stateseam)..sandcastle/close-report.sh— surfacescross_repo_waiverbesidemirror_waiver..sandcastle/preflight-swarm.sh— the load-bearingguard_close_reportgate-9 fixture..sandcastle/tests/close-report-lib-test.sh— the offline proof.18ce6349("sandcastle: close-report gate 9 — a mirror that lives in another repo (#1963)").Verified this run:
bash .sandcastle/tests/close-report-lib-test.sh→48 checks passed(exit 0). The regression this exists for — #1959's real envelope (e77f5955) replayed against the shipped registry — is refused, matching acceptance criterion 7.Why a two-way door: closing is reversible (reopen + relabel anytime) and the ruling is proved by an existing offline test; it touches no personal credential, security-posture widening, member-facing trust accept, data destruction, or non-routine spend. The
.sandcastle/landing was done from an interactive session under ADR 0174 (#445), as #1940 and #1943 were.Follow-up from the swarm healer: the gate-9 work in
18ce6349edited four factory-vendored files (close-report-lib.sh,close-report.sh,preflight-swarm.sh,tests/close-report-lib-test.sh) without landing the change inMatou/dev-factoryand bumpingFACTORY_REF, somainis red on the drift stage. dev-factorymainis still at4ec278d(this repo's pin) and carries nocross_repocode. The missing factory landing is tracked in #1964 — gate 9 itself is not being reverted.