Skip to content

Account: durable control-ui credentials, recovery and creator source ordering - #3012

Closed
benhook1013 wants to merge 15 commits into
codex/unit1b-creator-bound-authoring-authfrom
codex/unit1b-account-source-recovery
Closed

benhook1013 wants to merge 15 commits into
codex/unit1b-creator-bound-authoring-authfrom
codex/unit1b-account-source-recovery

Conversation

@benhook1013

@benhook1013 benhook1013 commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

Latest creator-bootstrap proof correction

Published 1fcac809c159f5c05261cb3bb4fd4b444f0fb5d7, still 88 files. Exact-source CI37435549047 provides raw passing XML for all nine pre-sign intent, seven credential-authentication and five real credential-producer cases. Six creator-provenance/bootstrap cases have HTML only: five pass, one bootstrap service case expects Long 1 instead of the canonical event sequence string. This checkpoint fixes that assertion and separately runs, captures and strictly verifies all six methods after earlier Account evidence has been preserved. Source counters and production guards are unchanged.

Full Account check/JAR/static/format/coverage/links/Markdown passed in 43s (72 tasks:15 executed,57 up-to-date), with 1,062 matching clean unit results; all 465 PostgreSQL cases compile and skip without Docker. Corrected remote database execution remains open. Validation used the byte-identical merged #3015 owned supervisor from its clean tooling checkout without copying tooling or changing review heads. No activation or merge readiness is claimed.

Boundary and dependency

Stacked on #3011 at bfed931173c329df3591e09aa27d09635d6c047d by a normal merge; current head 1fcac809c159f5c05261cb3bb4fd4b444f0fb5d7, 88 unique files. Complete coherent Account credential/source-ordering preparation stays in this existing child. Game Design reservation/source-delivery and its physical client proof belong to the following child, not this diff. No new creator, credential or gameplay path is enabled. The functioning legacy /auth/login browser/Smoke prerequisite remains unchanged until the real replacement producer and ingress proof are coherent.

Implementation

  • V65 retains immutable security-state requests, complete original capture, V57 ordering and exact event/result readback. Historical counters and source receipts do not substitute for current authorization.
  • V66 retains one targetless control-ui operation, exact Account provenance and original captures, and one immutable purpose-bound encrypted response. Deferred terminal enforcement uses a PostgreSQL constraint trigger. Completion and the missing-envelope negative use explicit timestamptz casts; exact result checks and rollback stay intact.
  • Existing-only currentness verifies complete issuer history and Account/private-fence/fresh-empty role evidence in the same owner snapshot. The closed bundle reference now requires independent canonical sourceFence, with large-counter and incomplete-reference negative tests.
  • V67 supplies the approved distinct versionless CREATE_TENANT ordering family with Game Design creation and Account bootstrap participants, sharing the existing sorted source locks and V57 journal. Both exact definitive owner outcomes remain mandatory; no dummy Version/Draft/World participant.
  • The real Account password/OTP verifier and trusted first-party Cache Redis abuse limiter now support a no-mint credential component bound to an existing V66 operation. V68 atomically retains fresh immutable credential evidence and consumes only the exact eligible OTP challenge. Initial attempts require PENDING; exact recovery requires an unexpired COMMITTED result and fresh authentication. It creates no token, registry record, original capture or creator authorization and is not an enabled public route.
  • The explicit-init canonical Account issuer projection reads the actual issuer owner, applies one registered Coordination CAS, verifies exact no-TTL readback and rereads current source. It rejects malformed, regressed, conflicting or changed evidence and is separate from Game Session’s derived projection. It carries no recipient authorization and is not registered as a runtime bean.
  • CI also captures and strictly requires six new issuer-projection PostgreSQL/Redis methods, preserving the existing requirements.
  • CI strictly requires 29 V65/V66/current-source cases, seven tenant-creation cases, seven V68 credential-storage cases and five real credential-producer PostgreSQL/Cache Redis cases, retaining raw XML. The V65 fixture uses the existing canonical database login-mode serializer while preserving the event's separately canonical array and digest. V68 timestamp-without-zone queries are explicitly typed.

Current CI correction checkpoint

