feat(ai): Phase 3 investigation planning #75
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/phase-3-investigation-planning"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements Phase 3: Investigation Planning (#8, #9, #10, #11) plus quality instrumentation (#74).
max_turns=14with dynamic allocation from a global budget._apply_plan()sorts directories into priority bands while preserving the leaf-first invariant within each band, so child summaries are always available when parents are investigated.plan.jsonso resumed runs follow the same strategy.completenessself-rating (0.0-1.0) on dir-scopesubmit_report, andplan_evaluation.jsoncomparing plan predictions to actual outcomes._get_child_summaries()now distinguishes actual leaf directories from parents whose children haven't been investigated yet (previously a misleading placeholder).Changes
luminos_lib/prompts.py_PLANNING_SYSTEM_PROMPTluminos_lib/ai.py_run_planning(),submit_plantool,_apply_plan(),_default_plan(),_write_plan_evaluation(), dynamic turn allocation in orchestrator,_TokenTracker._loop_turns,completenessfield, fixed_get_child_summaries()tests/test_ai_pure.pyCloses
Closes #8, closes #9, closes #10, closes #11, closes #74
Test plan
python3 -m unittest discover -s tests/)_apply_plan()tested: None plan, default plan, skip removal, priority turns, ceiling cap, shallow turns, priority-first ordering, leaf-first preservation within bands, unknown paths ignored, subset filtering_get_child_summaries()tested: leaf dirs, uninvestigated children, cached children, hidden dirs_write_plan_evaluation()tested: normal case, None plan, empty utilization, zero-allocation edge case_TokenTracker._loop_turnstested: increment, reset, independence from totals