administrator: the panel learns whether the signed-in identity is a steward — no Members tab for an administrator who is not (AC-A1), read from the group identity's signers, never role #1996

Closed
opened 2026-09-29 06:12:26 +00:00 by ben · 3 comments
Owner

Parent

  • Design: ADR 0286 (AC-A1, ruled by Ben 2026-09-28 at the wireframe gate: an administrator who is not a steward has no Members tab) · ADR 0282's 2026-09-29 amendment, obligation 3(e), which depends on it.
  • Wireframe: docs/ux/wireframes/administrator-credential/ac-a1-the-control-panel.html
  • Related: #1956 (deletes role) · the panel-unlock tickets.

Why

Two drawn screens need the panel to know one fact it does not know: is the signed-in identity a steward?

  • AC-A1 — an administrator who is not a steward has no Members tab at all. Nothing in the panel's shell reads stewardship today, so the tab is shown to every administrator, and one who is not a steward meets a locked seat they can never unlock.
  • ADR 0282's amendment leans on AC-A1 to say such a person never meets PU-M0.

The gateway reads stewardship off the roster's role today (internal/keria/removal.go, isSteward). #1956 removes role. ADR 0286 already names what stewardship is: membership of the community group identity — on IDSS the org-config admins list is the steward set (ADR 0226 §3).

What to build

  1. The gateway answers whether the signed-in identity is a steward, read from the community group identity's signers, never from a role string. It rides the identity read the panel already makes.
  2. The panel's nav has no Members item for an administrator who is not a steward (AC-A1), and a direct visit to the Members address says so rather than drawing PU-M0.
  3. An unreadable answer is unknown, not no: the tab is shown and the seat's own states stand.

Acceptance criteria

  • Given a signed-in administrator who is one of the community group identity's signers, then the panel shows Members.
  • Given a signed-in administrator who is not, then the nav has no Members item and the identity line reads as AC-A1 draws it.
  • Given that administrator visits the Members address directly, then they are told Members is a steward's, and no unlock is offered.
  • Given the signer set cannot be read, then Members is shown and nothing is claimed about stewardship.
  • Given the change lands, then the answer does not read role, so #1956 can delete it without touching this.

Ruling

Two-way door (ADR 0174): revertible with a commit, provable by the seam. Where the signer set is read from is the implementer's.

Blocked by

None.

Task manifest

task: panel-knows-whether-the-signed-in-identity-is-a-steward
implements_flow: administrator-credential
implements_edge: "AC-A1 (no Members tab for an administrator who is not a steward)"
wireframe:
  - docs/ux/wireframes/administrator-credential/ac-a1-the-control-panel.html
interface: |
  gateway: the identity read says whether the signed-in AID is one of the community group identity's signers
  panel: no Members nav item when it is not; unknown shows the tab
