When to use
- •You changed team startup/init-agent behavior (defaults, ordering, selection, persisted config) in
src/agent_loom/team/core.pyorsrc/agent_loom/team/cli.py. - •You touched any code that determines which agents exist at team boot and with what parameters.
Goal
Keep team initialization deterministic and regression-tested.
Checklist
- •
Define the contract
- •What agents must exist by default?
- •What ordering must be stable?
- •What fields must be present/absent (avoid nondeterministic values and machine-specific paths)?
- •
Make initialization deterministic
- •Explicit ordering for agent lists.
- •No reliance on dict/set iteration.
- •Avoid timestamps/random IDs unless explicitly required.
- •
Lock it with focused tests
- •Add/update assertions in
tests/test_team_init_agents.py. - •If prompt assembly changed, also update
tests/test_team_prompts.py.
- •Add/update assertions in
- •
Verification gate
- •
uv run basedpyright - •
uv run ruff check . - •
uv run pytest tests/test_team_init_agents.py - •(plus any directly impacted team test module, smallest set possible)
- •
Common failure modes
- •Agent ordering drifts due to nondeterministic iteration.
- •Defaults change silently without updating the contract test.
- •Initialization starts depending on environment-specific paths or host state.
Manual notes
This section is preserved when the skill is updated. Put human notes, caveats, and exceptions here.