IDIP identity-service row asserts a live witness the door probe never checked #983

Closed
opened 2026-08-29 10:48:57 +00:00 by matou-build-agent · 3 comments

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 hardcoded status: '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 checks id.<apex> and the portal apex over TLS — it never touches the witness (:5642). In drive 20260829T095444Z the community witness was dead the entire run (it never listened on 5642) yet identity-service still rendered green, asserting a live witness that did not exist.

Why it matters

your-identity's createAID needs witness receipts; community-identity / your-membership are 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 done earned, not asserted. Options (not exclusive):

  • (a) Extend the carrier door probe (or add a witness probe) to confirm keri-witness.service is active / :5642 answers, and thread that into the identity-service row's done — the row goes green only when the witness actually listened.
  • (b) If a full witness probe is out of scope, narrow the row's evidence so it does not claim the witness specifically (only what the probe proved), and let your-identity be 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).

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 hardcoded `status: '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 checks `id.<apex>` and the portal apex over TLS — it **never touches the witness** (`:5642`). In drive `20260829T095444Z` the community witness was dead the entire run (it never listened on 5642) yet `identity-service` still rendered green, asserting a live witness that did not exist. ## Why it matters `your-identity`'s `createAID` needs witness receipts; `community-identity` / `your-membership` are 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 `done` *earned*, not asserted. Options (not exclusive): - **(a)** Extend the carrier door probe (or add a witness probe) to confirm `keri-witness.service` is active / `:5642` answers, and thread that into the `identity-service` row's `done` — the row goes green only when the witness actually listened. - **(b)** If a full witness probe is out of scope, narrow the row's evidence so it does not *claim* the witness specifically (only what the probe proved), and let `your-identity` be 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).
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime

Ruling: the honesty fix is option (a) — make identity-service's done earned 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):

  • Revertible — a code change to when one row rests done; a later commit or label change undoes it.
  • Provable — an offline seam test at the probe/row boundary, plus the live proof on the next IDIP re-drive of #788 (a dead witness must red identity-service, not pass it).
  • Not on the one-way-door list — no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no spend. It is a correctness fix that existing doctrine already mandates (ADR 0100 / ADR 0088: a fault is never asserted-away), so shipping the honest default doesn't gate on Ben; the accept, if any, rides the next digest.

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.
  • UnitActive on 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.service fits it directly.

Claim verified: the carrier door probe (internal/doorprobe, founding.DoorProbe.ProbeDoor, #499) reaches only id.<apex> and the portal apex over TLS — it never touches :5642 — yet the identity-service leg is constructed hardcoded status: 'done' with evidence asserting a live witness. In drive 20260829T095444Z the 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-service identity leg claims the community witness is live without ever probing it; make the row's done conditional on a real witness liveness result and red it honestly (with the join-degradation line) when the witness is dead.

Current behavior:
The identity-service leg (the first row of the identity-legs driver) is constructed unconditionally with status: done and 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's createAID, which needs witness receipts, and the community-identity / your-membership anchor-gated rows) will hit.

Desired behavior:
identity-service rests done only when the witness has actually been proven live, in addition to the existing public-door proof. When the witness is dead:

  • the row is not green — it reds (or otherwise honestly reflects "not proven") and names the witness as the unmet leg, and
  • it carries the standing join-degradation line (#732 / ADR 0088): "new members can't join until this recovers — signing in still works."
    The happy path (witness live) is unchanged from the operator's view.

Key interfaces:

  • The witness liveness signal — reuse the existing WitnessProbe contract and its HTTPWitnessProbe implementation (GET against the witness loopback door; any HTTP answer = live), and/or UnitActive against keri-witness.service on the gateway-deploy face. Do not add a second witness probe.
  • The identity-legs driver's config/seam — the layer that constructs the leg set with identity-service pre-resolved needs to receive the witness-liveness result (as it already receives the door-probe precondition) and condition the leg's initial status and evidence on it, rather than hardcoding done. This crosses the Go proof layer → the renderer's leg config; thread the proof, don't re-implement it in the renderer.
  • The evidence string for the row must not claim more than was proven (ADR 0088): when the witness isn't proven, its evidence must not assert a live witness.

Acceptance criteria:

  • With a live witness (:5642 answers) and both public doors up, identity-service rests done exactly as today — no operator-visible change on the happy path.
  • With a dead witness (:5642 refuses) but public doors up, identity-service does 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").
  • The row's done evidence never asserts a live witness that wasn't probed.
  • An offline seam test at the probe/row boundary covers both the witness-live and witness-dead cases.
  • Live proof rides the next IDIP re-drive of #788: a dead witness reds identity-service rather than passing it.

Out of scope:

  • The witness salt / inception fix — landed in #981.
  • Changing the two public-door TLS probes (id.<apex> / portal apex, #524) or the door-probe classifier.
  • Reworking downstream rows (your-identity, community-identity, your-membership) beyond what threading the witness proof into identity-service requires.
> *This was generated by AI during triage.* ## Ruled by agent under ADR 0174 — veto anytime **Ruling:** the honesty fix is **option (a)** — make `identity-service`'s `done` *earned* 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`):** - **Revertible** — a code change to when one row rests `done`; a later commit or label change undoes it. - **Provable** — an offline seam test at the probe/row boundary, plus the live proof on the next IDIP re-drive of #788 (a dead witness must red `identity-service`, not pass it). - **Not on the one-way-door list** — no personal credentials, no security-posture widening, no member-facing trust *accept*, no data destruction, no spend. It is a correctness fix that existing doctrine already mandates (ADR 0100 / ADR 0088: a fault is never asserted-away), so shipping the honest default doesn't gate on Ben; the accept, if any, rides the next digest. **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. - `UnitActive` on 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.service` fits it directly. Claim **verified**: the carrier door probe (`internal/doorprobe`, `founding.DoorProbe.ProbeDoor`, #499) reaches only `id.<apex>` and the portal apex over TLS — it never touches `:5642` — yet the `identity-service` leg is constructed hardcoded `status: 'done'` with evidence asserting a live witness. In drive `20260829T095444Z` the 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-service` identity leg claims the community witness is live without ever probing it; make the row's `done` conditional on a real witness liveness result and red it honestly (with the join-degradation line) when the witness is dead. **Current behavior:** The `identity-service` leg (the first row of the identity-legs driver) is constructed unconditionally with `status: done` and 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`'s `createAID`, which needs witness receipts, and the `community-identity` / `your-membership` anchor-gated rows) will hit. **Desired behavior:** `identity-service` rests `done` only when the witness has actually been proven live, in addition to the existing public-door proof. When the witness is dead: - the row is **not** green — it reds (or otherwise honestly reflects "not proven") and names the witness as the unmet leg, and - it carries the standing join-degradation line (#732 / ADR 0088): "new members can't join until this recovers — signing in still works." The happy path (witness live) is unchanged from the operator's view. **Key interfaces:** - The witness liveness signal — reuse the existing `WitnessProbe` contract and its `HTTPWitnessProbe` implementation (GET against the witness loopback door; any HTTP answer = live), and/or `UnitActive` against `keri-witness.service` on the gateway-deploy face. Do **not** add a second witness probe. - The identity-legs driver's config/seam — the layer that constructs the leg set with `identity-service` pre-resolved needs to receive the witness-liveness result (as it already receives the door-probe precondition) and condition the leg's initial `status` and `evidence` on it, rather than hardcoding `done`. This crosses the Go proof layer → the renderer's leg config; thread the proof, don't re-implement it in the renderer. - The evidence string for the row must not claim more than was proven (ADR 0088): when the witness isn't proven, its evidence must not assert a live witness. **Acceptance criteria:** - [ ] With a live witness (`:5642` answers) and both public doors up, `identity-service` rests `done` exactly as today — no operator-visible change on the happy path. - [ ] With a dead witness (`:5642` refuses) but public doors up, `identity-service` does **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"). - [ ] The row's `done` evidence never asserts a live witness that wasn't probed. - [ ] An offline seam test at the probe/row boundary covers both the witness-live and witness-dead cases. - [ ] Live proof rides the next IDIP re-drive of #788: a dead witness reds `identity-service` rather than passing it. **Out of scope:** - The witness *salt* / inception fix — landed in #981. - Changing the two public-door TLS probes (`id.<apex>` / portal apex, #524) or the door-probe classifier. - Reworking downstream rows (`your-identity`, `community-identity`, `your-membership`) beyond what threading the witness proof into `identity-service` requires.
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=13828
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=13828 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #983 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 983,
  "status": "success",
  "commits": [
    "739861d"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/founding/FoundingStandup.vue",
    "app/src/lib/founding.ts",
    "app/src/lib/identityLegs.ts",
    "app/tests/unit/foundingIdentityRows.test.ts",
    "app/tests/unit/identityLegs.test.ts",
    "internal/clan/testing/fake.go",
    "internal/founding/deploy.go",
    "internal/founding/handoff_test.go",
    "internal/founding/seed.go",
    "internal/founding/witness_seed_test.go"
  ],
  "tests": [
    {
      "command": "pnpm vitest run tests/unit/identityLegs.test.ts tests/unit/foundingIdentityRows.test.ts",
      "exit_code": 0
    },
    {
      "command": "vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/founding ./internal/clan",
      "exit_code": 0
    },
    {
      "command": "go build ./... && go vet ./... && golangci-lint run ./internal/founding/... ./internal/clan/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "With a live witness (:5642 answers) and both public doors up, identity-service rests done exactly as today — no operator-visible change on the happy path": "identityLegs.ts identityServiceLeg(true) returns status 'done' with witness-naming evidence; identityLegs.test.ts '#983 ... a live witness ... rests identity-service done, unchanged from today'; Go seed test TestIDIP_WitnessLiveRecordedAtSeeding (SeedStatus.WitnessLive true -> buildIdentityDriver passes witnessLive:true)",
    "With a dead witness (:5642 refuses) but public doors up, identity-service does not render green; it names the witness as the unmet leg and shows the #732/ADR 0088 join-degradation line": "identityServiceLeg(false) returns status 'failed', faultKind 'witness', detail names ':5642', degradation JOIN_DEGRADATION; identityLegs.test.ts '#983 ... a dead witness reds identity-service' + '... carries the witness-class fault + honest join-degradation line'; foundingIdentityRows.test.ts '#983 ... dead-witness identity-service reds with the join-degradation line'; Go seed test TestIDIP_DeadWitnessRecordsWitnessDownAtSeeding",
    "The row's done evidence never asserts a live witness that wasn't probed": "identityLegs.test.ts \"a dead witness's evidence never asserts a live witness (ADR 0088/0100)\"; the failed-case evidence is 'sign-in door live (door probe passed) — witness not proven'",
    "An offline seam test at the probe/row boundary covers both the witness-live and witness-dead cases": "TS driver seam tests (both cases) in identityLegs.test.ts + Go seed seam tests (live/dead/kanidm) in witness_seed_test.go — all offline",
    "Live proof rides the next IDIP re-drive of #788: a dead witness reds identity-service rather than passing it": "seed.go probes keri-witness.service via clan.UnitActive on the IDIP path and threads SeedStatus.WitnessLive -> IdentityLegsConfig.witnessLive; the real dead-witness-reds proof rides #788's re-drive per the issue's Verification (deferred, noted)"
  },
  "summary": "identity-service now earns done from a real seed-time keri-witness.service liveness probe threaded into the identity-legs driver, so a dead witness reds it honestly instead of asserting a live witness the door probe never checked.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #983 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 983, "status": "success", "commits": [ "739861d" ], "changed_files": [ "STATUS.md", "app/src/components/founding/FoundingStandup.vue", "app/src/lib/founding.ts", "app/src/lib/identityLegs.ts", "app/tests/unit/foundingIdentityRows.test.ts", "app/tests/unit/identityLegs.test.ts", "internal/clan/testing/fake.go", "internal/founding/deploy.go", "internal/founding/handoff_test.go", "internal/founding/seed.go", "internal/founding/witness_seed_test.go" ], "tests": [ { "command": "pnpm vitest run tests/unit/identityLegs.test.ts tests/unit/foundingIdentityRows.test.ts", "exit_code": 0 }, { "command": "vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "go test ./internal/founding ./internal/clan", "exit_code": 0 }, { "command": "go build ./... && go vet ./... && golangci-lint run ./internal/founding/... ./internal/clan/...", "exit_code": 0 } ], "criteria": { "With a live witness (:5642 answers) and both public doors up, identity-service rests done exactly as today — no operator-visible change on the happy path": "identityLegs.ts identityServiceLeg(true) returns status 'done' with witness-naming evidence; identityLegs.test.ts '#983 ... a live witness ... rests identity-service done, unchanged from today'; Go seed test TestIDIP_WitnessLiveRecordedAtSeeding (SeedStatus.WitnessLive true -> buildIdentityDriver passes witnessLive:true)", "With a dead witness (:5642 refuses) but public doors up, identity-service does not render green; it names the witness as the unmet leg and shows the #732/ADR 0088 join-degradation line": "identityServiceLeg(false) returns status 'failed', faultKind 'witness', detail names ':5642', degradation JOIN_DEGRADATION; identityLegs.test.ts '#983 ... a dead witness reds identity-service' + '... carries the witness-class fault + honest join-degradation line'; foundingIdentityRows.test.ts '#983 ... dead-witness identity-service reds with the join-degradation line'; Go seed test TestIDIP_DeadWitnessRecordsWitnessDownAtSeeding", "The row's done evidence never asserts a live witness that wasn't probed": "identityLegs.test.ts \"a dead witness's evidence never asserts a live witness (ADR 0088/0100)\"; the failed-case evidence is 'sign-in door live (door probe passed) — witness not proven'", "An offline seam test at the probe/row boundary covers both the witness-live and witness-dead cases": "TS driver seam tests (both cases) in identityLegs.test.ts + Go seed seam tests (live/dead/kanidm) in witness_seed_test.go — all offline", "Live proof rides the next IDIP re-drive of #788: a dead witness reds identity-service rather than passing it": "seed.go probes keri-witness.service via clan.UnitActive on the IDIP path and threads SeedStatus.WitnessLive -> IdentityLegsConfig.witnessLive; the real dead-witness-reds proof rides #788's re-drive per the issue's Verification (deferred, noted)" }, "summary": "identity-service now earns done from a real seed-time keri-witness.service liveness probe threaded into the identity-legs driver, so a dead witness reds it honestly instead of asserting a live witness the door probe never checked.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#983
No description provided.