Skip to content

Account/World: Draft source ordering and guarded canonical topology - #3007

Closed
benhook1013 wants to merge 16 commits into
codex/unit1b-authored-publication-coordinationfrom
codex/unit1b-world-canonical-topology
Closed

benhook1013 wants to merge 16 commits into
codex/unit1b-authored-publication-coordinationfrom
codex/unit1b-world-canonical-topology

Conversation

@benhook1013

@benhook1013 benhook1013 commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Boundary and dependency

Stacked on #3004 at exact parent a67b503558ec96f8659660abc3cf8333069eb80a. Published head 3d801289900a92bdd4384f20b264cf1f60a75f74, 87 unique files. Keep this draft off the configured queue until the complete tested Gameplay dependency cut is delivered.

This Account/World prerequisite retains exact authority-source ordering, typed six-family Draft storage/frozen readback and guarded generation-free runtime materialization. It is not an authenticated public writer, complete APPLIED result, released topology, integrated password reset, or lifecycle activation.

Implemented boundary

  • V30/V31 derive and store complete scoped UUID/private-row mappings from the unchanged original Draft binding, preserve all six families and exact request bytes, and retain immutable frozen graph/readback. Synthetic permission/checkpoint inputs remain explicitly unverified.
  • Schema 3 converges lossless canonical/retained Entity references and digest vectors. V32 preserves historical schema-2 bytes and exact retries while denying fresh unsupported capture. Registered digest reads authenticate the exact Game Design peer and fail closed rather than return synthetic complete-commit evidence.
  • V34 binds the exact Game Session canonical instance, namespace, tenant, world and control request to World-private rows and the full original source/descriptor/release/Version pair. Only explicit publicProduction=true, SHARED, non-playtest evidence is admitted; SHARED alone does not establish classification.
  • V35's actual owner writer atomically materializes generation-free region/zone/room/exit topology, typed runtime mappings, immutable preparation result and V34 association. A single-use transaction-specific insert manifest preserves existing reserved-tenant/direct-write denial. Complete original evidence and the exact still-FROZEN owner lock are checked before allocation.
  • Preparation retry identity excludes fresh observation metadata but checks every request/response echo. Changed bindings/captures are rejected; retries never reset lifecycle. Configured generation/spawn intent is denied before allocation. The service is unregistered/default-denied and returns only MATERIALIZED_UNVERIFIED; a stored PREPARING enum is not authenticated lifecycle evidence.
  • V60/V61 preserve immutable pending logout/reset source-change identity and original Account/token/deadline/verifier/capture binding. Source mutation/terminalization requires definitive ordering-aware owner outcomes; expiry does not release unresolved participation. Separate pending-reset encryption is purpose-bound. Public reset completion/recovery/cleanup remains absent.
  • Correct the stale logout fixture to compare the original canonical owner-readback bytes, without changing production behavior.

Validation and proof limits

Latest correction 3d801289900a92bdd4384f20b264cf1f60a75f74 maps only the two deliberate V35 SQLSTATE 23505 identity-conflict messages to the canonical domain denial, preserving unrelated integrity errors and all SQL guards. The V59 retained-source fixture reads its original stored binding directly rather than calling a V61-era reader. Combined Account/World checks, JARs, formatting, analyzers, coverage and documentation pass (343 World and 964 Account clean unit outcomes). All 126 World and 393 Account integration cases skip locally without Docker. Corrected exact-source CI 37404171270 is pending under one observer; no corrected PostgreSQL pass is claimed.

Previous exact-source CI37399537835 on 3b48b7493766acf80e616eb48dba604081131379 failed: World association 9/10 passed and preparation 1/1 passed without skips; Account cancelled after the V59 fixture exception, with no raw XML available. The changes above address those two defects; passing local skips do not resolve the required execution proof.

Current 3b48b7493766acf80e616eb48dba604081131379 fixes the separately reconstructed frozen-request identity bug using complete semantic binding/owner/freeze/affected-tuple/ordered-graph equality. Independent pure substitutions remain rejected; every existing family/entry/held-authority guard stays intact. The Account V58→V59 retained-row proof now targets V59 exactly rather than accidentally including later columns. Combined checks/JARs/analyzers/docs pass in 1m15; new World regression executes. That historical corrected-state run later failed as described above.

