Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
ae50e6d
Prepare exact Account admission source capture and lease evidence
benhook1013 Oct 7, 2026
9e6bb64
Persist exact Account admission lease storage and recovery
benhook1013 Oct 7, 2026
0d4ddb3
Authenticate initial admission evidence and capture owned sources
benhook1013 Oct 7, 2026
475949f
Prove fresh Account restriction sources and exact admission recovery
benhook1013 Oct 7, 2026
e52fdee
Add exact Game Session admission readback client and repair historica…
benhook1013 Oct 7, 2026
acfc654
Fence pending lifecycle admission reads and retain authenticated abor…
benhook1013 Oct 7, 2026
2ddb226
Deny new canonical JOIN mutations while lifecycle intents remain pending
benhook1013 Oct 7, 2026
7c8e40a
Correct first-JOIN PostgreSQL provenance fixture binding
benhook1013 Oct 7, 2026
63d4ae9
Read first-JOIN lifecycle fixture status through a typed record
benhook1013 Oct 7, 2026
215124f
Add exact Account mTLS World player hold acquisition and recovery client
benhook1013 Oct 7, 2026
17e8f60
Protect exact negative admission lease readback
benhook1013 Oct 8, 2026
28a1ef9
Prepare exact Account admission COMMIT durability confirmation
benhook1013 Oct 8, 2026
42a2083
Fence Account-wide pending intents and prove durable fixture configur…
benhook1013 Oct 8, 2026
2b19e46
fix(account): observe durable admission proof before tuple-lock WAL
benhook1013 Oct 8, 2026
1baaaaa
Capture Account durable confirmation from fixed snapshot before heap …
benhook1013 Oct 8, 2026
109a118
Account: diagnose strict WAL coverage and correct JOIN row snapshots
benhook1013 Oct 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ Later clarification: [ADR 0132](./adr-0132-namespace-scoped-single-character-con

Game Session consumes authoritative Account membership, entitlement, and revocation state. It stores only the token identity and freshness metadata needed to validate a binding, such as token hash, issued-at time, and `membershipVersion`; it must not make a persisted raw backend JWT the durable session authority.

For issuer-generation consumption only, Game Session may maintain one derived consumer-local projection under its own namespace: `session:game:auth:issuer-generation:v1:<issuerId>`. Its schema is `game-session-auth-issuer-projection/v1` with `{schemaVersion, issuerId, issuerAuthGeneration, lastAppliedSourceOutboxSequence, sourceOutboxStreamKey, sourceEventId, sourceEventDigest, appliedAt}` plus bounded per-sequence applied-source evidence, or an explicit immutable Account source-checkpoint lookup. Account's issuer `outboxStreamKey` is immutable for the life of that issuer authority and must not be regenerated by deployment, failover, Redis reset, or projection repair. If authoritative recovery ever changes the stream key or resets its sequence/epoch, Account must first install and expose an authoritative checkpoint for the new exact stream identity/epoch; consumers quarantine the scope and accept no changed- or reset-stream event until that checkpoint is validated. The checkpoint, not an inferred event baseline, is the only value that may establish the new local watermark or permit sequence advancement. The canonical issuer projection watermark is `lastAppliedSourceOutboxSequence`. For each exact `sourceOutboxStreamKey`, an incoming event is applicable only when its source sequence is exactly `lastAppliedSourceOutboxSequence + 1`; a higher sequence is a gap that must be quarantined and reconciled from Account before either the watermark or generation advances. An event at or below the watermark is an idempotent no-op only when retained evidence or an exact Account checkpoint lookup proves the complete required authority evidence: the same `authorityTuple`, positive `issuanceFence`, complete `outboxCheckpoints` set, event ID, sequence, recomputed event digest, exact stream key, and `issuerAuthGeneration`. A sequence/event/digest/stream/generation match without the complete tuple, fence, and checkpoint set is not duplicate proof. Missing, partial, generation-only, stale, regressed, conflicting, or ambiguous evidence, including an older event outside the bounded local evidence window that cannot be resolved by the exact Account lookup, quarantines the scope and is reconciled rather than treated as a no-op. A next-sequence event must pass the same complete evidence comparison before the watermark or generation advances; a lower `issuerAuthGeneration` is contradictory Account evidence, while an equal generation is idempotent and a higher generation uses set-if-greater semantics. This local projection is a revocation-consumer cache, not an authority source, and Game Session must never write or mutate any canonical `session:auth:generation:*` key. Account's durable issuer generation and its canonical projection remain the only authority; Game Session owns only this derived consumer-local projection.
For issuer-generation consumption only, Game Session may maintain one derived consumer-local projection under its own namespace: `session:game:auth:issuer-generation:v1:<issuerId>`. Its local projection schema remains `game-session-auth-issuer-projection/v1` with `{schemaVersion, issuerId, issuerAuthGeneration, lastAppliedSourceOutboxSequence, sourceOutboxStreamKey, sourceEventId, sourceEventDigest, appliedAt}` plus bounded per-sequence applied-source evidence, or an explicit immutable Account source-checkpoint lookup. Issuer events and source snapshots use the closed issuer-specific schema owned by [ADR 0030](./adr-0030-risk-based-active-session-revocation.md): they bind the exact issuer scope, committed `issuerAuthGeneration` and source version, and exact stream checkpoint, with event identity and digest for positive sequences. They contain no recipient `authorityTuple`, `issuanceFence`, or full `outboxCheckpoints` set. Every reconciliation snapshot, including sequence zero, binds its source transaction or immutable source version to the exact reconciliation operation identity as specified by ADR 0030. Account's issuer `outboxStreamKey` is immutable for the life of that issuer authority and must not be regenerated by deployment, failover, Redis reset, or projection repair. If authoritative recovery ever changes the stream key or resets its sequence/epoch, Account must first install and expose an authoritative checkpoint for the new exact stream identity/epoch; consumers quarantine the scope and accept no changed- or reset-stream event until that checkpoint is validated. The checkpoint, not an inferred event baseline, is the only value that may establish the new local watermark or permit sequence advancement. The canonical issuer projection watermark is `lastAppliedSourceOutboxSequence`. For each exact `sourceOutboxStreamKey`, an incoming event is applicable only when its source sequence is exactly `lastAppliedSourceOutboxSequence + 1`; a higher sequence is a gap that must be quarantined and reconciled from Account before either the watermark or generation advances. An event at or below the watermark is an idempotent no-op only when retained evidence or an exact Account source-checkpoint lookup proves the complete issuer event schema and source evidence, including exact scope, committed generation/source version, stream checkpoint, and positive-sequence event identity/digest. A generation-only match or an event ID/digest/stream/generation match without the complete issuer source evidence is not duplicate proof. Missing, partial, stale, regressed, conflicting, or ambiguous evidence, including an older event outside the bounded local evidence window that cannot be resolved by the exact Account lookup, quarantines the scope and is reconciled rather than treated as a no-op. A next-sequence event must pass the same complete issuer-evidence comparison before the watermark or generation advances; a lower `issuerAuthGeneration` is contradictory Account evidence, while an equal generation is idempotent and a higher generation uses set-if-greater semantics. This local projection is a revocation-consumer cache, not an authority source, and Game Session must never write or mutate any canonical `session:auth:generation:*` key. Account's durable issuer generation and its canonical projection remain the only authority; Game Session owns only this derived consumer-local projection.

### Canonical Checkpoint And Source-Evidence Binding

[ADR 0030](./adr-0030-risk-based-active-session-revocation.md) owns the unchanged `outboxCheckpoints` entry schema: exactly `{outboxStreamKey, outboxSequence}`, with one entry for every applicable authority stream. `compareOutboxCheckpointEntries(a, b)` compares the unsigned UTF-8 bytes of `outboxStreamKey` lexicographically and places the shorter key first when one is a prefix. Duplicate stream keys, locale collation, Unicode normalization, case folding, alternate escaping, or another ordering are invalid.

Event identity and digest remain separate same-snapshot source evidence rather than members of `outboxCheckpoints`. For each checkpoint, retained applied-source evidence or an exact Account lookup binds `{outboxStreamKey, outboxSequence, eventId, eventDigest, authorityTuple, issuanceFence, outboxCheckpoints}` from one Account linearization point. Delivery, refresh, rebind, binding CAS, acknowledgement, retries, and duplicate detection carry or resolve that complete binding without adding fields to the checkpoint carrier. A latest entry, aggregate maximum, projection-only value, partial source-evidence match, or evidence assembled from separate snapshots is invalid and quarantines the affected scope.
Event identity and digest remain separate source evidence rather than members of `outboxCheckpoints`. For issuer projection events, retained evidence or an exact Account source lookup binds the complete closed issuer schema and source version to its exact issuer stream checkpoint; it does not add recipient tuple, fence, or checkpoint-set fields. Recipient admission, refresh, rebind, binding CAS, and their acknowledgements/retries still carry or resolve the applicable full same-snapshot `authorityTuple`, actual `issuanceFence`, and complete `outboxCheckpoints` set. For event consumption, Account authenticates those recipient carriers as separate same-snapshot source evidence bound to the exact consumed event ID/digest and `membershipBaseline` where applicable; they do not extend the closed event schema or its digest input. In either contract, a checkpoint entry remains exactly `{outboxStreamKey, outboxSequence}`. A latest entry, aggregate maximum, projection-only value, partial source-evidence match, or evidence assembled from separate snapshots is invalid and quarantines the affected scope. [ADR 0030](./adr-0030-risk-based-active-session-revocation.md) owns the closed issuer source schema and recipient evidence contract.

### Operation Partition

Expand Down
Loading
Loading