Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
aa8a029
Add distinct Account and Game Session gRPC workload identities
benhook1013 Sep 23, 2026
dc2c392
Merge commit '208019fa2f757eb4662c0bfa88560f6b3546d3c5' into codex/un…
benhook1013 Sep 24, 2026
9e677cc
Merge commit 'ecd119b7aa87de3537fd7470f60f397fb971ada8' into codex/un…
benhook1013 Sep 24, 2026
20f3104
Merge branch 'codex/unit-1a-identity-entitlement' into codex/unit-1a-…
benhook1013 Sep 24, 2026
06ca6ab
Merge branch 'codex/unit-1a-identity-entitlement' into codex/unit-1a-…
benhook1013 Sep 25, 2026
21baa5b
Merge commit '4e1de6d5976a08e73554b3ab2da1f8bbb341e953' into codex/un…
benhook1013 Sep 27, 2026
4d78fab
Retain workload identity high-water and preflight proof
benhook1013 Sep 27, 2026
a6470d3
Reconcile workload identity with 5C/5D and pin served Account leaf
benhook1013 Sep 27, 2026
ca4b3bf
Inherit published Unit 1A identity admission corrections
benhook1013 Sep 27, 2026
5a940f8
Format reconciled hosted identity controller sources
benhook1013 Sep 27, 2026
033b652
Reconcile workload identity child with Unit 1A parent
benhook1013 Sep 27, 2026
76599d3
Align hosted workload identity inventory with seven leaves
benhook1013 Sep 28, 2026
c4a73b0
docs: align seven workload certificate bootstrap guidance
benhook1013 Sep 28, 2026
6519ba3
fix: verify Game Session served workload identity before ready
benhook1013 Sep 28, 2026
26efdeb
docs: align hosted identity ADR with seven workload leaves
benhook1013 Sep 28, 2026
57fd7f6
Reconcile workload identity child with Unit 1A parent
benhook1013 Sep 28, 2026
a9f94e7
Prepare Account join authority and audit receipt stage
benhook1013 Sep 28, 2026
c5d4cc7
Produce exact gameplay realm identity before Account reader
benhook1013 Sep 28, 2026
3f557fd
Apply Account formatting in split writer stage
benhook1013 Sep 28, 2026
b6ad79d
Keep catalog revisions separate from runtime pointer versions
benhook1013 Sep 28, 2026
caf1c94
Retain JOIN scope evidence and stabilize Account replay
benhook1013 Sep 28, 2026
bb62fbd
Fence admission catalog writes with version pairs
benhook1013 Sep 28, 2026
94aa196
Keep admission pointer mutations fail closed before pair CAS
benhook1013 Sep 28, 2026
4fc0bf3
Supersede front-stage mutation guard with full catalog CAS
benhook1013 Sep 28, 2026
5ed245d
Clear front-stage static analysis and owned formatting
benhook1013 Sep 28, 2026
b53b14f
Keep inherited exact-base client guard formatted
benhook1013 Sep 28, 2026
9c1e206
Carry formatted fail-closed front into full catalog CAS
benhook1013 Sep 28, 2026
6118508
Keep catalog CAS child formatting stable
benhook1013 Sep 28, 2026
8b3a08d
Compile catalog CAS integration proof
benhook1013 Sep 28, 2026
8ed5b4f
Format front-stage Account scope retention proof
benhook1013 Sep 28, 2026
3492eef
Carry formatted Account front into catalog CAS child
benhook1013 Sep 28, 2026
765e696
Reject catalog pointers without durable identity
benhook1013 Sep 28, 2026
4586c3c
Record durable realm and namespace identity in pointer audit
benhook1013 Sep 28, 2026
11bea5f
Keep front-stage pointer writes closed pending complete audit
benhook1013 Sep 28, 2026
0dfa86b
Keep pointer mutation RPCs closed until owner proof converges
benhook1013 Sep 28, 2026
c2f8e08
Reconcile fail-closed front with complete CAS audit child
benhook1013 Sep 28, 2026
6a18e70
Fail closed on mismatched admission pointer audit readback
benhook1013 Sep 28, 2026
f0c5859
Preserve unavailable catalog status for valid world selectors
benhook1013 Sep 28, 2026
b4ec4dd
Expose exact bootstrap realm catalog and namespace snapshot
benhook1013 Sep 28, 2026
c99ea25
Preserve durable admission identity in runtime state
benhook1013 Sep 28, 2026
d64d239
Expose unavailable pointer authority as retryable operator status
benhook1013 Sep 28, 2026
9df59e4
Fail closed on incomplete gameplay discovery authority
benhook1013 Sep 28, 2026
1f5d4f0
Lock pointer no-ops and order audit by event sequence
benhook1013 Sep 28, 2026
daff5ba
Merge branch 'codex/unit-1a-join-writer-front' into codex/unit-1a-adm…
benhook1013 Sep 28, 2026
f6cbd4c
Serialize gameplay pointer bootstrap before empty-store check
benhook1013 Sep 28, 2026
49ffae9
Enforce public join policy and tenant realm uniqueness
benhook1013 Sep 28, 2026
08614ea
Reconcile admission CAS child with front policy fixes
benhook1013 Sep 28, 2026
ac10c4f
Keep public bootstrap JOIN closed at Gateway
benhook1013 Sep 29, 2026
13cd5f1
Prove retained pointer audit cannot impersonate current evidence
benhook1013 Sep 29, 2026
045b56d
Reconcile CAS child with Gateway JOIN closure
benhook1013 Sep 29, 2026
15d48e0
fix: validate both hosted workload controller ingress policies
benhook1013 Sep 29, 2026
bccb1f4
Reconcile front stage with published workload identity parent
benhook1013 Sep 29, 2026
05fb49b
Reconcile CAS stage with published front parent
benhook1013 Sep 29, 2026
01f1851
Issue distinct Social Groups workload identity across hosted delivery
benhook1013 Sep 29, 2026
3574e6b
Revalidate JOIN retries and recover trusted demo membership
benhook1013 Sep 29, 2026
d243035
Gate hosted readiness on Social Groups served leaf
benhook1013 Sep 29, 2026
d334d2a
Bind bootstrap realm scope to exact pointer reread
benhook1013 Sep 29, 2026
1f68b65
Merge commit 'd334d2af6f0a090adafd373661887b1a5007bb87' into codex/un…
benhook1013 Sep 29, 2026
b5cd82f
Format front-stage Game Session catalog proof
benhook1013 Sep 29, 2026
e3773d8
Merge commit 'b5cd82ff1' into codex/unit-1a-admission-cas-child
benhook1013 Sep 29, 2026
3b42efd
Format CAS-stage pointer authority proof
benhook1013 Sep 29, 2026
0506b1e
docs(identity): align hosted leaf implementation status
benhook1013 Sep 29, 2026
df5f357
Fail closed on invalid admission pointer bootstrap seeds
benhook1013 Sep 29, 2026
2c451bc
Require canonical playable namespace IDs at join ingress
benhook1013 Sep 29, 2026
59e7271
Merge commit '2c451bc48' into codex/unit-1a-admission-cas-child
benhook1013 Sep 29, 2026
478e3b2
Clarify hosted readiness and Social Groups egress guidance
benhook1013 Sep 29, 2026
bc1b505
Correct shared leaf workload comment
benhook1013 Sep 29, 2026
ce46178
Classify unknown realm-list world selectors as client errors
benhook1013 Sep 30, 2026
c48f1eb
Reconcile workload identities with current identity authority parent
benhook1013 Sep 30, 2026
5cf8474
Preserve common peer trust for Account and Game Session leaves
benhook1013 Sep 30, 2026
00d4023
Reconcile JOIN front with workload identities and preserve fail-close…
benhook1013 Sep 30, 2026
b810e52
Stop advertising the unavailable public JOIN facade
benhook1013 Sep 30, 2026
9b9472b
Reconcile admission CAS child with reviewed JOIN front
benhook1013 Sep 30, 2026
57427f1
Document unavailable admission-pointer authority and prove response
benhook1013 Sep 30, 2026
4847bf2
Keep unproved admission pointer bootstrap fail closed
benhook1013 Sep 30, 2026
c1223c3
Authorize scoped admission pointer reads before audit validation
benhook1013 Sep 30, 2026
58b6413
Correct admission fixture and runtime-state availability contract
benhook1013 Oct 1, 2026
ad7eeeb
reconcile(admission): retain CAS audit boundary on Account core
benhook1013 Oct 1, 2026
1b54162
Merge commit 'ce808846d' into codex/pr2897-cas-reconstruction
benhook1013 Oct 1, 2026
be53640
Merge commit 'a54cebca66196939a90b63c50af255e67e0b624e' into codex/pr…
benhook1013 Oct 2, 2026
47e3887
test(admission): reject nonpositive pointer runtime identities
benhook1013 Oct 2, 2026
4e9cdbd
Align admission proof reads with exact tenant access
benhook1013 Oct 2, 2026
b0babd0
Align pointer CAS implementation status and proof gaps
benhook1013 Oct 2, 2026
75b4b1f
Bound admission pointer reads and preserve availability failures
benhook1013 Oct 2, 2026
2e785b3
Align runtime and audit availability with their public read contracts
benhook1013 Oct 2, 2026
1777925
Correct typed audit ingress capability status
benhook1013 Oct 2, 2026
487e25b
Reconcile pointer CAS preparation with current initial-bind parent
benhook1013 Oct 2, 2026
3e9c9f7
Preserve event-ID audit readback and closed mutation diagnostics
benhook1013 Oct 2, 2026
8c906ac
Align scoped tenant RPC identifiers and dual-revision CAS contract
benhook1013 Oct 2, 2026
f107f42
Preserve prepared-proof availability and clarify owner CAS boundaries
benhook1013 Oct 2, 2026
5cbea70
Align admission CAS status and add PostgreSQL transaction proof
benhook1013 Oct 2, 2026
a804fa3
fix: address admission CAS and operator projection review findings
benhook1013 Oct 2, 2026
a58ce24
Merge current initial-admission parent preserving scoped CAS and owne…
benhook1013 Oct 2, 2026
41c3f98
Merge published parent World CI and review allocation fixes
benhook1013 Oct 2, 2026
f6010f1
test(game-session): reconcile locked mutation and isolated tenant fix…
benhook1013 Oct 2, 2026
a6f07c5
Merge commit '71757118040038a93cf747d39f221f930aabcd66' into codex/wi…
benhook1013 Oct 2, 2026
dc466d9
docs: align admission pointer persistence and startup status
benhook1013 Oct 2, 2026
2cb7544
refactor(gameplay): simplify guarded CAS and distinguish fixture requ…
benhook1013 Oct 2, 2026
7459394
docs: record agent-scoped native process wait limitation
benhook1013 Oct 2, 2026
3117a0b
test(gameplay): consolidate revision proof and reach audit guard
benhook1013 Oct 2, 2026
79c8bcd
Batch scoped pointer audits and clarify authority responses
benhook1013 Oct 2, 2026
75f9d90
docs: align runtime ownership and paired admission CAS proof
benhook1013 Oct 2, 2026
b354268
fix: bound selected admission audit queries and separate status
benhook1013 Oct 2, 2026
b66c09f
Merge commit 'c787f9d37e77e2c4305634d90d98593b9781c54f' into codex/wi…
benhook1013 Oct 2, 2026
3e51258
Merge commit '30ac77d9f7806ca8fb0174cb6f075ab9fd670f8f' into codex/wi…
benhook1013 Oct 2, 2026
03b2d4c
Merge commit '697ff9bb0347cb0daa17d38c40b2283615686972' into codex/wi…
benhook1013 Oct 2, 2026
960ca71
Merge commit 'd672da40c626e8409a95a118345d1f89dd191bc8' into codex/wi…
benhook1013 Oct 2, 2026
65950be
Merge commit '1cf7fcf1749ca70d93d578e105efb3a593f95c32' into codex/wi…
benhook1013 Oct 3, 2026
f2a5e0a
Merge commit '91488caa5a766e5985e42a667470a27c93da7482' into codex/wi…
benhook1013 Oct 3, 2026
633a86c
test: retain bounded unavailable assertion import
benhook1013 Oct 3, 2026
13fc3b3
Reconcile merged registration bootstrap parent
benhook1013 Oct 3, 2026
7f8c76f
Exclude Protobuf extraction tasks from configuration cache
benhook1013 Oct 3, 2026
c8ce687
test(game-session): observe CAS blocking without truncated SQL
benhook1013 Oct 3, 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 @@ -119,6 +119,8 @@ The internal front-end to lease-owner path is a **target-state** fenced gameplay

**Target state:** Gameplay admission uses `JOIN_REQUIRED` only as a next-step response when fresh authority confirms that the selected target is publicly visible and public-production joining is allowed, while the caller's membership is absent or `INACTIVE` under [Account's explicit membership lifecycle](../../decisions/adr-0025-explicit-open-enrollment-membership.md#decision). A public-production policy denial remains `PUBLIC_PRODUCTION_ADMISSION_DENIED`; unavailable, stale, malformed, or ambiguous authority uses the applicable unavailable or invalid-authority outcome instead. Private/playtest admission always requires an existing caller-bound membership, the current membership authority generation, and the applicable Account-owned realm grant; a grant never replaces membership. **Current implementation:** text `PLAY` also returns `JOIN_REQUIRED` when a membership exists but `gameplayAdmissionAllowed=false`. It enforces the current non-public realm grant, while current connect-token issuance does not validate that grant; target connect-token issuance adds the same fresh grant gate.

- **Admission-pointer CAS inputs:** existing-row writes compare the exact `expectedPointerVersion` and `expectedCatalogRevision` pair. The current owner-local no-record insert requires `0/0` as its expected-absent precondition; because no row exists to version-check, insert-race safety comes from runtime-target locking and database uniqueness constraints, not a row-version CAS. Neither condition is proof of realm/catalog initialization or permission to create a pointer. The `SetAdmissionPointer` and `ExecutePreparedVersionCutover` control-plane RPCs remain fail-closed until their complete owner contracts are supported. Initial admission still requires the separate World lifecycle, canonical realm/catalog identity, pointer/audit transaction, and exact owner-readback proof described in [Initial admission bind](#initial-admission-bind).

### ADR-0048 operator-write contract

**Target state:** every mutating operator RPC listed above (`StartSession`, `StopSession`, `RestartSession`, `ToggleFeatureFlag`, `PauseTicksForScope`, `ResumeTicksForScope`, `SetAdmissionPointer`, `ExecutePreparedVersionCutover`, and `PrepareVersionUpgrade`) requires the same durable request identity: `controlPlaneRequestId` plus the canonical `mutationDigest`. Account binds both values into the bounded operator authorization reference, and Game Session recomputes and validates the digest before execution. The owner durably records the request before execution and records a terminal result only after owner-specific commit proof; PostgreSQL-owned mutations commit domain state and result atomically, while Redis-backed projections use the durable claim, fenced mutation marker, and reconciliation contract in ADR 0048. A duplicate request carrying the same digest returns the previously committed result, while the same request identifier with a different digest returns `IDEMPOTENCY_CONFLICT` without applying either payload. A timeout must not create a new request identifier; Logging & Admin may use that identifier only for owner result lookup until the exact operation is reconciled. `FENCE_REJECTED` is non-rearmable and prohibits mutation redelivery. A retry against a current owner or fence is permitted only after the owner has durably recorded terminal `NOT_EXECUTED` proof for the original attempt; it uses a new `ownerMutationId` and a newly fenced attempt while retaining the external request tuple. After authorization expiry, reconciliation is read-only.
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The current shipped scope is narrower than this target contract:

- The service exposes core admin investigation reads, saga inspection of Logging & Admin-local rows only, coordination-health reads, and a narrow log query whose current implementation reads only the service-owned PostgreSQL `log_events` table for an exact tenant plus case-insensitive message containment. Saga inspection does not aggregate adopter-local state; target cross-owner visibility requires owner read APIs plus a bounded aggregation/read model and must distinguish an unknown or unavailable adopter from an empty result. Moderation policy-input and report-persistence paths are only unsupported legacy transport/internal seams that hard fail closed or remain authorization-unproved; they are not exposed current capabilities. The service does not implement the target profile-aware indexed or console/journal query integrations, Kibana/Grafana clients, embedded dashboards, separate admin UI, or the complete target control-plane workflow for every recovery, regional, or aggregate operation.
- The moderation policy-input and audit persistence mutation has present legacy transport stubs through `POST /moderation/actions` and the internal `ApplyModerationAction` gRPC ingress; after narrow tenant/admin checks they hard fail closed with HTTP `503 Service Unavailable` or an application-level gRPC `UNAVAILABLE` error, without dispatch or persistence. They are unsupported, nonconformant implementation drift and must not be wired or called as available mutations. They do not provide the target fixed-category policy-input/audit record or Account, Game Session, or Social & Groups enforcement state. Current execution performs no Account authorization-reference issuance or redemption, owner forwarding, or owner enforcement. Once its action-family schema, shared cross-language `mutationDigest/v1` golden vectors, Account authorization-reference issuance, and Logging & Admin receiving-boundary validation/redemption are complete, Logging & Admin redeems the separate intent-persistence reference exactly once at its receiving boundary; that reference is never forwarded or reused and the path does not require owner-side authorization-reference redemption or enforcement. Any future owner-enforcement command uses a separately issued reference redeemed once by its receiving owner. The separate `EvaluateModerationPolicy` compatibility read remains live at the owner enforcement boundaries and carries no mutation authorization reference. Public administrative report persistence at `POST /admin/reports` is unavailable: the HTTP controller and Gateway route were removed because canonical authorization and live reference validation are not implemented. The internal `CreateReport` gRPC ingress is not public; its interim receiver guard requires an internal-service JWT naming `social-groups-service`, which the Social & Groups client emits, while certificate-derived exact workload/method authorization remains unproved. The reserved player-bootstrap `POST /reports` submission route is separate and also unavailable until its caller-bound subject and live tenant-membership checks exist.
- Admission-pointer reads, audit, and prepared-upgrade proof reads are implemented and live. Internal admission-pointer mutation, version-upgrade preparation, and prepared-cutover owner paths have implementation-participating surfaces, but the current pointer writer is read-then-write/nonconformant; the target atomic open/close CAS and prepared cutover remain unimplemented and externally unavailable behind internal trust boundaries, with public HTTP/Gateway write support unavailable and no current UI control. Target-only absent is reserved for operations with no executable owner path at all, such as quota-override mutations or future named typed recovery actions whose owner contracts do not yet exist.
- Admission-pointer reads, audit, and prepared-upgrade proof reads are implemented and live. Game Session's owner-local pointer persistence primitive now uses a row-locked dual-revision CAS and atomically persists the pointer and audit event. This primitive does not establish the complete operator write contracts: the `SetAdmissionPointer` and `ExecutePreparedVersionCutover` control-plane RPCs remain fail-closed, the target atomic open/close workflow and prepared cutover remain unsupported, and public HTTP/Gateway write support and UI controls remain unavailable. Version-upgrade preparation remains an internal owner path, not a public HTTP capability. Target-only absent is reserved for operations with no executable owner path at all, such as quota-override mutations or future named typed recovery actions whose owner contracts do not yet exist.
- **Implemented but externally gated:** The per-instance tick pause/resume ingress is declared at the `<tenantId, gameInstanceId>` boundary, not a claim of live admin UI or automation, and no Logging & Admin forwarding method is callable. Its minimum schema/authorization gate is the action-family schema, shared cross-language `mutationDigest/v1` golden vectors, Account authorization-reference issuance, and exact owner-side redemption/authentication and scope binding. That minimum gate only establishes that a typed request can be authorized for admission; it is not the complete execution contract. A forwarded tick mutation also remains unavailable until ADR 0048's complete durable, phase-qualified intent and authorization record, canonical `postAuthorizationExecutionTuple`, owner durable idempotency/result record, current owner/gameplay fence, and fenced no-accept/no-commit reconciliation proof are implemented and proved. Regional pause/resume and named regional recovery actions remain target-only behavior, with no claim that the target instance contract implicitly expands to a region or aggregate scope; they are tracked in [Game Session runtime and tick coordination](../../../project-management/implementation-tracking/game-session-runtime-and-tick-coordination.md#capability-status).
- Logging & Admin consumes Game Session health and requests Game Session-owned control APIs; it does not directly mutate Redis or runtime coordination state.
- Moderation policy intent, fixed-category case/audit data, bounded appeal cases/evidence, and operator history remain owned here, while Account, Game Session, and Social & Groups enforce their respective local restriction state. Active [ADR 0146](../../decisions/adr-0146-owner-local-moderation-enforcement.md) (mapped from reviewed archive record `archive-ADR-0133`) is the owner-local authority outcome: one typed digest-bound command reaches the enforcement owner, which commits monotonic local state, and routine boundary reads do not call Logging & Admin. Quota/limit override is hypothetical target UX only; no current Account owner mutation route exists. The legacy policy-input/audit transport stubs now hard fail closed before dispatch or persistence; they do not persist target fixed-category policy input or audit evidence, represent a domain-owner enforcement mutation, or provide target proof. Current execution performs no Account authorization-reference redemption. The current `EvaluateModerationPolicy` read is an implementation compatibility seam, not target authority; target owner commands and bounded appeal outcomes follow [Moderation Policies](./moderation-policies.md). Once the target persistence gate is complete, Logging & Admin validates and redeems its one separate intent-persistence reference exactly once for its own persistence path; it never forwards or reuses that reference. Future receiving enforcement owners redeem separately issued command-bound Account references and retain their own state.
Expand Down
Loading
Loading