Skip to content

Unit 1B: canonical JOIN, CLOSED routing and UUID audit receipts - #2949

Closed
benhook1013 wants to merge 20 commits into
codex/unit1b-account-projection-convergencefrom
codex/unit1b-canonical-join-production
Closed

benhook1013 wants to merge 20 commits into
codex/unit1b-account-projection-convergencefrom
codex/unit1b-canonical-join-production

Conversation

@benhook1013

@benhook1013 benhook1013 commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Boundary

Checkpoint: b33c91402271ba5c1c200cbf028412525bd9c790, 80 unique files against exact #2945 f7847076867569bb3df8c4af1166c1aea350867b. Normal merges preserve published history; the latest correction adds the mandatory platform identity version1/null UUID to the non-UTC audit fixture INSERT, without changing its time-zone assertions or production behavior. It prepares Unit 1B owner storage and readback; it does not complete positive authenticated public JOIN, first OPEN, credential exchange, corpus exit, or merge readiness.

Retained behavior and reconciliation

  • Account V46–V49 preserve UUID connect scope, immutable canonical JOIN intents/policy, the existing membership receipt/head stream, and explicit numeric-V1 versus UUID-V2 audit identity. First JOIN commits the event/checkpoint and positive pair transition atomically without advancing membership generation or issuance fence. Retained receipt bytes, storage keys and history remain unchanged; missing heads cannot reset known history.
  • Incoming due-time retry CAS, bounded nonterminal diagnostics and cleanup/family fences remain intact. The canonical-row isolation fixture compares the actual persisted attempt/due tuple and the complete unchanged row; retained migration fixtures use the actual original migration states and compare every original receipt field.
  • Game Session retains the incoming ID-ordered/chunked legacy event reads and pointer/catalog-revision CAS. Every legacy selector is partitioned from canonical representation-V2 CLOSED records. Canonical catalog, pointer, audit and immutable outcome retain owner-local atomicity and positive never-OPEN origin proof.
  • Game Session migration order is incoming V12 lookup index → V12.1 canonical catalog → V13 CLOSED. The catalog migration is byte-identical to the preserved V12 source (SHA-256 c533e55c4edc8b343a0f954c5a1a4f80edc730d1469a17862c59530f80cc8ae7).
  • Logging order is V2 receipts → V3 projection/backfill → V3.1 typed audit identity → V4/V5 NOT VALID constraints → V6 moderation UUID. V3.1 deliberately reconciles retained legacy uniqueness and malformed-row safety, rather than claiming byte-identical migration preservation. It adds no fabricated mapping or attestation.
  • Existing projection-attestation wire tags remain unchanged; typed identity occupies unused fields. Receipt readback verifies the complete applicable identity/envelope. Live CreateLogEvent remains workload-authenticated then UNAVAILABLE before storage; Account scheduled delivery stays disabled. The unused Create-only conversion adapter was removed, not re-enabled or suppressed.
  • Physical mTLS tests preserve wrong-certificate/workload/namespace/shared-cert/JWT and actual TLS-handshake negatives. Permitted typed receipt reads are mock-backed receiver proof; successful live audit creation is not claimed.
  • The two Require discovery reviewers to finish assigned scope #2982 delegation/review guidance files are carried exactly from develop d3fd1d84569579ff43ea859f0738eec27db34b14 without importing unrelated develop changes.

Preservation evidence

The old 71-path child patch has 41 child-only and 30 mixed paths. No source path is missing: 35 child-only paths remain byte-identical (including the renamed catalog migration), while six receive explicit integration corrections: canonical due-time fixture, client projection-attestation fixture, retained-safe typed Logging migration, staged Logging migration fixture, denied-Create/allowed-readback mTLS fixture, and the CLOSED isolation fixture's renamed ID-ordered reader call. Mixed hunks preserve both canonical child behavior and the parent retry, CAS, cleanup, wire-tag and denial boundaries. This is behavior/hunk adjudication, not a file-count-only assertion.

Before deployment, exact applied Flyway inventory/checksums and retained-row readback must establish the supported lineage. This mechanical candidate ordering does not authorize repair, out-of-order execution, or renumbering migrations already applied in an environment.

Validation and proof limits

Exact predecessor CI37215728716 at e5b0ab35a48ce125efb12788fa7edac1745830a1 completed with aggregate failure but executed cleanly: retained Account audit1, GameInstance UUID1, membership receipt7, scope3, first JOIN7, canonical realm catalog5, CLOSED pointer13 and physical Logging mTLS9, all zero skipped/failures/errors in raw XML. Logging Account UUID migration's five actual methods also passed the job's explicit verification; its raw XML was not uploaded, so no raw-XML hash is claimed for that suite. The separate Account UTC case failed before its assertions because V49 made the omitted fixture identity version mandatory; this checkpoint corrects that INSERT. Shared Python/TCP failures remain separate and the broader Game Session check was canceled. No aggregate-green or enabled-flow claim follows from clean component proof.

