Skip to content

Unit 1B: canonical Account UUIDs across Social storage, APIs and callers - #2975

Closed
benhook1013 wants to merge 10 commits into
codex/unit1b-uuid-session-carriersfrom
codex/social-account-uuid-cutover
Closed

benhook1013 wants to merge 10 commits into
codex/unit1b-uuid-session-carriersfrom
codex/social-account-uuid-cutover

Conversation

@benhook1013

@benhook1013 benhook1013 commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Boundary and approved stack

Social/Account/callers front at e7602392688174dec01c0b1961642d14fdc1ff10, 84 unique paths, based on Document #2932 at 3a1ca84ead43fd2498742a1b388c724e3b82497a.

Approved order: #2929 → #2969 shared JWT → #2932 carriers → this Social front → #2976 complete Logging UUID receiver child → #2933 descendants. The Logging receiver's 23 paths are extracted coherently, not discarded; both stages compile independently. The complete accepted implementation candidate remains committed at e97c8b69d9a8188a648d60d41ab4b436455e26e3. No change to Document's or Gameplay's branches.

Changes and security boundary

  • Account bulk presence policy and profile request/response selectors use canonical non-nil Account UUIDs with exact tenant/account provenance checks; private database row IDs remain local. Update-profile responses include exact identity echoes.
  • Social converges all account-bearing DTOs, storage, queries, REST/gRPC selectors, sender-bound mail, friends/guilds and affected clients to the canonical UUID. No numeric aliases, guessed mappings or inferred provenance.
  • Social V10 locks the complete six-table set before testing emptiness. Any retained row refuses the whole transition unchanged; Account-owned authoritative recovery is still required. All earlier migration contents remain untouched.
  • Game Logic preserves canonical sender identity while its legacy recipient selector remains a distinct character selector. Numeric/unsupported recipients fail closed; this is not real cross-pod WHISPER/TELL delivery.
  • Game Session applies ONLINE/RECENT filtering after final privacy redaction, retains canonical owner/player identity separation and stronger parent authority/retained-context proof. Genuine tenant-role rules and removed Gateway routes remain unchanged.
  • Social-to-Logging callers send UUIDs, but the complete Logging receiver/storage change is in the immediate child. Moderation/report operations stay unavailable before and after that child until their separate owner authorization/durability gates are implemented and proved.

No-loss split and local proof

The 84 front +23 disjoint Logging child paths equal all107 original candidate paths. The initial split matched the full checkpoint except the existing tracker paragraph describing the two-stage boundary. The later parent merge adds only three upstream Account fixture corrections; both complete unique patches remain byte-identical. No useful test or accepted behavior was dropped. The reduced107 count versus provisional108 removes an already-equivalent parent reconnect fixture, not functionality.

Front full checks for Common Security, Common Test Support, Account, Social, Logging, Game Logic and Game Session, four service boot JARs, links and Markdown passed: 259 tasks;28 executed,1 from cache,230 up-to-date. This proves the front compiles with the unchanged Logging parent boundary. XML has3978 cases,0 failures/errors,418 skips; reused reports are not fresh executions. SocialV10 packaged bytes equal source; front's Logging JAR correctly excludes child-onlyV6. Flyway sanity passes12 sets/146 migrations; diff hygiene is clean.

The preceding corrected composed gate also passed all affected components after three reconnect fixtures were reconciled to the stronger parent. These are implementation/proof helpers, not new independent discovery passes, provider review or taper credit.

Explicit proof and alignment gates

  • Docker/PostgreSQL are unavailable locally. Migration empty/retained-data/concurrent-writer suites compile but skip; exact runner execution is still required. No fresh-image, deployment, live identity or end-to-end delivery success claimed.
  • Unit 1B: canonical Account UUID propagation through shared JWT callers #2969's inherited Account fixture correction is separately published at 5f816e28b5fe135e0116bb9ca3d81476f79b129f. Document published that correction in Unit 1B: canonical Account UUID gameplay carriers and proof #2932 at8b8266884; this front now includes that exact parent without disguising those fixtures as Social work. The old composed Unit 1B: canonical Account UUID gameplay carriers and proof #2932 CI had inherited Account integration failures, so corrected-parent database/CI proof remains a proof gate, although ancestry alignment is now complete.
  • The final split stages need ordinary exact-head CI and eventual CodeRabbit review. No CodeRabbit was requested here; reviewable does not mean merge-ready or activated.
  • Retained-data recovery, complete owner moderation/report capability and typed-recipient delivery remain unfinished. No production repositories, proof or required assertions are hidden to fit a file cap.

