Skip to content

Unit 1B: canonical Account UUID propagation through shared JWT callers - #2969

Closed
benhook1013 wants to merge 6 commits into
codex/unit1b-management-owner-uuidfrom
codex/account-uuid-jwt-propagation
Closed

benhook1013 wants to merge 6 commits into
codex/unit1b-management-owner-uuidfrom
codex/account-uuid-jwt-propagation

Conversation

@benhook1013

@benhook1013 benhook1013 commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Boundary and approved stack

Exact candidate dd0b182d436d18e483ef9d85b403e893fe84dc8e, 63 unique files, stacked on #2929 ce057022f48137b861025a47795640a90a4a82de.

Approved order: #2929 profile/management-owner front → this complete JWT-propagation child → #2932 gameplay carriers → General Social UUID child. Document owns #2932 reconciliation; its branch is untouched. This is the complete shared-auth repair routed from #2923, not a second broad review programme or a gameplay-carrier rewrite.

Change

  • Ordinary JWT sub and accountId carry the exact canonical non-nil Account UUID unchanged through claim validation, session identity helpers and gRPC forwarding. Reject numeric, nil, uppercase/noncanonical, whitespace-normalized, array and other non-string values, and reject subject/claim mismatch.
  • Account-free internal workload JWTs omit accountId. An internal flag cannot discard a present malformed account identity. Callback completion/cancel/error cleanup remains proved; malformed internal identity denies before dispatch and clears prior context.
  • Automation and Logging actor adapters retain the UUID string instead of converting it to a private numeric key. The complete affected Account, Game Session, Social, Automation, Logging, Gateway, Entity, Game Design and World fixture/caller set is carried together, with explicit synthetic UUIDs rather than aliases.
  • Until downstream storage/carriers converge, Game Session's numeric presence self-service and Social's numeric self-service remain fail-closed; genuine existing tenant-role access is preserved. Social sender-bound mail returns unavailable before service dispatch even for tenant administrators. This containment is unfinished functionality, not positive Social UUID delivery.
  • No SQL, retained row, private-key mapping, gameplay controller identity or tenant identifier is rewritten. No numeric helper compatibility overload, guessed mapping or derived UUID exists.

Proof

Final consolidated ten-module full checks, Account/Game Session/Social boot JARs, links and Markdown pass: 357 tasks, 17 executed / 340 up-to-date. Enabled Java formatting and static analysis passed in the corrected component/consolidated gates; diff hygiene is clean.

Common Security's immediately preceding corrected full check freshly ran 122 cases, zero failures/errors/skips (34 tasks, 10 executed / 24 up-to-date). These include exact UUID forwarding, malformed and contradictory claims, true account-free internal workload positives, malformed-internal negatives and callback cleanup.

The final consolidated gate reused the preceding service executions; it is not all-fresh evidence. XML aggregates (cases / skipped / failures+errors): Account840/178/0, Game Session2463/207/0, Social117/16/0, Automation1279/88/0, Logging233/14/0, Gateway210/0/0, Entity210/4/0, Game Design410/51/0, World167/11/0. Account negative fixtures distinguish malformed/numeric authentication (401) from a different valid UUID's denied authority (403), with zero dispatch. Logging integration compilation no longer depends on a unit-source-set helper.

Inherited Account fixture correction

The exact #2932 composed CI 37181984029 exposed inherited Account fixture defects. 5f816e28b corrects two namespace fixtures to canonical UUIDs and supplies the migration fixture's actual serviceSchema plus a valid-length username. Only three test paths changed; production guards, published migrations, retained-row/ciphertext and concurrent-writer assertions remain unchanged.

run-locked-gradle.sh :account-service:spotlessApply :account-service:check :account-service:bootJar -PfullCheck passed (67 tasks, 13 executed / 54 up-to-date). All 178 PostgreSQL integration cases compiled but skipped locally without Docker; this is not corrected database execution or proof that all 58 inherited CI failures are resolved. Document owns propagation into #2932. Ordinary exact-head CI and database recovery proof remain separate.

Executed Account runner follow-through

Exact CI37184729393 on 5f816e28b5fe135e0116bb9ca3d81476f79b129f executed182Account integration cases with15failures and0skips (down from58). a276d937f corrects the three failing fixture suites: isolated JDBC schema search path; clearing next_attempt_at for COMMITTED audit evidence; typed changed-policy denial; and Spring-translated append-only constraint exceptions. Production code, published SQL, retained-data/ciphertext assertions and no-mutation checks are unchanged.

