Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
7d826cc
Merge commit '87fabbf07e25f1f833152e00ef7439ca5cf5faa0' into codex/ga…
benhook1013 Nov 3, 2026
fec647a
Converge Account billing history and tenant entitlement sources
benhook1013 Nov 3, 2026
91b76bc
test: reconcile billing foundation migration proof boundaries
benhook1013 Nov 3, 2026
c619f59
test: reuse owned database connections in World composition proof
benhook1013 Nov 3, 2026
f5fd19c
test: qualify terminal cancellation with genuine Account authority
benhook1013 Nov 3, 2026
56c1fd5
Merge commit 'ca004f1702f2c125c3c20afce1a87ac9c22e274f' into codex/ga…
benhook1013 Nov 3, 2026
dbc78b0
Merge commit '2412822874dbb04f28f3c2ac9e020b26be69e61d' into codex/ga…
benhook1013 Nov 3, 2026
37b122d
Merge branch 'codex/gameplay-protected-installation-world-registry-20…
benhook1013 Nov 3, 2026
d31b5fe
Prove delayed hosting reads preserve committed authority
benhook1013 Nov 3, 2026
ff0e3e9
Merge branch 'codex/gameplay-protected-installation-world-registry-20…
benhook1013 Nov 3, 2026
20c5c68
Prove immutable hosting freshness across implemented reads
benhook1013 Nov 3, 2026
408b020
Merge branch 'codex/gameplay-protected-installation-world-registry-20…
benhook1013 Nov 3, 2026
a45dcef
Merge branch 'codex/gameplay-protected-installation-world-registry-20…
benhook1013 Nov 3, 2026
cf6e8af
Merge branch 'codex/gameplay-protected-installation-world-registry-20…
benhook1013 Nov 3, 2026
c1d16c4
Merge commit '9a72b5d2e6e783cde6fec96daad6cab5594f93b2' into codex/ga…
benhook1013 Nov 3, 2026
e9977ce
Merge commit 'f9f952cfeca5af893bf8520f429219d35950cf4a' into codex/ga…
benhook1013 Nov 3, 2026
a85f539
Merge commit '3ec044c614ba568de14b28f00377667a48519d5f' into codex/ga…
benhook1013 Nov 3, 2026
58a8a10
Merge commit '9646e31108b6b949edaeac279f005e2cd84eead1' into codex/ga…
benhook1013 Nov 3, 2026
ad4afbd
Merge branch 'codex/gameplay-protected-installation-world-registry-20…
benhook1013 Nov 3, 2026
5581c1a
Carry protected installation review fixes into Account billing founda…
benhook1013 Nov 6, 2026
89ae1be
Carry installation parser proof fixes into Account billing foundation
benhook1013 Nov 6, 2026
1ff1a7c
Carry reconciled installation proof status into Account billing found…
benhook1013 Nov 6, 2026
cf0034f
Carry final installation review fixes into Account billing foundation
benhook1013 Nov 6, 2026
d389c69
Carry final World activation review fixes into Account successor
benhook1013 Nov 6, 2026
7d41f85
Carry latest World installation CLI fixes into #3389 successor
benhook1013 Nov 6, 2026
8fe8ad1
Merge reviewed World installation CI coverage into Account successor
benhook1013 Nov 6, 2026
0e8d6fc
Reject malformed preview head SHAs before lookup
benhook1013 Nov 6, 2026
0b5e682
Merge World PostgreSQL guard fixture correction into Account successor
benhook1013 Nov 6, 2026
9a706a8
Fix Account billing recovery and entitlement failure classification
benhook1013 Nov 6, 2026
f7b0202
Reconcile Account receiver with current World parent and CLI review f…
benhook1013 Nov 7, 2026
26be8fd
Fix Account review follow-ups and reconcile infrastructure parent
benhook1013 Nov 7, 2026
3f9b6ef
Bound all hosting provisioning IO and align held receiving status
benhook1013 Nov 7, 2026
5439fac
Require exact owner refusals and exercised rollback proof
benhook1013 Nov 7, 2026
44625d3
Clarify historical reader proof and guarded owner-update refusal
benhook1013 Nov 7, 2026
3adbf51
Reconcile billing foundation after protected-registry parent merge
benhook1013 Nov 7, 2026
97f4a6a
Separate Account source foundation from unfinished canonical PLAY cut…
benhook1013 Nov 7, 2026
c15507c
Carry mandatory Entity PostgreSQL proof contract with foundation
benhook1013 Nov 7, 2026
415e5a5
Keep hosting creation in its canonical receiver and tighten Account s…
benhook1013 Nov 7, 2026
57eec1e
fix(account): classify malformed bootstrap roster actors as source er…
benhook1013 Nov 7, 2026
ab249aa
fix(account): close entitlement and roster review findings
benhook1013 Nov 7, 2026
d6bee09
fix(account): bound admission reads and tighten owner proofs
benhook1013 Nov 7, 2026
29c012b
fix(account): preserve expected admission refusal classification
benhook1013 Nov 7, 2026
4d1d027
Classify admission source outages and tighten boundary proofs
benhook1013 Nov 7, 2026
96f472e
Tighten entitlement transaction and protected read error boundaries
benhook1013 Nov 7, 2026
77df393
Align entitlement target outcomes and canonical evidence bounds
benhook1013 Nov 7, 2026
06f9808
Distinguish roster server faults and sharpen admission proof
benhook1013 Nov 7, 2026
76f53a0
Merge current develop infrastructure into Account foundation
benhook1013 Nov 7, 2026
7bdf6ed
Fix Account JWKS outage classification and close review proof gaps
benhook1013 Nov 7, 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/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
echo "::error title=Missing preview head SHA::Manual preview dispatches must supply the current PR head SHA." >&2
exit 1
fi
if [[ "$HEAD_SHA" != "${HEAD_SHA,,}" ]]; then
if [[ ! "$HEAD_SHA" =~ ^[0-9a-f]{40}$ ]]; then
echo "::error title=Noncanonical preview head SHA::Expected lowercase hexadecimal input." >&2
exit 1
fi
Expand Down
18 changes: 18 additions & 0 deletions design/architecture/microservices/account-service/api-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ Fresh-enrollment certification is internal Account owner work, not a public regi

