Skip to content

fix(status): do not mark confirmed foreground workers stale#188

Merged
hadamrd merged 1 commit into
trunkfrom
friction/status-active-worker-not-stale
Jun 3, 2026
Merged

fix(status): do not mark confirmed foreground workers stale#188
hadamrd merged 1 commit into
trunkfrom
friction/status-active-worker-not-stale

Conversation

@hadamrd
Copy link
Copy Markdown
Owner

@hadamrd hadamrd commented Jun 3, 2026

Fixes a dogfooding friction from the observed Forge run: forge-loop status --json reported runner_stale=true during a foreground run even though worker events confirmed active work.

Change

  • Treat confirmed active workers reconstructed from event log entries as evidence that the foreground run is not stale.
  • Keep the existing stale warning for running state with only unconfirmed dispatched metadata.

Verification

  • Red test before production edit: pytest tests/test_cli.py::test_status_json_does_not_mark_confirmed_foreground_worker_stale -q failed on runner_stale.
  • uv run --extra dev pytest tests/test_cli.py tests/test_cli_status_control_plane.py -q -> 36 passed.
  • uv run --extra dev ruff check src/forge_loop/cli_status_commands.py tests/test_cli.py
  • uv run --extra dev ruff format --check src/forge_loop/cli_status_commands.py tests/test_cli.py
  • uv run --extra dev mypy src/forge_loop/cli_status_commands.py
  • uv run --extra dev pyright src/forge_loop/cli_status_commands.py tests/test_cli.py

@hadamrd hadamrd merged commit 8145291 into trunk Jun 3, 2026
2 checks passed
@hadamrd hadamrd deleted the friction/status-active-worker-not-stale branch June 3, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant