Repository navigation
Prepare exact pre-dispatch capacity recovery receiving - #3424
benhook1013 wants to merge 183 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
| Layer / File(s) | Summary |
|---|---|
Account decisions and shared recovery policy services/common-platform-core/..., services/account-service/... |
Shared types define canonical resolutions and bounded continuation policy. Account stores immutable ACCEPTED and NO_ACCEPT decisions and uses the shared reconciliation deadline in reservation flows. |
Bounded origin resolution delivery services/account-service/src/main/java/net/firedevops/firemud/accountservice/service/AccountCapacityOriginRecovery.java, services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/service/impl/CanonicalGameplayCapacityOriginRecoveryReceiver.java, services/account-service/src/test/*, services/game-session-service/src/test/* |
Account recovery admits a bounded observation, resolves the retained decision, and sends the exact resolution. The receiving seam validates caller identity, namespace, metadata, and deadlines. Tests cover retries, stale permits, denials, retained reservations, and transport edges. |
Game Session origin creation and admission services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/repository/*CapacityOrigin*, .../CanonicalGameplayOriginalNewCapacityExecutionOwner.java, .../CanonicalGameplayOriginalNewFinalAdmission*.java, services/game-session-service/src/main/resources/db/migration/V1065.1__original_new_capacity_origin_custody.sql, services/game-session-service/src/main/resources/redis/*, services/game-session-service/build.gradle.kts |
Game Session stores canonical origin and custody evidence in SQL and Redis. Origin-aware admission, resolution, and finalization now read and write the retained origin state, and the catalog and script metadata describe the new custody records. |
Origin custody transfer and frozen-transfer continuation services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/repository/CanonicalGameplayRegion*, .../CanonicalGameplayProtectedIncarnationReceiver.java, services/game-session-service/src/test/*, design/architecture/microservices/*/runtime-and-data.md, design/project-management/implementation-tracking/player-access-and-session.md |
Region transfers capture and verify origin custody before promotion to a reserved successor fence. A frozen transfer can continue under the same owner’s live grant and exact intent. Tracking records pending receiving-source migration and physical-composition execution. |
Estimated code review effort: 5 (Critical) | ~120 minutes
Change: Other
Merge Risk: 
Moderate · previous review 52200
-
The capacity-origin recovery path is not yet registered or activated, so production exposure is limited. The path still has unresolved defects. Reservation recovery can fail after origin custody moves to a successor. Overlapping observation admissions can exhaust the retry budget. The Account migration needs a confirmed drain boundary. Fix these before activation, and ideally before merge.
Pre-merge checks: 
3 · 
1
-
Failed checks: 1 warning Passed checks: 3 passed-
Full details: Title check
-
Explanation
The title "Prepare exact pre-dispatch capacity recovery receiving" matches the main change: Account and Game Session capacity-origin recovery, origin custody, and the receiving seam. It is specific and concise, and it does not describe unrelated work. It does not mention the Account reservation-decision persistence or the catalog epoch change, but those are supporting parts of the same recovery work.
-
Full details: Description check
-
Explanation
The description does not follow the repository template. It lacks the required '## Summary', '## What Changed', '## Validation', '## Notes', and '## Checklist' headings. It gives a long chain of commit-referenced progress notes. It reports many validation runs, but it does not list the commands actually run, such as './gradlew spotlessApply' and './gradlew check', and it does not state whether './gradlew linkCheck lintMarkdown' ran, although markdown design docs changed. It states that fresh required CI is pending. It describes the operator-visible outcome only partially: capacity activation stays held. It references design docs and trackers by PR number (
#3424,#3427,#3431,#3429,#3425) but no canonical design doc links are given. The checklist is absent, so the CLA and review-checklist confirmations cannot be verified.Resolution
Restructure the description to follow the template headings: Summary (purpose, user/operator-visible outcome, linked issues and design docs), What Changed (main implementation areas and contract/doc updates such as V1040.1, V1065.1, and the Redis descriptors), Validation (exact commands run, including './gradlew spotlessApply' and './gradlew check', and './gradlew linkCheck lintMarkdown' because design markdown changed, plus the targeted PostgreSQL/Redis case counts), Notes (open items such as pending CI, same-transition rearm, and held activation), and the Checklist. Replace the commit-by-commit history with a concise current-state description. Confirm the checklist items, including the domain tracker and review-checklists.md check for auth/session and scripting changes, and the CLA item.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · 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.
Smoke Summary
|
Security Summary✅ Security checks passed or were intentionally skipped
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Static Analysis Summary✅ Static analysis checks passed
CodeQL breakdown
|
# Conflicts: # services/account-service/src/main/java/net/firedevops/firemud/accountservice/service/AccountTenantCapacityOwner.java # services/account-service/src/test/java/integration/net/firedevops/firemud/accountservice/service/session/AccountTenantCreationCompletionPostgresIntegrationTest.java # services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/repository/CanonicalGameplayOriginalNewCapacityExecutionOwner.java # services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/repository/CanonicalGameplayRegionOwnerTransferCoordinator.java # services/game-session-service/src/main/resources/redis/lua/game-session-original-new-final-admission.lua # services/game-session-service/src/main/resources/redis/scripts/game-session-original-new-final-admission.json # services/game-session-service/src/test/java/integration/net/firedevops/firemud/gamesession/repository/GameSessionRuntimeFamilyCatalogPostgresIntegrationTest.java
# Conflicts: # services/game-session-service/src/test/java/integration/net/firedevops/firemud/gamesession/repository/GameSessionRuntimeFamilyCatalogPostgresIntegrationTest.java
# Conflicts: # services/game-session-service/src/test/java/integration/net/firedevops/firemud/gamesession/repository/GameSessionRuntimeFamilyCatalogPostgresIntegrationTest.java
Validation Summary❌ One or more validation checks failed
Coverage reports and failure logs are available in the workflow artifacts. |
Current receiving boundary
d9917f2aon #343605d89011binds the origin-aware Redis descriptor to the exact shared final-admission Lua. The consolidated #3428 proof exercised captured execution and transferred-origin Account recovery successfully. Fresh exact CI is pending.This PR owns the open Account V1040.2 refusal-budget provisioning route from #3427. Capacity activation stays held until approved finite per-tenant limits are installed and verified for every supported fresh and existing tenant, and a physical first quota denial and exact
NO_ACCEPTreplay pass. Missing, inconsistent or exhausted limits preserve the Game Session evidence charge and unresolved custody. The existing same-transition rearm finding stays open and needs independently proven predecessor closure and exact Account successor authority.Earlier comparison
171d78a9on #342763374fb2puts retained origin envelopes, Account resolutions and fence readbacks inside the tenant transfer-history budget. The existing origin transfer can finish within its reserved capacity. Five focused PostgreSQL, Redis and authenticated cases passed, including exact origin handoff, no-accept recovery, interrupted freeze recovery, and the fresh and populated catalog. The comparison has 62 changed files. Fresh CI, same-transition rearm, operational restore, registration and activation remain open.Prior durable refusal receiving
ff6c29a4on #34277cacd7cfreceives the exact durable Account refusal while keeping origin closure and the authenticated recovery read here. The receiving path retains the denied origin, confirms its physical denial and settles only an unused active reservation. Seven focused PostgreSQL, Redis and authenticated composition cases passed, including the last-slot replay, delayed commit refusal, the committed-origin path and catalog upgrade. Fresh substantive CI is pending. Same-transition rearm, operational restore, registration and activation remain open.Prior receiving comparison
1f927776receives #3427b476ecc4. The private Account-to-Game Session readback and origin receiving path carry complete target binding, first handoff from a verified committed original and the explicit per-attempt storage charge. The committed origin recovery and mTLS composition remain exercised by focused integration cases. Same-transition rearm, reset and restoration qualification, production registration and activation remain open. Substantive CI for this head is pending.Prior receiving proof
95b83870receives #34271ca58052and owns the complete private original NEW capacity readback boundary. The comparison includes the Account recovery client, same-namespace Game Session mTLS receiver, closed codec, route policy, and the three physical recovery cases for exact FINAL settlement, retained FINAL after controlled retirement, and unresolved handoff through bounded quarantine.The receiving source passed 114 focused unit cases and eight physical integration cases, including all three moved recovery tests. The receiving route matrix passed. GitHub CI is pending. Same-transition rearm, production registration and runtime activation remain open.
Earlier receiving proof
03596a0ereceives #3427ae4e9d5dand preserves the unified terminal source. Nine focused integration cases passed, including exact terminal replay, frozen transfer, stalled protected read and successor install fencing. Full rearm and runtime activation remain open.Pre-dispatch capacity recovery
Account retains the exact original reservation decision. Game Session records origin custody before attempting Account commitment and retains the original observation budget across owner transfer. Missing or ambiguous evidence keeps the hold. #3425 owns the fence-acquisition receipt for exact FINAL witnessed before SQL intent.
Account V1040.1 installs on this comparison's V1040 frontier. Game Session V1065.1 adds the origin and transfer-custody families. The current migration chain seals this installer at epoch 15. The current source allows exact same-owner continuation after acknowledged INSTALL, reserves two resource slots for final admission during background recovery, and preserves definitive Account abort evidence through same-grant handoff and lost-completion recovery. Ten local PostgreSQL and Redis cases passed for these repairs, with affected static, formatting and documentation checks. Fresh required CI is pending.
The latest fixes refresh exact terminal topology when Account aborts after successor installation and refuse ordinary admission replay for an attempt with retained origin custody. Seven focused Game Session cases and two Account cross-service composition cases passed, including the preserved historical no-origin path and the exact origin-bound FINAL.
The latest source also bounds Redis origin mutations by the admitted operation deadline and independently asserts successor ownership in the transfer proof. Three focused PostgreSQL/Redis cases and six matching-input unit cases passed. Writers must be quiesced before activation of the stricter Account grant boundary. Deployment proof for that requirement and same-transition rearm remain open.
Eight earlier exact PostgreSQL, Redis and mTLS origin cases and one populated catalog upgrade passed on tree
bb77974e. The later 20-case run atd0108393covered same-grant recovery, successor claim, missing-marker refusal and signed expiry. Both retain their original attribution.Draft #3431 carries the exact permit overlap and moved OPEN-origin closure repairs on the forward V1066.1 frontier. Draft #3429 owns the supported mixed-inventory limit and activation qualification. Full rearm, registration and activation remain held.
FireMUD LOC impact
Compared
11dc28b8b87a→84a9a61e6be4(PR merge-base → head).PR scope: 70 changed files · 9,636 added textual lines / 1,141 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.