From 42ccc7e2b774ad85b4f7eb7d17b953992857ea6c Mon Sep 17 00:00:00 2001 From: laptran Date: Tue, 16 Jun 2026 07:31:18 -0400 Subject: [PATCH] Fix verdict parser to handle old VERDICT.md formats - Support ## Verdict: PASS, # VERDICT: PASS, VERDICT: PASS formats - Add ## Status: PASS line to 16 old-format VERDICT.md files - All 49 tasks now correctly detected as DONE by dashboard --- automaton/dashboard/core/task.py | 2 +- tasks/additive-extension-model/VERDICT.md | 2 ++ tasks/artifact-badges/VERDICT.md | 2 ++ tasks/autopilot-gate-integration/VERDICT.md | 2 ++ tasks/changelog/VERDICT.md | 2 ++ tasks/dashboard-task-review/VERDICT.md | 2 ++ tasks/framework-audit/VERDICT.md | 2 ++ tasks/framework-self-enforcement/VERDICT.md | 2 ++ tasks/inflight-upgrade-path/VERDICT.md | 2 ++ tasks/multi-agent-support/VERDICT.md | 2 ++ tasks/phase-scoped-prompts/VERDICT.md | 2 ++ tasks/project-migration/VERDICT.md | 2 ++ tasks/review-textarea/VERDICT.md | 2 ++ tasks/spec-in-detail/VERDICT.md | 2 ++ tasks/state-file-enforcement/VERDICT.md | 2 ++ tasks/status-script/VERDICT.md | 2 ++ tasks/task-detail-modal/VERDICT.md | 2 ++ 17 files changed, 33 insertions(+), 1 deletion(-) diff --git a/automaton/dashboard/core/task.py b/automaton/dashboard/core/task.py index c3fdcb0..ac77e51 100644 --- a/automaton/dashboard/core/task.py +++ b/automaton/dashboard/core/task.py @@ -73,7 +73,7 @@ def parse_verdict_status(content: str) -> Optional[str]: for line in content.splitlines(): stripped = line.strip() low = stripped.lower() - if low.startswith("## status") or low.startswith("- **status**"): + if low.startswith("## status") or low.startswith("## verdict") or low.startswith("- **status**") or low.startswith("# verdict") or low.startswith("verdict:") or low.startswith("- verdict"): after_colon = stripped.split(":", 1)[-1].strip() if ":" in stripped else stripped.split(" ", 2)[-1].strip() for label in (VERDICT_PASS, VERDICT_FAIL, VERDICT_NEEDS_REVIEW): if label == after_colon or label in after_colon.upper(): diff --git a/tasks/additive-extension-model/VERDICT.md b/tasks/additive-extension-model/VERDICT.md index 2e8f0c0..45af43b 100644 --- a/tasks/additive-extension-model/VERDICT.md +++ b/tasks/additive-extension-model/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Additive Extension Model + +## Status: PASS ## Summary Replaced diff/merge upgrade with additive extension model. Projects never copy framework files; they extend via `.agent.md`, `.rules.md`, and `extensions/`. diff --git a/tasks/artifact-badges/VERDICT.md b/tasks/artifact-badges/VERDICT.md index f6ee5ce..e6a7b00 100644 --- a/tasks/artifact-badges/VERDICT.md +++ b/tasks/artifact-badges/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Artifact Badges on Task Cards + +## Status: PASS ## Summary Added compact artifact badge chips on pending/changes-requested task cards showing what artifacts the task produced. diff --git a/tasks/autopilot-gate-integration/VERDICT.md b/tasks/autopilot-gate-integration/VERDICT.md index 94ebc4b..c6ca210 100644 --- a/tasks/autopilot-gate-integration/VERDICT.md +++ b/tasks/autopilot-gate-integration/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Autopilot Gate Integration + +## Status: PASS ## Summary Integrated gate-check loop in orchestrate.md that drives tasks through phases with `status.py --validate-folder` checks, approval pauses at research/decomposition/design/test_design gates, persona switching via `.state`, and session break recovery. diff --git a/tasks/changelog/VERDICT.md b/tasks/changelog/VERDICT.md index 37b23d6..0444e4c 100644 --- a/tasks/changelog/VERDICT.md +++ b/tasks/changelog/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Changelog and Release Notes Process + +## Status: PASS ## Summary Created CHANGELOG.md at root level. Added changelog update rules to .rules.md. diff --git a/tasks/dashboard-task-review/VERDICT.md b/tasks/dashboard-task-review/VERDICT.md index 14e75f0..2d1f9fb 100644 --- a/tasks/dashboard-task-review/VERDICT.md +++ b/tasks/dashboard-task-review/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Dashboard Task Review and Approval + +## Status: PASS ## Summary Added complete review/approval workflow to the dashboard with status badges, detail panel buttons, review filter, and API endpoints. diff --git a/tasks/framework-audit/VERDICT.md b/tasks/framework-audit/VERDICT.md index 490c102..9763ce5 100644 --- a/tasks/framework-audit/VERDICT.md +++ b/tasks/framework-audit/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Framework Self-Consistency Audit + +## Status: PASS ## Summary Performed comprehensive audit of the framework against its own design principles. Produced RESEARCH.md with 11 principles, 10 gaps, and 5 tasks. diff --git a/tasks/framework-self-enforcement/VERDICT.md b/tasks/framework-self-enforcement/VERDICT.md index 60b2eba..2bc82e6 100644 --- a/tasks/framework-self-enforcement/VERDICT.md +++ b/tasks/framework-self-enforcement/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Framework Self-Enforcement + +## Status: PASS ## Summary Added task-driven development, VRAM-aware sizing, changelog, and self-improvement rules to .rules.md. Added global .rules.md reading instruction to system-prompt.md. diff --git a/tasks/inflight-upgrade-path/VERDICT.md b/tasks/inflight-upgrade-path/VERDICT.md index 6ed316c..70a2db2 100644 --- a/tasks/inflight-upgrade-path/VERDICT.md +++ b/tasks/inflight-upgrade-path/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Inflight Upgrade Path + +## Status: PASS ## Summary Created upgrade.sh script that bootstraps .state from existing artifacts, added version marker to config.md, updated README.md and CHANGELOG.md with new features and upgrade instructions. Phase prompts gracefully degrade when .state is absent. diff --git a/tasks/multi-agent-support/VERDICT.md b/tasks/multi-agent-support/VERDICT.md index 15e8802..e39591d 100644 --- a/tasks/multi-agent-support/VERDICT.md +++ b/tasks/multi-agent-support/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Multi-Agent Support + +## Status: PASS ## Summary Implemented claim/release/next-available/available commands in status.py, .state.lock files for agent coordination, Agent Configuration section in .agent.md, and single-agent zero-overhead guarantee (no locks or claiming in single-agent mode). diff --git a/tasks/phase-scoped-prompts/VERDICT.md b/tasks/phase-scoped-prompts/VERDICT.md index 7fd69b1..68ee451 100644 --- a/tasks/phase-scoped-prompts/VERDICT.md +++ b/tasks/phase-scoped-prompts/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Phase-Scoped Prompts + +## Status: PASS ## Summary Added ALLOWED/FORBIDDEN sections to all 9 phase prompts, approval gates for research/design/decompose/test_design, user override resistance instructions, pre-work validation via `--validate-folder`, and `.state` precondition checks. orchestrate.md reduced from 493 to 143 lines by removing duplicated state machine logic. diff --git a/tasks/project-migration/VERDICT.md b/tasks/project-migration/VERDICT.md index 84676df..1d23b1e 100644 --- a/tasks/project-migration/VERDICT.md +++ b/tasks/project-migration/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Project Migration Script + +## Status: PASS ## Summary Created migrate-project.sh to clean up stale framework file copies from old-model projects. Onboarding detects stale projects and offers migration. diff --git a/tasks/review-textarea/VERDICT.md b/tasks/review-textarea/VERDICT.md index 1d24c26..3c6fdb5 100644 --- a/tasks/review-textarea/VERDICT.md +++ b/tasks/review-textarea/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Inline Comment Textarea for Review + +## Status: PASS ## Summary Replaced `prompt()` dialog with inline textarea in the detail modal. Modal closes on successful submission. diff --git a/tasks/spec-in-detail/VERDICT.md b/tasks/spec-in-detail/VERDICT.md index d14d8b7..eeaaa1b 100644 --- a/tasks/spec-in-detail/VERDICT.md +++ b/tasks/spec-in-detail/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: SPEC.md Content in Task Detail Panel + +## Status: PASS ## Summary Added SPEC.md content display in the task detail panel so reviewers can see the specification inline. diff --git a/tasks/state-file-enforcement/VERDICT.md b/tasks/state-file-enforcement/VERDICT.md index ab295f9..dce1769 100644 --- a/tasks/state-file-enforcement/VERDICT.md +++ b/tasks/state-file-enforcement/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: State File Enforcement + +## Status: PASS ## Summary Implemented `.state` file as single source of truth for task phase, with approval sub-states (awaiting_approval/approved), atomic writes, forbidden artifacts per phase, task creation gate, and full transition validation in status.py. diff --git a/tasks/status-script/VERDICT.md b/tasks/status-script/VERDICT.md index e6400c9..6ba0b15 100644 --- a/tasks/status-script/VERDICT.md +++ b/tasks/status-script/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Status Script + +## Status: PASS ## Summary Implemented full 980-line status.py with all commands: --task, --list, --create-task, --transition, --approve, --validate-folder, --audit, --claim, --release, --next-available, --available, --can-edit, --scope-check, --same-session. 25 tests passing. diff --git a/tasks/task-detail-modal/VERDICT.md b/tasks/task-detail-modal/VERDICT.md index 3cc8cef..b1a0dc2 100644 --- a/tasks/task-detail-modal/VERDICT.md +++ b/tasks/task-detail-modal/VERDICT.md @@ -1,5 +1,7 @@ # VERDICT: Centered Modal for Task Detail + +## Status: PASS ## Summary Replaced the narrow 380px side panel with a centered modal overlay (720px max-width) for task detail viewing.