Skip to content

Unit 1B: terminal LOGIN recovery contract and protected evidence - #2918

Closed
benhook1013 wants to merge 10 commits into
codex/unit-1b-fresh-uuid-pair-snapshotfrom
codex/unit-1b-terminal-login-recovery
Closed

benhook1013 wants to merge 10 commits into
codex/unit-1b-fresh-uuid-pair-snapshotfrom
codex/unit-1b-terminal-login-recovery

Conversation

@benhook1013

@benhook1013 benhook1013 commented Oct 1, 2026 •

Copy link
Copy Markdown
Owner

Boundary

Normally stacked on #2917 50ad699dd54cbc7517425db250a638ca67ebc5e2; candidate bf6a491cdc7c3558ff6421a9bb8d5df8e0321ca3, 21 unique files. All original recovery and parent commits remain ancestors; no history was rewritten. This draft preserves Overseer's terminal bare-LOGIN recovery extension and implements non-authorizing history/storage/source-correspondence prerequisites. It does not implement or enable the exchange; Unit 1B remains provisional.

  • Authentication owns the recovery rule: an unexpired committed result may be read beyond original Gateway-context expiry only with fresh authenticated proof for its exact operation, current authority and registry/postconditions. Original operation/request/digest/context/result/expiry remain immutable. Recovery never remints, extends expiry or admits gameplay; expired contexts still reject new LOGIN.
  • Separate historical Gateway and Account evidence types verify signatures, the closed schema and complete source projection. Strict-current APIs retain their live deadlines. The committed V35 history reader fences exact Account/approved retained-tenant provenance and checks operation, purpose-bound envelope, hash/JTI and independently signed correspondence.
  • The closed length-framed BareLoginRecoveryPayload retains original context and opaque result under the existing BARE_LOGIN_RESPONSE purpose. The unwired stored V37 reader verifies exact committed operation/request/digest, envelope/result hash, original signed context and matching V35 source, returning redacted immutable provenance only.
  • The new correlation read first verifies a distinct strict-current committed connect source, then compares the complete canonical player/tenant/selected target with original history, including lifecycle/generation. It re-reads unchanged fresh evidence after historical work so time spent waiting/decrypting cannot extend authorization. Original and fresh request/scope/token/time identities remain separate. Historical Gateway expiry now correctly reads signed expiresAt, not source-token exp.
  • Four new required PostgreSQL methods cover exact immutable reread with expired original history, expired/non-distinct fresh source denial, original request/digest and target/lifecycle/generation mismatches, and proved relation-lock waiting past the fresh deadline. The existing Account-fence wait case now exercises this path while preserving its strict-required method name. Early peer/transaction denial precedes collaborators.

Validation and proof limits

Consolidated Account check -PfullCheck, bootJar, affected formatting, Checkstyle, SpotBugs, JaCoCo, links and Markdown passed: 70 tasks, 23 executed/47 up-to-date; 441 unit tests executed, zero failures/skips. All 133 PostgreSQL tests compiled/discovered but skipped locally without Docker. Final status-only docs passed separately (7 tasks, 2 executed/5 up-to-date). Actionlint and all 23 CI-scope contracts passed. Actual execution of the four new correlation cases remains required.

Parent review inspected the complete delegated production/test diff. It corrected an unexpired negative fixture, required final fresh-deadline revalidation after historical work, fixed signed historical expiry, and preserved the strict CI case name. No production guard or impossible persistence fixture was bypassed.

Earlier exact composed CI 36807876923 on a65200c1e4bf9c28eb157a4e2ca34f44234e17b4 executed 11 prior source cases with no skips: 10 passed, one sanitized-error assertion failed and is corrected in the preserved #2918 checkpoint. Strict fresh association 6, pair authority 8, fresh snapshot 10 and Game Design creation 7 passed. Retained JOIN/rollback strict steps skipped after Account check failure; Game Session was cancelled. That run proves neither the new stored-frame nor correlation cases. The exact #2920 composed run 36812079812 is separately watched at 728a0dd09982506e801e21f6154bec420548984a; it contains the earlier stored-frame reader, not this correlation batch.

Remaining gates

Completed exact composed CI 36812079812 on the earlier #2920 head executed all 13 source/history methods without skips: 12 passed, stored-frame positive readback failed with NullPointerException: signedGatewayExpiresAt because the historical context has expiresAt, not exp. This candidate corrects that exact production field and its assertion; corrected database execution remains required. The earlier sanitized-error negative and stored-history rejection passed. Strict Account association 6, pair authority 8, fresh snapshot 10 and Game Design creation/runtime-source 8 passed without skips. Account aggregate JOIN/rollback verifier steps skipped, and Game Session was cancelled; no Script Pin/focused WebSocket proof is claimed. Source counts come from strict verifier logs; failure traces are HTML, not raw uploaded JUnit XML. Other actual Account/GS/TCP identity-carrier and separately owned Game Design/tooling failures remain explicit gates, not automatically dismissed as inherited or flaky.

No real V37 credential producer persists the frame yet. Original result JWT/expiry, separately declared recovery horizon, producer evidence digests, current authority and independent membershipVersion, active result registry and all applicable postconditions, canonical UUID runtime wiring, and terminal credential release remain required. Retained-source support does not imply fresh-tenant exchange support. Encrypted/extracted arrays are cleared, but immutable frame copies have no destruction API; complete memory erasure is not claimed.

The runtime membership RPC, signed-context activation and new credential paths remain denied. The Account ring mount remains unpublished pending protected custody, sole-writer authenticated publication/readback and live readiness. No fresh-image boot, deployed mTLS/rotation, successful end-to-end LOGIN, corpus completion, CodeRabbit taper or merge readiness is claimed. Detailed component history and open obligations remain in the owning Player Access and Session tracker.

@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: c058ec51-7519-4910-83f0-2332d83be9b4

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

❌ Patch coverage is 85.54217% with 12 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...mon/security/HistoricalGatewayConnectEvidence.java 78.78% 4 Missing and 3 partials ⚠️
...ud/common/security/GatewayConnectContextCodec.java 90.00% 3 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

…it-1b-terminal-login-recovery

# Conflicts:
#	design/project-management/implementation-tracking/player-access-and-session.md
@benhook1013

Copy link
Copy Markdown
Owner Author

Superseded under the human-approved four-stage Unit 1B consolidation by #2915 at 351f18a. Exact source bf6a491 is retained in normal merge ancestry; complete source-tree and aggregate hunk/patch comparisons passed. Source proof boundaries, accepted fixes, open obligations and activation limits remain documented in the survivor and owner tracker. Historical review records/comments are retained with no new review credit. No credential/RPC/catalog activation or ring mount is enabled; this is not merge readiness.

@benhook1013 benhook1013 closed this Oct 1, 2026
@benhook1013
benhook1013 had a problem deploying to trusted-hosted-cluster October 1, 2026 04:56 — with GitHub Actions Failure

This branch had an error being deployed

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