administrator 4/8 — what the credential opens, and the member turned away at the door (#1948) #1952

Closed
opened 2026-09-28 03:04:57 +00:00 by matou-build-agent · 3 comments

Parent

What to build

Holding it opens the panel (AC-A1). A member with a live Administrator
credential signs in and gets the control panel: Overview, Fleet, Services,
Updates, Backups, Settings. The identity line names the credential they hold and
what it does not carry, so someone who cannot find an act knows it is a
steward's rather than missing.

And there is no Members tab for a non-steward administrator. Not an empty
tab, not a disabled one, and not a list from another source: the Members list is
the community ledger read through a steward's own seat, and only a steward's
agent holds the registry (ADR 0235 d.4). The nav genuinely has no Members item
for an administrator who is not a steward. A steward — who always holds
Administrator too (6/8) — sees Members exactly as today. This absence is part
of the contract
, and AC-A1's annotation says why, because an agent reading the
DOM would otherwise add the item back.

A member who is not an administrator is turned away (AC-X0). They signed in
successfully and they are a member of this community — so the screen says that,
sends them to the Portal, and names asking a steward as the way in. No panel
surface renders behind it: no emptied nav, no per-tile refusals, nothing that
reads as broken software rather than as not-yours.

Acceptance criteria

  • Given a member holding a live Administrator credential, when they sign in, then the panel opens with Overview, Fleet, Services, Updates, Backups and Settings.
  • Given that panel, when the identity line renders, then it names the credential held and states that Members, approving people and issuing credentials are a steward's.
  • Given an administrator who is not in the community group identity, when the nav renders, then there is no Members item at all — not empty, not disabled, not from another source.
  • Given an administrator who is a steward, when the nav renders, then Members is present and behaves as today.
  • Given a signed-in member with no Administrator credential, when they reach the panel's address, then AC-X0 renders with the Portal and Sign out, and names asking a steward.
  • Given AC-X0, when it renders, then no panel surface renders behind it.
  • Proven at internal/controlapi's gate/authz tests (access granted and refused) and the dashboard's unit seam (the nav, with and without Members).

Blocked by

  • 2/8 — the decider is what grants and refuses.

Task manifest

task: what-it-opens-and-the-refusal
implements_flow: administrator-credential
implements_edge: "D1 -> A1, D1 -> X0, A1 -> M1 (Members only with a seat)"
wireframe:
  - docs/ux/wireframes/administrator-credential/ac-a1-the-control-panel.html
  - docs/ux/wireframes/administrator-credential/ac-x0-not-an-administrator.html
interface: |
  panel access gated by the predicate; the Members nav item is rendered only for a steward
  a signed-in non-administrator gets a refusal screen, never a rendered-but-empty panel
seam: internal/controlapi gate/authz tests + dashboard/tests/unit
acceptance:
  - given: an administrator who is not a steward
    when: the nav renders
    then: there is no Members item at all
  - given: a signed-in member with no Administrator credential
    when: they reach the panel's address
    then: AC-X0 renders and no panel surface renders behind it
  - given: an administrator who is also a steward
    when: the nav renders
    then: Members is present and unchanged
depends_on: [one-decider-expand]
out_of_scope: [a gateway read-through of the registry, a projection-backed member list]
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 8, 9, 10) - **Design:** ADR 0286 d.1, d.2 incl. its wireframe-gate correction · flow `docs/ux/flows/administrator-credential.mermaid` - **Wayfinder map:** #1293 ## What to build **Holding it opens the panel (AC-A1).** A member with a live Administrator credential signs in and gets the control panel: Overview, Fleet, Services, Updates, Backups, Settings. The identity line names the credential they hold and what it does not carry, so someone who cannot find an act knows it is a steward's rather than missing. **And there is no Members tab for a non-steward administrator.** Not an empty tab, not a disabled one, and not a list from another source: the Members list is the community ledger read through a **steward's own seat**, and only a steward's agent holds the registry (ADR 0235 d.4). The nav genuinely has no Members item for an administrator who is not a steward. A steward — who always holds Administrator too (6/8) — sees Members exactly as today. **This absence is part of the contract**, and AC-A1's annotation says why, because an agent reading the DOM would otherwise add the item back. **A member who is not an administrator is turned away (AC-X0).** They signed in successfully and they are a member of this community — so the screen says that, sends them to the Portal, and names asking a steward as the way in. No panel surface renders behind it: no emptied nav, no per-tile refusals, nothing that reads as broken software rather than as not-yours. ## Acceptance criteria - [ ] **Given** a member holding a live Administrator credential, **when** they sign in, **then** the panel opens with Overview, Fleet, Services, Updates, Backups and Settings. - [ ] **Given** that panel, **when** the identity line renders, **then** it names the credential held and states that Members, approving people and issuing credentials are a steward's. - [ ] **Given** an administrator who is **not** in the community group identity, **when** the nav renders, **then** there is **no Members item at all** — not empty, not disabled, not from another source. - [ ] **Given** an administrator who **is** a steward, **when** the nav renders, **then** Members is present and behaves as today. - [ ] **Given** a signed-in member with no Administrator credential, **when** they reach the panel's address, **then** AC-X0 renders with the Portal and Sign out, and names asking a steward. - [ ] **Given** AC-X0, **when** it renders, **then** no panel surface renders behind it. - [ ] Proven at `internal/controlapi`'s gate/authz tests (access granted and refused) and the dashboard's unit seam (the nav, with and without Members). ## Blocked by - 2/8 — the decider is what grants and refuses. ## Task manifest ```yaml task: what-it-opens-and-the-refusal implements_flow: administrator-credential implements_edge: "D1 -> A1, D1 -> X0, A1 -> M1 (Members only with a seat)" wireframe: - docs/ux/wireframes/administrator-credential/ac-a1-the-control-panel.html - docs/ux/wireframes/administrator-credential/ac-x0-not-an-administrator.html interface: | panel access gated by the predicate; the Members nav item is rendered only for a steward a signed-in non-administrator gets a refusal screen, never a rendered-but-empty panel seam: internal/controlapi gate/authz tests + dashboard/tests/unit acceptance: - given: an administrator who is not a steward when: the nav renders then: there is no Members item at all - given: a signed-in member with no Administrator credential when: they reach the panel's address then: AC-X0 renders and no panel surface renders behind it - given: an administrator who is also a steward when: the nav renders then: Members is present and unchanged depends_on: [one-decider-expand] out_of_scope: [a gateway read-through of the registry, a projection-backed member list] 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