Corrected local Account formatting/check/JAR passed67tasks(13executed/54up-to-date). All178 locally discovered PostgreSQL cases compiled but skipped without Docker;662unit results were reused, with zero failures/errors/skips. Corrected-head database execution remains required. Aggregate CI also failed inherited Python, Gateway documentation, Game Design and TCP work, not claimed fixed here. Document owns propagation into #2932.

Final Account fixture follow-through

CI37186939305 executed 182 Account integration cases with four failures and zero skips; all six Account UUID migration cases passed. dd0b182d4 corrects only two inherited test files: a genuine owner LEFT precedes reactivation and advances receipt/authority sequences; referenced scope deletion is refused with exact unchanged scope/operation readback; recovered success retains its prior reconciliation diagnostic. Append-only denials and expired-scope PENDING/readback-only behavior remain asserted. Production and published SQL are unchanged.

The corrected Account formatting/check/boot-JAR gate passed (67 tasks, 13 executed / 54 up-to-date): 662 unit results passed/reused, 178 local PostgreSQL cases compiled but skipped without Docker. Corrected PostgreSQL execution is not yet claimed. Document owns #2932 propagation, after which #2976 will run explicit strict suite/case proof on the combined candidate.

Review history and limits

The originating #2923 Major route is 293f50146195d3bffe17e0d94097b847addffb16ef8b9e3928c1406b9340f537; it moves here with published proof, without changing source review counts. #2929's five pre-review rounds and all accepted fixes remain in its front/history. These bounded implementation/proof helpers are not new independent passes and grant no CodeRabbit taper.

The distinct Social Major route 4bb1cbdc170088d795dc6a5a38c8e9c269149fd2356271ebbbdc43eb925b2b06 remains a General implementation obligation for the coherent Social child after #2932. That child must converge the six account-bearing tables, storage/APIs, exact Account profile response/bulk identities and affected consumers, preserving all published migrations and refusing nonempty affected tables under the complete concurrent-write fence. Existing friend privacy/redaction and removed Gateway routes remain authoritative.

Local Docker/PostgreSQL and fresh-image/live identity/consumer activation proof are unavailable. Skipped cases do not prove database behavior. Exact-head CI, provider review and #2932 reconciliation are separate gates; runtime membership/catalog/credential activation remains denied. No CodeRabbit requested, merge, auto-merge or merge-readiness claim.

Executed corrected PostgreSQL proof

Exact CI37189893390 completed on Logging child a975fb45c1aedfe62a3806274912e7f58333b3b6, containing Social e7602392688174dec01c0b1961642d14fdc1ff10 and owning Account correction dd0b182d4 through the exact carrier parent. The Account, Social and Logging jobs passed. Strict JUnit inspection proved 71 targeted PostgreSQL cases executed, with zero skips, failures or errors:

  • Account job111399761822: JOIN40, reconciliation12, storage migration6; all required named cases passed, including real LEFT→reactivation, exact expired-scope recovery, guarded scope-deletion refusal, fresh/empty storage and concurrent-writer refusal.
  • Social job111399761681: migration8, covering fresh/empty success, all six retained-table refusals and concurrent writer; required named cases passed.
  • Logging job111399761658: migration5; fresh schema, empty V5 upgrade, both retained-data refusals and concurrent writer all passed.

Aggregate Validation still failed on inherited Game Design, TCP Proxy, Python and dev-tool checks; Game Session was cancelled. Documentation and Gateway jobs passed. Document #2933 owns the assigned Game Design/Gateway/TCP corrections and final descendant composition, while Gameplay owns the Python capture repair. These failures are not waived or misrepresented as green required CI. Local skipped/reused evidence above remains historical; this runner supplies the specific executed database proof, not fresh-image, live identity/consumer activation, real recipient delivery or provider-review proof. No CodeRabbit was requested and no review/taper credit is claimed.

FireMUD LOC impact

Compared ce057022f481 → dd0b182d436d (PR merge-base → head).
PR scope: 63 changed files · 972 added textual lines / 404 deleted textual lines.

