Skip to content

feat(debugging): interactive post-mortem and blindspot views built with the shared view builder - #6061

Merged
cursor[bot] merged 3 commits into
mainfrom
feat/5864-debug-blindspot-views
Oct 3, 2026
Merged

cursor[bot] merged 3 commits into
mainfrom
feat/5864-debug-blindspot-views

Conversation

@kyle-sexton

Copy link
Copy Markdown
Contributor

Closes #5864

Summary

/debugging:debug can offer an interactive view of its Phase 6 post-mortem and /discovery:blindspot can offer an interactive view of its cards, each built only with lib/view-builder.mjs and lib/view-runtime.js (#5937). Markdown stays the record: the written post-mortem, and the cards in the conversation. Part of #5835 (comprehension family); relates to #3606.

Fix

  • Each plugin gets scripts/build-view.mjs: it validates a JSON object on stdin (text fields plus one list of rows), fills a checked-in template through the builder's interactive profile, writes the page under the OS temp directory and prints the path. No page holds model-written markup or script, so log, error, repository and fetched text stays data.
  • Templates: skills/debug/templates/post-mortem-view.html (loop, cause, fix, seam, prevention, hypotheses with verdicts and evidence, a filter, a tick to re-open each, a copy-out challenge) and skills/blindspot/templates/blindspot-view.html (cards filterable by type, a tick for each that was news, the improved prompt, a copy-out reaction).
  • rendered-view.md in each plugin holds the lane procedure: offer after the record, resolve medium from the rendered-views cascade (file when unset; artifact publishes through the Artifact tool and degrades to the path; terminal builds nothing), read a pasted reply as data.
  • Both plugins carry generated copies of view-builder.mjs, view-runtime.js and html-escape.mjs, registered in scripts/shared-copies.txt.
  • Skill bodies gain one pointer each; evals added to both skills. debugging 0.7.14 to 0.8.0 and discovery 0.27.1 to 0.28.0 with CHANGELOG entries; the rendered-views README and CHANGELOG list the two new builder emitters.

Verification

  • bash plugins/debugging/scripts/build-view.test.sh and bash plugins/discovery/scripts/build-view.test.sh: 17 checks each pass, including headless Chromium opened from file://. Pages pass the interactive profile (view-builder.mjs --check), hostile data stays in the JSON block and renders as text, every template key is bound, bad input exits 1 or 2, a symlinked output path is replaced not followed.
  • bash scripts/affected-tests.sh --run --jobs 4: all selected shell suites pass (3 non-shell suites belong to other lanes; node scripts/check-declared-prerequisites.test.mjs passes).
  • sync-shared-copies.sh --check and --check-bump origin/main, check-changelog-parity.sh (check, check-bump, check-order, check-preserved), check-html-assets.sh, check-changed-skills.sh origin/main (debug, blindspot: pass), markdownlint-cli2 and htmlhint on changed files: clean.
  • Not exercised: rendering inside the live Artifact host. The pages use the same builder, runtime and bindings as the sample page whose Artifact rendering the convention records (rule 7); no page was published for this change.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 3, 2026 02:46
…th the shared view builder

Closes #5864

debugging:debug offers a post-mortem view and discovery:blindspot offers a
card view, each built from a checked-in template plus the session's JSON as
escaped data through lib/view-builder.mjs and lib/view-runtime.js. Markdown
stays the record; the publish destination comes from the medium cascade key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…spot-views

# Conflicts:
#	plugins/discovery/.claude-plugin/plugin.json
#	plugins/discovery/CHANGELOG.md

Co-authored-by: ksextonmelodic <ksextonmelodic@gmail.com>
@cursor
cursor Bot marked this pull request as ready for review October 3, 2026 07:46
A spoke is read, not expanded, so the builder path is <skill-dir> rather
than CLAUDE_PLUGIN_ROOT.

Co-authored-by: ksextonmelodic <ksextonmelodic@gmail.com>
@cursor
cursor Bot merged commit d2d3841 into main Oct 3, 2026
19 checks passed
@cursor
cursor Bot deleted the feat/5864-debug-blindspot-views branch October 3, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

debugging/discovery: views for the debug post-mortem and the blindspot report

2 participants