Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
0d40318
Merge commit '85f8f35f9b19263f1f3a7f34b5822e5e39d0d15b' into codex/ga…
benhook1013 Oct 14, 2026
b451ff3
Compose original LOGIN custody and acknowledged initial context
benhook1013 Oct 14, 2026
0a68517
Merge commit '7b2ce6340309198ed4fabd0e58629102ba717706' into codex/ga…
benhook1013 Oct 14, 2026
7fa9431
Prove initial LOGIN owner against physical original context storage
benhook1013 Oct 14, 2026
60a4331
Converge canonical signed gameplay context receiving and deny legacy …
benhook1013 Oct 14, 2026
49e01d0
Merge commit '7b92f8fbcb3b44dab71e1414b7a1f96f230fa946' into codex/ga…
benhook1013 Oct 14, 2026
f94bc29
Prove unavailable first-party retention without conflating absence
benhook1013 Oct 14, 2026
bc879e6
Merge commit '446f8ed2ea30cb1572926e9f2275e8aff5c86660' into codex/ga…
benhook1013 Oct 14, 2026
ef255b5
Merge commit '8ef7233084d5068602fe37636ecc973b715e3f39' into codex/ga…
benhook1013 Oct 14, 2026
bcca304
Merge remote-tracking branch 'origin/codex/document-world-selected-pu…
benhook1013 Oct 14, 2026
b5dd374
Merge remote-tracking branch 'origin/codex/document-world-selected-pu…
benhook1013 Oct 14, 2026
1590bce
Merge remote-tracking branch 'origin/codex/document-world-selected-pu…
benhook1013 Oct 14, 2026
56a15e2
Carry qualified current fixture parent into authenticated receiving p…
benhook1013 Oct 14, 2026
6a1fb3a
Receive qualified World publication and Account snapshot parent
benhook1013 Oct 15, 2026
8053086
Receive approved shared heap and security repairs
benhook1013 Oct 15, 2026
5a02f32
Receive current World terminal owner guard fixes
benhook1013 Oct 15, 2026
4cd93b2
Merge commit '8de300b0c30752f721c88efd6eb00f5a0f1fede9' into codex/ga…
benhook1013 Oct 15, 2026
2e2de65
Merge commit 'a99e79343ca17eb3aafda21ed586ffc5e4d76b6b' into codex/ga…
benhook1013 Oct 15, 2026
41a75ba
Merge current selected-publication receiving parent and World review …
benhook1013 Oct 15, 2026
4aab5bb
Carry verified World frontier into selected-publication stage
benhook1013 Oct 15, 2026
eeac243
Merge current World evidence carry into 3224
benhook1013 Oct 15, 2026
4037436
Merge qualified World carry into Gameplay 3224
benhook1013 Oct 15, 2026
df58c28
Merge qualified gameplay login fix into Gameplay 3224
benhook1013 Oct 15, 2026
6393549
Format shared initial LOGIN retry imports
benhook1013 Oct 15, 2026
0c50526
Merge world launch evidence fixture rename into Gameplay 3224
benhook1013 Oct 15, 2026
2cab406
Merge qualified World receipt correction into receiving stage
benhook1013 Oct 15, 2026
fc77c3b
Merge published gameplay carry into receiving stage
benhook1013 Oct 15, 2026
f834efb
Merge published authentication receiver correction
benhook1013 Oct 15, 2026
982ed1c
Isolate scheduled jobs from session HTTP persistence fixture
benhook1013 Oct 15, 2026
2aafe6b
Merge qualified gameplay parent into #3224 receiving branch
benhook1013 Oct 15, 2026
a6b188c
Merge qualified published parent into LOGIN receiving preparation
benhook1013 Oct 15, 2026
739c350
Preserve receiving denial status across tracker proof relocation
benhook1013 Oct 15, 2026
21fbd23
Merge commit '9b2a78fca894a2787ec18916bb5266324ddec3ac' into codex/ga…
benhook1013 Oct 15, 2026
50ac37e
Merge commit 'f044d642a869f49af5a70346109530ded9e7eb15' into codex/ga…
benhook1013 Oct 15, 2026
ff3fe1b
Merge commit '2cacef3298e61b8911cd0904f29d8c3b0d230881' into codex/ga…
benhook1013 Oct 15, 2026
195c077
Merge commit '98670b6cd7b914e8ef7019be2a7fe45418646d68' into codex/ga…
benhook1013 Oct 15, 2026
f50f549
Merge commit 'f2994b3ff57cda0b61d9ccaa9bd416c539e3f907' into codex/ga…
benhook1013 Oct 15, 2026
a2469a4
Merge commit '24e9af47b26dfd16d3330465d1edbd0772e5cf83' into codex/ga…
benhook1013 Oct 15, 2026
4176589
Merge qualified selected World review corrections from parent
benhook1013 Oct 15, 2026
cbec689
Merge qualified shared closure review corrections from parent
benhook1013 Oct 15, 2026
fa4608f
Merge reconciled publication parent after World fence merge
benhook1013 Oct 16, 2026
f2bcc5c
Merge commit 'f2edb8982dd40b5b9ad91056605c1484dc272b7f' into codex/ga…
benhook1013 Oct 16, 2026
5e6bf48
Fix retained-session failure isolation and receiving review proofs
benhook1013 Oct 16, 2026
ed97786
Disambiguate receiving test assertion and apply canonical formatting
benhook1013 Oct 16, 2026
3c1efdc
Apply canonical receiving-test formatting
benhook1013 Oct 16, 2026
d231816
Correct Login and Play outage responses and recovery limits
benhook1013 Oct 16, 2026
ba70699
Merge commit '83967617e0e947eef8ecbbc4d1fbda8f95a92cc9' into codex/ga…
benhook1013 Oct 16, 2026
0aad0c3
Assert existing Play authentication unavailable code
benhook1013 Oct 16, 2026
8a6105a
Merge commit '377ba8edd7b4b59f81a61c8f6bfec050e2a61627' into codex/ga…
benhook1013 Oct 16, 2026
1ee542b
Remove unused bootstrap-shell account parameter
benhook1013 Oct 16, 2026
114456c
Merge commit '322dba7d4fb7bc7c41f4a1885f481683d09f5931' into codex/ga…
benhook1013 Oct 16, 2026
fc2b4f1
Stop WebSocket processing after failed context restoration
benhook1013 Oct 16, 2026
36a34d4
Remove unused legacy Account realm admission helper
benhook1013 Oct 16, 2026
0d90c3c
Qualify held public admission with explicit runtime smoke proof
benhook1013 Oct 16, 2026
acc497f
fix(game-session): stop closed bootstrap and classify context parse f…
benhook1013 Oct 16, 2026
cedd3cc
fix(smoke): bind held qualification to run-owned endpoints and deadlines
benhook1013 Oct 16, 2026
f3a67bf
chore(smoke): annotate intentional shell source checks
benhook1013 Oct 16, 2026
99f1011
fix(smoke): align Python style and bootstrap tooling fixture
benhook1013 Oct 16, 2026
94b2e6b
fix(gameplay): qualify held ingress and resolve remaining CLI findings
benhook1013 Oct 16, 2026
887586f
style(game-session): apply qualified receiving fix formatting
benhook1013 Oct 16, 2026
1a87c28
fix: preserve login cancellation and clean failed bootstrap context
benhook1013 Oct 16, 2026
3c71c8c
test: qualify hosted fixes and record interrupted runtime proof
benhook1013 Oct 16, 2026
4bc0978
docs: record passing held admission runtime qualification
benhook1013 Oct 16, 2026
2b49def
Align PR image workflow descriptions with held-admission proof limits
benhook1013 Oct 16, 2026
f5eea0c
docs: declare combined Gateway workload admission hold
benhook1013 Oct 16, 2026
fb8db9a
fix: complete held-admission diagnostics and contract corrections
benhook1013 Oct 16, 2026
a68fc1e
Merge commit 'a1e43bf2d44d866dad8c3ddce058a79673efe1fa' into codex/ga…
benhook1013 Oct 16, 2026
43dfa83
Merge commit '46170f726dc03bee79225b116ddefc1741816f42' into codex/ga…
benhook1013 Oct 16, 2026
996d401
Merge remote-tracking branch 'origin/develop' into codex/gameplay-322…
benhook1013 Oct 16, 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
1 change: 1 addition & 0 deletions .github/workflows/runtime-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,7 @@ jobs:
id: runtime-smoke
if: ${{ needs.image-meta.outputs.runtime_smoke_required == 'true' }}
env:
FIREMUD_SMOKE_ADMISSION_QUALIFICATION: held
SMOKE_MINIO_SERVER_IMAGE_ID: >-
${{ steps.minio-source.outputs.server_image_id }}
SMOKE_MINIO_CLIENT_IMAGE_ID: >-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ jobs:
}

