Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
95ce24d
Converge Game Session Account UUID carriers and focused fixtures
benhook1013 Oct 1, 2026
4072b3d
Merge published Account UUID proof and membership guard prerequisite
benhook1013 Oct 1, 2026
ee52078
Align Account UUID fixture echoes without weakening gameplay assertions
benhook1013 Oct 1, 2026
de5f2a5
docs(game-session): state UUID carrier and activation limits
benhook1013 Oct 1, 2026
157c1f4
Merge commit '6e5fc2321b582ef5e74962968fa1b069b87b263e' into codex/un…
benhook1013 Oct 1, 2026
3c9dab0
docs(access): distinguish UUID carriers from activation proof
benhook1013 Oct 1, 2026
41ba777
Merge commit '56a222bf289caa710285bf8655eee1d04161b22e' into codex/un…
benhook1013 Oct 1, 2026
b26efb3
Merge canonical Account registration and authority proof parent
benhook1013 Oct 1, 2026
0f7346f
Record composed UUID carrier proof and remaining management boundary
benhook1013 Oct 1, 2026
5c12cd6
Merge explicit membership availability and corrected registration pro…
benhook1013 Oct 1, 2026
a36d7ea
Preserve composed UUID availability proof and exact Account fixtures
benhook1013 Oct 1, 2026
701f62f
Merge canonical profile and owner UUID correction into gameplay carriers
benhook1013 Oct 1, 2026
aca1a6e
Merge corrected profile and owner UUID fixture checkpoint into gamepl…
benhook1013 Oct 1, 2026
41976ef
Converge canonical Account UUID authority and actor fixtures
benhook1013 Oct 1, 2026
16bd1c1
Merge published owner UUID proof into corrected gameplay fixtures
benhook1013 Oct 1, 2026
05313dc
Merge grant mutation containment while preserving Account UUID gamepl…
benhook1013 Oct 1, 2026
9c6a360
Preserve unreadable retained gameplay identity carriers
benhook1013 Oct 1, 2026
34e963b
Merge #2969 while preserving canonical Account UUID carriers
benhook1013 Oct 4, 2026
5aca20a
docs: record approved Account UUID alignment boundary
benhook1013 Oct 4, 2026
8b82668
Merge commit '5f816e28b5fe135e0116bb9ca3d81476f79b129f' into codex/un…
benhook1013 Oct 4, 2026
a1d6b95
Merge commit 'a276d937f8eef59ed9adef4541da049be04d15ef' into codex/un…
benhook1013 Oct 4, 2026
3a1ca84
Merge commit 'dd0b182d436d18e483ef9d85b403e893fe84dc8e' into codex/un…
benhook1013 Oct 4, 2026
9f03812
Allow Validation for stacked pull requests
benhook1013 Oct 4, 2026
ffe1300
Carry forward reviewed CI safety corrections
benhook1013 Oct 5, 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
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
types: [opened, synchronize, reopened, edited]
workflow_dispatch:

