control panel: sync the org group before an issue/revoke, and send /multisig/iss|rev to the other stewards after #2028

Closed
opened 2026-09-30 15:43:31 +00:00 by ben · 3 comments
Owner

Spec (matou-app, merged to main as edc5a03 on 2026-09-30):
docs/superpowers/specs/2026-09-30-steward-peer-registry-design.md, sections §3.1 (groupSync), §3.3 (actReplication), §6 (obligation on idss), §1.1 (the incident that motivates it).

Why

Every steward of an org group AID is now a full peer in matou-app: it adopts the community registry, replays acts it did not perform, and pushes history to peers. The control panel's steward bundle signs from a steward's agent but does neither of the two things a peer must do, so a panel act does not reach the other stewards until the acting steward next signs in to the app (§3.5 history push), and a panel act from a stale view can fork the group KEL (the #63 shape). This happened on whakatohea-demo on 2026-09-30: after engie's failed approvals left witnessed ixns at group sn 17-20, the founder approved two members from a stale view and forked the group KEL; it was recovered the same morning by a superseding group rotation at sn 0x11.

What the panel must do

1. Before each issue or revoke: sync the group (§3.1), refuse on GroupBehind

  • syncGroup(group): GET each witness's /oobi/{group} stream (KEL with receipts) with plain HTTP. Do NOT resolve the OOBI through the agent (re-resolving an already-resolved OOBI left sn unchanged in the spike).
  • Read the agent's current group sn, then push only the witness events whose sn is above it into the acting steward's agent through the CESR door, one event per request. Then re-read the agent's sn.
  • Throw GroupBehind if the agent's sn is below the highest witness sn after the push. Throw GroupDiverged if the agent's sn is GREATER than the highest witness sn (the agent holds events no witness serves). Never trust the door's 204.
  • Also refuse (as GroupBehind) on a non-hex or missing sn, on no witness URLs configured, and when no witness is reachable or none serves valid group events.
  • Refuse the act on both GroupBehind and GroupDiverged. Acting from a stale view re-anchors an existing sn and forks the group KEL.

2. After each issue or revoke: send the native group-issuance exn (§3.3)

Sender: the acting steward's member AID (the group's mhab). Recipients: every other signer's personal AID. Best-effort per recipient; never roll the act back. Stock KERIA raises a notification for these routes on any agent that holds the group (keri/app/grouping.py loadHandlers, Multiplexor.add), so no KERIA patch is needed.

signify revoke() does not return the sigs: read the anchoring ixn and its sigs back from the credential export (credentials().get(said, true)).

Exact embed shapes, from frontend/src/lib/keri/steward/replicate.ts actEmbedParts (b = the credential export bundle; each part is { sad, atc }, atc being the CESR signature attachment):

  • Route /multisig/iss, payload { gid }, embeds:
    • acdc: { sad: b.acdc.event, atc: '' }
    • iss: { sad: b.iss.event, atc: '' }
    • anc: { sad: b.issAnc.event, atc: b.issAnc.attachment }
  • Route /multisig/rev, payload { gid }, embeds:
    • acdc: { sad: b.acdc.event, atc: '' }
    • iss: { sad: b.iss.event, atc: '' }
    • issanc: { sad: b.issAnc.event, atc: b.issAnc.attachment }
    • rev: { sad: b.rev.event, atc: '' }
    • anc: { sad: b.revAnc.event, atc: b.revAnc.attachment }

acdc, iss and issanc on a rev let a receiver that lacks the credential replay the issuance first.

Known KERIA 0.4.0 behaviour (tests/infra README): an identical exn (same embed set) re-sent to the same agent raises NO second notification (the Multiplexor dedupes on embeds), so do not rely on a resend to retry.

Acceptance check

A credential issued from the control panel shows et=iss on the other steward's agent (credentials().state(regk, said)) after they sign in to the app. Likewise a panel revoke shows et=rev. The harness frontend/tests/infra/steward-peer.infra.ts gate g1/g3 is the reference for the exchange.