// One canonical producer definition; the contract test reports fingerprint upkeep.
const canonicalRuntimeWorkflowSha256 = "8b49b5e26ac37a1b6c1d098ee0d8c9716d850eb0ea7e43491b6c6b6f191fca1a";
const canonicalRuntimeWorkflowSha256 = "08dcfb278c69913ed3732d15c88ceb7eef047a04f729e625891afa4038e4a9d4";
const canonicalSmokeJobName = "PR Full-Stack Smoke (runtime-required=true)";
const workflowPath = ".github/workflows/runtime-images.yml";
const repositoryName = `${owner}/${repo}`;
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ 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:

- **Current first-party receiving boundary:** Game Session's prepared receiver verifies the Gateway-signed context and rechecks the canonical target and retained private-handle evidence. When that first-party context is present, bare `LOGIN` and `PLAY` return `FIRST_PARTY_AUTHORITY_UNAVAILABLE` before legacy Account authentication, Entity resolution, or gameplay binding effects. Recovery from registry loss still requires the persisted compact JWS to remain valid; registry loss does not extend its expiry. The public Gateway cookie path is currently denied and its gameplay-route readiness is `OUT_OF_SERVICE`; no first-party wire success or admission is claimed. Account context production, shared replay fencing, and dedicated Gateway key qualification remain open.

