Repository navigation
Unit 1B: canonical Account UUIDs for profiles and session ownership - #2929
benhook1013 wants to merge 15 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
Routed from #2923 at As target owner, General verified this is already implemented here at |
|
Provenance / later reconciliation: the Account registration DTO and local-export UUID slice from preserved source commit #2929's profile UUID and Game Session management-owner UUID functionality remain here; they were not transferred into #2965. When reconciling this source PR onto the new foundations, deduplicate only the brought-forward slice and preserve the stronger profile/owner UUID validation, PostgreSQL fixture repair |
|
Scope amendment by Overseer: #2929 now owns the two Major routes from #2923 for canonical Account-UUID shared JWT helpers and Social profile request/response/storage convergence. Controller targets/acceptance are recorded; no claim of completed fixes or live activation. Retained rows, tenant/private-row/character/session distinctions and replacement containment must survive. General will return the concrete remaining Social scope and proposed cut before creating another PR if a complete repair cannot remain coherent here. Document received the separate #2932 carrier contract handoff. |
|
Approved topology correction: finish shared canonical Account-UUID JWT convergence and explicit unfinished numeric-caller containment here; complete Social UUID storage/APIs/affected consumers belong in a General-owned child after #2932, not an AccountClient-only numeric alias here. The existing Social controller route will transfer to the actual child PR once created; #2923 historical source counts remain unchanged. Published migrations and all retained rows stay preserved, and unproved retained numeric-to-UUID cutover must refuse before changes. |
|
Review scope changed: the approved complete shared-JWT UUID follow-up now belongs to #2969 at 783dd1e (60files). #2929 retains its profile/management-owner boundary at ce05702 (63files), with all prior paths/fixes and byte-identical owner migration preserved. Original five-round counts remain historical evidence for that front; the extraction/focused gates add no provider taper. Social UUID convergence remains General-owned after #2932. Proof and activation limits are in both current bodies. |
|
Pre-review complete — published ce05702 / parent #2923 699a25e,63files. All five assigned independent whole-original-unique-patch Luna XHigh passes are complete:5raw/4accepted(1Major,3Minor)/1duplicate. All accepted fixes and52original paths survive; last pass was useful, not dry. Later own-parent/run-owned adapter integration received focused proof, not another independent discovery pass. Clean full front gate166tasks;2253fresh Game Session unit cases(17skips), reused Account/Common reports, JARs/docs/actionlint/ShellCheck/capability/Flyway145/CI-scope23/SQL-byte/no-loss/hygiene proof are in the current body. Shared-JWT follow-up is fixed/resolved in #2969; Social follow-up remains accepted General work after #2932 (source route/history: #2923 (comment)). PostgreSQL current-head, deployed-history/writer fencing, fresh-image/live activation, phased replacement and provider/exact-head CI gates remain separate. No further discovery is assigned; no claim of dry taper, CodeRabbit credit or merge readiness. |
|
Gameplay extraction coordination: #2973 at d2e9331 brings forward the bounded Game Design→Game Session signed retained-tenant association from preserved source 67dd8be. It adapts the actual current GS management-owner/snapshot schema (v3), preserves exact signing domains, immutable owner receipt, closed retained snapshot, local lock/readback transaction and focused failure/race proof. It does not import the entire Account/profile/transport patch or invent an owner UUID. Account registration/export is already tracked in #2965; the Account UUID gameplay carriers are #2972. Additional #2929 functionality remains owned here; reconcile it onto those foundations without losing stronger UUID denial, provenance or tests. Composed focused tests/codegen/integration compilation/format/docs passed; local PostgreSQL execution was unavailable Docker-off. This is extraction coordination, not a routed finding. |
Validation Summary❌ One or more validation checks failed
Coverage reports and failure logs are available in the workflow artifacts. |
|
Retiring this donor into the consolidation stack. Its whole original scope (
No review threads and no open PR uses this branch. |
Current profile / management-owner checkpoint
Published
ce057022f48137b861025a47795640a90a4a82de, on exact #2923699a25e022c9224d24b7a491ee4ab1d4a67f22f2, 63 unique paths. This preserves all 52 previously published paths and every accepted correction. The owner migration is renamed V10 → V10.1 with byte-identical contents to avoid the parent's launch-ledger collision; all 95 incoming Account, Game Design and Game Session SQL files are unchanged.Approved scope and stacking
Order: #2929 profile/management-owner front → #2969 JWT propagation → #2932 gameplay carriers → Social UUID child. Shared JWT helpers, their complete affected caller/fixture set and explicit legacy containment are published together at #2969
783dd1ea6bcd3b76cae474a032f0a551066a00ee,60unique paths, with122fresh Common Security cases and a passing ten-module full gate. The originating JWT route is retargeted/resolved there; source counts are unchanged. #2932 belongs to Document and is not edited here. Social storage/APIs/consumer convergence is a later General-owned child after #2932, not part of this front.This front retains exact persisted Account UUID profile input/output/readback, canonical management ownership, retained numeric evidence without a fabricated mapping, version-2 retained snapshots, no-mutation profile negatives and replacement containment. Run-owned Compose fixtures now use explicitly synthetic canonical UUIDs without claiming Account provenance. Existing sessions survive replacement denial before candidate/session/IP mutation; normal initial admission and proven replay remain.
Current local proof
The clean front's full Common Security / Account / Game Session gate, both service boot JARs, links and Markdown passes 166 tasks: 18 executed / 148 up-to-date. Game Session unit tests ran fresh: 2,253 cases, zero failures, 17 skips. Reused results: Common Security 115 unit cases and Account 661 unit cases; Account 178 integration cases skipped, Game Session 173 integration cases (155 skipped) and 36 cross-service cases (35 skipped). This is not all-fresh test evidence and the skipped database cases provide no PostgreSQL proof.
The sequential-login fixture now reflects actual persisted context after switching subjects and asserts the new subject's absent locale, rather than retaining stale subject/routing state. No login runtime guard was weakened. Both packaged migration sets remain present, including the distinct launch-ledger V10 and owner V10.1.
Actionlint, ShellCheck, the run-owned initial-admission capability contract, all 23 CI-scope tests, Flyway sanity (12 sets / 145 versioned files), SQL byte-preservation, ancestor/original-path checks and diff hygiene pass. Final native proof emitted non-fatal configuration-cache diagnostics; no validation task failed.
Review and activation limits
All five commissioned broad Luna XHigh passes remain 5 raw / 4 accepted (1 Major, 3 Minor) / 1 duplicate, with all four accepted fixes preserved. Extraction and focused proof add no discovery, CodeRabbit or taper credit. Eventual provider review and exact-head required CI remain separate.
PostgreSQL owner guards/locking/snapshots/profile readback, deployed Flyway history, mixed-version writer fencing, fresh-image boot and authenticated live consumer/activation proof still require execution. Phased replacement remains unfinished; runtime membership, catalog and credential paths remain denied. Historical source-component database successes below do not prove this newly composed head.
Preserved prior scope, review history and source-head proof
Current General pre-review checkpoint
Published candidate
7afcd7e76adb94fbbaad06eab12f61ccc0a0b753, on exact own #2923aceddfff3a53bc7547fe5862c7a6b35ba2d202d5, 52 unique paths. Parent forwarding through General's newly published fixes remains a separate gate; this checkpoint does not chase Gameplay's active front.All five assigned independent whole-boundary Luna XHigh rounds are complete in controller records: 5 raw / 4 accepted (1 Major, 3 Minor) / 1 duplicate. All four accepted corrections are now implemented. The final Minor was an existing replacement/index choreography flaw, not a newly introduced regression; Overseer approved containment rather than expanding this pre-review fix into the phased protocol.
Approved replacement containment
When the authorized same-owner lookup finds an existing
RUNNINGsession, gRPCstartSessionreturnsSESSION_REPLACEMENT_UNAVAILABLEbefore IP admission/reservation, candidate start, repository writes or old-session teardown. The old RUNNING identity/state is unchanged; no candidate is created. Missing, empty or whitespace IP cannot bypass containment. Ordinary initial admission, failed-registration tentative cleanup and separately proved lifecycle/replay paths remain unchanged.The owning player-access tracker records phased candidate reservation, verified World activation, reversible IP reservation and atomic cutover as unfinished implementation work. There is no early stop of the old runtime, live replacement enablement, identity invention or migration/index weakening.
Focused correction proof
The locked native correction gate passes 110 freshly executed unit cases: GameSessionGrpcService49, GameInstanceServiceImpl55 and IpConnectionLimiterImpl6, zero failures/errors/skips. Seven replacement-denial cases cover the former preflight/transfer/teardown-failure/reservation-failure paths and missing/blank IP, with exact old RUNNING identity, empty response session ID, repository-read-only and zero session/IP collaborator interactions.
Enabled Java formatting/checks, main/test Checkstyle, Game Session boot JAR, links, Markdown and diff hygiene pass (106 tasks:21 executed/85 up-to-date). This is focused proof, not a fresh whole-module test run or fresh-image/database proof. The original three-module proof and all prior review findings remain preserved below; subsequent own-parent reconciliation requires affected validation.
PostgreSQL/live uniqueness and phased cutover remain unproved. Eventual provider review, exact-head CI, live deployment and activation are independent gates. No CodeRabbit, taper or merge-readiness credit.
Preserved historical checkpoints and implementation evidence
Current General pre-review checkpoint
Published
070b286db360b7a32801fce81b5cf30bc8b0f194on exact own #2923aceddfff3a53bc7547fe5862c7a6b35ba2d202d5, 52 unique paths. All52 original paths and their unique capability/proof survive. The 20 incoming parent paths retain its exact tuple closure, client/error-classification negatives and protected materializer behavior; five existing child paths carry the accepted owner containment. No other owner's original worktree was edited.All five assigned fresh independent whole-boundary Luna XHigh rounds are complete and recorded: 5 raw /4 accepted /0 routed /1 duplicate (1 Major,3 Minor accepted). Each covers the whole unique patch and changed tests/fixtures. Three accepted corrections are published: retained-owner containment, seed-status clarity and profile transport-error proof. The final Minor is an existing gRPC replacement/uniqueness choreography defect, not a newly introduced regression. A repeated Social profile observation was withdrawn as already-recorded parent drift. No additional discovery is assigned.
The replacement correction is pending an Overseer scope decision. Simply stopping the old runtime before candidate creation would satisfy RUNNING uniqueness but violate the established guarantee that it survives failed candidate/IP admission. Recommended containment blocks replacement before candidate mutation until a phased reservation/cutover protocol is proved; that containment is not yet implemented. This candidate therefore has one accepted unresolved obligation and is not at final handoff.
The start owner transaction locks unresolved tenant rows whose status is not exact STOPPED, then rejects before replacement/insert/Redis/World work. Restart rejects missing/noncanonical owner identity before mutation. This conservative containment does not claim which Account owns a historical row. Stop/readback/pre-termination compensation retain raw numerical evidence. V10 remains unchanged. Old numeric-owner binaries can still insert/reactivate rows, so deployment must quiesce/fence those writers before enabling the path; the row locks alone do not prove mixed-version safety.
Focused owner proof executes55 service and4 repository unit cases without failures/errors/skips; both PostgreSQL migration/row-lock cases compile/discover but skip without Docker. The combined Common Security/Account/Game Session full checks, Game Session boot-JAR, enabled formatting, links/Markdown and hygiene pass: 164 tasks,43 executed/8 cached/113 up-to-date. Parsed XML contains2788 cases,353 skipped,zero failures/errors; cached/up-to-date evidence is not all fresh. The historical seeder test and64 fresh Account profile RPC cases remain separate attributable proof. Published corrections have controller source resolutions/history read back. The incoming #2923 profile-output route is separately verified/resolved against existing child code and proof at this head; it required no duplicate edit and does not change source review counts.
All assigned rounds are complete, but the final replacement obligation remains open. PostgreSQL guard/locking/readback execution, retained-data deployment, authenticated caller/consumer and live/runtime provisioning, current-head required CI and eventual provider review remain separate gates. No live activation, CodeRabbit request, taper or merge-readiness credit is claimed. Later own-parent alignment is separate from this pinned pass.
Preserved scope and historical proof
Earlier scope and base
Coherent Unit 1B canonical Account identity correction, stacked on exact #2923
c8444bb1af61ac1d3682b15af7573d7f15a453ff. This is an implementation checkpoint, not Unit 1B completion or merge readiness. No CodeRabbit/Hosted review is requested.Published candidate:
67dd8be6b3ef9d886e4b1dd26ec719cf9e29e4b3, 51 unique files. A normal merge imports #2923's fail-closed legacy grant mutation correction and preserves the profile/management-owner boundary. Both overlapping Account implementation/test unique patches retain identical stable patch IDs (e938c3f782985a68fc5657228f741c1f67262580and4904caf8783bbd2a28bbb62fac35a26caf87f6c2); only the seven incoming correction paths change relative to preservedbfca5cebb. The published profile/migration/snapshot PostgreSQL CI evidence below remains pinned to source96fb1b803d4dd1c6a3cc8f39bda91ae537e25bb6, not this newly composed head. The worktree is/home/ben/src/FireMUD-unit1b-management-owner-uuid, branchcodex/unit1b-management-owner-uuid.Local validation
The corrected cumulative Account/Game Session/Common Test Support full checks, both service JARs and documentation passed164tasks(29executed/135up-to-date). Account517unit cases newly executed without failures/errors/skips, including the valid-request no-mutation grant correction; all161Account PostgreSQL cases skipped without Docker. Game Session/shared-support test tasks were up-to-date from their preserved source proof, not new executions. Final evidence wording passed links/Markdown3tasks(2executed/1up-to-date) and hygiene. Exact new-head runner and fresh-image proof remain unexecuted. The following initial identity-boundary local evidence is historical.
Composed Account/Game Session/Common Test Support full checks, both service JARs, formatting, Checkstyle, SpotBugs, JaCoCo and documentation passed: 164 tasks, 28 executed / 136 up-to-date. Account 514 unit cases and Game Session 1,770 unit, 18 non-PostgreSQL integration and one cross-service case executed without failures/errors in the preceding same-code run; final unit and Game Session test tasks were up-to-date, not fresh executions. Shared 43 unit results were reused.
Without local Docker, all 161 Account PostgreSQL cases skipped; Game Session skipped 17 unit, 135 integration and 33 cross-service cases. The new migration, changed-owner snapshot and two profile PostgreSQL cases compiled/discovered but have not executed locally. Actionlint, 23 CI-scope contracts, Flyway sanity (12 migration sets / 128 versioned files), links, Markdown and diff hygiene passed. Current-head runner evidence will be recorded separately.
Parent integration corrected two obsolete cross-service stub DTOs, a misused typed jOOQ test readback and nullable test dereferences without weakening assertions, UUID checks or lifecycle guards. These implementation helpers are not independent corpus review cycles or CodeRabbit taper credit.
Exact-head runner evidence and corrections
Source
73e19d7f8e74f8fa684c56ca0139ddac0751d31eCI36909989685 completed aggregate FAILURE. The V10 management-owner migration case executed once and passed strict PostgreSQL proof; the four-case retained snapshot suite passed with zero skips/failures/errors, including changed-owner digest binding once. These successes are source-component proof, not a green complete candidate.Both new Account profile cases executed but failed during creation: artifacts prove usernames exceeded
VARCHAR(50), not a profile identity assertion failure. The Game Session cross-service task failed 34/35 cases because the shared fixture bound a UUID column ascharacter varying. The corrected head shortens test prefixes while retaining full random UUID suffixes and binds an actual JDBC UUID with a focused assertion. Assertions, production semantics, retained history and activation gates are unchanged.The corrected full Account/Game Session/shared-support checks and both JARs passed162tasks(36executed/126up-to-date); final docs passed3tasks(2executed/1up-to-date). PostgreSQL still skipped locally. Exact corrected-source CI36912843232 completed aggregate FAILURE but strictly proved all four requested PostgreSQL cases, each executed once with zero skips/failures/errors. Account's UUID suite14, the retained snapshot suite4 and owner migration suite1 all passed. The Account creation and Game Session typed-bind fixture failures did not recur: cross-service tests reached16CommunicationWebSocket behavioral assertion failures before cancellation, with no BadSqlGrammar in the emitted logs. That run has no Game Session report artifact, and emitted logs do not expose expected/actual responses, so a precise failing stage or introducing owner cannot be established. The unpublished carrier's separately confirmed numeric Account stub/fixture mismatch is corrected and locally validated; it is not credited as a fix for these exact CI assertions. Other Python, shared dev-tool and module aggregate failures remain open. Final documentation-only evidence/observation recording passed links and Markdown (3tasks,2executed/1up-to-date) plus hygiene. The JDBC binding lesson and artifact-download incident are recorded in the existing AI observations file; corrected-source fixture execution is confirmed, not broad Game Session or aggregate success.
Remaining proof and activation gates
Runtime membership RPC, credential/context paths, catalog activation and the response-envelope ring mount remain denied/unpublished. This patch does not implement complete Account-authenticated operator reference/digest/result authorization, tenant-qualified/delegated profile routes, Social Groups' numeric profile/presence callers, complete export semantics or full gameplay session/presence UUID carriers. The separate gameplay carrier is clean at
05313dc921aafe4b09b9c2b2649b2097bdc9892d, normally incorporates this exact published head and contains115unique files (32production,73tests,8fixtures,2docs). Its complete unique services/protos patch retains stable patch ID3c1e7ccb70b1f8256a70044afbcb90e2a7acd885across the parent merge. Final composed four-module checks, three service JARs and docs passed218tasks(27executed/4from-cache/187up-to-date),517Account unit cases freshly executed;161Account PostgreSQL skipped, other modules' tests up-to-date. Final evidence docs3tasks(2executed/1up-to-date) and hygiene passed. Earlier synthetic Account/Entity fixture proof remains attributable to its preceding corrected code; PostgreSQL and most Docker cross-service cases remain skipped. Production Game Logic/Social sender authority/storage and Entity actor-owner lookup remain separate consumer/data prerequisites. The carrier is unpublished pending explicit cap/review treatment; no oversized candidate is published here.Fresh-image boot, wider composed CI, authenticated live owner handoffs and complete Unit 1B authorization/activation proof remain open. The exact-head V10/snapshot/profile PostgreSQL cases above are executed proof, not an enabled end-to-end flow. Parent movement and other aggregate failures are separate reconciliation/proof gates. Detailed capability status remains in
design/project-management/implementation-tracking/player-access-and-session.md.FireMUD LOC impact
Compared
699a25e022c9→ce057022f481(PR merge-base → head).PR scope: 63 changed files · 2,039 added textual lines / 609 deleted textual lines.
Rows are hierarchical and overlapping views; do not add them together.
LOC means cloc code lines; blank and comment-only lines are excluded.