Skip to content

Account: admission source, Account-wide pending fences and durable confirmation - #3077

Closed
benhook1013 wants to merge 16 commits into
codex/account-canonical-login-owner-foundationfrom
codex/account-gameplay-admission-owner-20261008
Closed

benhook1013 wants to merge 16 commits into
codex/account-canonical-login-owner-foundationfrom
codex/account-gameplay-admission-owner-20261008

Conversation

@benhook1013

@benhook1013 benhook1013 commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Scope and stack

Account admission prerequisite for Gameplay, stacked on #3047 at 7985e8a6f6354587f5c01649ede3d0cecde9fde2. Published checkpoint: 109a118f7754fe68e77aab0f09c27c751b733d98, 91 unique files. Broader Unit 1B remains parked. Gameplay owns binding/index transitions, installation and cleanup. This unregistered owner foundation is non-admitting; detailed status belongs in Player Access and Session.

Preserved and corrected boundaries

  • Preserve actual issuer/Account/tenant/membership capture, ACTIVE lifecycle, first-JOIN events/roles, demo entitlement/billing receipt, token fence, signed initial-token authentication and committed-issuance comparison. None independently authorizes a later mutation.
  • Preserve canonical lease bytes/digest, V87 allocation/journal, V88 fresh restriction-category births, V89 unknown-decision abort receipts, protected Game Session provisional and distinct World serving-hold clients, authenticated negative readback and cancellation. Raw storage COMMITTED remains denied.
  • Account-wide security-state WAITING and exact ACCOUNT/GLOBAL_ROLES source-change WAITING deny new public admission and first-JOIN commits alongside tenant lifecycle pending journals. Historical committed JOIN replay remains unchanged and grants no fresh admission. V91 versions matching Account tuples without changing logical state/counters/events; source producers lock sorted Accounts before source/operation locks and retain unmatched pending evidence without enrollment.
  • V90 stamps the original finalization XID and retains a separate immutable confirmation. Independent committed visibility, primary/fsync settings, WAL coverage and a subsequent rounded-up database clock must prove durable COMMIT strictly before the unchanged original expiry. No marker, forced flush, new attempt or renewed deadline is created. Protected confirmation creation and independent durable readback are separate transactions, not current authorization or admission.
  • Correct the observer ordering: enforce writable SERIALIZABLE in SQL; establish its fixed snapshot and capture the database-owned insertion fence before heap reads. An independently visible committed row in that same snapshot committed before the fence. Exclude own top-level/subtransactions, then lock Account first and revalidate exact immutable evidence. Enter the insert guard before outer heap reads; exact retained replay suppresses insertion and returns original proof even after expiry. All 21 lease definitions remain and now strengthen direct isolation/read-only, self/subtransaction, exact expired replay and stale-snapshot 40001 proof. Java invokes SQL before locked carrier readback.
  • Repair the JOIN fixture by removing its legacy player role assignment, permitting the canonical fresh empty global-role source birth. Pending-denial and replay assertions are unchanged.
  • Align ADR 0030/ADR 0022 and Redis/session consequences under Overseer judgment. Closed issuer events and bootstrap bind issuer source/version/checkpoint and reconciliation operation, not recipient tuple/fence/full checkpoint set. Recipient evidence remains separate Account-authenticated same-snapshot evidence bound to exact event ID/digest. No closed membership event expansion or issuer-wide Account fence is introduced. This does not implement the missing authenticated issuer snapshot transport.

Proof and known failures

The current exact 109a118f7754fe68e77aab0f09c27c751b733d98 Account CI job failed after 1,355 executions: 1,170 unit and 185 integration cases; three unit and four Redis cases skipped. All seven first-JOIN PostgreSQL cases passed, proving the corrected numeric owner-row fixture. All 21 lease PostgreSQL cases executed: 15 passed and six failed. Five SQL failures establish phase=create with captured insertion fences exactly 72 bytes above unchanged initial/final flush; the sixth Java-owner failure remains redacted UNAVAILABLE, so its phase is unknown. No ordering defect or offending WAL record provenance is established. Hosted checkout succeeded, but its merge SHA/parents/tree were unavailable at the Account-job handoff; the local exact head tree is 0577aea36c4e2a38f2662016c2ede4075b354b24. These are executed proof failures, not skipped tests or successful temporal confirmation. The original physical COMMIT-before-expiry guard remains unchanged and positive admission stays denied.

