Skip to content

Expose persisted Account UUIDs in registration and local exports - #2965

Merged
benhook1013 merged 10 commits into
developfrom
codex/gameplay-account-uuid-producer-foundation
Oct 4, 2026
Merged

benhook1013 merged 10 commits into
developfrom
codex/gameplay-account-uuid-producer-foundation

Conversation

@benhook1013

@benhook1013 benhook1013 commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Purpose

Expose Account's persisted, nonnil UUID in registration REST/gRPC responses and the Account component of existing local exports. #2963's V29 storage/provenance foundation is merged; this 17-file stage is based on develop without activating UUID authentication or bypassing PLAY.

Boundary

  • Map AccountDto.id from the persisted UUID, rejecting missing/nil identity, absent provenance and mismatched private source rows; remove the obsolete reverse mapper.
  • Align registration audit identity and response UUID. Registration still creates no profile or tenant membership.
  • Provide Account's internal exact UUID-to-private-row resolver. Private numeric storage remains owner-local.
  • Preserve numeric JWT/authentication producers, profile/tenant identifiers, session consumers and Entity/PLAY guards. Exports remain partial Account/profile-local data, not the target portable-export lifecycle.
  • Bound registration UUID readback failure with gRPC INTERNAL and no leaked implementation detail; retain existing domain-result handling.
  • Adapt Unit 1B: canonical Account UUIDs for profiles and session ownership #2929's preserved registration/export slice at 91c062f, not its remaining profile/management-owner/authentication work. Source extraction note.

Validation and review

Parent retarget/reconciliation preserved the original 17-file patch. The subsequent direct corrections bound registration readback failures, fix typed jOOQ result reads and use an explicitly non-admitting retained membership fixture; they do not activate another runtime path.

  • Prior focused Account proof: 249 unit/controller/mapper/gRPC tests, zero failures/errors/skips; production/unit/integration compilation and enabled formatting passed.
  • Direct RPC correction: 48 AccountGrpcServiceTest cases pass, zero failures/skips. The regression proves exactly one bounded INTERNAL error with no successful response/completion or leaked exception detail.
  • Exact-head required Validation, Security, Smoke, CodeQL and License passed at c65b442. Validation run 37165881956 executed the Account integration task successfully against PostgreSQL. Its logs do not expose individual integration-test counts; no local Docker proof is claimed.
  • The separate, non-required runtime-image publication attempt failed closed on stale PR-event merge-parent metadata before building images. This is not an application-test failure or evidence of successful image publication.
  • Retained substantive Hosted 0/0/0 on 45296e9: checkpoint.
  • Human-bounded additional CLI: 1 found / 1 accepted / 0 routed, 2m 07s on db306e9; checkpoint. The accepted RPC correction is published at ef57c4d and durably resolved in controller records. The one-round allocation is exhausted; no further discovery review is authorized.

One earlier whole-boundary Luna XHigh preparation pass found zero actionable issues. A bounded Luna High helper implemented the direct RPC/fixture corrections; Gameplay inspected the exact diff and consolidated proof. Newer develop ancestry and controller readiness reporting remain separate from the verified published fix and green required CI. The ancillary submit-gradle check failed; all five authoritative required gates passed.

This does not finish #2898's authenticated UUID propagation, owner-qualified Entity actor-entry or playable-smoke prerequisites. No worker merge or auto-merge is requested.

FireMUD LOC impact

Compared 12af11646188 → c65b4421b314 (PR merge-base → head).
PR scope: 17 changed files · 445 added textual lines / 26 deleted textual lines.

Section Base LOC Head LOC Δ LOC Change
Overall 670,839 671,208 +369 +0.1%
 Source 584,289 584,658 +369 +0.1%
  ↳ Code 254,458 254,518 +60 +<0.1%
  ↳ Tests 329,831 330,140 +309 +0.1%
 Markdown 58,090 58,090 0 0.0%
 Design 60,932 60,932 0 0.0%
  ↳ Architecture 44,989 44,989 0 0.0%
  ↳ Project management 5,224 5,224 0 0.0%
  ↳ Observability 2,147 2,147 0 0.0%
  ↳ Operator runbooks 579 579 0 0.0%
  ↳ gRPC API documentation 6,527 6,527 0 0.0%
  ↳ Product requirements and user journeys 926 926 0 0.0%
  ↳ Developer workflows 461 461 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 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository YAML (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 6db13aa5-fe45-47d1-a2ed-b5996fa48129
📥 Commits

Reviewing files that changed from the base of the PR and between 7049b1a and 45296e9.

📒 Files selected for processing (17)
  • design/architecture/microservices/account-service/api-contracts.md
  • design/architecture/microservices/account-service/runtime-and-data.md
  • design/architecture/microservices/game-session-service/runtime-and-data.md
  • design/project-management/implementation-tracking/player-access-and-session.md
  • protos/account/v1/account_service.proto
  • services/account-service/src/main/java/net/firedevops/firemud/accountservice/dto/AccountDto.java
  • services/account-service/src/main/java/net/firedevops/firemud/accountservice/mapper/AccountMapper.java
  • services/account-service/src/main/java/net/firedevops/firemud/accountservice/service/AccountService.java
  • services/account-service/src/main/java/net/firedevops/firemud/accountservice/service/impl/AccountGrpcService.java
  • services/account-service/src/main/java/net/firedevops/firemud/accountservice/service/impl/AccountServiceImpl.java
  • services/account-service/src/main/resources/openapi.yaml
  • services/account-service/src/test/java/integration/net/firedevops/firemud/accountservice/AccountApplicationIntegrationTest.java
  • services/account-service/src/test/java/unit/net/firedevops/firemud/accountservice/controller/AccountControllerTest.java
  • services/account-service/src/test/java/unit/net/firedevops/firemud/accountservice/controller/PublicBootstrapRoutesProdProfileTest.java
  • services/account-service/src/test/java/unit/net/firedevops/firemud/accountservice/mapper/AccountMapperTest.java
  • services/account-service/src/test/java/unit/net/firedevops/firemud/accountservice/service/impl/AccountGrpcServiceTest.java
  • services/account-service/src/test/java/unit/net/firedevops/firemud/accountservice/service/impl/AccountServiceImplTest.java

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Summary

Summary

  • The Account Service now returns the persisted, non-nil Account UUID as AccountDto.id in registration REST and gRPC responses. This changes the REST field from a numeric ID to a UUID string. The gRPC response field remains unchanged; its documentation now identifies it as the canonical Account UUID.
  • Account exports in the Account Service now expose the UUID. Tenant exports retain their existing tenant and profile identifiers.
  • Account mapping rejects missing or invalid persisted identity, missing provenance, and a source numeric ID that does not match the persisted Account row. Registration audit events now record the UUID.
  • The Account Service adds AccountService.resolveAccountStorageId(UUID) to resolve a valid UUID to its private numeric storage ID.
  • The OpenAPI schema and Account Service architecture and runtime documentation describe these changes. No database schema or migration change is reported.

Scope and validation

  • Authentication results, JWT subjects, profile and tenant identifiers, downstream consumers, and Game Session behavior remain unchanged. Registration still creates no profile or tenant membership.
  • The author reports 249 focused tests passed. Five PostgreSQL-backed application integration cases compiled but were skipped because local Docker was disabled. PostgreSQL runtime behavior and fresh-image runtime proof remain unconfirmed.
  • The reported focused proof ran on predecessor commit f54c76f8b37708b6edb4a39dba34a861bcf75a9c, not on the changed parent.

Walkthrough

Account registration and Account-local exports now expose the persisted Account UUID. Registration audit records use the same UUID. The Account service adds a validated lookup from UUID to numeric storage ID. Authentication, profile, and tenant identifiers remain unchanged.

Changes

Account UUID identity

Layer / File(s) Summary
UUID registration and export output
services/account-service/src/main/java/net/firedevops/firemud/accountservice/dto/AccountDto.java, .../mapper/AccountMapper.java, .../service/impl/AccountServiceImpl.java, .../service/impl/AccountGrpcService.java, services/account-service/src/main/resources/openapi.yaml, protos/account/v1/account_service.proto, services/account-service/src/test/java/integration/.../AccountApplicationIntegrationTest.java, services/account-service/src/test/java/unit/..., design/architecture/microservices/account-service/*, design/architecture/microservices/game-session-service/runtime-and-data.md, design/project-management/implementation-tracking/player-access-and-session.md
AccountDto.id is a UUID string. Mapping rejects missing or inconsistent persisted identity. Registration responses and audit records use the UUID, and Account identity fields in current exports expose it. Tests cover registration, exports, and mapping; contracts and status documents record the changed output and its limits.
Validated UUID-to-storage lookup
services/account-service/src/main/java/net/firedevops/firemud/accountservice/service/AccountService.java, .../service/impl/AccountServiceImpl.java, services/account-service/src/test/java/unit/.../AccountServiceImplTest.java
The service adds resolveAccountStorageId(UUID). It rejects null or nil input, missing rows, and inconsistent storage ID, UUID, source ID, or provenance. Tests cover supported provenance and failure cases.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 45296

The tracker’s test count is accurate for the suites it names. No actionable issue remains from this review; the skipped PostgreSQL-backed tests remain ordinary validation to complete when Docker is available.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 45296

The UUID publication change remains confined to registration and Account-local exports. Persisted identity checks and existing authorization boundaries remain in place; authentication and sessions retain numeric identifiers. Compatibility with external API and audit readers remains unconfirmed.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The change can affect registration identity publication and audit correlation platform-wide, plus the Account identity included in authorized local exports. Its scope is not limited to one tenant, but publication alone does not confer tenant membership, gameplay admission, or session authority.

Trust Boundaries and Controls

  • observed — Account export routes still parse numeric Account inputs and enforce current-account or global-privileged access. Tenant exports additionally require scoped Account access. The output UUID is not used by these routes as a substitute for authorization.
  • observed — The internal UUID resolver validates identity correspondence, not caller authority. It rejects null or nil input, missing rows, mismatched UUIDs or source-row keys, and unsupported provenance before returning the private numeric key.

Resilience and Maintainability Implications

  • observed — The existing audit delivery repository retains pending-event retry scheduling and conditional terminal updates. Repeated delivery acknowledgments are accepted only when terminal status and receipt identities match. These mechanisms preserve delivery bookkeeping but do not establish compatibility with the changed accountId payload type.

Hardening Proposals

  • proposed — Establish explicit reader compatibility for UUID registration responses and ACCOUNT_REGISTERED payloads, including retained numeric events and application rollback. If readers distinguish payload versions, define an event-specific discriminator or version policy before relying on audit correlation across the transition.
🚥 Pre-merge checks | ✅ 3 | ❌ 1 | ❓ 1

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 4.44% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 45 functions across 11 files. (6 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
Linked Issues check ❓ Inconclusive For [#2898], the PR implements the Account-side UUID registration/export prerequisite: it maps the persisted UUID with provenance and source-row checks, aligns the audit identity, adds the UUID-to-sto… Evidence of the #2898 delivery and fail-closed actor-authority behavior at the reviewed head is needed to determine overall linked-issue compliance.
✅ Passed checks (3 passed)
Check name Status Explanation
Out of Scope Changes check ✅ Passed The reported source, test, API, and architecture changes support the Account UUID registration/export stage and its boundary. The Game Session and Player Access documentation updates clarify that UUID…
Title check ✅ Passed The title clearly summarizes the main change: exposing persisted Account UUIDs in registration responses and local exports.
Description check ✅ Passed The description explains the purpose, scope, implementation boundaries, related issues, and validation results. It does not use the template’s exact section headings, include the checklist, or list th…
Full details: Linked Issues check

Explanation

For [#2898], the PR implements the Account-side UUID registration/export prerequisite: it maps the persisted UUID with provenance and source-row checks, aligns the audit identity, adds the UUID-to-storage-ID resolver, and adds focused tests. The PR description says it preserves the Entity/PLAY guards. The available change summary does not establish whether the reviewed head meets #2898’s broader WORLDS, REALMS, JOIN, CHARS, and PLAY delivery requirements or the required fail-closed actor-authority behavior. The repository diff could not be read, and the reported focused proof ran on a predecessor.

Full details: Docstring Coverage

Explanation

Docstring coverage is 4.44% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 45 functions across 11 files. (6 skipped: 6 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • 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

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.


Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 35 minutes.

@benhook1013

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
✅ Action performed

Full review finished.

@benhook1013

Copy link
Copy Markdown
Owner Author

Hosted: 0 found / 0 accepted / 0 routed · 45296e9 · 17 files · 10m 13s

@benhook1013

Copy link
Copy Markdown
Owner Author

Provenance / later reconciliation: this PR adapts #2929's Account registration DTO and local-export UUID slice from preserved source commit 91c062f6b43159ee57a3d53c82e940014728047f. The owned destination commit is 61b514d7100a85b3cae6b1eca71f60307bedc5cd; current published head c808611a09f0f19b2e17f772711004ded7ecf0e2 retains that 17-path patch through parent-only merges.

New proof here includes exact persisted Account UUID/source-row provenance checks, mapper rejection, local UUID-to-private-row resolution, registration audit UUID output, and focused registration/export fixtures. The source PR still owns additional profile and Game Session management-owner functionality; its stronger validation and executed fixture assertions must survive later deduplication. This transfer does not activate UUID authentication, Entity ownership, or PLAY, and does not claim wholesale patch equivalence. This is extraction coordination, not a controller route.

@benhook1013
benhook1013 changed the base branch from codex/gameplay-account-carrier-foundation to develop October 3, 2026 22:46
@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Smoke Summary

✅ Full-stack smoke completed with Smoke Gate: success

  • ✅ Changes detection: success
  • ✅ Smoke Gate: success
  • ✅ PR Full-Stack Smoke: success

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Security Summary

✅ Security checks passed or were intentionally skipped

  • ✅ Security gate: success
  • ✅ Trivy filesystem scan: success
  • ✅ Secret compliance validation: success

@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.11111% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...s/firemud/accountservice/mapper/AccountMapper.java 75.00% 1 Missing and 2 partials ⚠️
...ccountservice/service/impl/AccountServiceImpl.java 89.47% 0 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Static Analysis Summary

✅ Static analysis checks passed

  • ✅ CodeQL gate: success
  • ✅ License gate: success

CodeQL breakdown

  • ⏭️ CodeQL analysis (java): skipped
  • ⏭️ CodeQL analysis (javascript-typescript): skipped

@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Validation Summary

✅ All validation checks passed

  • ✅ Validation gate: success
  • ✅ Buf generation: success
  • ✅ Dockerfile lint: success
  • ✅ ShellCheck: success
  • ✅ Python script validation: success
  • ✅ Dev tool contract checks: success
  • ⏭️ 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: success

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

@benhook1013

Copy link
Copy Markdown
Owner Author

CLI: 1 found / 1 accepted / 0 routed · db306e9 · 17 files · 2m 07s

@benhook1013
benhook1013 merged commit 613d22d into develop Oct 4, 2026
178 of 179 checks passed
@benhook1013
benhook1013 had a problem deploying to trusted-hosted-cluster October 4, 2026 06:09 — with GitHub Actions Failure

This branch had an error being deployed

1 failed deployment
trusted-hosted-cluster — c65b4421 Deployed Oct 4, 2026 by benhook1013 via Delete Preview Runtime #4993
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