Skip to content

refactor(arcticdb): delegate to lib chokepoint (L2771 part 4/5)#207

Merged
cipher813 merged 2 commits into
mainfrom
refactor/arcticdb-chokepoint-l2771
May 28, 2026
Merged

refactor(arcticdb): delegate to lib chokepoint (L2771 part 4/5)#207
cipher813 merged 2 commits into
mainfrom
refactor/arcticdb-chokepoint-l2771

Conversation

@cipher813
Copy link
Copy Markdown
Owner

Summary

Four ae-predictor sites migrated to alpha_engine_lib.arcticdb:

  • inference/stages/load_prices.py::_connect_arctic (uses open_universe_lib + open_macro_lib; PipelineAbort preserved).
  • inference/stages/run_inference.py (inline → open_universe_lib).
  • store/arctic_reader.py::_get_arctic (uses open_arctic).
  • scripts/dry_run_meta_training.py (inline → open_arctic).

Test fixture update: fake_arcticdb was monkeypatching store.arctic_reader.adb directly — caught the consumer's call but bypassed the lib-routed path (lib does its own lazy import arcticdb from a separate module reference). Fixed by also patching the actual arcticdb module singleton, so both paths share the mock. Documented with the post-L2771 rationale.

ROADMAP: L2771 part 4 of 5 (parts 1+2+3 = alpha-engine #225, alpha-engine-research #247, alpha-engine-data #340).

Test plan

  • Full suite green: 1214 passed (incl. the updated arcticdb-mock fixture)

🤖 Generated with Claude Code

cipher813 and others added 2 commits May 28, 2026 08:40
Four sites migrated to `alpha_engine_lib.arcticdb`:

- `inference/stages/load_prices.py::_connect_arctic` — uses
  `open_universe_lib` + `open_macro_lib`. `PipelineAbort` preserved.
- `inference/stages/run_inference.py` (inline call) — replaced with
  direct `open_universe_lib(ctx.bucket)`. RuntimeError now comes from
  the lib (with the same bucket/uri context).
- `store/arctic_reader.py::_get_arctic` — uses `open_arctic`.
- `scripts/dry_run_meta_training.py` (inline) — uses `open_arctic`.

Test fixture update:
- `tests/test_arctic_reader.py::fake_arcticdb`: monkeypatch was
  `setattr(store.arctic_reader, "adb", fake)` — caught the consumer's
  direct call but bypassed the lib-routed path (lib does its own lazy
  `import arcticdb`). Fixed by also patching the actual `arcticdb`
  module singleton's `Arctic` attribute, so both call paths share
  one mock. Documented with the post-L2771 rationale.

ROADMAP: **L2771 part 4 of 5** (parts 1+2+3 = alpha-engine #225,
alpha-engine-research #247, alpha-engine-data #340).

Suite: 1214 passed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cipher813 cipher813 merged commit 731cd9c into main May 28, 2026
1 check passed
@cipher813 cipher813 deleted the refactor/arcticdb-chokepoint-l2771 branch May 28, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant