Commit 8e2e630
QA pass: supersede findings.md + dashboard log-scan defense for P0-2 + CLI spec (#366)
* chore(docs): supersede findings.md with punch-list.md
The 2026-05-14 QA session was run in parallel from two worktrees.
Each produced its own QA artifact:
- findings.md (224 lines, 9 items) — from this worktree
- punch-list.md (502 lines, 25+ items) — from a sibling worktree
punch-list.md is strictly more comprehensive — every finding in
findings.md has a counterpart in punch-list.md, but punch-list.md
catches several critical defects findings.md missed (most notably
P0-2: failed runs incorrectly show as completed with green chips).
Delete findings.md so the punch-list is the unambiguous source of
truth. Future QA cycles add to punch-list.md (or supersede with a
new dated punch-list under docs/specs/ops-dashboard-qa-YYYY-MM-DD/).
Companion artifacts live in docs/specs/ops-dashboard-polish/.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(ops): defense-in-depth log scan for exit-0 runs that emitted failure signals
Tackles P0-2 of the 2026-05-14 ops-dashboard QA punch list.
Two pieces of work in one PR — they're explicit companions:
## 1. Dashboard side (visible fix)
When the SSE stream's "done" event arrives with status=
completed and exit_code=0, scan the accumulated log buffer
for unambiguous failure-leak signals:
- Python traceback header ('Traceback (most recent call last):')
- Workflow voice-layer 'What Went Wrong' / 'This one didn't
go as planned' block
- Line-anchored Python exception class ('XError:' / 'XException:')
If any matches, downgrade the chip from chip-ok (green) to
chip-warn (yellow), update the status label to 'completed
with errors (<signal>)', and add a data-tooltip pointing
users at the punch-list reference.
Conservative pattern matching only — no false positives on
docstrings or success-state output that happens to discuss
errors. Buffer is bounded at 256 KB (enough for typical runs,
wraps for very long-running workflows).
## 2. CLI side (spec)
Companion spec at docs/specs/workflow-failure-exit-propagation/
documenting the upstream fix: 'attune workflow run' should
exit non-zero when the workflow's WorkflowResult.success is
False or when an uncaught exception is swallowed at the CLI
boundary. Phase 1 (requirements) + decisions matrix drafted.
Design / tasks deferred to execution session.
Pre-committed exit-code contract:
- 0 : success
- 1 : planned failure (WorkflowResult.success is False)
- 2 : unplanned failure (uncaught exception)
- 3 : CLI-level error (workflow not found, bad path)
Once the CLI fix lands, the dashboard log-scan defense becomes
redundant — decisions.md says keep for one release cycle then
remove.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(ops): P1-2 spec detail renders markdown + P1-5 Recent strip excludes current run
Two of the P1 items from the 2026-05-14 QA punch list.
## P1-2 — Spec detail page renders markdown
spec_detail_page now renders each phase's content via
markdown-it-py (CommonMark mode, html=False) and passes the
rendered HTML to the template under `rendered` instead of the
raw `contents` dict. Template wraps the HTML in
<div class="spec-phase-body markdown-body"> with `|safe`.
Security: `html=False` means raw <script> tags are escaped to
text rather than evaluated. Spec content is repo-author-
controlled but the property holds anyway. Fallback path:
if markdown-it raises, render an empty body rather than 500ing.
CSS: new .markdown-body selector with rules for h1-h4, p, ul,
ol, code, pre, table, blockquote, hr, a — minimal styling that
matches the dashboard's existing visual language.
## P1-5 — Recent strip excludes current run
runner.js's setupRecentRuns now reads an optional
data-exclude-run-id attribute on its container. When present,
the matching run is filtered out before rendering. run_view.html
sets the attribute to {{ run.id }} so the strip shows OTHER
recent runs of the same workflow rather than including the run
the user is already looking at.
Tested: P1-2 — /specs/ignored-tests now renders <h1>, <h2>,
<code>, etc. instead of raw '# heading' text.
## Status of remaining P1 items
P1-1 — resolved by #358 (already merged).
P1-3 — already fixed on main (.scope-custom:not([hidden])).
P1-4 — needs a spec; will draft separately per Patrick's
confirmation that Memory and Sessions pages are planned-
but-unimplemented (interpretation A from the punch list).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent b48c006 commit 8e2e630
9 files changed
Lines changed: 378 additions & 241 deletions
File tree
- docs/specs
- ops-dashboard-qa-2026-05-14
- workflow-failure-exit-propagation
- src/attune/ops
- routes
- static
- css
- js
- templates
This file was deleted.
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
Lines changed: 113 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
0 commit comments