The public bootstrap WORLDS source is prepared as an unregistered Account owner and is not yet wired into the existing `ListBootstrapWorlds` facade. Its current schema-backed source is the canonical Account DEMO entitlement; paid-hosting discovery remains unavailable until the subscription schema and retained facade consumers migrate together. Current source and proof status are recorded in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#public-bootstrap-worlds-source-preparation).

Additional unregistered source prepares separate World Management [`TENANT_OPERATION` entitlement reads](#private-tenant-operation-entitlement-read) and Game Session [player-admission entitlement reads](#private-player-admission-entitlement-read), held hosting provisioning and terminal-resolution owners, a signed canonical V2 scope reader, and an Account client for Entity-owned persisted bootstrap-roster discovery. These sources do not replace the existing public discovery/JOIN facade or runtime entitlement RPC, register a receiver, or enable player admission. The scope reader verifies an existing selector rather than authenticating its caller; the roster read supplies transient persisted discovery rather than a selection, actor allocation, session, or admission result. Exact source boundaries and pending proof are recorded in [local source-foundation preparation](../../../project-management/implementation-tracking/player-access-and-session.md#local-source-foundation-preparation).

The opaque `bootstrap-connect-scope` artifact uses canonical non-nil Account UUID subject/claim equality. Both browser discovery and the existing direct-text Account producer obtain that identity from Account persistence; the dedicated reader resolves it back to Account-local storage before existing binding checks. Numeric scopes have no compatibility parser: clients obtain fresh scope evidence through bounded rediscovery, while retained rows/receipts are not rewritten and existing retained-replay guards remain. Caller authentication, public-join policy and the held connect-token issuer are unchanged. Detailed receiving proof belongs to [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#bootstrap-connect-scope-uuid-artifact).

The prepared selected gameplay-rule intake authorization, source-reservation/recovery, read and terminal-settlement owners are standalone and unregistered. Their typed transports add no available API or caller authority. Before enabling any standalone intake receiver (authorization, source read, HELD read, or settlement), its inbound message limit must accommodate the applicable 24 MiB codec bound: authorization and HELD read use `GameLogicIntakeAuthorizationGrpcCodec.MAX_WIRE_BYTES`; source read uses `GameLogicIntakeSourceReadProtoCodec.MAX_WIRE_BYTES`; settlement uses `AccountGameLogicIntakeSettlementEvidence.MAX_WIRE_BYTES`. The authorization receiver also carries the unchanged protected creator credential in binary metadata, so its inbound metadata limit must accommodate `AccountGameLogicIntakeAuthorizationCredentials.MAX_METADATA_BYTES`, which includes base64 wire encoding of the existing 16 KiB credential maximum plus metadata overhead. Binding a service configures neither limit. These are required receiver configurations, not claims about current deployment. The [Account prerequisite tracker](../../../project-management/implementation-tracking/player-access-and-session.md#selected-gameplay-rule-intake-authorization-prerequisite) records qualification and receiving pipeline gaps.
Expand Down Expand Up @@ -245,6 +247,22 @@ Ordinary Account gRPC methods use canonical Account UUID text for Account-valued
- `AddCurrency` – deferred virtual-currency substrate; unavailable as a supported v1 monetization API and not entitlement authority.
- `SpendCurrency` – deferred virtual-currency substrate; unavailable as a supported v1 monetization API and not entitlement authority.

### Private tenant-operation entitlement read

`AccountTenantOperationEntitlementReadService/ReadTenantOperationEntitlement` is a distinct private `TENANT_OPERATION` evidence read defined by the [purpose-specific protobuf](../../../../protos/account/v1/tenant_operation_entitlement_read.proto). Only the exact same-namespace World Management workload may call it over mTLS; method authorization precedes request decoding, and bearer tokens, ambient caller context and caller-supplied workload values cannot replace transport identity. Account derives the evidence's `callerWorkload` from the authenticated peer, never request data.

The request carries schema version 1, `targetNamespace` matching Account's configured workload namespace, canonical non-nil `tenantId` and `requestId` UUIDs, and an explicit `sourceKind` of exactly `PAID_HOSTING` or `NON_PAID_DEMO`. There is no default, inference or fallback between sources. The paid branch requires a fresh current Account hosting receipt for the exact tenant and matching current tenant-authority evidence; the DEMO branch reads Account's canonical current DEMO entitlement. Account captures complete entitlement facts, tenant-authority/billing-cutoff evidence and outbox checkpoints in the selected owner source transaction. Missing, stale, mismatched or unavailable selected-source authority supplies no success evidence. The response echoes the exact request and carries strict canonical evidence bound to its tenant, request, source kind and authenticated World workload. Repeated transport members each require exactly one value, and unknown fields fail closed. The [closed codec](../../../../services/common-platform-core/src/main/java/net/firedevops/firemud/common/account/authority/RuntimeTenantOperationEntitlementGrpcCodec.java) owns the 1 KiB request bound, response wire allowance of 64 KiB + 1 KiB + 32 bytes, five-second deadline and exact response comparisons; the [evidence codec](../../../../services/common-platform-core/src/main/java/net/firedevops/firemud/common/account/authority/RuntimeTenantOperationEntitlementEvidence.java) owns the 64 KiB canonical content bound.

This held source preparation supplies point-in-time eligibility evidence, not capacity commitment, durable evaluation replay, player admission or runtime activation. The receiver and World client remain manually composed and unregistered, and the owner of a later lifecycle action must enforce currentness at use. Source dependencies and proof limits belong to the [local source-foundation tracker](../../../project-management/implementation-tracking/player-access-and-session.md#local-source-foundation-preparation).

### Private player-admission entitlement read

`AccountPlayerAdmissionEntitlementReadService/ReadPlayerAdmissionEntitlement` is a distinct private `PLAYER_ADMISSION` evidence read defined by the [purpose-specific protobuf](../../../../protos/account/v1/player_admission_entitlement_read.proto). Only the exact same-namespace Game Session workload may call it over mTLS; method authorization precedes request decoding, and ambient bearer or caller-supplied workload context cannot replace transport identity. The request carries schema version 1, the complete retained canonical target selector, Account-issued connect scope and explicit initial `game-session-account-delegation` credential. Repeated transport members each require exactly one value, and unknown fields fail closed. The credential is disclosed only to the verified Account peer on this method and must never be logged or persisted as request evidence.

Account verifies the credential subject and current committed issuance, retained scope, current membership including explicit absence, and Account-selected paid-or-DEMO source. Callers cannot select a source family or convert missing paid authority into DEMO. The response echoes only the closed selectors and carries exact canonical `PLAYER_ADMISSION` evidence, never the credential. The [closed codec](../../../../services/common-security/src/main/java/net/firedevops/firemud/common/account/authority/RuntimePlayerAdmissionEntitlementGrpcCodec.java) owns wire bounds, the call deadline and exact response comparisons; the [evidence codec](../../../../services/common-platform-core/src/main/java/net/firedevops/firemud/common/account/authority/RuntimePlayerAdmissionEntitlementEvidence.java) owns the canonical content. `scopeDigest` preserves the retained V2 `sha256:`-prefixed digest, distinct from raw-hex token/registry hashes. Unavailable, changed or expired authority produces no positive or empty-success evidence. Account validates `evaluatedAt` against its own source and scope ordering. The receiving Game Session clock independently requires `now < validUntil`; it does not treat Account's evaluation timestamp as a cross-host not-before bound. No numerical skew allowance or expiry extension is applied.

This read supports only public-production `SHARED`/`PRESEEDED_ONLY` targets. Broader WORLDS discovery does not widen that restriction. It supplies point-in-time evidence, not membership repair, actor selection, capacity commitment, a World hold through Account commit or later admission, or gameplay admission. The receiver and Game Session client remain manually composed and unregistered; genuine scope/LOGIN custody, runtime integration and proof limits belong to the [player-admission source tracker](../../../project-management/implementation-tracking/player-access-and-session.md#player-admission-entitlement-source-preparation).

### Runtime account identity owner read

`RuntimeAccountIdentityService/ResolveRuntimeAccountIdentity` reads Account's already-persisted canonical UUID and provenance for Account's own row. The protobuf in [`runtime_account_identity_service.proto`](../../../../protos/account/v1/runtime_account_identity_service.proto) is the wire authority; Account does not derive an identity from another owner's key or row.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Account owns platform identity, hosted Creator Party/operator and terms currentn

## Implementation Status

The local source-foundation preparation retains the existing numeric subscription schema, runtime reader, public facade and demo seeder. It does not install the V1028-and-later subscription UUID transition, archive numeric subscription rows, retire their reader, or replace the facade with denial stubs. This retained runtime is implementation drift under the canonical [membership and entitlement authority](#membership-and-entitlement-authority), not a second target authority. Schema retirement and a functioning canonical UUID admission replacement remain one downstream receiving boundary; this preparation adds no numeric bridge or dual-authority path. The [Player Access tracker](../../../project-management/implementation-tracking/player-access-and-session.md#local-source-foundation-preparation) owns source and proof status.

The manually composed hosting provisioning and terminal-resolution sources require the downstream canonical subscription schema and cannot establish paid lifecycle or entitlement operation against the retained numeric schema. Separate `TENANT_OPERATION` and `PLAYER_ADMISSION` sources/transports, the V2 scope reader, and Account-to-Entity bootstrap-roster client remain unregistered and non-admitting. The player-admission owner performs JWT/registry, provider and protected target reads outside SQL, then rereads current Account issuance, membership, exact retained scope and selected billing source in a final writable `SERIALIZABLE` transaction; failed commit releases no evidence. Its DEMO proof sources use the existing schema, while paid execution requires canonical subscription storage and genuine provider receipts. Existing JOIN transactions are also explicitly writable and `SERIALIZABLE`; neither local guarantee supplies distributed target protection or completes the canonical JOIN commit gate. The [private player-admission API](./api-contracts.md#private-player-admission-entitlement-read) owns the protocol, [Subscription Management](./subscription-management.md) owns billing lifecycle, and the [tracker](../../../project-management/implementation-tracking/player-access-and-session.md#player-admission-entitlement-source-preparation) owns source/proof limits.

Both existing `bootstrap-connect-scope` producer paths mint the exact persisted Account UUID. Scope validation compares canonical UUID subject/Account claims before owner readback; malformed identity remains `CONNECT_SCOPE_INVALID`, while unavailable owner evidence is `AUTH_UNAVAILABLE`. Retained scope/JOIN rows and digests continue to use private Account row keys without a schema rewrite. This scope-artifact transition itself adds no Game Session text dispatch; the separately qualified ordinary receiving cohort now carries UUID Account identity through the direct-text caller context and Account-to-Entity references. Proof and retained-scope rediscovery limits are recorded in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#bootstrap-connect-scope-uuid-artifact) and [ordinary UUID receiving](../../../project-management/implementation-tracking/player-access-and-session.md#ordinary-uuid-issuer-and-receiving).

JOIN keeps numeric owner keys inside its retained scope, operation, membership and digest records. A private in-process outcome is projected through full Account owner readback only after the JOIN transaction returns, so response identity failure cannot undo a committed receipt or replace its original outcome. Profile repositories embed only partial Account rows; GET/UPDATE response projection rereads the full owner and supplies its verified UUID to the generated mapper. Both existing export paths verify their already-loaded Account once and reuse that UUID while retaining each profile owner, tenant and mapped-output check. The response identity contract is owned by [Account API contracts](./api-contracts.md); implementation and proof limits are recorded in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#account-owned-response-uuid-projection).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,3 +291,11 @@ The current contract still leaves player command orchestration, authored stat/co
- **Live:** The seeded `firemud.look.rooms` entries provide the visible entities for the demo rooms, `ListRoomEntities` is wired into Game Logic's `ResolveLook`, and the resulting instrumentation is captured in [`look-instrumentation.md`](../../../project-management/slice-support/look-instrumentation.md).
- **Stubbed:** Real-time behaviors such as item respawns, stealth/aura-driven visibility, and inventory states still rely on static fixtures so regression tests remain reproducible.
- **Deferred:** Future slices may consume read-only location metadata from the target `character_location` and `npc_location` tables, which are World Management-owned and currently absent; Entity Management is not the location authority and must not create competing tables or fields. Those slices will support multi-instance visibility rules and surface richer context hints (combat alerts, quest markers) while keeping the public DTO focused on display data.

## Account bootstrap persisted actor discovery

`AccountBootstrapRosterReadService.ReadAccountBootstrapRoster` in [account_bootstrap_roster_read.proto](../../../../protos/entity-management/v1/account_bootstrap_roster_read.proto) is a distinct manually composed, unregistered, non-admitting Account discovery boundary. Its purpose-specific certificate interceptor authenticates only the exact same-workload-namespace `account-service` mTLS peer before message decoding. Missing identity is `UNAUTHENTICATED`; another workload/namespace, ambient caller/role or internal-service context, and a request namespace differing from the configured workload namespace are `PERMISSION_DENIED`. The existing canonical roster methods remain Game Session-only and unchanged; ordinary `ListCharactersByAccount` is not a substitute.

The closed request contains canonical non-nil request and Account UUIDs, the configured workload namespace and the complete existing `CanonicalGameplayRosterTarget`, including every source digest, release reference and positive owner counter. It carries no bootstrap credential, `PlayerExecutionContext`, Game Session session, original selection or retained roster reference. The request bound is 4 KiB; unknown fields, noncanonical UUIDs and incomplete targets are invalid. The response echoes the exact entire request and contains at most 100 unique actors ordered by canonical UUID text within 64 KiB. Each actor has its persisted UUID, trimmed control-free display name of at most 100 Unicode code points, and explicit nonnegative `level` sourced from the same eligible `characters` row. The optional wire field must be present even when the actual persisted level is zero; absence is never normalized to zero.

Entity independently reads the complete current Game Session, sealed publication and World target through its existing Entity-only `GetCanonicalGameplayRosterOwnerRead` client and codec before querying persisted rows, compares the exact reconstructed target with the caller's expected target, and rereads that owner target after the short local projection transaction. Only current visible public-production `SHARED` / `PRESEEDED_ONLY` is supported. A valid supported target may return zero eligible actors; unsupported private, isolated, `PLAYER_CREATED` and `AUTO_PROVISIONED` paths remain explicit obligations and cannot return a fabricated empty success. Malformed input is `INVALID_ARGUMENT`, unsupported or changed preconditions are `FAILED_PRECONDITION`, unavailable owner or storage reads are `UNAVAILABLE`, and invalid stored projections or server response-validation failures are `INTERNAL`; failures return no partial projection. This read allocates no actor, selection, snapshot, admission nonce or retention reference and supplies no admission authority or distributed source hold. See [runtime/data limitations](./runtime-and-data.md#account-bootstrap-transient-projection) and the [proof tracker](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#account-bootstrap-persisted-discovery).
Loading
Loading