Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
236485e
Add inactive Account owner source cut
benhook1013 Oct 10, 2026
678e51b
Wire Account Redis contract dependency and qualify source proof
benhook1013 Oct 10, 2026
ab1b570
Merge commit '4ad0013265bd48390ed064cd145dcae9dda4027d' into codex/ga…
benhook1013 Oct 10, 2026
7132ae9
Require exact Account integration fixture readback rows
benhook1013 Oct 10, 2026
b0eef5b
Merge commit '6b1fcbb5b06b4a0ea9f91f2b4034533fbe23b100' into codex/ga…
benhook1013 Oct 10, 2026
32fbca1
Isolate Account proof resources and keep inactive reservation transpo…
benhook1013 Oct 10, 2026
fd2f219
Apply canonical formatting to Redis descriptor proof
benhook1013 Oct 10, 2026
de75fd0
Make isolated Logging test class extraction configuration-cache safe
benhook1013 Oct 10, 2026
ce39a3b
Repair Account operator issuance SQL and PostgreSQL fixtures
benhook1013 Oct 10, 2026
958ef1a
Merge commit 'ce679c24d73c65c78e5076edb4a6c09d25837fc7' into codex/ga…
benhook1013 Oct 10, 2026
c460d8f
Merge commit 'f8a13503a262d954e24e1f2d004648164be71065' into codex/ga…
benhook1013 Oct 10, 2026
8706b01
Correct physical Account fixture bindings and genuine recovery claim
benhook1013 Oct 10, 2026
1a1c653
Merge commit '9081274551f05a979e75bdb51c383f057b4e9b7e' into codex/ga…
benhook1013 Oct 10, 2026
374e563
Merge commit '607004fe786b2a9e1270a31c90f9031b486b3278' into codex/ga…
benhook1013 Oct 10, 2026
13cfee5
fix(account): permit exact same-millisecond authorization redemption
benhook1013 Oct 10, 2026
3f71592
Merge commit 'd3784d2195b6cc87617865e4fbea85432abe9913' into codex/ga…
benhook1013 Oct 10, 2026
22f558b
Merge commit 'dc5c9941a0' into codex/gameplay-account-operation-sourc…
benhook1013 Oct 10, 2026
fd84e76
test(account): use canonical PostgreSQL18 for composed control UI fix…
benhook1013 Oct 10, 2026
331d6ba
Merge commit 'c866902037ff34049b74befa1a7f759ceebd73f6' into codex/ga…
benhook1013 Oct 10, 2026
a6a5977
Merge commit '7b79a8860baa6f08d3b4ae51d166f64ccf08004f' into codex/ga…
benhook1013 Oct 10, 2026
4182d4b
Merge commit 'e63729562c39e664513bad2be2222e11a6886388' into codex/ga…
benhook1013 Oct 10, 2026
138deaa
Merge commit '731cce7a35bf27e144401a63e52c82f0aa208e82' into codex/ga…
benhook1013 Oct 10, 2026
4bb99b6
Merge commit '91b7be29b7d9f68b955f5eaf7f98756cc114fb78' into codex/ga…
benhook1013 Oct 10, 2026
a2d9bcc
Merge commit 'a70e03f8c7f491af2231d29962203518e6588c98' into codex/ga…
benhook1013 Oct 10, 2026
0ef6a65
Merge remote-tracking branch 'origin/develop' into codex/gameplay-acc…
benhook1013 Oct 10, 2026
22a6c39
test(account): retain signer access denial matrix
benhook1013 Oct 11, 2026
dd8ae35
fix(account): classify authorization availability and currentness fai…
benhook1013 Oct 11, 2026
77de62d
fix(account): erase expired operator response envelopes
benhook1013 Oct 11, 2026
39762cc
fix(account): close signer coordinator and operator envelope gaps
benhook1013 Oct 11, 2026
1e5aa2a
fix(account): consume bounded operator source review findings
benhook1013 Oct 11, 2026
ab3c3eb
docs: keep capability allocation scoped to static ownership
benhook1013 Oct 11, 2026
e571559
Bind immutable Control UI cleanup evidence and repair owner fixtures
benhook1013 Oct 11, 2026
9e339b3
Align Account integration fixtures with immutable cleanup and signer …
benhook1013 Oct 11, 2026
5bf044f
Reconcile merged trusted review tooling and refresh exact CI base
benhook1013 Oct 11, 2026
e346e2f
Assert fail-closed signer quarantine in owner rollback proof
benhook1013 Oct 11, 2026
f6d3403
Merge remote-tracking branch 'origin/develop' into codex/gameplay-acc…
benhook1013 Oct 11, 2026
44bbd2a
fix(account): enforce current billing evidence and coherent response …
benhook1013 Oct 11, 2026
8da3de4
Fix exact redemption retries and Gateway port fixture
benhook1013 Oct 11, 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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ The configurable cleanup margin controls issued-token registry retention only. G

