Skip to content
Merged
2 changes: 1 addition & 1 deletion .coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ reviews:
instructions: |
Review docs for canonical-current-state consistency.
Flag obsolete transitional guidance, conflicts between architecture docs, broken repo links, or instructions that contradict AGENTS.md.
Architecture owns technical target state; AGENTS.md owns only repository-wide AI authority, safety, and workflow routing.
Architecture owns technical target state; AGENTS.md states always-on AI intent, safety, roles, and workflow routing; it owns no technical rules.
- path: "design/architecture/decisions/**"
instructions: |
Before challenging an ADR's status or human-review metadata, apply the Status-to-Review Mapping in design/architecture/decisions/README.md, the checked rows in design/project-management/design-alignment/consequential-decision-inventory.md, and the checks in dev-tools/validation/check-adr-review-status.py. Pre-formal ADRs 0001 through 0011 are the historical exception. Do not infer review evidence from ADR-local text alone.
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Thank you for your interest in improving the FireMUD Game Platform! This documen

If you're setting up the project for the first time, follow these steps:

1. Review prerequisites in [**Developer Setup**](DEVELOPER_SETUP.md) and install Java 21, Docker, Node.js, and other tools.
1. Review prerequisites in [**Developer Setup**](DEVELOPER_SETUP.md) and install Java, Docker, Node.js, and other tools.
2. Clone the repository and confirm the root Gradle wrapper works with `./gradlew help`.
3. If you want to customize local Docker Compose settings, copy `.env.sample` to `.env` and adjust values as needed.
4. Start the local stack with `./gradlew devUp` when you need the full source-built environment.
Expand All @@ -37,7 +37,7 @@ Work authored by Benjamin James Hook in his current rights-holder capacity does
- Follow the repository guidance in [AGENTS.md](./AGENTS.md), with conditional procedures indexed in [developer workflows](./design/developer-workflows/README.md).
- Use four spaces for indentation and avoid trailing whitespace.
- Favor immutable data structures, clear method names, and concise classes.
- Backend code targets Java 21+ with Spring Boot 4.x; frontend code follows standard React/TypeScript conventions.
- Backend code targets Java 25 with Spring Boot 4.x; frontend code follows standard React/TypeScript conventions.
- Document public methods and classes with brief Javadoc comments.
- Install the repository pre-commit hooks with `pre-commit install` if you want lightweight local formatting and file-scoped lint checks on commit.

Expand Down
2 changes: 1 addition & 1 deletion DEVELOPER_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This guide explains how to configure a local development environment for the Fir

Install the following tools before building the services:

- **Java 21+** – required for all Spring Boot microservices.
- **Java 25** – the build toolchain and production runtime. Gradle uses any installed Java 25 JDK and otherwise downloads the pinned Temurin 25 build, so a local JDK only has to start the wrapper (Gradle 9 needs 17 or newer).
- **Node.js at the repository-pinned version** – needed if you plan to build the React frontend. The repository's exact Node version is declared once in [`.node-version`](.node-version) and consumed by both Gradle and CI.
- **Docker** and **Docker Compose** – run the full stack locally.
- **Git** – version control for cloning and contributing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This ADR preserves historical ingress-idempotency context, not an independent cu

## Implementation Status

