administrator 5/8 — revoking Administrator closes the panel on the open tab (#1948) #1953

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

Parent

What to build

Revoking someone's Administrator actually removes their access, including from a
tab they already have open.

Recording the revocation bumps that identity's panel session epoch — the
machinery built for sign out of the control panel everywhere (#1935) — so
their open tabs find the session gone on their next request and land on
AC-R1: your administrator access was removed, with their identity and
membership explicitly unaffected and the Portal as the exit. Signing in again
lands them on AC-X0, not the panel.

The alternative — letting the next click 403 wherever they happen to be — is
what this avoids: a refusal mid-form with nothing to explain it.

Acceptance criteria

  • Given a holder with the panel open, when their Administrator is revoked, then their panel sessions end from that instant.
  • Given that open tab, when it makes its next request, then it lands on AC-R1, which states the access was removed and that their identity and membership are unaffected.
  • Given the same person, when they sign in again, then they meet AC-X0 rather than the panel.
  • Given another identity's session, when the revocation is recorded, then it is untouched.
  • Given the same person's session at another service, when the revocation is recorded, then it is untouched — only panel sessions end.
  • Proven at internal/controlapi's session/forward_auth seam (the epoch bump and a pre-epoch session resolving to none) and the dashboard's unit seam (the tab's reaction).

Blocked by

  • 3/8 — the revoke act.
  • 4/8 — the door refusal a re-sign-in lands on.

Task manifest

task: revoke-closes-the-panel
implements_flow: administrator-credential
implements_edge: "S4 -> R2 (revoked, another remains), R2 -> D1"
wireframe: docs/ux/wireframes/administrator-credential/ac-r1-access-removed.html
interface: |
  recording a revocation bumps that identity's panel session epoch (#1935's machinery)
  open tabs discover it on their next request and land on AC-R1
seam: internal/controlapi session/forward_auth seam + dashboard/tests/unit
acceptance:
  - given: a holder with the panel open
    when: their Administrator is revoked
    then: their panel sessions end and the tab lands on AC-R1
  - given: the same person signing in again
    when: the door answers
    then: they meet AC-X0, not the panel
  - given: their session at another service
    when: the revocation is recorded
    then: it is untouched
depends_on: [issue-and-revoke-from-the-panel, what-it-opens-and-the-refusal]
out_of_scope: [changing the epoch machinery itself]
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 15) - **Design:** ADR 0286 d.9 · flow `docs/ux/flows/administrator-credential.mermaid` - **Wayfinder map:** #1293 ## What to build Revoking someone's Administrator actually removes their access, including from a tab they already have open. Recording the revocation **bumps that identity's panel session epoch** — the machinery built for *sign out of the control panel everywhere* (#1935) — so their open tabs find the session gone on their next request and land on **AC-R1**: *your administrator access was removed*, with their identity and membership explicitly unaffected and the Portal as the exit. Signing in again lands them on AC-X0, not the panel. The alternative — letting the next click 403 wherever they happen to be — is what this avoids: a refusal mid-form with nothing to explain it. ## Acceptance criteria - [ ] **Given** a holder with the panel open, **when** their Administrator is revoked, **then** their panel sessions end from that instant. - [ ] **Given** that open tab, **when** it makes its next request, **then** it lands on AC-R1, which states the access was removed and that their identity and membership are unaffected. - [ ] **Given** the same person, **when** they sign in again, **then** they meet AC-X0 rather than the panel. - [ ] **Given** another identity's session, **when** the revocation is recorded, **then** it is untouched. - [ ] **Given** the same person's session at another service, **when** the revocation is recorded, **then** it is untouched — only panel sessions end. - [ ] Proven at `internal/controlapi`'s session/forward_auth seam (the epoch bump and a pre-epoch session resolving to none) and the dashboard's unit seam (the tab's reaction). ## Blocked by - 3/8 — the revoke act. - 4/8 — the door refusal a re-sign-in lands on. ## Task manifest ```yaml task: revoke-closes-the-panel implements_flow: administrator-credential implements_edge: "S4 -> R2 (revoked, another remains), R2 -> D1" wireframe: docs/ux/wireframes/administrator-credential/ac-r1-access-removed.html interface: | recording a revocation bumps that identity's panel session epoch (#1935's machinery) open tabs discover it on their next request and land on AC-R1 seam: internal/controlapi session/forward_auth seam + dashboard/tests/unit acceptance: - given: a holder with the panel open when: their Administrator is revoked then: their panel sessions end and the tab lands on AC-R1 - given: the same person signing in again when: the door answers then: they meet AC-X0, not the panel - given: their session at another service when: the revocation is recorded then: it is untouched depends_on: [issue-and-revoke-from-the-panel, what-it-opens-and-the-refusal] out_of_scope: [changing the epoch machinery itself] 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=bens-mac-04 run=34791
(automated multi-host claim — lowest live claim id works this ticket)

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

close-report for #1953 — status success

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

envelope
{
  "issue": 1953,
  "status": "success",
  "commits": [
    "5b7d785ac14b16c7590fda75fc559dfc650e20d4"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/idip.test.ts",
    "control-plane/cmd/control-plane/idip_gate_wiring_test.go",
    "control-plane/cmd/control-plane/main.go",
    "dashboard/src/components/members/AccessRemovedScreen.vue",
    "dashboard/src/components/members/IdipRosterPanel.vue",
    "dashboard/src/lib/panelSession.ts",
    "dashboard/tests/unit/accessRemovedScreen.test.ts",
    "dashboard/tests/unit/idipRosterPanel.test.ts",
    "dashboard/tests/unit/panelSession.test.ts",
    "internal/controlapi/idip_authz.go",
    "internal/controlapi/idip_credentials.go",
    "internal/controlapi/idip_credentials_test.go",
    "internal/controlapi/idip_steward_session_test.go",
    "internal/controlapi/logstream.go",
    "internal/controlapi/panelepoch.go",
    "internal/keria/adapter.go",
    "internal/keria/administrator_registry_test.go",
    "internal/keria/credential_lifecycle_test.go",
    "internal/keria/registry.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/... ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c golangci-lint run ./internal/controlapi/... ./internal/keria/...",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vitest run",
      "exit_code": 0
    },
    {
      "command": "cd dashboard && npx vue-tsc --noEmit -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "cd app && npx vitest run tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Given a holder with the panel open, when their Administrator is revoked, then their panel sessions end from that instant": "internal/controlapi/idip_credentials.go revoke handler calls PanelEpochStore.AdvanceForRevocation(holderAID) on an Administrator revocation; proven by internal/controlapi/idip_credentials_test.go TestIdipCredentials_RevokingAdministratorEndsPanelSessions (the epoch is bumped to now and a pre-epoch session then resolves to none via PanelEpochResolver)",
    "Given that open tab, when it makes its next request, then it lands on AC-R1, which states the access was removed and that their identity and membership are unaffected, with the Portal as the exit": "dashboard/src/components/members/AccessRemovedScreen.vue (data-status=administrator-revoked, revoked-title/body/way naming identity+membership unaffected, open-portal exit, no sign-in button), mounted highest-precedence in IdipRosterPanel.vue on the isAdministratorRevoked reaction; proven by dashboard/tests/unit/idipRosterPanel.test.ts (AC-R1 renders in place, no navigate) and accessRemovedScreen.test.ts",
    "Given the same person, when they sign in again, then they meet AC-X0 rather than the panel": "the epoch bump logs them out (their pre-epoch session resolves to none), and a fresh sign-in resolves at the resolver so it reaches the door, where HoldsAdministrator (#1950) is now false so the door renders AC-X0 (the not-an-administrator refusal built in #1952/refusal.go); the seam test asserts a post-epoch session resolves (reaches the door) while the pre-epoch one is dead; AC-X0 itself is the existing #1952 door surface, not re-implemented here",
    "Given another identity's session, when the revocation is recorded, then it is untouched": "TestIdipCredentials_RevokingAdministratorEndsPanelSessions: a second identity's panel session still resolves after the revoke (one revoke moves only the revoked holder's epoch)",
    "Given the same person's session at another service, when the revocation is recorded, then it is untouched — only panel sessions end": "TestIdipCredentials_RevokingAdministratorEndsPanelSessions: the same holder's cookie still resolves through the plain CookieSessionResolver (the forward_auth gate, which never consults the epoch) at a non-panel service host",
    "Proven at internal/controlapi's session/forward_auth seam (the epoch bump and a pre-epoch session resolving to none) and the dashboard's unit seam (the tab's reaction)": "internal/controlapi/idip_credentials_test.go TestIdipCredentials_RevokingAdministratorEndsPanelSessions + internal/keria/administrator_registry_test.go TestDefinitionAdapter_AnchorRevocationReportsAdministratorHolder; dashboard/tests/unit/panelSession.test.ts (isAdministratorRevoked/reactToAdministratorRevoked), accessRemovedScreen.test.ts, idipRosterPanel.test.ts (AC-R1 tab reaction)"
  },
  "summary": "Revoking Administrator bumps the holder's panel session epoch (#1935's machinery) so their open tabs land on AC-R1, while other identities and other services are untouched.",
  "blockers": []
}
**close-report** for #1953 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1953, "status": "success", "commits": [ "5b7d785ac14b16c7590fda75fc559dfc650e20d4" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/idip.test.ts", "control-plane/cmd/control-plane/idip_gate_wiring_test.go", "control-plane/cmd/control-plane/main.go", "dashboard/src/components/members/AccessRemovedScreen.vue", "dashboard/src/components/members/IdipRosterPanel.vue", "dashboard/src/lib/panelSession.ts", "dashboard/tests/unit/accessRemovedScreen.test.ts", "dashboard/tests/unit/idipRosterPanel.test.ts", "dashboard/tests/unit/panelSession.test.ts", "internal/controlapi/idip_authz.go", "internal/controlapi/idip_credentials.go", "internal/controlapi/idip_credentials_test.go", "internal/controlapi/idip_steward_session_test.go", "internal/controlapi/logstream.go", "internal/controlapi/panelepoch.go", "internal/keria/adapter.go", "internal/keria/administrator_registry_test.go", "internal/keria/credential_lifecycle_test.go", "internal/keria/registry.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/... ./control-plane/...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c golangci-lint run ./internal/controlapi/... ./internal/keria/...", "exit_code": 0 }, { "command": "cd dashboard && npx vitest run", "exit_code": 0 }, { "command": "cd dashboard && npx vue-tsc --noEmit -p tsconfig.json", "exit_code": 0 }, { "command": "cd app && npx vitest run tests/e2e/fixtures/idip.test.ts", "exit_code": 0 } ], "criteria": { "Given a holder with the panel open, when their Administrator is revoked, then their panel sessions end from that instant": "internal/controlapi/idip_credentials.go revoke handler calls PanelEpochStore.AdvanceForRevocation(holderAID) on an Administrator revocation; proven by internal/controlapi/idip_credentials_test.go TestIdipCredentials_RevokingAdministratorEndsPanelSessions (the epoch is bumped to now and a pre-epoch session then resolves to none via PanelEpochResolver)", "Given that open tab, when it makes its next request, then it lands on AC-R1, which states the access was removed and that their identity and membership are unaffected, with the Portal as the exit": "dashboard/src/components/members/AccessRemovedScreen.vue (data-status=administrator-revoked, revoked-title/body/way naming identity+membership unaffected, open-portal exit, no sign-in button), mounted highest-precedence in IdipRosterPanel.vue on the isAdministratorRevoked reaction; proven by dashboard/tests/unit/idipRosterPanel.test.ts (AC-R1 renders in place, no navigate) and accessRemovedScreen.test.ts", "Given the same person, when they sign in again, then they meet AC-X0 rather than the panel": "the epoch bump logs them out (their pre-epoch session resolves to none), and a fresh sign-in resolves at the resolver so it reaches the door, where HoldsAdministrator (#1950) is now false so the door renders AC-X0 (the not-an-administrator refusal built in #1952/refusal.go); the seam test asserts a post-epoch session resolves (reaches the door) while the pre-epoch one is dead; AC-X0 itself is the existing #1952 door surface, not re-implemented here", "Given another identity's session, when the revocation is recorded, then it is untouched": "TestIdipCredentials_RevokingAdministratorEndsPanelSessions: a second identity's panel session still resolves after the revoke (one revoke moves only the revoked holder's epoch)", "Given the same person's session at another service, when the revocation is recorded, then it is untouched — only panel sessions end": "TestIdipCredentials_RevokingAdministratorEndsPanelSessions: the same holder's cookie still resolves through the plain CookieSessionResolver (the forward_auth gate, which never consults the epoch) at a non-panel service host", "Proven at internal/controlapi's session/forward_auth seam (the epoch bump and a pre-epoch session resolving to none) and the dashboard's unit seam (the tab's reaction)": "internal/controlapi/idip_credentials_test.go TestIdipCredentials_RevokingAdministratorEndsPanelSessions + internal/keria/administrator_registry_test.go TestDefinitionAdapter_AnchorRevocationReportsAdministratorHolder; dashboard/tests/unit/panelSession.test.ts (isAdministratorRevoked/reactToAdministratorRevoked), accessRemovedScreen.test.ts, idipRosterPanel.test.ts (AC-R1 tab reaction)" }, "summary": "Revoking Administrator bumps the holder's panel session epoch (#1935's machinery) so their open tabs land on AC-R1, while other identities and other services are untouched.", "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#1953
No description provided.