The current runtime still uses the shared-HMAC compatibility profile for issuance and validation and has no asymmetric non-exportable signer delegation. Any Secret-backed asymmetric materialization is the explicit interim fallback/drift, not canonical target custody; the current preflight/manifests still treat signing paths and `jwt-signing-keys` mounts as shared workload configuration rather than enforcing Account as the sole private-material consumer, and the classpath fallback remains permitted when the configured JWKS file is absent. The runtime also retains the legacy creator-share percentage setting and provider-mutating code paths; they are unsupported implementation drift, not an accepted fee policy or product capability. These target-state requirements are not proof of current startup, custody, mount enforcement, or creator-commerce disablement; runtime, preflight, and manifest alignment is outside this documentation slice.

The StartSession operator-authorization receiver and owner service use the explicit `firemud.account.start-session-operator-authorization` composition, disabled by default (`enabled=false`). Enabling it requires the existing Account actor/issuance/hosted-terms and transaction owners, reservation-evidence client, an explicit `OwnerKeySource`, bounded reference/recovery/retention durations, the workload namespace, and a separate absolute operator response-envelope keyring mount. The operator keyring is not the generic Account response-envelope mount. Missing inputs prevent composition; this does not create an external operator ingress or enable gameplay launch/activation. The production hosted-terms environment producer and trusted-provider/key-custody inputs remain absent.

## Service-Specific Variables

Additional variables configure outbound email delivery and payment behavior:
Expand All @@ -49,10 +51,12 @@ Additional variables configure outbound email delivery and payment behavior:
| `FIREMUD_ACCOUNT_TOKENS_PLAYER_BOOTSTRAP_EXPIRATION_MS` | `player-bootstrap` JWT lifetime; target ceiling is `300000` ms (five minutes). Current runtime consumes this override, but target startup/preflight bound validation remains incomplete | `300000` |
| `FIREMUD_ACCOUNT_TOKENS_CONNECT_SCOPE_EXPIRATION_MS` | Current Account discovery `connectScopeId` selector lifetime, surfaced as `connectScopeExpiresAt`; target scope proof remains short-lived and expiry-bound | `120000` |
| `FIREMUD_ACCOUNT_TOKENS_CONNECT_TOKEN_EXPIRATION_MS` | `gameplay-connect` JWT lifetime; target ceiling is `30000` ms. Current runtime consumes this override, but target startup/preflight bound validation remains incomplete | `30000` |
| `FIREMUD_AUTH_SESSION_SAFETY_MARGIN_MS` | Target-state cleanup margin added to each token's remaining lifetime for issued-token registry TTL only; target startup validation requires `0..Long.MAX_VALUE - configured JWT lifetime` | `300000` |
| `FIREMUD_AUTH_SESSION_SAFETY_MARGIN_MS` | Target-state per-token cleanup margin added to each token's remaining lifetime for issued-token registry TTL only; target signed-64-bit arithmetic requires `0..Long.MAX_VALUE - configured JWT lifetime`, without replacing any stricter profile or storage bound | `300000` |