At exact 9c9f01be79bc1696bd2ca5a2e707068603916602, CI37395254176 executes Account pending-reset7 and logout-all17 cleanly and World preparation1 cleanly, all with zero skips. World association10 has six full frozen-plan readback failures/four passes; Account issuer22 has the separate V59-fixture mismatch. Verified runner merge 3a54423ebe6c956a05691c8eae37e223f7134d38 has exact base/source parents and source-identical tree. Aggregate run failed; these are component/storage counts, not authenticated runtime proof.

Current candidate World/Account full checks, boot JARs, formatting, Checkstyle, SpotBugs, coverage, links and Markdown pass. Matching results contain 340 World and 964 Account unit executions with zero failures/errors/skips; unchanged Account results are reused from their completed gate. All 126 World and 393 Account integration cases compile but skip without local Docker. Schema generation, actionlint, Flyway sanity (12 sets/198 files) and diff hygiene pass. Discarded protobuf configuration-cache problems are not cache-support proof.

At previous exact source 678ca7c2c18679242c25d708dcbea1ba45894000, CI37391494393 completed failed. Raw XML proves World association 10 cases executed (9 failed), preparation 1 failed, Account pending reset 7 failed, and logout 17 executed (1 failed), with no skips. These failures exposed four fixture defects: mismatched participant Version scope, a Spring-vs-jOOQ exception assertion, overlong PostgreSQL schema names, and a V59/V60 snapshot reading a V61-only field. All four fixture corrections were published at 9c9f01be79bc1696bd2ca5a2e707068603916602; corrected execution below closes the reset/logout and reserved-tenant assertion defects. The earlier run's merge parents and source-identical tree were verified; no passing credit is assigned to its failed cases.

Historical exact-source CI37376053183, head 25848a5d257af0e610b3654c91c38f73e67242d4, proved all 66 earlier required World PostgreSQL cases cleanly. Root verified raw XML and exact base/source merge ancestry with a source-identical tree. Account executed 17 logout cases: 16 passed and the now-corrected fixture assertion failed. That run does not prove V34/V35/V61 or the new corrected assertion.

The new migrated PostgreSQL definitions invoke the actual writer, not direct canonical-row seeding. They cover immutable retry, no lifecycle churn, complete graph/mappings, substitution and wrong-target rejection, concurrent claims, late rollback, retained-row preservation and function/direct-write denial. Upstream authorization/release/selector fixtures are explicitly synthetic: passing them proves storage composition, not production authorization.

Remaining Gameplay dependency gates

Actual ordinary Account control-ui issuance/active registry/current creator authorization and source-writer participation; authenticated complete owner application and synchronized visibility; every mandatory publish participant (including source-backed Game Logic content and ability-schema manifests); actual derived artifacts/full release evidence; canonical preparation transport and authenticated lifecycle readback; fresh-image LOGIN → explicit JOIN → PLAY → LOOK proof remain open.

No membership RPC, credential path, ring mount, publication, PREPARING, ACTIVE or admission activation is enabled. Gameplay still lacks the completed authenticated lifecycle producer handoff. Owning status and historical evidence: World tracker, Account tracker, and controller records.

No Hosted, CodeRabbit or provider CLI review requested; bounded implementation and component proof grant no review taper or merge readiness.

FireMUD LOC impact

Compared a67b503558ec → 3d801289900a (PR merge-base → head).
PR scope: 87 changed files · 21,442 added textual lines / 256 deleted textual lines.