Interim

Until this lands, a panel act reaches the other stewards on the acting steward's next app sign-in (spec §3.5, §6). A panel act made from a stale group view is the fork risk described above.

Spec (matou-app, merged to main as `edc5a03` on 2026-09-30): `docs/superpowers/specs/2026-09-30-steward-peer-registry-design.md`, sections §3.1 (groupSync), §3.3 (actReplication), §6 (obligation on idss), §1.1 (the incident that motivates it). ## Why Every steward of an org group AID is now a full peer in matou-app: it adopts the community registry, replays acts it did not perform, and pushes history to peers. The control panel's steward bundle signs from a steward's agent but does neither of the two things a peer must do, so a panel act does not reach the other stewards until the acting steward next signs in to the app (§3.5 history push), and a panel act from a stale view can fork the group KEL (the #63 shape). This happened on whakatohea-demo on 2026-09-30: after engie's failed approvals left witnessed ixns at group sn 17-20, the founder approved two members from a stale view and forked the group KEL; it was recovered the same morning by a superseding group rotation at sn 0x11. ## What the panel must do ### 1. Before each issue or revoke: sync the group (§3.1), refuse on `GroupBehind` - `syncGroup(group)`: GET each witness's `/oobi/{group}` stream (KEL with receipts) with plain HTTP. Do NOT resolve the OOBI through the agent (re-resolving an already-resolved OOBI left sn unchanged in the spike). - Read the agent's current group sn, then push only the witness events whose sn is above it into the acting steward's agent through the CESR door, one event per request. Then re-read the agent's sn. - Throw `GroupBehind` if the agent's sn is below the highest witness sn after the push. Throw `GroupDiverged` if the agent's sn is GREATER than the highest witness sn (the agent holds events no witness serves). Never trust the door's 204. - Also refuse (as `GroupBehind`) on a non-hex or missing sn, on no witness URLs configured, and when no witness is reachable or none serves valid group events. - Refuse the act on both `GroupBehind` and `GroupDiverged`. Acting from a stale view re-anchors an existing sn and forks the group KEL. ### 2. After each issue or revoke: send the native group-issuance exn (§3.3) Sender: the acting steward's member AID (the group's `mhab`). Recipients: every other signer's personal AID. Best-effort per recipient; never roll the act back. Stock KERIA raises a notification for these routes on any agent that holds the group (`keri/app/grouping.py loadHandlers`, `Multiplexor.add`), so no KERIA patch is needed. `signify revoke()` does not return the sigs: read the anchoring ixn and its sigs back from the credential export (`credentials().get(said, true)`). Exact embed shapes, from `frontend/src/lib/keri/steward/replicate.ts` `actEmbedParts` (`b` = the credential export bundle; each part is `{ sad, atc }`, `atc` being the CESR signature attachment): - Route `/multisig/iss`, payload `{ gid }`, embeds: - `acdc`: `{ sad: b.acdc.event, atc: '' }` - `iss`: `{ sad: b.iss.event, atc: '' }` - `anc`: `{ sad: b.issAnc.event, atc: b.issAnc.attachment }` - Route `/multisig/rev`, payload `{ gid }`, embeds: - `acdc`: `{ sad: b.acdc.event, atc: '' }` - `iss`: `{ sad: b.iss.event, atc: '' }` - `issanc`: `{ sad: b.issAnc.event, atc: b.issAnc.attachment }` - `rev`: `{ sad: b.rev.event, atc: '' }` - `anc`: `{ sad: b.revAnc.event, atc: b.revAnc.attachment }` `acdc`, `iss` and `issanc` on a rev let a receiver that lacks the credential replay the issuance first. Known KERIA 0.4.0 behaviour (tests/infra README): an identical exn (same embed set) re-sent to the same agent raises NO second notification (the Multiplexor dedupes on embeds), so do not rely on a resend to retry. ## Acceptance check A credential issued from the control panel shows `et=iss` on the other steward's agent (`credentials().state(regk, said)`) after they sign in to the app. Likewise a panel revoke shows `et=rev`. The harness `frontend/tests/infra/steward-peer.infra.ts` gate g1/g3 is the reference for the exchange. ## Interim Until this lands, a panel act reaches the other stewards on the acting steward's next app sign-in (spec §3.5, §6). A panel act made from a stale group view is the fork risk described above.

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: enhancement + ready-for-agent.

