Repository navigation
fix(dashboard): show skipped step, prerequisite, and reason in storyboard drill-down - #7806
Conversation
…oard drill-down The agent dashboard drill-down labelled every cascaded skip "Blocked after earlier failure" with no step id, prerequisite, or runner reason -- even when no step had failed (#7798). - Capture up to 5 cascaded prerequisite skips per storyboard from runner output (step id/title/task, skip reason, redacted detail, nearest earlier non-passing step) and persist them in agent_storyboard_status.skipped_steps_jsonb. - Serialize as owner-scoped `skipped_steps` on storyboard status responses. - Render reason-aware skip rows in the drill-down, escaping all agent-supplied text; fall back honestly for rows recorded before this. Fixes #7798 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — owner-scoped per-storyboard skip evidence (adcp#7798), server/dashboard only.
What I checked
- No protocol/schema changes:
static/openapi/registry.yamlis registry-release scoped, not protocol-scoped (static/schemas/source/**untouched), so the omitted changeset is correct. - SQL param indexing, owner-scope gating, XSS escaping, and slugify parity verified sound.
- Migration
612_storyboard_status_skipped_steps.sqlis a new (added) file — inherently low risk; runs on startup but is additive. - No REST route allows self-reporting a certification score.
- No governance/precedent contradictions.
Medium findings (1)
- server/src/compliance/storyboard-skip-details.ts — collector classifies via
classifyComplianceStepwhileskipped_countderives viaclassifyRunStep; optional-tool prerequisite skips over-report rows and re-render the misleading "prerequisite did not pass" claim. Posted inline; worth a follow-up but not blocking.
Decision path: No critical/high findings (row 1 n/a). gated_paths false (row 2 n/a). No (deleted) reasons (row 3 n/a). Single medium is not data-loss/schema/infra category (row 4 n/a). High-risk (modified) files present but only 1 medium — row 5 requires the medium; however the medium is on storyboard-skip-details.ts which is NOT a high-risk (modified) file (row 5 keys on the high-risk modified files having the medium; the medium here is on a non-high-risk file), so row 5 does not fire. No prior escalation (row 6 n/a). No team gate (row 7 n/a). Fewer than 3 mediums (row 8 n/a). Falls through to row 9 → approve.
…vidence Mirror classifyRunStep: a prerequisite_failed skip whose pinned step requires an optional tool the agent does not advertise grades not_applicable and is not counted in skipped_count, so it must not appear as a skipped step either. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean pass, no blocking findings.
Checked:
- The delta adds an optional-tool drop guard to
collectStoryboardSkippedStepsso recorded skip evidence matchesskipped_count, mirroringclassifyRunStep'snot_applicableclassification (pinned-storyboard lookup, step_id-else-title+task match, fail-closed try/catch). Coherent and tested. - Migration
612_storyboard_status_skipped_steps.sqlis a new file (added) underserver/src/db/migrations/**; high-risk flag is heuristic and additions of new migrations are normal scaffolding. No data-loss/schema finding raised by the reviewer. high_riskis true only from modified files underserver/src/addie/**andserver/src/routes/**plus the added migration; no medium-or-higher finding on any modified sensitive file, so no escalation trigger.gated_pathsis false; no author no-auto-approve team match.- Prior decision was
approvewith no findings; this run also surfaces no critical/high/medium findings.
Decision table: rows 1–8 do not fire (no findings, gated_paths false, no deletions, no team gate, fewer than three mediums). Falls through to row 9 → approve.
#7806 took 612 on main. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 37756393 | Triggered | Bearer Token | d1930c9 | server/tests/unit/storyboard-skip-details.test.ts | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Fixes #7798
Problem
The agent dashboard drill-down (dashboard/agents → agent card → Test) showed every cascaded skip as "Blocked after earlier failure — N steps skipped after an earlier step failed". It gave no step id, no prerequisite, and no runner reason, and it made that claim even when
failure_count === 0. Skip evidence was never persisted, so the dashboard had nothing to show.Changes
server/src/compliance/storyboard-skip-details.ts(new): walks runner output once and collects, per storyboard, up to 5 cascaded prerequisite skips: step id/title/task, runnerskip_reason, redacted and length-capped detail (skip.detail, which the SDK projects towarnings[0]), and the nearest earlier step in the same storyboard that did not pass (the likely prerequisite, whether it failed or was skipped for another reason). It uses the samedependency_faileddisposition and fixture-abort rule that feedskipped_count.complianceResultToDbInputcall sites (heartbeat, owner refresh, single-storyboard retest, Addie owner test) throughwithStoryboardSkipDetails(...).compliance-testing.tsis untouched.agent_storyboard_status.skipped_steps_jsonb, written by the storyboard upsert and read by the status queries. It is a cheap column, so the card endpoint gets it without the diagnostics join.skipped_stepsarray on storyboard status responses. Non-owners get[], the same gating asfirst_failure_*. OpenAPI regenerated.escapeHtmlbecause detail can echo third-party agent text. Rows recorded before this change show a plain fallback instead of claiming an earlier failure. The summary reads "Show skip details" when nothing failed, and the old "5 skippeds" pluralization is fixed.Failure validations (
first_failure_validations) were already wired and still render unchanged.No protocol or schema changes, and no changeset:
static/openapi/registry.yamlis registry-release scoped, not protocol scoped.Tests
server/tests/unit/storyboard-skip-details.test.ts: collection (failed prerequisite, the 0-failure case with a not-applicable prerequisite, fixture abort, cap, secret redaction) plus dashboard rendering throughvm(XSS escaping, overflow summary, legacy fallback).compliance-db-last-write-wins.test.ts: upsert params and SQL.registry-api-compliance-verdict-source.test.ts(integration): owners seeskipped_steps, cross-org callers get[].🤖 Generated with Claude Code