At 0b819ae419284e4474bb42b3e75495e024348159, the correct production compact-JWT bare SHA-256 and semantic request digest are unchanged. Two failed PostgreSQL expectations are corrected: the V74 hash vector is bare hexadecimal, and the malformed-request fixture now actually changes its semantic digest instead of only its excluded correlation ID. The three other failed fixture areas contained two schema-name generators exceeding PostgreSQL's 63-byte identifier limit and a generated username exceeding its VARCHAR(50); those inputs are bounded without weakening assertions. Their exact runtime SQL causes cannot be established from the cancelled run's console alone, so corrected PostgreSQL execution remains required.

CI37425364000 on prior bfd38c7b945194c1ed70a0d7964cf41c6b1943d9 failed/cancelled after reaching Account PostgreSQL methods. It did not finalize required raw XML, and it proves neither all nine V74 methods nor an all-green Account suite. Account now receives the same 30-minute module budget as Game Session rather than 20 minutes; fail-fast remains disabled and strict executed-case/XML requirements are unchanged.

The corrected local Account check, runtime JAR, formatting, Checkstyle, SpotBugs and coverage pass in 45s (69 tasks:13 executed,56 up-to-date), with a local 3GiB heap override after an earlier 1.5GiB daemon GC-thrashing failure. Matching existing XML contains 1,062 clean unit outcomes (reused/up-to-date); all 465 integration cases skip without Docker. Actionlint, validation-summary and PR-retarget workflow contracts pass with the canonical repository Node24 runtime; an initial default-Node attempt failed and is not passing proof. Fresh-image, current-head PostgreSQL and complete producer/registry/activation proof remain open. This fixture checkpoint does not enable login, creator or gameplay paths.

Historical candidate local proof

The current 85-file candidate adds V74's non-authorizing signing reservation to the same V66 operation: preallocated operation/jti/authority-bundle identity, exact existing-only issuer-first source capture, positive durable capture references, and a separate post-sign write-once actual compact-JWT SHA-256 binding. Competing retries and changed source cannot overwrite the original. This does not sign, complete an authority bundle, mutate/activate the registry, or return a credential. The prepared isolated legacy-login denial is deliberately excluded.

Account jOOQ, full Account and Game Logic checks, Account boot JAR, formatting, Checkstyle, SpotBugs, coverage, links and Markdown pass in 1m55s (102 tasks:24 executed,78 up-to-date). Account records 1,062 clean unit executions; all465 integration cases skip without Docker, including all nine new V74 PostgreSQL methods. Game Logic reuses101 clean unit and five non-PostgreSQL integration outcomes; ten PostgreSQL cases skip. Actionlint,25 classifier cases, validation-summary and Gradle-proof tooling contracts, Flyway sanity (12sets/207files), and diff hygiene pass. Configuration-cache storage is discarded for36 protobuf problems. CI's full Account check precedes strict nine-method verification and raw XML capture; actual PostgreSQL execution, migration/trigger/race proof, signer/token fencing, complete immutable bundle, registry activation/recovery and fresh-image proof remain required.

The following 78-file and earlier checks are historical, not exact-head database proof for V74.

The corrected 78-file candidate passes full Account check, boot JAR, formatting, Checkstyle, SpotBugs, coverage, links and Markdown in 1m44s (72 tasks:23 executed,49 up-to-date). Raw XML proves 1,059 unit cases executed cleanly, including five issuer value and two descriptor cases. All456 integration cases compile and skip without Docker, including six actual-issuer/PostgreSQL/Redis methods and five real credential-producer methods. The final documentation gate passes in7s. Actionlint,25 CI-scope classifier cases, validation-summary contract,Flyway sanity (12sets/206files) and diff hygiene pass. Configuration-cache storage was discarded for18 protobuf problems.

The real-producer fixture calls actual AccountServiceImpl, persisted Account/challenge/authority owners, Argon2 and the shared Cache Redis limiter; original capture, upstream FIRST_PARTY_WEB evidence and committed response remain explicit fixtures, not complete issuance or response release. The unsigned source read removes the already-signed-candidate prerequisite without weakening signed comparisons. Corrected-source PostgreSQL/Redis execution, live role/custody/currentness, fresh images and activation remain open. The issuer component advances source reprojection only; complete initial capture and token-fence/signing/registry production are still required.

