Repository navigation
World serving holds, region assignments and immutable spawn-source reads - #3084
Closed
benhook1013 wants to merge 8 commits into
Closed
benhook1013 wants to merge 8 commits into
benhook1013 wants to merge 8 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 |
Contributor
Validation Summary❌ One or more validation checks failed
Coverage reports and failure logs are available in the workflow artifacts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose and stack
World serving-hold, complete operational-region lifecycle carrier and immutable published spawn-source prerequisites for Gameplay. Child of preserved #3044 at
59eb1d22ac3ec906a64d2db378c79f3353e263d3; no source retarget or train change. Published sourcef7a31ab5bhas 46 unique files; the only change since PostgreSQL-proved4db094cc2ed418b595475122abe56fd6f7dbdd09is the reviewed World CI cleanup-time allowance. Account #3077/#3093 own the original lease and durable confirmation; Gameplay owns Game Session binding/index transitions, runtime/pointer/catalog fences, Entity definition intake, operational-region initialization and installation/cleanup.This is an unregistered, non-admitting owner foundation. Detailed implementation and proof are in World Runtime and Movement.
Retained owner boundaries
Latest complete-region correction
The existing closed
WorldCanonicalInstanceLifecycleEvidenceincludes requiredoperationalRegionAssignments: the complete map of canonical runtime region UUID to its distinct persisted operational region UUID. Immutable canonical bytes bind the whole set to the existing tenant/world/instance, playable namespace, capture, graph and preparation-input digests. The actual World reader checks frozen graph identity, all declared family counts, complete REGION templates and scoped materialization/topology rows in one owner snapshot. Missing, extra, duplicate, substituted or unassigned evidence denies. Initial activation and exact retry retain the map unchanged.Shared tests cover closed encoding, mutation resistance and shape/substitution negatives. PostgreSQL definitions cover retained-row corruption denial and exact readback; the existing authenticated preparation case forces actual region BIGINT keys above Java's boxed cache range. Parent corrected value comparison, fixture ordering and static findings without weakening guards. Game Session changes here are constructor fixtures only: Gameplay adapts the actual
CanonicalRunningGameInstanceOwnerconsumer and compares complete map/capture through PREPARING/ACTIVE. No Game Session operational epoch is invented from World lifecycle.Immutable published spawn-source continuation
The separate closed
WorldPublishedSpawnRequirementsReadServiceprojects the original frozen World source before PREPARING: all six ordered family counts, including explicit zeroes, typed Entity spawn references, generation intent, exact graph/capture and the authenticated Game Design complete launch/release pair. The owner authenticates the exact same-namespace Entity peer before parsing, then joins original frozen and Account-authorized APPLIED journals in one owned read-only REPEATABLE_READ snapshot. Existing no-ambient repository entry points retain their guards. Missing or substituted publication, Account, APPLIED, graph or selector evidence denies; no runtime/Entity identity is allocated.The explicitly constructed shared Entity client uses file-backed mTLS and checks the exact World peer before metadata/body release. Owner, adapter and client remain unregistered. Typed Entity references are not definition payloads or proof of an Entity applied commit; Gameplay owns that separate producer and consumer.
Corrected R24 full Core/World checks, formatting/static analysis, integration compilation, boot JAR, links and Markdown pass in 1m36s. World executes 545 unit cases cleanly. Core retains 391 passing outcomes from the preceding corrected Core execution, including four real loopback client socket cases with an explicit owner-service double. All 211 World integration cases skip locally without Docker, including the three new actual-journal snapshot/projection definitions required by CI. The earlier 09d6 PostgreSQL success below does not prove these additions.
Activation SQL guard correction
Exact predecessor World CI job 37714931038 ran all 53 graph cases (22 failures, zero skips/errors) and all nine hold cases (nine failures, zero skips/errors). Its synthetic merge
50ea680602c98e695621bb62f229fe165d7917d7has the exact base/head parents and source tree. The hold cases all failed before hold assertions: V43's closed lifecycle checks expected eleven fields instead of the new twelve-field carrier.Forward V52 preserves historical checksums, all existing activation/hold predicates and function identity/grants, aligns the three closed shapes and checks the entire assignment map against scoped materialization/preparation count. A raw-SQL negative case rejects missing, extra and substituted maps without recording activation or changing lifecycle. This is strict invariant convergence, not removal of a gate.
Proof
Exact published
09d6c163df96ef64afa6ae2585e68e4ec5ae7bd6World CI job passed. Raw artifacts/tmp/tmp.Dk1lUcBkqYand strict verifiers establish all 54 graph/application and all nine serving-hold PostgreSQL cases executed and passed, with zero skips, failures or errors. This includes the corrected incomplete/substituted assignment raw-SQL negative. Checkoutf5c40a3ce9fb5674ee8d3832e748614efd29e24ahas the exact base/head parents and tree6eef2a659acd8fa308d9d5637fdf05a369f7e278, identical to the head tree. The watcher stopped at World-job completion; no aggregate-CI success is claimed. This closes the named physical fixture/migration proof gap over explicitly synthetic upstream authority, not authenticated multi-owner production composition or admission.Exact predecessor
d723a4a91f688a11e380de6884cf273e19bd9cf5World CI job physically executes all nine hold cases cleanly and 54 graph/application cases with 53 passes and one failure, no skips/errors. Checkoute43db7aa88fe3ada4656ac25ff82a49520035352has exact base/head parents and the source head's tree. Forward V52's activation correction works in those executed cases. The sole failure is the new raw-SQL test's assumption of multiple regions, before its SQL assertions; the actual fixture has one. This checkpoint keeps the real one-region fixture, replaces its canonical key for the missing-assignment negative so the valid nonempty carrier reaches SQL, and preserves extra/substituted negatives and all no-mutation assertions. R17 full World check/format/integration compilation/packaging/docs passes in 45s with unchanged 531-unit results reused and all 208 integration cases skipped locally; R18 final docs passes in 13s. New exact-head physical execution of the fixture correction is pending.Corrected consolidated R13 passes full Common Platform Core/Common Security/World checks, jOOQ/protobuf generation, formatting, Checkstyle, SpotBugs, JaCoCo, integration compilation, World boot JAR and documentation validation in 2m7s. Reports contain 379 Core, 166 Security and 531 World passing unit outcomes, reused unchanged from preceding corrected runs; four Game Session lifecycle-verifier fixture tests execute cleanly in R13. Final tracker links/Markdown R14 passes in 11s. Diff hygiene passes.
Current corrected R15 passes full World checks, generation, formatting, static analysis, integration compilation, World boot JAR and documentation checks in 1m20s: 531 unit cases execute cleanly; all 208 integration cases skip locally without Docker, including 54 graph/application cases and nine hold cases. Final tracker links/Markdown R16 passes in 12s. Exact corrected PostgreSQL execution is pending; predecessor execution above is failed proof, not skips. Local carrier/transport cases do not prove genuine multi-owner production composition. No database or remote infrastructure was provisioned.
Earlier hold-only source
673aaaf6eff34c3263964db9581bb8924982d398World CI job passed full checks, strict named verification and raw JUnit capture: artifact11518603960proves all nine hold PostgreSQL cases executed without skips/failures/errors. That is physical hold migration/race proof over synthetic upstream authority, not proof of this newer region-reader correction. Predecessorfff09667c031b14aaa60002dd2c61f8ec99223eeran integration checks but had no attributable named XML for those cases. Historical evidence is retained rather than upgraded to current-head proof.Remaining gates
Authentic Account/World/database composition and current Account restriction/finalization authority remain required. Gameplay must durably register the exact assignment map and supply authenticated operational-region initialization/epoch/readback before World can issue the attested initial causal component checkpoint. Lifecycle epoch, queue claims or a requested floor are not owner initialization proof. The spawn-source PostgreSQL component checkpoint below is proved; successful post-job cleanup at the new CI-only head and genuine producer/consumer composition remain open.
Game Session installation/cleanup and World hold release remain open. Baseline canonical termination stays denied; negative raw mutation tests do not prove normal termination. Existing parent migration and deployment gates still apply. No World activation, playable admission, key/mount activation, provider review, queue insertion or merge-readiness claim is made.
Executed database checkpoint
At exact source
4db094cc2ed418b595475122abe56fd6f7dbdd09, World CI run 37724186800, job 113138596837 produced raw XML with 57 graph and 9 serving-hold PostgreSQL passes, zero skips/failures/errors. All three new published-source cases executed: actual read-only repeatable-read selector snapshot, real frozen/APPLIED spawn requirements, and explicit zero optional families. The strict proof step and Gradle Checks succeeded; the job was later cancelled during post-Gradle setup, so this is component execution proof, not a green job or aggregate.Artifact commit
f12a8e4fd377d3980901f69e498848797327defbhas exact base59eb1d22ac3ec906a64d2db378c79f3353e263d3and source parents, with source-identical tree90ac4e604b0eed41795d101fbe4033ddb12da667. Raw XML was independently parsed and hashed: graph4546229f18b63a3cfc4762a4482385b122603e4cc589af5c5e210d763e105d03, hold4e56c4c2e05d0f9a5386dcaac5322edeb78b55000ed1c76c6c56c8f550e72192. These fixtures do not prove upstream creator/terms authorization, actual Entity definitions, complete live producer/consumer composition or runtime activation.CI cleanup-time correction
Overseer traced the prior cancellation to the twenty-minute matrix timeout, not failed Gradle or PostgreSQL cases. This checkpoint consumes only the World thirty-minute allowance from merged #3099 (
d780aa061aa0a49b63a16655b3262ee6598e70e6), preserving the existing Account and Game Session thirty-minute allowances and all other module limits. No train propagation or runtime change is included. Actionlint, all twenty-five CI scope contract cases and diff hygiene pass. The preceding 57 graph plus 9 hold PostgreSQL passes remain distinct from a successful new-head job/cleanup result, which is pending.