gate: a credential issued to an app-approved member opens its restricted services — read from the credential directory (#2031) #2033

Merged
ben merged 2 commits from session/gate-reads-credential-directory into main 2026-10-01 04:29:20 +00:00
Owner

For #2031 (not closing it — close after the live proof on Whakatōhea Demo).

Cause: an app-approved (presented) member's held set came only from the row the app door writes at sign-in (Membership alone). Credentials issued later went to the credential directory (ADR 0291), which the gate never read, so every restricted door was refused.

Fix: GateRoster.WithHeldCopies adds each directory copy for that AID (directory.Store.HeldBy, re-digested) whose SAID the cached witnessed-ledger read says stands. Directory or ledger UNKNOWN → refuse. One directory store is shared by the Members list and the gate. ADR 0291 amended; GOTCHAS #386.

Tests: internal/keria/heldcopies_test.go (issued-after-sign-in reaches the gate, revocation closes it, UNKNOWN never allows, suspended opens nothing, merge dedupes), internal/directory/held_test.go. keria, directory, controlapi and control-plane packages green. HeldBy run against the demo's real directory.json returns Emiliana's administrator + researcher copies.

After deploy: restore the demo's access matrix from config tag before-open-all-2026-09-30 and check Emiliana's Portal.

🤖 Generated with Claude Code

For #2031 (not closing it — close after the live proof on Whakatōhea Demo). **Cause:** an app-approved (presented) member's held set came only from the row the app door writes at sign-in (Membership alone). Credentials issued later went to the credential directory (ADR 0291), which the gate never read, so every restricted door was refused. **Fix:** `GateRoster.WithHeldCopies` adds each directory copy for that AID (`directory.Store.HeldBy`, re-digested) whose SAID the cached witnessed-ledger read says stands. Directory or ledger UNKNOWN → refuse. One directory store is shared by the Members list and the gate. ADR 0291 amended; GOTCHAS #386. **Tests:** `internal/keria/heldcopies_test.go` (issued-after-sign-in reaches the gate, revocation closes it, UNKNOWN never allows, suspended opens nothing, merge dedupes), `internal/directory/held_test.go`. keria, directory, controlapi and control-plane packages green. `HeldBy` run against the demo's real `directory.json` returns Emiliana's `administrator` + `researcher` copies. **After deploy:** restore the demo's access matrix from config tag `before-open-all-2026-09-30` and check Emiliana's Portal. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
gate: a credential issued to an app-approved member from the panel now opens its restricted services — the gate reads the credential directory's copies, each standing only while the ledger says so (#2031)
All checks were successful
ci / seam (pull_request) Successful in 14m18s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
a8c5db35ae
On Whakatōhea Demo Emiliana was issued Administrator and Researcher; the panel
listed both, her Portal showed no Calendar, Surveys or Data collections. She is a
PRESENTED holder (ADR 0235 d.6): the gate read her held set only from the row the
app door writes at sign-in — the Membership she presented — while the later
credentials went to the credential directory (ADR 0291), which the gate never read.

Correct hypothesis: presentedStanding returned p.Committees alone.

- keria.GateRoster.WithHeldCopies: a presented holder's held set is the presented
  committees plus each directory copy for that AID whose SAID the cached witnessed
  ledger says stands; directory or ledger UNKNOWN → error, never an allow.
- directory.Store.HeldBy: a holder's committee copies, re-digested at the read.
- One directory store shared by the Members list and the gate.
- ADR 0291 amended; GOTCHAS #386; STATUS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merge origin/main into #2031 — GOTCHAS renumbered: main's Paperless entry keeps #386, the gate-reads-the-directory entry is #387
All checks were successful
ci / seam (pull_request) Successful in 14m38s
ci / publish (pull_request) Has been skipped
ci / publish-broker (pull_request) Has been skipped
ci / deploy-broker (pull_request) Has been skipped
7b4ac09f55
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ben merged commit eb674e1c35 into main 2026-10-01 04:29:20 +00:00
Sign in to join this conversation.
No reviewers
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.

Dependencies

No dependencies set.

Reference
Matou/idss!2033
No description provided.