feat: show in-progress candidates in outer-loop status - #1361
Draft
lukeinglis wants to merge 3 commits into
Draft
Conversation
Add worktree scanning and agent phase detection to `factory outer-loop status` so users can see which candidates are actively being evaluated, what phase each is in, and how long they've been running. Closes #1360 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sentrux Quality ReportAbsoluteDiff (vs base branch) |
…ast_agent_phase
The emit_event() call uses agent= kwarg, producing {"agent": "builder"} in
events.jsonl. _get_last_agent_phase() was reading event.get("role") which
always returned None. Updated source and all test fixtures to match the
actual event schema.
Closes #1361
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (32.97%) is below the target coverage (79.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1361 +/- ##
==========================================
- Coverage 84.86% 84.39% -0.48%
==========================================
Files 231 234 +3
Lines 25759 25725 -34
Branches 4115 4128 +13
==========================================
- Hits 21861 21711 -150
- Misses 2922 3039 +117
+ Partials 976 975 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…status When one evaluation worktree existed, all modes in the same generation matched via the shared prefix (e.g. "evolve-gen0-"), causing them all to show as "in progress" instead of just the one actually evaluating. Delete the worktree key from the dict after matching so each worktree can only match one mode. Adds a regression test with 3 modes and 1 worktree. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
lukeinglis
marked this pull request as ready for review
August 20, 2026 18:45
lukeinglis
marked this pull request as draft
August 20, 2026 20:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1360
factory outer-loop statusnow shows what's happening during evaluation, not just what's finished.Previously, while candidates were being evaluated, the status output showed
Total evaluations: 0with no indication that work was underway. The only way to see progress was to watch the terminal runningevaluate.Now, running
factory outer-loop status /path/to/projectfrom a second terminal shows which candidates are mid-evaluation, what agent is currently running inside each one, how long it's been going, and which worktree it's using:No new flags or setup required — the detection is automatic.