Đồng nghiệp đã push thêm 10 commit lên nhánh trong lúc đang xử lý merge
trước đó (R08-T01..T06 chat_panel.py split, R08 folder/dashboard/graph/
scheduling hoàn thiện, R10 CI Quality Gates + Contributor Recipes + E2E
smoke test). Resolve conflict:
- application/monitoring/__init__.py, domain/tasks/__init__.py,
infrastructure/persistence/json/__init__.py: chỉ khác docstring — giữ bản
HEAD (đầy đủ ngữ cảnh EPIC hơn), hợp nhất __all__ khi cần
(MonitoringQueryService).
- tests/fakes/__init__.py: hợp nhất __getattr__ để lazy-load cả
FakeToolExecutor lẫn ToolInvocation (bản HEAD thiếu ToolInvocation), bỏ
entry "FakeClock" bị lặp trong __all__.
- tests/integration/test_routing_surfaces.py (deleted by them): khôi phục
lại bản đã sửa ở lần merge trước — verify lại: API routing
(RoutingApplicationService.resolve/_apply_routing/_apply_co4e_routing)
không đổi sau khi chat_panel.py chuyển sang presentation/chat/*, 9/9 test
vẫn pass trên code đã merge.
Ghi chú (không sửa, ngoài phạm vi merge): tests/fakes/__init__.py trên nhánh
remote export "ToolInvocation" từ fake_tool_executor.py nhưng class này đã
bị xoá nhầm từ commit chung 10739f1 (breakdown folder tree epic R01) — hiện
là dead code, không ai import, nhưng sẽ raise ImportError nếu có test nào
sau này thử dùng.
Đã chạy pytest tests/: 793 passed (không phát sinh fail mới so với lần
merge trước — 8 fail còn lại đều do môi trường sandbox: thiếu package
keyring, và tên thư mục checkout "cowork-local" thay vì "cowork_local"
khiến vài test spawn-subprocess không import được package).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
20 lines
1.0 KiB
Python
20 lines
1.0 KiB
Python
"""Read-only query services for monitoring/dashboard screens (EPIC R08).
|
|
|
|
⚠️ Ownership note (R08-T13): per ``docs/refactor/Feature_Architecture_
|
|
Proposal.md``'s file-split diagram, ``dashboard_query_service.py`` lives
|
|
under ``application/monitoring/`` alongside the Dashboard split — but the
|
|
SAME document's "Ranh giới phân hệ" table assigns ``application/monitoring/``
|
|
to Team Nam (R08-T07→T10, Monitoring's own 8-tab split). This directory did
|
|
not exist yet when Team Hoa reached R08-T13, so creating it here does not
|
|
collide with any file Team Nam has written — same situation R06-T02 flagged
|
|
for ``infrastructure/persistence/json/atomic_write.py`` vs. Team Nam's
|
|
planned ``atomic_json_file.py``. Team Nam should confirm when they start
|
|
R08-T07→T10 whether ``DashboardQueryService`` belongs here permanently or
|
|
should move once Monitoring's own query service exists.
|
|
"""
|
|
|
|
from .dashboard_query_service import DashboardQueryService
|
|
from .monitoring_query_service import MonitoringQueryService
|
|
|
|
__all__ = ["DashboardQueryService", "MonitoringQueryService"]
|