Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
661b1c4
Prepare retained direct-text authenticated lobby and frozen JOIN orig…
benhook1013 Oct 31, 2026
85d4568
Merge commit 'a01d02168583b814657e61e2985f186b0d0d654c' into codex/ga…
benhook1013 Oct 31, 2026
fd136e1
Record fresh authenticated lobby startup qualification
benhook1013 Oct 31, 2026
8e8d1f9
Contain legacy Account callers and verify email token consumption ato…
benhook1013 Oct 31, 2026
863797e
Carry current direct-text review fixes into local Account containment
benhook1013 Oct 31, 2026
0d47422
Record current Account containment held-smoke qualification
benhook1013 Oct 31, 2026
e139ee0
Merge commit 'b27dd64d379c4413da85231826f12fd93f1b8604' into codex/ga…
benhook1013 Oct 31, 2026
6c63d74
Retry transient local demo owner authentication before Entity seeding
benhook1013 Oct 31, 2026
4859ed0
Record fresh image smoke proof for Entity startup retry
benhook1013 Oct 31, 2026
a2cf2e4
Address initial Account containment reviews and qualify certificate d…
benhook1013 Oct 31, 2026
04eda91
Clarify fixture peer denial and certificate workload scope
benhook1013 Oct 31, 2026
13953d4
Return canonical transport failures for deferred Account RPCs
benhook1013 Oct 31, 2026
3c42955
Explain explicit recovery of invalid local certificate bundles
benhook1013 Oct 31, 2026
659317f
Use nonrecursive find for retained certificate link checks
benhook1013 Oct 31, 2026
1c4563c
Assert Account lock ordering before expired email-token refusal
benhook1013 Oct 31, 2026
af52538
Resolve certificate contract temporary roots physically
benhook1013 Oct 31, 2026
dba5460
Apply scoped Overseer stewardship to resolved observations
benhook1013 Oct 31, 2026
a81cdf3
Merge commit 'd78ea72072a2f67d513970ad38069c86fc2b89a6' into codex/ga…
benhook1013 Oct 31, 2026
7a2c36e
Merge commit '4f25e3b1a7172c62e2a907e01e268fdf4f0c7ccf' into codex/ga…
benhook1013 Nov 1, 2026
20f283a
Merge commit 'f289e83398f21db8f1575232f0b120665a785dc0' into codex/ga…
benhook1013 Nov 1, 2026
98cceee
Explain recovery for incomplete retained development certificates
benhook1013 Nov 1, 2026
19fdd13
Merge commit '9745a9944823cde4ef023c730d02c1d666828152' into codex/ga…
benhook1013 Nov 1, 2026
d5046b1
Merge commit '178cc94c4ba73afcc46576a85d74b76c9c24a360' into codex/ga…
benhook1013 Nov 1, 2026
3380984
Merge commit '8195391aa4c24bca458adf86d7729f2daea349c8' into codex/ga…
benhook1013 Nov 1, 2026
393600d
Refuse expired workload certificate authorities before output writes
benhook1013 Nov 1, 2026
50cd06c
Merge commit '63c9560e807b092d14958be7cecb10f69ac3e501' into codex/ga…
benhook1013 Nov 1, 2026
1106cf2
Merge remote-tracking branch 'origin/develop' into codex/gameplay-284…
benhook1013 Nov 1, 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
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,8 @@ jobs:
time bash ./dev-tools/tests/kubectl-version-skew-contract.sh
TIMEFORMAT='bash ./dev-tools/tests/helm-transaction-proof-contract.sh: real=%3R user=%3U sys=%3S'
time bash ./dev-tools/tests/helm-transaction-proof-contract.sh
TIMEFORMAT='bash ./dev-tools/tests/account-workload-namespace-contract.sh: real=%3R user=%3U sys=%3S'
time bash ./dev-tools/tests/account-workload-namespace-contract.sh
TIMEFORMAT='bash ./dev-tools/tests/preview-image-tag-contract.sh: real=%3R user=%3U sys=%3S'
time bash ./dev-tools/tests/preview-image-tag-contract.sh
TIMEFORMAT='bash ./dev-tools/tests/preview-merge-image-tag-contract.sh: real=%3R user=%3U sys=%3S'
Expand All @@ -525,6 +527,8 @@ jobs:
time bash ./dev-tools/tests/ensure-local-compose-env-contract.sh
TIMEFORMAT='bash ./dev-tools/tests/local-compose-mtls-contract.sh: real=%3R user=%3U sys=%3S'
time bash ./dev-tools/tests/local-compose-mtls-contract.sh
TIMEFORMAT='bash ./dev-tools/tests/dev-certs-retention-contract.sh: real=%3R user=%3U sys=%3S'
time bash ./dev-tools/tests/dev-certs-retention-contract.sh
TIMEFORMAT='bash ./dev-tools/tests/smoke-image-env-contract.sh: real=%3R user=%3U sys=%3S'
time bash ./dev-tools/tests/smoke-image-env-contract.sh
TIMEFORMAT='bash ./dev-tools/tests/minio-pr-smoke-bootstrap-contract.sh: real=%3R user=%3U sys=%3S'
Expand Down
28 changes: 18 additions & 10 deletions design/architecture/microservices/account-service/api-contracts.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ In player-facing environments, the interim `jwt-signing-keys` private bundle is

