Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
400adc5
Contain unqualified script publication and surface readiness rejection
benhook1013 Oct 31, 2026
eaee2ed
Reconcile publication containment onto qualified credential and audit…
benhook1013 Oct 31, 2026
4db80f8
Record carried publication containment image proof
benhook1013 Oct 31, 2026
8e45ee0
Contain legacy Entity mutation ingress and prove terminal World retry…
benhook1013 Oct 31, 2026
ab337fc
Merge branch 'codex/gameplay-2856-runtime-guards-receiving-20261101' …
benhook1013 Oct 31, 2026
770aeec
Merge branch 'codex/gameplay-2940-audit-receipt-receiving-20261101' i…
benhook1013 Oct 31, 2026
f0e3ea9
Merge branch 'codex/gameplay-2940-audit-receipt-receiving-20261101' i…
benhook1013 Oct 31, 2026
4f13634
Record queued review timer diagnostic recovery
benhook1013 Oct 31, 2026
49a01ac
Record combined publication and Entity containment runtime proof
benhook1013 Oct 31, 2026
f18d3ae
Merge commit '7f264fb6e8c5b9303802122fab2edbe766146fd3' into codex/ga…
benhook1013 Oct 31, 2026
208bc84
Merge commit '92c56e659e95f0fcc5c71f754d876ea34c14e47a' into codex/ga…
benhook1013 Oct 31, 2026
effccb6
ci: partition Game Session checks four ways with complete proof
benhook1013 Oct 31, 2026
1d2e92c
Merge commit 'd6dbedf0f4bd58faac42bc811e26c5a81a519bc5' into codex/ga…
benhook1013 Oct 31, 2026
eb69a13
Merge commit '22f00e04e603b4d09762bbce05a8323d7dee3737' into codex/ga…
benhook1013 Nov 1, 2026
ce4e8c4
Merge commit 'd6eea53ec8773b109083b7c5ae0389fd4d46a86a' into codex/ga…
benhook1013 Nov 1, 2026
a740233
Merge commit '621e7e776c80bad2c5fffd71acfe265d74fdd51b' into codex/ga…
benhook1013 Nov 1, 2026
4fb3446
Fix nondispatched script patch failure receipts and readiness refusal
benhook1013 Nov 1, 2026
c925b3d
Align Automation status with predispatch publication containment
benhook1013 Nov 1, 2026
d476f7f
Log retained script patch publication failures with workflow context
benhook1013 Nov 1, 2026
d253e1e
Align patch publication proof and Entity replay fixtures with guarded…
benhook1013 Nov 1, 2026
209523c
Merge commit 'a836cd1d89cd13efbfa62afe66c573660379cdfa' into codex/ga…
benhook1013 Nov 1, 2026
a2f7c62
Align retained publication failure and containment proof
benhook1013 Nov 1, 2026
66223b5
Merge commit 'a696c1e1a3e03ee6387aa66c25c79f8363f10265' into codex/ga…
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
7 changes: 4 additions & 3 deletions .github/scripts/run-gradle-module-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ readonly ROOT_DIR
readonly MODULE="${1:-}"
readonly PARTITION="${2:-full}"
if [[ $# -lt 1 || $# -gt 2 || ! "$MODULE" =~ ^[a-z0-9]+(-[a-z0-9]+)*$ || \
( ( "$MODULE" == "account-service" || "$MODULE" == "game-session-service" ) && $# -eq 2 && "$PARTITION" != "1" && "$PARTITION" != "2" ) || \
( "$MODULE" == "account-service" && "$PARTITION" != "full" && "$PARTITION" != "1" && "$PARTITION" != "2" ) || \
( "$MODULE" == "game-session-service" && "$PARTITION" != "full" && ! "$PARTITION" =~ ^[1-4]$ ) || \
( "$MODULE" != "account-service" && "$MODULE" != "game-session-service" && $# -eq 2 && "$PARTITION" != "full" ) ]]; then
echo "usage: run-gradle-module-checks.sh <module-name> [full|1|2] (Account and Game Session partitions only)" >&2
echo "usage: run-gradle-module-checks.sh <module-name> [full|partition] (Account: 1-2; Game Session: 1-4)" >&2
exit 64
fi

Expand Down Expand Up @@ -47,7 +48,7 @@ if [[ ( "$MODULE" == "account-service" || "$MODULE" == "game-session-service" )
--run-attempt "${GITHUB_RUN_ATTEMPT:-0}" \
--output-dir "$PARTITION_DIR" \
"${CLASS_DIR_ARGS[@]}"
CHECK_ARGS+=("-PslowServiceCiPartition=$PARTITION")
CHECK_ARGS+=("-PslowServiceCiPartitionModule=$MODULE" "-PslowServiceCiPartition=$PARTITION")
fi

# Keep the original recovery policy and complete check; diagnostics never retry it.
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,11 @@ jobs:
lightweight_only: false,
};
}
const partitionedSlowServices = new Set(["account-service", "game-session-service"]);
const slowServicePartitionCounts = { "account-service": 2, "game-session-service": 4 };
outputs.module_check_matrix = outputs.affected_modules.flatMap((module) =>
partitionedSlowServices.has(module)
? [
{ module, partition: "1", "java-version": 21 },
{ module, partition: "2", "java-version": 21 },
]
slowServicePartitionCounts[module]
? Array.from({ length: slowServicePartitionCounts[module] }, (_, index) =>
({ module, partition: String(index + 1), "java-version": 21 }))
: [{ module, partition: "full", "java-version": 21 }]
);
for (const [name, value] of Object.entries(outputs)) {
Expand Down Expand Up @@ -1081,6 +1079,10 @@ jobs:
with:
egress-policy: audit

- name: 'Declare Game Session CI partition count: 4'
if: ${{ matrix.module == 'game-session-service' }}
run: ':'

- name: ⬇️ Checkout Code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
Expand Down Expand Up @@ -1279,7 +1281,7 @@ jobs:
--selection-json "$SELECTION_PATH" \
--github-output "$GITHUB_OUTPUT"

- name: Download both effective Account partition artifacts
- name: Download all effective Account partition artifacts
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
continue-on-error: true
with:
Expand Down Expand Up @@ -1390,7 +1392,7 @@ jobs:
--selection-json "$SELECTION_PATH" \
--github-output "$GITHUB_OUTPUT"

- name: Download both effective Game Session partition artifacts
- name: Download all effective Game Session partition artifacts
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
continue-on-error: true
with:
Expand Down
31 changes: 27 additions & 4 deletions .github/workflows/validation-summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ jobs:
for (const job of jobs) {
if (fixedNames.has(job.name)) continue;
if ([...aggregateNames.values()].includes(job.name)) continue;
const match = /^Build and Test \(([a-z0-9-]+)(?: \/ (full|[12]))?\)$/.exec(job.name || "");
const match = /^Build and Test \(([a-z0-9-]+)(?: \/ (full|[1-4]))?\)$/.exec(job.name || "");
if (match && modules.has(match[1])) {
const [, module, partition] = match;
if (partition && (slowServices.has(module) ? !["1", "2"].includes(partition) : partition !== "full")) {
if (partition && (slowServices.has(module) ? !(module === "game-session-service" ? ["1", "2", "3", "4"] : ["1", "2"]).includes(partition) : partition !== "full")) {
throw new Error("Invalid module partition: " + job.name);
}
matrix.push({ job, module, partition: partition || null });
Expand All @@ -202,9 +202,32 @@ jobs:
for (const module of slowServices) {
const serviceMatrix = matrix.filter(entry => entry.module === module);
const aggregate = aggregates.get(module);
const partitioned = serviceMatrix.length === 2 &&
// Bind the selected count to this exact native source attempt, never a mutable branch.
// Old complete two-way Game Session jobs have native steps but no count marker.
// Empty step inventories cannot establish that historical shape: wholly skipped
// new jobs must not turn a truncated four-way matrix into an apparent old pair.
let expectedPartitions = "1,2";
let invalidPlanMarkers = false;
if (module === "game-session-service" && serviceMatrix.some(entry => entry.partition !== null)) {
const markers = serviceMatrix.map(entry => {
const steps = entry.job.steps;
if (!Array.isArray(steps) || steps.length === 0 || steps.length > 100 ||
steps.some(step => typeof step?.name !== "string")) return null;
return steps.filter(step => step.name.startsWith("Declare Game Session CI partition count:"));
});
const fourWay = markers.some(entries => entries?.length > 0);
if (fourWay) {
expectedPartitions = "1,2,3,4";
invalidPlanMarkers = markers.some(entries => entries?.length !== 1 ||
entries[0].name !== "Declare Game Session CI partition count: 4");
} else {
invalidPlanMarkers = markers.some(entries => entries === null);
}
}
const partitioned = !invalidPlanMarkers &&
serviceMatrix.length === expectedPartitions.split(",").length &&
serviceMatrix.every(entry => entry.partition !== null) &&
serviceMatrix.map(entry => entry.partition).sort().join(",") === "1,2";
serviceMatrix.map(entry => entry.partition).sort().join(",") === expectedPartitions;
const legacy = serviceMatrix.length === 1 && serviceMatrix[0].partition === null;
if (serviceMatrix.length > 0 && !partitioned && !legacy) invalidSlowServiceMatrix = true;
if (partitioned && (
Expand Down
22 changes: 16 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,21 @@ tasks.register<JavaCompile>("compileBufGeneratedJava") {
}

val fullCheck = project.hasProperty("fullCheck") || System.getenv("CI") != null
val slowServiceCiPartitionCounts = mapOf("account-service" to 2, "game-session-service" to 4)
val slowServiceCiModules = slowServiceCiPartitionCounts.keys
val slowServiceCiPartition = providers.gradleProperty("slowServiceCiPartition").orNull
val slowServiceCiPartitionModule = providers.gradleProperty("slowServiceCiPartitionModule").orNull
if ((slowServiceCiPartition == null) != (slowServiceCiPartitionModule == null)) {
throw GradleException("slowServiceCiPartition and slowServiceCiPartitionModule must be supplied together")
}
if (slowServiceCiPartitionModule != null) {
val partitionCount = slowServiceCiPartitionCounts[slowServiceCiPartitionModule]
?: throw GradleException("slowServiceCiPartitionModule must name an allowed slow service")
if (slowServiceCiPartition !in (1..partitionCount).map { it.toString() }) {
throw GradleException("slowServiceCiPartition is outside the selected module partition range")
}
}

val checkstyleToolVersion = "14.4.0"
val spotbugsToolVersion = "4.10.5"
val platformSettingsMetadataFiles = listOf(
Expand Down Expand Up @@ -384,8 +399,6 @@ subprojects {
if (file("src/test/java/integration").exists()) add("integrationTest")
if (file("src/test/java/crossservice").exists()) add("crossServiceTest")
}
val slowServiceCiModules = setOf("account-service", "game-session-service")
val slowServiceCiPartition = providers.gradleProperty("slowServiceCiPartition").orNull
val slowServiceCiCoverageAggregate =
providers.gradleProperty("slowServiceCiCoverageAggregate").orNull
val slowServiceCiCoverageClassesDirectory =
Expand Down Expand Up @@ -414,10 +427,7 @@ subprojects {
} else {
null
}
if (project.name in slowServiceCiModules && slowServiceCiPartition != null) {
if (slowServiceCiPartition !in setOf("1", "2")) {
throw GradleException("slowServiceCiPartition must be 1 or 2")
}
if (project.name == slowServiceCiPartitionModule) {
tasks.withType<Test>().configureEach {
val selectorFile = layout.buildDirectory.file(
"slow-service-ci-partition/" + project.name +
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 immutable complete handler-manifest and readiness-owner convergence remain incomplete. Current containment reports unsuccessful readiness instead of silent notification success, and Game Design refuses new patch publication without verified manifest evidence while retaining uncertain originals. The identifiable zero-handler path still lacks the durable `FAILED` projection and normal status/audit evidence required by this decision; no successful readiness or activation claim follows from rejection alone. Current scope, proof and remaining owner work belong to the [Automation tracker](../../project-management/implementation-tracking/automation-and-scheduler-runtime.md) and [Game Design tracker](../../project-management/implementation-tracking/game-authoring-publishing-and-activation.md).

## Decision Record

Expand Down
Loading
Loading