Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
4b66996
Fail closed on unproven section-exit runtime paths
benhook1013 Sep 24, 2026
dc7121e
Merge commit '3c95a36bc25c0e4662f05e24d219e960f54a5c82' into codex/co…
benhook1013 Sep 24, 2026
afb3e3a
Merge branch 'codex/unit-1a-audit-receiver-hardening' into codex/corp…
benhook1013 Sep 24, 2026
6cae478
Merge branch 'codex/unit-1a-audit-receiver-hardening' into codex/corp…
benhook1013 Sep 25, 2026
43a65f1
Align section-exit status with fail-closed runtime behavior
benhook1013 Sep 27, 2026
f39c8df
Reconcile section-exit guards with Account ingress parent
benhook1013 Sep 27, 2026
a015373
Reconcile section-exit guards with Account audit parent
benhook1013 Sep 27, 2026
3796bc9
Fail closed on script-patch readiness notification ambiguity
benhook1013 Sep 28, 2026
5c9faa0
Expose publish workflow unavailability and clarify patch denial
benhook1013 Sep 29, 2026
0954ca4
Replay stored unpatched launch after template default changes
benhook1013 Sep 30, 2026
696ad01
Merge remote-tracking branch 'origin/codex/unit-1a-audit-receiver-har…
benhook1013 Sep 30, 2026
1065609
Carry canonical Automation fixture formatting during reconciliation
benhook1013 Sep 30, 2026
94ea1d7
Reconcile exit guards with Account and player containment
benhook1013 Sep 30, 2026
33db9ab
Finalize authoring exit guards on validated audit-recovery parent
benhook1013 Sep 30, 2026
bdc400b
Clarify composed script-patch publication failure boundary
benhook1013 Sep 30, 2026
70892a7
Name patch digest rejection proof accurately
benhook1013 Oct 2, 2026
c7f4459
Reconcile publication guards with reviewed recovery parent
benhook1013 Oct 2, 2026
90abdc0
Merge commit 'ea37f96b2299ffa6a7b72b9a9f86d489cb7a6bcc' into codex/pr…
benhook1013 Oct 2, 2026
f248e73
Propagate accepted Account and Logging preparation fixes
benhook1013 Oct 2, 2026
4823b90
Reconcile authoring exit guards with final owned audit child
benhook1013 Oct 2, 2026
b0d61a6
Align terminal retry fixtures with locked World lookup
benhook1013 Oct 2, 2026
94f5a78
Merge commit '41cbcf79b0ee2b0576610328edf80406b4198dce' into codex/pr…
benhook1013 Oct 2, 2026
856d0aa
Propagate reviewed Account and Logging guards through section-exit child
benhook1013 Oct 2, 2026
c5ca94b
Preserve authoring guards while carrying current audit parent
benhook1013 Oct 3, 2026
696cfac
Preserve published lifecycle proof while forwarding reviewed parent
benhook1013 Oct 3, 2026
ed0a427
Forward verified receipt digest hardening through section-exit child
benhook1013 Oct 3, 2026
1788fc5
Merge commit '31bc64f94309a9da5bb94edd18797547f0e9c7de' into codex/pr…
benhook1013 Oct 3, 2026
b6f7289
Forward verified Account audit parent through exit guards
benhook1013 Oct 3, 2026
874f406
Forward final Account audit namespace configuration
benhook1013 Oct 3, 2026
1d9c6a3
Merge commit 'fba7dc596629d1b707df5228aacd127fb0b3863a' into codex/co…
benhook1013 Oct 3, 2026
bd2bc5b
Clarify composed publication containment and direct readiness flow
benhook1013 Oct 3, 2026
5fe1dfa
Merge commit '65a27fdf7cf4d8691e6824ab996ce59ef75ba0c9' into codex/co…
benhook1013 Oct 3, 2026
d585809
Clarify readiness pre-dispatch denial and record checkpoint lesson
benhook1013 Oct 3, 2026
624b092
Reject unverifiable script-patch manifests before dispatch
benhook1013 Oct 3, 2026
df364f0
Merge commit 'c959732e89b8547b55509573ed7720b03b22d448' into codex/co…
benhook1013 Oct 3, 2026
3636303
Fix pre-dispatch publication dependency failure cleanup and proof claims
benhook1013 Oct 4, 2026
a778fbc
Correct live fence proof status and deny crafting before body binding
benhook1013 Oct 4, 2026
7dd1898
Allow Validation for stacked pull requests
benhook1013 Oct 4, 2026
44a6fa3
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 @@ -1012,7 +1011,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 @@ -6,7 +6,7 @@ Accepted