Routed work

Owns the accepted Social profile consumer source from #2923 and the #2972 presence-policy/UUID sender receiving observations. Their original controller routes are retargeted and accepted-fixed here with the published proof below; historical source counts remain unchanged.

Published route closeout

Controller routes 4bb1cbdc… (source #2923 profile), 9ef3a5b6… (#2972 presence), ce3a3026… and 6debdf83… (independent subagent/Hosted sources for the same #2972 sender observation) are now assigned and accepted-fixed here at 3a87f037c0921b7eaf2020e736865f0636e7d1f8. Source historical counts are unchanged.

Exact proof: Account UUID requests, batch ordering and profile echo denials, UUID sender DTO and malformed/numeric denial. Both are in the passing120-case Social unit gate. Real recipient delivery, database cutover and live activation remain separate gates.

Corrected-parent final checkpoint

Exact #2932 8b826688497214f5fd27d0d355e8646de008e6a2 includes the separately owned three-path #2969 fixture repair. Front d6f21772a54823ca86c1c3347b4158b6f198e0c5 and Logging child d6b24e5e3b64a30405b0a5258a85de81615dca4f preserve the complete84-file/23-file binary patches byte-for-byte across this parent change. No repeated stack sweep or new review was performed.

Final seven-component/four-JAR/docs gate passed259tasks (20executed/239up-to-date); skipped database tests remain unproved. #2969's exact owning Validation run37184729393 completed failure; its Account fixture corrections are separately published at a276d93, with corrected database execution still required; Document separately owns #2932 run37184732457. Visible dependency/preview successes are not full required Validation proof or merge readiness.

Runner fixture follow-through

CI37185192137 on the earlier Logging child executed23Social integration cases:22passed,1failed,0skipped. All six retained-table refusal cases and the concurrent-writer refusal passed. The sole positive migration fixture failed on the missing shared Saga serviceSchema placeholder, before its final assertions.

3c6dc4d05 binds the per-test schema exactly as runtime configuration does and expects V10 plus the three Saga migrations after V9. Full migration discovery, exact historical prefix, identity types, constraints and unchanged-row/concurrent-writer assertions remain intact; no production or SQL changes.

Focused Social formatting/check/JAR passed75tasks(13executed/62up-to-date). The18 locally discovered database cases compiled but skipped;120unit results and one skipped cross-service result were reused. Corrected-head PostgreSQL execution remains required. Account parent follow-through a276d93 awaits Document's exact carrier publication before further alignment; unrelated aggregate CI failures and live activation remain separate gates.

Previous corrected runner candidate

Previous head b0885a1612a13d6b344e20ea6955e05e8794d202 includes Document's actual #2932 a1d6b956cd76b66fbb327d62a1348c5538be5fab and owning Account fixture correction a276d937f8eef59ed9adef4541da049be04d15ef. The complete84-path unique binary patch is byte-for-byte unchanged across this necessary parent propagation. Independent Account/Social full checks and both JARs pass106tasks(13executed/93up-to-date); unit results were reused and database tests skipped locally. The child below preserves the same Social fixture correction. No other owner branch was edited or parent guessed.

That prior checkpoint's specific database proof was still pending; the corrected strict-runner result below now supplies it. Inherited aggregate failures, provider review and live activation remain separate gates. Earlier named-head reports above retain historical attribution.

Final aligned checkpoint

Current head e7602392688174dec01c0b1961642d14fdc1ff10 includes Document's exact published #2932 3a1ca84ead43fd2498742a1b388c724e3b82497a and the final owning #2969 fixture correction dd0b182d436d18e483ef9d85b403e893fe84dc8e. The complete 84-file Social binary patch remains byte-identical (SHA-256 836060ee764e0a22d537919686d0568ee39a44ea6bb1a384a9aba34c75992e46).

The independent final front Account/Social check and boot-JAR gate passes 106 tasks (6 executed, 6 from cache, 94 up-to-date). Existing XML: Account 848 cases / 178 skipped; Social 139 cases / 19 skipped; zero failures/errors. Cached results and skipped local PostgreSQL cases are not executed database proof.

The previous combined CI37186939305 passed Social and Logging jobs; Account executed 182 integration cases, with four remaining fixture failures subsequently corrected in #2969. All six Account storage migration cases passed. Successful Social/Logging logs lacked named-case counts, so those specific cases remain uncredited until the child’s strict proof step runs. Exact final combined CI37189893390 on child a975fb45c1aedfe62a3806274912e7f58333b3b6 completed with the executed database results below; the child adds strict suite/case checks without weakening runtime or migration guards.

Inherited Gateway/Game Design/TCP repairs belong to Document #2933; the Python capture correction belongs to Gameplay. Their aggregate failures, required CI, provider review, fresh-image and live activation remain separate gates. No CodeRabbit requested, taper credit or merge-readiness claim. The exact published tail was handed to Document for its own descendant alignment.

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 3a1ca84ead43 → e76023926881 (PR merge-base → head).
PR scope: 84 changed files · 2,692 added textual lines / 1,401 deleted textual lines.

Section Base LOC Head LOC Δ LOC Change
Overall 765,000 766,162 +1,162 +0.2%
 Source 675,910 677,067 +1,157 +0.2%
  ↳ Code 287,419 287,633 +214 +0.1%
  ↳ Tests 388,491 389,434 +943 +0.2%
 Markdown 58,803 58,808 +5 +<0.1%
 Design 61,487 61,492 +5 +<0.1%
  ↳ Architecture 45,157 45,160 +3 +<0.1%
  ↳ Project management 5,610 5,612 +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: 966b6636-83e7-49f4-8294-ad3638e7bccc

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

Routed from #2848’s Hosted finding: at 4d50b2e545b2ab34847922d898ca56b8b5d8b38b, Get/UpdateFriendPresencePolicy still admit cross-subject tenant/global-role callers, while Account’s normative profile contract is exact-self-subject. This Social receiver PR owns the correction; the controller route now targets #2975 instead of #2853. The route remains open, pending the canonical Friends delegation integration and focused denial proof. Historical source counts are unchanged.

@benhook1013

Copy link
Copy Markdown
Owner Author

Routed observation from #2932, controller route 7999f7207e86cca4f601898f1d60ca533306211ace93a8d908d18e38aaf9e32d: the original UUID SAY → numeric consumer mismatch is no longer present in cumulative 22b6a877 after UUID producer 8b61cfa38 and Social convergence 0250f512. Game Logic validates and forwards the exact Account UUID; Social now validates and persists UUID identity.

One directly affected consumer limitation remains stale: design/architecture/microservices/game-logic-service/api-contracts.md, Communication Slice, still says the live Social sender path is numeric and will reject UUID. Please adjudicate the existing route and align that statement with the Social-owned correction, retaining honest stub-only/end-to-end proof limits. This is not a request to change runtime behavior or claim a completed live SAY flow. Receiving owner records its disposition and proof here/controller.

@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

Adjudicated route 7999f7207e86cca4f601898f1d60ca533306211ace93a8d908d18e38aaf9e32d on exact published head 65dc371eeba4e455361b5d3ceba117ab544fd8d4: already fixed by the composed UUID boundary 0250f51297. The Game Logic API contract already documents canonical UUID forwarding and rejects numeric identity; no additional documentation patch was needed.

Fresh focused proof: CommunicationAggregationServiceTest 15/0/0 and SocialGroupsGrpcServiceTest 21/0/0. Controller target disposition is accepted_fixed; source review counts are unchanged. These are unit/stub proofs, not positive real Social delivery or authenticated character-to-Account recipient mapping. The separate Friends codec/presence-policy route remains open and gated.

@benhook1013
benhook1013 marked this pull request as draft October 28, 2026 12:41
benhook1013 added a commit that referenced this pull request Nov 17, 2026
Receive bounded donor #2975 privacy filtering without widening ALL/detail behavior. Preserve roster totals and remove presence-count ratios from filtered text.

Qualified exact tree with Java25/Gradle9.9: 97 focused tests passed (16 new disclosure cases), canonical formatting and compilation. Cloud test JVM used supported Mockito startup agent; no production build configuration change. Full donor and runtime qualification remain incomplete.
benhook1013 added a commit that referenced this pull request Nov 17, 2026
Receive bounded donor #2975 profile response identity contract across proto, Account producer and Social consumer. Preserve fail-closed identity checks; errors emit no owner echo.

Account must roll out to all replicas before enforcing Social; rollback Social first. Legacy success-only responses fail closed even after a persisted write. No runtime activation performed.

Canonical exact-toolchain generated compilation/formatting and 183 focused tests passed; independent source/result review accepted. Full donor accounting and runtime qualification remain incomplete.
@benhook1013
benhook1013 deleted the codex/social-account-uuid-cutover branch November 28, 2026 01:05
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