- Canonical authored-world launch preparation is an evidence-only source boundary: it checks committed catalog/source evidence, performs authenticated Game Design resolve plus independent exact descriptor readback, persists the immutable preparation snapshot, and verifies committed readback. It is not wired into GameInstanceServiceImpl, game_instances, World activation, admission, or PLAY; validation of this new proof family is deferred.

- Game Session V11 adds nullable `gameplay_command.account_uuid` storage and repository round-trip mapping alongside the retained numeric `account_id`. Historical commands remain without an inferred UUID, and no producer or session carrier supplies or consumes this field yet; prepared `String` account-identity carriers still contain numeric row-id text and do not prove UUID consumption. Opaque internal carrier preparation and its retained-record/proof limits are tracked in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#current-status). The focused migration and repository PostgreSQL cases are present but skip locally while Docker is disabled; Account UUID ownership remains in [Account Runtime and Data](../account-service/runtime-and-data.md) under [ADR 0020](../../decisions/adr-0020-scoped-domain-and-operational-identifiers.md).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ An OpenAPI specification for these REST endpoints lives in `services/spring-clou
- `readiness` is route-admission safety. For the currently implemented gameplay slice, the gateway is ready only when:
- baseline route configuration is loaded; and
- the `/ws/game/**` gameplay path can pass the same admission filters, upgrade, and forward to Game Session successfully enough for new gameplay sockets to be admitted.
- Public Gateway readiness remains scoped to public/gameplay route safety. The dedicated TCP Proxy TLS listener has route-specific admission and is proved separately by reaching readiness through that listener; its `tcpProxyTlsListenerReadiness` indicator reports the listener state without making the public readiness group depend on it. Invalid listener, environment, trust-profile, expiry, or TLS-material configuration still fails startup before either listener can serve traffic.
- The gameplay-route canary is bounded and operation-shaped. It validates the actual `/ws/game/**` upgrade path with an explicit short timeout rather than relying on unrelated ping-style checks or long retry budgets. In player-facing environments, connect-token replay protection is part of admission safety; if the replay-protection store is unavailable and the route would fail closed with `CONNECT_REPLAY_PROTECTION_UNAVAILABLE`, the gameplay route is not ready.
- **Target:** Public Gateway readiness is scoped to public/gameplay route safety. The dedicated TCP Proxy TLS listener has its own route-admission boundary; its `tcpProxyTlsListenerReadiness` indicator is not part of the public readiness group. [ADR 0157](../../decisions/adr-0157-dependency-classified-liveness-readiness-and-route-admission.md) calls for a route-specific gate or distinct Kubernetes Service when one bounded route has stricter admission requirements, so unrelated safe traffic remains admitted.
- **Current deployment qualification:** `gameplayRouteReadiness` is included in the shared `/actuator/health/readiness` group and remains `OUT_OF_SERVICE` while first-party admission prerequisites are unqualified. The repository's Kubernetes base and hosted Helm example use that endpoint as the Gateway pod readiness probe. The public Gateway and internal TCP Proxy mTLS Services select the same pods, so this is an explicit combined-workload hold: both Services withdraw those pods while first-party gameplay admission is held, including the trusted TCP Proxy bridge Service. The separate `tcpProxyTlsListenerReadiness` component reports listener state but does not provide an independent pod or Service readiness boundary; `/actuator/health/readiness` through the TLS listener uses the same health group. Independent route-level readiness and admission remain a pre-rollout gap. Invalid listener, environment, trust-profile, expiry, or TLS-material configuration still fails startup before either listener can serve traffic.
- The target gameplay-route canary is bounded and operation-shaped. It validates the actual `/ws/game/**` upgrade path with an explicit short timeout rather than relying on unrelated ping-style checks or long retry budgets. In player-facing environments, connect-token replay protection is part of admission safety; if the replay-protection store is unavailable and the route would fail closed with `CONNECT_REPLAY_PROTECTION_UNAVAILABLE`, the gameplay route is not ready. **Current first-party status:** a presented public cookie receives `CONNECT_REPLAY_PROTECTION_UNAVAILABLE`, and the gameplay-route readiness indicator reports `OUT_OF_SERVICE` while canonical Account production, shared replay fencing, and dedicated Gateway signing keys remain unqualified. The trusted TCP Proxy handshake retains its distinct listener trust checks, but the current combined pod readiness hold does not claim separate Service admission for that path.
- Retry filters are resilience mechanisms, not readiness compensation. A gateway that still needs startup retries to survive ordinary new gameplay admission is not ready.
- Readiness transition observability uses the shared contract from [Deployment Environments](../../infrastructure/deployment-environments.md): `firemud.readiness.current`, `firemud.readiness.transitions`, and structured logs keyed by the curated dependency name `gameplayRoute`.