seam: internal/controlapi identity seam + dashboard/tests/unit (the shell's nav)
acceptance:
  - given: an administrator who is not a steward
    when: the panel renders
    then: the nav has no Members item
  - given: the signer set cannot be read
    when: the panel renders
    then: Members is shown and nothing is claimed
depends_on: []
out_of_scope: [deleting role (#1956), the seat unlock (the panel-unlock tickets)]
needs_human_decision: []

Filed 2026-09-29 from the first live control-panel sign-in through the app (Whakatōhea Demo, app 0.8.1), which found the seat unlock has never worked on a live community. Every earlier ticket in the arc closed green against a fake of the other side; #1936 is the live proof, and the arc does not close without it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH

## Parent - **Design:** ADR 0286 (AC-A1, ruled by Ben 2026-09-28 at the wireframe gate: *an administrator who is not a steward has no Members tab*) · ADR 0282's 2026-09-29 amendment, obligation **3(e)**, which depends on it. - **Wireframe:** `docs/ux/wireframes/administrator-credential/ac-a1-the-control-panel.html` - **Related:** #1956 (deletes `role`) · the panel-unlock tickets. ## Why Two drawn screens need the panel to know one fact it does not know: **is the signed-in identity a steward?** - **AC-A1** — an administrator who is not a steward has no Members tab at all. Nothing in the panel's shell reads stewardship today, so the tab is shown to every administrator, and one who is not a steward meets a locked seat they can never unlock. - **ADR 0282's amendment** leans on AC-A1 to say such a person never meets PU-M0. The gateway reads stewardship off the roster's `role` today (`internal/keria/removal.go`, `isSteward`). #1956 removes `role`. ADR 0286 already names what stewardship is: **membership of the community group identity** — on IDSS the org-config `admins` list *is* the steward set (ADR 0226 §3). ## What to build 1. **The gateway answers whether the signed-in identity is a steward**, read from the community group identity's signers, never from a role string. It rides the identity read the panel already makes. 2. **The panel's nav has no Members item** for an administrator who is not a steward (AC-A1), and a direct visit to the Members address says so rather than drawing PU-M0. 3. An unreadable answer is **unknown**, not *no*: the tab is shown and the seat's own states stand. ## Acceptance criteria - [ ] **Given** a signed-in administrator who is one of the community group identity's signers, **then** the panel shows Members. - [ ] **Given** a signed-in administrator who is not, **then** the nav has no Members item and the identity line reads as AC-A1 draws it. - [ ] **Given** that administrator visits the Members address directly, **then** they are told Members is a steward's, and no unlock is offered. - [ ] **Given** the signer set cannot be read, **then** Members is shown and nothing is claimed about stewardship. - [ ] **Given** the change lands, **then** the answer does not read `role`, so #1956 can delete it without touching this. ## Ruling Two-way door (ADR 0174): revertible with a commit, provable by the seam. Where the signer set is read from is the implementer's. ## Blocked by None. ## Task manifest ```yaml task: panel-knows-whether-the-signed-in-identity-is-a-steward implements_flow: administrator-credential implements_edge: "AC-A1 (no Members tab for an administrator who is not a steward)" wireframe: - docs/ux/wireframes/administrator-credential/ac-a1-the-control-panel.html interface: | gateway: the identity read says whether the signed-in AID is one of the community group identity's signers panel: no Members nav item when it is not; unknown shows the tab seam: internal/controlapi identity seam + dashboard/tests/unit (the shell's nav) acceptance: - given: an administrator who is not a steward when: the panel renders then: the nav has no Members item - given: the signer set cannot be read when: the panel renders then: Members is shown and nothing is claimed depends_on: [] out_of_scope: [deleting role (#1956), the seat unlock (the panel-unlock tickets)] needs_human_decision: [] ``` --- *Filed 2026-09-29 from the first live control-panel sign-in through the app (Whakatōhea Demo, app 0.8.1), which found the seat unlock has never worked on a live community. Every earlier ticket in the arc closed green against a fake of the other side; **#1936 is the live proof, and the arc does not close without it.*** 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WgMdPvssS1d7W1v2dL7bcH

This was generated by AI during triage.

Triage: ready-for-agent (enhancement)

Verified against the codebase in this headless run. Both design-tier gates checked and neither fires; the issue body already carries a complete brief, task manifest, and acceptance criteria.

Design contract present (missing-design gate does not fire):

  • Wireframe exists: docs/ux/wireframes/administrator-credential/ac-a1-the-control-panel.html — encodes AC-A1 exactly: nav is Overview/Fleet/Services/Updates/Backups/Settings with no Members item, plus the identity line and the "deliberately absent: a Members tab" note (Ben, 2026-09-28 at the wireframe gate).
  • Flow exists: docs/ux/flows/administrator-credential.mermaid.
  • No docs/seams/*.md contract is referenced (the manifest's seam: names code seams, not a design-tier seam doc), so the seam-contract gate does not fire.

Human-decision gate does not fire: needs_human_decision: [] is empty, and depends_on: [] (Blocked by: None).

Claims confirmed in code:

  • Stewardship is read off role today: internal/keria/removal.go:277 — isSteward returns e.Role == credschema.RoleOperator && !e.Archived. This is what the ticket replaces with a signer-set read, so #1956 can later delete role without touching this (AC-5).
  • Seams exist for both sides: internal/controlapi/ (the identity read the panel already makes) and dashboard/src/components/shell/ (DashboardShell.vue, MembersColumn.vue — the nav).

Ruling — two-way door (ADR 0174): the ticket's own Ruling stands. The change is revertible with a commit and provable by the seam (the four acceptance criteria: steward → Members shown; non-steward → no nav item + AC-A1 identity line; direct visit to the Members address → told it is a steward's, no unlock offered; unreadable signer set → Members shown, nothing claimed = "unknown", not "no"). Where the signer set is read from is the implementer's choice. Not on the one-way-door list; no member-facing trust accept, no security-posture widening — this narrows a tab's visibility and reads existing identity data.

Not an app report (no origin: app-report marker; filed by Ben). No landing-pr inheritance applies.

Safe for the Sandcastle swarm.

> *This was generated by AI during triage.* ## Triage: ready-for-agent (enhancement) Verified against the codebase in this headless run. Both design-tier gates checked and neither fires; the issue body already carries a complete brief, task manifest, and acceptance criteria. **Design contract present (missing-design gate does not fire):** - Wireframe exists: `docs/ux/wireframes/administrator-credential/ac-a1-the-control-panel.html` — encodes AC-A1 exactly: nav is Overview/Fleet/Services/Updates/Backups/Settings with **no Members item**, plus the identity line and the "deliberately absent: a Members tab" note (Ben, 2026-09-28 at the wireframe gate). - Flow exists: `docs/ux/flows/administrator-credential.mermaid`. - No `docs/seams/*.md` contract is referenced (the manifest's `seam:` names code seams, not a design-tier seam doc), so the seam-contract gate does not fire. **Human-decision gate does not fire:** `needs_human_decision: []` is empty, and `depends_on: []` (Blocked by: None). **Claims confirmed in code:** - Stewardship is read off `role` today: `internal/keria/removal.go:277` — `isSteward` returns `e.Role == credschema.RoleOperator && !e.Archived`. This is what the ticket replaces with a signer-set read, so #1956 can later delete `role` without touching this (AC-5). - Seams exist for both sides: `internal/controlapi/` (the identity read the panel already makes) and `dashboard/src/components/shell/` (`DashboardShell.vue`, `MembersColumn.vue` — the nav). **Ruling — two-way door (ADR 0174):** the ticket's own Ruling stands. The change is revertible with a commit and provable by the seam (the four acceptance criteria: steward → Members shown; non-steward → no nav item + AC-A1 identity line; direct visit to the Members address → told it is a steward's, no unlock offered; unreadable signer set → Members shown, nothing claimed = "unknown", not "no"). Where the signer set is read from is the implementer's choice. Not on the one-way-door list; no member-facing trust accept, no security-posture widening — this narrows a tab's visibility and reads existing identity data. Not an app report (no `origin: app-report` marker; filed by Ben). No `landing-pr` inheritance applies. Safe for the Sandcastle swarm.

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

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

close-report for #1996 — status success

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

envelope
{
  "issue": 1996,
  "status": "success",
  "commits": [
    "bc1b9a0f6dfb21b7665be2f02dbdd39f67874a3c"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/main.go",
    "dashboard/src/components/DashboardComposition.vue",
    "dashboard/src/entry/served.ts",
    "dashboard/src/lib/api/panelWhoami.ts",
    "dashboard/tests/unit/dashboardComposition.test.ts",
    "dashboard/tests/unit/panelWhoami.test.ts",
    "dashboard/tests/unit/serveEntry.test.ts",
    "internal/controlapi/panelwhoami.go",
    "internal/controlapi/panelwhoami_test.go",
    "internal/orgconfig/steward.go",
    "internal/orgconfig/steward_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/controlapi/ ./internal/orgconfig/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go build ./...",
      "exit_code": 0
    },
    {
      "command": "npx vitest run (dashboard, 162 files)",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit (dashboard)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a signed-in administrator who is one of the community group identity's signers, then the panel shows Members": "internal/controlapi/panelwhoami.go answers steward:true,known:true for a signer (panelwhoami_test.go TestPanelWhoami_signerIsAKnownSteward); the served entry threads viewer{isSteward:true} into the shell so all six tabs incl. Members show (serveEntry.test.ts 'keeps the whole tab set … for a steward'); internal/orgconfig/steward.go IsSteward returns true for an admins-block AID (steward_test.go TestStewardSigners_signerIsASteward)",
    "Given a signed-in administrator who is not, then the nav has no Members item and the identity line reads as AC-A1 draws it": "a non-signer is a known non-steward (panelwhoami_test.go TestPanelWhoami_nonSignerIsAKnownNonSteward, steward_test.go TestStewardSigners_nonSignerIsNotASteward); served entry drops the Members tab and renders the AC-A1 identity line naming the Administrator credential (serveEntry.test.ts 'drops the Members tab for a non-steward administrator') via the already-built visibleTabs/NavChrome",
    "Given that administrator visits the Members address directly, then they are told Members is a steward's, and no unlock is offered": "DashboardComposition.vue gates the members slot: for !viewer.isSteward it renders [data-field=members-steward-only] and never mounts the Members surface or the locked seat (dashboardComposition.test.ts 'a non-steward who deep-links Members is TOLD it is a steward's — the seat never mounts')",
    "Given the signer set cannot be read, then Members is shown and nothing is claimed about stewardship": "panelwhoami.go answers known:false on a nil check or a read error, never steward:true/false claim (panelwhoami_test.go TestPanelWhoami_unreadableSignerSetIsUnknownNotNo / TestPanelWhoami_restingCheckIsUnknown); readPanelViewer maps known:false / non-2xx / fault to null (panelWhoami.test.ts), so served.ts keeps the shell's steward default — Members shown, no line (dashboardComposition.test.ts 'unknown stewardship keeps the steward default'); StewardSigners returns UNKNOWN(error) for an unread/half-founded identity or roster (steward_test.go)",
    "Given the change lands, then the answer does not read `role`, so #1956 can delete it without touching this": "internal/controlapi/panelwhoami.go and internal/orgconfig/steward.go contain no `role` reference (grep-clean); StewardSigners reads the org-config admins set via AdminsFromRoster (whose role derivation lives in orgconfig/render.go, #1956's to re-source), and the panel wiring reads only steward/known — so #1956's deletion of `role` touches neither this seam nor the panel"
  },
  "summary": "The control panel learns whether the signed-in identity is a community-group signer (a steward) via GET /api/v1/panel/whoami, so a non-steward administrator has no Members tab and never meets the locked seat; read from the signer set, never `role`.",
  "blockers": []
}
**close-report** for #1996 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1996, "status": "success", "commits": [ "bc1b9a0f6dfb21b7665be2f02dbdd39f67874a3c" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/main.go", "dashboard/src/components/DashboardComposition.vue", "dashboard/src/entry/served.ts", "dashboard/src/lib/api/panelWhoami.ts", "dashboard/tests/unit/dashboardComposition.test.ts", "dashboard/tests/unit/panelWhoami.test.ts", "dashboard/tests/unit/serveEntry.test.ts", "internal/controlapi/panelwhoami.go", "internal/controlapi/panelwhoami_test.go", "internal/orgconfig/steward.go", "internal/orgconfig/steward_test.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/controlapi/ ./internal/orgconfig/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go build ./...", "exit_code": 0 }, { "command": "npx vitest run (dashboard, 162 files)", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit (dashboard)", "exit_code": 0 } ], "criteria": { "Given a signed-in administrator who is one of the community group identity's signers, then the panel shows Members": "internal/controlapi/panelwhoami.go answers steward:true,known:true for a signer (panelwhoami_test.go TestPanelWhoami_signerIsAKnownSteward); the served entry threads viewer{isSteward:true} into the shell so all six tabs incl. Members show (serveEntry.test.ts 'keeps the whole tab set … for a steward'); internal/orgconfig/steward.go IsSteward returns true for an admins-block AID (steward_test.go TestStewardSigners_signerIsASteward)", "Given a signed-in administrator who is not, then the nav has no Members item and the identity line reads as AC-A1 draws it": "a non-signer is a known non-steward (panelwhoami_test.go TestPanelWhoami_nonSignerIsAKnownNonSteward, steward_test.go TestStewardSigners_nonSignerIsNotASteward); served entry drops the Members tab and renders the AC-A1 identity line naming the Administrator credential (serveEntry.test.ts 'drops the Members tab for a non-steward administrator') via the already-built visibleTabs/NavChrome", "Given that administrator visits the Members address directly, then they are told Members is a steward's, and no unlock is offered": "DashboardComposition.vue gates the members slot: for !viewer.isSteward it renders [data-field=members-steward-only] and never mounts the Members surface or the locked seat (dashboardComposition.test.ts 'a non-steward who deep-links Members is TOLD it is a steward's — the seat never mounts')", "Given the signer set cannot be read, then Members is shown and nothing is claimed about stewardship": "panelwhoami.go answers known:false on a nil check or a read error, never steward:true/false claim (panelwhoami_test.go TestPanelWhoami_unreadableSignerSetIsUnknownNotNo / TestPanelWhoami_restingCheckIsUnknown); readPanelViewer maps known:false / non-2xx / fault to null (panelWhoami.test.ts), so served.ts keeps the shell's steward default — Members shown, no line (dashboardComposition.test.ts 'unknown stewardship keeps the steward default'); StewardSigners returns UNKNOWN(error) for an unread/half-founded identity or roster (steward_test.go)", "Given the change lands, then the answer does not read `role`, so #1956 can delete it without touching this": "internal/controlapi/panelwhoami.go and internal/orgconfig/steward.go contain no `role` reference (grep-clean); StewardSigners reads the org-config admins set via AdminsFromRoster (whose role derivation lives in orgconfig/render.go, #1956's to re-source), and the panel wiring reads only steward/known — so #1956's deletion of `role` touches neither this seam nor the panel" }, "summary": "The control panel learns whether the signed-in identity is a community-group signer (a steward) via GET /api/v1/panel/whoami, so a non-steward administrator has no Members tab and never meets the locked seat; read from the signer set, never `role`.", "blockers": [] } ``` </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#1996
No description provided.