credential-claim-gone: idss-idp held-credential cache re-mints revoked komiti claims #1231
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.
Blocks
Reference
Matou/idss#1231
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The failure
credential-claim-goneis the only red of 37 legs (36 green, 0 skips). This is not the drive's known frontier:pairis green andlegs.jsoncarries no skip reasons at all, so the own-VPS carrier issue never fired on this run.artifacts/legs.json+artifacts/verdict.json:The leg was newly ARMED for this run (
app/tests/e2e/journey.idip.spec.ts:1097—// ARMED (#1104 shipped): the revoke must un-name the group on the door.), so this is its first real exercise. The four legs after it (add-steward,remove-steward,remove-member,heartbeat-repoint) have no records — the red ended the sequence.Evidence
The product state DID flip.
/var/lib/idss/keria/roster.jsonon the live box (209.38.19.185, still up; read-only session):internal/keria/view.go:44committees()derives the claim fromh.State.issued()(registry.go:47:CredIssued || CredPendingRevoke), so from 01:08:00.316 onward the roster's committee list for rangi is empty.But the door still holds it.
nextcloud-occ user:info rangi, right now:And the sign-in that should have cleared it was genuinely fresh, and ran after the revoke.
/var/log/nginx/access.log:A full authorization-code round trip at 01:08:02–03, two seconds after the roster flipped — and
/settings/userstill namedfinance.The door is configured to sync, not merely add (
nextcloud-oidc.servicestart script on the box):and
user_oidc'sProvisioningService.php:765-772removes any group absent from the claim:So the door would have dropped
financehad the claim arrived without it. It arrived with it.The defect
internal/idp/signin.go:155-163—keriVerifyshort-circuits the entire roster read on a 12-hour cache:completeLogin(internal/idp/signin.go:225) stores the entireIdentity—Role,MembershipSAIDandKomitis— underheld[AID]withexpiry = now + sessionCookieMaxAge, whichinternal/idp/client.go:17sets to12 * time.Hour.Timeline:
credential-claim, green; the group correctly appeared).held["EJjq3Mh…"]cachesKomitis: ["finance"]until ~13:07.revoked.keriVerifyhits the cache, returns the 01:07:12 identity verbatim.setUserinfo(internal/idp/storage.go:557-562) then appendsocgroupsstraight fromid.Claims.Komitis→["finance"]. The roster is never re-read.The cache is documented as the verified-key cache (story 12: "a repeat sign-in runs only the challenge"), which is a sound optimisation for the expensive KEL signature check. The bug is that it also caches roster-derived authorization state, which is mutable by design.
Wider blast radius, untested by this drive: the same short-circuit skips
Presentation's standing check (internal/idp/keri_verifier.go:113-116:StatusSuspended, StatusRemoved → ErrCredentialRevoked) and the membershipIsIssuedTEL re-check. A suspended or removed member can therefore complete a fresh sign-in for up to 12 h. Note the refresh path is stricter than the login path —TokenRequestByRefreshToken(internal/idp/storage.go:239-256) does re-checkIsIssuedon every refresh, exactly as ADR 0196 requires; the fresh-login path does not.Suspected layer
Product (control plane /
idss-idpbridge). Not harness: the assertion is correct and mirrors the claim leg's presence check on both the bare slug and thecommittee:form per DDR 0179/#1104. Not infra:systemctl --failedis empty, the roster wrote the right state, and the door is configured to sync groups.idss-idpdid restart-loop once early (:8465/healthz never became healthy within 60s, 01:00:45) but was healthy and stable from 01:05:39 through the whole failing window.What plugging it needs
heldcache to what it is named for. Cache the verified key state / challenge outcome keyed by AID; always re-runVerifier.Presentationfor the claim set and standing on every sign-in.keriVerifymust stop returningheldEntry.identitywholesale. The roster read is a loopback HTTP call to the control plane (ADR 0212), so per-sign-in cost is negligible.Member()status +IsIssued(MembershipSAID)+ freshCommittees, and rebuildClaimsfrom that — i.e. let the cache skip only key work, neverPresentation.grep heldCredential internal/idp/*_test.goreturns nothing, andinternal/idp/verifier_committee_test.goexercises revoke by mutatingClaimsdirectly (withoutKomiti), so it never crosses the sign-in path. Add a store-level seam test: sign in holding a komiti → revoke in the roster → sign in again inside the 12 h window → assertocgroupsno longer names the slug. Add suspended/removed variants for the standing hole.credential-claim-goneand giveadd-steward,remove-steward,remove-memberandheartbeat-repointtheir first exercise.drive
20260905T005212Zred atcredential-claim-gone:the door still carries the finance group after its receipted revocation — revoke must close the claim (ADR 0196, #1087)evidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260905T005212Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=elitebook-distributed-server-03 run=18094
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1231 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope