Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
9dfeef5
Prepare exact Logging authorization receiving and durable handoff
benhook1013 Oct 13, 2026
6d98f3b
Record fresh Logging qualification on the published Entity parent
benhook1013 Oct 13, 2026
12d4ed5
Merge commit '9a1cbecf77857a98b0f300fdb14813e1d1de1496' into codex/do…
benhook1013 Oct 13, 2026
0850016
Record qualified Logging carry on the current published parent
benhook1013 Oct 13, 2026
735424a
Merge commit 'cc29b837966f9c62783ab86a6c95d145660d3813' into codex/do…
benhook1013 Oct 13, 2026
beac961
docs: qualify Logging receiving on current Entity parent
benhook1013 Oct 13, 2026
5e14d50
Carry Logging receiving onto published Entity front
benhook1013 Oct 13, 2026
0774da1
Record qualified Logging carry on current published front
benhook1013 Oct 13, 2026
8b01ac7
Merge commit '1e1a0bea68ca7c3c18e56f780a62caaa1ff7f47b' into codex/do…
benhook1013 Oct 13, 2026
958ba3d
docs: distinguish preserved Logging proof after published parent carry
benhook1013 Oct 13, 2026
3857103
Merge commit '06b8c5d2432470cc2cc1b83312b861b2971cba36' into codex/do…
benhook1013 Oct 13, 2026
24a4217
docs: carry unchanged Logging boundary onto latest published front
benhook1013 Oct 13, 2026
c428904
Merge commit '6d93e3466b51079cb132d103b80b07dc1d3d0794' into codex/do…
benhook1013 Oct 13, 2026
ad29991
Record latest published Entity parent in Logging receiving status
benhook1013 Oct 13, 2026
80fe3b5
Merge commit '11262b79529a3489dc08906b2265275216ed6a9c' into codex/do…
benhook1013 Oct 13, 2026
fe34df4
Carry Logging receiving after passive Account source protection
benhook1013 Oct 13, 2026
72a7fa9
Merge commit 'ec8b55044dce714467994bf2eaac503f26c27f59' into codex/do…
benhook1013 Oct 13, 2026
1397013
Carry Logging receiving onto latest Account parent
benhook1013 Oct 13, 2026
cae8dac
Merge commit 'cff6f5225180f243854a884c78a20d2f9f52b179' into codex/do…
benhook1013 Oct 13, 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
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Accepted

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 receiving candidate 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. The candidate passes the complete fresh local Logging check on the published Entity PRESEEDED receiving parent: 272 unit cases and 25 PostgreSQL/service integration cases, with zero failures, errors or skips. Eight unit-task cases use actual loopback mTLS against an explicitly synthetic Account handler; coordinator transition/readback cases use controlled owner doubles. These qualify their exercised receiving, transport and storage boundaries only. The actual receiving parent is #2967 at `9a1cbecf77857a98b0f300fdb14813e1d1de1496`; all selected check tasks rebuilt and executed on that parent, with formatting, static and documentation checks passing. This source preparation supplies no genuine producer, activation or operational-region proof.

## Decision Record

- Decision date: 2026-07-19
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Implementation status: the claim-evidence receiver and Account read client exist

When enabled, the Spring composition requires the configured canonical workload namespace and readable file-backed client mTLS inputs, initializes the typed Account client through the managed bean lifecycle, and connects it to the existing durable reservation service. The configuration supplies no reservation or authority source and exposes no external route. Its context test uses a controlled channel factory and test-only placeholder TLS files; it does not prove physical mTLS, production service startup, remote Account availability, or execution through Game Session launch selection and World activation. The target authorization and owner-forwarding rules remain owned by [ADR 0047](../../decisions/adr-0047-logging-admin-as-external-operator-write-ingress.md) and [ADR 0048](../../decisions/adr-0048-durable-idempotent-operator-write-execution.md).

Before completing an original StartSession reservation, Logging & Admin compares the complete Account-returned tuple with its exact reserved operation and validated response, persists those unchanged Account bytes, and independently reads back the same durable authorization before advancing the one-time owner handoff. Exact retries may observe secret-free durable state but never return another transient reference or dispatch again. Ambiguous Account calls, local completion, readback, or owner-pending transitions remain pending with no automatic replacement issuance or rearming. ISSUE, RECOVER, and owner forwarding require no ambient SQL transaction or synchronization. The [Account authorization-reference contract](../account-service/api-contracts.md#operator-authorization-references) owns original tuple and capture-reference binding; this local receiving boundary does not activate operator ingress or replace Account current-authority and expiry decisions.

## Account Audit Ingress and Receipt

The canonical Account-to-Logging & Admin audit ingress is the existing `logging_admin.v1.LoggingAdminService/CreateLogEvent` RPC, converged in place rather than duplicated as a parallel ingress. It is a non-destructive internal service RPC, not an operator/admin mutation. Account is the producer and source authority for account state; Logging & Admin owns the receiver-side audit envelope, durable receipt/readback, deduplication, and audit projection. The audit ingress follows only shared envelope fundamentals (stable identity, event type/schema, producer occurrence time, and at-least-once/idempotent delivery) from [Session Behavior](../../system-architecture-session-behavior.md); it does **not** inherit that document's membership-specific field set or `eventDigest` grammar. Internal workload identity and method authorization follow [Authentication](../../system-architecture-authentication.md) and [gRPC](../../system-architecture-grpc.md#tls-requirements).
Expand Down Expand Up @@ -113,8 +115,6 @@ The implementation gap is fail-closed: the HTTP controller and Gateway route are

The source-level `StartSessionAuthorizationCoordinator` now offers separate `issueHumanAndDispatch` and `recoverAndDispatch` methods that compose its existing authorization/recovery flow with `GameSessionClient`. They call the owner once only when that invocation wins the durable `OWNER_EXECUTION_PENDING` transition; exact/in-progress and recovery-unavailable results do not dispatch, and ambiguous owner outcomes propagate without automatic retry or rearming. The existing `issueHuman` and `recover` methods remain prepare-only. The typed `GameSessionClient` call sends the transient post-authorization tuple/reference and validates Game Session's secret-free durable attempt/progress echo; it requires readable file-backed workload mTLS and pins both request and response to the exact same-namespace Game Session SPIFFE URI derived from the tuple. Ping and stop keep their existing client behavior. These methods are not wired to a routable Logging & Admin StartSession ingress. Mocked tests do not establish physical mTLS, production ingress, prepared launch selection, or instance activation.

The Account client accepts the new StartSession response only after comparing its complete returned owner tuple with the exact reservation and response evidence. The coordinator retains and hands off the Account-returned tuple bytes through the existing completion/recovery path, under [ADR 0047](../../decisions/adr-0047-logging-admin-as-external-operator-write-ingress.md). Missing or substituted owner evidence fails closed before durable completion or owner dispatch; this does not activate a routable ingress.

**Target ADR 0047/0048 owner-forwarding path:** [ADR 0047](../../decisions/adr-0047-logging-admin-as-external-operator-write-ingress.md) owns the Logging & Admin ingress and Account-reference issuance boundary; [ADR 0048](../../decisions/adr-0048-durable-idempotent-operator-write-execution.md) owns the phase-qualified execution, redemption, and reconciliation contract. Supported executable operator mutations use Account's canonical [`IssueHumanOperatorAuthorizationReference`](../account-service/api-contracts.md#operator-authorization-references) issuance RPC after Logging & Admin authenticates the current `control-ui` actor and records durable intent. Logging & Admin forwards the opaque bounded reference and unchanged request/generation binding; the authoritative receiving owner recomputes the canonical digest and is the only service that calls Account's `RedeemOperatorAuthorization` RPC. Unattended automation uses Account's `IssueAutomationOperatorAuthorizationReference` with `exact_mtls_workload_plus_versioned_automation_policy`, bound to the exact Logging and Admin workload mTLS identity and current `automation_policy_id`/`automation_policy_version`; the currently supported automation branch is tenant-scoped only and carries the exact target `tenant_generation` through issuance, forwarding, redemption, and owner commit. It carries no human identity, end-user token, or `privileged_control` authority. For each owner contract, predicate evidence comes exclusively from Account's redemption response; any copy forwarded by Logging & Admin is unchanged audit/context evidence, not authority. The local `/moderation/actions` policy-input/audit mutation is a separate receiving-service path: after its gate exists, Logging & Admin redeems its one Account reference exactly once for local persistence and never forwards or reuses that reference. Any future moderation owner-enforcement command uses a separately issued command-bound reference redeemed exactly once by the receiving owner. The moderation route is currently gated/unavailable; it hard fails closed without dispatch or persistence and performs no target fixed-category policy/audit persistence or forwarding. `EvaluateModerationPolicy` is a live read and carries no mutation authorization reference. For non-moderation action families, the request identity is the exact `controlPlaneRequestId` plus digest pair. Moderation and appeal transports instead use dedicated `policyIntentRequestId`, `ownerEnforcementRequestId`, and stable appeal-submission request identities end-to-end; `controlPlaneRequestId` remains a separate correlation-only field and must not carry, replace, alias, or serve as any of those mutation identities. The dedicated identities are never shared or reused. Logging & Admin never becomes a second authorization authority. Current feature-flag and tick forwarding paths, plus internal admission control-plane implementations, are not evidence that this ADR 0048 target contract is complete.

For every forwarded owner mutation, excluding the separate local `/moderation/actions` policy-input/audit path, the authoritative owner calls Account's `RedeemOperatorAuthorization` with the separately issued opaque reference and its independently derived request binding. Authorization predicates and generation authority come exclusively from that Account response. Any predicate, generation, checkpoint, or assurance copies forwarded by Logging & Admin are unchanged audit/context evidence only; the owner must not authorize or mutate from those copies, and they are excluded from the canonical `mutationDigest/v1`, which covers the normalized action request rather than ingress assertions. The local moderation route is gated/unavailable; it hard fails closed without dispatch or persistence and does not persist target fixed-category policy/audit evidence, redeem, forward, or enforce.
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 game authoring, publishing, a

## Current Status

Logging receiving in [PR #3190](https://github.com/benhook1013/FireMUD/pull/3190) carries the passive Account storage parent [#3193](https://github.com/benhook1013/FireMUD/pull/3193) at `ec8b55044dce714467994bf2eaac503f26c27f59`, including the published Entity PRESEEDED parent #2967 at `e6d0b1616d3cf54f6597380389a067ca49c7baeb`. This normal parent carry preserves every Logging and Common dependency postimage from the previously qualified receiving source. It retains the original Account tuple through exact durable readback and one-time owner handoff, preserves default-off composition and file-backed mTLS policy, and keeps Account crypto, recovery and expiry protections. The prior complete fresh check on parent `532620c8992a62e54bae0ce37a64736e1c5f2e8e` passes 272 unit and 25 PostgreSQL/service integration cases without failures, errors or skips, plus formatting, static and documentation checks; all 79 selected tasks rebuilt and executed. Eight actual loopback mTLS cases use a synthetic Account handler; controlled coordinator doubles establish transition/readback behavior without genuine Account issuance. That physical execution belongs to its prior source tuple; the unchanged receiving boundary carries forward without claiming a fresh physical run on the new parent. Whole receiving reconciliation and Account protection convergence remain separately unqualified in #3105. All genuine handoffs and broader Unit 1B remain held.

At `0c15969765bd0d48bbf78a4ea5ba93e959597c70`, the #3151 candidate freezes the approved asset delivery origin for exact repair and verifies metadata-only snapshots against database-computed source hashes and lengths. It stages one verified source payload at a time in private temporary files before shared object writes, and verifies object readback with bounded streams. V50 preserves retained candidates without an origin and fails their replay closed. Release-v2 selector binding is implemented by `PublishedReleaseBundleContract.requireSelectorBinding`; V49 and V49.1 schema execution is included in the focused migration proof. Source Validation `38205959330` (job `114670029762`) physically executed 400 unit and 75 PostgreSQL cases with zero failures, errors, or skips, including all 7 PublishAttempt cases and 12 snapshot PostgreSQL cases; no per-method counts are inferred. Rebuilt Runtime `38205959393` (job `114669861395`) failed before smoke because the pinned ECR base-image request returned HTTP 429 `Data limit exceeded`, so this head has no rebuilt runtime/smoke proof. Complete Draft mapping/quota admission, durable object-store candidate isolation, global purge fencing, and runtime activation remain unimplemented or unproved.

The published #3120 immutable-source proof checkpoint is `9bf78e22f742c3830821c920e70570eb1bc03e2b`: Validation `38354137185` (source job `115153084495`) physically executed 473 unit and 109 physical PostgreSQL cases with zero skips. This evidence is qualified to those postimages and is not a run on a later HEAD.
Expand Down
1 change: 1 addition & 0 deletions services/logging-admin-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ firemudJooq {
}

dependencies {
testImplementation(testFixtures(project(":common-platform-core")))
testImplementation(libs.grpc.inprocess)
testImplementation(libs.grpc.netty.shaded)
testImplementation(testFixtures(project(":logging-admin-service")))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import net.firedevops.firemud.gamesession.v1.StopSessionResponse;
import net.firedevops.firemud.loggingadmin.operator.StartSessionAuthorizationCoordinator.TransientOwnerExecutionHandoff;
import org.springframework.stereotype.Component;
import org.springframework.transaction.support.TransactionSynchronizationManager;

/** gRPC client for communicating with the Game Session Service. */
@Component
Expand Down Expand Up @@ -91,12 +92,14 @@ public StopSessionResponse stopSession(long sessionId) {
*/
public StartSessionOwnerHandoffResult authorizeStartSession(
TransientOwnerExecutionHandoff handoff) {
requireNoAmbientSqlOrSynchronization();
Objects.requireNonNull(handoff, "durable Logging owner handoff is required");
StartSessionPostAuthorizationExecutionTuple tuple = handoff.postAuthorizationTuple();
String reference = handoff.accountResponse().operatorAuthorizationReference();
byte[] tupleBytes = tuple.canonicalBytes();
if (tupleBytes.length == 0
|| tupleBytes.length > StartSessionPostAuthorizationExecutionTuple.MAX_CANONICAL_TUPLE_BYTES
|| reference == null
|| !OPAQUE_OPERATOR_REFERENCE.matcher(reference).matches()
|| !tuple
.authenticatedWorkloadIdentity()
Expand Down Expand Up @@ -138,6 +141,14 @@ public StartSessionOwnerHandoffResult authorizeStartSession(
return validateOwnerHandoffResponse(tuple, response);
}

private static void requireNoAmbientSqlOrSynchronization() {
if (TransactionSynchronizationManager.isActualTransactionActive()
|| TransactionSynchronizationManager.isSynchronizationActive()) {
throw new IllegalStateException(
"Game Session owner handoff requires no ambient SQL or synchronization");
}
}

private void requireFileBackedMtls() {
FileBackedGrpcMtlsPolicy.require(
transportTlsProperties,
Expand Down
Loading
Loading