When to use
- •You changed workspace runtime code under
src/agent_loom/workspace/(CLI, core, ops, models, state, guards). - •You added a new workspace command, behavior, or state transition.
Goal
Ship workspace features with deterministic behavior, clear failure modes, and fast verification.
Checklist
- •
Determinism & ordering
- •Define explicit ordering for any list output or selection logic.
- •Add tie-break rules when sorting (avoid accidental nondeterminism).
- •
Guardrails & errors
- •Ensure guard failures explain what to do next.
- •Avoid partial state updates on failure; keep operations atomic where possible.
- •
State & models
- •If you changed any on-disk representation or serialization, add a round-trip test.
- •Keep schema evolution simple; avoid implicit migrations unless required.
- •
CLI contract (if CLI changed)
- •Use
tests/test_workspace_cli_ux.pyto lock required text/sections/ordering.
- •Use
- •
Verification gate
- •
uv run basedpyright - •
uv run ruff check . - •Run the smallest relevant pytest subset (and expand if failures suggest missing coverage).
- •
Notes
- •Workspace features are agent-facing infrastructure: treat the CLI + state format as public API.
- •Prefer stable, explicit behavior over clever inference.
Manual notes
This section is preserved when the skill is updated. Put human notes, caveats, and exceptions here.