control panel: sync the org group before an issue/revoke, and send /multisig/iss|rev to the other stewards after #2028
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#2028
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?
Spec (matou-app, merged to main as
edc5a03on 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
GroupBehindsyncGroup(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).GroupBehindif the agent's sn is below the highest witness sn after the push. ThrowGroupDivergedif the agent's sn is GREATER than the highest witness sn (the agent holds events no witness serves). Never trust the door's 204.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.GroupBehindandGroupDiverged. 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.tsactEmbedParts(b= the credential export bundle; each part is{ sad, atc },atcbeing the CESR signature attachment):/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 }acdc,issandissancon 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=isson the other steward's agent (credentials().state(regk, said)) after they sign in to the app. Likewise a panel revoke showset=rev. The harnessfrontend/tests/infra/steward-peer.infra.tsgate 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.
Ruled by agent under ADR 0174 — veto anytime.
Ruling:
enhancement+ready-for-agent.Why this is a two-way door:
window.idssKeriSteward, mounted byapp/src/keriweb) plus a supporting sync/replicate lib — undone by a commit or a label flip.docs/ux/flows/, wireframe, or seam — so noneeds-designgate fires. The issue/revoke UI surfaces already exist; this is the signing/replication logic behind them.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 noneeds-inforesidue.What proves it: the sn-threshold decisions (
GroupBehind/GroupDivergedrefusals) and the exact/multisig/issand/multisig/revembed sets are unit-testable in idss's existing KERI unit-test style (node-env vitest with mocked witness/oobistreams + a mocked CESR door, asapp/tests/unit/keri/*already does). The true end-to-end acceptance ("et=isson 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).GroupBehindif, 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.GroupDivergedif the agent's sn is greater than the highest witness sn (the agent holds events no witness serves).GroupBehindorGroupDiverged.After each issue or revoke — send the native group-issuance exn (best-effort, never roll the act back):
mhab). Recipients: every other signer's personal AID./multisig/iss, payload{ gid }, embedsacdc{sad: b.acdc.event, atc: ''},iss{sad: b.iss.event, atc: ''},anc{sad: b.issAnc.event, atc: b.issAnc.attachment}./multisig/rev, payload{ gid }, embedsacdc{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}(theacdc/iss/issancon a rev let a receiver that lacks the credential replay the issuance first).bis 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)).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 fromactEmbedParts.Key interfaces:
StewardIssueRequest/StewardRevokeRequestonIdipStewardBundle, implemented in thewindow.idssKeriStewardbundle) — each gains a sync-before step and an exn-send-after step. The sync + refusal logic should be a testable unit (e.g. asyncGroupreturning/throwing on the sn comparison) rather than inlined into each act.GroupBehind/GroupDivergedfailure type surfaced to the dashboard so the panel refuses the act and reports why (mirror the existingrecords-unreachablerefusal shape the bundle already raises).app/src/lib/keriwitness extraction) supplies the/oobi/{group}hosts.Acceptance criteria:
GroupBehindand no signing happens.GroupBehind(fail closed); an agent sn above the highest witness sn surfaces asGroupDiverged. Both refuse the act./multisig/issexn with exactly the embed set above is sent from themhabAID to each other signer's personal AID; after a revoke, a/multisig/revexn with its embed set (including the issuance-replayacdc/iss/issanc). Sending is best-effort per recipient and a send failure never rolls the act back.app/tests/unit/keri/*tests. (frontend/tests/infra/steward-peer.infra.tsg1/g3 in matou-app is the behavioural reference for the exchange.)Out of scope:
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.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