The configurable cleanup margin controls issued-token registry retention only. Gameplay continuity is a separate Game Session policy documented in [Reconnection](../../system-architecture-reconnection.md); Account configuration does not derive or widen that lifetime.

### Kubernetes Workload Namespace

The Account Helm Deployment supplies `FIREMUD_GRPC_WORKLOAD_NAMESPACE` from the pod's `metadata.namespace` through the Kubernetes downward API. The chart reserves this variable and rejects an `extraEnv` entry with the same name; other `extraEnv` entries remain available. Account uses this configured namespace for the workload-peer checks described in the [Account API contract](./api-contracts.md).

### Local Demo Authentication Fixture

The Account receiving flag `FIREMUD_ACCOUNT_LOCAL_DEMO_AUTHENTICATION_ENABLED` defaults to `false`, and `FIREMUD_ACCOUNT_LOCAL_DEMO_AUTHENTICATION_EMAIL` defaults empty. Local/run-owned Compose explicitly enables the flag, configures its demo email and selects `local-fixture` for Account. Active `prod` excludes this fixture even when the flag is set. These settings supply only the Account-local delivery described by the [credential fixture contract](./api-contracts.md#legacy-credential-rpc-and-local-demo-fixture); the Entity seeding flag supplies no receiving authority.

## Implementation Status

The current runtime still uses the shared-HMAC compatibility profile for issuance and validation and has no asymmetric non-exportable signer delegation. Any Secret-backed asymmetric materialization is the explicit interim fallback/drift, not canonical target custody; the current preflight/manifests still treat signing paths and `jwt-signing-keys` mounts as shared workload configuration rather than enforcing Account as the sole private-material consumer, and the classpath fallback remains permitted when the configured JWKS file is absent. The runtime also retains the legacy creator-share percentage setting and provider-mutating code paths; they are unsupported implementation drift, not an accepted fee policy or product capability. These target-state requirements are not proof of current startup, custody, mount enforcement, or creator-commerce disablement; runtime, preflight, and manifest alignment is outside this documentation slice.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,11 @@ Account owns the sole supported v1 Stripe integration for FireMUD hosting-plan b

### Email and Notification Design

This service sends verification and password reset emails using a configured SMTP provider. Public password-reset, username-recovery, and email-verification initiation use normalized email selectors and return the same neutral HTTP success for known and unknown addresses, including when a known-account post-commit SMTP send throws; those exceptions are caught and logged, while unknown requests create no token and schedule no email. **Current gap:** these sends still run synchronously after commit, so SMTP latency remains a timing oracle; durable asynchronous delivery is absent. Focused service tests prove exception containment, not timing resistance, HTTP-level timing parity, or durable delivery, so this is not full account-enumeration resistance. Public email-verification initiation no longer accepts a numeric account selector, while the internal gRPC method remains account-ID based. Notifications for suspicious logins or account events are queued for asynchronous delivery via a gRPC `NotificationService`. Sample templates live under `resources/templates/` and environment variables configure `spring.mail.*` along with `firemud.mail.from`, `firemud.mail.verification-url`, and `firemud.mail.reset-url`. The Account-owned trusted-source context, distributed candidate/source throttles, and limiter-outage behavior from [ADR 0034](../../decisions/adr-0034-layered-abuse-controls-without-attacker-triggered-account-locks.md) remain unimplemented, so neutral responses do not by themselves complete the abuse-control boundary. The gRPC API is defined in [`notification_service.proto`](../../../../protos/account/v1/notification_service.proto).
This service sends verification and password reset emails using a configured SMTP provider. Public password-reset, username-recovery, and email-verification initiation use normalized email selectors and return the same neutral HTTP success for known and unknown addresses, including when a known-account post-commit SMTP send throws; those exceptions are caught and logged, while unknown requests create no token and schedule no email. **Current gap:** these sends still run synchronously after commit, so SMTP latency remains a timing oracle; durable asynchronous delivery is absent. Focused service tests prove exception containment, not timing resistance, HTTP-level timing parity, or durable delivery, so this is not full account-enumeration resistance. Public email-verification initiation no longer accepts a numeric account selector. The internal Account-ID gRPC initiation method currently returns `FAILED_PRECONDITION` before account lookup or mail dispatch because no authorized internal caller is configured; its retained request shape does not grant caller permission. Notifications for suspicious logins or account events are queued for asynchronous delivery via a gRPC `NotificationService`. Sample templates live under `resources/templates/` and environment variables configure `spring.mail.*` along with `firemud.mail.from`, `firemud.mail.verification-url`, and `firemud.mail.reset-url`. The Account-owned trusted-source context, distributed candidate/source throttles, and limiter-outage behavior from [ADR 0034](../../decisions/adr-0034-layered-abuse-controls-without-attacker-triggered-account-locks.md) remain unimplemented, so neutral responses do not by themselves complete the abuse-control boundary. The gRPC API is defined in [`notification_service.proto`](../../../../protos/account/v1/notification_service.proto).

The configured default verification URL is a `GET /auth/verify-email` link while Account exposes verification as `POST /auth/verify-email`; the default reset URL points to `/reset-password`, for which no Account route exists. The canonical Gateway forwards Account auth under `/api/account/auth/**` ([Gateway client behavior](../spring-cloud-gateway/client-behavior.md)). The shipped defaults therefore do not route users to the canonical POST APIs ([Account API Contracts](./api-contracts.md#rest-apis)); deployment must provide an explicit web-client/edge handoff or matching handler, with link reachability proof, before recovery and verification are treated as end-to-end live.
Email verification uses the token association only to locate the Account, then locks the current complete Account row before claiming the exact original token. The conditional SQL consumption matches token row ID, opaque token, Account owner and original expiry, requiring expiry strictly after the captured process-local time. The claim and Account/source update share the writable owner transaction; losing, changed or expired claims cannot mutate Account state, and a failed source update rolls the claim back. Current password, role, email, login modes and UUID provenance come from that locked owner rather than the earlier partial token join. This preserves the existing local timestamp basis described above; it adds no cross-node timezone or retained-row migration claim. Focused implementation and proof status belongs to [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#account-email-verification-and-deferred-currency-containment).

The configured default verification URL is a `GET /auth/verify-email` link, but Account exposes only `POST /auth/verify-email`; the GET has no controller mapping. Although the base and production HTTP configurations allow the POST as public, the configured mail link still requires an explicit browser handoff or matching GET handler to reach it. The default reset URL points to `/reset-password`, for which no Account route exists. The canonical Gateway forwards Account auth under `/api/account/auth/**` ([Gateway client behavior](../spring-cloud-gateway/client-behavior.md)). Deployment must provide an explicit web-client/edge handoff or matching handler, with link reachability proof, before recovery and verification are treated as end-to-end live; see the canonical route/auth contract in [Account API Contracts](./api-contracts.md#rest-apis).

## Original StartSession Source-Protection Storage

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ This document defines Entity Management’s runtime model, persistence ownership
## Implementation Status

- Ordinary Account ownership uses the existing `characters.account_uuid` carrier; V1024 permits fresh ordinary rows without fabricated numeric source evidence and adds an ordinary UUID roster index. It leaves retained numeric/unresolved rows unchanged and does not promote canonical actor provenance. Representation and admission consequences belong to [API Contracts](./api-contracts.md#ordinary-account-ownership); implementation/proof status belongs to the [Entity tracker](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#ordinary-account-uuid-ownership).
- Explicit local demo seeding authenticates the actual demo credentials through the normal Account mTLS `Authenticate` API and takes its canonical UUID response. It fails on unavailable identity or a retained demo character with missing/different UUID ownership, without repairing ownership by name or numeric row. The mTLS Compose profile starts Entity after Account health. This fixture operation grants no production registration, creation or admission authority.
- Explicit local demo seeding authenticates the actual demo credentials through the normal Account mTLS `Authenticate` API and takes its canonical UUID response. Account separately enables its narrowly gated [local credential fixture](../account-service/api-contracts.md#legacy-credential-rpc-and-local-demo-fixture); Entity seed enablement alone grants no receiving authority, OTP access or general credential permission. It fails on unavailable identity or a retained demo character with missing/different UUID ownership, without repairing ownership by name or numeric row. The mTLS Compose profile starts Entity after Account health. This fixture operation grants no production registration, creation or admission authority.

The explicitly enabled local demo owner-authentication client makes at most three Account calls, each with the existing five-second deadline and a 250 ms delay between attempts. Only transport `UNAVAILABLE` and `DEADLINE_EXCEEDED` may retry; domain credential failures, authorization refusal and invalid returned ownership still fail before Entity seeding. Interruption and exhausted retries abort startup without substituting an identity. This is bounded fixture startup resilience, not production authentication or permission to rewrite retained owners.

- The current crafting REST adapter is runtime-reachable legacy implementation drift, not a supported or advertised boundary: the crafting paths and schemas are omitted from the ping-only authoritative OpenAPI, whose root `security: []` applies only to the health contract, so the adapter remains unsupported/nonconformant. The deployed interceptor requires any `AUTHENTICATED` bearer because this non-public path is not in the public-route list, but neither layer provides tenant binding; there is no controller `SessionContext` tenant guard. `CraftingServiceImpl` trusts the DTO's `tenantId`, `resultItemId`, and ingredient item IDs; `CraftingRecipeRepository.findWithIngredientsById` and the update branch use recipe ID alone, while ingredient loading also uses recipe ID alone. The tenant-qualified list methods first select IDs but then re-enter that unqualified lookup, so they are not evidence of an end-to-end tenant predicate. Existing crafting tests do not establish caller-tenant authorization, cross-tenant recipe isolation, or same-tenant result/ingredient ownership.
- World owns guarded, manually composed initial `character_location` storage and its unregistered placement/read boundary. General movement, occupancy and NPC location remain unqualified; `room_instance` is topology, and a Game Session room binding is not World location authority. Entity Management must not add competing location persistence or treat a cache/projection as authoritative.
Expand Down
6 changes: 6 additions & 0 deletions design/project-management/ai-observations.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ A small inbox for unresolved agent, tooling, environment, and workflow issues; s

- `2026-11-01` (Pacific/Auckland): Java filesystem read-only checks can miss same-device bind mounts.
- A proposed `Files.getFileStore(path).isReadOnly()` guard was rejected before implementation: OpenJDK 21 discovers Linux boundaries using device changes and can attribute a bind mount to an ancestor with different read-only state. Exact current-process mountinfo, visible ancestry and pre/post comparison now preserve the readers’ owner/AtomicWriter guards; twelve physical mount cases pass. Next: qualify actual kubelet projection provenance at the existing held deployment boundary; local read-only evidence does not establish it. See [Game Session projection compatibility](../architecture/microservices/game-session-service/operations.md#protected-readiness-projection-compatibility).

- `2026-11-01` (Pacific/Auckland): A transient demo-owner authentication deadline terminated Entity startup.
- #3367 runtime-images run `41227037637` failed after Entity’s single five-second Account call expired; Entity exited and held smoke observed missing health, while matching local source-built smoke had passed. Complete job logs identify the startup deadline, not an authorization rejection or image-profile mismatch. Thirteen focused cases now qualify bounded transient-only fixture retries, including a real loopback deadline/cancellation regression; fresh canonical image-lane held smoke at `6c63d74546` also passes, with independent empty-project cleanup. Remote replacement CI remains required. The underlying cold-start latency remains unknown; recurrence evidence and the exact run were reported to Overseer for tracking.

- `2026-11-01` (Pacific/Auckland): Local executable mode loss and a later successful check masked certificate-contract failure.
- During #3367 CLI4 qualification, `generate-dev-certs.sh` was tracked as `100755` but locally `0644` with `core.filemode=false`; `ensure-dev-certs.sh` therefore failed to execute it. The multi-command caller lacked failure propagation and returned the later documentation check’s success. Root inspected the failed contract log, restored only the generator’s tracked executable permission, and reran the contract and ShellCheck with explicit fail-fast propagation; both pass. The original failure remains retained in R1425 and was reported to Overseer. The mode-change cause is unproven; on recurrence, capture the affected file’s mode before and after the scoped mutation rather than changing unrelated worktrees.
Loading
Loading