Research infrastructure for point-in-time, reproducible market forecasting.
The proposed next product iteration is Agentic Investment System V1: a cooperating research team for investment decisions over several weeks to three months. Start with the V1 implementation plan. M1–M3 engineering is implemented; the first real report failed the user's usefulness review. Start with the current handoff and delivery repair. The latest continuation verifies source readiness without model calls and separates supported conclusions from the specific uncertainties that affect them. M4 remains open and V1 is not released. The reviewed agent configuration is now the default for new v6 runs: prompts v2.17, high reasoning, improved role context and Sol for Technical. Individual development scores do not close M4. The evaluation runner now has a measured Company/Director baseline; its failed delivery and usefulness review identify the next prompt/context interventions.
The revised live global assessment goal is implemented in the local workspace: one to five selected US-listed stocks, 5/21/63-session horizons, timestamped assessment and source clocks, conditional outcomes and view-change conditions. All seven agents have readable activity, conclusion and short-summary reports; relevant charts and evidence expand on demand. See the workspace guide for input and navigation. New v7 runs use the v2.21 derived live/report profile; existing v6 runs retain the frozen v2.17 promotion. Development quality evidence and release gates remain separate.
New v6/v7 runs also use specialized research skills: 14 researched procedures across all seven agents, separate from their core prompts. The implementation includes frozen skill versions, per-agent traces, 28 paired reasoning cases, individual-stage replay and registered improvement comparisons. The initial skills are development candidates; usefulness and release acceptance still require evidence from evaluated research runs.
The existing engineering baseline is Improvement Plan 3; see its implementation handoff and project status. Archived synthesis and a fresh chain through compact recovery are verified; ordinary-path reliability and other acceptance work remain. Existing historical ETF results remain diagnostic; statistical/data qualification is separate from engineering.
The separate Cycle 1 pre-evaluation repair remains preserved; see its
repair findings.
npm run cycle1:preflight audits the pinned dataset without model metrics;
exit code 2 reports the known scientific blockers. The old v4 dataset is
suspended for evaluation, and its repaired offline rebuild fails closed on
missing historical cash-rate publication coverage.
The separate multi-agent GOLDEN GOAL watchlist pipeline is implemented
through G10. It accepts a normal set of five symbol/ETF parameters, captures
current evidence, runs five specialists plus critic and synthesis, generates
experimental 5/21/63-session forecasts and recommendations, and writes a
readable local cockpit. Start with the
daily operations and interpretation guide.
The repository contains the hardened FOUNDATION-001 research spine and a no-LLM TARGET-TOURNAMENT-001 qualification pipeline. The foundation uses a deterministic synthetic dataset; the tournament pins raw real-market responses and refuses to freeze a target when provenance or sample-size gates fail.
- Node.js 22 or newer
- npm
- Python 3.12–3.14
uv
npm install
UV_CACHE_DIR=.uv-cache uv sync --project python
npm run foundationThe command performs this complete flow:
synthetic point-in-time bars
→ immutable 09:29 ET snapshots
→ separate 09:31–10:00 labels
→ purged chronological partitions
→ historical-frequency baseline
→ JSON experiment artifacts
→ Parquet + DuckDB materialization
Run it again to reuse all completed daily checkpoints. To exercise resume behavior manually:
npm run foundation -- --stop-after 5
npm run foundationGenerated outputs live under experiments/foundation-* and
datasets/foundation/. They are intentionally ignored by Git.
Experiment manifests separate a configuration-derived researchDefinitionId
from a concrete, code-aware experimentId. Clean work records the Git commit;
dirty or uncommitted work additionally receives a deterministic source-tree
fingerprint, preventing checkpoint reuse after a code change.
npm run checkTests cover deterministic hashing, code-aware identity, New York daylight-saving conversion, cutoff rejection, delayed-record leakage, immutable snapshots, target separation, holidays and early closes, purged chronological partitions, filesystem and PostgreSQL checkpoint resume behavior, JSON-schema validation, and DuckDB/Parquet materialization.
The local database binds only to 127.0.0.1 on port 54329. Development
defaults are defined in compose.yaml; copy .env.example to .env only when
you need to override them.
npm run db:up
npm run db:migrate
npm run db:verifydb:migrate is idempotent. db:verify checks the nine foundation tables and
proves that the database rejects a target whose start is before its snapshot
cutoff. check:db also runs a database-backed stop/resume integration check.
Set DATABASE_URL when running foundation to use PostgreSQL as metadata truth:
DATABASE_URL=postgresql://spy_predictor:spy_predictor_dev@127.0.0.1:54329/spy_predictor npm run foundationStop the container without deleting its named volume using:
npm run db:downBackup and destructive-reset precautions are documented in
docs/DATA_DURABILITY.md.
npm run tournamentThis pins raw SPY, QQQ, ES, and NQ responses, generates six horizons, and runs
expanding and rolling evaluations with directional, volatility, calibration,
stability, and transaction-cost metrics. The public qualification feed does
not provide original first-seen/revision timestamps, so its report is required
to return NO_TARGET_ADEQUATE; it validates the pipeline but cannot freeze V1.
See docs/TARGET-TOURNAMENT-001.md.
The production Phase 1 path uses the existing Alpaca account for raw SIP
SPY/QQQ bars and Massive Futures Basic ($0/month) for explicit ES/NQ contracts.
It never requests account data or submits orders. Put MASSIVE_API_KEY beside
the existing Alpaca credentials in the ignored .env, then run:
npm run massive:check
npm run phase1The check reports Futures and Indices separately. Phase 1 requires
futures.status: ok. The META intraday VIX panel additionally requires
indices.status: ok for both I:VIX and I:VIX3M; not_entitled is a visible
current-volatility gap and does not imply the Futures credential is invalid.
npm run phase1 builds or resumes the immutable two-year raw archive,
normalizes the fixed 09:30–16:00 New York research session, verifies every
configured futures contract and roll, compares all four instruments with the
pinned IBKR history, and runs the 24-candidate sealed-confirmation tournament.
Massive's free Futures five-request-per-minute limit makes the first acquisition slow;
completed pages are always reused.
After the first acquisition, prove that no network access or recomputation is required and that identities are stable with:
npm run phase1 -- --offlineapps/cli: experiment entry pointpackages/domain: research types, hashing, and time invariantspackages/data-providers: provider interface and hard cutoff wrapperpackages/snapshot-engine: immutable snapshots and future target generationpackages/evaluation: chronological partitions and baseline metricspackages/persistence: resumable local experiment statepackages/agent-runtime: provider-neutral interface and mock runtimepython: DuckDB/Parquet analytical boundarymigrations: PostgreSQL metadata schemaschemas: language-neutral JSON schemas
Pi-based META research is isolated from the Cycle 1 experiment authorities and has no order path. Ollama and evolutionary optimization remain deferred.
The first contract/research engineering release uses v3 forecasts and product views and v4 agent requests. It adds point-in-time research storage, purged experimental comparisons, dated event controls, auditable conditions and price-freshness overlays. The ten-phase plan remains in progress; production probabilities remain heuristic and uncalibrated. See delivery evidence, commands and remaining gates.