Historical isolated 70-file checkpoint proof follows; it is not executed PostgreSQL proof for the seven added definitions.

A clean isolated worktree at historical 2a60451b8e0b396b2049000faebffdeba5831c23 (70 files), without the prepared creator child, passes Account/Common Data Runtime checks, Account jOOQ and boot JAR, formatting, Checkstyle, SpotBugs, coverage, links and Markdown in 2m (80 tasks:63 executed,16 from cache,1 up-to-date). Raw XML records 1,052 Account unit cases and16 Common Data Runtime cases executed cleanly; all 443 Account integration cases skip without Docker, including the seven V68 cases. The isolated worktree remains clean. This is not PostgreSQL, fresh-image or live proof. Configuration-cache storage is discarded for18 protobuf problems.

The wider prepared composition also passes the local Account gate, including three new physical Account-client mTLS cases, but those tests are deliberately excluded from this published boundary and are not its unique-patch proof. Actionlint, Flyway sanity (12sets/207versioned files for the prepared composition), and diff hygiene pass. Migration parsing/jOOQ does not execute PostgreSQL triggers.

Executed runner evidence and remaining corrections

At exact prior c459bfd672d99fcd6858011caaf08c954bda2629, CI37415795444 executes all34 focused methods without skips: 24pass/10fail. All34 methods are available as raw XML: twenty-seven V65/V66/current-source cases (17pass/10fail) and seven tenant-creation cases (7pass). The tenant artifact was initially omitted from the first API page; the complete83-artifact listing and downloaded XML establish execution, not a filename or report-overwrite failure. Tenant XML SHA-256 is 6a0af65e4201aee1bddc4bf47998aec209248d05c83d4230800a73f4c7eaf51b. All eight current-source methods and all22 retained-issuer methods pass. Verified merge 175fc31a8a16f8054c27153c25f6c8e42cf55313 has exact d90/c459 parents and a source-identical tree.

The ten failures reduce to two underlying issues now corrected here: production V66 timestamp binding (three methods, including a negative that previously failed before reaching deferred commit), and noncanonical V65 fixture login-mode storage (seven methods). Corrected-state PostgreSQL execution and genuine missing-envelope deferred rejection remain required. No all-green or activation claim follows from the earlier migration fix. Previous e057 CI failed V66 startup; previous3bd CI failed V65 startup. These historical failures are not executions of the target suite.

Remaining gates and ownership

Actual original Account capture, complete current source/Coordination projection, signer, pending/active registry and exact original-response recovery remain open. The new no-mint credential evidence alone cannot release a response or authorize a creator. Protected Account-ring custody/delivery/readback/live readiness, fresh-image and end-to-end proof are unexecuted; mount stays unpublished.

Real protected creator/currentness, Game Design UUID reservation and qualified creation, Account bootstrap commit authorization, automatic authenticated two-owner recovery/source-writer participation, all mandatory publication outcomes, full immutable release and World lifecycle handoff are not complete. New creator/bootstrap attempts remain default-denied. Gameplay owns real LOGIN/source mutation and admission/LOOK consumption. No membership RPC, credential, registry, ring, creator/admission or runtime activation; no provider review, queue mutation or merge readiness is claimed.

Gameplay reuse: complete source/currentness dependency

The new V65 slice must be composed with its existing owner foundations, not copied as seven isolated files. The exact parent already contains these commits; narrow reuse into an older Gameplay tree needs the complete corresponding API, receipt, fixture and migration family.

Owning component Published preservation source
AccountAuthoritySourceReader.readCurrent/readCommittedEvent and fenced source snapshot a54f8da2778b3a40a83a4623e00777aae5b9d9d7
AccountAuthoritySourceEventReadback, logout receipt/repository/codec f4bf487eff16a6ad7db4cffc0f89d0b77d705d76
Password-reset receipt/repository and closed source codec ceeb5046b27893a6714a4c292ac94025a8311a66
Canonical logout request digest 4a2dd38dcfa102baf5682b91580202d818bd7be1
Authority generation and outbox repositories 218216c0a05610d14158f776a4a41c202810dc86, 1bf44c5718a45fdf20c95175dbb5e9a68db408d6
Canonical Account generation projection/store, registered Redis contract and Account CAS 4c61e8938c205e49885cc1f5bde1945e070aca2a
Closed security-state codec/shared vectors and explicit projection schema dispatch da34cc80bad22e60083a43c871d21e853b44cdf4
Exact V57 Draft/source-change binding and ordering repositories c5fd96e935028b72182d58a611152bee6a8e533b
New immutable security-state operation, current/historical receipt reader and all constructor fixtures This child, a8ec25148a3e905c111864ee33acb72351bdc052

Preserve the complete Account migration history through V64 before V65: state vocabulary, canonical UUID provenance, original generation/private-fence and outbox sources, retained enrollment, reset/logout receipts, fresh-empty independent role authority and V57 ordering. V60/V61 pending logout/reset journals are unchanged; do not replace them or rewrite history. V66 is not required solely to consume the security-source reader, but belongs to this coherent Account issuance/recovery child.

AccountAuthoritySourceEventReadback now requires four arguments: outbox, reset operation repository, logout operation repository, security-state operation repository. Supply the mandatory collaborator through Account service and membership producer composition; AccountAuthoritySourceReader's constructor is unchanged. A genuine mutation owner must retain/authenticate the original stable caller/operation evidence and participate in V57 ordering before the source update. Neither a per-save random UUID nor the request's correlation digest supplies that missing authorization. An old generic recipient-fence projection cannot replace the canonical Account source projection. Numeric tenant replies and structural codecs alone grant no gameplay admission.

Current creator/bootstrap CI correction

At published 5105c4fbb22e49e7910a13b7e888af6e57b8bdb5, creator bootstrap compares independently verified complete canonical event JSON, not MembershipEvent object identity. All event, digest, checkpoint, source, role and pair guards remain. The real credential-producer fixture now uses distinct Cache and Coordination Redis containers and asserts the configured endpoints; the production separation guard remains intact.

Account full check, boot JAR, formatting and analyzers pass locally: 2m37s, 68 tasks (20 executed, 48 up-to-date); 1,062 unit outcomes clean. All 465 PostgreSQL cases skip without Docker, so corrected bootstrap and credential-producer execution remains open.

Historical exact-source CI 37430169039 on 0b819 ran the requested 22 database cases: 20 passed, two creator-bootstrap readback cases failed, zero skipped. The nine issuance-intent, seven credential-authentication, one provenance and three operation-repository cases passed. The separately captured real credential-producer suite failed at shared context startup (five cases, one endpoint-alias defect). Artifact merge 51f657248f4fcb2bf054f9fdc766cc91adda7193 has expected ordered parents [bfed9311, 0b819ae4] and tree 92e3251d1c23ffa8ad258bc00ff0922da146df22, identical to the source. Credential authentication has raw XML; the other requested class counts are available HTML reports, not raw XML. Direct checkout logs and the aggregate conclusion were unavailable when the bounded observer finished. These results do not prove the corrected head.

The current assignment is restricted to Gameplay #2898's required creator/application/release/lifecycle and settlement handoffs. Broader control-ui issuance work is preserved locally, not enabled. No provider review or completed Gameplay unblock is claimed.

Corrected exact-head database proof — 2026-10-06

CI37441250783 Account Build and Test completed successfully at source 1fcac809c159f5c05261cb3bb4fd4b444f0fb5d7. Runner merge c2fc20d71028b99942ff644ebb15bc77a496db59 has exact base bfed931173c329df3591e09aa27d09635d6c047d then candidate parents, tree ee4ce4b7e644e04faeeb29804450714604799863. Independent raw-XML parsing proves 18 executed,18 passed,zero failures/errors/skips: six strict original creator-bootstrap cases (provenance1,repository3,service2), five actual PostgreSQL/Redis credential-producer cases and seven credential-authentication cases. Strict capture/verification steps145–147 passed. This is the captured five-suite boundary, not all Account tests, aggregate CI completion, authentic creator-party/terms production or runtime activation.

FireMUD LOC impact

Compared bfed931173c3 → 1fcac809c159 (PR merge-base → head).
PR scope: 88 changed files · 13,537 added textual lines / 177 deleted textual lines.

