Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ jobs:
run: |
echo "::group::Run Module Validation"
if [[ "${{ matrix.module }}" == "account-service" || "${{ matrix.module }}" == "game-session-service" ]]; then
./gradlew :${{ matrix.module }}:check -PfullCheck --no-build-cache
./gradlew :${{ matrix.module }}:check -PfullCheck --no-build-cache --no-configuration-cache
else
./gradlew :${{ matrix.module }}:check -PfullCheck
fi
Expand All @@ -959,19 +959,33 @@ jobs:
--require-suite integration.net.firedevops.firemud.accountservice.AccountBareLoginExchangeRepositoryIntegrationTest \
--require-suite integration.net.firedevops.firemud.accountservice.repository.AccountConnectTokenIssuanceRepositoryIntegrationTest \
--require-case 'net.firedevops.firemud.accountservice.AccountJoinPostgresIntegrationTest#positiveMembershipSnapshotRejectsScalarAndWrongTenantVersionMaps()' \
--require-case 'net.firedevops.firemud.accountservice.AccountJoinPostgresIntegrationTest#concurrentFirstJoinCannotMixWithCompleteFencedRuntimeMembershipSnapshot()' \
--require-case 'integration.net.firedevops.firemud.accountservice.AccountBareLoginExchangeRepositoryIntegrationTest#claimOnlyTransactionRollsBackPendingExchange()' \
--require-case 'integration.net.firedevops.firemud.accountservice.repository.AccountConnectTokenIssuanceRepositoryIntegrationTest#concurrentExactIssuanceClaimsHaveOneTerminalFirstWriter()' \
--require-case 'integration.net.firedevops.firemud.accountservice.repository.AccountConnectTokenIssuanceRepositoryIntegrationTest#lostIssuanceResponseRecoversExactEncryptedResultFromDurableReadback(Path)' \
--require-case 'integration.net.firedevops.firemud.accountservice.repository.AccountConnectTokenIssuanceRepositoryIntegrationTest#directDeletionOfIssuanceOperationOrResponseEnvelopeIsRejected()' \
account-service

- name: 🔎 Verify Account authority exhaustion rollback proof
if: ${{ matrix.module == 'account-service' }}
run: |
bash dev-tools/validation/inspect-test-results.sh \
--strict \
--require-suite integration.net.firedevops.firemud.accountservice.repository.AccountAuthorityGenerationIntegrationTest \
--require-suite integration.net.firedevops.firemud.accountservice.repository.AccountAuthorityOutboxRepositoryIntegrationTest \
--require-case 'integration.net.firedevops.firemud.accountservice.repository.AccountAuthorityGenerationIntegrationTest#exhaustedAccountCountersRollbackTheWholeCallerTransaction()' \
--require-case 'integration.net.firedevops.firemud.accountservice.repository.AccountAuthorityOutboxRepositoryIntegrationTest#exhaustedSequenceRejectsAppendWithoutChangingEventCheckpointOrCallerSentinel()' \
account-service

- name: 🔎 Verify Game Session PostgreSQL proof case
if: ${{ matrix.module == 'game-session-service' }}
run: |
bash dev-tools/validation/inspect-test-results.sh \
--strict \
--require-suite net.firedevops.firemud.gamesession.repository.ScriptPinOperationRepositoryIntegrationTest \
--require-suite net.firedevops.firemud.gamesession.websocket.GameSessionWebSocketHandlerIntegrationTest \
--require-case 'net.firedevops.firemud.gamesession.repository.ScriptPinOperationRepositoryIntegrationTest#pinAdmissionBaseMustStillMatchTheRowLockedRuntimeAndIsBoundToTheReceipt()' \
--require-case 'net.firedevops.firemud.gamesession.websocket.GameSessionWebSocketHandlerIntegrationTest#websocketFirstPartySignedCompleteContextFailsClosedWithoutMutation()' \
game-session-service

- name: 📦 Build Runtime JAR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The previous target distinguished soft and hard billing states and required even

### Canonical Authority Tuple Boundary