swarm-claim host=matou-dev-server-01 run=34772
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=34772 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

Ruled by agent under ADR 0174 — veto anytime.

Decision needed. AC-A1's acceptance clause 1 and its wireframe nav list the panel's tabs as Overview, Fleet, Services, Updates, Backups, Settings — six, no Members. But the shipped closed tab set (ADR 0094's MOUNT_TABLE) is Overview, Fleet, Services, Members, Backups, Settings, and there is no top-level Updates tab — Updates (P4b) is a drill-in mounted under Settings (SettingsSurface.vue, edge DS → P4b-U1). So the wireframe's "Updates" is a low-fidelity artboard slip that stood in for the sixth slot in the no-Members administrator view.

Ruling. The nav is ADR 0094's closed set. Holding Administrator opens the whole panel; a non-steward administrator sees that set minus Members — Overview, Fleet, Services, Backups, Settings — with Updates reachable under Settings exactly as it is for everyone. I did not add an Updates tab (out of scope, and it would violate ADR 0094's closed set). A steward sees all six, Members included, unchanged. This faithfully delivers clause 1's intent — the panel opens with its standard surfaces (Updates among them) — while honouring the shipped architecture.

Why it is a two-way door. Revertible by a later commit; nothing irreversible, no personal credential / security-posture / trust-accept / data-destruction / spend. Provable now by the shipped code: packages/ui-kit/src/mountTable.ts (the closed six-tab set) and dashboard/src/components/shell/SettingsSurface.vue (Updates is a Settings drill-in, not a tab).

