Add --budget-conscious CLI flag for session-aware experiment execution#346
Add --budget-conscious CLI flag for session-aware experiment execution#346lukeinglis wants to merge 4 commits into
Conversation
Add pre-respawn verification checks to the Error Recovery section that prevent duplicate Builder spawns when failures are caused by rate limits or timeouts on the final notification token rather than genuine build failures. The protocol requires checking git log and gh pr list before any re-spawn decision, and skips directly to review if work exists. Signed-off-by: Luke Inglis <lukeinglis21@yahoo.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #346 +/- ##
==========================================
+ Coverage 86.97% 87.54% +0.57%
==========================================
Files 51 60 +9
Lines 7276 9148 +1872
==========================================
+ Hits 6328 8009 +1681
- Misses 948 1139 +191 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
✅ Factory Review: KEEPVerdict: KEEP Experiment: #1 Score Comparison
Guard Checks
Code Review Notes
Posted by Factory Reviewer |
…ecution Add --budget-conscious flag to both `factory ceo` and `factory run` CLI commands. When set, injects a Budget-Conscious Mode section into the CEO task string with three throttles: skip Reviewer for small diffs, cap REDIRECT iterations at 1, and defer operational execution to PRs. Closes #349 Signed-off-by: Luke Inglis <lukeinglis21@yahoo.com>
✅ Factory Review: KEEPVerdict: KEEP Experiment: #2 Guard Checks
Code Quality Assessment
Code Review Notes
Test ResultsPosted by Factory Reviewer |
Add `factory handoff <path>` that synthesizes .factory/ state into a structured markdown brief printed to stdout. Reads cycle state, checkpoint, events, strategy, backlog, reviews, git branch, and open PRs. Missing files are handled gracefully. Includes 4 tests. Closes #352 Signed-off-by: Luke Inglis <linglis@redhat.com> Signed-off-by: Luke Inglis <lukeinglis21@yahoo.com>
Add structured logging to 5 uninstrumented modules: - factory/runners/protocol.py: module-level logger - factory/runners/__init__.py: runner selection/registration - factory/runners/_stream.py: stream lifecycle events - factory/agents/plugin.py: plugin config loading and generation - factory/mcp_server.py: MCP tool call and server start logging 12 new log statements using structured key-value pairs covering runner dispatch, stream start/end, plugin registration, and MCP tool invocations. Closes #354 Signed-off-by: Luke Inglis <linglis@redhat.com> Signed-off-by: Luke Inglis <lukeinglis21@yahoo.com>
Closing: decomposed into separate PRsThis PR bundled 4 independent experiments into a single changeset. Each piece now has its own home:
PR #399 redesigns the budget-conscious concept into a proper lite mode with 40-50% token reduction (5 agents instead of 12, review pipeline reduction, Archivist consolidation, archive-only Researcher, baseline eval skip, invocation budget). Full spec at |
Closes #349
Changes
--budget-consciousboolean flag to bothfactory ceoandfactory runargparse definitions, following the same pattern as--no-github_build_ceo_task()appends a## Budget-Conscious Modemarkdown section to the CEO task string with three throttles:## Budget-Conscious Modesection to the CEO prompt (factory/agents/prompts/ceo.md) defining the protocolcmd_ceoandcmd_run