Corrected local R60 passes full Account checks, generation, formatting, Checkstyle, SpotBugs, JaCoCo, integration compilation, boot packaging, links and Markdown in 2m32s. It executes 1,170 unit and eight non-database integration cases with zero failures/errors; three unit cases and 173 database-dependent integration cases skip. All 21 lease definitions compile/discover but skip locally. Final tracker documentation R61 passes in 12s; diff hygiene passes. These results are not physical COMMIT proof.

The exact preceding 1baaaaa355fe54e7bcd4bbd6ee6d954de776acf1 Account CI job executes 1,170 unit and 185 integration cases, with three unit/four Redis skips and five integration failures. All 21 lease cases execute: 17 pass and four fail; all seven first-JOIN cases execute: six pass and one fails. Checkout ee8db660b9d13c5c3609317ec43ef5d72e901b6d binds exact base/head. Three lease failures identify creation-guard WAL coverage timeout; the Java-owner case exposes generic UNAVAILABLE, not a proved phase. This checkpoint adds internal SQL snapshot/XID/insert/initial-and-final-flush/time/phase diagnostics without changing proof predicates, polling, expiry or Java failure redaction. The attempted Java cause retention failed R59's safety assertion and was removed. The remaining JOIN fixture error used nonexistent membership account_uuid; snapshots now use the actual numeric account_id plus canonical tenant_uuid, preserving separately read Account UUID and no-mutation assertions. Fresh exact-head physical proof is pending.

The preceding exact 2b19e46fa4adb4c3c0c8434f4867cca6d9f86b81 manual CI 37712881776 failed Account: 1,355 cases executed, seven skipped, seven failed. All 21 lease PostgreSQL cases executed with five failures on WAL coverage/pre-lock LSN; all seven JOIN PostgreSQL cases executed with two missing-source fixture failures. Five World-client mTLS, 16 Draft-fence PostgreSQL, seven restriction-birth PostgreSQL, 16 security-operation PostgreSQL and seven source-evidence PostgreSQL cases passed. Run/job SHA identify the exact head; checkout logs were unavailable while aggregate CI remained pending at observer handoff. These are failed runtime proof, not skipped tests. The current snapshot-first and JOIN corrections require fresh physical execution.

The idle predecessor observed a 72-byte pre-capture advance, but raw JUnit cannot identify that record. PostgreSQL source confirms heap reads can emit pruning WAL; do not claim a proven EXCEPTION/subtransaction cause. Unrelated uncovered WAL still conservatively denies. Asynchronous uncovered-WAL, standby/disabled-fsync and remote-failover durability are unclaimed.

Earlier 28a1ef9a53be8c8423f34738d05fe3509a61dc57 CI 37709000871 executed 1,339 Account cases with seven skips/five failures: 18 lease cases executed, five rejected Testcontainers' default fsync=off. Only the durability suite now opts into fsync/synchronous commit from startup; unsuitable external databases are rejected without configuration changes. Automatic 42a2083 CI omitted Account and supplies no execution credit. Historical 17e8f609 CI executed 1,320 cases without failures but predates V90/V91. Controller history retains proof and bounded helpers; none earns provider review/taper credit.

Remaining gates

Successful exact-head PostgreSQL confirmation remains required; the current JOIN fixture is now physically proved. Complete restriction authorization/transition producers, accepting acquire/finalize/reconcile, continuously held current authority, lifecycle source finalization, token retirement/orphan delivery and real Game Session installation/cleanup remain open. Operator-reference issuance/redemption and security-lock recovery are absent; correlation, password reset or a moderation row cannot replace them. The authenticated complete issuer snapshot producer is being prepared in a coherent unregistered child, with explicit reconciliation-operation binding; consumer/database proof remains separate.