[ADR 0035](./adr-0035-single-record-issued-token-registry.md) owns the single normative `authorityTuple` schema and exact field names. This ADR does not redefine that schema. It applies the tuple unchanged to revocation events, Account leases, gameplay bindings, and active-session cutoff decisions; `issuanceFence` remains the Account composite authority fence copied alongside the tuple, never a substitute for a tuple member. Account carries the same fence through applicable canonical outbox and logout/revocation evidence so consumers cannot accept authority evidence assembled across different Account linearization points.
[JWT and Token Contracts](../system-architecture-jwt-and-token-contracts.md#canonical-authority-tuple) owns the single normative `authorityTuple` schema and exact field names. This ADR does not redefine that schema. It applies the tuple unchanged to revocation events, Account leases, gameplay bindings, and active-session cutoff decisions; `issuanceFence` remains the Account composite authority fence copied alongside the tuple, never a substitute for a tuple member. Account carries the same fence through applicable canonical outbox and logout/revocation evidence so consumers cannot accept authority evidence assembled across different Account linearization points.

Revocation-local admission decisions, exact-binding leases, and gameplay bindings also carry the complete canonical `outboxCheckpoints` set: one exact `{outboxStreamKey, outboxSequence}` entry for every applicable scoped outbox stream. This set is admission freshness evidence, not a member of `authorityTuple` or a general JWT/registry claim, and any stream coordinates embedded in cutoff evidence must equal their corresponding set entries.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The current target already requires periodic refresh, atomic binding replacement

### Canonical Authority Tuple Boundary

[ADR 0035](./adr-0035-single-record-issued-token-registry.md) owns the single normative `authorityTuple` schema and exact field names. This ADR references that schema without redefining it. Rotation-local requirements copy the unchanged tuple into every applicable JWT/registry snapshot, Account lease, gameplay binding, refresh request, rebind proof, installation acknowledgement, and outbox payload; `issuanceFence` is copied alongside it as the Account composite authority fence captured by the issuance transaction or CAS. `membershipBaseline` is the one immutable Account-snapshot carrier `{membershipLifecycleState, membershipVersion, membershipAuthorityGeneration}` for a tenant-bound gameplay binding, where `membershipVersion` is the complete canonical exact one-tenant map `{tenantId: version}`. The baseline remains independent from the other tuple members, and its lifecycle, map, and generation are compared as one object. Alongside the tuple and unchanged baseline, `outboxCheckpoints` is the complete set of one exact `{outboxStreamKey, outboxSequence}` checkpoint for every applicable authority stream in the operation scope, with no aggregate maximum or omitted stream. It is canonicalized in stream-key order and copied unchanged through protected binding metadata, the installation claim and acknowledgement, binding CAS payloads, replacement leases, `TOKEN_ROTATION` operation evidence, retries, reconciliation records, and rotation proofs. Any missing, extra, stale, regressed, or mismatched baseline or checkpoint fails closed; checkpoints prove source position but never become an alternate authority. An authenticated Account event may update only a derived consumer-local projection after its checkpoint is validated, never the Account authority or source evidence.
[JWT and Token Contracts](../system-architecture-jwt-and-token-contracts.md#canonical-authority-tuple) owns the single normative `authorityTuple` schema and exact field names. This ADR references that schema without redefining it. Rotation-local requirements copy the unchanged tuple into every applicable JWT/registry snapshot, Account lease, gameplay binding, refresh request, rebind proof, installation acknowledgement, and outbox payload; `issuanceFence` is copied alongside it as the Account composite authority fence captured by the issuance transaction or CAS. `membershipBaseline` is the one immutable Account-snapshot carrier `{membershipLifecycleState, membershipVersion, membershipAuthorityGeneration}` for a tenant-bound gameplay binding, where `membershipVersion` is the complete canonical exact one-tenant map `{tenantId: version}`. The baseline remains independent from the other tuple members, and its lifecycle, map, and generation are compared as one object. Alongside the tuple and unchanged baseline, `outboxCheckpoints` is the complete set of one exact `{outboxStreamKey, outboxSequence}` checkpoint for every applicable authority stream in the operation scope, with no aggregate maximum or omitted stream. It is canonicalized in stream-key order and copied unchanged through protected binding metadata, the installation claim and acknowledgement, binding CAS payloads, replacement leases, `TOKEN_ROTATION` operation evidence, retries, reconciliation records, and rotation proofs. Any missing, extra, stale, regressed, or mismatched baseline or checkpoint fails closed; checkpoints prove source position but never become an alternate authority. An authenticated Account event may update only a derived consumer-local projection after its checkpoint is validated, never the Account authority or source evidence.

The `membershipBaseline` is a first-class carrier, not a scalar alias or three independently sourced fields. For the tenant-bound rotation scope its `membershipVersion` key set is exactly `{tenantId}`, its value is a JSON string in the canonical grammar `0` or `[1-9][0-9]*`, and only a process-local arbitrary-precision extraction may use that value as a scalar. The complete unchanged baseline is carried and exact-compared through every rotation boundary: the Account refresh request and serializable predicate; `TOKEN_ROTATION` operation stages; replacement lease; pending, active, and retiring registry postconditions; `rebindHandle`; `PENDING` rebind attempt and response envelope; first binding CAS and readback; installation claim, `BINDING_INSTALLED` attempt, acknowledgement request, acknowledgement digest, and Account `INSTALLED` postcondition; second binding CAS; every retry, abort/retire path, and reconciler; and every durable rotation record and proof. A missing, extra, differently keyed, scalarized, stale, regressed, or cross-snapshot lifecycle, map, generation, or baseline fails closed. No stage may reconstruct the baseline from a tuple member, a high-water mark, or a latest-only membership value.

Expand Down
Loading
Loading