Skip to content

Commit efa9183

Browse files
committed
refactor(control-plane): move status agent lane projection into status bounded context
1 parent ff61f3d commit efa9183

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

loopx/cli_commands/status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
resolve_status_projection_cache_runtime_root,
1212
write_status_projection_cache,
1313
)
14-
from ..control_plane.status_agent_lane_projection import (
14+
from ..control_plane.status.agent_lane_projection import (
1515
compact_agent_lane_status_payload_for_display,
1616
)
1717
from ..control_plane.todos.contract import normalize_todo_claimed_by
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""Status bounded-context read models and projections.
2+
3+
Status projections turn registry, run history, active state, and todo read
4+
models into agent/operator-visible observations. Quota and CLI callers consume
5+
these projections; they do not reimplement status facts.
6+
"""

loopx/control_plane/status_agent_lane_projection.py renamed to loopx/control_plane/status/agent_lane_projection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
"""Agent-lane status projection inside the `status` bounded context."""
2+
13
from __future__ import annotations
24

35
from typing import Any
46

5-
67
AGENT_LANE_STATUS_PAYLOAD_COMPACTION_SCHEMA_VERSION = (
78
"agent_lane_status_payload_compaction_v0"
89
)

tests/control_plane/test_status_agent_lane_projection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
import json
44

5-
from loopx.control_plane.status_agent_lane_projection import (
5+
from loopx.control_plane.status.agent_lane_projection import (
66
compact_agent_lane_status_payload_for_display,
77
)
88
from loopx.control_plane.todos.quota_summary import (
99
compact_agent_lane_todos_for_status_display,
1010
)
1111

12-
1312
AGENT_ID = "codex-quality"
1413
GOAL_ID = "status-budget-goal"
1514

0 commit comments

Comments
 (0)