Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
291e5e9
feat(account): add passive signer and readiness storage foundation
benhook1013 Oct 10, 2026
013c304
Merge remote-tracking branch 'origin/codex/gameplay-original-claim-co…
benhook1013 Oct 10, 2026
db0bac7
docs(account): qualify signer storage validation evidence
benhook1013 Oct 10, 2026
5d91615
Merge commit '141a7136c95f5bc235f93e93b3860bdf0a274480' into codex/ga…
benhook1013 Oct 10, 2026
b7c2304
test(account): retain exact pending generation JWK in PostgreSQL fixture
benhook1013 Oct 10, 2026
c1da9f0
Reject private signer material in all validator PodSpec sources
benhook1013 Oct 10, 2026
995a60c
Merge commit 'efcd23e428393e71d10eb406838cee030d283cf6' into codex/ga…
benhook1013 Oct 10, 2026
99da7fc
Return verified prepared signer dispatch evidence
benhook1013 Oct 10, 2026
4ad0013
Merge commit '7e70d7030d7112b89cad38479a6de0942479059b' into codex/ga…
benhook1013 Oct 10, 2026
cd25e5b
Merge commit 'dee8317077' into codex/gameplay-account-signer-storage-…
benhook1013 Oct 10, 2026
6b1fcbb
Merge commit '92a638f5d8c15a735354beddb3e4f1db590e3806' into codex/ga…
benhook1013 Oct 10, 2026
7226051
Merge commit '257f6d476d5e851aa8ad8b854bf29563581c9827' into codex/ga…
benhook1013 Oct 10, 2026
a129f0a
Merge commit 'b51f562e29303088ee323de6e1f9aec678b0b597' into codex/ga…
benhook1013 Oct 10, 2026
ce679c2
Bind signer readiness proof and recover exact unprepared generations
benhook1013 Oct 10, 2026
dbd7f1c
test: derive readiness receipt count from exact pod inventory
benhook1013 Oct 10, 2026
f8a1350
Merge commit '33ee8692c0ec1f3814cea2f228739af4fbf575cc' into codex/ga…
benhook1013 Oct 10, 2026
9081274
Merge commit '929d8690e6' into codex/gameplay-account-signer-storage-…
benhook1013 Oct 10, 2026
607004f
Merge commit 'c71731cb3da9dc6002b39cba70e09d0ff71d9f95' into codex/ga…
benhook1013 Oct 10, 2026
3e6f33c
Merge commit '9304a0328ae4d169f0f04a251b91803394d38f4b' into codex/ga…
benhook1013 Oct 10, 2026
d3784d2
Fence signer dispatch freshness and recover exact frozen promotions
benhook1013 Oct 10, 2026
dc5c994
test(account): assert actual immutable promotion operation constraint
benhook1013 Oct 10, 2026
c866902
test(account): assert fail-closed prepared signer restart outcome
benhook1013 Oct 10, 2026
7b79a88
test(account): prove dispatched signer commit after readiness expiry
benhook1013 Oct 10, 2026
29c89ed
fix(account): close signer authority and readiness evidence gaps
benhook1013 Oct 10, 2026
b47e5a5
fix(account): delimit readiness CASE expressions in PLpgSQL
benhook1013 Oct 10, 2026
e637295
test(account): bind raw readiness receipt to canonical identity
benhook1013 Oct 10, 2026
3384f31
fix(account): bind readiness inventory profiles and isolate expiry proof
benhook1013 Oct 10, 2026
731cce7
Merge commit '75e92718a983ac134cbb75fafbf173ac6b0360e0' into codex/ga…
benhook1013 Oct 10, 2026
91b7be2
test(account): keep live inventory fresh before expiry recovery
benhook1013 Oct 10, 2026
a70e03f
test(account): refresh inventory for expired readiness recovery
benhook1013 Oct 10, 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 @@ -12,6 +12,14 @@ Account V40 adds owner-proven sequence-zero source baselines to the inherited V3