The live `ScriptScheduleInstanceServiceImpl.TimerFiringCandidate.identity()` implementation remains narrower than the canonical scheduler preimage until the target and owner/plugin fields are carried. It currently uses resolved `playableStateScope` in the identity preimage and emits `eventSchemaVersion=v1`, `isDryRun=false`, and `triggerMode=TRIGGER_MODE_CATCH_UP`; authoritative `playableStateNamespaceId` identity and separate non-identity scope evidence are target-state. The current values remain explicit preimage inputs even while they are constant. It has no cross-producer golden-vector proof for the canonical preimage or its numeric formatting rules. See the [automation and scheduler runtime tracker](../../project-management/implementation-tracking/automation-and-scheduler-runtime.md#capability-status).
The live timer candidate identity is narrower than the canonical scheduler preimage, and cross-producer golden-vector proof is absent. Status and proof: [Automation and scheduler runtime tracker](../../project-management/implementation-tracking/automation-and-scheduler-runtime.md).

## Context

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Accepted

## Implementation Status

The decision is accepted; implementation and proof remain partial. Durable bounded semantic reconnect-context storage and Redis caching exist, but immutable continuity/resume anchors, deadline enforcement in `PLAY`, token-refresh independence, repeated-episode behavior, and explicit-logout replay suppression remain incomplete or unproved. Strict complete-envelope byte-ceiling enforcement, including oversized-entry omission or bounded-marker behavior, also remains unproved; the current runtime may retain an oversized semantic entry. The target `FIREMUD_AUTH_SESSION_EXPIRATION_MS` default is `300000` ms with an inclusive valid range of `1..300000` ms; current Game Session code still defaults it to one hour (`3600000` ms) and does not enforce that range. Acceptance records the target decision, not completion; the obligations below define the remaining proof.
Immutable continuity and episode anchors, `PLAY` deadline enforcement, the target session-expiration default and range, explicit-logout replay suppression, and strict byte-ceiling enforcement are not yet implemented or proved. Status and proof: [Player access and session tracker](../../project-management/implementation-tracking/player-access-and-session.md).

## Decision Record

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ Accepted

## Implementation Status

The target sequence remains incomplete. Current Account responses emit membership lifecycle and authority generation, and text `PLAY` consumes them after fresh entitlement evaluation, before membership/grant and later actor/binding checks. Gameplay requires a coherent membership result and `ACTIVE` admitting membership; public repair is limited to missing or `INACTIVE` membership when the joining policy permits it. The current connect-token endpoint fails closed with `AUTH_UNAVAILABLE` before cached replay or membership, entitlement, grant, and routing-authority reads, so it does not currently validate those authorities. Explicit text `JOIN` remains unavailable. Full caller-target/atomic Account authority, `allowNewGameplayBindings`, grant lifecycle/expiry, and lease-commit behavior remain absent or held. Current implementation and proof limits are recorded in [Account Runtime and Data](../microservices/account-service/runtime-and-data.md#connect-token-issuance-persistence-and-retention) and the [Player Access and Session tracker](../../project-management/implementation-tracking/player-access-and-session.md#capability-status); this record does not upgrade runtime proof.

The current `GameplayHandshakeFilter` accepts one cookie or header, rejects simultaneous carriers, and consumes an untagged replay marker through the generic Cache-bound client, but does not implement ADR 0029's tagged Coordination Redis readiness/fence and quarantine contract. Target player-facing admission remains quarantined until that cutover and proof complete.
That current parser support does not establish public non-browser issuance or an accepted target non-first-party route/carrier.
Explicit `JOIN`, connect-token authority validation, full atomic Account authority, `allowNewGameplayBindings`, grant lifecycle, lease commit, and ADR 0029 tagged handshake readiness are not yet implemented; player-facing admission stays quarantined. Status and proof: [Player access and session tracker](../../project-management/implementation-tracking/player-access-and-session.md).

## Decision Record

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ Accepted

## Implementation Status

The machine-readable matrix and substantial static Gateway route/blocking tests exist, but the route inventory is incomplete, several Gateway routes remain broad families, and the matrix is not consumed by generated completeness checks or shared runtime middleware.

- **Partial; focused static safeguard present, execution unrun here:** Production and test-profile Gateway configuration exposes only the curated route set and rejects coarse public catchall paths. Focused proof is recorded by [`GatewayRoutesConfigurationProdTest`](../../../services/spring-cloud-gateway/src/test/java/net/firedevops/firemud/springcloudgateway/config/GatewayRoutesConfigurationProdTest.java) (`publicRouteAllowlistExposesOnlyCuratedEdgeRoutes`, `prodProfileHasNoCoarsePublicCatchallRouteFallbacks`) and [`GatewayRoutesConfigurationTestProfileTest`](../../../services/spring-cloud-gateway/src/test/java/net/firedevops/firemud/springcloudgateway/config/GatewayRoutesConfigurationTestProfileTest.java) (`testProfileUsesCanonicalCuratedPublicRouteIds`, `testProfileHasNoCoarsePublicCatchallRouteFallbacks`).
- **Unavailable/unproven complete safeguard:** Generated inventory comparison, shared route middleware, strict profile/audience enforcement, active issued-token registry enforcement, and universal runtime denial of unclassified protected routes are not currently proven. Current JWT middleware does not yet enforce the complete issued-token registry, route-class, token-profile, authority-generation, and cross-tenant distinctions documented here. Acceptance of this target makes no completion claim.
Partially implemented: the route inventory is incomplete and the matrix does not drive generated completeness checks or shared runtime middleware, so runtime denial of unclassified routes and full token-profile enforcement are unproven. Status and proof: [Shared Runtime, Service Contracts, and Persistence tracker](../../project-management/implementation-tracking/shared-runtime-contracts-and-persistence.md).

## Decision Record

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Accepted

## Implementation Status

The accepted explicit-join decision is target state. Current first-party connect-token issuance and text `PLAY` now require existing membership and do not invoke an implicit membership writer; fresh authoritative missing or `INACTIVE` public-production membership fails closed with `JOIN_REQUIRED`. The obsolete differently named writer RPC and service implementation have been removed rather than retained as compatibility behavior. Explicit `JOIN` / `Join & Play`, the membership transaction, monotonic versioning, durable audit/outbox boundary, and the exact current membership snapshot plus independent `membershipVersion` and `membershipAuthorityGeneration` reread at every connect-token issuance remain incomplete. No complete runtime implementation is claimed by this ADR.
Explicit `JOIN` / `Join & Play`, the membership transaction, monotonic versioning, the durable audit/outbox boundary, and the membership reread at connect-token issuance are not yet implemented. Status and proof: [Player access and session tracker](../../project-management/implementation-tracking/player-access-and-session.md).

## Decision Record

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Accepted

## Implementation Status

The accepted cache and freshness policy is not implemented. Account currently restamps responses while deriving version fields from subscription row IDs, and the response lacks committed subscription status and complete operation-specific evidence. In the current runtime `PLAY` path, `AccountClient` emits `ENTITLEMENT_UNAVAILABLE` when entitlement authority is unavailable, while `PlayCommandHandler` checks only `gameplayAvailable` after a successful authority response and emits `TENANT_BILLING_BLOCKED` when that flag is false. Current code permits `past_due` gameplay and public join, consistent with the accepted lifecycle. This current implementation status does not change the target contract: unavailable authority remains retryable as `ENTITLEMENT_UNAVAILABLE`, while known denial remains `TENANT_BILLING_BLOCKED`. No runtime cache, billing-event sequence consumer, source-freshness validation, instance-lifecycle enforcement, or hard-suspension consumer exists.
The differentiated cache and freshness policy is not implemented: the entitlement response lacks committed status and complete evidence, and no runtime cache, billing-event consumer, or hard-suspension consumer exists. Status and proof: [Player access and session tracker](../../project-management/implementation-tracking/player-access-and-session.md).

## Decision Record

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Accepted

## Implementation Status

Kubernetes Secret mounts, cert-manager examples, expected-binding preflight, and secret-compliance evidence exist, but the repository does not satisfy the complete target. Base manifests still mount JWT signing material beyond Account, three of the eleven hosted gRPC workloads still use shared leaf material, and production Secret encryption-at-rest/audit proof plus automated rotation/convergence remain incomplete. Hosted preview/dev-demo Helm now defines eight distinct gRPC workload leaf Secrets: five publication workloads plus Account, Game Session, and Social Groups. The shared `firemud-grpc-tls` Secret remains for the common CA trust bundle and the three remaining shared-leaf workloads. Static render and controller-contract proof covers the eight distinct workload bindings and their readiness evidence; live certificate issuance, served-identity convergence, and production-promotion proof remain incomplete. The target remains distinct leaf Secrets for every workload with a shared CA.
Partially implemented: some workloads still share gRPC leaf material, JWT signing material is mounted beyond Account, and production encryption-at-rest/audit, live issuance, and automated rotation proof are incomplete. Status and proof: [Shared Runtime, Service Contracts, and Persistence tracker](../../project-management/implementation-tracking/shared-runtime-contracts-and-persistence.md).

## Decision Record

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Accepted

## Implementation Status

This decision is partially implemented. Account has payment and subscription persistence plus Stripe/payment-operation foundations, but the complete target path is not yet converged: explicit owner-authorized instrument binding, the caller-stable `CreateSubscription` `requestId`/`requestDigest` retry boundary, the single-use transfer proof and database transfer fence, audited billing-owner handoff, provider creation without customer or provider defaults, replacement-before-detach enforcement, immutable provider-history resolution, verified webhook entitlement completion, and their end-to-end proof remain incomplete. This status describes implementation coverage only and does not change the human-reviewed decision metadata below.
Explicit instrument binding, the `CreateSubscription` retry boundary, transfer fencing, billing-owner handoff, replacement-before-detach, verified webhook completion, and end-to-end proof are not yet complete. Status and proof: [Player access and session tracker](../../project-management/implementation-tracking/player-access-and-session.md).

## Decision Record

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ Accepted

## Implementation Status

This ADR is partially implemented. Logging & Admin has current operator-facing read, investigation, admission-pointer read/audit, and prepared-upgrade proof-read surfaces, but no forwarded owner mutation family is currently supported as an executable external route until its action-family schema, shared cross-language `mutationDigest/v1` golden vectors, and Account-issued authorization-reference issuance plus owner-side redemption exist. The service-local `/moderation/actions` and `ApplyModerationAction` paths are present legacy transport stubs that now hard fail closed after their narrow tenant/admin checks: HTTP returns `503 Service Unavailable`, gRPC returns an application-level `UNAVAILABLE` error, and neither path dispatches or persists the generic legacy `moderation_actions` row. They have no external Gateway route, persist no separate fixed-category audit evidence, and perform no owner-side enforcement. The target Logging & Admin-owned moderation policy-input/audit path remains gated pending Account authorization-reference issuance plus Logging & Admin receiving-service validation/redemption; it does not require domain-owner redemption. The live `EvaluateModerationPolicy` read remains available only to its internal enforcement owners. Versioned policy propagation and owner enforcement remain target-state work.

The original StartSession receiver retains Account-returned tuple bytes through Logging completion, independent exact authorization readback and the one-time owner-pending handoff. Missing or substituted evidence and ambiguous transport or durable transitions fail closed; the coordinator and clients reject ambient SQL transactions or synchronization. The disabled-by-default composition, passive production reservation owner and absence of a routable StartSession ingress remain in force. Current receiving proof and its controlled-input limits are recorded in the [coherent owner receiving tracker](../../project-management/implementation-tracking/game-authoring-publishing-and-activation.md#coherent-owner-receiving-prerequisite). This source preparation supplies no genuine producer, activation or operational-region proof.
Partially implemented: no forwarded owner mutation family is an executable external route until its action schema, shared `mutationDigest/v1` vectors, and Account authorization-reference issuance and redemption exist. The separate Logging & Admin moderation policy-input persistence path stays gated until its action schema, shared vectors, Account authorization-reference issuance, and Logging & Admin validation and redemption exist; it needs no owner-side redemption. Status and proof: [Platform Operations and Delivery tracker](../../project-management/implementation-tracking/platform-operations-and-delivery.md).

## Decision Record

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Accepted

## Implementation Status

This ADR is partially implemented. Existing operator intent and forwarding paths do not yet prove durable owner idempotency, owner-result recovery, or lease-fenced reconciliation for every supported action family. The separate moderation policy-input/audit path is an unavailable/gated implementation path: Account authorization-reference issuance and Logging & Admin receiving-boundary validation/redemption are not complete, it is not a shipped operator mutation, and domain-owner moderation enforcement remains target-state work. The WorldLifecycle path has deterministic workflow identity and bounded lifecycle state handling, but does not yet prove this ADR's full request-tuple idempotency, durable outcome recovery, or domain-snapshot/Temporal-status equivalence.
Partially implemented: no operator action family yet proves durable owner idempotency, owner-result recovery, lease-fenced reconciliation, or durable outcome recovery. Status and proof: [Platform Operations and Delivery tracker](../../project-management/implementation-tracking/platform-operations-and-delivery.md).

## Decision Record

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Accepted

## Implementation Status

The command/effect boundary and single logical terminal outcome are accepted target state; complete durable identity guards, evidence-based reconciliation, and focused crash/replay proof remain incomplete. Deterministic command-plan ordering, `planOrdinal`, and root-allocation details are defined separately by accepted [ADR 0183](./adr-0183-deterministic-effect-id-allocation-and-replay-binding.md); implementation and proof remain incomplete under their owner contracts.
Complete durable identity guards, evidence-based reconciliation, and focused crash/replay proof are not yet implemented. Status and proof: [Game Session runtime and tick coordination tracker](../../project-management/implementation-tracking/game-session-runtime-and-tick-coordination.md).

## Canonical Design

Expand Down
Loading
Loading