- Done:
- What is studied is now data in
config/:retailers.csvholds the ticker list: 10 in scope, plus BABA, L.TO and CTC-A.TO as candidates.wiki_articles.csvmoved fromlookup/.retail_series.csvholds the FRED series.- Each has a contract and a loader in
common.contractsthat checks its header, including CSVs saved by Excel.
- Where things are is in
common.settings:RAW_DIR,clean_path(),REPLAY_DIR,STREAM_DIR,RESULTS_DIR,CHECKPOINT_DIRandKAFKA_BOOTSTRAP(the environment variable of the same name overrides it).common.studygainsSTUDY_STARTandSTUDY_END. - Every ETL script, producer, topic script and the streaming job reads from those modules and validates with
require_contractbefore writing.pip install -r requirements.txtinstallssrc/as a package, so scripts run from any folder.src/ingest/build_events.pymoved toetl/. - Enforcement:
tests/test_no_hardcoding.py: no ticker, event, title, series, year, path or Kafka setting typed intoetl/,src/orscripts/.tests/test_config.py: the registries are valid and consistent.tests/test_clean_files.py: the clean files match their contracts andconfig/, cover the whole study period, and carry exactly the calendar’s events..claude/hooks/pre-commit-tests.sh: runs the tests on what a commit will contain, in both Claude Code and Cursor. It is tested bytests/test_commit_hook.py.AGENTS.mdrules 8–11,CLAUDE.md, path rules foretl/,config/andsrc/common/, and the contract-checker’s checklist.
- What is studied is now data in
- Results:
- Re-running every ETL script from another folder reproduces the committed clean files with identical values. The only change is that
volumeis stored as long inpricesandmaster. - A fresh streaming replay with 2% late data still matches the direct computation (largest difference 1.1e-16).
- 84 tests pass, and each of the 6 commits passes on its own.
- Re-running every ETL script from another folder reproduces the committed clean files with identical values. The only change is that
- Decisions:
docs/decisions/0005-config-driven-pipeline.md(proposed). - Contracts:
- New:
retailers,wiki_articles,retail_series, andpageviewsandretail_salesas built. - Changed:
pricesnow describes the daily file as built. - Removed:
attention, and the unusedprices/attentionKafka topics. clean/tickers.parquetandclean/events.parquetare no longer made.
- New:
- Next:
- Push the local commits on
main. - Run the streaming job on the cluster against Kafka (see the previous handoff).
- Pick the alerts for the demo video.
- Push the local commits on
- Blocked on / needs from others:
- Everyone: after pulling, run
pip install -r requirements.txtagain, orimport commonfails. ReadAGENTS.mdrules 8–11. Rungit addandgit commitas separate commands, because the hook refuses both in one. - Sanchi, Anushiya, Areej: review the changes to your files, listed per person under Consequences in decision 0005, and fill in “Agreed by”.
- Open: putting the TSX candidates in scope needs a TSX market index, so
MARKET_TICKERwould become per country.
- Everyone: after pulling, run
Handoffs, newest first