The latest one-file fixture correction passed the cumulative descendant #2966 12d6cf5cfab437c0d69583566a6aa0738a644986 seven-module checks/five JARs/schema generation/docs gate in 30s;353tasks (25executed,328up-to-date). This is composed-tree local proof, not exact-current PostgreSQL execution. The preceding three-file fixture correction passed five-module checks/three JARs/docs in 1m31s;313tasks (41executed,272up-to-date). Unchanged clean task results were reused where up-to-date. Local Docker is unavailable; corrected UTC PostgreSQL execution remains required.

Exact preceding CI37212755277 on e72796326131be7295261eb181c93cc89908fcff finished with aggregate failure. Independently parsed raw XML proves Account identity1, scope/journal3, receipt7 and typed audit3; Logging physical mTLS9, typed migration3.1 case1 and application17, all executed without skips/failures. Its Account retained-outbox and Game Session retained-instance expectations omitted new nullable columns, while three Logging expectations used stale migration counts. This checkpoint preserves every original retained field, checks new markers separately and requires exact ordered migration versions. Later first-JOIN/catalog/CLOSED steps lacked matching XML after their prerequisites failed; they are not claimed as executed. Game Design source-intake logs show five clean executions but no uploaded raw XML; TCP startup has only an HTML report. Separately owned Python/TCP/configuration-cache failures remain explicit; no aggregate-green, fresh-image or activation claim is made.

The previous exact checkpoint d557bd49c0fa6e162af2006be326bd89e5b6f156 CI37209247075 completed with aggregate failure. Root independently parsed and hashed actual XML: canonical scope3 and membership identity1 passed; canonical receipts6/7 passed, with the retained upgrade blocked by V48's migration-owned backfill invoking V41's append-only trigger; all9 physical Logging socket cases passed, but the strict gate required4 obsolete names. Game Session/TCP startup failed because V13 repeated V7's audit columns, and its legacy pair/shape constraints also required integration. Missing first-JOIN, typed Logging migration and catalog/CLOSED XML does not earn proof credit. Shared Python findings remain routed to #2853.

The correction temporarily disables only the named receipt trigger under the migration transaction, backfills the head key without changing original receipt fields, and immediately restores the same runtime guard. Targeted jOOQ ignore markers cover only the PostgreSQL trigger-control statements, not the schema or backfill; PostgreSQL remains authoritative. The retained fixture proves unchanged data/sequence and post-upgrade UPDATE/DELETE rejection. V13 now reuses V7 columns, preserves retained realm/namespace/catalog evidence and its pair invariant, and scopes CLOSED's no-alias shape to representation2. Its new mandatory13th case proves named SQLSTATE23514 alias rejection with no pointer/audit/outcome growth. Logging's strict gate now requires all9 actual denied-Create/allowed-readback and physical peer cases. No proof was removed to obtain a green gate, and runtime paths stay denied.

The preceding e72796326131be7295261eb181c93cc89908fcff checkpoint's consolidated Account/Logging/Game Session/Common Platform/Common Security checks, three service boot JARs, formatting, Checkstyle, SpotBugs, JaCoCo, links and Markdown passed in 2m53s; 313 tasks (56 executed, 257 up-to-date). Account 865 unit and Game Session 2,398 unit + 18 integration + 26 cross-service cases executed cleanly. That gate reused unchanged clean Logging234, Common Platform177 and Common Security126 unit results from preceding runs. Skips remain explicit: Account288 and Logging23 integration cases; Game Session17 unit,190 integration and56 cross-service cases. The earlier 1m43s gate is historical only. Earlier failed iteration gates exposed and corrected fixture constructors/timestamps, due-time signatures, an unused denied-Create adapter, a renamed reader, a missing handwritten representation column, and the PostgreSQL trigger-control statements unsupported by jOOQ; they are not labeled successful gates.

Flyway sanity (12 sets/160 files), actionlint and diff hygiene passed. The preceding composed launch tree passed 230 architecture-contract tests; this is not labeled exact-head architecture proof for this correction. Local PostgreSQL/Testcontainers cases compile/discover but skip without Docker; a skipped case is not database execution. Corrected exact composed-head runner execution, fresh-image transport composition and deployed proof remain open.

Historical CI37105536769 on composed child 4a6c20ee45e887479171fb54b656c4f7f674232d executed all seven first-JOIN PostgreSQL cases cleanly, without skips; the suite blob is preserved from b383. Historical CI37097862965 executed 56 earlier audit/scope/receipt/catalog/CLOSED cases cleanly. Those are component evidence for their exact earlier trees, not proof of this new Logging/GS lineage or an enabled public flow. Historical successful Create socket cases do not describe the current denied Create path. Neither earlier observer remains active.

Incoming source CI37202688779 independently proved 37 Game Design association/baseline/creation/source PostgreSQL executions and 17 Game Session retained-association cases cleanly. Aggregate CI failed on concretely recorded Python/TCP issues, with the broader Game Session check canceled; it is not aggregate-green or exact-current-child evidence. Python findings are routed to General/#2853 in the controller.

Open owner obligations and activation gates

