First run 2026-08-09. Spec r1v1, frozen in SPEC.md before the first
forward signal was emitted.
This is the forward deployment of R1 (research/fomc_drift/), the only
tradeable result to survive three rounds of adversarial review. Nothing here is
new evidence about the effect — the point was to turn a finding into a process
that keeps itself honest.
1. The backtest reproduces the study exactly
strategy.py re-implements the trade arithmetic in ledger shape rather than
importing it out of the published study (see its docstring for why). The two
agree field-for-field to rel=1e-12, pinned by
test_strategy.py::test_matches_study_implementation.
FOMC overnight overlay -- backtest (spec r1v1)
source Stooq snapshot, spy, ends 2026-04-24
window close(last session before D) -> open(D)
events 168 scheduled decisions 2005-02-25 .. 2026-04-24
cost 1.0bp/side (2.0bp round trip)
n 168
gross/trade +16.77 bp
net/trade +14.77 bp
hit rate 63.7 %
net total 27.8 % over 21.2y
net CAGR 1.17 %
Sharpe 0.74
worst / best -270 / +219 bp
net/trade by subperiod:
2005-2011 n= 55 +15.75 bp
2012-2015 n= 32 +11.37 bp
2016-2020 n= 39 +16.38 bp
2021-2026 n= 42 +14.59 bp
The subperiod rows are net of the 2bp round trip; adding it back gives +17.75 /
+13.37 / +18.38 / +16.59bp, which is the study's gross block to the last digit.
The edge dies between 5 and 10bp per side, so the conservative 1bp assumption is
not doing the work (test_survives_a_realistic_cost_multiple).
2. The live price vendor had to change, and the change was measured
Stooq's CSV endpoint is gone. stooq.com/q/d/l/?s=spy.us&... and the .pl
host both now return a JavaScript proof-of-work browser challenge instead of a
CSV. That is bot detection, and defeating it was not attempted.
Substituted the Yahoo chart endpoint (query1.finance.yahoo.com/v8/finance/chart/),
unauthenticated but it returns 429 without a User-Agent. Because the backtest
and the forward ledger now read different vendors, the cost of the swap was
measured rather than assumed. Across the 84 nights the two sources share
(2025-12-22 → 2026-04-24):
| quantity | mean diff | sd | max abs |
|---|---|---|---|
| open | +0.001bp | 0.008bp | 0.073bp |
| close | −0.006bp | 0.053bp | 0.490bp |
| overnight return | +0.0009bp | 0.0080bp | 0.0732bp |
Three orders of magnitude below the ~13bp effect. The vendor change costs nothing measurable.
Two properties of the Yahoo feed matter beyond that:
indicators.quoteopen/close are split-adjusted but not dividend-adjusted, so a re-fetched partition yields the same overnight return it did the first time. This is what makes the ledger safe to recompute from current inputs.- Bars are stamped at the exchange's opening time in exchange-local time, so
the session date is unambiguous. The parser reads the zone from
meta.exchangeTimezoneNamerather than assuming UTC — a bar stamped 09:00 JST would be the previous day in UTC.
3. New data finding: the snapshot is missing 2011-02-17 for NYSE-Arca ETFs
Validating the new NYSE session rules against the snapshot turned up one disagreement in 21 years: the rules say Thursday 2011-02-17 was a session, and SPY has no bar for it.
The rules are right. qqq, ^spx and Yahoo all have the bar; spy, iwm,
dia and tlt all lack it. It is a vendor hole affecting a group of NYSE-Arca
listings, not a market closure.
Consequences:
- No effect on R1 or on this strategy. The nearest scheduled decision is more than five days away, so no event window touches it.
- The session rules are validated against
^spx, where they match exactly — 5,324 sessions, zero disagreement in either direction over 2005-02-25 → 2026-04-24. Validating againstspywould have pushed a fake holiday into the table to paper over someone else's missing bar. test_spy_snapshot_gap_is_the_documented_onepins the gap at exactly this one date, so it stays a known quantity.
The two directions of that test mean different things and are asserted differently: a bar on a day the rules call closed can only be a wrong holiday rule, so that direction is strict; the other direction can also be a missing bar, so known gaps are allowlisted, and the allowlist has one entry.
4. The forward loop runs unattended
pipeline graph --check -> ok: 16 worker(s), 5 layer(s)
yahoo.poll --once -> SPY 150 bars / ^GSPC 150 bars, 2026-01-02..2026-08-07
fomc_overlay.signal --once -> 11 emitted, 0 already registered
fomc_overlay.signal --once -> 0 emitted, 11 already registered (write-once)
fomc_overlay.evaluate --once -> 0 settled, 11 awaiting prices
Eleven signals registered, 2026-09-16 → 2027-12-08, lead times 36.9 to 484.9
days ahead of their entry closes. emitted_at is never rewritten, which is the
only thing that makes those lead times mean anything. The first genuinely forward
event is 2026-09-16 (entry session 2026-09-15).
Those 11 partitions predate the pre_registered column added in §5b. Write-once
means they keep their original schema — deleting them to tidy it up would destroy
the very emitted_at they exist to prove — so consumers default a missing value
to True, which is correct for all 11 (every one was emitted at least 36 days
ahead). Pinned by
test_signals_predating_the_pre_registered_column_default_to_true.
fomc_overlay.evaluate sits at DAG layer 4 behind yahoo.poll, so a ledger row
appears on its own the evening a decision day's bar lands.
5. Five bugs found by review, all fixed
A 23-agent adversarial review (three independent lenses, each finding independently verified by a refutation pass) raised 8 findings that survived refutation, clustering into five distinct bugs. All are fixed and each has a regression test that was checked to fail without its fix.
5a. The catalog is not the record — twice
Both instances are the same mistake: ask the artifact catalog what already exists, then overwrite based on the answer.
open_ledger() returns Postgres when reachable and SQLite when not, and the two
are reconciled only by an explicit pipeline db sync (which is itself
unimplemented). Postgres is currently down, so everything written so far is
catalogued in SQLite alone. The moment Postgres comes back, the catalog reports
nothing.
fomc_overlay.signalwould have rewritten all 11 signal partitions with a freshemitted_at, converting the pre-registration into a postdiction with nothing downstream able to tell. Verified by disabling the fix:partitions_writtengoes 0 → 11 and every timestamp moves.yahoo.poll._mergewas worse — it destroys price history. The merge reads what a month holds and rewrites the month in full, so an uncatalogued month loses every bar older than the 45-day trailing window, permanently, because the window only moves forward and nothing re-requests them. Verified: three of four bars deleted, silently, with a success result. Downstream, a decision whose entry bar fell in the deleted stretch would then settle a multi-week return as that night's P&L, markedsettled.
Both now read the file on disk when the catalog has no row, log the pipeline
scan remediation, and never overwrite what they cannot first read.
The lesson generalizes to anything in this workspace asserting a write-once or merge-then-replace artifact: the catalog is a cache of what happened, not the record of it. An invariant whose whole value is that it cannot be re-run has to check the durable thing.
5b. A timestamp alone does not prove foresight
signal.py never compared emitted_at against the entry session — and
report.py selected forward rows on status == "settled" only. So a signal
emitted after its own entry close would have been averaged straight into the
headline forward mean and t-statistic: look-ahead laundered into the one number
the report exists to produce.
Reachable without anything exotic. The FOMC table is hand-maintained, so extending it after a meeting has passed emits a signal whose entry close is history; a re-run after the gitignored data directory is lost does the same for every meeting to date (open item 5, below). Reproduced with the clock at 2026-10-01 and no table edit at all.
Signals now carry pre_registered, decided at emission against the entry
session's 16:00 ET close. Late rows are still written — a suppressed row is a hole
in the audit trail — but flagged, logged at ERROR, carried through to the ledger,
and excluded from the forward statistics under their own heading.
5c. Two timezone bugs in the same comparison
The pre-registration check compared a naive-UTC emitted_at against ET midnight.
UTC leads ET by 4–5 hours, so a signal emitted at 22:00 ET the evening before
the entry — 18 hours ahead of the trade — was flagged "NOT pre-registered".
Crying wolf on the single assertion this strategy's credibility rests on is
exactly how a real violation gets ignored. The same subtraction, with .dt.days
truncation, also understated every printed lead time by about a day.
Both now go through one helper, entry_deadline_utc, which the emitter and the
report share. Lead times read in fractional days (36.9..484.9 rather than
36..484).
5d. The report's backfill path skipped its own honesty checks
backfill_rows reimplemented the evaluator for the three pre-registration
meetings and dropped both of its safeguards: it hardcoded
entry_rule_mismatch: False while still rendering that column, and it silently
skipped a meeting whose bars were missing. This was the only entry-selection path
with no cross-check against the rule table, and the only one reading a live
mutable feed. Latent — all three current entries match — but a one-day vendor hole
of exactly the kind the snapshot itself has at 2011-02-17 would have booked a
two-night return as one night with the mismatch flag reading clean.
5e. Shape checks that only checked presence
parse_chart verified that open/high/low/close were present, then
indexed them. A present-but-null array, an array shorter than timestamp, a
scalar, a non-numeric value, or an unknown exchangeTimezoneName escaped as
TypeError/IndexError/ValueError/ZoneInfoNotFoundError — none of which
fetch_symbol catches — so one malformed body killed the poll loop and every
symbol after it went unfetched, contradicting the function's own docstring. Fails
closed (no bad price is ever written), so this was availability rather than
correctness, but it is now a single recognisable YahooShapeError with a
parametrized test per shape.
What the review did not find
No violation of the splice rule, no look-ahead in the signal path, no unscheduled
meeting reaching a signal row, and research/fomc_drift/study.py confirmed
unmodified. Fifteen further findings were raised and refuted on the code.
6. The three backfill events, and why they are labelled
Three scheduled decisions fell between the snapshot freezing and this strategy
existing. They get no signal rows — emitting one would claim foreknowledge the
timestamp cannot support — so report.py prices them directly from
yahoo.daily and labels them backfill.
meeting entry entry cl exit op gross net exp status
2026-04-29 2026-04-28 711.69 711.00 -9.70 -11.70 +14.77 backfill
2026-06-17 2026-06-16 750.33 751.29 +12.79 +10.79 +14.77 backfill
2026-07-29 2026-07-28 740.86 739.97 -12.01 -14.01 +14.77 backfill
backfill (NOT pre-registered): n=3 mean -4.97bp sd 13.7 se 7.9
t vs 0 -0.63
t vs +14.77 expected -2.50
MDE80 22.2bp (vs a 14.77bp effect -- POWERLESS)
Two of three lost money and the mean is 20bp below expectation at t = −2.50.
This says nothing. MDE80 is 22.2bp against a 14.77bp effect — the sample
cannot detect the thing it is being compared to. Reporting the t-statistic
without the MDE beside it is exactly how three events become a story, so the
report prints both and stamps POWERLESS when it applies.
Worth stating plainly because it will come up again: at ~56bp per-event sd, confirming a ~13bp mean at t≈2 needs about 70 events, or nine years. The forward ledger is not a re-validation and must never be read as one. Its jobs are proving pre-registration, catching gross errors while they are one event old, and recording the tail when it arrives.
7. What was deliberately not built
- No order placement. Nothing in this workspace can place a real order, and that stays true. The deliverable is a signal and a ledger.
- No conditioning. The rate-uncertainty tercile split is real (+18.67bp, t=3.32 in the top tercile) and is excluded: SPY's own unconditional overnight concentrates in the same tercile by a similar ratio, so it is not rates-specific, and it was never pre-registered.
- No entry-offset search. Day −4 clears Bonferroni at t=3.01 and is the project's canonical false positive.
- No
exchange_calendarsdependency. ~150 stdlib lines, validated against 21 years of observed sessions. - No general price source.
yahoo.dailyis two symbols and its docstring says it is not an answer to backlog R14 (survivorship), which remains open.
8. Open items
- The FOMC table ends 2027-12-08.
fomc_overlay.signallogsSTALE CALENDARonce fewer than two scheduled meetings remain ahead of it. ExtendMEETINGSfrom federalreserve.gov when the 2028 calendar publishes, then re-runcalendar.buildby hand — its only declared input isfred.releases, so a static-table edit does not mark it stale. - Yahoo's endpoint is undocumented and could change or start demanding more than a User-Agent. The parser asserts its shape and refuses to write on a mismatch, so the failure mode is a loud stall rather than silent bad data.
- Execution slippage remains unmeasured, structurally. A paper fill is the opening print, so it scores zero slippage by construction and that zero is not evidence.
research/lib/still has no shared statistical helpers (backlog R26: M6, M7, T14). The MDE-beside-every-estimate discipline inreport.pyis a local implementation of T14 and should move tolib/when R26 is done.- The pre-registration evidence is not durable.
pipeline/data/andpipeline/run/are both gitignored, so theemitted_attimestamps live only in the local parquet partitions and the SQLite catalog. The write-once guarantee protects them from this system rewriting them; it does nothing against a lost disk, and anemitted_atI could have produced at any time is not evidence to anyone else. If the pre-registration claim is ever going to be load-bearing — in a track record shown to someone else, say — the signal rows need an external anchor: committed to git as a small CSV, or timestamped somewhere append-only. Worth deciding before the count gets large, not after.