Changing any of the three JWT lifetime variables—`FIREMUD_AUTH_JWT_EXPIRATION_MS`, `FIREMUD_ACCOUNT_TOKENS_PLAYER_BOOTSTRAP_EXPIRATION_MS`, or `FIREMUD_ACCOUNT_TOKENS_CONNECT_TOKEN_EXPIRATION_MS`—changes the `exp` claim only for newly issued JWTs; already issued JWTs retain their existing `exp`. `FIREMUD_ACCOUNT_TOKENS_SESSION_EXPIRATION_MS` is only the current default TTL for legacy session records whose writer omits an explicit lifetime; it does not change JWT `exp`, issued-token-registry retention, or gameplay continuity. The current control-ui, player-bootstrap, and connect-token writers pass their corresponding JWT lifetimes directly, which is implementation drift if target convergence requires one per-token retention rule. `FIREMUD_ACCOUNT_TOKENS_CONNECT_SCOPE_EXPIRATION_MS` separately controls the discovery selector's `connectScopeExpiresAt`; it is not a JWT lifetime, session-record TTL, registry-retention setting, or gameplay-continuity cap. The cleanup margin is applied when new registry records are admitted; it does not change the expiration of existing JWTs or the immutable anchor of an existing gameplay binding. A larger cleanup margin therefore cannot raise the independent gameplay-continuity cap. The separate Account overrides are current runtime controls with target ceilings and startup/preflight proof obligations recorded above; they do not establish target convergence by themselves.

The source-only Control-UI issuance preparation reads the configured margin through `firemud.auth.session-safety-margin-ms`; its nonnegative value is captured for new issuance rows only, and zero is valid. This path denies a negative margin, checked-add overflow, or a resulting absolute cleanup deadline above Redis/Lua's exact-integer ceiling of `9007199254740991` milliseconds; that actual-deadline bound is stricter than the global signed-64-bit margin arithmetic above and does not define a new universal margin policy. Retained rows without a persisted cleanup deadline remain untouched and are not backfilled or retried under a new deadline.

## Proto Files

The gRPC schemas for this service live in [`protos/account/v1`](../../../../protos/account/v1). Use `./gradlew generateProto` to regenerate Java stubs when the definitions change.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ Proof qualification: the earlier `7a665c83e81f5cec85fcd7ec9a205c291bc0eba2` run

Account V99–V125 adds passive owner-storage foundations for signer desired state, mounted-material readback evidence, Account-owned JWKS publication, readiness/promotion receipts, and validator-inventory snapshots, together with strict bindings, typed evidence carriers, and focused repository/profile proof sources. The mounted-bundle signing and readiness-owner code in this source preparation is not registered to an RPC, coordinator, scheduler, or runtime consumer; promotion execution, receiver invocation, startup readiness, and validator currentness enforcement remain inactive. These storage and source-proof additions do not establish a runtime issuer/readiness path or close `PLAY`, admission, or activation. The canonical token and signer contract remains [JWT and Token Contracts](../../system-architecture-jwt-and-token-contracts.md); this document records only Account-local implementation consequences.