What proves it. packages/ui-kit/tests/unit/mountTable.test.ts (visibleTabs drops Members for a non-steward) and packages/ui-kit/tests/unit/navChrome.test.ts (the nav renders no Members item for a non-steward administrator; the whole set for a steward).

**Ruled by agent under ADR 0174 — veto anytime.** **Decision needed.** AC-A1's acceptance clause 1 and its wireframe nav list the panel's tabs as *Overview, Fleet, Services, **Updates**, Backups, Settings* — six, no Members. But the shipped closed tab set (ADR 0094's `MOUNT_TABLE`) is *Overview, Fleet, Services, **Members**, Backups, Settings*, and there is **no top-level Updates tab** — Updates (P4b) is a drill-in mounted under **Settings** (`SettingsSurface.vue`, edge DS → P4b-U1). So the wireframe's "Updates" is a low-fidelity artboard slip that stood in for the sixth slot in the no-Members administrator view. **Ruling.** The nav is ADR 0094's closed set. Holding Administrator opens the whole panel; a **non-steward administrator** sees that set **minus Members** — *Overview, Fleet, Services, Backups, Settings* — with Updates reachable under Settings exactly as it is for everyone. I did **not** add an Updates tab (out of scope, and it would violate ADR 0094's closed set). A **steward** sees all six, Members included, unchanged. This faithfully delivers clause 1's intent — the panel opens with its standard surfaces (Updates among them) — while honouring the shipped architecture. **Why it is a two-way door.** Revertible by a later commit; nothing irreversible, no personal credential / security-posture / trust-accept / data-destruction / spend. Provable now by the shipped code: `packages/ui-kit/src/mountTable.ts` (the closed six-tab set) and `dashboard/src/components/shell/SettingsSurface.vue` (Updates is a Settings drill-in, not a tab). **What proves it.** `packages/ui-kit/tests/unit/mountTable.test.ts` (`visibleTabs` drops Members for a non-steward) and `packages/ui-kit/tests/unit/navChrome.test.ts` (the nav renders no Members item for a non-steward administrator; the whole set for a steward).
Author
Member

close-report for #1952 — status success

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