Proof qualification: the earlier `7a665c83e81f5cec85fcd7ec9a205c291bc0eba2` run is historical. Later physical CI executed the inspection-lock, TRUNCATE and disclosure-source regressions successfully but failed a trigger-catalog fixture. That fixture and the final optional-inventory settlement and malformed source-vector corrections require replacement physical CI. See the [player-access tracker](../../../project-management/implementation-tracking/player-access-and-session.md#current-status) for the canonical proof inventory and exact limits. These results do not establish activation or playable closure.

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 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.

The source preparation also includes unregistered, caller-transaction-bound creator-source composition and a Control-UI authority/signing-input snapshot. These are owner-evidence preparations only; they do not provide a registered issuer, receiver approval, or activation.

Account's actor-staging eligibility owner read is a read-only, same-namespace Entity workload RPC gated off by default. Under one repeatable-read Account transaction it verifies persisted Account UUID/provenance, current Account membership and pair authority, fresh Game Design tenant-source evidence, and the current membership event/checkpoint, then returns digest-sealed evidence scoped to `PUBLIC_PRODUCTION_STAGING_ONLY`. It reports an eligible or ineligible source snapshot but creates no membership, actor assignment, JOIN, PLAY, or gameplay admission. The staged foundation passed 43 focused Account tests and 92 shared-evidence tests with no failures or skips, plus source generation and Account integration-source compilation. PostgreSQL migration/persistence proof sources are included but physical PostgreSQL and live runtime execution remain unrun; the RPC is not runtime-ready or admission authority.

Account V29 persists immutable, unique, non-nil `account_uuid` values with provenance and the unchanged numeric source-row id. Registration REST/gRPC and the Account component of the current Account/profile-local and legacy tenant exports expose that persisted UUID through `AccountDto.id`; the mapper requires a non-nil UUID, provenance, and an exact positive source-row match. Repository insert/readback checks remain the persistence boundary, and new registration audit payloads use the same UUID. Profile and tenant DTO identifiers, authentication results, JWT subjects, and downstream consumers remain unchanged; the current export is still partial Account/profile-local data, not the canonical portable export. The Account-local UUID-to-row resolver also remains confined to Account. The closed consumer boundary is incomplete: shared `SessionContext.currentAccountIdOrNull()` still requires numeric claims and is used by `GrpcClientAuth`, Logging & Admin `SessionActorReaders`, Automation Scripting `ScriptEventIngressServiceImpl`, and Social & Groups current-account authorization; Game Session control-plane owner authorization also compares numeric owner IDs. These consumers are outside this Account-owned slice, so no UUID-authentication or downstream-consumer proof is claimed. Focused repository and retained-row migration integration cases are present, but local PostgreSQL execution is unavailable while Docker is disabled; [ADR 0020](../../decisions/adr-0020-scoped-domain-and-operational-identifiers.md) remains the identifier authority.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ This document defines the JWT profiles, claim requirements, issued-token registr

This document defines target-state token and revocation behavior. Current implementation remains drifted: the runtime has no complete issued-token registry or Account-owned authority-generation issuance, advancement, propagation, and validation path; checked-in player-facing Kustomize delivery is legacy Secret-backed signing plus a public `jwt-jwks` Secret, while hosted preview Helm remains on its diagnostic public `jwt-jwks` ConfigMap path; validators still use shared-HMAC verification rather than Account JWKS; and the runtime still permits the documented classpath JWKS fallback when the configured file is absent. The first implemented authority-generation path must prove that issuance and refresh cannot cross a concurrent generation advance and that every affected route rejects stale generations; no such runtime proof is currently claimed.

Account now has a bounded passive storage/source-evidence preparation for desired signer state, JWKS publication/readback, readiness/promotion evidence, and validator inventory. These repositories, migrations, and focused proof sources do not register a runtime issuer, materializer, readiness path, promotion executor, or consumer gate, and do not establish current token issuance, stale-authority rejection, or playable admission. This implementation status does not change the canonical target contract below; Account-local consequences and proof limits are recorded in [Account Runtime and Data](./microservices/account-service/runtime-and-data.md#implementation-status).

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.

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

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions services/account-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
apply(from = "${rootDir}/gradle/proto-convention.gradle")

plugins {
`java-test-fixtures`
id("net.firedevops.firemud.secured-stateful-service-conventions")
id("net.firedevops.firemud.aop-conventions")
id("net.firedevops.firemud.jooq-conventions")
Expand All @@ -15,4 +16,7 @@ dependencies {
implementation(libs.spring.boot.starter.mail)
implementation(libs.argon2)
implementation(libs.stripe.java)
testImplementation(testFixtures(project(":account-service")))
testCompileOnly(libs.spotbugs.annotations)
add("integrationTestCompileOnly", libs.spotbugs.annotations)
}
Loading
Loading