Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

ci(cache): gate offline cleanup with exported package evidence

yhh0a37e5329e9a
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f0d01ae16..8036e1c75 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -794,6 +794,21 @@ jobs:
if: ${{ !cancelled() && matrix.shard == 1 }}
run: pnpm run verify:remote-capture
+ - name: Check protected cache versions survive cleanup and offline restart
+ if: ${{ !cancelled() && matrix.shard == 3 }}
+ run: pnpm run verify:cache-budget
+
+ - name: Keep cache cleanup and offline restart evidence
+ if: ${{ !cancelled() && matrix.shard == 3 }}
+ uses: actions/upload-artifact@v7
+ with:
+ name: cache-budget-evidence
+ path: |
+ output/cache-budget/render/verification.json
+ output/cache-budget/render/*.png
+ if-no-files-found: error
+ retention-days: 7
+
# A package whose points missed is a claim about a PICTURE, and the picture
# has to leave the runner, or nobody can tell a real regression from a frame
# the software rasteriser had not finished.
diff --git a/docs/CACHE_BUDGET_REVIEW_2026-10-13.md b/docs/CACHE_BUDGET_REVIEW_2026-10-13.md
index 497b5a6cc..ed041c231 100644
--- a/docs/CACHE_BUDGET_REVIEW_2026-10-13.md
+++ b/docs/CACHE_BUDGET_REVIEW_2026-10-13.md
@@ -1,7 +1,11 @@
# v0.78.0 card review and cache-budget verification — 2026-10-13
-The latest fetched engine mainline is `acdc5ded8cc939d81cbb2128d12e93609c0b3da1`;
-its editor submodule is `53e998badfa4dfce0d377c0c29b6107502bb893d`.
+The verified branch is based on engine `19f7ec25279717b874afcae87d2c5e047b458f7b`
+and editor `ba95cde5127b5a6c8c24f2860f365397b20a0071`. Draft reviews are
+[engine #95](https://github.com/esengine/estella/pull/95) and
+[editor #20](https://github.com/esengine/estella-editor/pull/20).
+The initial review used engine `acdc5ded8cc939d81cbb2128d12e93609c0b3da1`
+and editor `53e998badfa4dfce0d377c0c29b6107502bb893d`, before the rebase below.
[v0.78.0](https://github.com/esengine/estella/releases/tag/v0.78.0) was published
on 2026-10-12. Existing uncommitted changes in `D:/estella` and its editor were
preserved. Work is on `codex/cache-version-budget` in a separate checkout.
@@ -20,9 +24,9 @@ actual missing work was management, version protection and author-facing control
Earlier pending device cards (including RM-033 and RM-054) still require their
specified physical-device evidence; their status was not inferred from releases.
-The changes are local and unmerged. A `gh pr list --state all --search 'cache
-budget'` query returned no matching engine PR at review time. No board completion
-or device acceptance is claimed and no remote card was changed.
+The changes are pushed for draft review and unmerged. The initial review found
+no matching cache-budget PR; the two drafts above were subsequently created.
+No board completion or device acceptance is claimed and no remote card was changed.
## Implemented
@@ -183,3 +187,9 @@ startup starvation, not a proven Electron root cause. Failed runs remain in
It rendered green/red/blue, released 209 B while preserving 418 B of current and
rollback resources, kept pixels identical, and restarted offline without a CDN
request. This is contract-host evidence, not physical-device acceptance.
+
+The verifier is now a named release criterion and runs in the third golden CI
+shard, which retains its JSON and screenshots. Engine Build was dispatched on
+the implementation branch; the first editor CI ran before its companion engine
+branch existed and failed to resolve the new SDK types. It was rerun after that
+branch was pushed. Remote results are pending, not inferred from local passes.
diff --git a/tools/releaseGate.mjs b/tools/releaseGate.mjs
index 084edab58..126c8adf0 100644
--- a/tools/releaseGate.mjs
+++ b/tools/releaseGate.mjs
@@ -105,6 +105,13 @@ export const CRITERIA = [
'node tools/verify-render.mjs --tier nightly && node tools/verify-render.mjs --tier nightly --backend webgpu',
needs: ['tools/renderScenes.mjs', 'tools/verify-render.mjs'],
},
+ {
+ id: 'offline-versions-survive-cache-cleanup',
+ says: 'a mini-game package cleans old resource bytes at quota, preserves current and rollback versions, and restarts offline without downloading',
+ answeredBy: 'pnpm run verify:cache-budget',
+ needs: ['tools/launchers/cache-budget-render-verify.mjs',
+ 'tools/cache-budget-render-fixture.mjs', 'tools/fixtures/cache-budget-render-fixture.ts'],
+ },
{
id: 'hot-update-lands-or-rolls-back',
says: 'a shipped build takes an update from a CDN, and refuses a broken one whole',