Skip to content

Unit 1B: tighten public admission and connect-token issuance - #2873

Closed
benhook1013 wants to merge 36 commits into
codex/entity-digest-v2-catchupfrom
codex/unit-1b-pre-v1-implementation
Closed

benhook1013 wants to merge 36 commits into
codex/entity-digest-v2-catchupfrom
codex/unit-1b-pre-v1-implementation

Conversation

@benhook1013

@benhook1013 benhook1013 commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Current General pre-review handoff

Exact candidate 6c22279fec84636653d5b38b37505747651a7c18, parent #2872 513ead19624af3fa371af7172c760bace964e8d9, 92 unique files.

All four commissioned independent whole-boundary rounds are complete and recorded/read back in the shared controller: 10 raw / 9 accepted (3 Major, 5 Minor, 1 Trivial) / 1 rejected, with all accepted work implemented. Final round4b covered every unique path at efb6e9433 and found one Major; the earlier structural launch failure gives no credit. This is pre-CodeRabbit preparation, not provider taper or merge-readiness evidence.

Final accepted correction

Tenant-association Jobs no longer consume shared bootstrap/application database credentials. Each of Account evidence/import and Game Design preflight/apply selects its own fixed required Secret, with no optional key or fallback. Both runners verify the connected JDBC username matches the operation before owner/evidence/manifest work; wrong, absent, unverifiable or opposite-mode identity fails closed with sanitized diagnostics. Existing scheduler/listener/Temporal/Flyway, certificate, signature, namespace, immutable-image, retention and exact readback fences survive. Normal releases still omit both Jobs.

The owning operations guides define minimal per-mode roles/grants and trusted provisioning, effective-role/grant/denial readback and retirement. These are mandatory live activation prerequisites, not credentials or grants created by Helm. No SQL or migration bytes changed in this correction.

Executed local proof

Corrected consolidated Account and Game Design checks, both boot JARs, enabled Java formatting, Checkstyle/SpotBugs, links and Markdown pass: 106 tasks (40 executed, 66 up-to-date). XML readback: 787 passing unit cases, including all 9 migration-runner methods, zero unit skips/failures/errors; 81 PostgreSQL cases skipped locally. Earlier failed analyzer gate was corrected with the existing narrow injected-Spring-collaborator convention, not disabled analysis.

Both tenant-association and Entity-baseline Helm contracts pass; the former proves four exact Secret selections, required keys, shared/unrelated/optional/malformed credential rejection, ordinary-disabled behavior and existing workload/egress/Flyway fences. ShellCheck and diff hygiene pass. Mixed execution/up-to-date evidence is not labelled all-fresh.

Separate remaining gates

No live DB-role provisioning, Secret authentication/effective grants, retained-row inventory/readback, cert issuance/served mTLS, deployed Job, fresh-image startup or authenticated consumer/admission proof is established locally. Missing provisioning keeps these Jobs unavailable; prior Flyway history/readback and all existing runtime/membership/credential/key-ring activation gates remain closed. Required-check authority is unavailable (branch-protection endpoint404), so no required-CI-green or merge-ready claim. Gameplay retains Hosted/CLI review.

Delegation: fresh Luna XHigh full-boundary reviewer; reused Luna Account and documentation helpers for bounded credential implementation/SQL-access investigation and first proof. General inspected all returned changes, integrated chart/negative contracts, corrected the narrowly scoped analyzer annotation and ran the passing consolidated gate.

Prior checkpoints and their exact historical proof

Current General checkpoint — 2026-10-03

Exact published head efb6e943398059fb180096624dddcf68bbd7f8cb, stacked on own published #2872 513ead19624af3fa371af7172c760bace964e8d9: 92 unique files.

This remains the Unit 1B public-admission, private-authority containment, provisional JOIN receipt/history, and explicit tenant-association migration boundary. No membership/credential/ring activation or live migration is enabled. The complete stronger parent behavior survives: lifecycle-qualified private REST authority stays denied; MISSING requires coherent zero evidence, ACTIVE requires positive version/generation; hidden/non-public errors preserve privacy; exact-tenant cleanup and uncertain PENDING JOIN readback/backoff remain intact.

Reconciliation and no-loss proof

All 25 overlap conflicts are resolved. Of the prior 89 unique paths, two test paths are now fully subsumed by stronger parent tests, and the canonical Account migration-version proof adds one path; no required test was dropped to reduce size. Parent Script Pin replay/base-mismatch and WebSocket membership negatives survive. Shared fixtures distinguish ACTIVE nonadmission from explicit INACTIVE and emit ACTIVE after successful JOIN. Account's 193-case fixture class now uses canonical namespace evidence and retained signed scope without restoring legacy grant authority.

The receipt migration is byte-identical at V40, after the current published parent timeline and downstream V39.1; published parent V28 backoff contents remain unchanged. The pre-V29 retained-data fixture represents the actual published history, not invented pre-existing receipt tables. Full-schema JOIN receipt proof remains separate. Any environment that applied the superseded draft V28 receipt migration needs Account-owned exact Flyway history/row inventory and an explicit verified no-data or retained-data disposition before deployment. No repair, out-of-order setting, inferred provenance, remapping or evidence deletion is permitted.

Round3's four accepted corrections now require explicit effective Flyway disablement before one-shot context refresh, reject simultaneous Game Design Job modes before Spring startup, recheck public cached-token eligibility without reminting or extending the token, and guard receipt UPDATE/DELETE with a forward V41 while leaving V40 bytes and legitimate appends/stream-head advancement intact. The prior minimized-audit/no-membership retry negative remains separate and pending-safe. Game Design's conflicting canonical-identity SQL moved byte-for-byte to V30.1, after the unchanged parent V30 baseline lock and before unchanged V31 association storage. Prior applied draft V30 histories require owner inventory/readback and remain blocked on version/checksum conflict; this is not automatic live-history compatibility.

