Deploy hourly autonomous paper runtime

This commit is contained in:
Theodore Song
2026-08-21 17:10:26 -04:00
parent a10c9a304c
commit 83e4ea8203
10 changed files with 482 additions and 29 deletions
+12
View File
@@ -20,6 +20,18 @@ 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
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
read-only fallback while Neon or Vercel Blob is unavailable. The public snapshot
contains only `pma_agents_v2` and `pma_suggestions_v5`, with suggestions capped at
300 to keep cross-device loads small. Paper accounts, passwords, email settings,
investment allocations, chat history, wallet information, and live-money
settings are explicitly excluded. Manual cycles can still run locally, but the
next autonomous hourly result is the shared public authority until managed
storage is restored.
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