Section Base LOC Head LOC Δ LOC Change
Overall 761,757 762,266 +509 +0.1%
 Source 672,680 673,187 +507 +0.1%
  ↳ Code 287,293 287,314 +21 +<0.1%
  ↳ Tests 385,387 385,873 +486 +0.1%
 Markdown 58,790 58,792 +2 +<0.1%
 Design 61,474 61,476 +2 +<0.1%
  ↳ Architecture 45,157 45,157 0 0.0%
  ↳ Project management 5,597 5,599 +2 +<0.1%
  ↳ 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 Oct 4, 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: dbc7e59e-6e62-481f-aee7-4c1da49f2162

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

Copy link
Copy Markdown
Owner Author

Receiving-owner disposition: source #2923 route 293f50146195d3bffe17e0d94097b847addffb16ef8b9e3928c1406b9340f537 is accepted/fixed at783dd1ea6bcd3b76cae474a032f0a551066a00ee. Source link: #2923 (comment) . Complete60-file JWT/caller/fixture boundary passes122fresh Common cases and final ten-module checks/JARs/docs; controller retarget/resolution/history and configured #2929→#2969→#2932 order are read back. These implementation/proof continuations are not independent review rounds or provider taper. Document has the exact #2932 parent handoff; Social UUID child, skipped database/fresh-image/live and exact-head CI proof remain separate.

@benhook1013

Copy link
Copy Markdown
Owner Author

#2932 exact composed head 5aca20ad5e8ae5809f8c23c44d8cf6e6da49c8de CI37181984029 executed 182 Account integration cases: 58 failed, none skipped. The focused UUID checks passed, but broader Account proof did not.

The bounded origin check routes two concrete inherited fixture issues to this owning Account parent. Its owner should adjudicate and record their fix or retarget; Document has not changed #2969.

  • AccountJoinPostgresIntegrationTest and AccountJoinReconciliationPostgresIntegrationTest retain join-proof-namespace and join-reconciliation-namespace. Parent commit 2c451bc48 correctly requires canonical namespace UUIDs; these positives now fail before JOIN work. Align the fixture constants throughout realm/pointer/context evidence, preserving the ingress guard.
  • AccountConnectStorageUuidMigrationIntegrationTest, introduced by 6f60c7b12, omits the serviceSchema Flyway placeholder and creates a 51-character migration-user-<UUID> username against VARCHAR(50). Supply the actual fixture schema and shorten only the test-only prefix. Preserve retained evidence, the empty-storage migration guard and concurrent-writer assertions.

All three paths are byte-identical to published #2969 783dd1ea6bcd3b76cae474a032f0a551066a00ee and not part of #2932's unique patch. Artifact11295442808 supplies actual Gradle HTML failures, not raw XML. These are deterministic fixture defects, not a flaky disposition or successful PostgreSQL proof. Please publish the owning correction there or explicitly hand off its placement; Document can then propagate it without rewriting history.

@benhook1013

Copy link
Copy Markdown
Owner Author

Follow-up to the inherited fixture route: composed #2932 exact 8b82668 CI37184732457 executes Account integration182/15fail/0skip after your5f816 corrections (previous58fail). HTML report evidence, not rawXML: JOIN40/2fail (failedJoinReplaysStoredOutcomeAndRejectsChangedPolicyDigest expected AuthenticationException but none; append-only negative expected jOOQ DataAccessException but actual Spring DataIntegrityViolationException with real trigger denial), reconciliation12/8fail (sample fixture UPDATE violates account_audit_outbox_retry_state_check), UUIDstorage migration6/5fail (sample missing issuance/envelope relations, plus PostgreSQL postmaster-exit logs requiring cause adjudication). These are not declared flakes or repaired. Please adjudicate the remaining owning fixture/proof boundary; exact artifact details continue under the sole watcher. Source patch remains byte-identical; Document has not changed parent code.

@benhook1013

Copy link
Copy Markdown
Owner Author

Remaining exact-carrier CI findings, routed to General in controller inbox 002fb8bb-cc34-4d0d-a741-f214ccda5266: run37186568704 on #2932/a1d6 executes JOIN40/1failure and reconciliation12/3failures (zero skips); UUID migration6/6 now passes. The receipt test manually sets membership INACTIVE without the canonical event transition; the absent-scope fixture deletes a referenced FK row; two recovered-success assertions expect a cleared prior diagnostic. Please adjudicate the owning fixtures/contracts without weakening authority, retention or replay guards. Counts are uploaded Gradle HTML/log evidence; broad raw JUnit XML was not captured.

@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
benhook1013 marked this pull request as draft October 28, 2026 12:41
@benhook1013
benhook1013 deleted the codex/account-uuid-jwt-propagation branch November 28, 2026 04:01
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