Commit Graph
2 Commits
Author SHA1 Message Date
Alby96andClaude Opus 5.5 8d02d02876 Fix what the independent review of Phase 12 found, and close the phase
ci / test (postgres) (push) Successful in 7m31s
ci / test (sqlite) (push) Successful in 6m0s
ci / test (postgres) (pull_request) Successful in 7m15s
ci / test (sqlite) (pull_request) Successful in 6m8s
ci / image (push) Successful in 1m45s
ci / image (pull_request) Successful in 1m6s
- A flat window has no z-score even when its mean misses the common value by
  one rounding step (it gave a meaningless z of about 0.995).
- A broken ECB history (a maintenance page, a cut download, a damaged cached
  copy) is refused in Italian instead of crashing `data ecb`, and a download
  is checked and moved into place in one step, so it never replaces the good
  copy.
- A fixed time zone with 60 or more minutes is refused instead of being read
  as the next hour.
- `data fx` says why when every bar of the file falls outside the market week.

ADR 0028 records the choices of the phase; ROADMAP and STATE mark it done.

refs #118, refs #119, refs #120, refs #121

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 10:51:03 +01:00
Alby96andClaude Opus 5.5 aec848b4a2 Add the basket maths: server clock, relations, index, money rules, states
Pure code in src/Anubis/Baskets for the basket reversion family of the new
route, so the engine of phase 14 and the eToro Demo of phase 20 share one
home for the arithmetic of the research document:

- ServerClock: New York + 7 h, the server day changing at 17:00 New York,
  half-open weekend rule, hourly window and daily venue pause.
- Relations: chain, ratio and disjoint couples (56 + 112 + 210 = 378),
  appendix B in the document's row order, the eight documented spreads,
  the index sign and the 14-pair list.
- BasketIndex: pip and log basis-point index, sample z-score, Rvol with
  its filter, correlation of log returns and the OLS hedge ratio; every
  value at bar t reads bars up to t only.
- BasketMath (decimal): pip sum, common exit, distance scale with no
  addition after the last level, stop excursion of table 4.12, pip value,
  equal units raised to the venue minimum, exposure, three-costs rule.
- Styles: pair states, the four styles, the Fedele and Prudente profiles.

Every acceptance criterion of the item has a named test with the
document's numbers, plus a fixed-seed property test that nothing at a
closed bar depends on later bars.

refs #119

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 10:06:44 +01:00