9 lines
793 B
Markdown
9 lines
793 B
Markdown
# Implementation: fix-verdict-pass-inference
|
|||
|
|
|
||
|
|
## Changes
|
||
|
|
- **scripts/status.py**: Added `_parse_verdict_status_line()` helper (~line 301) that parses `## Status:` and `- **Status**:` header lines for PASS/FAIL/NEEDS_REVIEW, mirroring the dashboard's `parse_verdict_status()`.
|
||
|
|
- **scripts/status.py** `_infer_state_from_artifacts()` (~line 326): Replaced `if "PASS" in content:` substring search with structured-line parsing via `_parse_verdict_status_line()`. Returns `"complete"` only for exact PASS, `"human_intervention"` for FAIL/NEEDS_REVIEW, and falls back to `"human_intervention"` for unparseable verdicts.
|
||
|
|
|
||
|
|
## Test
|
||
|
|
- `tests/test_status.py::TestVerdictPassInference` — 3 tests: FAIL with "PASS" in body → human_intervention, PASS → complete, NEEDS_REVIEW → human_intervention.
|