administrator 8/8 — contract: delete role (#1948) #1956

Open
opened 2026-09-28 03:05:06 +00:00 by matou-build-agent · 3 comments

Parent

What to build

The contract half of the expand–contract. Every read site already goes
through the predicate (2/8) and the app already resolves from the credential
(matou-app#668), so the field has no readers left. Delete it:

  • the role attribute from the membership credential's attributes;
  • the role field on the roster entry and on the member wire shape;
  • the role writes in the promote/demote path;
  • the panel's ROLE column on the Members list — a column that today defaults
    to 'member' when neither the ledger row nor the projection supplies one,
    which is the incoherence this whole feature removes. A row shows the
    credentials held (Administrator among them) and whether the holder is a
    steward.
  • PU-M1's wireframe is amended in the same change, since it draws that ROLE
    column; leaving it would put the drawn contract and the code in disagreement.

The cut-over guard. No community may be cut over without an administrator
already in place. The expand window is the migration: the credential has been
issuable since 1/8 while the old check still worked, so a community issues it
from its working panel as an ordinary act, with no deadline and no support
step. This ticket must confirm that has happened.

Acceptance criteria

  • Given a live community this change reaches, when the contract lands, then at least one live Administrator credential already exists there — confirmed before the deletion, and stated in the close-report.
  • Given the contract has landed, when the codebase is searched, then nothing reads a role attribute to decide administration, membership standing or a service claim.
  • Given a membership credential issued after this, when its attributes are read, then there is no role.
  • Given the roster entry and the member wire shape, when they are read, then neither carries a role.
  • Given a promotion or demotion, when it lands, then it writes no role and the rest of its behaviour (the group rotation, the SAID, the operator-key mint) is unchanged.
  • Given the Members list, when it renders, then there is no ROLE column, and no row shows a role defaulted from nothing.
  • Given docs/ux/wireframes/p6-members-idip/p6-s1i-members.html and the panel-unlock set's PU-M1, when this lands, then their ROLE column is amended to match.
  • Given an existing community that already holds Administrator, when the contract lands, then nothing shuts and nobody is prompted, supported or migrated.
  • Given every seam in the repo, when the suite runs, then it is green — including the drive fixtures that probe the Members surface.
  • STATUS.md updated in the same commit.

Blocked by

  • 2/8 (the predicate every site now uses), 4/8, 5/8, 6/8, 7/8.
  • Matou/matou-app#668 — deleting the string before the app reads the credential would silently strip an IDSS founder's any-sync write rights, with nothing erroring.

Task manifest

task: contract-delete-role
implements_flow: administrator-credential
implements_edge: "the field every other node replaced"
wireframe:
  - docs/ux/wireframes/p6-members-idip/p6-s1i-members.html   # ROLE column amended
  - docs/ux/wireframes/panel-unlock/pu-m1-members-unlocked.html
interface: |
  remove: membership ACDC `role` attribute, roster entry role, member wire role,
          promote/demote role writes, the Members ROLE column
seam: every existing seam (the deletion is proven by the suite staying green)
acceptance:
  - given: a live community this reaches
    when: the contract lands
    then: at least one live Administrator already exists there, confirmed in the close-report
  - given: the contract has landed
    when: the codebase is searched
    then: nothing reads a role attribute for administration, standing or a claim
  - given: the Members list
    when: it renders
    then: there is no ROLE column and no defaulted role
depends_on:
  - one-decider-expand
  - what-it-opens-and-the-refusal
  - revoke-closes-the-panel
  - promotion-issues-demotion-revokes-exactly-it
  - founding-issues-administrator
  - matou-app:founding-member-from-the-credential
out_of_scope: ["#1535's per-service tranches", a bulk backfill]
needs_human_decision: []

Ticketed by /to-tickets from spec #1948 (ADR 0286); granularity, the cross-repo edge and the cut-over guard confirmed with Ben 2026-09-28. Slice-map skipped at his call — one feature, no cross-feature coupling left to find.

🤖 Generated with Claude Code

https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY

## Parent - **Spec:** [#1948 — the Administrator credential replaces the operator role](https://git.matou.nz/Matou/idss/issues/1948) (stories 22 (contract half), 23, 24) - **Design:** ADR 0286 d.11 · flow `docs/ux/flows/administrator-credential.mermaid` - **Wayfinder map:** #1293 ## What to build The **contract** half of the expand–contract. Every read site already goes through the predicate (2/8) and the app already resolves from the credential (matou-app#668), so the field has no readers left. Delete it: - the `role` attribute from the membership credential's attributes; - the role field on the roster entry and on the member wire shape; - the role writes in the promote/demote path; - the panel's **ROLE column** on the Members list — a column that today defaults to `'member'` when neither the ledger row nor the projection supplies one, which is the incoherence this whole feature removes. A row shows the credentials held (Administrator among them) and whether the holder is a steward. - **PU-M1's wireframe is amended in the same change**, since it draws that ROLE column; leaving it would put the drawn contract and the code in disagreement. **The cut-over guard.** No community may be cut over without an administrator already in place. The expand window is the migration: the credential has been issuable since 1/8 while the old check still worked, so a community issues it from its **working panel** as an ordinary act, with no deadline and no support step. This ticket must confirm that has happened. ## Acceptance criteria - [ ] **Given** a live community this change reaches, **when** the contract lands, **then** **at least one live Administrator credential already exists there** — confirmed before the deletion, and stated in the close-report. - [ ] **Given** the contract has landed, **when** the codebase is searched, **then** nothing reads a role attribute to decide administration, membership standing or a service claim. - [ ] **Given** a membership credential issued after this, **when** its attributes are read, **then** there is no `role`. - [ ] **Given** the roster entry and the member wire shape, **when** they are read, **then** neither carries a role. - [ ] **Given** a promotion or demotion, **when** it lands, **then** it writes no role and the rest of its behaviour (the group rotation, the SAID, the operator-key mint) is unchanged. - [ ] **Given** the Members list, **when** it renders, **then** there is **no ROLE column**, and no row shows a role defaulted from nothing. - [ ] **Given** `docs/ux/wireframes/p6-members-idip/p6-s1i-members.html` and the panel-unlock set's PU-M1, **when** this lands, **then** their ROLE column is amended to match. - [ ] **Given** an existing community that already holds Administrator, **when** the contract lands, **then** nothing shuts and nobody is prompted, supported or migrated. - [ ] **Given** every seam in the repo, **when** the suite runs, **then** it is green — including the drive fixtures that probe the Members surface. - [ ] STATUS.md updated in the same commit. ## Blocked by - 2/8 (the predicate every site now uses), 4/8, 5/8, 6/8, 7/8. - **Matou/matou-app#668** — deleting the string before the app reads the credential would silently strip an IDSS founder's any-sync write rights, with nothing erroring. ## Task manifest ```yaml task: contract-delete-role implements_flow: administrator-credential implements_edge: "the field every other node replaced" wireframe: - docs/ux/wireframes/p6-members-idip/p6-s1i-members.html # ROLE column amended - docs/ux/wireframes/panel-unlock/pu-m1-members-unlocked.html interface: | remove: membership ACDC `role` attribute, roster entry role, member wire role, promote/demote role writes, the Members ROLE column seam: every existing seam (the deletion is proven by the suite staying green) acceptance: - given: a live community this reaches when: the contract lands then: at least one live Administrator already exists there, confirmed in the close-report - given: the contract has landed when: the codebase is searched then: nothing reads a role attribute for administration, standing or a claim - given: the Members list when: it renders then: there is no ROLE column and no defaulted role depends_on: - one-decider-expand - what-it-opens-and-the-refusal - revoke-closes-the-panel - promotion-issues-demotion-revokes-exactly-it - founding-issues-administrator - matou-app:founding-member-from-the-credential out_of_scope: ["#1535's per-service tranches", a bulk backfill] needs_human_decision: [] ``` --- *Ticketed by `/to-tickets` from spec [#1948](https://git.matou.nz/Matou/idss/issues/1948) (ADR 0286); granularity, the cross-repo edge and the cut-over guard confirmed with Ben 2026-09-28. Slice-map skipped at his call — one feature, no cross-feature coupling left to find.* 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_015es4bpK4qRqZhrRYQBWCiY
Author
Member

Blocked — needs a human decision (asked, no reply in time)

The contract cannot land as scoped. The ticket premise ("Every read site already
goes through the predicate (2/8) … so the field has no readers left") and story 22
/ AC-2 ("nothing reads a role attribute … for administration, membership standing
or a service claim") are not borne out by the IDSS Go backend.

The HoldsAdministrator predicate (2/8) migrated only the administration and
bridge service-claim readers (idp verifier.go/storage.go, controlapi
idip_gate.go, spaces.go proof-authz) — those reduce to dropping the
legacyOperator arm, as expected. But four live, security-critical Go readers of
the roster/wire role being deleted are NOT covered by that predicate and have no
group-AID replacement on the Go side
:

  1. keria.IsOperator (internal/keria/operators.go L87, L110) — the steward
    signing gate, consumed by controlapi/spaces.go L329, idip_gate.go
    L194/L259, idip_authz.go L107, me.go L177 (who may record a space / sign).
    Its presented-holder arm reads role off the membership ACDC (Claims.Role,
    set from the ACDC role attribute) — deleting the attribute removes its only
    runtime source, so an app-approved (presented) steward would silently stop being
    recognised as a steward on the Go control plane.
  2. controlapi.IdipRoleReconciler (internal/controlapi/idip_roles.go
    ReconcileService/Operators) via keria.GateRoster.LivePeople's
    Operator
    flag (gateroster.go L193, reading RosterEntry.Role/
    PresentedRow.Role) — grants admin in each community service. ADR 0286 d.3
    says re-key this on the administrator slug; that migration is not done.
  3. orgconfig.AdminsFromRoster (internal/orgconfig/render.go L162-174) —
    renders the deployed org-config admins/steward set from MemberView.Role.
  4. keria removal isSteward (internal/keria/removal.go L278) — removal
    eligibility (a steward cannot be removed until rotated out).

The spec's steward-check migration (story 25 / implementation decision 10) is
matou-app-only — its steward check asks signify for group-identity membership,
which landed in Matou/matou-app#668 (closed). The IDSS Go backend's own
steward gate, service reconciler and org-config admins derivation were assumed done
but were never migrated, and ADR 0286 d.12's replacement (steward = community
group-AID membership) has no reader on the Go side.

Deleting role while these remain would either break the build or, worse, silently
narrow/alter who can sign and who is admin in every service — a security-posture
change with no provable-two-way test (the presented-holder hole is invisible to the
seams, which inject rows directly). #1950 itself flagged this deferral: "the
roster's live-operator check stays the steward/liveness gate."

Why human

Re-basing the Go-side steward gate, the service reconciler and the org-config admins
derivation off role is a security-posture decision (signing authority + per-
service admin grants) with no group-AID source on the Go side and no
prerequisite ticket — so it is not a two-way door I can rule under ADR 0174. It
needs a design ruling before the contract can safely land.

The decision needed (verbatim, as asked on Mattermost — no reply within 20 min)

The contract can't land as scoped … the IDSS Go backend still has FOUR live,
un-migrated readers of the roster/wire role being deleted … How to proceed?

(A) Blocked on a missing prerequisite: a Go-side steward migration
(IsOperator/AdminsFromRoster/isSteward → group-AID membership) + reconciler
re-key (idip_roles → administrator slug). File it, block #1956 on it.

(B) Keep a decoupled control-plane steward marker (rename roster/presented
Role → a Steward bool written by Promote/Demote, satisfying "no role
attribute"), re-key the reconciler to the administrator slug, and DROP
presented-holder Go steward recognition (app now resolves steward from group AID,
#668). Confirm that narrowing is intended + how a presented app-approved steward
is recognised on the Go control plane.

(C) Something else.

Leaning (A) — the honest scope.

To re-arm

Pick (A), (B) or (C). If (A), the prerequisite ticket(s) must land first, then add
depends_on and re-add ready-for-agent. If (B)/(C), record the ruling here (the
presented-holder steward source is the crux) and re-add ready-for-agent. A late
Mattermost reply on the same thread is not lost — the next ask for #1956 resumes it.

## Blocked — needs a human decision (asked, no reply in time) The contract cannot land as scoped. The ticket premise ("Every read site already goes through the predicate (2/8) … so the field has no readers left") and story 22 / AC-2 ("nothing reads a role attribute … for administration, membership standing or a service claim") are **not borne out by the IDSS Go backend**. The `HoldsAdministrator` predicate (2/8) migrated only the **administration** and **bridge service-claim** readers (idp `verifier.go`/`storage.go`, controlapi `idip_gate.go`, `spaces.go` proof-authz) — those reduce to dropping the `legacyOperator` arm, as expected. But **four live, security-critical Go readers of the roster/wire `role` being deleted are NOT covered by that predicate and have no group-AID replacement on the Go side**: 1. **`keria.IsOperator`** (`internal/keria/operators.go` L87, L110) — the steward **signing** gate, consumed by `controlapi/spaces.go` L329, `idip_gate.go` L194/L259, `idip_authz.go` L107, `me.go` L177 (who may record a space / sign). Its **presented-holder** arm reads role off the membership ACDC (`Claims.Role`, set from the ACDC role attribute) — deleting the attribute removes its only runtime source, so an app-approved (presented) steward would silently stop being recognised as a steward on the Go control plane. 2. **`controlapi.IdipRoleReconciler`** (`internal/controlapi/idip_roles.go` `ReconcileService`/`Operators`) via **`keria.GateRoster.LivePeople`'s `Operator`** flag (`gateroster.go` L193, reading `RosterEntry.Role`/ `PresentedRow.Role`) — grants admin in each community **service**. ADR 0286 d.3 says re-key this on the `administrator` slug; that migration is not done. 3. **`orgconfig.AdminsFromRoster`** (`internal/orgconfig/render.go` L162-174) — renders the deployed org-config `admins`/steward set from `MemberView.Role`. 4. **`keria` removal `isSteward`** (`internal/keria/removal.go` L278) — removal eligibility (a steward cannot be removed until rotated out). The spec's steward-check migration (**story 25 / implementation decision 10**) is **matou-app-only** — its steward check asks signify for group-identity membership, which landed in `Matou/matou-app#668` (closed). The **IDSS Go backend's** own steward gate, service reconciler and org-config admins derivation were assumed done but were never migrated, and ADR 0286 d.12's replacement (steward = community group-AID membership) has **no reader on the Go side**. Deleting `role` while these remain would either break the build or, worse, silently **narrow/alter who can sign and who is admin in every service** — a security-posture change with no provable-two-way test (the presented-holder hole is invisible to the seams, which inject rows directly). #1950 itself flagged this deferral: *"the roster's live-operator check stays the steward/liveness gate."* ## Why human Re-basing the Go-side steward gate, the service reconciler and the org-config admins derivation off `role` is a **security-posture decision** (signing authority + per- service admin grants) with **no group-AID source on the Go side** and no prerequisite ticket — so it is not a two-way door I can rule under ADR 0174. It needs a design ruling before the contract can safely land. ### The decision needed (verbatim, as asked on Mattermost — no reply within 20 min) > The contract can't land as scoped … the IDSS Go backend still has FOUR live, > un-migrated readers of the roster/wire `role` being deleted … How to proceed? > > **(A)** Blocked on a missing prerequisite: a Go-side steward migration > (`IsOperator`/`AdminsFromRoster`/`isSteward` → group-AID membership) + reconciler > re-key (`idip_roles` → `administrator` slug). File it, block #1956 on it. > > **(B)** Keep a decoupled control-plane steward marker (rename roster/presented > `Role` → a `Steward bool` written by Promote/Demote, satisfying "no role > attribute"), re-key the reconciler to the `administrator` slug, and DROP > presented-holder Go steward recognition (app now resolves steward from group AID, > #668). Confirm that narrowing is intended + how a presented app-approved steward > is recognised on the Go control plane. > > **(C)** Something else. > > Leaning (A) — the honest scope. ## To re-arm Pick (A), (B) or (C). If (A), the prerequisite ticket(s) must land first, then add `depends_on` and re-add `ready-for-agent`. If (B)/(C), record the ruling here (the presented-holder steward source is the crux) and re-add `ready-for-agent`. A late Mattermost reply on the same thread is not lost — the next ask for #1956 resumes it.
Author
Member

Re-confirmed this iteration — still blocked, no reply

A second agent run (host bens-mac-04, run 34818) independently reached the same
conclusion
as the block above: deleting role removes the control-plane's only
record of the steward set (group-AID membership / signing power, which ADR 0286
d.2 keeps distinct from the Administrator credential). The live, un-migrated readers
with no built replacement:

  • Registry.Operators() — majority-rotation sizing + solo-steward nudge
  • RegistryOperators.IsOperator — the steward signing gate (StewardResolver.Authorize, spaces door, /me)
  • removal.go isSteward — a steward can't be removed until rotated out
  • gateroster LivePerson.Operator
  • dashboard IdipRosterPanel make/remove-steward buttons + stewardCount

The set can't be derived from held credentials — a founder-administrator
(ByPromotion=false) is indistinguishable from a panel-issued non-steward
administrator
, so re-sourcing from "holds Administrator" would widen the signing
gate (a one-way door, against d.2).

I re-asked on Mattermost; the ask resumed the same still-open thread (no
duplicate posted) and timed out again with no reply within 20 min. So the block
stands unchanged — awaiting the (A)/(B)/(C) ruling above. Leaving ready-for-human.

Two secondary human items also unresolved: the cut-over guard (AC-1: ≥1 live
Administrator must already exist in the communities this reaches — not verifiable
from the sandbox) and the schema-SAID migration (dropping credschema.AttrRole
changes the published membership schema SAID, a cross-repo contract with matou-app).

Releasing this run's claim; labels unchanged.

## Re-confirmed this iteration — still blocked, no reply A second agent run (host bens-mac-04, run 34818) independently reached the **same conclusion** as the block above: deleting `role` removes the control-plane's only record of the **steward set** (group-AID membership / signing power, which ADR 0286 d.2 keeps distinct from the Administrator credential). The live, un-migrated readers with no built replacement: - `Registry.Operators()` — majority-rotation sizing + solo-steward nudge - `RegistryOperators.IsOperator` — the steward **signing** gate (`StewardResolver.Authorize`, spaces door, `/me`) - `removal.go` `isSteward` — a steward can't be removed until rotated out - `gateroster` `LivePerson.Operator` - dashboard `IdipRosterPanel` make/remove-steward buttons + `stewardCount` The set can't be derived from held credentials — a **founder-administrator** (`ByPromotion=false`) is indistinguishable from a **panel-issued non-steward administrator**, so re-sourcing from "holds Administrator" would widen the signing gate (a one-way door, against d.2). I re-asked on Mattermost; the ask **resumed the same still-open thread** (no duplicate posted) and **timed out again with no reply** within 20 min. So the block stands unchanged — awaiting the (A)/(B)/(C) ruling above. Leaving `ready-for-human`. Two secondary human items also unresolved: the **cut-over guard** (AC-1: ≥1 live Administrator must already exist in the communities this reaches — not verifiable from the sandbox) and the **schema-SAID migration** (dropping `credschema.AttrRole` changes the published membership schema SAID, a cross-repo contract with matou-app). Releasing this run's claim; labels unchanged.
Owner

A new condition on this ticket, from ADR 0289's 2026-09-29 amendment (on main at 2ac82b29, #1997).

Ben ruled that the control panel is always open to the community's stewards, with or without Administrator. The gate already admitted a steward — but only through the legacy-role half of credschema.HoldsAdministrator, the arm this ticket deletes. It is now a rule of its own (GateReasonSteward, internal/controlapi/idip_gate.go), pinned by internal/controlapi/idip_gate_steward_test.go.

What that changes here. The gate reads stewardship through keria.RegistryOperators.IsOperator: live Membership and role: operator. Delete role and that read answers no for everyone — and every steward who holds no Administrator is locked out of the panel.

Added acceptance criteria:

  • Given the change lands, then the gate's steward read (OperatorCheck) is sourced from the community group identity's signers, not from role. #1996's orgconfig.StewardSigners is the panel's read and names no role of its own, but AdminsFromRoster beneath it still derives from the roster — re-source that too.
  • Given a steward who holds no live Administrator, when they sign in after the change, then the control panel opens. idip_gate_steward_test.go stays green without being edited.
  • Given the steward routes (issue, revoke, approve), then they authorise on the same re-sourced read.
  • The read still requires live Membership: a suspended steward is not a steward.

The cut-over guard already in this ticket (at least one live Administrator exists) stands, and is no longer the only thing between a community and a lockout.

GOTCHAS #370 records why this was nearly missed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH

**A new condition on this ticket, from ADR 0289's 2026-09-29 amendment (on main at `2ac82b29`, #1997).** Ben ruled that **the control panel is always open to the community's stewards**, with or without Administrator. The gate already admitted a steward — but only through the legacy-role half of `credschema.HoldsAdministrator`, the arm this ticket deletes. It is now a rule of its own (`GateReasonSteward`, `internal/controlapi/idip_gate.go`), pinned by `internal/controlapi/idip_gate_steward_test.go`. **What that changes here.** The gate reads stewardship through `keria.RegistryOperators.IsOperator`: live Membership **and** `role: operator`. Delete `role` and that read answers *no* for everyone — and every steward who holds no Administrator is locked out of the panel. **Added acceptance criteria:** - [ ] **Given** the change lands, **then** the gate's steward read (`OperatorCheck`) is sourced from the community group identity's signers, not from `role`. #1996's `orgconfig.StewardSigners` is the panel's read and names no `role` of its own, but `AdminsFromRoster` beneath it still derives from the roster — re-source that too. - [ ] **Given** a steward who holds **no** live Administrator, **when** they sign in after the change, **then** the control panel opens. `idip_gate_steward_test.go` stays green without being edited. - [ ] **Given** the steward routes (issue, revoke, approve), **then** they authorise on the same re-sourced read. - [ ] The read still requires **live Membership**: a suspended steward is not a steward. The cut-over guard already in this ticket (*at least one live Administrator exists*) stands, and is no longer the only thing between a community and a lockout. GOTCHAS #370 records why this was nearly missed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH
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.

Reference
Matou/idss#1956
No description provided.