You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id(event-store): signed group operations that don't bridge in #3725 still bypass the groups fold — author-unlisted creates, author-below-Manage creates and group-as-member ops keep the membership verdict alone, and #168 closed with no follow-up tracking them #6980
PR #3725 closed #168 ("production ingest enforces only p2panda-auth membership"), but a whole class of signed store operations still never reaches the groups fold on the production ingest path — they keep the membership verdict alone, so the fold rules the PR lists (only an Admin changes a role or removes an Admin, a create may not repeat a member, a manager acts only through a chain from an owner) do not gate them:
a group create that does not list its author;
a group create that lists its author below Manage access;
any operation naming a group as its member (add/remove/promote/demote of a group);
friendship/policy bodies the body codec does not carry (per the PR body).
The limits are documented in the code, but no follow-up issue was filed for them — #168 is CLOSED, so as far as the tracker is concerned the production-ingest gap is finished, while these signed operations remain ungated on every path that derives from resolve() (ingest, refresh/replay, late-body attach, sync batches).
Evidence
Source PR: id(event-store): apply the groups fold on production ingest (#168) #3725 (merged, merge commit 60c325f397a548ee7601ef4caa7b977f6d05d559); its body: "Creates not listing their author keep the membership verdict alone" and "Operations naming a group as a member, and friendship/policy bodies the body codec does not carry, are not bridged; the fold judges those when they travel as group events."
On current main (fc035359245855fd5b3db1d6b85ee60223abcf20, verified via git show origin/main), pkgs/id/src/event_store/resolve.rs:
Lines 225–231 (doc on fold_projection): operations that do not bridge "are left out and keep the membership verdict".
Lines 314–324 in bridge(): a create listing its author with !access.is_manage() returns None (does not bridge), and if !author_listed { return None; } at lines 322–324.
Line 364 (member_key): GroupMember::Individual(AuthId::Group(_)) | GroupMember::Group(_) => None — a group-as-member operation cannot bridge, so bridge() returns None for it.
Why it matters
These are not exotic shapes: a create that omits its author from the member list, or a group nested as a member of another group, are ordinary signed operations a peer can put in the store. For all of them the Admin-only role/removal rules and the no-duplicate-member rule simply do not run on production ingest — the store can apply what group projections refuse, which is the divergence #168 existed to close. If full bridging is impossible for some shapes, that residual needs a tracked disposition (bridge them, refuse them at ingest, or a documented ruling that membership-only is sufficient for those shapes) instead of an untracked code comment.
Acceptance criteria
Each unbridged shape (author-unlisted create, author-below-Manage create, group-as-member operation, codec-uncarried friendship/policy body) has a tracked disposition: bridged into the fold, refused at ingest with a named reason, or a documented ruling recorded on this issue explaining why membership-only judgement is sufficient for that shape.
For every shape that gets bridged, a production-path test (ingest_with_body style) shows a fold-voided operation of that shape does not apply.
The disposition is reflected in the fold_projection/bridge doc comments, so the code no longer presents untracked limits as settled behaviour.
Agent: queue worker (repo-worker-code), lane code-d
Session / ID: task 11402
Found via: queue claim
Task: Disposition every unbridged signed group operation shape in pkgs/id/src/event_store/resolve.rs. Each shape below was re-verified against the code at main (bridge(), member_key(), the module rule-4 doc) and against the two models' semantics. Disposition for all four shapes: documented ruling — membership-only judgement stands, for the reasons given per shape. The resolve.rs doc comments are updated in the accompanying PR to present these as tracked rulings citing this issue, not as untracked limits (acceptance Bump build/buck/preludes/buck2-prelude from 3a02ea3 to 6b71c24 #3). No shape is bridged, so acceptance Bump checkmarx/ast-github-action from 2.0.11 to 2.0.18 #2 (production-path tests for bridged shapes) does not bind; the existing targeted resolve tests stay green (acceptance Bump build/buck/preludes/buck2-prelude from 3a02ea3 to 9530656 #4, verified in the PR).
Shape 1 — create that does not list its author. Ruling: does not bridge.
The two models name the creator differently, and the difference is load-bearing, not cosmetic. The fold counts the creator as a member and Admin by construction; the membership layer knows the creator only as listed — an unlisted creator holds no authority, and its later operations are already judged ineffective by the membership layer on exactly that basis. Bridging would import the fold's premise into verdicts membership denies: a Manage-listed member removing the creator is legitimate to the membership layer (the creator is not an Admin there — not a member at all), but the fold's "only an Admin may remove an Admin" rule would void it; and the fold projection, which supplies the roster for a bridged group, would name as an Admin-member someone the membership layer does not count as a member. Until the two models agree on what an unlisted creator IS, the membership verdict — the conservative one, which grants the creator nothing — is the sufficient judgement. The one fold gate lost is the duplicate-member check on the create's own list; that is accepted and tracked here.
Shape 2 — create that lists its author below Manage. Ruling: does not bridge.
The same divergence, in sharper form: the create itself assigns the creator a non-Manage access, the membership layer honours it, and the fold would override it to Admin by construction. Bridging would void operations (again: removal or role-change of the creator by a Manage member) that the layer which owns the creator's actual access accepts. A create that wants its creator judged as an Admin by both layers lists the author at Manage — that form bridges today. (This is the disposition PR #3725 reached with Codex review; it is now tracked here as a ruling rather than left as a PR-body remark.)
Shape 3 — operations naming a group as a member (add/remove/promote/demote). Ruling: does not bridge.
Unrepresentable in the fold's event model, not merely unimplemented: group events name account keys only, and a group's roster is a set of accounts. Writing a group member into the fold as its group-ID bytes would conflate group IDs with account keys in the roster and in every role rule that reads it. Group members are first-class in the membership layer (p2panda-auth), which judges these operations with its strong-remove rules; that layer is the designed judge for them. When the same membership state travels as native group events (the serve/directory path), the fold judges the individual members there. Changing this requires a fold model change (group-valued members), which this issue's scope explicitly excludes.
Shape 4 — friendship/policy bodies the body codec does not carry. Ruling: nothing reaches resolve to bridge; membership/content judgement stands.
A signed store body of these kinds decodes to neither a membership action nor a recorded body at ingest, so at resolve time there is no operation to bridge — the events apply as content under resolve rule 3, and policy carried on a bridged create is the default policy record, as the fold_projection doc already states. The mechanism that WOULD carry such a body is the ingest-side recording channel built for device operations in issue #5656 (Stored::device); extending that channel to policy bodies is an ingest/codec feature, not a resolve change, and is the tracked path if signed policy bodies ever need fold judgement on this path. On the native group-event path, Policy and Join bodies are fold bodies today and are judged by the fold there.
Net effect: every unbridged shape named in this issue now has a tracked disposition with its reasoning, recorded here and cited from the code. If the creator-model divergence (shapes 1–2) is ever reconciled upstream, or the fold gains group-valued members (shape 3), the ruling for that shape should be revisited and bridging implemented with the production-path tests this issue's acceptance names.
Activity
developing-today commentedon Nov 7, 2026
CODE-2216
dezren39 commentedon Nov 8, 2026
🤖 Agent note · picked up
22 remaining items
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done (per-shape dispositions — rulings recorded)
pkgs/id/src/event_store/resolve.rs. Each shape below was re-verified against the code at main (bridge(), member_key(), the module rule-4 doc) and against the two models' semantics. Disposition for all four shapes: documented ruling — membership-only judgement stands, for the reasons given per shape. The resolve.rs doc comments are updated in the accompanying PR to present these as tracked rulings citing this issue, not as untracked limits (acceptance Bump build/buck/preludes/buck2-prelude from3a02ea3to6b71c24#3). No shape is bridged, so acceptance Bump checkmarx/ast-github-action from 2.0.11 to 2.0.18 #2 (production-path tests for bridged shapes) does not bind; the existing targeted resolve tests stay green (acceptance Bump build/buck/preludes/buck2-prelude from3a02ea3to9530656#4, verified in the PR).Shape 1 — create that does not list its author. Ruling: does not bridge.
The two models name the creator differently, and the difference is load-bearing, not cosmetic. The fold counts the creator as a member and Admin by construction; the membership layer knows the creator only as listed — an unlisted creator holds no authority, and its later operations are already judged ineffective by the membership layer on exactly that basis. Bridging would import the fold's premise into verdicts membership denies: a Manage-listed member removing the creator is legitimate to the membership layer (the creator is not an Admin there — not a member at all), but the fold's "only an Admin may remove an Admin" rule would void it; and the fold projection, which supplies the roster for a bridged group, would name as an Admin-member someone the membership layer does not count as a member. Until the two models agree on what an unlisted creator IS, the membership verdict — the conservative one, which grants the creator nothing — is the sufficient judgement. The one fold gate lost is the duplicate-member check on the create's own list; that is accepted and tracked here.
Shape 2 — create that lists its author below Manage. Ruling: does not bridge.
The same divergence, in sharper form: the create itself assigns the creator a non-Manage access, the membership layer honours it, and the fold would override it to Admin by construction. Bridging would void operations (again: removal or role-change of the creator by a Manage member) that the layer which owns the creator's actual access accepts. A create that wants its creator judged as an Admin by both layers lists the author at Manage — that form bridges today. (This is the disposition PR #3725 reached with Codex review; it is now tracked here as a ruling rather than left as a PR-body remark.)
Shape 3 — operations naming a group as a member (add/remove/promote/demote). Ruling: does not bridge.
Unrepresentable in the fold's event model, not merely unimplemented: group events name account keys only, and a group's roster is a set of accounts. Writing a group member into the fold as its group-ID bytes would conflate group IDs with account keys in the roster and in every role rule that reads it. Group members are first-class in the membership layer (p2panda-auth), which judges these operations with its strong-remove rules; that layer is the designed judge for them. When the same membership state travels as native group events (the serve/directory path), the fold judges the individual members there. Changing this requires a fold model change (group-valued members), which this issue's scope explicitly excludes.
Shape 4 — friendship/policy bodies the body codec does not carry. Ruling: nothing reaches resolve to bridge; membership/content judgement stands.
A signed store body of these kinds decodes to neither a membership action nor a recorded body at ingest, so at resolve time there is no operation to bridge — the events apply as content under resolve rule 3, and policy carried on a bridged create is the default policy record, as the fold_projection doc already states. The mechanism that WOULD carry such a body is the ingest-side recording channel built for device operations in issue #5656 (Stored::device); extending that channel to policy bodies is an ingest/codec feature, not a resolve change, and is the tracked path if signed policy bodies ever need fold judgement on this path. On the native group-event path, Policy and Join bodies are fold bodies today and are judged by the fold there.
Net effect: every unbridged shape named in this issue now has a tracked disposition with its reasoning, recorded here and cited from the code. If the creator-model divergence (shapes 1–2) is ever reconciled upstream, or the fold gains group-valued members (shape 3), the ruling for that shape should be revisited and bridging implemented with the production-path tests this issue's acceptance names.
Merge pull request #8393 from developing-today/queue/11402-6980-dispo…
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done (fixed_merged — dispositions recorded and cited from the code)
pkgs/id/src/event_store/resolve.rs(module rule-4 doc,fold_projectiondoc,bridgecreate comment,member_keydoc), so the unbridged shapes read as tracked dispositions, not untracked limits (acceptance Bump build/buck/preludes/buck2-prelude from3a02ea3to6b71c24#3). No shape was bridged, so acceptance Bump checkmarx/ast-github-action from 2.0.11 to 2.0.18 #2 does not bind; acceptance Bump build/buck/preludes/buck2-prelude from3a02ea3to9530656#4 verified locally:cargo test --lib event_storein pkgs/id — 134 passed, 0 failed, 2 ignored. Codex review of the PR head completed with no findings.