Complete authenticated canonical JOIN, current entitlement/policy and role/source authority, terminal operation/audit composition and recovery remain open. The first-OPEN World hold must bind NO_PRIOR_POINTER or positively proved EXPECT_CLOSED(pointerVersion,catalogRevision) and the exact canonical ACTIVE instance/version/epoch; this child implements only the Game Session locked-origin prerequisite. The incoming numeric initial-admission hold does not establish canonical World association or complete authenticated hold/readback. Previously OPEN pointers remain excluded, with reopen/replacement compatibility and closure/drain obligations separate.

Canonical source-qualified World lifecycle/descriptor/release proof, authenticated catalog/pointer/target consumers, positive LOGIN/delegation and fresh-image/live proof remain required. Membership RPC, credential/context/catalog/admission activation stay denied. The Account-ring mount remains unpublished pending protected custody, sole materializer, authenticated publication/readback and live readiness. No provider review, merge/automerge, or taper credit is claimed.

FireMUD LOC impact

Compared f78470768675 → b33c91402271 (PR merge-base → head).
PR scope: 80 changed files · 16,837 added textual lines / 287 deleted textual lines.

Section Base LOC Head LOC Δ LOC Change
Overall 815,276 830,632 +15,356 +1.9%
 Source 725,127 740,209 +15,082 +2.1%
  ↳ Code 303,735 310,729 +6,994 +2.3%
  ↳ Tests 421,392 429,480 +8,088 +1.9%
 Markdown 59,336 59,402 +66 +0.1%
 Design 62,016 62,079 +63 +0.1%
  ↳ Architecture 45,243 45,274 +31 +0.1%
  ↳ Project management 5,733 5,765 +32 +0.6%
  ↳ Observability 2,147 2,147 0 0.0%
  ↳ Operator runbooks 579 579 0 0.0%
  ↳ gRPC API documentation 6,849 6,849 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 2, 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: 6212426b-4461-41fb-b8e2-640a2564b49a

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.

@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 76.47059% with 20 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ingadmin/service/impl/LoggingAdminGrpcService.java 61.11% 8 Missing and 6 partials ⚠️
...loggingadmin/service/impl/LogEventServiceImpl.java 71.42% 2 Missing and 4 partials ⚠️

📢 Thoughts on this report? Let us know!

@benhook1013 benhook1013 changed the title Unit 1B: canonical JOIN intent and source-bound realm catalog Unit 1B: canonical JOIN evidence and source-bound CLOSED routing Oct 3, 2026
@benhook1013 benhook1013 changed the title Unit 1B: canonical JOIN evidence and source-bound CLOSED routing Unit 1B: canonical JOIN, CLOSED routing and UUID audit receipts Oct 3, 2026
@github-actions

github-actions Bot commented Oct 4, 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

Consolidated the exact #2949 comparison 813fbb5b5bf5c37c31be2dd54665ce7807fb28b2 over f7847076867569bb3df8c4af1166c1aea350867b. Account #3438 is e4f37e33ace767c5acd85d5118fe7ac218f3f96c over b98f1aa9134808b0fe6b936e5b3e1c164876c3a7, Social #3439 is dc20e20f3135491905281739c134bec2c811c494 over Account, and Player #3440 is 655c9e58682ab9b6ded84055099ea86a6543fbef over Social.

  • Account retains exact Game Session caller/scope and current policy correlation, durable versioned JOIN intent, first versus later transitions, no-write active outcome and immutable operation replay under V39/V1037/V1038. The current operation terminal, event, pair and audit carry the old V48 behavioral obligations and supersede the independent unactivated receipt journal. The actual competing policy/same-intent PostgreSQL case passed and is ancestor 44a0e2934abc85b6b5f1282cdc58cd3ab3bb997c. Actual V38→V39 storage proof passed at e4f37e33a, including preserved heap, original row and xmin, explicit retained v1 identity and alias/nil rejection. Exact caller retry and held pending policy remain owner enforced. The non-UTC fixture still requires explicit v1 identity and remains in its current owning class.
  • Social dc20e20f carries five actual PostgreSQL V1008 report-migration cases. They verify the exact V1007 predecessor and Flyway history, retained/rejected rows and generic numeric log identity, and a competing writer fence. Player keeps the separate V1009 canonical audit receipt implementation and two actual PostgreSQL failures injected after the projection write to prove atomic rollback, in 40f14bf3c8fc55961e5774b875a5df32c45529e6. All the cited actual local methods ran with no skips/errors/failures and scoped static/format checks.
  • Player retains the canonical catalog owner, closed-pointer exact origin/readback and audit/CAS evidence in the forward Game Session lineage. Direct owner reads remain scoped and canonical prepared records remain excluded from the older selectors. The paired current Account/Game Session source docs and owner contracts carry the additive UUID audit, CLOSED routing, and original replay distinctions. The reviewed CI comparison and provenance guards are in the receiving workflow owners.

The original owner-local proof remains independent of future fully protected first JOIN/first OPEN, genuine authority composition and hosted activation. Receiving CI remains a check on the receiving drafts. Open #2960 still targets codex/unit1b-canonical-join-production, so that exact source branch and the pull ref remain available.

@benhook1013
benhook1013 deleted the codex/unit1b-canonical-join-production 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