Local validation

The combined Account, Game Session, common test-support, TCP Proxy and Game Design check -PfullCheck, Account/Game Session boot-JAR, affected enabled Java formatting, links and Markdown gate passed: 250 tasks, 52 executed, 198 up-to-date. Parsed XML: 3,470 cases, 291 skipped, zero failures/errors. These include cached/up-to-date prior same-input results and are not all fresh. The corrected PLAY class passed 147 cases; obsolete entitlement-before-membership assertions were corrected without changing production admission order.

Hosted-identity manifest, trust-bootstrap issuance and Helm tenant-association migration contracts, their affected ShellCheck and diff hygiene passed. A mistyped final contract filename failed on the earlier command; the canonical Helm contract was then run successfully. The latest six-path correction forces Flyway off in every tenant-association Job mode; the render contract covers preflight/apply/evidence/import and rejects missing or enabled properties, while retaining exact identity/egress checks. Owner docs separate normal schema deployment/readback from Job work; signature-only preflight does not claim schema readiness. ShellCheck/render contract and final links/Markdown/hygiene pass. This is static/offline proof, not a fresh live Job bootstrap.

PostgreSQL, Docker-backed positive cross-service scenarios, fresh-image boot, live certificates/Jobs, signed cross-service migration/import, exact retained-data readback and corrected-head required CI remain unproved. Packaging and skipped tests do not establish live delivery.

Latest corrected two-service check -PfullCheck, enabled Java formatting, both boot JARs, links and Markdown gate passes 106 tasks:15 executed/91 up-to-date. Parsed reports show 781 unit cases passing and81 integration cases skipped, zero failures/errors; Account results include cache/up-to-date reuse, not all-fresh execution. Seven startup cases and the resource-backed Game Design migration-order regression pass. Both rebuilt boot JARs contain the intended exact migration filenames without the superseded conflicting identity/receipt entries. Flyway sanity passes12 sets/127 files; the four-mode Helm Job contract, shellcheck -x, final changed-doc lint and diff hygiene pass. Full PostgreSQL receipt immutability/append/history and combined database order remain unexecuted locally. Earlier failed gates exposed and corrected test exception/resource selection and test-only SpotBugs issues; those failures are not represented as passing gates.

Independent pre-review

Three of four newly assigned General rounds are complete: 9 raw /8 accepted (2 Major,5 Minor,1 Trivial) /1 rejected. All eight accepted obligations are fixed at this published head; the separately reproduced migration-version collision is also corrected without changing SQL bytes. One scheduled fresh whole-92-path round remains. All attempts/dispositions/fixed commits are in the shared controller and were read back. This is preparation only: no CodeRabbit request, taper credit, merge-readiness claim, merge or auto-merge.

Historical checkpoints and proof (prior heads; not current validation)

Current four-stage packaging

The human-approved Document tail is now #2873 → #2876 → #2880 → #2915. This PR's code head and unique scope are unchanged by consolidation. #2880 (73 files) preserves snapshot, bare-LOGIN storage, selected-target context and original-source proof from #2881/#2911/#2914; #2915 (69 files) preserves fresh tenant/UUID snapshot, historical recovery/correlation and Game Design tenant-source readback from #2917–#2920. Source proof stays head-specific; no activation, corpus completion or merge readiness follows from packaging. Historical review records remain retained; runtime membership/new credential paths remain denied and the ring mount unpublished.

Latest ancestry checkpoint — 2026-09-30

Published 1e9be76e24aa1bb8244ee5d3fbc3731cfbe2edaa, 89 unique files against current published parent 0e0172ddb491b4532813a4608f55004656ed1f8d. Carries merged #2882's exact Script Pin test correction (fd7c3c37e): server-resolved base evidence is not caller input, and unchanged requests replay the stored base-mismatch receipt. No separate repair is required. Only the merged correction was carried with explicit source provenance; unrelated merged ancestry was not imported. Local focused Script Pin proof compiled; all 25 PostgreSQL cases skipped without Docker. Corrected-tail composed validation and CI are pending. Older checkpoints below are historical; this is not a new independent review pass or merge-readiness claim. Membership RPC, credential paths and ring activation remain denied.

Document independent pre-review checkpoint (2026-09-30)

Published clean head 3bd23a2bc02bb03cc92b752f4c49e51b9f5b14ee is an 88-file unique child of exact incorporated #2872 9e250a9d6cecee348c0089fabb1260058ce160bc; preserved parent reconciliation/no-loss proof is in the private ledger. Two additional user-requested fresh whole-patch Luna passes on the prior 2d350645 head returned 4 raw / 0 local accepted / 1 routed, then 6 raw / 3 local accepted / 0 routed. The latter accepted one P1 Docker-backed fixture proof drift and two P2 Account/Game Design status/ambiguity defects. All three local corrections are published. Shared SQLite runs document-pr2873-more1-2d350645 and document-pr2873-more2-2d350645 were imported and read back. The repeated membership freshness observation is fixed in downstream #2880; complete entitlement and private-grant authority remain explicit activation work, not live bypasses while Account RPCs deny before reads.

The exact composed :account-service:check :game-design-service:check :game-session-service:check :common-test-support:check linkCheck lintMarkdown -PfullCheck --no-configuration-cache passed with zero failures: Account 327 unit executed / 46 PostgreSQL skipped; Game Design 279 unit / 21 integration skipped; Game Session 1,689 unit + 18 integration + 1 cross-service executed / 17 + 122 + 39 skipped; common-test-support 43 executed. Links and Markdown are clean. The affected Docker-backed WebSocket class compiled but skipped locally, so its positive flow still needs executed proof. Live signed migration/Job/mTLS/import, PostgreSQL, lifecycle-qualified grant, entitlement, and authenticated membership/consumer proof remain open. The Account runtime membership, grant and entitlement RPCs still deny before data access. This is independent pre-review completion of this identifiable child patch, not CodeRabbit taper or merge readiness; no Hosted/CLI review or merge was requested.

