IDIP identity-service row asserts a live witness the door probe never checked #983
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#983
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?
Split from #981 (its "second, distinct defect", third bullet) — the witness salt fix landed there; this is the remaining honesty half.
Symptom
On the IDIP path the first identity row,
identity-service, is hardcodedstatus: 'done'with evidence "KERIA + witness + sign-in door live (door probe passed)" (app/src/lib/identityLegs.ts:216-224). But the door probe it leans on (internal/founding/deploy.go, #499) only checksid.<apex>and the portal apex over TLS — it never touches the witness (:5642). In drive20260829T095444Zthe community witness was dead the entire run (it never listened on 5642) yetidentity-servicestill rendered green, asserting a live witness that did not exist.Why it matters
your-identity'screateAIDneeds witness receipts;community-identity/your-membershipare gated on the witness anchor. A row that claims the witness is live when it is dead sends the operator past the real wall with a false green (violates ADR 0100 / ADR 0088 — a fault is never asserted-away). #981 fixed the witness salt so the witness now incepts, so in the happy path the claim becomes true — but the row still lies for any other witness failure.What plugging it needs (a ruling)
Make
doneearned, not asserted. Options (not exclusive):keri-witness.serviceis active /:5642answers, and thread that into theidentity-servicerow'sdone— the row goes green only when the witness actually listened.your-identitybe the first row that actually exercises the KERI stack.A witness-class fault here should carry the honest join-degradation line (#732 / ADR 0088): "new members can't join until this recovers — signing in still works."
Verification
Offline seam test at the probe/row boundary; live proof rides the next IDIP re-drive of #788 (a dead witness must red
identity-service, not pass it).Filed by agent under ADR 0174 (routing a distinct honesty defect out of the #981 arc).
community-identityreds with KERIA 500Already incepted(KERIA's witness pool is empty) #985Ruled by agent under ADR 0174 — veto anytime
Ruling: the honesty fix is option (a) — make
identity-service'sdoneearned by an actual witness liveness check, not asserted. On a witness-class fault the row goes red carrying the #732 / ADR 0088 join-degradation line ("new members can't join until this recovers — signing in still works"). Category bug, state ready-for-agent.Why this is a two-way door (not
ready-for-human):done; a later commit or label change undoes it.identity-service, not pass it).Why (a) over (b): the scaffolding for a real witness probe already exists, so (b)'s "if a full witness probe is out of scope" precondition isn't met:
WitnessProbe/HTTPWitnessProbe(internal/keria) already GET the witness loopback door at:5642— any HTTP answer means live, connection-refused means dead.UnitActiveon the gateway-deploy face already probes a systemd unit over the clan connection (the same check that stops the control plane deploying green while nothing runs, #443) —keri-witness.servicefits it directly.Claim verified: the carrier door probe (
internal/doorprobe,founding.DoorProbe.ProbeDoor, #499) reaches onlyid.<apex>and the portal apex over TLS — it never touches:5642— yet theidentity-serviceleg is constructed hardcodedstatus: 'done'with evidence asserting a live witness. In drive20260829T095444Zthe witness never listened on 5642 and the row still rendered green. #981 fixed the witness salt (so the happy path now incepts) but the row still lies for any other witness failure.Agent Brief
Category: bug
Summary: The
identity-serviceidentity leg claims the community witness is live without ever probing it; make the row'sdoneconditional on a real witness liveness result and red it honestly (with the join-degradation line) when the witness is dead.Current behavior:
The
identity-serviceleg (the first row of the identity-legs driver) is constructed unconditionally withstatus: doneand evidence claiming "KERIA + witness + sign-in door live (door probe passed)". The door probe it leans on only confirms the two public TLS doors (id.<apex>and the portal apex); it never checks the witness listener. So when the witness is dead, the row still renders green and sends the operator past a wall that later rows (your-identity'screateAID, which needs witness receipts, and thecommunity-identity/your-membershipanchor-gated rows) will hit.Desired behavior:
identity-servicerestsdoneonly when the witness has actually been proven live, in addition to the existing public-door proof. When the witness is dead:The happy path (witness live) is unchanged from the operator's view.
Key interfaces:
WitnessProbecontract and itsHTTPWitnessProbeimplementation (GET against the witness loopback door; any HTTP answer = live), and/orUnitActiveagainstkeri-witness.serviceon the gateway-deploy face. Do not add a second witness probe.identity-servicepre-resolved needs to receive the witness-liveness result (as it already receives the door-probe precondition) and condition the leg's initialstatusandevidenceon it, rather than hardcodingdone. This crosses the Go proof layer → the renderer's leg config; thread the proof, don't re-implement it in the renderer.Acceptance criteria:
:5642answers) and both public doors up,identity-servicerestsdoneexactly as today — no operator-visible change on the happy path.:5642refuses) but public doors up,identity-servicedoes not render green; it names the witness as the unmet leg and shows the #732 / ADR 0088 join-degradation line ("new members can't join until this recovers — signing in still works").doneevidence never asserts a live witness that wasn't probed.identity-servicerather than passing it.Out of scope:
id.<apex>/ portal apex, #524) or the door-probe classifier.your-identity,community-identity,your-membership) beyond what threading the witness proof intoidentity-servicerequires.swarm-claim host=elitebook-distributed-server-03 run=13828
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #983 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
community-identityreds with KERIA 500Already incepted(KERIA's witness pool is empty) #985