## Implementation Status

The current path admits bounded tenant-readiness `onLoad` work and exposes a readiness projection, but it does not yet seal or prove the immutable complete handler manifest required by this ADR. Game Design currently notifies Automation with an empty `affectedScripts` list; Automation returns before creating readiness state, and its Temporal tracking hook also skips empty lists. Normal script-patch publication therefore does not currently establish a readiness candidate or workflow. For non-empty notifications, Automation resolves only definitions found by name and seeds readiness from that found set; an incomplete expected-handler comparison can therefore mark a patch `READY` while required definitions are missing. Notification transport and response failures are swallowed without a durable redrive, so publication can remain `PUBLISHED` without a readiness candidate or workflow. An explicit empty handler set is valid only when the immutable patch manifest proves that zero handlers are required. For an identifiable tenant/patch notification, absent or unverifiable zero-handler proof has one canonical outcome: the readiness owner durably records `FAILED` with a bounded reason such as `zero_handler_manifest_unverifiable`, publishes the normal readiness status/audit evidence, and does not silently reject, bypass `onLoad`, start synthetic handler work, or retry the DSL. An unidentifiable malformed notification may still fail at transport/validation without fabricating a patch identity. Monotonic publication acceptance and late-completion fencing, along with readiness-owner recovery and terminalization of stale `ONLOAD_RUNNING` work, remain target convergence and proof gaps; the generic replay behavior described in the automation tracker is implementation drift rather than supported readiness recovery.
The current path admits bounded tenant-readiness `onLoad` work and exposes a readiness projection, but it does not yet seal or prove the immutable complete handler manifest required by this ADR. The composed Game Design script-patch publish currently fails earlier at the required Automation digest gate: `UNSUPPORTED_SCOPE` is classified as `PARTICIPANT_UNAVAILABLE`, so the notification is not dispatched and no patch is published or readiness workflow created. If successful participant observations are supplied, Game Design's later notification still supplies an empty `affectedScripts` list and the client rejects it before dispatch; a direct empty Automation notification is also rejected before readiness mutation. Those notification checks are conditional downstream seams, not the failure point of the composed current path. For non-empty notifications that reach Automation, it resolves only definitions found by name and seeds readiness from that found set; an incomplete expected-handler comparison can therefore mark a patch `READY` while required definitions are missing. Game Design retains a pending publish attempt when notification dispatch or finalization has an ambiguous outcome, but those later branches are not reached on the composed current path; durable cross-service readiness readback and redrive remain unimplemented. An explicit empty handler set is valid only when the immutable patch manifest proves that zero handlers are required. For an identifiable tenant/patch notification, absent or unverifiable zero-handler proof has one canonical outcome: the readiness owner durably records `FAILED` with a bounded reason such as `zero_handler_manifest_unverifiable`, publishes the normal readiness status/audit evidence, and does not silently reject, bypass `onLoad`, start synthetic handler work, or retry the DSL. An unidentifiable malformed notification may still fail at transport/validation without fabricating a patch identity. Monotonic publication acceptance and late-completion fencing, along with readiness-owner recovery and terminalization of stale `ONLOAD_RUNNING` work, remain target convergence and proof gaps; the generic replay behavior described in the automation tracker is implementation drift rather than supported readiness recovery.

## Decision Record

Expand Down
Loading
Loading