Scope

Draft child of #2872 at 9e250a9d6cecee348c0089fabb1260058ce160bc. Published head 2d35064586197e53ffff85ba5cec0209273e7de5; 88 unique files. This is the existing Unit 1B/Account admission patch, normally merged after #2872, and does not enable denied Account runtime reads. Earlier reconciliation notes below are historical.

  • Remove internal connect-token jti from the public metadata response and OpenAPI schema; keep the token cookie-only and retain internal replay identity.
  • On fresh issuance, treat INACTIVE membership as nonadmitting and fail non-public issuance closed until lifecycle-qualified Account grant authority is available. Keep public production independent of that grant.
  • In conditional text PLAY admission, check entitlement outage/billing before public membership classification. Return PUBLIC_PRODUCTION_ADMISSION_DENIED when a new public join is closed, and reserve JOIN_REQUIRED for an allowed join. Existing active public members and non-public realms do not consume allowPublicJoin.
  • Distinguish coherent missing/INACTIVE membership from ACTIVE denial, require ACTIVE before non-public grant checks, return NON_PUBLIC_ENROLLMENT_REQUIRED or REALM_ACCESS_DENIED at their respective gates, and deny contradictory lifecycle evidence without making it a JOIN opportunity. Missing rows do not imply a version-zero history.
  • Record the approved Account-owned private-delegation exchange and never-committed sequence-zero membership checkpoint as target contracts, with current producer/consumer gaps explicit. Neither is enabled by this draft.
  • Overseer has approved a provenance-backed, one-to-one Account bridge from retained numeric membership keys to canonical account UUID and Game Design-authoritative tenant UUID. Account V29 assigns an immutable UUID to each retained/new account row with exact row/provenance readback; Game Design V30 does the same for its own game rows. Its former-key owner read alone does not assert that an Account numeric tenant key maps to that game; numeric keys are not encoded as UUIDs or guessed from slugs.
  • The new explicit audited migration path uses a Game Design owner-signed, versioned Ed25519 manifest binding the exact namespace, stable operation ID, approval/reference, former Game Design key/source row/issued UUID, Account retained numeric key, and Account's V26 source-evidence digest. Game Design V31 verifies the trusted signature and exact V30 source, stores immutable one-to-one operation/association evidence, and exposes the exact readback only to the dedicated Account tenant-migrator mTLS workload. Account V30 recomputes its own retained tenant/membership/profile evidence, rejects absent or conflicting rows, and imports only the matching owner response into immutable one-to-one storage with exact readback. Opt-in listener-free job runners prepare/verify/apply/import; ordinary startup creates no mappings. The runtime membership RPC stays denied. Neither job deployment nor an actual signed manifest, cross-service import, membership authority stream, or Game Session consumer is proved or enabled by this checkpoint.
  • The migration Jobs now render only under explicit operator values with immutable image digests, exact namespace/run scope, tokenless dedicated service accounts, and restricted egress. Account import uses account-tenant-migrator mTLS identity for the exact Game Design association read; ordinary Account identity is denied on that method, while the migrator is denied on the separate former-key read. Game Design's job checks its own game-design-tenant-migrator certificate before acting. Both certificates use stable, explicitly invoked issuance/verification, exact SAN and narrow admission policies rather than ordinary workload-certificate fallback or per-deployment requests. These are static/local contract results, not live certificate, Job, manifest, or cross-service proof.
  • Retain an Account-owned provisional JOIN/reactivation receipt and per-scope positive history in the JOIN transaction. The abandoned-PENDING reconciler requires matching operation, membership, receipt, and audit readback for JOINED; event-free ALREADY_ACTIVE requires matching prior receipt evidence. Existing legacy active/inactive rows and absent rows with retained history fail closed rather than resetting to sequence one. This is not the canonical authority outbox, full membership snapshot, or sequence-zero absence proof.
  • Correct the PostgreSQL receipt append's typed-result call and preserve multiple tenants in the integration fixture; apply formatting-only corrections to seven Game Session files flagged by exact-head CI, including inherited files.
  • Keep Game Session's strict membership-lifecycle guard. The shared Account test stub now emits coherent ACTIVE, INACTIVE, and MISSING evidence; the two TCP revocation tests explicitly request inactive membership rather than an untyped admission flag.
  • Expect the current canonical JOIN_REQUIRED wording in TCP's revocation transcript proof rather than the obsolete pre-JOIN sentence.

Latest inherited Game Session fixture correction

The composed #2876 validation run 36280249218 executed 130 Game Session integration cases and exposed 18 GameSessionWebSocketHandlerIntegrationTest failures: its shared admitted-membership mock omitted membershipLifecycleState, while this PR's production PLAY guard correctly rejects blank lifecycle evidence. This owning-parent correction sets the fixture to ACTIVE without weakening that guard. Local integration compilation and Spotless passed, but the selected 27 integration cases all skipped without Docker; executed hosted proof remains open.

2026-09-27 parent reconciliation

Merged #2872 normally into #2873. The old 89-file patch over #2875 retains identical merged blobs for 88 paths; the sole differing path is FriendsCommandHandlerTest, where #2872 adds a compatible redaction assertion. The new base-relative unique patch is 80 files; nine former unique paths are either identical to #2872 (eight) or that compatible parent test addition (one). git diff --check passed. Focused Game Session FriendsCommandHandlerTest executed 31/31 green; CommunicationWebSocketCrossServiceTest compiled/discovered 26/26 but skipped all 26 locally, so no executed cross-service proof is claimed. This merge is not a new Account/Game Design database or live deployment proof.

