chore(m2): execute host/quant verification, fix live blockers, and record M2 closure evidence (T-215)
This commit is contained in:
parent
87ae19e5f9
commit
a5184bb417
21 changed files with 1370 additions and 74 deletions
|
|
@ -80,27 +80,27 @@ Actionable build tracker for turning Stock Bot into the AI algo research & IB li
|
|||
|
||||
---
|
||||
|
||||
## M2 — MCP Copilot, Intraday QuestDB `10.2.0` & PIT Fundamentals *(Weeks 4–5)*
|
||||
## M2 — MCP Copilot, Intraday QuestDB `10.2.0` & PIT Fundamentals *(Weeks 4–5 — **CLOSED**, see [m2-close-evidence.md](m2-close-evidence.md))*
|
||||
|
||||
**Goal:** Connect desktop Claude Code via MCP, curate 2D point-in-time fundamentals (`qmFinancials × qmFilings`) and split-unadjusted `1m` intraday bars (`QuestDB 10.2.0`), and launch the versioned batch Feature Library.
|
||||
**Goal:** Connect desktop Claude Code via MCP, curate 2D point-in-time fundamentals (`qmFinancials × qmFilings`) and raw/unadjusted `1m` intraday bars (`QuestDB 10.2.0`), and launch the versioned batch Feature Library.
|
||||
|
||||
### Checklist
|
||||
- [ ] **MCP Server (`web-api` / standalone stdio+SSE wrapper):**
|
||||
- [x] **MCP Server (`web-api` / standalone stdio+SSE wrapper):**
|
||||
- Expose `search_symbols`, `query_data` (vault-fenced), `analyze_signal`, `event_study`, `file_finding`, `read_knowledge` (serving `~/repos/studio/catalog/quant/library/library.yml` + Postgres `findings`/`provider_caveats`).
|
||||
- [ ] **PIT Fundamentals & CEO Posts (`Parquet + DuckDB`):**
|
||||
- [x] **PIT Fundamentals & CEO Posts (`Parquet + DuckDB`):**
|
||||
- Join `qmFinancials` (+ `qmFinancials-old`) to `qmFilings.timefiled` (`10-Q`, `10-K`, `40-F`, SEDAR `Interim/Annual financial statements`), applying `+45d/+90d` (US/TSX) and `+60d/+120d` (TSXV/CSE) statutory lags where unlinked (`known_at_source = 'statutory_lag_estimate'`).
|
||||
- Materialize 2D `(period_end, known_at)` deduplicated wide snapshots + TTM features (`fundamentals_pit`).
|
||||
- Curate `ceoPosts` (`14.8M`) separating `bot == "1"` newswires from retail posts and guarding `edited != null` text timestamps; curate lagged `teData` regime series.
|
||||
- [ ] **Intraday Curation (`QuestDB 10.2.0`):**
|
||||
- [x] **Intraday Curation (`QuestDB 10.2.0`):**
|
||||
- Replace legacy `libs/data/questdb` (`LATEST BY` → `LATEST ON`, parameterized PGWire queries, ILP v2 batch writer); verify `vm.max_map_count >= 1048576` and `ulimits.nofile = 1048576` on `quant` before bulk load.
|
||||
- Extend `tools/curate-etl` with sharded multi-socket ILP v2 writers to stream split-unadjusted `eodIntraday1M` (`3.40B` rows, US 2003–2025), raw `qmIntraday` (CA/US 2024–2025), and `CAD.FOREX` `1m` (`5.2M` bars) into **`PARTITION BY MONTH`** `bars_1m` (`270` partitions across 22.5y) and `fx_1m` (`listing_id SYMBOL CAPACITY 65536 NOCACHE`, `DEDUP UPSERT KEYS(ts, listing_id)`).
|
||||
- [ ] **Versioned Feature Library (`D04` reopened):**
|
||||
- Extend `tools/curate-etl` with sharded multi-socket ILP v2 writers to stream raw `eodIntraday1M` (`3.40B` rows, US 2003–2025; `--split-mode raw` default after live corpus audit, optional `--split-mode unadjust`), raw `qmIntraday` (CA/US 2024–2025), and `CAD.FOREX` `1m` (`5.2M` bars) into **`PARTITION BY MONTH`** `bars_1m` (`270` partitions across 22.5y) and `fx_1m` (`listing_id SYMBOL CAPACITY 65536 NOCACHE`, `DEDUP UPSERT KEYS(ts, listing_id)`).
|
||||
- [x] **Versioned Feature Library (`D04` reopened):**
|
||||
- Build declarative SQL/Polars batch runner writing versioned `(listing_id, ts, known_at, value)` columns + `register_signal(...)` SDK entrypoint.
|
||||
|
||||
### Exit Criteria
|
||||
1. Desktop Claude Code via MCP executes a fundamental + alt-data signal study and event study end-to-end, exports a `marimo check`-clean static HTML snapshot, and files a finding.
|
||||
2. Restatement fixture test proves a restated Q1 (`known_at > Q2`) never overwrites Q2 in `fundamentalsAsOf`.
|
||||
3. Split-boundary test on `NEXM.V` (`1:20`) and `NVDA.US` (`10:1`) confirms `bars_1m` session closes match raw `bars_1d` closes within `0.5%`, and 1y of `1m` bars for one listing loads in **`< 250 ms` warm / `< 1 s` cold**.
|
||||
1. [x] Desktop Claude Code via MCP executes a fundamental + alt-data signal study and event study end-to-end, exports a `marimo check`-clean static HTML snapshot, and files a finding. *(Verified `2026-12-06`; see [m2-close-evidence.md](m2-close-evidence.md).)*
|
||||
2. [x] Restatement fixture test proves a restated Q1 (`known_at > Q2`) never overwrites Q2 in `fundamentalsAsOf`. *(Verified in Rust `curate-etl`, DuckDB `MarketDataStore`, and Python `stockbot` tests.)*
|
||||
3. [x] Split-boundary test on `NEXM.V` (`1:20`) and `NVDA.US` (`10:1`) confirms `bars_1m` session closes match raw `bars_1d` closes within `0.5%`, and 1y of `1m` bars for one listing loads in **`< 250 ms` warm / `< 1 s` cold**. *(Verified on `quant` QuestDB `10.2.0`: `NVDA.US` `0.0965%`, `NEXM.V` `0.0000%`, `AVGO.US` `0.0408%`; 1y `CMG.US` `137,382` bars `291.65 ms` cold / `128.74 ms` warm median Pass 1, `207.88 ms` cold / `127.94 ms` warm median Pass 2.)*
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue