Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
020583f
feat(account): prepare captured original StartSession World participa…
benhook1013 Oct 10, 2026
65a55d2
test(logging): preserve independent authorization source fences
benhook1013 Oct 10, 2026
3838d6a
test: repair inherited Account PostgreSQL fixture composition
benhook1013 Oct 11, 2026
aa418a7
Fix Account bundle source fence and owner-backed integration fixtures
benhook1013 Oct 11, 2026
a4dbf43
Bind source fence migration to actual PostgreSQL constraint
benhook1013 Oct 11, 2026
ea48641
test(account): retain fresh source evidence after password reset
benhook1013 Oct 11, 2026
81f399e
Align inherited replay fixtures with exact captured authority
benhook1013 Oct 11, 2026
dc85a7c
Align retained Account operator authorization test fixtures with sche…
benhook1013 Oct 11, 2026
c8a1eb2
Correct retained authorization upgrade and truncate guard fixtures
benhook1013 Oct 11, 2026
94aece5
fix(account): preserve original participation corrections after paren…
benhook1013 Oct 12, 2026
5cf5899
Qualify reconciled Account participation proof by candidate and physi…
benhook1013 Oct 12, 2026
b15d9f8
Merge commit '582325b8a9f96376239ff338e3dd7b4ce252e423' into codex/ga…
benhook1013 Oct 12, 2026
5902d05
Merge commit 'ad237a2aa5fe150b4385e6cca39d4568f2fc12ee' into codex/ga…
benhook1013 Oct 12, 2026
99d0ad9
Merge commit '736c48016cfd4540040d6cd8d7ed5975c321592e' into codex/ga…
benhook1013 Oct 12, 2026
17f5a4a
Merge commit '37c41e5034716b3f0cb8bb1d3db3f2484ade747f' into codex/ga…
benhook1013 Oct 12, 2026
75fe4b6
Merge commit '9edbe650d7acbfea9f8aa250bfa4adab900ed347' into codex/ga…
benhook1013 Oct 12, 2026
84b6ec0
Prepare participation source on combined receiving parent
benhook1013 Oct 12, 2026
05314dc
Reconcile receiving corrections into world participation source
benhook1013 Oct 12, 2026
1ba588d
Carry reconciled parent into Account World participation source
benhook1013 Oct 12, 2026
c7edaa1
Carry front review closeout into Account World participation
benhook1013 Oct 12, 2026
3859b0c
Carry final StartSession front fixture and wiring fixes
benhook1013 Oct 12, 2026
604e576
Reconcile participation source with final private issuance parent
benhook1013 Oct 12, 2026
cfeb752
Carry current private LOGIN repairs into World participation source
benhook1013 Oct 12, 2026
d4f215c
Carry current gameplay review documentation into participation source
benhook1013 Oct 12, 2026
29f686f
Carry bounded retained authority replay into participation source
benhook1013 Oct 12, 2026
a6cf102
Carry verified LOGIN and batched replay fixes into participation source
benhook1013 Oct 12, 2026
c7a6140
Carry reviewed LOGIN projection fixes into World participation source
benhook1013 Oct 12, 2026
0a84bfa
Record World participation physical proof and local endpoint limits
benhook1013 Oct 12, 2026
932f2e1
Merge corrected gameplay caller currentness into participation source
benhook1013 Oct 12, 2026
deffd18
Record replacement Account CI and focused currentness composition proof
benhook1013 Oct 12, 2026
ee61332
Recover retained World participation by original StartSession tuple
benhook1013 Oct 12, 2026
c5d109c
Merge commit '7b7d9412aa4900e172cc2357516f9566fc1d17a2' into codex/ga…
benhook1013 Oct 12, 2026
0f049f5
Complete original-tuple recovery fixtures and canonical checks
benhook1013 Oct 12, 2026
962a970
Merge remote-tracking branch 'origin/develop' into codex/gameplay-acc…
benhook1013 Oct 12, 2026
85a92e3
Classify acquisition denials and prove exact Account SQL guards
benhook1013 Oct 12, 2026
c3caf70
Return and preserve original Account operator tuple evidence
benhook1013 Oct 12, 2026
a578e07
Merge remote-tracking branch 'origin/develop' into codex/gameplay-acc…
benhook1013 Oct 12, 2026
f84b95c
Classify historical Account failures and reuse strict capture mapper
benhook1013 Oct 12, 2026
9038727
Merge remote-tracking branch 'origin/develop' into codex/gameplay-acc…
benhook1013 Oct 12, 2026
2a99818
fix(ci): isolate runtime concurrency by complete PR tuple
benhook1013 Oct 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/runtime-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ permissions:
contents: read