Validation and proof limits

  • Focused Account issuance/controller, Game Session PLAY, and resume tests passed. At the earlier corrected checkpoint the full Game Session unit suite discovered 1,651 cases, skipped 17, and failed none. The provisional-receipt checkpoint executed 312 Account unit cases without skips or failures; its 11 focused PostgreSQL cases all skipped without Docker. Account Java formatting, link and Markdown checks, and git diff --check passed. Parent diff review caught and corrected a boxed-ID comparison in inactive-row receipt validation that the skipped database cases could not expose.
  • On the composed Migrate retained Entity digest baselines to schema v2 #2875 parent at e28acad86, the Account and Game Session unit tasks passed again: Account 312/312 executed, Game Session 1,634 executed with 17 skipped and no failures. Account Java formatting, link and Markdown checks passed. This local run did not execute Game Session integration or PostgreSQL cases.
  • An earlier composed four-service check -PfullCheck --continue after merging Converge Entity digest v2 and guarded historical baseline migration #2872 completed the unit suites with no test failures: Account 308/308 unit tests, Game Session 1,628 executed of 1,645 unit cases, Entity 185/185 unit tests, and Game Design 199/199 unit tests. Some tasks were served from Gradle's exact-input cache. This was before the new Account receipt and Migrate retained Entity digest baselines to schema v2 #2875 reconciliation, so it is historical supporting proof, not exact-head validation.
  • Docker is unavailable in this WSL checkout. On the current composed candidate, Account integration discovered 43 cases and skipped all 43; previously sampled Game Session integration skipped 112/130 and cross-service skipped 38/39. These are not runtime proof.
  • The earlier local composed check exit was red on :game-session-service:spotlessJavaCheck, reporting six untouched Friends/Who/presence/WebSocket files inherited from Constrain gameplay presence roles and redact legacy friend views #2858. A later isolated local formatting check returned green, but exact-head CI below reproduced an untouched Friends formatting failure; the local result does not clear that gate.
  • Manual exact-head CI — Validation run 36210054865 on c945b1878310b730af045169813644e23b98f3a5 failed. Account, Entity Management, and Game Design Gradle jobs passed with both test and integrationTest tasks executed, but their logs do not establish individual PostgreSQL/Testcontainers case results. Game Session stopped at spotlessJavaCheck on untouched FriendsCommandHandler.java before its test tasks. Python validation found Ruff errors in untouched hosted-preview scripts, and Dev Tool Contract Checks rejected an untouched player-experience tracker row. These failing paths are outside Unit 1B: tighten public admission and connect-token issuance #2873's unique diff; the run remains a red composed gate and is not membership-snapshot runtime proof.
  • Manual exact-head CI — Validation run 36213467926 on published e28acad8619da45591143cb4b4eb7a3a0118df8f failed. Account integration executed 47 cases: 14 failed, none skipped. Twelve failed on a Unit 1B: tighten public admission and connect-token issuance #2873 receipt-writer SQL bind error; two exposed a multi-tenant test fixture that overwrote the first tenant's mocked realm. The candidate corrects both. Game Session stopped at Java formatting before tests; the candidate also formats the seven reported files. Separate Python, dev-tool, TCP cross-service, and Game Design failures remain to be classified against their owners; this red run is not proof of the fixes.
  • On candidate cb7f99686, the combined local Gradle invocation completed successfully: Account unit 312/312 executed, Game Session unit 1,634/1,651 executed (17 skipped), Account integration 43/43 skipped without Docker, both Java formatting checks, link validation, and Markdown lint passed. This proves compilation/unit behavior and documentation hygiene, not the corrected PostgreSQL path. The candidate also contains General's later Migrate retained Entity digest baselines to schema v2 #2875 correction to Entity baseline provenance; exact-head hosted CI is still required.
  • The published fixture follow-up at 55ed1387c passed a combined local Gradle invocation: shared test-support 43/43 unit cases executed (including the direct lifecycle-response test), TCP cross-service 3/17 executed and 14 skipped, Game Session cross-service 1/39 executed and 38 skipped, plus affected Java formatting. The 13 TCP scenarios that had failed in CI were among the Docker-skipped local cases, so this is compilation and stub-unit proof only.
  • Manual CI — Validation run 36214744497 on prior cb7f99686 completed red. Account integration and check completed successfully; the Account JaCoCo artifact records 200 covered instructions in concrete AccountMembershipTransitionReceiptRepository.appendTransition, confirming that method executed on the hosted runner, although no per-class test count is exposed. TCP's 13 failing cross-service cases and Game Session cross-service failures used the old lifecycle-omitting stub. Game Design's four baseline-migration integration NPEs belong to Migrate retained Entity digest baselines to schema v2 #2875; Gateway generated-gRPC compilation, Python Ruff errors, and the dev-tool proof-row contract are outside Unit 1B: tighten public admission and connect-token issuance #2873's unique patch.
  • Manual CI — Validation run 36215906882 on 55ed1387c completed red: Account unit and integration tasks passed; TCP executed all 17 cross-service cases, 16 passed and one revocation test failed only because it asserted the obsolete JOIN_REQUIRED sentence while the actual output carried the new canonical wording. The current head fixes that assertion. Game Session executed 39 cross-service cases with seven friend/presence failures: Constrain gameplay presence roles and redact legacy friend views #2858's fail-closed Friends visibility behavior exposes a Sora cross-service fixture with unspecified policy; Constrain gameplay presence roles and redact legacy friend views #2858 owns the fixture/proof correction. Affected Checkstyle gates passed. Python Ruff and the dev-tool proof-row contract remain unrelated red jobs.
  • Manual exact-head CI — Validation run 36216715980 on 7153f825d completed red overall, but TCP's cross-service task ran and its job passed after the assertion correction; successful-run artifacts do not disclose per-case counts. Account's job passed with test and integrationTest restored from cache on this run, so the prior executed receipt coverage remains the stronger runtime-path evidence. Game Session again recorded seven friend/presence failures in 39 cross-service cases, owned by Constrain gameplay presence roles and redact legacy friend views #2858's stale fixture. Game Design's four baseline-migration integration NPEs remain Migrate retained Entity digest baselines to schema v2 #2875-owned; Python Ruff and the EA-3.1 dev-tool proof-row failure are outside this PR. Gateway and the other service jobs passed. No aggregate-green or merge-readiness claim is made.
  • On 86b380d0c, the combined local :account-service:check :game-design-service:check linkCheck lintMarkdown -PfullCheck --continue first found two new Game Design test-only SpotBugs issues; both were corrected, and an exact candidate :game-design-service:check -PfullCheck then passed. Account's full check, link check (0 errors), Markdown lint (0 issues), Flyway version sanity (12 sets/106 files), and diff hygiene passed. Five new Game Design gRPC unit cases and two focused Account identity unit cases executed green. The Game Design retained-row PostgreSQL case compiled but skipped 1/1; all 13 Account repository integration cases skipped locally because Docker is unavailable. Hosted execution of V29/V30 migration/readback cases is not yet proved; the exact-head manual CI run is pending. The prior seven Friends failures remain Constrain gameplay presence roles and redact legacy friend views #2858-owned, and the four baseline fixture/repository NPEs remain Migrate retained Entity digest baselines to schema v2 #2875-owned.
  • Manual CI — Validation run 36219522459 on 86b380d0c executed Account's PostgreSQL suite (49 tests, one new V29 fixture failure) and Game Design's migration suite (the new V30 test failed in standalone Flyway setup because its config omitted the shared saga migration's serviceSchema placeholder). The V29 fixture asserted a second membership it had not inserted; current head inserts it. The current head also supplies the normal Game Design Flyway placeholder. Neither failure by itself disproved production V29/V30 behavior, but neither migration/readback proof has passed yet. The same four Migrate retained Entity digest baselines to schema v2 #2875-owned Entity baseline test NPEs recurred; Python Ruff and the dev-tool contract jobs remain outside Unit 1B: tighten public admission and connect-token issuance #2873's unique patch. The run was cancelled in its long Game Session/TCP jobs after the corrected-head run was dispatched; no conclusion is inferred for those jobs.
  • Manual CI — Validation run 36220081222 on 7c6050587 executed the new Game Design retained/new-game V30 PostgreSQL migration/readback test: 1 passed, 0 skipped. Its four other integration failures remain the unchanged Migrate retained Entity digest baselines to schema v2 #2875 Entity baseline NPEs. Account integration executed 49 cases and failed only the new V29 test's final assertion: PostgreSQL rejected the UUID update with the intended immutable-identity message, but the test looked for the constraint name in the exception text. The current head asserts the observed canonical rejection message. TCP passed, while Game Session again executed 39 cross-service cases with the seven unchanged Constrain gameplay presence roles and redact legacy friend views #2858 Friends fixture failures. Python Ruff and the EA-3.1 dev-tool proof-row failure remain outside Unit 1B: tighten public admission and connect-token issuance #2873's unique patch. The run was red, not merge proof.
  • On 1938e2d74, Account and Game Design integration test sources compiled, both affected check -PfullCheck gates and formatting passed locally, and diff hygiene was clean. The focused 13-case Account PostgreSQL class and one Game Design V30 PostgreSQL case skipped locally because Docker is absent in WSL. Manual exact-head CI — Validation run 36220556058 completed red overall, but Account's hosted integrationTest task ran and its full check -PfullCheck job passed; the new V29 fixture no longer failed. Game Design again executed 15 integration cases with only the four Migrate retained Entity digest baselines to schema v2 #2875 baseline NPEs failing. TCP passed; Game Session again executed 39 cross-service cases with the same seven Constrain gameplay presence roles and redact legacy friend views #2858 Friends fixture failures. Python Ruff and the EA-3.1 dev-tool proof-row failure are inherited outside Unit 1B: tighten public admission and connect-token issuance #2873. This is executed database proof for the Account V29 path, not a green composed gate or live admission proof.
  • On exact prior 45c45900e, the combined Account and Game Design check -PfullCheck module gate passed locally after the static-analysis corrections. The new manifest verifier (2), Game Design gRPC boundary (8), and Account malformed-owner-response (1) unit cases executed green. The two new PostgreSQL migration/import integration cases compiled and were discovered but both skipped without Docker; they are not database proof. Link check (0 errors), Markdown lint (0 issues), Flyway version sanity (12 sets/108 files), formatting, and diff hygiene passed. Manual exact-head CI — Validation run 36223136885 completed red. Its Game Design V31 PostgreSQL association test executed and passed (1/1, zero skipped), while four inherited Entity-baseline tests failed on the older Migrate retained Entity digest baselines to schema v2 #2875 head. Its Account V30 import test executed but failed at fixture setup because the JDBC URL did not bind the proof schema; 25 other Account integration failures shared the migration-only client starting without TLS paths in ordinary test contexts. Both Unit 1B: tighten public admission and connect-token issuance #2873 defects are corrected at current head. Python Ruff and dev-tool checks also failed outside this unique patch.
  • At prior 07e9ac54d, the Account migration-only client/service are absent from ordinary startup and the V30 fixture preserves an existing JDBC query string when selecting its schema. A normal merge includes Migrate retained Entity digest baselines to schema v2 #2875's three baseline-fix commits at af5e197df, making that parent an exact ancestor. The combined local Account and Game Design check -PfullCheck gates passed; Account unit tests executed, but PostgreSQL cases skipped without Docker. Manual exact-head CI — Validation run 36224225068 completed red. Account's new V30 import test executed but failed during its second standalone Flyway migration because the saga SQL's ${serviceSchema} placeholder was missing; the current head supplies it to both phases. Game Design's integration task passed, though this successful job exposed no case-level artifact. Dev-tool EA-3.1, Python Ruff, and seven Game Session Friends/communication cross-service failures remain outside Unit 1B: tighten public admission and connect-token issuance #2873's unique patch.
  • At current 628b5e2d9, the combined local :common-platform-core:check :account-service:check :game-design-service:check -PfullCheck gate passed, including the dedicated peer/Job-identity unit tests; Account's PostgreSQL case again skipped without Docker. The standalone certificate, trust-bootstrap admission, hosted-controller admission, and Helm Job render contract scripts all passed; Helm lint/render, shellcheck, link check (0 errors), Markdown lint (0 issues), and diff hygiene passed. The same exact tenant-migrator Secret names, SPIFFE URI SANs, and method guard are bound across chart, certificate writer, admission policy, and Java. Manual exact-head CI — Validation run 36225067441 completed red overall. Account and Game Design integrationTest tasks succeeded on the hosted runner. Their uploaded JaCoCo XML records 136 covered instructions in Account's ApprovedLegacyTenantAssociationRepository.importApproved and 189 in Game Design's TenantAssociationMigrationService.apply; source search shows that only the respective PostgreSQL integration cases invoke those positive persistence paths. This supports execution of both paths at this head, although the workflow uploaded no named case-level test report. Game Design's V31 case also executed and passed in earlier run 36223136885. The current red jobs are Python Ruff (10 hosted-preview script findings), the EA-3.1 dev-tool executable-proof row, and seven Game Session communication cross-service cases; none are in Unit 1B: tighten public admission and connect-token issuance #2873's unique patch. An actual signed-manifest operation, served mTLS acceptance, live Job and Account↔Game Design import, and Account↔Game Session membership consumer remain unproved; no green composed gate or merge-readiness claim is made.
  • Current Account GetTenantMembershipForRuntime, GetRealmAccessGrantForRuntime, and GetTenantEntitlementsForRuntime deny even the exact Game Session peer before data access. Conditional PLAY unit proof does not establish an actionable live PLAY, JOIN_REQUIRED, or actor entry.
  • The current four-field grant check does not prove canonical lifecycle-qualified, expiring five-field grant authority. Atomic membership-version/generation issuance, durable issuer/replay/currentness, complete entitlement freshness, typed Account runtime caller/target, namespace-qualified Entity roster, signed first-party handoff, reconnect deadline/generation fencing, PostgreSQL and hosted cross-service proof remain open. In particular, Account currently has neither durable committed connect-issuance/bootstrap/fence evidence nor an independent verifier for Gateway's signed context, and it has no complete issuer/account/tenant authority generations, tenant roles, issuance fence, or canonical membership authority stream/snapshot for the permitted sequence-zero case. The provisional receipt cannot supply those fields. The Account exchange and runtime reads remain denied until producer and consumer proof is complete. Migrate retained Entity digest baselines to schema v2 #2875 owns the separate historical Entity digest-v2 baseline migration and its proof gates.

No CodeRabbit or Hosted review requested. This is a draft implementation checkpoint, not a section-closure or merge-readiness claim.

FireMUD LOC impact

Compared 513ead19624a → 6c22279fec84 (PR merge-base → head).
PR scope: 92 changed files · 8,169 added textual lines / 315 deleted textual lines.

Section Base LOC Head LOC Δ LOC Change
Overall 703,026 710,212 +7,186 +1.0%
 Source 615,078 621,583 +6,505 +1.1%
  ↳ Code 264,185 266,720 +2,535 +1.0%
  ↳ Tests 350,893 354,863 +3,970 +1.1%
 Markdown 58,512 58,568 +56 +0.1%
 Design 61,202 61,258 +56 +0.1%
  ↳ Architecture 45,052 45,087 +35 +0.1%
  ↳ Project management 5,430 5,451 +21 +0.4%
  ↳ Observability 2,147 2,147 0 0.0%
  ↳ Operator runbooks 579 579 0 0.0%
  ↳ gRPC API documentation 6,529 6,529 0 0.0%
  ↳ Product requirements and user journeys 926 926 0 0.0%
  ↳ Developer workflows 460 460 0 0.0%
  ↳ Other design 79 79 0 0.0%

Rows are hierarchical and overlapping views; do not add them together.
LOC means cloc code lines; blank and comment-only lines are excluded.

@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository YAML (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: dd8611db-8ea6-4081-bcff-6afeacadfd2e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@benhook1013
benhook1013 changed the base branch from codex/entity-digest-v2-catchup to codex/entity-digest-v1-baseline-migration September 26, 2026 02:59
@codecov

codecov Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@benhook1013
benhook1013 changed the base branch from codex/entity-digest-v1-baseline-migration to codex/entity-digest-v2-catchup September 26, 2026 23:00

Copy link
Copy Markdown
Owner Author

Pre-review complete — exact published head 36f7b61b33ea53e2614f70ed71e1e8f6088baff4 (88 files unique to #2872 a0ed6570d). This is independent preparation, not CodeRabbit taper or merge readiness.

The commissioned sweep used two fresh Luna xhigh reviews of the full #2873 unique patch (2 and 4 raw observations); the earlier three passes and their decisions are also preserved in the private review record. Deduplicated valid local findings fixed here: require positive membership authority generation; reject entitlement target/version/timestamp evidence the current proto can verify; and correct the partial-implementation status text. A proposed rejection of positive membership version on a never-joined MISSING pair was invalid under the accepted separate sequence-zero event checkpoint; the fixture remains. The earlier complete-snapshot consumer obligation remains routed to #2880: #2880 (comment).

Focused PlayCommandHandlerTest executed 69/69 green; link check 10,049 references/0 errors, Markdown lint 0 issues, and diff hygiene passed. The Java formatting task completed but marked its check skipped; no formatting-check proof is claimed from it. Local PostgreSQL/live migrator and mTLS proof remain unavailable, as do the complete Account-authenticated snapshot, cutoff/checkpoints, caller/target binding and issuance fence. Account runtime reads stay denied. Inherited #2872 formatting and architecture-doc gates remain separate. The two fresh reviewers converged on those corrected local issues, leaving no new in-scope obligation worth another identical pass at this checkpoint.

@benhook1013

Copy link
Copy Markdown
Owner Author

Pre-review complete on exact head 5e9f9050c362bb9a10741255b98d143b3aed5c5b (88 unique files against #2872 a0ed6570daa95e0d7f88c7ec39efdb09cea85bb9). Two fresh independent full-patch commissioned sweeps found and fixed the positive authority-generation check, entitlement target/time/version checks and status correction. Two additional serial full-patch Luna scans requested afterward were 0/0/0 and 1/1/0 raw/useful/routed; the P2 stale four-field private-grant authority on Account REST discovery/list/scope/cached replay is fixed here by fail-closing non-public access until lifecycle-qualified authority exists. These runs and dispositions were imported into shared SQLite and read back, with detail in the private ledger.

Proof: :account-service:check -PfullCheck passed with 327 unit cases executed and zero failures; 46 integration cases skipped without Docker. Focused Account service tests passed 137/137; links, Markdown and diff hygiene passed. The architecture-doc contract gate remains red on the untouched inherited EA-3.1 proof-row issue, routed to General/#2872. Live migration, PostgreSQL, served mTLS, lifecycle-qualified grant issuance and Account↔Game Session admission remain unproved. Account runtime membership/grant/entitlement RPCs remain disabled. The additional scans and correction have exhausted useful independent unique-patch pre-review at this head; parent reconciliation and activation proof are separate gates. This is not CodeRabbit taper or merge readiness.

@benhook1013

Copy link
Copy Markdown
Owner Author

Composed #2876-on-#2873 validation route (not a new independent review pass): normal local merge of published #2873 5e9f9050c362bb9a10741255b98d143b3aed5c5b into #2876 retains the 72 child-unique paths, but :game-session-service:test fails 23 cases—17 TextCommandInterpreterTest, six SessionResumptionFlowTest. Previously successful PLAY paths now return PLAY_REQUIRED/false after #2873's positive membership-authority-generation guard. #2876 changes neither Game Session production nor these two tests relative to that parent (only the event-vector test), so the fixture/proof correction belongs in #2873. I am preparing a bounded test-fixture fix there, then will remerge and validate #2876. The runtime Account RPCs stay denied.

@benhook1013

Copy link
Copy Markdown
Owner Author

Follow-up to the composed #2876 validation route: corrected at published #2873 head 99b55895ae5549ff3c6cbbeea9c22f9374186a6c. The 23 failures in two unchanged Game Session test classes came from both missing positive mocked membership-authority generation and fixed March entitlement timestamps outside the existing 15-second freshness window; the latter was the immediate ENTITLEMENT_UNAVAILABLE result. Their fixtures now supply positive generation and current per-test evaluation time. All 39 focused cases pass; the runtime guard is unchanged. The broader Game Session check remains red only on the separately routed inherited #2872 GameDesignClient formatting line. This is a test-proof correction, not live Account RPC activation.

@benhook1013

Copy link
Copy Markdown
Owner Author

Pre-review complete — exact published #2873 head 99b55895ae5549ff3c6cbbeea9c22f9374186a6c, 88 unique files over incorporated #2872 a0ed6570daa95e0d7f88c7ec39efdb09cea85bb9.

The commissioned two fresh Luna xhigh full-unique-patch reviewers found three deduplicated useful local obligations, all fixed. Two additional fresh serial full-patch scans requested by the user returned 0/0/0 and 1/1/0 raw/useful/routed; the latter stale legacy private-grant issue was fixed before this head. A later composed #2876 check found parent-owned stale Game Session test fixtures (not an additional broad review pass): this head supplies positive membership generations and fresh entitlement timestamps to two test classes. Their 39 focused tests pass; the production guard and disabled Account RPCs are unchanged. Further identical independent scanning has no concrete target without new parent/activation evidence; this is not CodeRabbit taper.

Account full check at the prior semantic head passed 327 unit tests, with 46 Docker-backed integration cases skipped. On the current fixture head, Game Session full check executed unit tests without reported failures but stopped on the inherited #2872 GameDesignClient Spotless line already routed to General. The inherited EA-3.1 doc-contract failure and current-parent reconciliation also remain open. No live PostgreSQL, served mTLS, Account/Game Session admission or private-grant proof is claimed. No CodeRabbit/Hosted review was requested; this is not merge readiness.

@benhook1013

Copy link
Copy Markdown
Owner Author

General pre-review route from #2898 (published head 721180e): design/architecture/system-architecture-authentication.md still says the live Account adapter has no membershipLifecycleState and that text PLAY uses only the older four-field snapshot. #2898 now consumes lifecycle/generation/version and fresh entitlement before public JOIN guidance. This file is in your #2873/#2876 active scope, so I am leaving it untouched; please adjudicate the current-status correction here or retarget it to #2898 after your branch is stable. Full first-party Join & Play and live end-to-end proof remain open.

@benhook1013

Copy link
Copy Markdown
Owner Author

Incoming independent pre-review route from #2880 (published 7a74647): live Account REST connect-token issuance still uses the legacy scalar membership row rather than the proposed complete one-snapshot tuple/checkpoint/source evidence. The #2873 Account issuance tracker already names the missing current-authority reread. Game Session's runtime membership RPC remains denied, so this is an activation gate rather than a proved live PLAY bypass. Please preserve the owner obligation when that issuance path is completed. Source: #2880

@benhook1013

Copy link
Copy Markdown
Owner Author

Pre-review complete on exact published head 3bd23a2bc02bb03cc92b752f4c49e51b9f5b14ee (88 unique files over #2872 9e250a9d6). Two additional fresh whole-unique-patch Luna xhigh passes: 4 raw/0 new local accepted/1 routed, then 6 raw/3 accepted local/0 routed. The three local findings are fixed: positive proof fixtures use fresh timestamps/generation, Account API status correctly says non-public issuance fails closed, and duplicate retained Game Design tenant keys return FAILED_PRECONDITION. Membership freshness was already routed and fixed in #2880. Incomplete entitlement/private-grant authority remains named activation work; Account runtime RPCs still deny before data access.

Exact composed Account, Game Design, Game Session, common-test-support checks, links and Markdown passed: 327 + 279 + 1,689 Game Session unit + 18 Game Session integration + 1 Game Session cross-service + 43 common tests executed, zero failures. Docker-backed cases skipped locally (46 Account, 21 Game Design, 17 Game Session unit, 122 Game Session integration, 39 Game Session cross-service); the affected WebSocket class itself skipped, so live positive proof is not claimed. Signed migration/Job/mTLS/import, PostgreSQL, full grant/entitlement and membership producer-consumer proof remain gates. Both passes and dispositions were imported/read back in shared SQLite and the private ledger. No further identical pre-CodeRabbit scan has an unresolved #2873-local target after these corrections; this is not CodeRabbit taper or merge readiness. No Hosted/CLI review or merge was requested.

@benhook1013

Copy link
Copy Markdown
Owner Author

Pre-review complete — exact head 6c22279fec84636653d5b38b37505747651a7c18, parent #2872 513ead19624af3fa371af7172c760bace964e8d9, 92 unique files.

All four commissioned independent whole-unique-patch rounds and necessary surrounding-context coverage are complete and recorded/read back in the shared controller: 10 raw, 9 accepted (3 Major, 5 Minor, 1 Trivial), 1 rejected. All nine accepted findings are fixed/resolved. The final whole-boundary pass at efb6e9433 found one Major; its failed earlier launch gives no credit. No additional pass is authorized, and this productive last pass is not described as dry or provider taper.

Final correction: Account evidence/import and Game Design preflight/apply use separate fixed required database Secrets with no shared/optional fallback. Connected-role checks reject absent, unverifiable, wrong or opposite-mode identity before owner/evidence work. Helm positive/negative proof and nine runner methods preserve existing certificate, namespace, scheduler/listener/Temporal and Flyway denial boundaries.

Local proof: both service full checks, both boot JARs, enabled formatting, Checkstyle/SpotBugs, links and Markdown passed (106 tasks:40 executed/66 up-to-date); 787 passing unit cases and 81 Docker-skipped PostgreSQL cases, zero failures/errors. Both focused migration-Job Helm contracts, ShellCheck and diff hygiene passed. CI and deployment proof are separate: no green-required-CI or live activation claim.

Live provisioning remains gated on four minimal roles/Secrets, authenticated effective-grant and deny/readback proof, exact deployed migration history and database evidence. Connected username/Helm tests do not prove live grants; fresh images, served certificates and protected operation execution remain unproved. No external-owner finding was invented or accepted into this source pass.

Delegation: fresh Luna XHigh final whole-boundary reviewer; retained Luna Account and documentation helpers performed bounded same-domain edits/proof. General inspected every returned diff, adjudicated and integrated the correction, and ran the final consolidated gate. This is pre-CodeRabbit preparation only, not Hosted/CLI taper or merge readiness.

@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Validation Summary

❌ One or more validation checks failed

  • ❌ Validation gate: failure
  • ✅ Buf generation: success
  • ✅ Dockerfile lint: success
  • ✅ ShellCheck: success
  • ❌ Python script validation: failure
  • ❌ Dev tool contract checks: failure
  • ⏭️ Dev Tools README contract: skipped
  • ✅ YAML lint: success
  • ✅ Metrics cardinality policy check: success
  • ✅ Flyway migration sanity checks: success
  • ✅ gRPC transport configuration sanity checks: success
  • ✅ GitHub workflow lint: success
  • ✅ Helm chart lint: success
  • ✅ Helm render validation: success
  • ✅ Helm transaction proof: success
  • ✅ Validate Documentation: success
  • ✅ Frontend checks: success
  • ❌ Service build/test matrix: failure

Coverage reports and failure logs are available in the workflow artifacts.

@benhook1013

Copy link
Copy Markdown
Owner Author

Retiring this donor into the consolidation stack. Its whole original scope (2eb191b3 over 513ead19, 103 paths) is accounted for in develop and the published receivers, top #3442 0d60acbf3621bf41d85a1fccc8df46d55dd3a105.

Component here Receiving successor Disposition
Account UUID bridge Present in develop Carried
Game Design canonical tenant UUID and identity RPC Develop GD V29/V30 and TenantIdentityGrpcService Carried (renumbered)
Four-mode legacy tenant-association Jobs, per-mode Secrets, JDBC-user fences, signed manifest, runners, Helm Jobs Not ported: ADR 0185 (no pre-v1 data carry-over, #3514) forbids old-to-new mappings Superseded
Provisional JOIN and reactivation receipts Canonical V37 to V39, V1037/V1038, AccountCanonicalFirstJoinTerminalCoordinator Superseded
Connect-token eligibility and realm-grant denial Canonical connect-scope consumers, V1050/V1051 fence and receipts, lifecycle-bound realm grants Superseded (jti removal carried)
PLAY denial codes, CI guards, fixtures, docs Present in develop Carried

No review threads. The branch stays because #2876 is based on it.

@benhook1013
benhook1013 deleted the codex/unit-1b-pre-v1-implementation branch November 30, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant