When to use
- •You delete/retire UI modules under
src/agent_loom/ui/. - •You delete/retire server template variants under
src/agent_loom/server/templates/(for exampledashboard_v*.html).
Goal
Remove legacy surfaces cleanly: no dangling references, and contracts stay deterministic.
Checklist
- •
Reference sweep
- •Search for imports/loads/paths referencing removed files.
- •Search for docs/README/usage text referencing removed commands/templates.
- •
Runtime wiring sweep
- •Check server routes/templates selection logic for references to retired templates.
- •Check any CLI/UI registries that might import the removed modules.
- •
Contract tests
- •For server HTML: update/add invariants in
tests/test_server_api_contract.py(anchors/sections + ordering). - •For CLI changes caused by removals: update/add the relevant CLI UX contract test module.
- •For server HTML: update/add invariants in
- •
Verification gate
- •
uv run basedpyright - •
uv run ruff check . - •
uv run pytest <targeted modules>
- •
Common failure modes
- •Orphaned import in
__init__.pyor a registry module. - •Server route still selecting a deleted template.
- •Contract tests asserting legacy sections/variants instead of stable invariants.
Manual notes
This section is preserved when the skill is updated. Put human notes, caveats, and exceptions here.