Protect adaptive evidence in runtime snapshots

This commit is contained in:
Theodore Song
2026-08-22 04:42:05 -04:00
parent ffd3acb7d9
commit 4d4a4b6d4d
6 changed files with 104 additions and 44 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ async function main() {
const branch = process.env.RUNTIME_BRANCH || "runtime-state";
const pathname = process.env.RUNTIME_STATE_PATH || "runtime/state.json";
const arenaUrl = (process.env.ARENA_URL || "https://polymarket-site-eta.vercel.app").replace(/\/$/, "");
const expectedBuild = Number(required("EXPECTED_BUILD", "119"));
const expectedBuild = Number(required("EXPECTED_BUILD", "120"));
await ensureRuntimeBranch(repository, branch);
const prior = await readRuntimeFile(repository, branch, pathname);
if (prior.snapshot) validateRuntimeSnapshot(prior.snapshot, 0, { allowIncomplete: true });