Skip to content

Converge selected-target credential evidence and exact receipt retries - #2911

Closed
benhook1013 wants to merge 11 commits into
codex/unit-1b-bare-login-exchangefrom
codex/unit-1b-selected-target-context
Closed

benhook1013 wants to merge 11 commits into
codex/unit-1b-bare-login-exchangefrom
codex/unit-1b-selected-target-context

Conversation

@benhook1013

@benhook1013 benhook1013 commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

JOIN race proof correction checkpoint — 2026-10-01

Published 78c3fe88614708a4cd224800ac0f1bd6d03b310e, 34 unique files on #2881 1d4a42ca2. Normal propagation preserves the complete unchanged unique patch identity 32de4d66429d196c1b96b708d0857a4d2fea191e. The corrected #2880 test observes the actual intent-insert FK contention before JOIN's later explicit lock, preserving all lifecycle and complete DTO/event assertions. Source exhaustion methods now passed in exact predecessor CI 36776333219; JOIN ran 30 cases with the one owned instrumentation failure, connect issuance 9/9 and bare-LOGIN storage 9/9 passed. Account strict gates skipped after that failure. Game Session strict Script Pin 25/25 and WebSocket 16/16 passed with both required methods once, zero skips. Other inherited aggregate failures remain below.

Owner and composed local Account full checks passed; 89 and 98 PostgreSQL cases respectively compiled/discovered but skipped without Docker. Unit tasks were up-to-date, not fresh execution. Exact corrected-tail CI 36778631119 completed aggregate-red but passed both Account strict gates: JOIN 30/30, connect issuance 9/9, bare-LOGIN storage 9/9, generation 2/2, outbox 4/4, all zero skips/failures. The corrected snapshot race and both exhaustion methods each executed once and passed. Game Session strict Script Pin 25/25 and WebSocket 16/16 passed, including both required methods once. All 64 Account and 117 Game Session check tasks executed with build/configuration cache disabled; runtime JAR checks passed. Aggregate failures remain the routed Python/Ruff, dev-demo tooling, Game Design fixture, and Automation formatting defects. Non-draft/queued means scoped reviewability, not merge readiness or runtime activation; all denied paths and ring gates remain in force.

Previous corrected cumulative proof checkpoint — 2026-10-01

Published e8771d2e2b693bba562c8fee835147a022eae704, 34 unique files on exact #2881 5937097fd6e088543e9aaa12e58331cc7277ac24. Normal propagation retains corrected source #2876 a863854e1 and #2880 9b0504145, all prior heads and their unique patches. Fixes the two source fixture failures below without weakening any production or deferred consistency guard. Adds mandatory exact execution of the complete-snapshot/concurrent-first-JOIN method. Account/Game Session commands now disable configuration cache as well as build cache to avoid the proved protobuf-plugin serialization failure, not suppress validation.

Final composed Account full check, links, Markdown, workflow/YAML lint, strict-inspector contracts and tracker validation passed. All 98 local PostgreSQL cases skipped; unit tasks were up-to-date in this final rerun (398 actually executed in the preceding corrected run). Corrected exact-head CI is pending; neither failed predecessor proof nor skipped/cached output is counted as fresh passing proof. Runtime membership RPC, real credential paths and ring mount remain denied/unpublished. Non-draft/queued means reviewable, not Unit 1B complete or merge-ready. No CodeRabbit or Hosted requested.

Previous Account source proof integration (historical)

Published 131e3d60efe2fb947a7b473430a5887cb990c1cc, 34 unique files, normally composed on #2881 dd170e75cbf11df0a56c8ea2406f46418d1ef978. Prior #2911 head and updated parent are ancestors; the entire earlier unique patch retained its stable patch ID before this tail's two-file proof-gate/observation addition. #2876 owns source exhaustion tests at 7258a6b54; #2880/#2881 preserve their 25/19-file unique deltas with identical stable patch IDs.

This head requires executed Account generation/source-version/issuance-fence and outbox-sequence exhaustion rollback proof in addition to the existing JOIN, issuance, exchange, Script Pin and signed-context gates. Composed Account full check, links and Markdown passed: 398 unit cases executed without failure; all 97 local PostgreSQL cases skipped without Docker. Exact-head CI run 36773465024 completed red: the two new source tests executed but failed before their intended proof, on an oversized fixture username and trigger reenabling while deferred trigger events were pending. These are owned #2876 fixture defects under correction, not connection refusal or accepted overflow proof. Both Account strict gates were skipped after the failure. Game Session's 25-case Script Pin and 16-case WebSocket suites and both named methods passed without skips. Gateway/common-security checks also executed and passed. Aggregate inherited failures remain as below; Account also hit the known protobuf configuration-cache issue. Later local fixes are not credited to this run. This remains non-draft/reviewable, not merge-ready or enabled.

Prior boundary checkpoint (historical)