Section Base LOC Head LOC Δ LOC Change
Overall 912,884 932,413 +19,529 +2.1%
 Source 821,015 840,357 +19,342 +2.4%
  ↳ Code 340,661 349,680 +9,019 +2.6%
  ↳ Tests 480,354 490,677 +10,323 +2.1%
 Markdown 59,942 59,979 +37 +0.1%
 Design 62,630 62,667 +37 +0.1%
  ↳ Architecture 45,433 45,436 +3 +<0.1%
  ↳ Project management 5,920 5,954 +34 +0.6%
  ↳ Observability 2,147 2,147 0 0.0%
  ↳ Operator runbooks 579 579 0 0.0%
  ↳ gRPC API documentation 7,086 7,086 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 5, 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: e9015cb9-94f0-4378-85b0-d0e0f7465b50

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 benhook1013 changed the title World: complete guarded fresh UUID topology storage and exact readback World: guarded canonical topology and immutable frozen graph readback Oct 5, 2026
@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: 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: failure

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

@benhook1013 benhook1013 changed the title World: guarded canonical topology and immutable frozen graph readback Account/World: Draft source ordering and guarded canonical topology Oct 5, 2026
@benhook1013

Copy link
Copy Markdown
Owner Author

World association reuse for Gameplay (non-authorizing storage boundary): published source #3007 3d801289900a92bdd4384f20b264cf1f60a75f74, inherited unchanged by #3011 cf337bc781c325e532f6f875ab7b9fd1e1d2401c and #3012 f03919b6dbbd0ef691bacd561b1abf36c72095eb.

WorldCanonicalInstanceAssociationRepository.readOwnerAssociation(UUID canonicalGameInstanceId) reconstructs and cross-checks the immutable canonical scope, descriptor/release binding, source intake and canonical-Version/private-row provenance. Its constructor requires DSLContext, WorldCompleteLaunchBindingRepository, WorldAuthoredSourceIntakeRepository and WorldAuthoredVersionIdentityRepository. Readback is outside an active owner transaction. A present value is not lifecycle or admission authorization.

Preserve the corresponding receipt classes (WorldCompleteLaunchBindingReceipt, WorldAuthoredSourceIntakeReceipt, WorldAuthoredVersionIdentityReceipt) and shared authored source, descriptor, release, complete-launch and version-state evidence/digests. Keep the complete migration ancestry: V23.1 source intake, V26 complete launch binding, V27 version identity and V34 canonical association; V35 supplies the matching canonical preparation producer, not an inferred association for legacy rows. The association/preparation family originates at 678ca7c2c18679242c25d708dcbea1ba45894000; its owning dependencies are preserved at 6ac6ce2c257734e9eb328b34b5c7b2348a790664 (source intake), 4371105ae332c3f2b56db4b408f235b2261f38df (complete launch binding) and 2ceefac830e6747bd088e075d992457f678adde9 (version identity). Prefer the current complete family, not isolated historical files.

The authenticated same-namespace Game Session preparation producer, complete current release/descriptor and World lifecycle/readback remain prerequisites. MATERIALIZED_UNVERIFIED, a retained PREPARING enum, source receipt or association read does not establish ACTIVE or authorize LOOK/PLAY. Gameplay owns its current-location/LOOK receiver and does not need to edit this preparation writer. Local World 343 unit cases pass; all 126 PostgreSQL cases skip without Docker. Corrected PostgreSQL run37404171270 remains pending, so this handoff claims no corrected database execution or runtime activation.

@benhook1013

Copy link
Copy Markdown
Owner Author

Retiring this donor. Its original scope (23ade102d47f6b0a86d53af540ed0ad6bbc64dac over a67b503558ec96f8659660abc3cf8333069eb80a) is accounted for in develop and the receivers (top #3442 0d60acbf3621bf41d85a1fccc8df46d55dd3a105).

Component here Receiving successor Disposition
World V30 to V35, canonical topology, association and preparation Develop V1005 to V1009 byte-identical Carried
Account V60 logout pending journal Develop V88 Carried
Account V61 reset pending journal Develop V89 Carried
AES-GCM pending-reset verifier envelope and ring scripts Not ported: V89 keeps the Argon2 verifier in the same protection class as accounts.password_hash and clears it at commit or abort Superseded

No review threads. No open PR uses this branch.

@benhook1013
benhook1013 deleted the codex/unit1b-world-canonical-topology branch November 30, 2026 06:57
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