Expand All @@ -47,7 +48,7 @@ This document describes the behaviour of Spring Cloud Gateway in its target arch
| Dynamic route management | REST and gRPC route mutation APIs are dev/test-only overrides on top of the released route catalog. Player-facing environments reject dynamic mutation configuration at startup; production operators have diagnostics only, and route changes use the separately accepted declarative deployment workflow. Any future production runtime route-control plane requires a new architecture decision and must remain consistent with the [canonical authorization route matrix](../../system-architecture-authz-route-matrix.md). | Not converged: mutation components are currently unconditional and lack the required profile isolation, startup rejection, protected-route validation, and destination/predicate/filter allowlists. |
| Rate limiting and Redis wiring | Gateway rate limiting uses Spring Cloud Gateway `RequestRateLimiter` backed by the Cache/Rate-Limit Redis role, with gameplay abuse policy split across Gateway, TCP Proxy, and Game Session. | Implemented. |
| TCP Proxy bridge admission | Traffic from the TCP Proxy Service always targets `/ws/game/**`; player-facing bridge authority requires the exclusive environment-bound mTLS identity contract in [ADR 0169](../../decisions/adr-0169-exclusive-environment-bound-tcp-proxy-trust.md). | Gateway runtime now provides a separately bound TLS listener, requires CA-validated client certificates for certificate-bound profiles, enforces exact URI SAN, expiring DNS migration, expiring leaf fingerprint, or development-only TLS/CIDR selection exclusively, and promotes bridge headers only after the selected trust check. The #2713 Helm candidate wires the private Gateway ↔ TCP Proxy bridge with its dedicated Service, separate Gateway-server/TCP-Proxy-client Secret mounts and environment, and exact-port NetworkPolicy. Private bridge live hosted-preview proof remains pending; controller-owned identity issuance/projection, live peer-handshake, rotation/readiness, emergency withdrawal, and player-facing traffic-authorization proof remain incomplete. Public Telnet TLS and transport-complete/playable hosted proof remain the #2795 delivery slice. TLS material is loaded at listener startup; live renewal reload is not implemented. |
| WebSocket close and handshake observability | Target-only typed Game Session → Gateway lifecycle intent feeds Gateway’s sole external WebSocket close-translation owner: `logout`, `session_replaced`, `service_restart`, `idle_timeout`, `policy_violation`, `internal_error`, and `backend_unavailable` are bounded top-level classes; bridge closes also carry `bridge_shutdown_class=planned_drain\|valid_upstream_close\|unattributed_failure` and optional diagnostic subreason. | Partially implemented at the current bridge and first-party handshake boundary. The typed lifecycle-intent contract is not implemented or versioned; unknown or absent intent must fail closed as `internal_error` at the public WebSocket boundary. `session_replaced`/`service_restart` convergence, neutral valid-upstream attribution, ADR 0013's elapsed-time cutoff, bounded input stall/rebind path, and terminal-versus-rebindable upstream classification remain gaps. See [Gateway Architecture](../../system-architecture-gateway.md#canonical-close-translation-matrix). |
| WebSocket close and handshake observability | Target-only typed Game Session → Gateway lifecycle intent feeds Gateway’s sole external WebSocket close-translation owner: `logout`, `session_replaced`, `service_restart`, `idle_timeout`, `policy_violation`, `internal_error`, and `backend_unavailable` are bounded top-level classes; bridge closes also carry `bridge_shutdown_class=planned_drain\|valid_upstream_close\|unattributed_failure` and optional diagnostic subreason. | The trusted TCP Proxy bridge is implemented locally, and the public first-party filter is fail-closed; it does not validate a connect token or admit a cookie handshake. The typed lifecycle-intent contract is not implemented or versioned; unknown or absent intent must fail closed as `internal_error` at the public WebSocket boundary. `session_replaced`/`service_restart` convergence, neutral valid-upstream attribution, ADR 0013's elapsed-time cutoff, bounded input stall/rebind path, and terminal-versus-rebindable upstream classification remain gaps. See [Gateway Architecture](../../system-architecture-gateway.md#canonical-close-translation-matrix). |

