Skip to content
Merged
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
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -987,8 +987,19 @@ jobs:
--require-case 'integration.net.firedevops.firemud.gamesession.repository.GameSessionRetainedTenantAssociationRepositoryIntegrationTest#lostAcknowledgementExactRetryReturnsSameOriginalOperationAndBytesWithoutMutation()' \
--require-case 'integration.net.firedevops.firemud.gamesession.repository.GameSessionRetainedTenantAssociationRepositoryIntegrationTest#rollbackLeavesNoAssociationClaimAndNewAttemptSucceeds()' \
--require-case 'integration.net.firedevops.firemud.gamesession.repository.GameSessionRetainedTenantAssociationRepositoryIntegrationTest#concurrentExactFirstWritersReturnSameImmutableReceipt()' \
--require-case 'integration.net.firedevops.firemud.gamesession.repository.GameSessionRetainedTenantAssociationRepositoryIntegrationTest#retainedKeyLookupReturnsHistoricalUuidOnlyForExactNamespaceAndKey()' \
--require-case 'integration.net.firedevops.firemud.gamesession.repository.GameSessionRetainedTenantAssociationRepositoryIntegrationTest#retainedKeyLookupRejectsMalformedAndContradictoryPersistedRows()' \
game-session-service

- name: Upload Game Session retained tenant UUID PostgreSQL proof results
if: ${{ always() && matrix.module == 'game-session-service' }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: game-session-retained-tenant-uuid-postgresql-proof-${{ github.sha }}
path: services/game-session-service/build/test-results/integrationTest/TEST-integration.net.firedevops.firemud.gamesession.repository.GameSessionRetainedTenantAssociationRepositoryIntegrationTest.xml
if-no-files-found: warn
retention-days: 7

- name: Run Game Session management owner UUID PostgreSQL component proof
if: ${{ matrix.module == 'game-session-service' }}
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ The sections below define the target-state runtime contract. Current implementat

- Game Session's Account carriers validate and preserve canonical non-nil UUIDs under the [Identifier Glossary](../../system-architecture-identifier-glossary.md#identifier-format-conventions), including sessions, Account-qualified client requests and presence. Unreadable older session/presence records fail closed without deleting their retained values. This is boundary validation, not Account authorization or an authenticated retained-row mapping. Tenant/catalog carriers, cross-owner UUID support and complete signed-context proof remain unfinished; the Account runtime RPC and first-party credential paths remain denied. Component and runtime proof are tracked in [Player Access](../../../project-management/implementation-tracking/player-access-and-session.md).

- `PLAY` resolves a retained catalog tenant key only through Game Session's immutable, approved association under its exact configured workload namespace, then carries that canonical tenant UUID through Account entitlement, membership and grant requests and matching response predicates. Missing configuration, missing associations or contradictory retained evidence deny before admission; the resolver performs no registration or repair. This read-only consequence does not wire the audited association importer, fresh runtime catalog enrollment or complete Account authority. Those activation and proof gates remain open in [Player Access](../../../project-management/implementation-tracking/player-access-and-session.md).

- The unwired Game Session tenant-source client and authored-world intake implementation are packaged in successor [#2923](https://github.com/benhook1013/FireMUD/pull/2923); the prerequisite producer remains in #2915. They consume the separate [Game Design tenant-source read](../game-design-service/api-contracts.md#runtime-tenant-identity-read-for-game-session), requiring file-backed workload mTLS and exact namespace, request and canonical UUID echoes before returning typed provenance. That source read proves neither a retained Game Session numeric-key association nor catalog enrollment, a realm/namespace, a runtime target or admission. Game Session remains the sole persister of its resolved catalog and pointer; canonical UUID intake and propagation into those current numeric carriers remain required before the denied first-party paths can activate. Exact proof and activation limits remain in [Player Access](../../../project-management/implementation-tracking/player-access-and-session.md).

- The current effective-settings HTTP read is admitted by the service-wide `PRIVILEGED` role requirement, whose shared classifier accepts any global privileged role or any tenant-scoped `tenantAdmin`/`moderator` claim. `EffectiveSettingsController` then trusts query tenant/game selectors and session ids: it can synthesize a requested tenant scope without binding it to the caller's scoped role, or resolve a persisted session without checking that its tenant is authorized by the caller. The current controller/integration tests do not prove denial of a tenant-A caller reading tenant-B settings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This is a non-normative implementation tracker for player access and session. Ca

## Current Status

The retained Game Session tenant-UUID consumer candidate normally incorporates Account password-reset source #2933 `aa22f67be628748205414b954041cd003570d84b`. `PLAY` resolves only the exact workload-namespace/private-key association from an immutable owner-approved receipt, cross-reads its operation, request, canonical UUID and retained key, then uses that UUID in Account entitlement, membership and realm-grant requests and response comparisons. Missing configuration, missing association, nil or contradictory evidence denies without importer, roster or admission mutation. The full composed Account/Common Platform/Game Session checks, both service JARs, formatting/static analysis, links and Markdown passed166tasks(55executed/25from-cache/86up-to-date). Game Session newly executed1,806unit,18non-PostgreSQL integration and1cross-service cases without failures/errors;17unit/137integration/33cross-service cases skipped. Its eleven retained-association PostgreSQL cases, including the two new lookup cases, compiled but skipped without Docker. Account526unit/167skipped PostgreSQL and Common Platform133unit results were reused from cache, not newly executed in this composed run. Normal ancestry preserves the complete Account/Common Platform parent subtree and all original Game Session candidate hunks byte-for-byte. This corrects the numeric tenant request boundary, not audited importer/source registration, fresh runtime catalog enrollment, complete typed entitlement/grant evidence, UUID-aware Game Logic/Social/moderation consumers, authenticated positive transport proof or runtime activation. The membership RPC, credential paths and Account ring mount remain denied.

The Account password-reset source candidate uses the closed `account-auth-password-reset-event/v1` codec and V41 immutable operation receipts. It locks and re-reads the provenance-backed Account/source identity before consuming the existing one-use token, then commits the password verifier, Account generation/source-version and local-fence advances, event/checkpoint and receipt together. Exact retry proves the unchanged verifier and submitted password against the original immutable receipt/event without a second mutation; changed caller input conflicts, while a superseded verifier fails closed. Missing source enrollment or contradictory history is denied rather than repaired. Local consolidated Account/Common Platform checks, Account JAR, Java formatting, Checkstyle, SpotBugs, JaCoCo, links and Markdown passed. Account executed526unit cases without skips/failures/errors; Common Platform executed133cases in the preceding same-code gate, including six shared codec/vector cases. The final dependency-only check reused the Account unit result from cache rather than executing it again. All167Account PostgreSQL cases compiled but skipped without Docker, including the six new producer cases; the two existing application cases now prove concurrent exact recovery and whole-operation rollback when executed. The real PostgreSQL token-hash primary key remains enforced, with only its unsupported binary-index declaration excluded from the jOOQ/H2 code-generation model. Test readback/null and username/index defects were corrected without suppressions or guard weakening; the integration analysis dependency now resolves its required annotation. Delivery, source and recipient authentication/readback, projections, active-binding revocation and live execution remain required pre-v1 work; this slice enables none of the denied membership RPC, credential, catalog or ring-mount paths. Authentication owns the event schema and source/recipient boundary; Account API Contracts owns reset identity and exact retry. The accepted issuer-projection contract allows exact issuer-scoped source/checkpoint evidence for projection bootstrap, advancement, and duplicate verification; this Account-local password-reset producer does not implement the issuer projection or recipient readback required for admission and rebind.

The gameplay Account-UUID carrier is published as [#2932](https://github.com/benhook1013/FireMUD/pull/2932), based on #2929 `67dd8be6b3ef9d886e4b1dd26ec719cf9e29e4b3`. Exact-head [CI 36933819297](https://github.com/benhook1013/FireMUD/actions/runs/36933819297) on `05313dc921aafe4b09b9c2b2649b2097bdc9892d` passed the full Account job and executed 124 listed strict Account cases without skips, failures or errors. Six early Game Session PostgreSQL gates executed 24 cases cleanly; its wider job was canceled after 15 Communication WebSocket cross-service failures, and TCP cross-service logged 13 failures with its database verifier skipped. TCP artifacts show successful LOGIN followed by PLAY denial: Game Session supplies its numeric catalog tenant key where the Account client requires a canonical tenant UUID, so the call fails before the RPC. Resolving the owner-backed UUID association and carrying it through the complete request/response predicates remains required work; no inferred mapping or relaxed guard is permitted. These are component proofs, not complete gameplay admission or transport proof. The independent whole-carrier review accepted and corrected two retained-Redis defects: unreadable presence is preserved by removal, re-registration and index pruning, and unreadable first-party context produces controlled invalid-context denial without persisted-context fallback. All 172 focused presence/LOGIN/PLAY unit cases executed with zero skips, failures or errors; formatting, Checkstyle, SpotBugs and documentation checks passed. Corrected-head CI, retained-Redis runtime and complete transport proof remain open. Game Logic/Social numeric sender/storage, Entity actor ownership, moderation consumers, complete Account authority and authenticated admission remain required owner work; no numeric aliases are inferred. Runtime activation, the membership RPC and Account ring mount remain denied.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private GetTenantMembershipForRuntimeResponse membershipAuthorityUnavailable() {

public GetTenantEntitlementsForRuntimeResponse getTenantEntitlementsForRuntime(
String tenantId, String requestId) {
if (stub() == null) {
if (!AccountIds.isCanonicalNonNilUuid(tenantId) || stub() == null) {
return entitlementAuthorityUnavailable();
}
GetTenantEntitlementsForRuntimeRequest request =
Expand Down Expand Up @@ -370,7 +370,9 @@ public GetTenantEntitlementsForRuntimeResponse getTenantEntitlementsForRuntime(

public GetRealmAccessGrantForRuntimeResponse getRealmAccessGrantForRuntime(
String accountId, String tenantId, String worldSlug, String realmSlug, String requestId) {
if (stub() == null) {
if (!AccountIds.isCanonicalNonNilUuid(accountId)
|| !AccountIds.isCanonicalNonNilUuid(tenantId)
|| stub() == null) {
return realmAccessGrantUnavailable();
}
GetRealmAccessGrantForRuntimeRequest request =
Expand Down
Loading
Loading