Orchestrata Ultimate › Plans › rtm-traceability-swarm-plan
RTM Traceability Swarm Plan — Session 268
Source: plans/rtm-traceability-swarm-plan.md at 8a2cb42ad · last changed 2026-08-25 · first committed 2026-08-25 · 50 lines.
Prose pending.
Plan text
RTM Traceability Swarm Plan — Session 268
Goal
Make reports/rtm-evidence.md reflect the actual test coverage by adding explicit @traces decorators to test functions that already verify requirements but do not currently cite them.
Scope
Wave 1 covers the highest-impact test packages:
tests/kernel→specs/001-kernel/checklists/requirements.mdtests/agents→specs/005-multi-agent/checklists/requirements.md+ volk specs (027-032)tests/cxp→specs/004-cxp/checklists/requirements.mdtests/gateway→specs/014-websocket-gateway/checklists/requirements.mdtests/session→specs/006-session-management/checklists/requirements.md
Agent Instructions
For each assigned test package:
- Read the relevant spec checklist(s) to learn requirement IDs and descriptions.
- List all
test_*.pyfiles in the assigned test directory. - For each test function:
- Read its name, docstring, and the source functions/classes it imports/exercises.
- If the test clearly verifies one or more requirements, add an
@tracesdecorator. - Use the form:
from orchestrata_ultimate.core.base.traces import traces @traces(spec="001", story="US-002", reqs=["REQ-001-US-002-015"]) def test_exponential_backoff(...) -> None: ... - If the test verifies multiple requirements across specs, list them all in
reqs.
- Add the
tracesimport only to files where it is needed. - Prefer docstring mentions for ambiguous cases; only use
@traceswhen confident. - Do NOT add guesses. If a test's purpose is unclear, skip it and record it.
- Do NOT use mocks, stubs, fakes, or monkeypatch (RUL-002).
- Do NOT change test logic or assertions.
- Run the assigned package tests via
python scripts/run_tests_threadpool.py tests/<package>/. - Fix any ruff/black/mypy issues introduced.
- Report: files changed, decorators added, tests run, failures, skipped ambiguous tests.
Verification
After each wave:
- Regenerate static RTM:
python scripts/generate_rtm_evidence.py --md reports/rtm-evidence.md --json reports/rtm-evidence.json - Run with
--verifyfor the changed packages:python scripts/generate_rtm_evidence.py --verify - Run architecture checker:
python scripts/architecture_checker.py - Run ruff:
uv run ruff check src/ tests/
Constraints
- NEVER use
pytest-xdist/pytest -n(RUL-001). - All test changes must keep tests parallel-safe (function-scope fixtures, test_id isolation).
- Follow existing file style (black line length 88).