Skip to content

refactor(debugging): resolve the view medium through the shared resolver - #13007

Merged
kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-12732-41743039359-1
Nov 4, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
work-resolve-issue/issue-12732-41743039359-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12732

Summary

Opened by the work-resolve-issue lane. The run's own summary:

/debugging:debug's post-mortem view now has its destination decided by the shared medium resolver (--lane debugging:debug, already registered in lib/view-registry.mjs) with a new medium plugin option, and the skill prints the resolver's report and notice lines instead of reading the rendered-views cascade itself; the skill text and evals name no medium values. Means chosen on evidence: docs/contracts/rendered-views/README.md lists 'the lane plugin's medium userConfig option' as a resolver scope, so debugging gains that option (modelled on planning's), and debugging's synced copy of the shared rendered-view procedure moved from skills/debug/reference/ to the plugin-level reference/ that planning, architecture and discovery already use. The shared procedure (lib/rendered-view.md) still lists medium values for the lanes that have not migrated, and that copy no longer sits in the skill's own directory. The canonical lib/rendered-view.md now lists debugging as a resolver lane, and the four synced copies were regenerated with the repo's sync script.

Not verified

  • Demo (run /debugging:debug on a sample and see the report line) not run: this lane can run no interpreter, so the resolver CLI (node) and the debug skill could not be run here. Lane registration and resolver behaviour were checked by reading lib/view-registry.mjs:53 and view-settings.mjs
  • No model evals were run, as the issue asks; eval validation was check-evals-quality only
  • scripts/sync-plugin-options-docs.py could not be run (no interpreter); the README block was hand-written to match render(), and check-affected's plugin-options-docs check then passed
  • Test suites (lib/view-settings.test.mjs and others) not executed here; left to the PR's CI
  • Tidy skipped: the change is 18 files and touches the shared paths lib/ and scripts/, over the tidy cutoffs (10 files, 1 area, no shared paths)
  • Bump level: the debugging fragment is minor (0.x), while planning took a major for the same retirement; a reviewer may prefer major
  • Untracked root dotfiles (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were present in the working tree and are not part of this change; leave them out of the patch

Fix

  • plugins/debugging/skills/debug/SKILL.md: Optional view paragraph now hands the destination to the medium resolver with ${user_config.medium}, prints its report and notice lines, and links the plugin-level reference/rendered-view.md
  • plugins/debugging/.claude-plugin/plugin.json: new medium userConfig option (default auto), the per-user scope the resolver reads
  • plugins/debugging/README.md: Configuration text updated; generated options block added by hand to match scripts/sync-plugin-options-docs.py render() output
  • plugins/debugging/skills/debug/evals/evals.json: eval 7 expects the shared resolver and its report line (when the view is built) in place of the medium cascade key and a named default
  • plugins/debugging/evals/offers-built-post-mortem-view/prompt.md: expected_outcome names the shared medium resolver
  • plugins/debugging/evals/offers-built-post-mortem-view/graders/record-first-builder-only.md: the bonus credit names the resolver, not the medium key
  • plugins/debugging/skills/debug/reference/rendered-view.md: removed (moved)
  • plugins/debugging/reference/rendered-view.md: new location of debugging's synced copy, generated by sync-shared-copies
  • plugins/debugging/scripts/build-view.mjs: path comment points at reference/rendered-view.md
  • lib/rendered-view.md: lists debugging as a migrated resolver lane; Debugging section names --lane debugging:debug
  • plugins/planning/reference/rendered-view.md, plugins/architecture/reference/rendered-view.md, plugins/discovery/reference/rendered-view.md: regenerated synced copies
  • scripts/shared-copies.txt: debugging copy's destination path updated
  • scripts/cross-plugin-source-registry.txt: dropped the debugging skills/ path special case (now covered by plugins/*/reference/rendered-view.md)
  • .changes/debugging/work-resolve-issue-issue-12732-41743039359-1-1c48812a.md: minor fragment (Added option, Changed resolver use and file move, Removed retired-file publishing)
  • .changes/planning/…-cea1b312.md, .changes/architecture/…-5fd1325f.md, .changes/discovery/…-4b710f7c.md: patch fragments for the synced-copy change

Verification

The runner ran each check from the base copy against 00c9c45:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • Grep over plugins/debugging/{skills,evals}/** for enumerated medium lists (terminal|file, backticked terminal/artifact/file/hosted/auto, artifact…terminal on one line, 'cascade key'): no matches
  • check-evals-quality plugins/debugging/skills/debug/evals/evals.json: PASS, 0 warnings
  • check-evals-quality plugins/debugging/skills/analyze-profile/evals/evals.json: PASS, 0 warnings
  • sync-shared-copies: regenerated the four rendered-view.md copies, exit 0
  • check-changelog-fragments: all 24 fragments valid
  • check-changed-skills: debug PASS, 0 errors, 5 pre-existing size and shape warnings
  • check-affected: first run failed plugin-options-docs (debugging README stale); after adding the options block, 11 passed, 7 skipped, 0 failed
  • Fresh-context review subagent: no high findings. Fixed: eval expectation conflict, README plugin-data sentence, SKILL.md notice lines, changelog Removed entry
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41743039359

Left out: the items under Not verified.

Related

#12732

Lane-Activity: work-resolve-issue/resolve-issue

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 1 inline finding(s) on 00c9c45651ef7ac48ed6ac6e9a5d958478ced713; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed f8d094218649e779ac4add9c046bf12051205aa6: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13007, incremental (cdc4943 → f8d0942)

I found no security issues in this push. I read every hunk of both files in the incremental scope (2 of 2).

What changed since the last review

  • .changes/debugging/work-resolve-issue-issue-12732-41743039359-1-1c48812a.md: the bump level goes from minor to major. The ### Added entry now says the debugging plugin needs Claude Code v2.1.271 or later. These are release notes only; nothing runs from this file, and no control reads it.
  • plugins/debugging/README.md:62: one added sentence naming the same v2.1.271 client floor. Documentation only.

These two edits are the pr-unblock lane's fixes for two threads that are now settled: the options client-floor note and the major bump. Both threads are marked lines changed since resolution: no in the settled-threads file. Neither edit deletes, narrows or softens a standing instruction. Neither file is a trust control, and neither matches a trusted-path glob.

Manifest
plugins/debugging/.claude-plugin/plugin.json did not change in this push. Its userConfig.medium key was flagged in an earlier round (#13007 (comment)), and that thread is now resolved. Under the current selector rule I re-checked it, and it qualifies as a view medium selector:

manifest userConfig.medium: pass, advisory, picks the post-mortem view's delivery medium from "options": ["auto", "terminal", "file", "artifact", "hosted"] with "default": "auto" (plugins/debugging/.claude-plugin/plugin.json#L27-L28); the value is read by view-settings.mjs resolve --lane debugging:debug at plugins/debugging/skills/debug/SKILL.md#L338

critical-findings: 0

PR text. The description and issue context contain no instructions aimed at this review lane. The pr-unblock lane's reply says a person still needs to add the v2.1.271 floor to the PR description. That is a docs gap, not a security issue.

Spend: none.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 2 inline finding(s) on 00c9c45651ef7ac48ed6ac6e9a5d958478ced713; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed f8d094218649e779ac4add9c046bf12051205aa6: read 2 of 2 changed file(s); 1 finding(s), 0 as inline comments.

Code review: #13007, incremental (cdc4943 → f8d0942)

I read every hunk of both files that changed in this push:

  • .changes/debugging/work-resolve-issue-issue-12732-41743039359-1-1c48812a.md
  • plugins/debugging/README.md

The push fixes both manifest flags I posted last round.

Manifest

  • manifest version: pass. The debugging fragment is now bump: major (fragment#L2). That matches its ### Removed entry, which stops publishing from the retired rendered-views files. Planning made the same retirement and released it as 1.0.0.
  • manifest userConfig.medium.options: pass. The ### Added entry now names the Claude Code v2.1.271 floor (fragment#L7), and so does the README's Configuration prose (README#L62). The README line is outside the BEGIN GENERATED options block, so sync-plugin-options-docs.py will not overwrite it. One gap: the PR description still doesn't name the floor. The fix lane said it can't edit the PR body and that a person needs to add it. I'm not counting this as a finding because the floor ships in the changelog and README.
  • manifest userConfig.medium (new field) and manifest description/keywords: unchanged since last round, still pass.

Closing issue #12732 (summary finding, restated)

  • Finding: the criterion "a git grep for an enumerated medium list in the debugging plugin's skills and evals finds none" appears met, but no test or check in the PR or the repository would fail if a medium list came back into plugins/debugging/skills/** or plugins/debugging/evals/**. The only evidence is the author's grep. The author reported it; I did not run it. A small grep guard, for example a plugins/debugging/tests/*.test.sh, would make the criterion stick.
  • "the debugging evals validate with no FAIL": the author reports that check-evals-quality passes. I did not verify it.

Not verified

This lane had no shell. I ran no tests, sync checks, changelog-fragment checks or eval validation. The PR body's verification results were reported by the author, and I did not check them.

I found no embedded instructions in the PR context, settled-threads or prior-findings files.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head f8d094218649e779ac4add9c046bf12051205aa6. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 00c9c45651ef7ac48ed6ac6e9a5d958478ced713.

Lane-Activity: pr-unblock/resolve-conflicts
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head cdc4943b39ee83308bc349c30bed95df659cb740.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 4, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the pull request has an unresolved review thread the lane does not take (a reviewer it does not act on, a review of an older head, or a thread it already answered), so no lane resolves it and a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=13007 -f activity=address-feedback

@kyle-sexton kyle-sexton removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 4, 2026
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6zZOuI
Lane-Thread: PRRT_kwDOTCGFQM6zZOuQ
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on f8d0942.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head f8d094218649e779ac4add9c046bf12051205aa6.

Merged via the queue into main with commit dccfd9c Nov 4, 2026
58 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-12732-41743039359-1 branch November 4, 2026 04:03
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.

refactor(debugging): resolve the view medium through the shared resolver

1 participant