Skip to content

Unit 1B: fenced UUID-only membership absence snapshots - #2917

Merged
benhook1013 merged 3 commits into
codex/unit-1b-fresh-tenant-creationfrom
codex/unit-1b-fresh-uuid-pair-snapshot
Oct 1, 2026
Merged

benhook1013 merged 3 commits into
codex/unit-1b-fresh-tenant-creationfrom
codex/unit-1b-fresh-uuid-pair-snapshot

Conversation

@benhook1013

@benhook1013 benhook1013 commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Boundary

Stacked on exact #2915 910d0a6f41d60ee7214b610d56f89c51db260413. Unit 1B remains provisional. This is the canonical-UUID pair baseline and fenced never-joined snapshot prerequisite, not a runtime RPC or credential producer.

  • Additive Account V39 extends the existing V36 pair authority table: fresh Game Design provenance requires a null legacy numeric tenant key; approved retained provenance keeps its positive one-to-one bridge. It preserves retained counters and event history and aborts on contradictory preexisting fresh numeric pairs without deleting or reinterpreting them. No numeric alias or parallel authority is introduced.
  • The Account-owned producer fences the exact persisted Account UUID row, rereads the immutable V38 fresh association/claim, locks upstream authority in the existing composite order, and enrolls/reads back one positive durable UUID pair baseline. It returns the existing complete nonadmitting, event-free sequence-zero snapshot. Missing or contradictory provenance, committed history and advanced authority without matching proof remain denied; no generation is reset.
  • Pair repository direct calls require an actual owner transaction before database access. Fresh transition comparisons are null-safe; retained collision checks remain retained-only. Retained absent-JOIN preparation now takes upstream locks in the same order, without changing its enrollment guards or counter semantics.
  • Focused PostgreSQL cases cover exact retry/no mutation, rollback, retained migration preservation and contradiction rejection, source mismatch and advanced history denial. The concurrent snapshot case observes the second transaction blocked by the first Account-row fence through pg_blocking_pids, then verifies a single exact baseline. CI strictly requires both complete suites and named migration/concurrency cases to execute, not skip.
  • The live index corrects Unit 1B: tenant UUID/source producer and recovery prerequisites #2915's obsolete failed-proof claim: its corrected creation/association CI executed all 13 focused cases successfully. That is component database proof, not live authenticated owner handoff.

No positive fresh JOIN, UUID-native public request path, authenticated runtime response, current-authority credential producer, delegated JWT issuance or ring mount activates. The membership RPC and credential paths remain denied; the mount remains unpublished. Complete authenticated producer/consumer and live proof remain required.

Validation and limits

Corrected candidate 50ad699dd54cbc7517425db250a638ca67ebc5e2: 12 unique files on unchanged #2915. Normal ancestry preserves the full parent; no history was rewritten. The added observation records recovery from a final tracker lint failure caught before publication.

Parent diff inspection covered migration/schema behavior, nullable provenance, transaction/fence ordering, retained behavior and focused proof. It caught and corrected the new fixture's overlong username and insufficient held-transaction wait. Validation caught a PostgreSQL-generated constraint-name mismatch in jOOQ's simulator and three fixture null dereferences; those are repaired without changing PostgreSQL constraints or suppressing checks.

Consolidated locked :account-service:spotlessApply :account-service:check :account-service:bootJar -PfullCheck linkCheck lintMarkdown --no-build-cache --no-configuration-cache passed. The implementation run executed 426 Account unit tests, zero failures/errors/skips; the final fixture/null-guard correction gate passed with 70 tasks (15 executed, 55 up-to-date), leaving unchanged unit results up-to-date. All 123 PostgreSQL cases, including eight new fresh-snapshot cases and eight pair-repository cases, compiled/discovered but skipped without Docker. Local green does not establish their runtime behavior. Checkstyle, SpotBugs, JaCoCo, JAR packaging, links/Markdown, Actionlint, all 23 CI-scope contract tests and Flyway sanity (12 sets/121 migrations) passed.

Earlier exact-head CI 36800321082 completed red on 023fcca557278efab398ecaba4f51262847cff17, before the correction. Strict XML-verifier logs establish all eight pair/migration cases executed and passed, zero skips/errors, including both named V39 cases. All eight new snapshot cases executed with zero skips; two failed. The named enrollment/retry, advanced-generation rollback and actual Account-row contention cases executed once and passed, but that does not make the suite green. The failure-injection fixture crosses the pair repository's Spring MANDATORY proxy while setting up Mockito outside an owner transaction, raising IllegalTransactionStateException and leaving an unfinished stub that affects the provenance-negative case. The fixture-only correction below preserves the transaction guard. Raw XML was not uploaded: counts come from strict XML-verifier logs and case diagnoses from HTML artifacts. Game Design creation seven and Account association six cases also executed and passed on this tree. The committed-source strict step skipped, so no source-seven attestation is claimed from this run.

The fixture-only correction now stubs the underlying Mockito target via AopTestUtils; the actual producer still invokes the original Spring proxy inside its owner transaction, performs the real enrollment, then throws to prove rollback. Neither transaction guard nor assertions are relaxed. The corrected Account full check/JAR and static/format gates passed locally; unchanged 426 unit results were up-to-date and all 123 PostgreSQL cases skipped without Docker. Final links/Markdown passed after correcting the last tracker edit. Corrected PostgreSQL execution remains required; the failed run above is retained as incident evidence, not replaced by skipped tests.

Separately owned composed failures remain Automation configuration-cache/formatting, the unchanged Game Design baseline-migration duplicate 9301, shared Ruff and the dev-demo summary validator. None is waived. This manual run covers the composed feature-branch tree, not later unique-diff CI after retargeting. Fresh-image boot, a real cross-owner mTLS/SPIFFE handoff, certificate rotation, deployment/migration retained-data disposition and runtime activation are unproved. The existing retained JOIN suite is unchanged; the lock-order correction has no dedicated deadlock regression case. Upstream event-bearing snapshots, positive fresh membership, full credential/registry composition and protected ring delivery remain owned required work in the Player Access tracker. This draft is neither corpus completion nor merge readiness; no Hosted/CodeRabbit review requested.

@coderabbitai

coderabbitai Bot commented Oct 1, 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: 067b9c19-ace8-4d96-8f44-04c178aa4d3c

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

Autopilot is currently an internal CodeRabbit preview.


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 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@benhook1013
benhook1013 marked this pull request as ready for review October 1, 2026 04:24
@benhook1013
benhook1013 merged commit 8cfea30 into codex/unit-1b-fresh-tenant-creation Oct 1, 2026
14 checks passed
@benhook1013
benhook1013 had a problem deploying to trusted-hosted-cluster October 1, 2026 04:52 — with GitHub Actions Failure

This branch had an error being deployed

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