CI / build (push) Has been cancelled
- Archive 79 completed framework-dev tasks from tasks/ -> tasks/complete/ - status.py: add --cleanup-done and --install-cleanup-schedule commands - Add scripts/automaton-cleanup.sh for periodic task archiving - Dashboard: rename 'Background' tab -> 'Agent', 'Cleanup' agent -> 'Completed Task Archiver', remove redundant group headers and pill badges, dim inactive agent placeholders - .rules.md: add Self-Documenting UI Names rule - New tests: test_cleanup_done.py, expanded test_app.py and test_task.py
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.
|