## Documentation Map

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- Traffic from the TCP Proxy Service always targets `/ws/game/**` via `GATEWAY_WS_URL`.
- In player-facing environments, the TCP Proxy -> Gateway WebSocket hop is mTLS-authenticated under the mutually exclusive environment-bound trust profiles in [ADR 0169](../../decisions/adr-0169-exclusive-environment-bound-tcp-proxy-trust.md); the local endpoint and certificate variables remain in [TCP Proxy configuration](../tcp-proxy-service/configuration.md#websocket-mtls-to-spring-cloud-gateway).
- Spring Cloud Gateway strips or overwrites spoofable tenant, game-instance, and routing headers from public ingress. It forwards `X-Tenant-Id` / `X-Game-Instance-Id` only when derived from trusted inputs, and accepts `X-World-Slug` / `X-Realm-Slug` / positive `X-Pointer-Version` from TCP Proxy only as an all-or-none bundle on the authenticated bridge; a partial or malformed bundle is rejected before the validated advisory context reaches Game Session.
- Gateway emits the positive `X-Firemud-Connection-Mode` discriminator on successful gameplay admission: `first_party_web` for the supported protected-cookie connect-token path and `trusted_tcp_proxy` for authenticated TCP Proxy bridges. A future target-only public non-browser header variant requires its own route classification and proof. The canonical marker and downstream trust rules are owned by [Gateway architecture](../../system-architecture-gateway.md#gateway-output-rules-downstream-trusted); Game Session must not infer path type from header absence.
- On successful target first-party admission, Gateway emits `X-Firemud-Connection-Mode: first_party_web`; authenticated TCP Proxy bridges use `trusted_tcp_proxy`. Current public first-party cookie handshakes are denied with `CONNECT_REPLAY_PROTECTION_UNAVAILABLE`, so only the trusted TCP Proxy path currently emits a positive gameplay mode. A future target-only public non-browser header variant requires its own route classification and proof. The canonical marker and downstream trust rules are owned by [Gateway architecture](../../system-architecture-gateway.md#gateway-output-rules-downstream-trusted); Game Session must not infer path type from header absence.

## WebSocket Close and Handshake Classification

Expand All @@ -36,7 +36,7 @@ Unless explicitly described as current behavior, the sections below define the t

- Java `CanonicalGatewayRoutesConfiguration` is the current route authority, with environment overrides; the target route catalog and deny-by-default exposure rules still require convergence proof. It currently has no `/assets/**` route or asset-store route ID; published asset delivery remains target-only pending a separate approved public origin/provisioner, and private MinIO is not public delivery.
- **Current Game Design route consequence:** the current coarse `/api/design/**` route forwards `/api/design/assets` through `StripPrefix=2` to Game Design's live `POST /assets` controller. That controller currently checks only privileged JWT/tenant access and has no Account hosted-terms/currentness gate, so official-hosted asset-upload readiness is blocked until Gateway denies this route or the exact Account-owned gate is implemented and proved.
- The current edge implements bounded connect-token handshake classes and replay handling, but this does not prove the complete target replay durability, rotation, or reconnect contract.
- **Current first-party status:** the public filter returns `CONNECT_TOKEN_MISSING` when the cookie is absent and `CONNECT_REPLAY_PROTECTION_UNAVAILABLE` when it is presented; it performs no connect-token validation or replay-marker operation. The gameplay-route readiness indicator reports `OUT_OF_SERVICE` until canonical Account production, shared replay fencing, and dedicated Gateway signing keys are qualified. This is fail-closed receiving behavior, not a successful first-party handshake or complete target replay implementation.
- **Current drift:** the protected admin `JwtAuthFilter` parses shared-HMAC JWTs through `JwtUtil`. This is current implementation behavior only, is not a player-facing asymmetric-validation capability, and must not be confused with the target receiving-service boundary.
- **Target boundary:** On protected admin routes, Gateway requires an `Authorization` header at ingress and forwards it without parsing or validating ordinary JWT contents; consuming services own asymmetric JWKS validation under [JWT and Token Contracts](../../system-architecture-jwt-and-token-contracts.md).
- The current public `/api/session/**` inventory is limited to `GET /api/session/ping`; internal `/sessions*` mutations remain non-public.
Expand Down
Loading
Loading