fix(cache): write_entry missing validation for Phase 3 completeness field #84
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
cache.py:write_entryvalidatesconfidence(Phase 1) as float in[0.0, 1.0]andconfidence_reasonas str. The Phase 3completenessfield — documented in wiki Internals §5.3 as 0.0–1.0 — has no validation at all.luminos_lib/cache.py:141-146:Meanwhile the agent's self-rated
completenessis used as quality signal inplan_evaluation.json(_write_plan_evaluationinai.py) and in the per-dir cache entry written by_run_investigation. Invalid values — a string,2.5,-0.3— pass through and poison the evaluation report.Fix
Mirror the confidence validation:
Acceptance
completenessvalidated 0.0–1.0 inwrite_entrytests/test_cache.pycovers: valid completeness accepted, out-of-range rejected, non-numeric rejected