gate: a credential issued to an app-approved member opens its restricted services — read from the credential directory (#2031) #2033
No reviewers
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss!2033
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "session/gate-reads-credential-directory"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.WithHeldCopiesadds 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.HeldByrun against the demo's realdirectory.jsonreturns Emiliana'sadministrator+researchercopies.After deploy: restore the demo's access matrix from config tag
before-open-all-2026-09-30and check Emiliana's Portal.🤖 Generated with Claude Code