Why this is a two-way door:

  • Revertible. The work is a change to the steward bundle's issue/revoke path (window.idssKeriSteward, mounted by app/src/keriweb) plus a supporting sync/replicate lib — undone by a commit or a label flip.
  • Not on the one-way-door list. It touches no personal credentials; it is a security tightening, not a widening (it refuses stale acts to stop the group-KEL fork, and the exn it adds is intra-group replication to existing co-stewards, not a new public surface); it is not a member-/public-facing trust-copy accept, not data destruction, not spend, not hardware.
  • No design tier missing. It references the merged matou-app superpowers spec, not any idss docs/ux/flows/, wireframe, or seam — so no needs-design gate fires. The issue/revoke UI surfaces already exist; this is the signing/replication logic behind them.
  • Nothing to ask. The body is a complete, self-contained spec (exact routes, embed shapes from actEmbedParts, error conditions, and the KERIA 0.4.0 quirks are transcribed inline), so no cross-repo access to matou-app is needed and there is no needs-info residue.

What proves it: the sn-threshold decisions (GroupBehind / GroupDiverged refusals) and the exact /multisig/iss and /multisig/rev embed sets are unit-testable in idss's existing KERI unit-test style (node-env vitest with mocked witness /oobi streams + a mocked CESR door, as app/tests/unit/keri/* already does). The true end-to-end acceptance ("et=iss on the other steward's agent after they sign in") needs a live multi-steward community — that proof rides the existing WKT-DEMO standing drives, so it does not block this ticket's logic-and-unit-test work.


Agent Brief

Category: enhancement
Summary: The control-panel steward bundle must become a full group peer for panel acts: sync the org-group KEL from the witnesses before each issue/revoke (refusing a stale or diverged view), and send the native group-issuance exn to the other stewards after.

Current behavior:
The steward bundle signs an issue/revoke from the acting steward's agent and records it, but does neither of the two things a group peer must do. It does not sync the group's KEL before signing, so an act from a stale view re-anchors an existing sn and forks the group KEL (the #63 shape — this happened on whakatohea-demo on 2026-09-30, recovered by a superseding group rotation). And it pushes no history to the other stewards, so a panel act only reaches them when the acting steward next signs in to the app (spec §3.5).

Desired behavior:

Before each issue or revoke — sync the group, refuse on a bad view:

  • syncGroup(group): GET each witness's /oobi/{group} stream (the KEL with receipts) over plain HTTP — do not re-resolve the OOBI through the agent (re-resolving an already-resolved OOBI left sn unchanged in the spike).
  • Read the agent's current group sn, push only the witness events whose sn is above it into the acting steward's agent through the CESR door, one event per request, then re-read the agent's sn. Never trust the door's 204.
  • Throw GroupBehind if, after the push, the agent's sn is below the highest witness sn; also on a non-hex or missing sn, on no witness URLs configured, and when no witness is reachable or none serves valid group events.
  • Throw GroupDiverged if the agent's sn is greater than the highest witness sn (the agent holds events no witness serves).
  • The act is refused on either GroupBehind or GroupDiverged.

After each issue or revoke — send the native group-issuance exn (best-effort, never roll the act back):

  • Sender: the acting steward's member AID (the group's mhab). Recipients: every other signer's personal AID.
  • /multisig/iss, payload { gid }, embeds acdc {sad: b.acdc.event, atc: ''}, iss {sad: b.iss.event, atc: ''}, anc {sad: b.issAnc.event, atc: b.issAnc.attachment}.
  • /multisig/rev, payload { gid }, embeds acdc {sad: b.acdc.event, atc: ''}, iss {sad: b.iss.event, atc: ''}, issanc {sad: b.issAnc.event, atc: b.issAnc.attachment}, rev {sad: b.rev.event, atc: ''}, anc {sad: b.revAnc.event, atc: b.revAnc.attachment} (the acdc/iss/issanc on a rev let a receiver that lacks the credential replay the issuance first).
  • b is the credential export bundle. signify revoke() does not return the sigs — read the anchoring ixn and its sigs back from the credential export (credentials().get(said, true)).
  • Known KERIA 0.4.0 behaviour: an identical exn (same embed set) re-sent to the same agent raises no second notification, so do not rely on a resend to retry.

