Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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 @@ -83,6 +83,14 @@ The sections below define the target-state runtime contract. Current implementat
- Credential brute-force defense remains delegated to Account Service, which owns one login-attempt policy across transport paths using trusted source context. Game Session consumes the resulting auth outcomes when binding gameplay sessions but does not implement separate credential-abuse logic. The target ordinary gameplay limiter is an in-process session-front-end token bucket under [ADR 0034](../../decisions/adr-0034-layered-abuse-controls-without-attacker-triggered-account-locks.md); the current implementation still uses a Redis-backed per-session limiter and does not yet prove the target role isolation or loss behavior. Before a restart or takeover initializes a replacement bucket, the target owner atomically reserves from the binding's shared bounded cumulative handoff budget, so retries or concurrent replacements cannot reset or double-consume the remaining allowance. Optional coarse shared abuse windows remain outside the per-command fast path.
- No single Game Session process may become the hidden source of truth for reconnectable gameplay state. If the service needs a value to survive non-edge restart or permit same-type takeover, that value must live in Redis or PostgreSQL-backed coordination rather than only in process memory. Realm admission additionally requires a fresh World lifecycle row/epoch read under [ADR 0123](../../decisions/adr-0123-database-authoritative-temporal-coordinated-world-lifecycle.md); Temporal status is coordination evidence, not admission authority.

### Direct-text authenticated lobby companion

