feat(debugging): interactive post-mortem and blindspot views built with the shared view builder - #6061
Merged
Conversation
…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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5864
Summary
/debugging:debugcan offer an interactive view of its Phase 6 post-mortem and/discovery:blindspotcan offer an interactive view of its cards, each built only withlib/view-builder.mjsandlib/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
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.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) andskills/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.mdin each plugin holds the lane procedure: offer after the record, resolvemediumfrom therendered-viewscascade (filewhen unset;artifactpublishes through the Artifact tool and degrades to the path;terminalbuilds nothing), read a pasted reply as data.view-builder.mjs,view-runtime.jsandhtml-escape.mjs, registered inscripts/shared-copies.txt.debugging0.7.14 to 0.8.0 anddiscovery0.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.shandbash plugins/discovery/scripts/build-view.test.sh: 17 checks each pass, including headless Chromium opened fromfile://. 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.mjspasses).sync-shared-copies.sh --checkand--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.Related
🤖 Generated with Claude Code