[loop-generated] [test] Add unit tests for vassal/orchestration_loop.py — 321 lines, 0 tests #1214

Closed
opened 2026-03-23 22:35:40 +00:00 by Timmy · 1 comment
Owner

Missing Tests

src/timmy/vassal/orchestration_loop.py is 321 lines with zero test coverage.

The orchestration loop is how Timmy coordinates vassal agents. Untested coordination = silent failures.

File to test: src/timmy/vassal/orchestration_loop.py
Test file: tests/unit/test_vassal_orchestration_loop.py

Key areas to cover:

  • Loop lifecycle (start, stop, iteration)
  • Task assignment to vassals
  • Error recovery
  • Timeout handling

Acceptance: tox -e unit passes with new tests.

## Missing Tests `src/timmy/vassal/orchestration_loop.py` is 321 lines with zero test coverage. The orchestration loop is how Timmy coordinates vassal agents. Untested coordination = silent failures. **File to test:** `src/timmy/vassal/orchestration_loop.py` **Test file:** `tests/unit/test_vassal_orchestration_loop.py` **Key areas to cover:** - Loop lifecycle (start, stop, iteration) - Task assignment to vassals - Error recovery - Timeout handling **Acceptance:** `tox -e unit` passes with new tests.
claude self-assigned this 2026-03-23 22:37:43 +00:00
Collaborator

PR created: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/1216

Added 18 unit tests covering all key areas:

  • Error recovery: backlog/agent_health/house_health step failures recorded in errors without aborting cycle
  • Task assignment counting: dispatched_to_claude tracking and max_dispatch_per_cycle cap
  • Loop lifecycle: initial state, cycle increments, stop behavior
  • _resolve_interval explicit vs fallback behavior
  • Module singleton existence

Also added pytestmark = pytest.mark.unit so tests run under tox -e unit. Suite: 361 passed (up from 343).

PR created: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/1216 Added 18 unit tests covering all key areas: - Error recovery: backlog/agent_health/house_health step failures recorded in `errors` without aborting cycle - Task assignment counting: `dispatched_to_claude` tracking and `max_dispatch_per_cycle` cap - Loop lifecycle: initial state, cycle increments, stop behavior - `_resolve_interval` explicit vs fallback behavior - Module singleton existence Also added `pytestmark = pytest.mark.unit` so tests run under `tox -e unit`. Suite: 361 passed (up from 343).
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1214