envelope
{
  "issue": 1952,
  "status": "success",
  "commits": [
    "d87795908e001cbcfcd9ca1f793554779c1338e4"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/bootstrap.ts",
    "dashboard/src/components/DashboardComposition.vue",
    "dashboard/src/components/DashboardShell.vue",
    "internal/controlapi/idip_gate.go",
    "internal/controlapi/idip_gate_test.go",
    "internal/controlapi/refusal.go",
    "internal/controlapi/refusal_test.go",
    "packages/ui-kit/src/components/NavChrome.vue",
    "packages/ui-kit/src/index.ts",
    "packages/ui-kit/src/mountTable.ts",
    "packages/ui-kit/tests/unit/mountTable.test.ts",
    "packages/ui-kit/tests/unit/navChrome.test.ts"
  ],
  "tests": [
    {
      "command": "go test ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/controlapi/*.go (empty) + go vet ./internal/controlapi/ + golangci-lint run ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "ui-kit: vitest run (full suite, 243 tests)",
      "exit_code": 0
    },
    {
      "command": "dashboard: vitest run (full suite, 2044 passed / 2 skipped)",
      "exit_code": 0
    },
    {
      "command": "ui-kit + dashboard vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "eslint changed frontend files",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a member holding a live Administrator credential, when they sign in, then the panel opens with Overview, Fleet, Services, Updates, Backups and Settings": "internal/controlapi/idip_gate_test.go TestIdipGate_AdministratorCredentialGrantsThePanel (gate grants the panel to a live Administrator holder); the dashboard nav renders ADR 0094's closed tab set for the viewer (packages/ui-kit/src/mountTable.ts). Ruled under ADR 0174 (issue comment): Updates is a Settings drill-in (SettingsSurface.vue), not a top-level tab, so a non-steward administrator sees Overview/Fleet/Services/Backups/Settings with Updates reachable under Settings — no Updates tab invented (ADR 0094 closed set).",
    "Given that panel, when the identity line renders, then it names the credential held and states that Members, approving people and issuing credentials are a steward's": "packages/ui-kit/src/components/NavChrome.vue identity line (data-field=identity-line: credential-pill-administrator + administrator-scope-note); proven by packages/ui-kit/tests/unit/navChrome.test.ts 'names the credential and states the steward acts on the identity line (AC-A1)'.",
    "Given an administrator who is not in the community group identity, when the nav renders, then there is no Members item at all — not empty, not disabled, not from another source": "packages/ui-kit/src/mountTable.ts visibleTabs drops the members entry for a non-steward; NavChrome renders visibleTabs. Proven by mountTable.test.ts 'drops Members for a non-steward administrator' and navChrome.test.ts 'renders NO Members item at all for a non-steward administrator'.",
    "Given an administrator who is a steward, when the nav renders, then Members is present and behaves as today": "visibleTabs returns the whole table for isSteward:true. Proven by mountTable.test.ts 'returns the whole table for a steward' and navChrome.test.ts 'shows all six tabs — Members among them — for a steward'.",
    "Given a signed-in member with no Administrator credential, when they reach the panel's address, then AC-X0 renders with the Portal and Sign out, and names asking a steward": "internal/controlapi/idip_gate.go returns GateReasonNotAnAdministrator on the admin-service refusal; refusal.go renders the AC-X0 surface (not-admin-title/-body/-way, open-portal + sign-out doors, 'ask a steward to make you an administrator'). Proven by refusal_test.go TestRenderRefusalSurface_NotAnAdministratorTurnsThemAway + idip_gate_test.go asserting the refusal reason.",
    "Given AC-X0, when it renders, then no panel surface renders behind it": "refusal.go serves the AC-X0 surface standalone (the gate returns it in place of the panel; Caddy copies the 403 body). Proven by refusal_test.go TestRenderRefusalSurface_NotAnAdministratorTurnsThemAway asserting no data-field=tabs / mount-outlet in the HTML.",
    "Proven at internal/controlapi's gate/authz tests (access granted and refused) and the dashboard's unit seam (the nav, with and without Members)": "internal/controlapi go test green (idip_gate_test.go granted+refused, refusal_test.go AC-X0 render); ui-kit vitest green (mountTable.test.ts visibleTabs, navChrome.test.ts nav with and without Members + identity line)."
  },
  "summary": "Holding Administrator opens the panel (Members only for a steward, with the AC-A1 identity line) and a signed-in non-administrator is turned away at the door with the AC-X0 refusal.",
  "blockers": []
}
**close-report** for #1952 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1952, "status": "success", "commits": [ "d87795908e001cbcfcd9ca1f793554779c1338e4" ], "changed_files": [ "STATUS.md", "dashboard/src/bootstrap.ts", "dashboard/src/components/DashboardComposition.vue", "dashboard/src/components/DashboardShell.vue", "internal/controlapi/idip_gate.go", "internal/controlapi/idip_gate_test.go", "internal/controlapi/refusal.go", "internal/controlapi/refusal_test.go", "packages/ui-kit/src/components/NavChrome.vue", "packages/ui-kit/src/index.ts", "packages/ui-kit/src/mountTable.ts", "packages/ui-kit/tests/unit/mountTable.test.ts", "packages/ui-kit/tests/unit/navChrome.test.ts" ], "tests": [ { "command": "go test ./internal/controlapi/", "exit_code": 0 }, { "command": "go build ./...", "exit_code": 0 }, { "command": "gofmt -l internal/controlapi/*.go (empty) + go vet ./internal/controlapi/ + golangci-lint run ./internal/controlapi/", "exit_code": 0 }, { "command": "ui-kit: vitest run (full suite, 243 tests)", "exit_code": 0 }, { "command": "dashboard: vitest run (full suite, 2044 passed / 2 skipped)", "exit_code": 0 }, { "command": "ui-kit + dashboard vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "eslint changed frontend files", "exit_code": 0 } ], "criteria": { "Given a member holding a live Administrator credential, when they sign in, then the panel opens with Overview, Fleet, Services, Updates, Backups and Settings": "internal/controlapi/idip_gate_test.go TestIdipGate_AdministratorCredentialGrantsThePanel (gate grants the panel to a live Administrator holder); the dashboard nav renders ADR 0094's closed tab set for the viewer (packages/ui-kit/src/mountTable.ts). Ruled under ADR 0174 (issue comment): Updates is a Settings drill-in (SettingsSurface.vue), not a top-level tab, so a non-steward administrator sees Overview/Fleet/Services/Backups/Settings with Updates reachable under Settings — no Updates tab invented (ADR 0094 closed set).", "Given that panel, when the identity line renders, then it names the credential held and states that Members, approving people and issuing credentials are a steward's": "packages/ui-kit/src/components/NavChrome.vue identity line (data-field=identity-line: credential-pill-administrator + administrator-scope-note); proven by packages/ui-kit/tests/unit/navChrome.test.ts 'names the credential and states the steward acts on the identity line (AC-A1)'.", "Given an administrator who is not in the community group identity, when the nav renders, then there is no Members item at all — not empty, not disabled, not from another source": "packages/ui-kit/src/mountTable.ts visibleTabs drops the members entry for a non-steward; NavChrome renders visibleTabs. Proven by mountTable.test.ts 'drops Members for a non-steward administrator' and navChrome.test.ts 'renders NO Members item at all for a non-steward administrator'.", "Given an administrator who is a steward, when the nav renders, then Members is present and behaves as today": "visibleTabs returns the whole table for isSteward:true. Proven by mountTable.test.ts 'returns the whole table for a steward' and navChrome.test.ts 'shows all six tabs — Members among them — for a steward'.", "Given a signed-in member with no Administrator credential, when they reach the panel's address, then AC-X0 renders with the Portal and Sign out, and names asking a steward": "internal/controlapi/idip_gate.go returns GateReasonNotAnAdministrator on the admin-service refusal; refusal.go renders the AC-X0 surface (not-admin-title/-body/-way, open-portal + sign-out doors, 'ask a steward to make you an administrator'). Proven by refusal_test.go TestRenderRefusalSurface_NotAnAdministratorTurnsThemAway + idip_gate_test.go asserting the refusal reason.", "Given AC-X0, when it renders, then no panel surface renders behind it": "refusal.go serves the AC-X0 surface standalone (the gate returns it in place of the panel; Caddy copies the 403 body). Proven by refusal_test.go TestRenderRefusalSurface_NotAnAdministratorTurnsThemAway asserting no data-field=tabs / mount-outlet in the HTML.", "Proven at internal/controlapi's gate/authz tests (access granted and refused) and the dashboard's unit seam (the nav, with and without Members)": "internal/controlapi go test green (idip_gate_test.go granted+refused, refusal_test.go AC-X0 render); ui-kit vitest green (mountTable.test.ts visibleTabs, navChrome.test.ts nav with and without Members + identity line)." }, "summary": "Holding Administrator opens the panel (Members only for a steward, with the AC-A1 identity line) and a signed-in non-administrator is turned away at the door with the AC-X0 refusal.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#1952
No description provided.