The current Account owner-source preparation adds V126 storage, default-inactive StartSession operator authorization composition, Control-UI issuance and Redis coordination sources, Account-owned JWKS and signer-materialization adapters, and readiness-probe sources. V126.2 records one immutable cleanup deadline on new Control-UI owner rows, separate from JWT `exp`, and requires the same value in owner readback, registry bytes, and Redis physical-expiry readback. Retained rows without that evidence remain unchanged and are denied for current-source use or recovery; no TTL rewrite or identity reissue is performed. The V126.2 retained-row migration fixture is defined in `AccountControlUiIssuancePostgresIntegrationTest`; direct PostgreSQL tamper proof for changing a newly written cleanup deadline remains missing. StartSession response recovery retains the raw AAD v1 byte grammar, accepts a 128 KiB authority bundle and 144 KiB total binding/response, and stores envelopes up to 160 KiB. V126.3 replaces only the old size constraint; it does not rewrite ciphertext or alter V126.1 erasure and immutable-evidence guards. StartSession composition defaults off. Materializer trust defaults off, and missing trust denies every materializer RPC. Missing bootstrap-coordinator composition denies enrollment and promotion operations; trusted generation requests, observations, and result reads remain available. No runtime issuer, promotion coordinator, or consumer coordinator is registered. The earlier Hosted Validation run `38113324723` at `f6d34031221a3337e7a958ac4b085554460668c9` is historical owner-workflow fixture proof. Current exact-head Account fixture results and limits are recorded in the [AA-1.3 tracker](../../../project-management/implementation-tracking/player-access-and-session.md#account-operation-and-signer-source-preparation); they do not establish overall CI success (aggregate validation remains red on an unrelated Gateway fixture), deployed mTLS, the complete Logging & Admin/Game Session/World flow, player-facing JWT readiness, full-service boot, trusted deployment, or activation. Direct PostgreSQL proof that a newly written cleanup deadline cannot be changed remains missing. JWT and signer behavior remains canonical in [JWT and Token Contracts](../../system-architecture-jwt-and-token-contracts.md).

V126.1 adds an owner-transaction-only erasure primitive for the encrypted StartSession operator response after its already-recorded response-recovery deadline. Database wall time decides eligibility and stamps the one-way erasure marker. The compact tuple, fingerprint, authority and exact redemption evidence remain immutable; deletion, early erasure, deadline changes and ciphertext resurrection remain denied. ISSUE and RECOVER fail closed after erasure instead of rebuilding the response. This preserves V126's checksum and does not select a new retention interval, erase compact evidence, register a cleanup scheduler, or enable runtime composition. Fresh-install and retained-V126 migration test definitions cover the boundary; replacement physical PostgreSQL execution remains required.

V126.3 raises only the encrypted StartSession response-envelope size guard after locating its exact single-column constraint. The migration fails closed if the old size guard is absent or ambiguous and performs no retained-row rewrite. The PostgreSQL regression in [AccountStartSessionOperatorAuthorizationRepositoryIntegrationTest](../../../../services/account-service/src/test/java/integration/net/firedevops/firemud/accountservice/repository/AccountStartSessionOperatorAuthorizationRepositoryIntegrationTest.java) covers the 160 KiB storage edge and retention of a maximum-size V126.2 ciphertext across the forward migration; its exact-head physical execution and limits are recorded in the [AA-1.3 tracker](../../../project-management/implementation-tracking/player-access-and-session.md#account-operation-and-signer-source-preparation).

The StartSession owner preserves request IDs already accepted by the generic response-envelope identifier field. For other canonical NFC request IDs, its envelope binding uses lowercase hexadecimal SHA-256 of the exact UTF-8 request ID; the SHA-256 digest of the complete canonical tuple remains a separate binding field. This Account-local encoding leaves the generic envelope format and cryptography unchanged.

The passive signer repository can abandon only the exact current unprepared generation with its owner-recorded generation result and trust fence. An immutable abort receipt and desired-state CAS preserve both durable and published active fences, retain the original operation/result, and permit an exact retry after repository restart. A subsequent generation advances past the retained operation high-water mark; it does not reuse the aborted generation. Prepared promotion or changed evidence remains rejected. This storage operation is not wired to a cancellation coordinator or runtime activation path.

Promotion storage retains the existing non-secret canonical readiness-proof preimage alongside its digest. The database hashes those exact bytes and binds the parsed proof to the locked generation, publication, inventory plan and complete verified probe receipts; altered, incomplete or mismatched evidence is rejected. PostgreSQL execution of these transition and tamper cases is required in the scoped CI proof; local compilation or skipped integration tests alone do not establish those database guarantees.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Account now has a bounded passive storage/source-evidence preparation for desire

It also includes unregistered, caller-transaction-bound Control-UI creator-source composition and authority/signing-input preparation; this does not establish token issuance, receiver approval, stale-authority rejection, or playable admission.

The same source-only preparation now records one immutable cleanup deadline for each new Control-UI issuance, separate from the JWT's logical `exp`; the exact deadline must match owner readback, the registry record, and Redis physical expiry. Retained rows without that evidence remain unchanged and cannot establish current issuance or be retried as a new identity. This does not register or activate the issuer, rewrite retained Redis bytes/receipts, or claim bounded cleanup or late revocation.

Each registry-backed revocable `control-ui`, `player-bootstrap`, or receiver-specific private player-delegation JWT has exactly one Account-owned Coordination Redis record: `session:auth:token:<tokenHash>`. The separate `gameplay-connect` profile is not registry-backed and uses its dedicated single-use replay contract.

## Canonical Authority Tuple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The ten permanent implementation trackers are retained as the complete-product p
| --- | --- | --- | --- |
| `AA-1.1` | [player-access-and-session.md](./player-access-and-session.md) | [shared-runtime-contracts-and-persistence.md](./shared-runtime-contracts-and-persistence.md) | Account Service owns global account and profile identity; shared security and persistence conventions are handoffs, not alternate account authority. |
| `AA-1.2` | [player-access-and-session.md](./player-access-and-session.md) | [realm-routing-and-playable-state.md](./realm-routing-and-playable-state.md); [shared-runtime-contracts-and-persistence.md](./shared-runtime-contracts-and-persistence.md) | Account Service owns tenant membership, roles, and delegated grants; Realm Routing consumes grant decisions for admission and Shared Runtime carries authorization context. |
| `AA-1.3` | [player-access-and-session.md](./player-access-and-session.md) | [shared-runtime-contracts-and-persistence.md](./shared-runtime-contracts-and-persistence.md); [platform-operations-and-delivery.md](./platform-operations-and-delivery.md) | Account Service owns credential, recovery, security-policy, and data-rights decisions; Shared Runtime supplies trust propagation and Platform Operations supplies operator and deployment controls. |
| `AA-1.3` | [player-access-and-session.md](./player-access-and-session.md) | [shared-runtime-contracts-and-persistence.md](./shared-runtime-contracts-and-persistence.md); [platform-operations-and-delivery.md](./platform-operations-and-delivery.md) | Account Service owns credential, recovery, security-policy, and data-rights decisions; this row records static ownership only and makes no implementation or runtime-activation claim. Shared Runtime supplies trust propagation; operator lifecycle and deployment controls belong to Platform Operations. |
| `AA-1.4` | [player-access-and-session.md](./player-access-and-session.md) | [shared-runtime-contracts-and-persistence.md](./shared-runtime-contracts-and-persistence.md) | Account Service owns subscriptions, purchases, donations, billing, and fees; Shared Runtime carries the local transaction and saga handoff without owning commerce. |
| `AA-1.5` | [player-access-and-session.md](./player-access-and-session.md) | [realm-routing-and-playable-state.md](./realm-routing-and-playable-state.md); [game-authoring-publishing-and-activation.md](./game-authoring-publishing-and-activation.md) | Account Service is the canonical entitlement, quota, and hosting-eligibility authority; Realm Routing and Authoring/Activation consume those gates before admission or launch. |
| `AA-2.1` | [player-access-and-session.md](./player-access-and-session.md) | [realm-routing-and-playable-state.md](./realm-routing-and-playable-state.md); [player-experience-commands-and-communication.md](./player-experience-commands-and-communication.md) | Player Access owns account-authenticated gameplay login, character selection, and session binding; Realm Routing supplies admissible targets and Player Experience owns the command/presentation handoff. |
Expand Down
Loading
Loading