Expand Down Expand Up @@ -1256,7 +1255,7 @@ jobs:
contents: read
pull-requests: write
needs: [buf-check, docker-lint, shellcheck, python-script-validation, dev-tool-contract-checks, dev-tools-readme-contract, yaml-lint, metrics-cardinality-check, flyway-migration-sanity-checks, grpc-transport-config-sanity-checks, workflow-lint, helm-lint, helm-render-validation, helm-transaction-proof, docs-check, frontend-checks, build-and-test, validation-gate]
if: ${{ always() && github.event_name == 'pull_request' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
if: ${{ !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
steps:
- name: Harden runner
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-pr-runtime-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ jobs:
fail("source workflow run API id does not match the event")
if source_run.get("workflow_id") != int(workflow_id_text):
fail("source workflow identity changed between event and API")
if source_run.get("name") != source_title:
fail("source workflow API name differs from its exact run title")
if source_run.get("name") not in {"Build Runtime Images", source_title}:
fail("source workflow API name is neither its owning name nor exact run title")
if source_run.get("path") != SOURCE_WORKFLOW_PATH:
fail("source workflow API path is not the trusted runtime-images workflow")
if source_run.get("event") != source_event:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
uses: ./.github/actions/setup-trivy

- name: 🔍 Run Trivy and Save Report
shell: bash
run: |
echo "::group::Run Trivy"
trivy fs --config config/security/trivy.yaml . | tee trivy-report.txt
Expand Down Expand Up @@ -207,7 +208,7 @@ jobs:
contents: read
pull-requests: write # Publishes the consolidated security result on the PR.
needs: [changes, trivy-scan, secret-compliance, security-gate]
if: ${{ always() && github.event_name == 'pull_request' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
if: ${{ !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
steps:
- name: Harden runner
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5
Expand Down
51 changes: 48 additions & 3 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
".github/actions/load-workflow-tool-versions/",
".github/actions/setup-python/",
"dev-tools/smoke/",
"dev-tools/minio/",
];
const fullRelevantFiles = new Set([
"build.gradle.kts",
Expand Down Expand Up @@ -145,7 +146,7 @@ jobs:
contents: read
pull-requests: write
needs: [changes]
if: ${{ always() && github.event_name == 'pull_request' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
if: ${{ !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
steps:
- name: Harden runner
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5
Expand Down Expand Up @@ -198,6 +199,26 @@ jobs:
`- ${statusIcon(fullResult)} PR Full-Stack Smoke: \`${fullResult}\``,
].join("\n");

const expectedHeadSha = context.payload.pull_request.head.sha;
const expectedBaseRef = context.payload.pull_request.base.ref;
const expectedBaseSha = context.payload.pull_request.base.sha;
const { data: currentPullRequest } = await github.rest.pulls.get({
...context.repo,
pull_number: context.issue.number,
});
if (
currentPullRequest.state !== "open" ||
currentPullRequest.head.sha !== expectedHeadSha ||
currentPullRequest.base.ref !== expectedBaseRef ||
currentPullRequest.base.sha !== expectedBaseSha
) {
core.info(
`Skipping stale smoke summary for ${expectedBaseRef}@${expectedBaseSha}...${expectedHeadSha}; ` +
`current PR state/base/head is ${currentPullRequest.state}/${currentPullRequest.base.ref}@${currentPullRequest.base.sha}/${currentPullRequest.head.sha}`
);
return;
}

const comments = await github.paginate(
github.rest.issues.listComments,
{
Expand Down Expand Up @@ -277,7 +298,7 @@ jobs:
contents: read
pull-requests: write
needs: [changes, smoke-gate, smoke-summary-pending]
if: ${{ always() && github.event_name == 'pull_request' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
if: ${{ !cancelled() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && (github.event.action != 'edited' || github.event.changes.base.ref != null) }}
steps:
- name: Harden runner
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5
Expand Down Expand Up @@ -334,6 +355,26 @@ jobs:
`- ${statusIcon(fullResult)} PR Full-Stack Smoke: \`${fullResult}\``,
].join("\n");

const expectedHeadSha = context.payload.pull_request.head.sha;
const expectedBaseRef = context.payload.pull_request.base.ref;
const expectedBaseSha = context.payload.pull_request.base.sha;
const { data: currentPullRequest } = await github.rest.pulls.get({
...context.repo,
pull_number: context.issue.number,
});
if (
currentPullRequest.state !== "open" ||
currentPullRequest.head.sha !== expectedHeadSha ||
currentPullRequest.base.ref !== expectedBaseRef ||
currentPullRequest.base.sha !== expectedBaseSha
) {
core.info(
`Skipping stale smoke summary for ${expectedBaseRef}@${expectedBaseSha}...${expectedHeadSha}; ` +
`current PR state/base/head is ${currentPullRequest.state}/${currentPullRequest.base.ref}@${currentPullRequest.base.sha}/${currentPullRequest.head.sha}`
);
return;
}

const comments = await github.paginate(
github.rest.issues.listComments,
{
Expand Down Expand Up @@ -476,7 +517,11 @@ jobs:
const eventMergeSha = context.sha;
const prNumber = String(context.payload.pull_request.number);
const started = Date.now();
const timeoutMs = 25 * 60 * 1000;
// Contract-checked against pr-local-smoke; bounded overhead covers metadata,
// runner scheduling and API convergence, not unbounded queue delays.
const producerTimeoutMinutes = 45;
const prerequisiteAndQueueAllowanceMinutes = 45;
const timeoutMs = (producerTimeoutMinutes + prerequisiteAndQueueAllowanceMinutes) * 60 * 1000;
const cancelledReplacementTimeoutMs = 5 * 60 * 1000;
const sleepMs = 15000;
const pullRequestCheckInterval = 4;
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/static-analysis-summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ jobs:
if (
currentPullRequest.state !== "open" ||
!sourceWorkflowName ||
context.payload.workflow_run.name !== expectedSourceTitle ||
(context.payload.workflow_run.name !== sourceWorkflowName &&
context.payload.workflow_run.name !== expectedSourceTitle) ||
context.payload.workflow_run.display_title !== expectedSourceTitle
) {
core.info("The source run is not bound to the current open pull-request base and head.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ The service runtime model assumes replaceable workers, not authoritative in-proc

The sections below define the target-state runtime contract. Current implementation and proof status is:

- The management-owner UUID candidate adds `game_instances.owner_account_uuid` for the exact canonical Account identity and keeps every retained `owner_account_id` BIGINT unchanged as internal historical evidence. Unmapped retained rows have no canonical owner and cannot satisfy owner-self checks; no UUID is derived from a numeric value. New owner requests reject numeric, nil or noncanonical Account selectors before dependency calls or mutation. Inside the owner transaction, `StartSession` locks tenant rows with no canonical UUID and any status other than exact `STOPPED`, then fails with `OWNER_ACCOUNT_IDENTITY_UNAVAILABLE` if such active or uncertain legacy-owner evidence exists; this conservative refusal does not assert that a row belongs to the requesting Account. `RestartSession` rejects a missing or noncanonical owner UUID before changing the row or Redis runtime state. Stop, readback, and pre-termination compensation remain available and preserve raw numeric evidence. This is app-layer containment, not owner mapping or activation: V10.1 still permits an older binary to insert numeric-only rows or reactivate retained rows, so deployment must quiesce or otherwise fence every pre-UUID numeric-owner writer before this path is enabled. Enablement also remains gated on the owner-run deployed migration-history inventory and exact retained-owner readback recorded in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md). UUID owner storage and DTO/readback convergence do not supply the missing Account operator authorization-reference, mutation-digest or durable operator-result contracts. The separate gameplay session/presence carrier remains unpublished, and runtime catalog, membership and credential activation remain held back. The focused service and repository unit classes passed with 55 and 4 cases; both Docker-backed PostgreSQL cases were skipped locally, so guard execution, row preservation and lock behavior remain unverified against PostgreSQL.
- The management-owner UUID candidate adds `game_instances.owner_account_uuid` for the exact canonical Account identity and keeps every retained `owner_account_id` BIGINT unchanged as internal historical evidence. Unmapped retained rows have no canonical owner and cannot satisfy owner-self checks; no UUID is derived from a numeric value. New owner requests reject numeric, nil or noncanonical Account selectors before dependency calls or mutation. Inside the owner transaction, `StartSession` locks tenant rows with no canonical UUID and any status other than exact `STOPPED`, then fails with `OWNER_ACCOUNT_IDENTITY_UNAVAILABLE` if such active or uncertain legacy-owner evidence exists; this conservative refusal does not assert that a row belongs to the requesting Account. `RestartSession` rejects a missing or noncanonical owner UUID before changing the row or Redis runtime state. Stop, readback, and pre-termination compensation remain available and preserve raw numeric evidence. This is app-layer containment, not owner mapping or activation: V10.1 still permits an older binary to insert numeric-only rows or reactivate retained rows, so deployment must quiesce or otherwise fence every pre-UUID numeric-owner writer before this path is enabled. Enablement also remains gated on the owner-run deployed migration-history inventory and exact retained-owner readback recorded in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md). UUID owner storage and DTO/readback convergence do not supply the missing Account operator authorization-reference, mutation-digest or durable operator-result contracts. Runtime catalog, membership and credential activation remain held back. The focused service and repository unit classes passed with 55 and 4 cases; both Docker-backed PostgreSQL cases were skipped locally, so guard execution, row preservation and lock behavior remain unverified against PostgreSQL.

- V9.1 adds a nullable, non-nil `gameplay_command.account_uuid` storage slot and exact repository readback for a verified producer's canonical Account identity. It preserves the complete existing row and numeric `account_id` evidence without deriving or backfilling a UUID. The current command ingress still uses its older carrier until the consumer correction is integrated; retained rows without authenticated mapping cannot become canonical UUID evidence. Storage availability alone does not prove caller authorization, retained-command replay, or activation of the denied credential and membership paths.
- The published [#2932 gameplay carrier](https://github.com/benhook1013/FireMUD/pull/2932) carries the canonical Account UUID unchanged into V9.1's `gameplay_command.account_uuid` slot. It preserves complete existing command rows and numeric `account_id` evidence without deriving or backfilling UUIDs; retained rows without authenticated mapping cannot become canonical identity evidence. This carrier and storage do not prove retained-command replay, complete owner/consumer handoff, or caller authorization, and do not activate the denied credential and membership paths. Component implementation and proof limits are tracked in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md).

- The current Game Session migration order preserves the parent's V7 catalog-revision audit, V8 legacy-bootstrap repair, and V9 initial-admission ledger; this candidate's authored-world source intake, retained tenant association, and command UUID storage are V7.1, V8.1, and V9.1 respectively. The parent V10 run-owned launch ledger is preserved, followed by this child's byte-identical owner UUID migration at V10.1. These filename changes resolve source-tree version collisions only and do not establish any deployed Flyway history. Before dependent catalog or command paths activate, verify the exact deployed Game Session history and owner-readback of retained source, snapshot, association, and command rows. Preserve all rows and evidence; unknown provenance remains unresolved. Do not use Flyway repair, out-of-order execution, identity casting, or data cleanup to reconcile prior history. No deployed-history or retained-row readback proof is claimed here.

- The shared Gateway connect-context codec now declares and verifies the complete signed-context shape and has local vectors, but first-party runtime parsing remains fail-closed. It does not admit the target context until the independent Gateway Ed25519 verification key is published, Account-to-tenant UUID mapping is available, and the real Account exchange/source-evidence path is proved. Codec and vector presence is not a live issuer/consumer handoff or gameplay-admission proof.

- The Account membership client rejects noncanonical, nil or numeric Account/tenant selectors before stub/channel use and preserves exact UUID request echoes. This is boundary validation, not Account authorization. The current numeric session/catalog carriers still lack the proved canonical UUID handoff required by the [Identifier Glossary](../../system-architecture-identifier-glossary.md#identifier-format-conventions); numeric stringification cannot satisfy that handoff. The complete signed-context parser, Account runtime RPC and credential producer remain denied; component and runtime proof are tracked in [Player Access](../../../project-management/implementation-tracking/player-access-and-session.md).
- 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).

- 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).

Expand Down
Loading
Loading