Published checkpoint: b7766564da68ab44441ae2c6e2a6e3e130e11df7, 34 unique files. The final fixture correction passed local :game-session-service:check -PfullCheck with the Docker-backed cases skipped. CI now requires the entire 16-case WebSocket handler suite and the exact current-valid signed-context denial case to pass without skips, alongside its existing 25-case Script Pin proof. Workflow lint, YAML lint, the existing strict-JUnit tooling contracts, links, Markdown and diff hygiene passed. The strict local gate correctly rejects the skipped Docker-backed cases; that expected rejection is not executed runtime proof.

Exact-head run 36769172597 completed. Account's 47 required PostgreSQL cases passed, with all five named cases executed once; Game Session's 25-case Script Pin suite and complete 16-case WebSocket handler suite passed with no skips or failures. Both required Game Session methods, including the current-valid signed-context denial case, executed once and passed. Aggregate CI remains red on the separately identified inherited failures below. Gateway/common-security test outputs were cached in this final run; their unchanged code executed and passed in prior exact 03fd410cc run, not freshly here. This is a reviewable scoped checkpoint, not merge readiness, fresh-image proof or activation.

Stacked child of #2881, preserving exact parent b2a2f31b02e7ad48b0d42a9da7cf7b3acec2782e without rewriting the existing train. This implements the approved convergence of ADR 0035 and the JWT owner on one complete Account-signed selected-target contract, provides the shared Gateway projection/receiving codec, and denies the obsolete incomplete/HMAC first-party path. It is not Unit 1B completion, runtime activation, CodeRabbit intake, or merge readiness.

Account remains the selected-target and authority owner. Gateway preserves that evidence, maps requestId → connectRequestId, jti → connectTokenJti, and iat → issuedAt, and adds its registered receiver, verification time, request identity, and bounded expiry. Context timestamps are UTC epoch seconds; skew cannot reset issuance or extend the source/context deadline. Discovery's RFC3339 digest representation is unchanged.

Implementation and containment

  • Shared closed-schema codec verifies the independent Gateway Ed25519 assertion before interpreting the complete payload, retains its exact envelope/bytes, validates canonical UUID targets, one-tenant authority/version maps, applicable lifecycle/grant/cutoff fields, and arbitrary-precision counters.
  • Shared public/private source vectors exercise the approved producer-to-context mappings, unchanged authority evidence, shorter source expiry, large counters, receiver/key/signature/type/scope/time negatives, and immutable readback. This projection accepts only an already Account-signature/profile-verified source; it is not a JWT verifier or Account authorization.
  • The original-source matcher checks the whole registered projection against the exact verified Gateway context, preserving all Account-carried fields and accepting only a shorter source-bounded Gateway deadline. Real signed vectors prove changed targets, maps/counters, lifecycle/generation and mapped request/JTI/issuance times are rejected. It does not replace current-time, current-authority, durable-operation or recovery checks.
  • Account denies both fresh incomplete connect-token issuance and legacy cached successful replay with transient AUTH_UNAVAILABLE, without minting a token or storing a new successful/terminal-unavailable receipt.
  • Gateway denies first-party context creation/forwarding before replay mutation while its independent signer remains absent. Trusted TCP Proxy behavior is retained.
  • Game Session removes the shared-HMAC/default-key fallback and keeps runtime first-party context parsing denied. Explicit-key component verification is not runtime key publication or a working Account delegation exchange.
  • Canonical and local documentation and implementation trackers distinguish the target contract, the current denial boundary, and unexecuted/unfinished proof. The Account response-ring mount remains unpublished; authenticated environment/secrets publication/readback is a separately recorded platform prerequisite, not satisfied by local receipt validation or Git projection.
  • The distinct local Account-ring receipt now hashes the immutable source transition (create or rotate), not invocation-local retry. First-write, exact retry and lost-result recovery retain identical canonical bytes/digest for unchanged source and Secret readback; the strict verifier rejects operation/predecessor mismatch. This corrects local evidence semantics only, not authenticated publication or transport.

Proof checkpoint

Focused local suites executed: 144 Account service tests, 27 Gateway handshake tests, 14 shared-codec tests, and three Game Session receiver tests; all zero skipped/failing/error cases. Initial test compilation/fixture defects and two static-analysis issues were corrected before this checkpoint.

The consolidated :common-security:check, :common-test-support:check, :account-service:check, :spring-cloud-gateway:check, and :game-session-service:check gate passed, including formatting and applicable Checkstyle, SpotBugs, coverage, tests and test-compilation gates. Common-security and Game Session checks were repeated after the source-matcher and shared Redis fixture correction; the whole-projection matcher was then rechecked with common-security. Links and Markdown passed after the final documentation changes. bash dev-tools/tests/architecture-doc-contracts.sh passed in full at the initial context checkpoint, including allocation, ADR review status, implementation tracking, metrics and all 228 authorization-route regression cases; final tracker changes passed the implementation-tracking validator.

