app-card-operator-home: scrub wants a guest-trust key self-hosted never mints #1736
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.
Blocks
Reference
Matou/idss#1736
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?
Not the known frontier
The brief names the KNOWN frontier as "pairing never flips — the own-VPS carrier issue named in legs.json's skip reasons." That is not this red.
pairis green, this drive's carrier isself-hosted(not own-VPS), andlegs.jsoncarries no skip reasons at all:45/46 green. One red, and it is a new, structural one.
The failure
app-card-operator-homedrives the Electron renderer (live.page), not the dashboard browser. It clicks Open your dashboard on the S12 hand-off and waits 2 min for the app to land on Operator home:artifacts/legs/app-card-operator-home.pngshows the app still on the S12 hand-off — heading "stack is now live", both doors drawn (OPEN ADMIN CONTROL PANEL / OPEN MEMBERS PORTAL). It never left.artifacts/idip-coa-ready-home.pngwas never written.The chain, proven end to end
1. The click took the IDIP branch and the completion failed.
state/founding-state.jsonstill exists at the end of the drive and reads:offered:falsesatisfies the IDIP gate inFoundingStandup.vue:860, soonOpenDashboardranwindow.open(url)thenrun(completeIdipHandOff, noSink).kit.resolutionalready movedoffered → declined, socompleteIdipHandOffgot past the kit step and intoclient.completeHandOff(). The last event logged is:No
scrubevents,done:false, and the state file was never deleted — soCompleteHandOff(internal/founding/handoff.go:699) returned an error beforeho.Done = true.2. It was not the readiness gate.
handoff.go:717is already IDIP-aware (ho.Enrolment.Offered && !ho.Enrolment.Registered), and withOffered:false+ kitdeclinedit passes. The failure is downstream, atverifyResidue(handoff.go:729).3. The residue check demands a key this carrier never mints.
handoff.go:792-793:OperatorKeycomes fromapp/helper/cmd/helper/scrub.go:44, over a hardcoded path (wiring_prod.go:737,wiring_prod.go:119):That file does not exist, and never did.
IDSS_STATE_DIRis the run'sstate/(it holdsfounding-state.json,clan-config/,own-vps/known_hosts,sops/), and:This is by design on this carrier, not a lost file.
guestTrust.Ensurehas exactly three call sites —rentedpath.go:223,privatepath.go:586,ownvpspath.go:452. None on the self-hosted path.internal/founding/deploy.go:490-493says so outright:Live box corroborates (134.199.170.219, still up).
appendGuestTrustwould have put the guest-trust public half into root's authorized_keys; it holds exactly one key — the ambient one we authenticated with:The box is healthy, so this is not infra:
systemctl --failedis empty,idss-control-planeandcaddyareactive,curl 127.0.0.1:8080/healthz→200.4. Why it is silent.
FoundingStandup.vue:863passesnoSink, andFoundingStandup.vue:389isconst noSink: FaultSink = () => {};.ErrScrubResidueis swallowed with no render and no console write. The leg deliberately captures console +pageerror"whatever happens" — andartifacts/operator-home-renderer.txtis 1 byte, just a newline. The renderer said nothing for the full 120 s. This is precisely the "error swallowed by the handler's own sink" the leg's own comment names from the three earlier fires (20260921T202157Z / …211802Z / …215039Z); #1704 fixed the kanidm-branch dead-end but left the IDIP branch's completion failure invisible.Suspected layer
Product, both halves — the seam and the renderer. Not harness (the locators and the 2-min wait are correct; the app genuinely never advances). Not infra (box green, 45 legs green, control plane 200). The leg has never passed on this carrier, so this is a standing structural red, not flake.
What plugging it needs
repo replica + operator keyis the wrong designed residue for this carrier. Precedent for the shape is in the same function: #1704 gated the passkey clause on the seam's own advertisement (Enrolment.Offered == false) rather than an identity flag. GateverifyResidue'sOperatorKeyclause the same way — on whether this carrier holds an app-managed operator key — or havelaptopAdapterreport the carrier's actual Tier-1 identity instead of hardcodingguestTrustDir()/id_ed25519.run(completeIdipHandOff, noSink)atFoundingStandup.vue:863must render its fault (the top box, or the hand-off's own fault slot) instead of() => {}. An operator whose hand-off cannot complete currently sees a button that does nothing, forever, with nothing in the console.Note for whoever takes it: choosing between (1a) gate the clause and (1b) mint/record a self-hosted operator key touches ADR 0044's residue contract. (1a) is the consistency migration the #1704 precedent already sanctions on this exact function; if the swarm judges the contract itself needs re-stating, that is ADR 0044's owner's call. Fix (2) is unambiguous either way and should land regardless — without it the next fire is just as mute.
drive
20260922T151333Zred atapp-card-operator-home:expect(locator).toBeVisible() failed Locator: locator('[data-status="operator-home"]').or(locator('[data-action="enter-community"]')).first() Expected: visible Timeout: 120000ms Error: element(s) notevidence:
/home/swarm/session-runner/idss/test-results/drive-idip/20260922T151333Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=matou-dev-server-01 run=30219
(automated multi-host claim — lowest live claim id works this ticket)
Ruled by agent under ADR 0174 — veto anytime.
Decision: Take (1a) — make the S12 residue contract carrier-aware by gating
verifyResidue's operator-key clause on the carrier, rather than (1b) minting/recording a self-hosted operator key. On the self-hosted carrier the app holds NO app-managed operator key:guestTrust.Ensurehas no self-hosted call site (only rented/private/own-VPS), the box trusts its own scraped root keys, and the app drives over the operator's OWN ambient key (deploy.go, #414). SoOperatorKey: falseis the honest residue on this carrier, and demanding it is the bug.Why this is a two-way door: It is revertible by a later commit (the clause is one predicate,
carrierHoldsOperatorKey), and it does not widen any security posture — the operator-key clause stays fully enforced on every carrier that DOES mint one (own-VPS, rented, private). It is the exact carrier-aware shape #1704 already sanctioned on this same completion (it gated the passkey clause onEnrolment.Offered).What proves it:
TestIDIP_SelfHostedHandOffCompletesWithNoOperatorKeyResidue— self-hosted IDIP hand-off now completes (scrub runs, state file deleted, lands on Operator home) with no operator-key residue; reproduces the drive-idip red before the fix (ErrScrubResidue: the operator key is missing).TestScrub_RefusesMissingOperatorKeyOnKeyHoldingCarrier— the clause stays enforced on private (a key-holding carrier): a missing operator key there is stillErrScrubResidue.If ADR 0044's owner judges the residue contract itself needs re-stating (self-hosted Tier-1 residue is repo replica alone), that remains their call — this commit only makes the check match the carrier's real minting behaviour.
close-report for #1736 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope