From 3efc5484c33bb640debb825f74c4ecf6cf634b62 Mon Sep 17 00:00:00 2001 From: Theodore Song Date: Fri, 21 Aug 2026 17:54:47 -0400 Subject: [PATCH] Harden shock strategy contract safety --- .github/workflows/autonomous-cycle.yml | 2 +- README.md | 12 ++++- index.html | 69 ++++++++++++++++++++------ scripts/run-autonomous-cycle.mjs | 2 +- scripts/test-autonomous-runtime.mjs | 4 +- sw.js | 2 +- 6 files changed, 69 insertions(+), 22 deletions(-) diff --git a/.github/workflows/autonomous-cycle.yml b/.github/workflows/autonomous-cycle.yml index 2ee17e4..1432ed6 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: "93" + EXPECTED_BUILD: "94" RUNTIME_BRANCH: runtime-state RUNTIME_STATE_PATH: runtime/state.json GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 0d14ad8..0c56240 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 93 runs the headless GitHub Actions runtime every 15 minutes, continues +Build 94 runs the headless GitHub Actions runtime every 15 minutes, 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 @@ -41,6 +41,16 @@ Polymarket event key. Related Ethereum or Bitcoin contracts cannot create several simultaneous copies of one move, and outcomes from the same underlying three-hour shock window count as one learner event. +Build 94 also closes the contract-safety hole exposed by the first Strategy 3 +paper positions. Shock Strategy 4 keeps the same audited accelerating +three-hour fade and fixed 12-hour executable exit, but it will not enter a +path-dependent barrier, an exact numeric range, or a market without at least +the full 12-hour holding period plus its two-hour grading tolerance remaining. +Older unsafe shock positions are unwound at an executable bid; older valid +positions continue to their recorded target and still reserve their underlying +risk so the new strategy cannot overlap them. Strategy 4 starts a fresh shared +forward ledger because its eligible contract universe is materially different. + Build 73 distinguishes a temporary order-book pause from settlement. Exact market refreshes still mark paused positions to the latest published price, but the engine cannot simulate a stop, policy exit, or settlement while diff --git a/index.html b/index.html index f8e02c2..2d74bc7 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