refactor(memory): the memory store and the spend meter leave the plane package (C1)

openultrasast.plane.memory and openultrasast.plane.budget are now
openultrasast.memory and openultrasast.budget; every importer follows. A pure move:
no behaviour changes. The two renames themselves were swept into 1aad435 by mistake
(they were staged when that spec commit was made), so the three commits between it
and this one do not import; this commit completes the move.

memory.py still reaches into the plane in two lazy imports (results_root in
open_store, the reconciler in seed); the cut of the plane has to settle both.

Checked: ruff, ruff format, mypy; 163 test files around memory, budget, plane, learn
and hunt passed across three runs by the implementing agent, and the six closest
files again before this commit. The whole suite was not run locally.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Marius Ciepluch
2026-11-30 10:56:25 +01:00
co-authored by Claude Fable 5.2
parent e22bd420d9
commit b975acb7e0
65 changed files with 117 additions and 122 deletions
+4 -4
View File
@@ -3,7 +3,7 @@ from dataclasses import asdict
import pytest
from openultrasast.plane.memory import FileStore
from openultrasast.memory import FileStore
from openultrasast.search import _sandbox
from openultrasast.search.board import Board
from openultrasast.search.budget import SearchBudget
@@ -100,8 +100,8 @@ def test_coordinator_stub_smoke_real_verify(tmp_path):
def test_reservation_precedes_each_call_and_refuses_over_budget(tmp_path):
from openultrasast.budget import SpendBudget
from openultrasast.model.endpoint import Prices
from openultrasast.plane.budget import SpendBudget
class MeteredStub(StubModel):
def complete_chat_raw(self, **kwargs):
@@ -353,8 +353,8 @@ def test_task_spend_finishes_with_confirmed_observations(tmp_path, with_evidence
def test_calibrated_reservation_covers_reported_usage(tmp_path):
import math
from openultrasast.budget import SpendBudget
from openultrasast.model.endpoint import Prices
from openultrasast.plane.budget import SpendBudget
class UsageStub(StubModel):
def complete_chat_raw(self, **kwargs):
@@ -375,8 +375,8 @@ def test_calibrated_reservation_covers_reported_usage(tmp_path):
@pytest.mark.parametrize("detail", ["worker_steps", "worker_wall", "run_ceiling"])
def test_worker_exhaustion_is_structured(tmp_path, monkeypatch, detail):
from openultrasast.budget import SpendBudget
from openultrasast.model.endpoint import Prices
from openultrasast.plane.budget import SpendBudget
worker = Worker(
StubModel([tool("list_files")]),