Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
247f7ff
Prepare pending issuer bootstrap and physical v2 member contracts
benhook1013 Oct 25, 2026
6a4c3af
Merge commit 'fb2168536feace60fb54d4b83832e1ac6ccc3911' into codex/ga…
benhook1013 Oct 25, 2026
57846ef
Preserve original issuer reservation coverage independently of bootst…
benhook1013 Oct 26, 2026
4c4b590
Merge commit '9fa20adff792aa17b0a8806723fbf4d1b996ecf2' into codex/ga…
benhook1013 Oct 26, 2026
a67401d
Merge commit 'b16ee75f8fdf057900b5b6e1064c991dcf97ba99' into codex/ga…
benhook1013 Oct 26, 2026
a9b6f88
Prepare immutable issuer partition build plans from frozen bootstrap …
benhook1013 Oct 26, 2026
9fb188c
Checkpoint local issuer member issuance and partition projection inte…
benhook1013 Oct 26, 2026
90a2f00
Merge commit 'a67401df8d6ecd0ad278ca3b1c5bc1ef4b90b16c' into codex/ga…
benhook1013 Oct 26, 2026
ffd6edd
Qualify issuer member operation SQL producer
benhook1013 Oct 26, 2026
a5c2b1c
Merge commit '90a2f0076021b2ab11b885f102943c7aaf1b81e1' into codex/ga…
benhook1013 Oct 26, 2026
8160018
Qualify composed issuer partition projection and exact readback
benhook1013 Oct 26, 2026
35144b0
Merge commit '90a3baa800d15237317a6e690959219ecc44e40a' into codex/ga…
benhook1013 Oct 26, 2026
6aaf218
Permit exact frozen binding replay during issuer bootstrap intent
benhook1013 Oct 26, 2026
43d6d50
Prepare complete initial issuer bootstrap owner for consolidated vali…
benhook1013 Oct 26, 2026
57fdceb
Merge commit '90a3baa800d15237317a6e690959219ecc44e40a' into codex/ga…
benhook1013 Oct 26, 2026
cf3cbeb
Merge commit '57fdceb2d06ed5c277e89fda89fe38f9e9bf0935' into codex/ga…
benhook1013 Oct 26, 2026
890fc41
Qualify ordinary issuer registration and one-key reservation projection
benhook1013 Oct 26, 2026
c9399be
Prepare actual first-NEW abort source and integrated issuer operations
benhook1013 Oct 26, 2026
3e3db47
Merge commit 'a4468aeb30f63dbd00fbbd9ca7f5e3cfc7cc9f0b' into codex/ga…
benhook1013 Oct 26, 2026
f1170f3
Merge commit '3e3db47c95bf43b6df3e7ea9ddd56e0e58643345' into codex/ga…
benhook1013 Oct 26, 2026
f5f7c13
Qualify actual first-NEW abort composition and retained member ACK
benhook1013 Oct 26, 2026
325334c
Define issuer release provenance and record actual abort proof
benhook1013 Oct 26, 2026
95e0d0d
Implement retained first-NEW issuer release with exact physical proof
benhook1013 Oct 26, 2026
0cfb1f0
Integrate issuer cleanup with qualified abort source
benhook1013 Oct 26, 2026
15ec7c4
Qualify issuer release and retained original-source recovery
benhook1013 Oct 26, 2026
c82d39c
Receive merged parent and current develop guidance
benhook1013 Oct 26, 2026
524950e
Align runtime fence refusal assertions with definitive abort evidence
benhook1013 Oct 26, 2026
34fea83
Merge remote-tracking branch 'origin/develop' into codex/gameplay-iss…
benhook1013 Oct 26, 2026
b7b71c9
fix(gameplay): fence issuer mutations and retire released capacity
benhook1013 Oct 26, 2026
dd164c1
fix(gameplay): qualify issuer cleanup and original bootstrap retries
benhook1013 Oct 26, 2026
4ce0204
fix(gameplay): retain acknowledged abort cleanup across Account advances
benhook1013 Oct 26, 2026
8cf137b
fix(gameplay): block issuer bootstrap plans with unissuable lifecycles
benhook1013 Oct 26, 2026
22aeb60
fix: refuse unprojectable issuer partition operations
benhook1013 Oct 27, 2026
57d425c
Merge remote-tracking branch 'origin/develop' into codex/gameplay-iss…
benhook1013 Oct 27, 2026
1c68113
Reuse qualified issuer partition proofs and tighten abort composition…
benhook1013 Oct 27, 2026
8185a0d
Merge commit '14c45473674f556a5302be09d804c9905db48c9d' into codex/ga…
benhook1013 Oct 27, 2026
a8ed522
Preserve definitive abort retries and tighten issuer proof integrity
benhook1013 Oct 27, 2026
6999671
Align retirement boundary regression with early registration refusal
benhook1013 Oct 27, 2026
88d736b
Recover stale issuer bootstrap candidates and qualify owner proofs
benhook1013 Oct 27, 2026
17f6b52
Merge remote-tracking branch 'origin/develop' into codex/gameplay-iss…
benhook1013 Oct 27, 2026
7665813
Merge remote-tracking branch 'origin/develop' into codex/gameplay-iss…
benhook1013 Oct 28, 2026
e5f6748
Merge remote-tracking branch 'origin/develop' into codex/gameplay-iss…
benhook1013 Oct 28, 2026
3ef811d
Preserve bootstrap lineage and partition-local issuer progress
benhook1013 Oct 28, 2026
95acdbf
Record completed issuer recovery proof explicitly
benhook1013 Oct 28, 2026
bd2f159
Keep completed issuer ADD retries read-only after release
benhook1013 Oct 28, 2026
7cec9f9
test: separate current abort composition from historical migration proof
benhook1013 Oct 28, 2026
1969bd1
Merge commit '5128ff2428053b9eaf3d969bb3401c64f200f8bf' into codex/ga…
benhook1013 Oct 28, 2026
77877e0
Recover original ordinary NEW operations after source progression
benhook1013 Oct 28, 2026
0b368b8
fix: preserve exact bootstrap supersession replay
benhook1013 Oct 28, 2026
e7c7627
Merge commit '94662ef2610548a3d29e6467085a517750d27cad' into codex/ga…
benhook1013 Oct 28, 2026
0a04dbe
Merge commit 'b23a84f6d7a1e9779338b3c465a6a65c61b775fa' into codex/ga…
benhook1013 Oct 29, 2026
27820e7
Consolidate issuer fixtures and strict Redis lifecycle support
benhook1013 Oct 29, 2026
6b2d4b3
Keep bounded issuer foundation separate from terminal retirement
benhook1013 Oct 29, 2026
35ad2c1
Give each issuer proof class its own test containers
benhook1013 Oct 29, 2026
9c22944
Merge remote-tracking branch 'origin/develop' into codex/gameplay-331…
benhook1013 Oct 29, 2026
35d3772
fix: refuse synchronized ambient issuer Redis work
benhook1013 Oct 29, 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
5 changes: 5 additions & 0 deletions .github/scripts/classify-change-scope.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ function classifyChangeScope(inputFiles, options = {}) {
}
}
}
// Account's native owner composition consumes Game Session classes and migrations.
if (affectedModules.has("game-session-service")) {
affectedModules.add("account-service");
affectedServices.add("account-service");
}
}