Distinct World holds/region assignments remain in #3084 at 09d6c163df96ef64afa6ae2585e68e4ec5ae7bd6. Forward V52 corrects the strict complete-map guard without changing historical migrations. The preceding exact World run proved all nine hold cases and 53 of 54 graph cases; the remaining negative fixture failed its setup assertion before testing SQL. The test-only correction now uses the actual one-region fixture and a nonempty substituted map. Local checks pass; exact-head World physical proof is pending in run 37720089984. World initial component checkpoints still need genuine authenticated Game Session epoch/readback.

All Gameplay handoffs remain OPEN. Runtime, keys and mounts remain denied. No database/remote resources were provisioned; no provider review, queue change, merge readiness or activation is requested.

@coderabbitai

coderabbitai Bot commented Oct 7, 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: 88baa5ed-9629-4f0f-b992-04dd478b1267

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.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Security Summary

✅ Security checks passed or were intentionally skipped

  • ✅ Security gate: success
  • ✅ Trivy filesystem scan: success
  • ✅ Secret compliance validation: success

@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Static Analysis Summary

✅ Static analysis checks passed

  • ✅ CodeQL gate: success
  • ✅ License gate: success

CodeQL breakdown

  • ⏭️ CodeQL analysis (java): skipped
  • ⏭️ CodeQL analysis (javascript-typescript): skipped

@github-actions

github-actions Bot commented Oct 7, 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 Account: exact admission source, lease storage and retry foundation Account: authenticated admission sources and exact lease foundation Oct 7, 2026
@benhook1013 benhook1013 changed the title Account: authenticated admission sources and exact lease foundation Account: admission sources, pending fences and exact cancellation Oct 7, 2026
@benhook1013 benhook1013 changed the title Account: admission sources, pending fences and exact cancellation Account: admission source, cancellation and durable COMMIT confirmation Oct 8, 2026
@benhook1013 benhook1013 changed the title Account: admission source, cancellation and durable COMMIT confirmation Account: admission source, Account-wide pending fences and durable confirmation Oct 8, 2026
@benhook1013

Copy link
Copy Markdown
Owner Author

Retiring this donor into the consolidation stack. Its whole original scope (109a118f7754fe68e77aab0f09c27c751b733d98 over 7985e8a6f6354587f5c01649ede3d0cecde9fde2, 91 files) is accounted for in develop and the published receivers, top #3442 0d60acbf3621bf41d85a1fccc8df46d55dd3a105.

Component here Receiving successor Disposition
Lease storage and allocation (V87) V140, byte-identical, same repository, in develop Carried
Platform-restriction birth (V88) V81 and the same classes in develop; six-case PG18 birth proof in #3438 04f83961 Carried
Unknown-decision abort (V89) V141 and AbortResolutionRepository, V1014/V1015 Superseded
Durable COMMIT confirmation (V90) Writer retired by V145; original-ACK receipt path V144/V1013 with eight PG18 cases on #3438 Superseded
Account-wide pending fences (V91) V143 and AccountGlobalPendingIntentReader (#3438 d46aedeb) Carried
Tenant lifecycle-serving journal (V86, had no producer) World-owned serving admission hold excludes lifecycle mutations; stale lifecycle snapshot proof in #3442 7513a264 Superseded
Source capture, initial token, role sources AccountGameplayAdmissionCurrentSources, bound gameplay credential owner, token fences Superseded
Game Session decision transport CanonicalGameplayAdmissionDecisionReadClient Superseded
Lease gRPC service, codec, readback AccountGameplayAdmissionLeaseGrpcService and common codec Superseded
World hold client Carried in #3442 7513a264, proto byte-identical Carried
First-JOIN pending denial Coordinator and tests extended in d46aedeb Carried
Common evidence, Draft fence edits, docs Present in develop or revised canonically Carried / superseded

This PR never had a physical WAL-unavailable case; the Player access tracker records that gap for the canonical original-ACK path. No review threads and no open PR uses this branch.

@benhook1013
benhook1013 deleted the codex/account-gameplay-admission-owner-20261008 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