Section Base LOC Head LOC Δ LOC Change
Overall 945,253 957,455 +12,202 +1.3%
 Source 853,154 865,152 +11,998 +1.4%
  ↳ Code 355,060 360,617 +5,557 +1.6%
  ↳ Tests 498,094 504,535 +6,441 +1.3%
 Markdown 60,022 60,059 +37 +0.1%
 Design 62,710 62,747 +37 +0.1%
  ↳ Architecture 45,473 45,484 +11 +<0.1%
  ↳ Project management 5,960 5,986 +26 +0.4%
  ↳ Observability 2,147 2,147 0 0.0%
  ↳ Operator runbooks 579 579 0 0.0%
  ↳ gRPC API documentation 7,086 7,086 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 6, 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: 03a6a9c8-dfd2-440c-a4ee-d27fae45a6c2

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 6, 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: security-state receipts and encrypted control-ui results Account: immutable recovery and versionless creator authorization ordering Oct 6, 2026
@benhook1013 benhook1013 changed the title Account: immutable recovery and versionless creator authorization ordering Account: durable control-ui credentials, recovery and creator source ordering Oct 6, 2026
@benhook1013

Copy link
Copy Markdown
Owner Author

Routed from exact-source composed CI 37435549047: the creator-bootstrap service case compares MembershipEvent.outboxSequence (canonical decimal string) against Long 1 at line 102. The HTML report shows one service failure; provenance and repository reports pass, but these six cases lack uploaded raw XML. Document is fixing the assertion and adding strict six-case raw XML capture in this owning Account PR; runtime counters and guards remain unchanged.

@benhook1013

Copy link
Copy Markdown
Owner Author

Route 9016ceb6463247f26358d14a30490e5d7448413ebe27eb9dbd8e5abf542f0d58 is fixed at 1fcac80: the canonical event-sequence string assertion is corrected, and all six creator provenance/bootstrap cases now have focused raw XML capture and strict requirements after earlier Account captures. Full local Account check/JAR/docs passes; PostgreSQL skipped without Docker, so corrected remote execution remains open.

@benhook1013

Copy link
Copy Markdown
Owner Author

Retiring this donor into the consolidation stack. Its whole original scope (1fcac809c159f5c05261cb3bb4fd4b444f0fb5d7 over bfed931173c329df3591e09aa27d09635d6c047d, 88 files) is accounted for in the published receivers: #3438 head 13d4b6242d46366975e0089188b14a35d5b9cec7 and develop lineage through #3442 head 8326f96aef2599694c129eb1075da4e4f3bc2880.

Component here Receiving successor Disposition
V65 security-state operations, request/digest/repository V79__account_security_state_operations.sql, same DTO, digest and repository Carried
Four-argument source readback with security-state repository AccountAuthoritySourceEventReadback Carried
V66 issuance operation and encrypted response V90__account_control_ui_committed_issuance.sql, AccountControlUiIssuanceService, AccountControlUiResponseCryptography Superseded
V74 pre-sign intent and signing reservation V90 preallocated token_jti, write-once token_hash, AccountControlUiSignerOwner Superseded
V68 credential attempt evidence Real password/OTP check before PREPARED in AccountControlUiIssuanceService, MAC-matched replay, V1047 replay failure budget Superseded
Cache Redis abuse limiter, RateLimitSubjectHash, Lua bucket service/auth/AccountCredentialAbuse*, account_credential_abuse_{bucket,admission}_v1.lua Superseded
V67 CREATE_TENANT authorization fence V1021 to V1025 tenant-creation intents, source orders and settlements Superseded
Bootstrap canonical event comparison AccountTenantCreationBootstrapService Carried
Issuer generation projection store IssuerGenerationProjection, AccountIssuerGenerationProjectionPublisher Carried
Issuer read in caller's Account snapshot AccountIssuerSourceSnapshotReadOwner Superseded
Control-UI current source, original capture, token checks AccountControlUiCurrentSourceObservationRepository, AccountControlUiCurrentActorVerifier Superseded
Strict CI capture steps, docs Normal Account suite; Account tracker sections Superseded

Proof on published #3438 exact source: seven primary-auth PostgreSQL cases, six global Control-UI PostgreSQL/Redis cases, and the pre-sign refusal with exact recovery case, all with zero failures, errors or skips. No unresolved review threads and no open PR uses this branch. The original commits stay reachable through this PR's retained head.

@benhook1013
benhook1013 deleted the codex/unit1b-account-source-recovery 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