Revocation protocol and fence durability
Spec id: identity-revocationVersion: 1Status: Signed offSigned off: 2026-11-05 by woksin, https://github.com/Cratis/Identity/issues/14; owner confirmation pendingIssue: https://github.com/Cratis/Identity/issues/32Sign-off issue: https://github.com/Cratis/Identity/issues/14Supersedes: None1. Scope and authority
Section titled “1. Scope and authority”Keywords follow the specification conventions. The Terms of identity-contract-v1 apply verbatim; this document does not redefine them. The event catalogue and access-token profile remain prerequisites. This specification defines a protocol for Identity and participating product credential authorities, not an implemented storage guarantee. Signed off in Identity #14 (2026-11-05); #41 and #42 implement and prove the protocol.
Revocation MUST NOT depend on an eventually consistent read model. A valid credential is not proof of live membership. Unknown membership always denies, including dependency failure, missing records and restore uncertainty. Revocation affects the next authorization decision; it cannot roll back work already committed or guarantee cancellation of an already executing distributed operation.
2. Protocol vocabulary
Section titled “2. Protocol vocabulary”| Protocol term | Meaning |
|---|---|
| Fence | An authoritative, irreversible denial record for a scoped target id, or a monotonic epoch advance requiring denial or re-evaluation according to its kind. It includes realm/authority scope, target kind/id, FenceId, FenceSequence, reason, applicable epoch and immutable outbox facts. It contains no redeemable material. |
| Operational store | The credential authority’s durable, replicated store supporting serializable transactions or equivalent conditional writes across credential state, applicable fences/epochs and outbox. A process-local lock or replica-local cache is insufficient. |
| Fence log | An independently durable, append-only record of fences and enough non-secret event intent to reconstruct their outbox entries. It has its own recovery watermark and retention/coverage evidence, outside both Chronicle’s and the operational store’s backup sets. It is not a Chronicle projection or an operational-store backup. |
| Outbox | Durable pending domain facts written atomically with the fence in the operational store. Each fact has a stable OutboxId, event type/generation, event-source scope and payload. Delivery can repeat; the fact MUST NOT. |
| Acknowledgement | A successful revoke response, including an already-revoked response. It certifies both the fence/outbox operational commit and durable fence-log append, not Chronicle delivery. A timeout or failure is not proof that nothing committed. |
| Tombstone | The retained denial identity of a revoked target. Re-creation, replay, re-enablement, rotation, restore or provisioning MUST NOT make that id usable again. A legitimate new credential requires a new id and fresh authorization. |
| Recovery watermark | A durable, store-incarnation-bound checkpoint proving a contiguous prefix of fence effects applied, not merely the largest sequence observed or a wall-clock time. Holes MUST NOT be skipped; a prefix does not prove a complete tail. |
| Recovery epoch | A monotonic epoch for each authority and realm, distinct from the policy epoch, held in independent custody outside both restorable stores and never rolled back. Every stateful credential and grant records its creation recovery epoch. An older recovery epoch always denies, without policy re-evaluation. |
| Restore barrier | The deny-by-default recovery boundary before issuance or credential use: advance the independently durable recovery epoch and enforce it at every verifier before readiness, together with restriction recovery and retirement checks under §6. |
FenceSequence is monotonic within a declared authority/realm log partition and distinct from Chronicle’s event sequence. Cross-partition recovery MUST track a watermark per partition. FenceId, target scope and OutboxIds MUST survive retries and restore unchanged. Log append with the same FenceId and identical content MUST return the original sequence; conflicting content MUST fail closed and alert. Neither sequences nor epochs may be reused or rolled backwards after restore. Allocation, gap handling and durable acknowledgement are storage-adapter proof obligations (§10).
3. Revoke sequence and acknowledgement
Section titled “3. Revoke sequence and acknowledgement”- Authenticate the revoker and authorize the target-specific action (§7). Bind an idempotency key to the authority, target and requested restriction; a retry with different content MUST NOT reuse it.
- In one operational-store transaction, serialize against the target, its ancestors and applicable epoch state. If a tombstone already exists, reuse its FenceId, sequence and outbox intent. Otherwise commit the tombstone/epoch advance and outbox together, conditional on the expected versions. A duplicate revoke, even with a different request key, MUST NOT create a second fence for the same irreversible target revocation. Distinct restricting policy revisions are distinct facts.
- Append that immutable fence and event intent to the independent fence log and wait for durable acceptance. Retry an uncertain result with the same identity. Until this succeeds the command MUST NOT acknowledge success; the already committed operational fence MUST nevertheless deny use. Concurrent retries MUST converge on the same fence. The dispatcher MAY deliver the fact only after the log append is confirmed.
- Return acknowledgement only after steps 2 and 3. No distributed transaction between Chronicle, the operational store and the fence log is assumed. Failure between these commits is resolved by idempotent retry and recovery, not by undoing a fence. If either required durability service cannot accept the restriction, report failure/pending, never successful revocation.
- Dispatch the outbox asynchronously to Chronicle with a stable caller-chosen idempotency key derived from its scoped OutboxId. Preserve the original payload, event-source id and generation. The dispatcher appends Internal facts only: for a Public catalogue event it appends that event’s Internal source fact, and the Public contract follows by outbox publication (events v1 §4.1). Chronicle’s keyed append capability MUST be checked; an arbitrary event-id field or a unique constraint alone is not a deduplication guarantee. An append acknowledgement, including a verified identical prior append, permits marking the entry delivered. Retain enough log intent to reconstruct it after restore. A key/content conflict MUST stop delivery and alert, not silently count as success.
- Retry after append timeout, failure or crash before marking delivery. Consumers MUST tolerate redelivery, recovery and replay; applying a tombstone or epoch is idempotent. No replay may mint credentials, restore membership, send mail or remove a tombstone. Alert on outbox age, failed delivery and log coverage loss.
The fence and outbox transaction is a requirement on the operational adapter, not a claim that Chronicle atomically commits external credential state. Chronicle availability MUST NOT gate revoke acknowledgement when the two required durable commits are available.
3.1 Domain facts
Section titled “3.1 Domain facts”Use the catalogue names unchanged: AccountDisabled, AuthorizationRevoked, RefreshTokenFamilyRevoked, RealmPolicyEpochAdvanced and RealmRecoveryEpochAdvanced carry FenceId/FenceSequence and the catalogue’s other fields. Each is Public, so the dispatcher appends its Internal source fact (events v1 §4.1), which carries the same fields; names below refer to the Public contract. UpstreamKeyUnlinked (source fact UpstreamKeyUnlinkRecorded) reports an unlink fence (§7); it keeps its catalogue fields, and the fence’s FenceId/FenceSequence live in the fence log and its outbox intent, which recovery uses. RealmPolicyEpochAdvanced is a policy fact only; RealmRecoveryEpochAdvanced reports the independently durable recovery epoch (§6), and enforcement MUST NOT wait for its delivery. RefreshTokenReuseDetected is the non-secret compromise fact, not an individual rotation event. Its DetectionId and its associated family-revocation outbox intent MUST be stable under retry. ConsentWithdrawn MUST fence related grants before withdrawal is acknowledged; AccountEnabled MUST NOT restore old credentials.
OrganisationPolicyChanged and TenantBindingRemoved remain Access-owned facts with PolicyEpoch; policy restrictions MUST publish the required epoch/Access sequence through the priority fence path before stale authority can continue. Products own membership, runner, PAT, delegation and approval facts; this specification does not add those events to Identity’s catalogue. Session continuations, individual rotations and fence transport MUST NOT become domain events. Catalogue vocabulary is unchanged (§10 point 6), with no renames.
4. Redemption and concurrency
Section titled “4. Redemption and concurrency”The serialization point is the successful conditional operational-store commit authorizing use or consuming/replacing a credential, ordered against the applicable fence transaction. For a read-only use it is an authoritative serialized status/epoch read, ordered with revoke in the same authority. No positive credential-status cache is permitted on a path promising next-use denial. An operation already ordered before revoke may finish; one ordered after it MUST fail. Multi-row/ancestor checks MUST be protected from write skew, not merely read before an unrelated write.
Every credential verifier MUST check the current recovery epoch. Every refresh, PAT use, session continuation/cookie validation, authorization-code redemption, runner dispatch/rotation, delegation exchange/tool call and approval use MUST perform this order:
- Select the credential-kind verifier once, validate its cryptographic/secret evidence, expiry, binding and request constraints; never fall back to another verifier after failure. For JWTs retain the access-token profile’s validation order before authorization.
- Require the authority/credential class to be ready under §6. Resolve the known credential, account, grant/family and, for delegation, complete server-side ancestry. Unknown state, lineage or membership MUST deny.
- Check the current authority and realm recovery epochs from their independent authoritative custody and all applicable tombstones and account/grant/family/realm epochs. A stateful credential or grant created before any applicable current recovery epoch MUST always deny and MUST NOT be re-evaluated or upgraded. Missing or unprovable recovery epoch state MUST deny. Only a credential that passes this check may undergo policy-epoch re-evaluation: an older policy epoch requires a projection at least at the fence’s required epoch and Access sequence, never older policy. Check live product membership and required Access freshness. Failure or uncertainty MUST deny.
- Conditionally authorize/commit against the versions just checked. Refresh atomically consumes the old token and installs the replacement in that transaction; session continuation MUST NOT renew a fenced session; delegation MUST check every ancestor; approval MUST atomically consume its single use with the protected operation, or use a separately proven idempotent operation protocol. A failed conditional write MUST re-read authoritative state, not reuse earlier permission.
- Release any replacement token or authorization result only after commit. Preserve original grant/resource/tenant/scope constraints and actual
auth_time. No new contract claim is introduced here.
External membership and Access are not participants in an invented cross-service transaction: products serialize membership-sensitive decisions with their own membership writer; Access uses the bounded epoch/projection protocol in §7. Each boundary MUST enforce its own checks, even when AuthProxy has already authenticated the caller. Long-running sessions, streams and jobs MUST revalidate before each newly authorized action/dispatch and disconnect or stop further work when denied.
4.1 Refresh versus revoke
Section titled “4.1 Refresh versus revoke”Both operations MUST contend on the same family/grant fence version in the operational authority:
- If revoke commits first, refresh MUST fail and mint nothing.
- If refresh commits first, it may issue one replacement and access token. The later family fence MUST deny that replacement and all further family redemption, including on another replica. An already issued offline JWT has only the expiry guarantee in §7; sensitive checks MUST resolve its family/grant and deny it after the fence.
- A revoke of the parent grant/account MUST cover all families, including a family concurrently being created. Creation MUST condition its commit on the parent versions, not on a prior projection read.
4.2 Double refresh and reuse
Section titled “4.2 Double refresh and reuse”The access-token profile requires rotation without a reuse grace window. Exactly one concurrent refresh of an unconsumed token can win the consume/replace CAS. The loser MUST re-read the token’s consumed state, classify the repeated token as reuse and durably fence the whole family through §3, with RefreshTokenReuseDetected and RefreshTokenFamilyRevoked outbox facts. It MUST return no replacement. The winner’s replacement is then unusable. A later network retry of a consumed token is also reuse; this specification does not introduce a response-replay grace exception. Missing token state is denial, not proof of reuse.
If durability is unavailable during reuse handling, the request MUST fail closed, the authority MUST quarantine affected family redemption until the pending restriction is durable, and MUST NOT claim completed family revocation. Unreachable replicas cannot serve this class from cached positive state.
4.3 Answer to design question 16
Section titled “4.3 Answer to design question 16”Chronicle per-event-source optimistic concurrency is not sufficient for refresh-family revocation in this design. It can reject competing event appends based on an expected scoped tail (including a checked first append when configured), but individual refresh rotations/consume state and authoritative fences intentionally live outside Chronicle, and existing refresh must remain possible during a Chronicle outage. An event append cannot serialize that external CAS with an asynchronous outbox or reactor. Unique constraints enforce declared event uniqueness, not external token consumption; reactor delivery can repeat and is not a transaction with its external effect.
Therefore refresh consumption/replacement and the family/grant fence MUST share the operational-store serialization boundary. Chronicle keyed append provides idempotent publication of the subsequent facts, not that boundary. Still open: selecting and proving the operational/log adapters, ancestor contention and multi-replica isolation, capability/version support and restore-safe idempotency. This answers refresh-family revocation only; account-link uniqueness in q16 remains governed by contract v1 and requires its own proof.
5. Invariant B1: acknowledged fences survive restore
Section titled “5. Invariant B1: acknowledged fences survive restore”Every acknowledged fence MUST be in the fence log, written durably before acknowledgement. The fence log MUST be kept outside both stores’ backup sets (Chronicle and the operational store), with its own recovery watermark. On restore of either store, fences after that store’s snapshot MUST be re-applied from the fence log before serving affected credential classes. An event-store watermark alone MUST NOT prove fence completeness: a fence may have been acknowledged without ever reaching Chronicle.
Fence replay alone MUST NOT prove recovery of stateful credentials or grants. A contiguous fence prefix proves no internal holes, but does not prove a complete tail: a revocation, scope narrowing or expiry shortening can commit after the last durable fence entry and vanish when both stores roll back. Consumption, budget spending and rotations may also commit without a fence. Every restore MUST therefore satisfy §6’s recovery epoch, restriction recovery and retirement rules, even when all fence watermarks agree.
Tombstones and fence-log intent MUST outlive the longest credential/grant they revoke and the longest backup retention of either store, including restore windows. Expiring a TTL row MUST NOT resurrect an id. Compaction MAY replace historical tombstones only with an equally durable denial index and proven recovery coverage; ids MUST remain never-reassigned. Backups MUST carry store incarnation, snapshot fence watermarks and log partition/coverage metadata; copied checkpoints MUST NOT describe effects absent from that snapshot.
Let L be the fence log’s durable contiguous recovery watermark, O the operational applied prefix and C the prefix whose complete event intents are durably appended to Chronicle. These are fence sequences, not Chronicle positions. Each watermark MUST advance atomically with, or after proof of, all effects in its prefix; one delivered fact from a multi-fact fence is insufficient for C. Pending operational commits not yet confirmed in the log MUST be reconciled, not erased. A log high-water mark MUST NOT conceal a missing entry.
B1 MUST be tested by pausing Chronicle/projections, acknowledging revoke, crashing, and restoring Chronicle, the operational store, and both stores from snapshots predating the fence while retaining the independent log. The revoked credential MUST remain denied, the missing facts MUST be appended once, and readiness MUST stay false until the appropriate prefixes are proven (§6). Tests MUST also crash between each commit, append acknowledgement and outbox completion, and retry duplicate appends.
6. Start-up, recovery and readiness
Section titled “6. Start-up, recovery and readiness”On every start, Identity and participating authorities MUST begin unready until they verify checkpoint/log continuity and whether a restore occurred; a restart MUST NOT assume that no restore occurred. Recovery mode MUST deny issuance and credential use until the restore barrier is satisfied. Every verifier MUST check the current recovery epoch from independent authoritative custody; enforcement MUST NOT depend on asynchronous event delivery, a restored database epoch or an unenforced JWT claim. If current epoch enforcement cannot be proven, verification MUST deny. Unaffected offline JWT verification retains only §7’s expiry guarantee and still requires the recovery check and known live membership/policy; this spec adds no JWT claims.
After any restore, operational, Chronicle or both, every affected authority and realm MUST advance its recovery epoch in independent custody outside both restorable stores, like the fence log. The epoch MUST never roll back or be reused. Every stateful credential and grant MUST record the epoch under which it was created. All pre-recovery refresh families; browser, on-behalf and runner sessions and runner rotations; authorization codes; delegation grants, budgets, reservations, idempotency records and all descendants; approvals; and product-local PATs MUST become unusable. They MUST be re-created under the current epoch with fresh authorization; people MUST re-authenticate and approvals MUST be re-requested. Recovery MUST NOT upgrade an old credential’s epoch or re-evaluate it against policy. V1 has no consumption-log recovery alternative. An accountable owner MAY also advance the recovery epoch for incident containment (the compromise runbooks); the same rules then apply.
Credential invalidation MUST NOT substitute for recovering restrictions. Issuance MUST remain denied in recovery mode until every restriction fact has been re-established from a source outside both restored stores: account disable, consent and authorization revocation, link removal, and membership and policy tightening that the authority owns. Recovery MUST prove contiguous independent fence-log coverage of those facts through a quiesced recovery cut, including pending restrictions, or perform owner-run reconciliation against independent audit. A contiguous prefix alone is not evidence of a complete committed tail. Missing coverage MUST be reconciled from independent evidence, never inferred from the restored stores or replaced by an epoch bump. If completeness cannot be proven, issuance MUST remain denied, even with a healthy epoch authority.
- Identify each restored store incarnation and snapshot watermarks. Quiesce affected issuance and use. Advance and durably record the authority/realm recovery epochs outside both stores, with stable fence and outbox intent; emit
RealmRecoveryEpochAdvancedcarrying the recovery epoch asRestoreEpoch(the catalogue forbidsrecoveryin field names),ReasonId,FenceIdandFenceSequencefor the realm fact. Every verifier MUST enforce the new epochs before readiness, without waiting for the event. - Obtain a durable log recovery barrier
Land prove retained coverage from the relevant snapshots. Reconcile surviving operational pending fences idempotently. For entries afterO, restore denial/epoch state and pending outbox intent in transactions; never overwrite a newer epoch with an older one. Re-establish every restriction fact using the independent coverage or owner-run reconciliation above; an incomplete tail MUST NOT silently disappear. Fence sequences MUST be allocated from independent custody, so a sequence lost with the restored stores stays reserved and is never reused for different content. Reconciliation re-establishes a lost restriction under its original fence sequence and outbox id only when the independent audit carries that identity and the same content. Otherwise the restriction receives a new sequence, allocated after the recovery fence. - For entries after
C, reconstruct and append missing Chronicle facts with the original idempotency keys. A Chronicle restore MUST invalidate operational delivery markers referring to lost appends. An operational restore MUST NOT trust Chronicle alone to discover undispatched fences. Re-apply present facts idempotently; rebuilds MUST mint nothing. - Persist proven contiguous prefixes, including the new recovery fence and its publication intent. For a restored Chronicle, its prefix MUST reach the recovery barrier before readiness; a Chronicle outage during this recovery leaves affected classes denied. This is stricter than a normal outage with intact, proven operational state (§8). For an operational-only restore, durable pending outbox intent suffices while Chronicle is unavailable. Verify the independent retirement tombstones under §6.1 before readiness.
- Open issuance only after restriction recovery, retirement checks, durable prefixes and verifier-wide epoch enforcement are proven. Transition to live fencing without a gap: restrictions arriving after the cut MUST already be enforced by the authoritative path. New credentials require fresh authorization under the recovered restrictions. All old stateful credentials remain denied after readiness. If any required proof or durability service is unavailable, truncated or inconsistent, stay denied; an epoch advance MUST NOT replace restriction recovery.
Possible later extension, not v1: PAT reopening. A later version could allow reopening only with independently proven coverage of every committed restriction through a quiesced recovery cut, pending restrictions included, immutable or durably fenced PAT scope and expiry, and recovered parent restrictions. A contiguous fence prefix alone is insufficient. When completeness cannot be proven, the default MUST be deny. V1 MUST NOT reopen pre-recovery PATs after fence replay or reconciliation.
Readiness, recovery epochs, restriction reconciliation and log/outbox lag MUST be observable per authority/credential class. Neither a healthy process nor a caught-up business projection proves recovery completeness.
6.1 Independent key and client-secret retirement tombstones
Section titled “6.1 Independent key and client-secret retirement tombstones”Recovery epochs and credential invalidation do not cover signing keys or client secrets. Superseded client-secret ids and retired signing-key ids MUST have independent, durable tombstones outside both restorable stores. Tombstones MUST be independently durable before rotation/retirement is considered complete, retain the applicable rejection deadline, survive restore of ClientSecretRotated or signing-key events and MUST NOT permit id reuse or reactivation. Routine overlap MUST NOT be extended by restore.
Before readiness, recovery MUST reconcile these independent tombstones with restored key/secret state and prove enforcement by every issuer, client authenticator and signing-key verifier. Superseded secrets MUST be rejected by their recorded deadline; retired signing keys MUST NOT resume signing or verification beyond their recorded retirement policy. Missing or inconsistent retirement evidence MUST deny affected issuance/authentication/verification, not trust restored activation facts or caches. Enforcement MUST NOT wait on event delivery. Tombstone retention MUST cover the longest relevant backup and acceptance windows.
This section specifies restore safety, not the emergency compromise procedure. Emergency key/secret compromise response belongs to the #18 security runbooks and the access-token profile.
7. Revocation targets and verifier bounds
Section titled “7. Revocation targets and verifier bounds”These are the v1 targets decided in Identity #14 (§10), not measured production guarantees. Next use means zero positive-status-cache staleness at an authorization decision ordered after the fence. It requires an authoritative fence/epoch check; if unavailable, deny. AuthProxy MUST NOT forward an uncheckable credential as verified; where it does not handle a kind, it MUST NOT imply a revocation guarantee for it. Arc and the product MUST enforce their boundaries independently.
For policy-dependent decisions the Access ordinary bound is 60 seconds, the critical fence-heartbeat bound 5 seconds, measured from trusted source progress/heartbeat, not local receipt of old data. A current heartbeat MUST NOT hide missing events. Critical decisions additionally require the projection to have applied the fence’s required epoch/Access sequence. Exceeding a bound MUST deny; policy tightening MUST NOT be evaluated against pre-epoch policy. Credential creation, approvals, support/delegation grants, binding changes and deprovisioning are critical. Known stale ordinary policy MUST NOT authorize beyond 60 seconds.
AT expiry below means the access-token profile’s 300-second default, maximum 600-second minted lifetime, with its single 30-second verifier skew: absent online checks, remaining acceptance can be up to 330 seconds by default / 630 seconds at the ceiling from issuance, not an instant family-revocation guarantee. Sensitive actions MUST check live grant/family/epoch state and membership; standalone JWTs do not acquire new epoch/grant claims from this spec. A trusted issuer-side status lookup/mapping is required where the present claims cannot resolve those checks (§10).
| Target | What is revoked; authorized revoker | Propagation / how learned | AuthProxy maximum staleness | Arc maximum staleness | Product maximum staleness |
|---|---|---|---|---|---|
| Membership | Product tenant membership and roles; authorized product membership administrator or the member leaving, subject to product rules | Product’s authoritative membership transaction; live lookup, not JWT claims or Access organisation binding | Next request if it makes a membership decision; otherwise no membership assertion | Next request, product live membership | Next request; unknown always denies |
| PAT | That PAT id; owner or authorized product/organisation credential administrator | Owning product fence + outbox/log; authoritative PAT status on every request; policy epoch recheck | Next use if handling PATs, else no PAT verification | Next request fence check | Next request fence check, including another replica |
| Refresh token / family | A consumed token is unusable, including after restore; revoke/reuse fences the whole family; owner, authorized Identity administrator, client for its own grant, or reuse detector | Identity operational CAS/fence; §6 recovery epoch barrier before readiness; RefreshTokenFamilyRevoked, RefreshTokenReuseDetected; grant revocation uses AuthorizationRevoked |
No new token after next refresh denial; already issued AT expiry unless online status checked | AT expiry for offline verification; next sensitive use via live status | AT expiry for offline verification; next sensitive use via live status |
| Unlink | Every grant, refresh-token family and browser session whose authentication used the unlinked key: the sign-in evidence is withdrawn. Each such credential MUST record the LinkId it authenticated through. Grants and sessions authenticated through the account’s other links are unaffected. Authorized revoker: whoever may unlink under contract v1 |
Per §3: the unlink fence (target kind link, target id LinkId), the fences for every affected family and session and their outbox intents (UpstreamKeyUnlinked, plus RefreshTokenFamilyRevoked/AuthorizationRevoked per affected grant) commit in one operational-store transaction; independent fence-log durability before acknowledgement; Chronicle publication asynchronous, never gating acknowledgement; §6 recovery re-establishes the unlink from the fence log |
No new token after next refresh denial; already issued AT expiry (300 s default) unless online status checked | AT expiry for offline verification; next sensitive use via live status | AT expiry for offline verification; next sensitive use via live status |
| Browser session | Session id and continuation, not automatic resurrection of underlying grants; owner or authorized Identity administrator | Authoritative session fence and policy epoch at every cookie validation; no session domain event | Next cookie validation/request | Next use of session-derived context with live status; offline AT expiry if separately issued | Next session continuation/request; offline AT expiry if separately issued |
| Runner credential | Registration/key id, active connection and future dispatch; owner or authorized product runner administrator | Product fence, active disconnect; live registration check before dispatch; rotation rejects superseded key by its deadline | Next use if handling this kind, else no runner verification | Next dispatch/use fence check | No dispatch after fence; initiate disconnect at commit; session lifetime at most 24 hours, not permission to delay revocation |
| Delegation grant | Grant and all descendants, including concurrently created children; grant owner or authorized delegating authority/administrator | Parent fence; full server-side ancestor checks at exchange and every capability/tool boundary; no need to enumerate descendants to deny | Next delegation use; derived offline AT expiry alone is insufficient for tool authorization | Next tool call/exchange, all ancestors | Next tool call/exchange, all ancestors |
| Approval | Approval id on explicit void, consumption or expiry; approver/authorized approval administrator may void, consuming operation consumes once, including across restore | Authoritative single-use CAS, expiry and ancestor/policy checks; serialized with void; §6 recovery epoch barrier before readiness | Next approval use if handled, else no approval assertion | Next approval-sensitive action; critical epoch bound also applies | Next action; consumed/void/expired always denies |
| Policy change | Older policy evaluation, not identity; authorized Access policy administrator | OrganisationPolicyChanged, TenantBindingRemoved, priority epoch/sequence fence and local Access projection; RealmPolicyEpochAdvanced for policy only |
Next policy-dependent use after learning epoch; ordinary ≤60 s, critical heartbeat ≤5 s + projection caught up | Same bounds; older epoch forces re-evaluation | Same bounds; never substitutes for live product membership |
Account disable/erasure and consent withdrawal MUST fence all affected grants/sessions/families through their parent authority; AccountDisabled and AuthorizationRevoked preserve the event catalogue. Re-enablement or new consent MUST NOT remove old target tombstones. A policy epoch re-evaluation may preserve a still-compliant credential only if its recovery epoch is current; it MUST NOT clear an irreversible revocation or rescue a credential from an older recovery epoch. Restore invalidation and issuance recovery apply to every stateful target in §6, including product-local PATs, independently of this table’s normal-operation bounds.
8. Dependency-down behavior
Section titled “8. Dependency-down behavior”No outage permits bypass of a required check or a successful response before required durability. Cached positive credential status MUST NOT substitute for next-use fencing. Independently verifiable JWTs may continue only within expiry/skew, current recovery epoch checks, trusted-key availability, live membership and policy bounds; this is not permission to continue PAT/session/delegation use when their status authority is unavailable.
| Unavailable dependency | Issuance | Redemption / continuation | Verification | Revocation |
|---|---|---|---|---|
| Identity | No login, consent, refresh, exchange or new Identity grant | Identity-owned classes deny; independent product PAT/runner authority may continue if all its checks are ready | Existing JWTs within expiry, current recovery epoch and other checks; product PATs with independent ready authority may continue | Identity-owned revoke cannot acknowledge; independent product authorities may revoke using their own required stores |
| Chronicle | No sign-up, consent, client registration/linking or other event-authoritative new authority | Existing refresh/session grants may continue against proven intact operational fences, current membership/policy; no new grants/exchange enlarging authority; restored/unproven classes remain denied | Intact status authorities and valid offline JWTs with current recovery checks may continue; unknown membership denies | Fence/outbox + independent log still commit and acknowledge; dispatcher retries; consequential event-authoritative writes otherwise deny |
| Access feed / priority fence | No policy-dependent issuance when ordinary progress exceeds 60 s or critical heartbeat exceeds 5 s / required projection is behind | Apply the same tier bounds; never carry an old policy epoch forward without re-evaluation | Within ordinary bound only; critical checks require current heartbeat and applied epoch/sequence; beyond bound deny | Restrict-only owner-authorized revoke may proceed with proven revoker authority; no stale policy may authorize a new privilege or weakening |
| Audit store | No approval-sensitive issuance without durable required audit acceptance; other issuance only if its required outbox is durable | Approval-sensitive use denies; low-risk operations need not wait for an audit projection | Low-risk reads may continue with all authorization checks; audit-required operations deny | Denial MUST NOT wait for the audit sink: durable fence/outbox/log allow acknowledgement and retry audit delivery; alert |
| Upstream IdP | No login or step-up needing fresh upstream evidence; no bypass of mandatory SSO | Existing sessions/refresh only while policy permits existing evidence; fresh assurance requirement denies | Existing credentials only within policy, expiry and live checks | Locally authorized restriction continues; an action needing unavailable fresh revoker assurance cannot acknowledge as authorized |
| Fence log store | No new authority whose recovery safety cannot be proven; never issue affected classes in recovery | Intact operational checks may continue for already proven state; pending reuse restriction or uncertain coverage denies affected class | Ready authoritative status checks / offline JWT limits only; no stale cache fallback | Operational fence MAY commit and deny immediately, but MUST NOT acknowledge until independent log is durable |
| Operational status store | No affected credential issuance | All affected refresh, PAT, session, runner, delegation and approval decisions deny | Offline JWT limits only with independently known live membership/policy; no positive-status fallback | Cannot commit fence + outbox; no success acknowledgement |
9. Data vectors and required conformance
Section titled “9. Data vectors and required conformance”JSON vectors are data only, not credentials or implemented/passing executable specs. Each file contains name, description, given, when (ordered timeline steps) and then. Fixture ids are synthetic local labels, not proposed wire identifiers. An event_type/event_types value names the catalogue event (the Public contract where the row is Public); per §3 step 5 the dispatcher appends that event’s Internal source fact, and an expected Chronicle fact count counts source facts. Unless separately specified, a vector’s recovery_epoch applies to both its authority and realm; it is not a policy epoch. Sequence numbers and times are illustrative fence sequences / seconds; a harness MUST supply real multi-replica stores, faults and barriers rather than mock the serialization point away. t values order a timeline; order distinguishes steps at the same time. Unspecified dependencies are healthy, membership is known/allowed, policy is current, and target status is active before the steps. ready describes the affected class, not process liveness. Expected append/fence counts count logical durable facts, not delivery attempts.
Conformance MUST exercise crashes after operational commit, log append, acknowledgement, Chronicle append and before outbox completion; replay/duplicate publication; restore of either and both stores; projection pause/rebuild; refresh races and reuse; remote-replica PAT use; ancestor revocation; stale Access and unknown membership; and recovery readiness/watermark gaps. Restore vectors MUST cover consumed refresh and approval invalidation with durable watermarks/outbox intent, delegation budget re-spend denial, denial of both sides of runner rotation, lost account disable blocking fresh login despite a healthy epoch authority, PAT revocation lost beyond the durable fence tail, policy-epoch re-evaluation versus unconditional recovery-epoch denial, and restored client-secret rotation with independent retirement enforcement. It MUST assert no secret/token/handle enters events or the fence log. Boundary tests MUST include exact 5/60-second freshness limits, 300/600-second AT lifetime plus 30-second skew, in-flight decisions on both sides of the fence, and fail-closed behavior for every dependency row. JSON parsing alone proves syntax, not these guarantees.
9.1 Unit replay and rebuild coverage
Section titled “9.1 Unit replay and rebuild coverage”The replay suite rebuilds all four current read models from empty state, then repeats the same history. It preserves the operational grant fence, version, sequence and outbox while source facts are redelivered; refresh remains denied and keyed source-fact appends remain singular. The stale-Chronicle recovery case reapplies the independent fence before readiness and leaves admission closed while fact coverage is missing. It does not reset operational status from business projections.
An observer-inventory tripwire rejects unclassified observers and declared token, grant-mutation, mail or clock dependencies. This reflection check is structural, not behavioral proof of absent effects. A recording token collection observes an initial real token-store insert as a positive control; the same store and operational fence are then used for revocation and rebuild, with no further insert and a refused post-rebuild creation attempt. The only current reactor, AccountPublications, retries failed publication and deduplicates by FactId:contractTypeId, not a sequence number. Registry-driven serialized log/outbox scans reject synthetic secrets and poisoned payloads. These unit checks complement, rather than replace, the real-store restore/race conformance above. Consent uses the real activation API with in-memory doubles; real-kernel consent replay remains with #99.
10. Decisions recorded at sign-off and implementation proof
Section titled “10. Decisions recorded at sign-off and implementation proof”Decided in Identity #14 (2026-11-05) with the recommended answers from the sign-off package; items that name proof are W2 implementation evidence, not approval.
- Durable adapters: W2 implementation proof (#41/#42 and Chronicle owners) of operational isolation, fence/outbox atomicity, independent log durability/backup exclusion, monotonic allocation, hole handling, checkpoints and restore retention. No cross-store Chronicle transaction is claimed. The mandatory recovery epoch needs a non-rollbackable authority and verifier-wide enforcement; until proven, incomplete coverage stays denied.
- Chronicle compatibility: W2 implementation proof of deployed client/kernel keyed-append support, retention of deduplication identity through restore and stable event content/generations. Reactor delivery is not exactly once; external effects need their own atomic idempotency. A unique constraint alone is not the refresh-family solution.
- Targets and ownership: decided with the Identity/AuthProxy/Arc, Access and Direct/Studio owners: the next-use targets, per-kind revoker permissions, independent product authority integration, 24-hour runner session ceiling and active-disconnect behavior. Membership remains product-owned.
- Freshness and policy: the 60-second ordinary and 5-second critical bounds, source heartbeat semantics and epoch-before-policy ordering are decided (D20 option C, Identity #69; D5 option A, Identity #23); measuring them is W2 implementation evidence. The access-token profile’s 300-second default/600-second ceiling and 30-second skew are decided; no instant offline-JWT revocation is promised.
- Status lookup and operation coupling: specify authenticated lookup/correlation for existing JWT
jtito grant/family/epoch without adding unreviewed claims; prove ancestor/parent-creation contention and approval-consumption/protected-operation coupling. Until available, sensitive operations MUST deny rather than rely on offline expiry. - Event and lifecycle alignment: unchanged Identity catalogue vocabulary, Access priority fence integration, product-owned revocation facts and required audit acceptance are decided. Tombstone/log retention covers the longest grants/backups and the refresh profile’s 30-day absolute/7-day idle lifetime; no reuse grace window is added.
- Decided restore model: v1 mandates an independent, non-rollbackable recovery epoch after any restore, invalidation of every stateful credential including product-local PATs, recovery of all restriction facts, and independent key/client-secret retirement tombstones. No consumption-log alternative or PAT reopening is permitted. Prove the restore barrier, complete restriction recovery and verifier-wide enforcement before readiness;
RealmRecoveryEpochAdvancedreports the fact, not its enforcement. - Authenticating-link proof (Identity #85): every grant family records the account link it authenticated through (
GrantState.LinkId, written at family start and kept across rotation), and every browser session records it server-side. Refresh and cookie use check that the link is still one of the account’s links, lazily and fail-closed: an unlinked, missing or unreadable link refuses the use, and a refusal fences the family. Unlinking does not yet fence eagerly (that is #41). Grants and cookies issued before this change carry no link and are refused, so those users sign in again (#110 owns migration). The unlink vector is replayed byfor_RefreshGrantAdmission; the private claimcratis_authenticating_linkhas no destinations and is proved by spec to survive in refresh tokens and stay out of access tokens. - Acceptance: signed off in Identity #14 (2026-11-05). Q16’s separate account-linking question is not resolved by the refresh-family answer. This specification and its data vectors are not production conformance evidence.