concurrency:
group: runtime-images-${{ github.workflow }}-${{ (github.event_name == 'pull_request' || github.event_name == 'repository_dispatch') && format('pr-{0}', github.event_name == 'pull_request' && github.event.pull_request.number || github.event.client_payload.pr_number) || github.event_name == 'workflow_run' && format('branch-{0}', github.event.workflow_run.head_branch) || github.ref }}-${{ github.event_name == 'pull_request' && github.event.action == 'edited' && github.event.changes.base.ref == null && 'metadata' || 'required' }}
group: runtime-images-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && format('pr-{0}-base-{1}-head-{2}-merge-{3}', github.event.pull_request.number, github.event.pull_request.base.sha, github.event.pull_request.head.sha, github.sha)) || (github.event_name == 'repository_dispatch' && github.event.client_payload.pr_number != '' && github.event.client_payload.base_sha != '' && github.event.client_payload.head_sha != '' && github.event.client_payload.merge_sha != '' && format('pr-{0}-base-{1}-head-{2}-merge-{3}', github.event.client_payload.pr_number, github.event.client_payload.base_sha, github.event.client_payload.head_sha, github.event.client_payload.merge_sha)) || (github.event_name == 'repository_dispatch' && format('repository-dispatch-run-{0}', github.run_id)) || (github.event_name == 'workflow_run' && format('branch-{0}', github.event.workflow_run.head_branch)) || github.ref }}-${{ github.event_name == 'pull_request' && github.event.action == 'edited' && github.event.changes.base.ref == null && 'metadata' || 'required' }}
cancel-in-progress: true

jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,20 @@ For the tenant-scoped `tenantAdmin` branch of `firemud.game-session.start-sessio

#### Redeemed StartSession Projection Read

After Game Session has redeemed the original human StartSession reference and allocated its owner attempt and fence, Account may serve `ReadRedeemedOperationProjection` to the exact same-namespace `game-design-service` peer only to read the immutable template-selected source/descriptor for the same original tenant, template, and `controlPlaneRequestId`. The request is bound to the exact canonical pre-authorization tuple, Account-returned authorization-reference fingerprint, original reservation owner/fence, and actual Game Session `ownerAttemptId`/`ownerFence`; Account independently revalidates the original actor and `control-ui` token `jti`, current Account source and reference expiry, and the stored original reservation and redeemed Game Session attempt/fence before returning that projection. No forwarded JWT or opaque reference is sent on this read, and neither workload identity, fingerprint, nor authority-bundle integrity alone establishes authority. The read is credential-free and read-only: it does not renew or extend a reservation/reference, issue or redeem a credential, mutate source state, select a different template or policy, create another owner attempt, commit the owner mutation, or bootstrap/activate a runtime. Exact retries repeat the same binding and return the same operation projection without policy reselection; changed, stale, or ambiguous bindings fail closed. This read is not a commit-spanning CAS proof; owner commit and runtime activation remain separately fenced by their owners.
After Game Session has redeemed the original human StartSession reference and allocated its owner attempt and fence, Account may serve `ReadRedeemedOperationProjection` to the exact same-namespace `game-design-service` peer to read the immutable template-selected source/descriptor for the same original tenant, template, and `controlPlaneRequestId`. The request is bound to the exact canonical pre-authorization tuple, Account-returned authorization-reference fingerprint, original reservation owner/fence, and actual Game Session `ownerAttemptId`/`ownerFence`; Account independently revalidates the original actor and `control-ui` token `jti`, current Account source and reference expiry, and the stored original reservation and redeemed Game Session attempt/fence before returning that projection.

The separately bounded original Game Session read/pin continuation is governed by the [Game Session owner contract](../microservices/game-session-service/api-contracts.md#restricted-original-claim-evidence-continuation); it is not a broader template-selection or mutation permission.
The same RPC may serve the exact configured same-namespace `game-session-service` identity only for the separately bounded original read/pin continuation under the [Game Session owner contract](../microservices/game-session-service/api-contracts.md#restricted-original-claim-evidence-continuation). That continuation must use the unchanged complete original tuple, Account-returned fingerprint, reservation owner and claim fence, and actual owner attempt and fence, while the same stored `PENDING` claim, attempt, and fence remain unexpired. Account independently revalidates the original actor and `control-ui` token `jti`, current Account source and reference expiry, original reservation, and redeemed Game Session attempt/fence for the read. The owner may only read or replay the existing immutable association and its selection pin; this caller cannot select or pin a different template or descriptor. No other Game Session caller is allowed by this mapping.

No forwarded JWT or opaque reference is sent on either read, and neither workload identity, fingerprint, nor authority-bundle integrity alone establishes authority. Both reads are credential-free and read-only: they do not renew or extend a reservation/reference, issue or redeem a credential, mutate source state, create another owner attempt, commit the owner mutation, or bootstrap/activate a runtime. Exact retries repeat the same binding and return the same operation projection without reselection; changed, stale, or ambiguous bindings fail closed. Neither read is a commit-spanning CAS proof; owner commit and runtime activation remain separately fenced by their owners.

The Game Session caller mapping remains limited to that original read/pin continuation; it is not a broader template-selection or mutation permission.

`authorityTuple` is copied without scalarization or field renaming from the complete canonical shape in the [JWT and token contracts](../system-architecture-jwt-and-token-contracts.md#canonical-authority-tuple). `membershipVersion` is the independently applicable Account membership-version map, including `{}` when no membership applies. `HumanAuthorityEvidence/v1` carries the Account-derived actor account, `control-ui` token `jti`, role, assurance only when applicable to that role, account generation, and applicable tenant or target-tenant generation. `AutomationAuthorityEvidence/v1` carries the exact authenticated workload, automation-policy identity/version, and applicable tenant generation. The tagged `issuanceEvidence` arm must agree with Account-derived `issuanceKind`; the inapplicable arm and inapplicable authority-scope identifiers are omitted rather than serialized as `null`, empty objects, or sentinels. `sourceEvidenceId` identifies the one Account authority snapshot and its linearization evidence, while `sourceEvidenceVersion` is the corresponding Account-issued source version; together they are the canonical source fence for the bundle and are carried unchanged with the existing `{bundleVersion, sourceVersion, sourceFence, linearization}` reference. Account derives every authority, generation, membership, freshness, and branch-decision member from that one atomic snapshot and stores the source pair with the issuance record. During redemption, Account exact-compares `sourceEvidenceId`, `sourceEvidenceVersion`, the bundle reference, and every snapshot-bound field against the stored issuance record and the current applicable authority evidence; a missing, changed, or mixed-version value rejects redemption. Consumers reject missing, extra, contradictory, separately sourced, stale, expired, wrongly tagged, or non-canonical bundle fields and must redeem the original reference with Account; a copied bundle never becomes a second authority.

For every forwarded owner-mutation family, ADR 0048's canonical complete `postAuthorizationExecutionTuple` is the required post-authorization identity. It explicitly contains ADR 0048's stable `controlPlaneRequestId` for orchestration, reservation, lookup, and correlation across forwarding, `mutationDigest`, `issuanceKind`, Account-returned `authorizationReferenceFingerprint`, exact authenticated workload and actor/policy binding, exact typed `scope`, normalized `actionFamily`, `actionFamilySchemaId`, `actionFamilySchemaVersion`, typed `target`, immutable typed `targetOwner`, typed `expectedVersion`, typed `mutation`, typed `auditReason`, the exact applicable `authorityTuple`, independent applicable `membershipVersion`, positive `issuanceFence`, `reservationOwnerId`, positive `reservationClaimFence`, the exact canonical `authorityEvidenceBundle/v1` defined above (whose issuance identity carries the tagged `actionFamilyRequestIdentity` for domain action/idempotency), and every schema-bound typed presence/absence value. `targetOwner` is distinct from `target`, immutable after reservation, and is never inferred from current routing or owner state. Reservation and pre-authorization Account issuance/recovery compare `preAuthorizationReservationTuple`; post-authorization tuple completion, owner idempotency, terminal/no-commit proof, result lookup, conflict handling, and any later fresh owner attempt carries and compares its own exact tuple; no participant may omit a required identity because it is unavailable locally.

For human StartSession, Account returns the complete original canonical post-authorization tuple in its authenticated ISSUE, RECOVER, and REDEEM replies, deriving it from its retained original issuance and authority capture independently of the caller. Logging and Admin compares and preserves those exact bytes through completion, recovery, and handoff. Game Session compares its incoming tuple with the independently returned Account tuple at redemption, retains that owner evidence, and compares it again at launch. This comparison includes all four authority-bundle reference fields: `bundleVersion`, `sourceVersion`, `sourceFence`, and `linearization`; `sourceFence` is distinct from `issuanceFence`. Schema and bundle-version integrity alone do not establish owner binding. The returned evidence grants no separate authority and does not replace exact workload/namespace, reference, claim, attempt/fence, currentness, or expiry checks. Existing issued bundle/reference and encrypted recovery-envelope bytes remain unchanged. Retained scalar projections lacking the complete Account tuple remain historical evidence only and fail closed for current execution; no inferred backfill upgrades them.

Within `authorityEvidenceBundle/v1`, `actionFamilyRequestIdentity` is the canonical tagged representation of the applicable domain action/idempotency identity: it contains exactly one `requestIdentityKind` and its corresponding `requestId`. At typed request and durable-record boundaries, that kind selects the corresponding named action-family field rather than creating a generic substitute. For non-moderation mutations, the tag carries `controlPlaneRequestId`, which is the canonical logical request name across HTTP, Java/domain contracts, ADRs, and audit records; the current automation issuance branch is non-moderation-only and therefore uses that arm. Moderation policy intent and owner enforcement use their dedicated `policyIntentRequestId` and `ownerEnforcementRequestId` identities. For those moderation flows, `controlPlaneRequestId` remains the stable ADR 0048 orchestration/reservation/lookup identity and correlation across forwarding, but is correlation-only for domain idempotency and is not an alias or substitute for either dedicated identity. Neither identity authorizes the domain mutation: authorization comes from the Account-issued reference and the owner-side validation and fencing rules. Protobuf contracts may use the language-standard wire spelling `control_plane_request_id`, which maps directly to that same identifier and does not introduce a second identity.

For moderation, the linked records have two distinct lookup roles. The ADR 0048 orchestration/reservation/reconciliation record is located solely by the stable `controlPlaneRequestId`; its phase-appropriate tuple is then exact-compared against the stored record. After issuance, Account's domain-issuance idempotency record and the selected domain owner's mutation/result record are located by the tagged dedicated action-family identity (`policyIntentRequestId` for policy intent or `ownerEnforcementRequestId` for owner enforcement) and then validated against the complete tuple and digest. The owner never uses `controlPlaneRequestId` as its domain idempotency lookup. The same `controlPlaneRequestId` with a changed orchestration tuple conflicts with the ADR 0048 record; a different `controlPlaneRequestId` normally names a distinct orchestration attempt, but for moderation it may carry the same dedicated domain ID, which must still deduplicate or conflict according to the Account/domain record and complete domain tuple. The same tagged dedicated action-family identity with a changed domain tuple conflicts with that domain record. A correlation-only ID change cannot alias or create a second domain mutation, and neither identity grants authority.
Expand Down
Loading
Loading