The separately owned `game_session_direct_text_authenticated_lobby_scope`, `game_session_direct_text_authenticated_lobby_current` and `game_session_direct_text_authenticated_lobby_join` tables retain pre-admission lobby scope and JOIN-original state. They reference the original LOGIN journal without adding realm, tenant-admission or JOIN lifecycle to that minimal journal or its closed live-context codec. The [Authentication contract](../../system-architecture-authentication.md#direct-text-realms-to-join-scope-normative) owns the caller-bound scope and logical-attempt behavior.

New scope and dispatch claims serialize with original LOGIN abandonment through the parent row lock and exact original-coordinate/witness comparison. Current selection is separate from retained attempt history: replacing a selection or observing expiry cannot erase an older uncertain JOIN. A frozen JOIN original is committed and independently read back before dispatch becomes possible; an uncertain reply never resets that original or supplies a new request identity. Positive exact-original receipts may be retained after custody is lost, without applying them to a replacement transport or granting admission.

This companion preserves the existing SQL retention hold. Direct deletion, truncation and invalid identity/state transitions are refused; no expiry-based release or cleanup API is supplied. Parent token disposal is not a membership JOIN outcome. Full negative-terminal qualification, unknown-result recovery and lawful release remain at their owning later boundary. Rows, decoded state and matching witnesses do not establish live socket authentication; each operation still needs its current verified Account result and protected receiving custody. Credentials and compact tokens are excluded from stored lobby state. Production composition and proof status are recorded in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#direct-text-join-client-and-command-receiving-preparation).

### Protected Human initial-admission storage

The protected reservation retains the complete Account protection and original owner association on the Game Session attempt. A separate immutable runtime-completion record binds that protection to the exact launch, captured `STARTING` row version, and completed `RUNNING` row version; this completion changes no admission pointer or terminal. The manually composed, final completion repository explicitly requires its caller's active writable `READ COMMITTED` transaction at runtime, without Spring transaction-proxy registration. The existing initial-admission owner later writes the pointer, matching append-only audit, and immutable protected attempt/intent terminal together, while the Account-purpose read exposes the retained exact terminal for settlement. Protected abort terminalizes only its own retained attempt and intent. Its `EXPECT_CLOSED` storage lookup verifies the immutable original CLOSED request/catalog/audit without locking a later current pointer; positive commit retains the current-origin checks. Legacy unprotected rows remain readable but are not adopted as protected attempts. These local storage owners remain unregistered; the [API contract](./api-contracts.md#initial-admission-bind) owns the cross-owner behavior and the [Player Access tracker](../../../project-management/implementation-tracking/player-access-and-session.md#original-startsession-source-protection-storage) records proof and remaining limits.
Expand Down
3 changes: 3 additions & 0 deletions design/project-management/ai-observations.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ A small inbox for unresolved agent, tooling, environment, and workflow issues; s

- `2026-11-01` (Pacific/Auckland): Java filesystem read-only checks can miss same-device bind mounts.
- A proposed `Files.getFileStore(path).isReadOnly()` guard was rejected before implementation: OpenJDK 21 discovers Linux boundaries using device changes and can attribute a bind mount to an ancestor with different read-only state. Exact current-process mountinfo, visible ancestry and pre/post comparison now preserve the readers’ owner/AtomicWriter guards; twelve physical mount cases pass. Next: qualify actual kubelet projection provenance at the existing held deployment boundary; local read-only evidence does not establish it. See [Game Session projection compatibility](../architecture/microservices/game-session-service/operations.md#protected-readiness-projection-compatibility).

- `2026-11-01` (Pacific/Auckland): Review selection held without naming its failed source.
- Both initial #3365 channel selections returned only `source_unavailable`, without a linked review operation or actionable diagnostic, while an exact-head source refresh completed and verified the same open, ready comparison. Provider execution was not established. The original selection/source receipts were sent to FireController Worker; normal implementation continues while that owner explains the failed source and supported recovery. Next: retain the owner response and update this entry with the verified cause and outcome.
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,8 @@ R1407/R1408 prepare the direct-text observation and menu-retention boundary. The

The current local source adds a manually composed Redis store and one-key CAS script for the public `WORLDS` UI menu. It retains the bounded ordered menu under the tenantless family owned by [the Redis menu contract](../../architecture/system-architecture-redis.md#direct-text-worlds-ui-menu), correlating the exact observed original proxy UUID separately from the numeric transport session ID. This is menu correlation only: it stores no Account ID, credentials, REALMS scope or JOIN intent, and does not prove authenticated ingress, continuity or admission. The owner and script remain unregistered; production protected-connection binding, authenticated TCP receiving custody and hidden rebind remain gaps, and no deployed ACL change is included. The combined focused gate passes 133 cases, including eight physical standalone-Redis cases, with no failures, errors or skips; selected main/test/integration static checks and full Java formatting pass. The first two aggregates retain binary-array generic-varargs analysis warnings; explicit single-key arrays and narrow, physically justified annotations complete the qualification. This remains controlled component proof, not authenticated transport custody or production registration. See [Game Session Runtime and Data](../../architecture/microservices/game-session-service/runtime-and-data.md#implementation-status) for the local runtime consequence.

The #3366 direct-text preparation adds the separately owned [authenticated lobby SQL companion](../../architecture/microservices/game-session-service/runtime-and-data.md#direct-text-authenticated-lobby-companion), retaining the exact caller-bound Account scope and a durable frozen JOIN original before dispatch. Its current-selection pointer cannot replace earlier unknown attempts, and the existing original LOGIN journal/codec and retention hold remain. R1414 passes 29 focused unit cases and 16 real-PostgreSQL cases with zero failures, errors or skips. Physical proof migrates a populated pre-companion LOGIN journal, preserves its complete original row, exercises both abandonment/claim lock orders and concurrent dispatch claims, retains uncertain outcomes across owner replacement, rejects direct identity/transition/retention violations, and bounds positive membership identifiers to Account’s canonical positive BIGINT domain. Selected main/test/integration Checkstyle and SpotBugs, full Java formatting and fresh Game Session packaging pass across the combined recovery and final main-analysis gate; the first two aggregates retain broad-catch, generated-immutable-message analysis and test-fixture synchronization failures. The manually composed owner can issue scope and dispatch the frozen original through the existing Account client under a required protected-custody port, but no genuine producer for that port or text-command registration is supplied. Fresh source-built held-admission smoke on `85d4568536` passes the actual backend WORLDS → LOGIN → PLAY → LOOK → LOGOUT flow and Gateway/Telnet denial checks. Canonical cleanup completes, and independent exact-project checks find no containers, networks or volumes. This proves startup and the isolated held flow, not successful public admission or a production custody producer. This does not wire live REALMS/JOIN text dispatch, prove genuine receiving custody, register a production owner, settle negative/unknown results, release retained rows or establish admission.

### Account operation and signer source preparation

[V126.2](../../../services/account-service/src/main/resources/db/migration/V126.2__account_control_ui_registry_cleanup_deadline.sql) adds one immutable cleanup deadline to newly prepared Control-UI owner rows, separate from the JWT `exp` horizon and bound to the same registry bytes and Redis readback receipt. The retained-row migration case in [AccountControlUiIssuancePostgresIntegrationTest](../../../services/account-service/src/test/java/integration/net/firedevops/firemud/accountservice/service/session/AccountControlUiIssuancePostgresIntegrationTest.java) confirms that a pre-deadline row keeps its original fields, retains a null deadline, and is denied current use and advancement after migration. Direct PostgreSQL proof that a newly recorded deadline cannot be changed is still missing. The preparation remains source-only under AA-1.3; bounded cleanup and late revocation remain incomplete, and token issuance is not activated.
Expand Down
Loading
Loading