const pythonFiles = files.filter((file) => file.endsWith(".py") || isPythonDependency(file));
Expand Down
13 changes: 13 additions & 0 deletions .github/scripts/classify-change-scope.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,19 @@ test("script tests avoid service validation but retain normal tooling proof", ()
assert.deepEqual(runtimeResult.affectedServices, ALL_SERVICES);
});

test("Game Session changes also select Account owner-composition validation", () => {
for (const path of [
"services/game-session-service/src/main/java/Owner.java",
"services/game-session-service/src/main/resources/db/migration/V1038__owner.sql",
]) {
const result = classifyChangeScope([path]);
assert.equal(result.runAll, false);
assert.deepEqual(result.affectedServices, ["game-session-service", "account-service"]);
assert.deepEqual(result.affectedModules, ["game-session-service", "account-service"]);
assert.deepEqual(result.bootableModules, ["game-session-service", "account-service"]);
}
});

test("operational Python forces the normal validation path", () => {
const result = classifyChangeScope([
"dev-tools/hosted/preview/render-preview-values.py",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1052,8 +1052,8 @@ jobs:
permissions:
contents: read
id-token: write
# Account and Game Session need 40 minutes for full checks, packaging and post-job cleanup; World and Game Design retain 30 minutes.
timeout-minutes: ${{ (matrix.module == 'account-service' || matrix.module == 'game-session-service') && 40 || (matrix.module == 'world-management-service' || matrix.module == 'game-design-service') && 30 || 20 }}
# Account and Game Session need 60 minutes for full checks including PostgreSQL/Redis issuer suites, packaging and post-job cleanup; World and Game Design retain 30 minutes.
timeout-minutes: ${{ (matrix.module == 'account-service' || matrix.module == 'game-session-service') && 60 || (matrix.module == 'world-management-service' || matrix.module == 'game-design-service') && 30 || 20 }}
Comment thread
benhook1013 marked this conversation as resolved.
Resolved
strategy:
fail-fast: false
matrix:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Target state makes Game Session the authoritative owner of region/tick coordinat

## Implementation Status

The local issuer-index source carries the selected physical member schema v2 and manually composed SQL, partition and finite initial-coverage owners. Decoding alone validates shape, not current source, anchor, capacity or incarnation authority. Qualified local bootstrap, ordinary physical projection and definitive-abort issuer-local cleanup, together with the remaining admitting acknowledgement and final-CAS gaps, are recorded in the [Player Access tracker](../../../project-management/implementation-tracking/player-access-and-session.md#canonical-new-admission-components); this source is unregistered and supplies no player admission. Retained physical v1 artifacts remain unqualified without fallback, and Account acknowledgement schema v2 remains account-only. The separate owner-qualified issuer acknowledgement and final guarded controller CAS remain required before manual NEW consumers can admit; the [issuer-index owner](../../system-architecture-redis.md#issuer-active-binding-index) owns that contract.

The local [canonical NEW admission lease contract](../../system-architecture-session-behavior.md#canonical-public-production-new-admission) now has generated transport carriers and a manually composed `AccountGameplayAdmissionLeaseClient` for Account’s four purpose-specific methods. Its narrow candidate uses the exact Account issuer string at the original string wire tag; shape validation supplies no issuer authority. The [Account API](../account-service/api-contracts.md#canonical-public-production-new-admission-lease-source) owns caller authentication, acquisition, original finalization and read/abort recovery. The prepared Account-only reverse-read proto and closed codec preserve separate current published-target and exact provisional-decision purposes, with their finite transport bounds; this prerequisite does not supply their genuine Game Session owner composition or register a source receiver. The Account receiver’s focused physical-COMMIT and durable-ACK proof uses explicitly controlled reverse responses. These local components do not acknowledge issuer/region obligations or admit a binding; the [Player Access tracker](../../../project-management/implementation-tracking/player-access-and-session.md#canonical-new-admission-components) records component proof and remaining composition.

The initial-LOGIN PostgreSQL journal and exact original-attempt cleanup owner are unregistered source preparation, with no new Game Session endpoint or legacy LOGIN handler composition. Their unregistered Account client authenticates the exact same-namespace Account mTLS peer and validates the explicit initial delegation profile, signature, original request/context, token hash, claim/projection equality and bounded nonsecret evidence. Its one transient invocation permits at most one transport reload/retry under the unchanged deadline. It also uses the original-request retirement contract. The result retains compact private-token bytes only in process; validation supplies neither current registry authority nor live context installation. Journal snapshots and typed closure fixtures supply no authenticated caller custody or physical Redis closure; the separate Redis adapter remains outside runtime composition. See the [canonical coordination contract](../../system-architecture-jwt-and-token-contracts.md#game-session-original-attempt-coordination) and [implementation tracker](../../../project-management/implementation-tracking/player-access-and-session.md#initial-private-gameplay-login-issuance-source-intake).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The service runtime model assumes replaceable workers, not authoritative in-proc

The sections below define the target-state runtime contract. Current implementation and proof status is:

- **Local NEW issuer identity:** canonical inventory retains Account's exact issuer string, and typed reads refuse retained UUID issuers rather than relabel them. This storage boundary does not establish issuer ownership, complete coverage, or admission; see [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#canonical-new-admission-components) for migration proof and limits.
- **Local NEW issuer preparation:** the unregistered Game Session sources now manually compose the initial issuer anchor, ordinary post-baseline one-key member/capacity projection and issuer-local release, each with exact physical readback and controlled Account checkpoint and stable-incarnation collaborators. Ordinary ADD revalidates the target’s current Account authority, while terminal cleanup and non-target accounting preserve captured Account provenance. Completed-original bootstrap retries return retained installation evidence; current physical verification remains separate. The bounded foundation does not execute physical retirement; retained storage and fail-closed accounting remain prerequisites for the separate settlement owner. The focused component proofs do not establish operational source or incarnation custody. A separate admitting issuer acknowledgement, issuer barrier/`OPEN`, final CAS, and admission remain absent. Operational source/incarnation custody, legacy recovery, production PKI, runtime registration, and activation remain open; see the [Player Access tracker](../../../project-management/implementation-tracking/player-access-and-session.md#canonical-new-admission-components) for proof attribution and limits. The [issuer anchor owner](../../system-architecture-redis.md#installed-issuer-anchor-for-ordinary-new) defines the physical contract.

- **Local NEW account-member repair:** the unregistered owner prepares the original binding-local operation, performs one global account-member write and physical readback outside SQL, then accepts its exact acknowledgement in SQL. This supplies `ADD_OR_RETAIN` evidence only; the candidate remains provisional. Account-wide lifecycle writers, remaining index and region acknowledgements, and the guarded final admission CAS remain open. See [Session Behavior](../../system-architecture-session-behavior.md#global-account-active-binding-index) and [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#canonical-new-admission-components).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Every coordination script belongs to a **script category** that constrains which
| Timers and retries | `timer:{tenantRegionTag}`, `retry:{tenantRegionTag}` | Shard-local scripts operating on keys that share the same `{tenantRegionTag}`; no cross-slot operations. |
| Gameplay session CAS / bindings | `session:game:{tenantGameplayTag}:<gameInstanceId>:<sessionId>`, tenant-tagged `session:game:index:*:{tenantGameplayTag}:*`, and `session:game:account-admission:{tenantGameplayTag}:<accountId>:<playableStateNamespaceId>` | Gameplay session CAS/update scripts may be shard-local multi-key scripts where all gameplay-session keys share `{tenantGameplayTag}`. The final binding CAS checks the exact account-qualified barrier in that slot. These scripts do not operate on Account auth-token registry keys, tick keys, or the untagged global account index/control key in the same invocation. |
| Cross-tenant gameplay-session account index | `session:game:index:account:<accountId>` | This global account index cannot share every tenant gameplay slot and is never included in a shard-local gameplay CAS/Lua invocation. Game Session updates it through a separate idempotent write after the owning gameplay-session mutation and reconciles it from authoritative session bindings. Account-wide revocation uses the index as a discovery projection but verifies and mutates each tenant-local binding through its owning shard-local contract; missing or stale index entries are repaired rather than treated as authorization truth. |
| Issuer gameplay-session index | `session:game:index:issuer:{issuerIndexLayoutTag}:<issuerId>:<partitionId>` | `SESSION_ISSUER_INDEX` operations touch exactly one pinned issuer-layout partition HASH. Binding members and versioned reservation-capacity metadata share that one key and atomic boundary; full original reservation, anchor, local operation and incarnation evidence is compared. These invocations never mix issuer partitions with tenant gameplay, account, region or replay keys. |
| Account auth-token registry | `session:auth:token:<tokenHash>` | Account-owned issued-token registry operations are single-key operations for the exact token hash. The exact-token registry record is mandatory validity and per-token-revocation authority: a cryptographically valid JWT without a matching permitted record is denied, and Lua must not invent validity from absence or from a generation alone. Durable issuer/account/tenant/membership authority generations advance in Account Service; Redis entries project/read through those durable generations for validation, while Lua may enforce the stored record state but never becomes the authority for generation advancement. This is not part of gameplay session CAS. |
| Gateway replay admission | `gateway:connect-token:{gateway-connect-token-replay-v1}:readiness`, `gateway:connect-token:{gateway-connect-token-replay-v1}:jti:<jti>`, and `gateway:connect-token:{gateway-connect-token-replay-v1}:deny:jti:<jti>` | The `gateway-connect-token-replay-consume/v1` descriptor is the only three-key descriptor in this category: it runs only on Coordination Redis and receives readiness/fence, replay, and deny keys in that order. The literal `{gateway-connect-token-replay-v1}` hash tag is required on all three keys so Redis Cluster executes the atomic operation in one slot; the readiness value carries `replayAdmissionFence`. The separate `gateway-connect-token-browser-revoke/v1` descriptor is a one-key deny-marker mutation using only `gateway:connect-token:{gateway-connect-token-replay-v1}:deny:jti:<jti>` with the same literal tag; it is not part of this three-key key order. The current generic Cache-bound writer's only untagged output is the replay marker; it has no deny-marker, readiness, or replay-fence writer. That old replay key is migration-only drift and is not a valid descriptor shape. |
| Session-to-region bridge | `tick:{tenantRegionTag}:session-binding:<entityId>` plus `tick-executor-lease:{tenantRegionTag}` | Region-lease scripts only. They update region-authoritative gameplay bindings using caller-supplied `sessionId` / `binding_generation` and never read `session:game:*` directly inside Lua. |
Expand Down
Loading
Loading