From 6e6477a4e393b331ca44a84aa1a8e335c8e734de Mon Sep 17 00:00:00 2001 From: Theodore Song Date: Fri, 21 Aug 2026 17:13:24 -0400 Subject: [PATCH] Reject incomplete autonomous cycles --- .github/workflows/autonomous-cycle.yml | 2 +- README.md | 2 +- index.html | 10 +++++----- scripts/run-autonomous-cycle.mjs | 13 +++++++++---- scripts/test-autonomous-runtime.mjs | 9 +++++---- sw.js | 2 +- 6 files changed, 22 insertions(+), 16 deletions(-) diff --git a/.github/workflows/autonomous-cycle.yml b/.github/workflows/autonomous-cycle.yml index 0c38c92..135fa63 100644 --- a/.github/workflows/autonomous-cycle.yml +++ b/.github/workflows/autonomous-cycle.yml @@ -34,7 +34,7 @@ jobs: - run: node scripts/run-autonomous-cycle.mjs env: ARENA_URL: https://polymarket-site-eta.vercel.app - EXPECTED_BUILD: "88" + EXPECTED_BUILD: "89" RUNTIME_BRANCH: runtime-state RUNTIME_STATE_PATH: runtime/state.json GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 5c12dcd..e938606 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ market snapshots. During an outage, cycles continue locally; cached entries are allowed for 90 minutes, older snapshots become mark-only, and all cached data expires after 24 hours. -Build 88 adds a headless GitHub Actions runtime that checks the production site +Build 89 adds a headless GitHub Actions runtime that checks the production site at seven minutes past every hour, continues from the previous agent snapshot, and runs the next due paper cycle even when no browser is open. It writes a sanitized snapshot to the `runtime-state` branch and `/api/state` uses that as a diff --git a/index.html b/index.html index 56ee3b6..50150d6 100644 --- a/index.html +++ b/index.html @@ -341,7 +341,7 @@ footer{margin-top:34px;padding-top:22px;border-top:1px solid var(--border);color