feat(quant): implement Plan #72 pre-market-open daily brief & dual-calendar VPS cadence

This commit is contained in:
Hermes Agent committed 2026-12-02 22:09:58 +00:00
1 parent 3945e3648a
commit d4b7502501
8 files changed
+165 -16

No files matched your search

@@ -1,5 +1,5 @@
[Unit]
Description=Hyperstition Studio US Closing-Bell Financial & FRED Macro Harvest (21:30 UTC Mon-Fri)
Description=Hyperstition Studio Pre-Market-Open (14:00 UTC) & US Closing-Bell (21:30 UTC) Financial & FRED Macro Harvest (Mon-Fri)
After=network-online.target
Wants=network-online.target
@@ -9,4 +9,4 @@ WorkingDirectory=/srv/hyperstitionstud.io/repos
Environment="REPOS_ROOT=/srv/hyperstitionstud.io/repos"
Environment="LIVE_REPOS=/var/www/hyperstitionstud.io/repos"
Environment="PYTHONPATH=/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/src"
ExecStart=/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/run-vps-data-production.sh --window=us-closing-bell
ExecStart=/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/deploy/run-vps-data-production.sh --window=auto
@@ -1,7 +1,8 @@
[Unit]
Description=Weekday 21:30 UTC (16:30 EST) Timer for Hyperstition Studio US Closing-Bell Harvest
Description=Weekday 14:00 UTC (09:00 EST) & 21:30 UTC (16:30 EST) Timer for Hyperstition Studio Pre-Market & Closing-Bell Harvest
[Timer]
OnCalendar=Mon..Fri *-*-* 14:00:00 UTC
OnCalendar=Mon..Fri *-*-* 21:30:00 UTC
Persistent=true
RandomizedDelaySec=15
+19 -1
View File
@@ -69,6 +69,24 @@ for arg in "$@"; do
esac
done
if [[ "${WINDOW_MODE}" == "auto" ]]; then
UTC_HOUR="$(date -u +%H)"
case "${UTC_HOUR}" in
13|14|15)
WINDOW_MODE="us-pre-market-open"
;;
21|22|23)
WINDOW_MODE="us-closing-bell"
;;
00|01|02)
WINDOW_MODE="utc-rollover"
;;
*)
WINDOW_MODE="us-closing-bell"
;;
esac
fi
LOCK_FILE="${HYPERSTITION_HARVEST_LOCK:-/tmp/hyperstition-vps-harvest.lock}"
if [[ -n "$(type -P flock || true)" ]]; then
exec 9>"${LOCK_FILE}"
@@ -102,7 +120,7 @@ if [[ "${PUSH_ONLY}" -eq 0 ]]; then
fi
fi
run_checked "quant.timeseries" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.timeseries
run_checked "hs-daily-brief" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.daily_brief
run_checked "hs-daily-brief" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.daily_brief --window "${WINDOW_MODE}"
run_checked "build_encyclopedia_knowledge_graph.py" "${PYTHON_BIN}" "${REPOS_ROOT}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only
echo "[2/5] Running Stage 3 transactional verification gates (hs-doctor, ReadOnlyIsolationGuard, test_core_suite)..."