Local module evidence: Account executed 398 unit cases; its 95 integration cases skipped. Gateway executed 182 unit and 14 integration cases, with no skips. Game Session executed 1,694 unit, 18 integration, and one cross-service case; 17 unit, 111 integration, and 33 cross-service cases skipped. Common-security executed 111 unit cases and common-test-support 43 cases without skips. Executed cases have no failures/errors. Docker-backed Game Session denial and database cases were compiled/discovered but skipped locally; these counts are not fresh-image, browser, or enabled first-party LOGIN proof.

The receipt correction passed 44 materializer and 23 bootstrap Python cases, scoped Ruff checks/formatting, implementation-tracker validation, links, Markdown and diff hygiene. These are local/fake-API proofs; concurrent authenticated publication, restored-generation authority, actual sole-writer enforcement and live readback are still required.

Manual CI run 36716593919 failed on the initial context checkpoint 18db99fe0b1f16ecee858b82f30f07106787ed4d, before the receipt/index correction. Account and Gateway jobs passed; Account strict proof executed all 47 required PostgreSQL cases and five named cases exactly once. Game Session executed its integration suite with 16 failures: deleting the HMAC fixtures also removed shared Redis value-operations support needed by normal gameplay presence. These are owned fixture failures, not evidence that the gameplay assertions passed; the restored shared fixture must be revalidated on a new exact head. Its strict PostgreSQL proof was skipped after Gradle failure. Other failures match the prior parent run: Python/Ruff defects in hosted WebSocket smoke tooling, dev-demo summary contract syntax, Automation formatting, and the Game Design Entity baseline fixture duplicate at line 339. The first two fixes belong to #2853; the Automation formatting correction belongs to merged #2882 but is absent through this preserved ancestry; the Game Design fixture is routed to #2872. This run is not exact-head proof of later commits.

Corrected exact-head CI run 36720940449 on 9800f26ec43d18a3c51c5effbf12fb66c5c4d5c9 executed and passed Account, Gateway and Game Session test/integration tasks. Account strict PostgreSQL verification passed all three required suites and five named cases. Game Session strict verification passed the 25-case Script Pin suite and its required assertion exactly once. This clears the 16 earlier shared-fixture failures. The subsequent current-time fixture strengthening also passed affected service/common-security tasks in run 36766661664 at exact 03fd410ccb37552a2e1e11fdb948f99cc58005c2. Account's 47 required PostgreSQL cases and Game Session's 25 required Script Pin cases passed. Successful individual WebSocket methods were not enumerated, so the new strict gate closes that evidence gap instead of inferring its specific execution. Both runs remain aggregate-red on the same inherited tooling, Game Design and Automation failures listed above. Local Game Session checks passed after the strengthening, with 1,713 cases executed and 161 skipped; no executed cases failed. The signed-context WebSocket case is among the Docker-backed local skips, not executed proof.

Prior exact-parent hosted run 36703863842 executed 29 JOIN, nine V35 connect-issuance, and nine V37 bare-LOGIN storage PostgreSQL cases with zero skips/failures/errors. This is inherited exact-parent storage proof, not proof of real credential issuance or enabled end-to-end LOGIN. Local Docker is unavailable; do not count compilation or skipped Testcontainers cases as runtime proof. Fresh-image/live browser/key-delivery proof is unexecuted.

Required open obligations

Complete Account selected-target issuance and durable authoritative source/readback; independent Gateway signer and published verification keys; canonical UUID-to-retained-carrier mapping; complete authenticated membership producer/consumer and real bare-LOGIN delegation exchange; replay readiness/fence/continuity; protected ring custody, sole-writer delivery, authenticated exact receipt publication/readback, and live readiness all remain required before activation. Membership RPC and credential paths stay denied; no Account ring mount is published.

Unreachable HMAC first-party success fixtures are removed rather than retained as misleading canonical proof. Their unique positive Game Session obligations remain explicitly required: structured WORLD_BROWSE/WHO/fresh-PLAY output, authored aliases, first-party policy redaction, and source/scope/cutover/reconnect binding. Retained generic/internal command tests do not replace those first-party integration cases.

No Hosted or CLI/CodeRabbit review was requested, and implementation helpers are not independent corpus-review cycles or taper evidence.

@coderabbitai

coderabbitai Bot commented Sep 30, 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: 7fd585a4-055f-4385-bc1a-c34b4f03645b

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 Sep 30, 2026 •

Copy link
Copy Markdown

@benhook1013 benhook1013 changed the title Converge complete selected-target contexts and deny legacy first-party admission Converge selected-target credential evidence and exact receipt retries Sep 30, 2026
@benhook1013
benhook1013 marked this pull request as ready for review September 30, 2026 20:13
@benhook1013

Copy link
Copy Markdown
Owner Author

Superseded under the human-approved four-stage Unit 1B consolidation by #2880 at ce26220. Exact source 78c3fe8 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.

This branch had an error being deployed

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