See the issue body and the referenced matou-app spec (docs/superpowers/specs/2026-09-30-steward-peer-registry-design.md, §3.1 / §3.3 / §6 / §1.1) for the full contract; the exact embed shapes are transcribed above from actEmbedParts.

Key interfaces:

  • The steward bundle's issue and revoke acts (StewardIssueRequest / StewardRevokeRequest on IdipStewardBundle, implemented in the window.idssKeriSteward bundle) — each gains a sync-before step and an exn-send-after step. The sync + refusal logic should be a testable unit (e.g. a syncGroup returning/throwing on the sn comparison) rather than inlined into each act.
  • A GroupBehind / GroupDiverged failure type surfaced to the dashboard so the panel refuses the act and reports why (mirror the existing records-unreachable refusal shape the bundle already raises).
  • The witness set the bundle already derives (app/src/lib/keri witness extraction) supplies the /oobi/{group} hosts.

Acceptance criteria:

  • An issue/revoke first runs the group sync; when the agent ends below the highest witness sn the act is refused with GroupBehind and no signing happens.
  • A missing/non-hex sn, no configured witness URLs, and no reachable/valid-serving witness each surface as GroupBehind (fail closed); an agent sn above the highest witness sn surfaces as GroupDiverged. Both refuse the act.
  • On the happy path the correct events (sn above the agent's) are pushed one per request through the CESR door, the agent's sn is re-read after the push, and the door's 204 is not trusted as success.
  • After a successful issue, a /multisig/iss exn with exactly the embed set above is sent from the mhab AID to each other signer's personal AID; after a revoke, a /multisig/rev exn with its embed set (including the issuance-replay acdc/iss/issanc). Sending is best-effort per recipient and a send failure never rolls the act back.
  • Unit tests cover the sn-threshold branches and the exact embed shapes for both routes, in the node-env / mocked-signify style of the existing app/tests/unit/keri/* tests. (frontend/tests/infra/steward-peer.infra.ts g1/g3 in matou-app is the behavioural reference for the exchange.)

Out of scope:

  • The live end-to-end et=iss/et=rev-on-the-other-steward proof against a real multi-steward community — that rides the WKT-DEMO standing drives, not this ticket.
  • Any change to the app-side (matou-app) peer that already replays and pushes; this ticket is only the control-panel/keriweb bundle catching up to it.
  • The last-Administrator / revoke-floor prompt (#1993, already landed) and the credential look/appearance (#1989) — separate tickets.
> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** `enhancement` + `ready-for-agent`. **Why this is a two-way door:** - **Revertible.** The work is a change to the steward bundle's issue/revoke path (`window.idssKeriSteward`, mounted by `app/src/keriweb`) plus a supporting sync/replicate lib — undone by a commit or a label flip. - **Not on the one-way-door list.** It touches no personal credentials; it is a security *tightening*, not a widening (it *refuses* stale acts to stop the group-KEL fork, and the exn it adds is intra-group replication to existing co-stewards, not a new public surface); it is not a member-/public-facing trust-copy accept, not data destruction, not spend, not hardware. - **No design tier missing.** It references the merged matou-app superpowers spec, not any idss `docs/ux/flows/`, wireframe, or seam — so no `needs-design` gate fires. The issue/revoke UI surfaces already exist; this is the signing/replication logic behind them. - **Nothing to ask.** The body is a complete, self-contained spec (exact routes, embed shapes from `actEmbedParts`, error conditions, and the KERIA 0.4.0 quirks are transcribed inline), so no cross-repo access to matou-app is needed and there is no `needs-info` residue. **What proves it:** the sn-threshold decisions (`GroupBehind` / `GroupDiverged` refusals) and the exact `/multisig/iss` and `/multisig/rev` embed sets are unit-testable in idss's existing KERI unit-test style (node-env vitest with mocked witness `/oobi` streams + a mocked CESR door, as `app/tests/unit/keri/*` already does). The true end-to-end acceptance ("`et=iss` on the *other* steward's agent after they sign in") needs a live multi-steward community — that proof rides the existing WKT-DEMO standing drives, so it does **not** block this ticket's logic-and-unit-test work. --- ## Agent Brief **Category:** enhancement **Summary:** The control-panel steward bundle must become a full group peer for panel acts: sync the org-group KEL from the witnesses *before* each issue/revoke (refusing a stale or diverged view), and send the native group-issuance exn to the other stewards *after*. **Current behavior:** The steward bundle signs an issue/revoke from the acting steward's agent and records it, but does neither of the two things a group peer must do. It does not sync the group's KEL before signing, so an act from a stale view re-anchors an existing sn and forks the group KEL (the #63 shape — this happened on whakatohea-demo on 2026-09-30, recovered by a superseding group rotation). And it pushes no history to the other stewards, so a panel act only reaches them when the acting steward next signs in to the app (spec §3.5). **Desired behavior:** *Before each issue or revoke — sync the group, refuse on a bad view:* - `syncGroup(group)`: GET each witness's `/oobi/{group}` stream (the KEL with receipts) over **plain HTTP** — do **not** re-resolve the OOBI through the agent (re-resolving an already-resolved OOBI left sn unchanged in the spike). - Read the agent's current group sn, push **only** the witness events whose sn is above it into the acting steward's agent through the CESR door, one event per request, then re-read the agent's sn. Never trust the door's 204. - Throw `GroupBehind` if, after the push, the agent's sn is below the highest witness sn; also on a non-hex or missing sn, on no witness URLs configured, and when no witness is reachable or none serves valid group events. - Throw `GroupDiverged` if the agent's sn is **greater** than the highest witness sn (the agent holds events no witness serves). - The act is **refused** on either `GroupBehind` or `GroupDiverged`. *After each issue or revoke — send the native group-issuance exn (best-effort, never roll the act back):* - Sender: the acting steward's member AID (the group's `mhab`). Recipients: every *other* signer's personal AID. - `/multisig/iss`, payload `{ gid }`, embeds `acdc` `{sad: b.acdc.event, atc: ''}`, `iss` `{sad: b.iss.event, atc: ''}`, `anc` `{sad: b.issAnc.event, atc: b.issAnc.attachment}`. - `/multisig/rev`, payload `{ gid }`, embeds `acdc` `{sad: b.acdc.event, atc: ''}`, `iss` `{sad: b.iss.event, atc: ''}`, `issanc` `{sad: b.issAnc.event, atc: b.issAnc.attachment}`, `rev` `{sad: b.rev.event, atc: ''}`, `anc` `{sad: b.revAnc.event, atc: b.revAnc.attachment}` (the `acdc`/`iss`/`issanc` on a rev let a receiver that lacks the credential replay the issuance first). - `b` is the credential export bundle. `signify revoke()` does not return the sigs — read the anchoring ixn and its sigs back from the credential export (`credentials().get(said, true)`). - Known KERIA 0.4.0 behaviour: an identical exn (same embed set) re-sent to the same agent raises **no** second notification, so do not rely on a resend to retry. See the issue body and the referenced matou-app spec (`docs/superpowers/specs/2026-09-30-steward-peer-registry-design.md`, §3.1 / §3.3 / §6 / §1.1) for the full contract; the exact embed shapes are transcribed above from `actEmbedParts`. **Key interfaces:** - The steward bundle's issue and revoke acts (`StewardIssueRequest` / `StewardRevokeRequest` on `IdipStewardBundle`, implemented in the `window.idssKeriSteward` bundle) — each gains a sync-before step and an exn-send-after step. The sync + refusal logic should be a testable unit (e.g. a `syncGroup` returning/throwing on the sn comparison) rather than inlined into each act. - A `GroupBehind` / `GroupDiverged` failure type surfaced to the dashboard so the panel refuses the act and reports why (mirror the existing `records-unreachable` refusal shape the bundle already raises). - The witness set the bundle already derives (`app/src/lib/keri` witness extraction) supplies the `/oobi/{group}` hosts. **Acceptance criteria:** - [ ] An issue/revoke first runs the group sync; when the agent ends below the highest witness sn the act is refused with `GroupBehind` and no signing happens. - [ ] A missing/non-hex sn, no configured witness URLs, and no reachable/valid-serving witness each surface as `GroupBehind` (fail closed); an agent sn above the highest witness sn surfaces as `GroupDiverged`. Both refuse the act. - [ ] On the happy path the correct events (sn above the agent's) are pushed one per request through the CESR door, the agent's sn is re-read after the push, and the door's 204 is not trusted as success. - [ ] After a successful issue, a `/multisig/iss` exn with exactly the embed set above is sent from the `mhab` AID to each other signer's personal AID; after a revoke, a `/multisig/rev` exn with its embed set (including the issuance-replay `acdc`/`iss`/`issanc`). Sending is best-effort per recipient and a send failure never rolls the act back. - [ ] Unit tests cover the sn-threshold branches and the exact embed shapes for both routes, in the node-env / mocked-signify style of the existing `app/tests/unit/keri/*` tests. (`frontend/tests/infra/steward-peer.infra.ts` g1/g3 in matou-app is the behavioural reference for the exchange.) **Out of scope:** - The live end-to-end `et=iss`/`et=rev`-on-the-other-steward proof against a real multi-steward community — that rides the WKT-DEMO standing drives, not this ticket. - Any change to the app-side (matou-app) peer that already replays and pushes; this ticket is only the control-panel/keriweb bundle catching up to it. - The last-Administrator / revoke-floor prompt (#1993, already landed) and the credential look/appearance (#1989) — separate tickets.

swarm-claim host=bens-mac-04 run=36650
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=36650 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #2028 — status success

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

envelope
{
  "issue": 2028,
  "status": "success",
  "commits": [
    "38884e77"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/keriweb/main.ts",
    "app/src/lib/keri/client.ts",
    "app/src/lib/keri/connection.ts",
    "app/src/lib/keri/stewardPeer.ts",
    "app/tests/unit/keri/stewardPeer.test.ts",
    "app/tests/unit/keri/stewardPeerClient.test.ts"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/unit/keri/stewardPeer.test.ts tests/unit/keri/stewardPeerClient.test.ts (app/)",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/unit/keri/ tests/unit/keriwebStewardMount.test.ts (app/)",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit (app/)",
      "exit_code": 0
    },
    {
      "command": "npx eslint (changed files + pre-push `eslint .` gate)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "An issue/revoke first runs the group sync; when the agent ends below the highest witness sn the act is refused with GroupBehind and no signing happens": "syncGroup() re-reads the agent sn after the push and throws GroupBehind when still below the highest witnessed sn (app/src/lib/keri/stewardPeer.ts); idssKeriStewardIssue/Revoke call client.syncGroupFromWitnesses BEFORE constructing/running the KomitiCredentialDriver (app/src/keriweb/main.ts), so a throw refuses before any sign. Proven: stewardPeer.test.ts 'never trusts the door 204 ... refuses if still behind' + stewardPeerClient.test.ts 'refuses GroupBehind when the agent stays behind after the push'.",
    "A missing/non-hex sn, no configured witness URLs, and no reachable/valid-serving witness each surface as GroupBehind (fail closed); an agent sn above the highest witness sn surfaces as GroupDiverged. Both refuse the act.": "syncGroup() throws GroupBehind on empty witnessOobiUrls, no reachable stream, no valid group events, and a missing/non-hex agent sn; GroupDiverged when the agent sn exceeds the highest witnessed sn. Proven: stewardPeer.test.ts 'refuses GroupBehind on no configured witness URLs' / 'when no witness is reachable' / 'serves no valid group events' / 'on a missing or non-hex agent sn' / 'refuses GroupDiverged when the agent sn is ABOVE ...', and stewardPeerClient.test.ts 'refuses GroupBehind when no witness is reachable'.",
    "On the happy path the correct events (sn above the agent's) are pushed one per request through the CESR door, the agent's sn is re-read after the push, and the door's 204 is not trusted as success": "stewardPeerClient.test.ts 'GETs the witness /oobi/{group}, pushes the missing events one per request, re-reads the sn' asserts two door POSTs (sn 1 then 2), one JSON event per body with the CESR-ATTACHMENT header, and the agent sn is re-read via keyStates; the door returns 204 but success is decided on the re-read sn.",
    "After a successful issue, a /multisig/iss exn with exactly the embed set above is sent from the mhab AID to each other signer's personal AID; after a revoke, a /multisig/rev exn with its embed set (including the issuance-replay acdc/iss/issanc). Sending is best-effort per recipient and a send failure never rolls the act back.": "issEmbeds/revEmbeds build the exact embed sets (stewardPeer.test.ts 'builds the exact /multisig/iss embed set' and '... /multisig/rev embed set, including the issuance-replay acdc/iss/issanc'); KERIClient.replicateAct sends from the group mhab to every OTHER signer (stewardPeerClient.test.ts 'sends /multisig/iss from the mhab to every OTHER signer'), wrapped per-recipient try/catch plus a call-site .catch() in main.ts so a failure never rolls the act back.",
    "Unit tests cover the sn-threshold branches and the exact embed shapes for both routes, in the node-env / mocked-signify style of the existing app/tests/unit/keri/* tests.": "app/tests/unit/keri/stewardPeer.test.ts (17) covers every sn-threshold branch and both embed sets; app/tests/unit/keri/stewardPeerClient.test.ts (4) covers the live KERIClient wiring, both node-env with injected connection + stubbed global fetch (the pushKel test style)."
  },
  "summary": "The control-panel steward bundle now syncs the org-group KEL from the witnesses and refuses a stale/diverged view before an issue/revoke, and sends the native /multisig/iss|rev exn to the other stewards after.",
  "unproven_by_seam": "The seam is node-env with an injected signify connection and a stubbed fetch: it proves the sn-threshold refusals and the exact embed shapes, but NOT the live CESR-door self-sync (whether KERIA advances the agent's group KEL from a door POST with CESR-DESTINATION=the group, and whether identifiers/keyStates reflect it same-cycle) nor the exn mailbox delivery (topic 'multisig' reaching the other steward's notifications so et=iss/et=rev shows after sign-in). Those ride the WKT-DEMO standing drives (spec/#2028 ruling; out of this ticket's scope).",
  "blockers": [],
  "reason": ""
}
**close-report** for #2028 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 2028, "status": "success", "commits": [ "38884e77" ], "changed_files": [ "STATUS.md", "app/src/keriweb/main.ts", "app/src/lib/keri/client.ts", "app/src/lib/keri/connection.ts", "app/src/lib/keri/stewardPeer.ts", "app/tests/unit/keri/stewardPeer.test.ts", "app/tests/unit/keri/stewardPeerClient.test.ts" ], "tests": [ { "command": "npx vitest run tests/unit/keri/stewardPeer.test.ts tests/unit/keri/stewardPeerClient.test.ts (app/)", "exit_code": 0 }, { "command": "npx vitest run tests/unit/keri/ tests/unit/keriwebStewardMount.test.ts (app/)", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit (app/)", "exit_code": 0 }, { "command": "npx eslint (changed files + pre-push `eslint .` gate)", "exit_code": 0 } ], "criteria": { "An issue/revoke first runs the group sync; when the agent ends below the highest witness sn the act is refused with GroupBehind and no signing happens": "syncGroup() re-reads the agent sn after the push and throws GroupBehind when still below the highest witnessed sn (app/src/lib/keri/stewardPeer.ts); idssKeriStewardIssue/Revoke call client.syncGroupFromWitnesses BEFORE constructing/running the KomitiCredentialDriver (app/src/keriweb/main.ts), so a throw refuses before any sign. Proven: stewardPeer.test.ts 'never trusts the door 204 ... refuses if still behind' + stewardPeerClient.test.ts 'refuses GroupBehind when the agent stays behind after the push'.", "A missing/non-hex sn, no configured witness URLs, and no reachable/valid-serving witness each surface as GroupBehind (fail closed); an agent sn above the highest witness sn surfaces as GroupDiverged. Both refuse the act.": "syncGroup() throws GroupBehind on empty witnessOobiUrls, no reachable stream, no valid group events, and a missing/non-hex agent sn; GroupDiverged when the agent sn exceeds the highest witnessed sn. Proven: stewardPeer.test.ts 'refuses GroupBehind on no configured witness URLs' / 'when no witness is reachable' / 'serves no valid group events' / 'on a missing or non-hex agent sn' / 'refuses GroupDiverged when the agent sn is ABOVE ...', and stewardPeerClient.test.ts 'refuses GroupBehind when no witness is reachable'.", "On the happy path the correct events (sn above the agent's) are pushed one per request through the CESR door, the agent's sn is re-read after the push, and the door's 204 is not trusted as success": "stewardPeerClient.test.ts 'GETs the witness /oobi/{group}, pushes the missing events one per request, re-reads the sn' asserts two door POSTs (sn 1 then 2), one JSON event per body with the CESR-ATTACHMENT header, and the agent sn is re-read via keyStates; the door returns 204 but success is decided on the re-read sn.", "After a successful issue, a /multisig/iss exn with exactly the embed set above is sent from the mhab AID to each other signer's personal AID; after a revoke, a /multisig/rev exn with its embed set (including the issuance-replay acdc/iss/issanc). Sending is best-effort per recipient and a send failure never rolls the act back.": "issEmbeds/revEmbeds build the exact embed sets (stewardPeer.test.ts 'builds the exact /multisig/iss embed set' and '... /multisig/rev embed set, including the issuance-replay acdc/iss/issanc'); KERIClient.replicateAct sends from the group mhab to every OTHER signer (stewardPeerClient.test.ts 'sends /multisig/iss from the mhab to every OTHER signer'), wrapped per-recipient try/catch plus a call-site .catch() in main.ts so a failure never rolls the act back.", "Unit tests cover the sn-threshold branches and the exact embed shapes for both routes, in the node-env / mocked-signify style of the existing app/tests/unit/keri/* tests.": "app/tests/unit/keri/stewardPeer.test.ts (17) covers every sn-threshold branch and both embed sets; app/tests/unit/keri/stewardPeerClient.test.ts (4) covers the live KERIClient wiring, both node-env with injected connection + stubbed global fetch (the pushKel test style)." }, "summary": "The control-panel steward bundle now syncs the org-group KEL from the witnesses and refuses a stale/diverged view before an issue/revoke, and sends the native /multisig/iss|rev exn to the other stewards after.", "unproven_by_seam": "The seam is node-env with an injected signify connection and a stubbed fetch: it proves the sn-threshold refusals and the exact embed shapes, but NOT the live CESR-door self-sync (whether KERIA advances the agent's group KEL from a door POST with CESR-DESTINATION=the group, and whether identifiers/keyStates reflect it same-cycle) nor the exn mailbox delivery (topic 'multisig' reaching the other steward's notifications so et=iss/et=rev shows after sign-in). Those ride the WKT-DEMO standing drives (spec/#2028 ruling; out of this ticket's scope).", "blockers": [], "reason": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#2028
No description provided.