Skip to content

fix(knowledge): give video-digest's ASR prerequisite a working install path and interpreter option - #8110

Merged
kyle-sexton merged 10 commits into
mainfrom
work-resolve-issue/issue-7743-39105859063-1
Oct 20, 2026
Merged

kyle-sexton merged 10 commits into
mainfrom
work-resolve-issue/issue-7743-39105859063-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #7743

Summary

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

Adds an asr_python knowledge option that ASR detection probes before the PATH Python candidates. Adds a copyable uv venv recipe to video-digest Prerequisites, with the av<19 pin and a recheck trigger. The ASR runner now adds nvidia-* wheel bin directories as DLL directories on Windows.

Not verified

  • Not run: the full video-digest extraction suite, only the three affected test files (run-test-file takes one file at a time); left to the PR's CI.
  • preflight.mjs reads the option from CLAUDE_PLUGIN_OPTION_ASR_PYTHON; I did not confirm the Bash tool exports it, so the readiness line may report faster-whisper missing for a venv-only setup. The real run is unaffected because it takes --asr-python.
  • asr_transcribe.py Windows DLL code and the uv recipe were not executed (no Windows or uv here); the av<19 pin is reported, not reproduced.
  • No separate prerequisite script exists (#5982 E3), so no shared probe was needed; detection and preflight each probe independently.
  • Code review ran locally as one subagent because review-venue.txt was absent. The pull-request prep (/source-control:pull-request prep) was not run; only the plugin's own checks were.
  • The generated options block in README.md was edited by hand, since scripts/sync-plugin-options-docs.py is not an allowed wrapper; CI may regenerate it.

Fix

  • plugins/knowledge/.claude-plugin/plugin.json: new asr_python userConfig option
  • plugins/knowledge/README.md: option documented in the options table and the generated options reference (edited by hand, sync script not run)
  • plugins/knowledge/skills/video-digest/SKILL.md: asr_python row in Configured options, detection order, uv recipe with av<19 pin and recheck trigger
  • plugins/knowledge/skills/video-digest/reference/sources/youtube.md: --asr-python flag row
  • plugins/knowledge/skills/video-digest/extraction/lib/run-args.js, run.mjs: --asr-python flag mapped to VIDEO_DIGEST_ASR_PYTHON
  • plugins/knowledge/skills/video-digest/extraction/transcript/asr-transcribe.js: configured interpreter probed first
  • plugins/knowledge/skills/video-digest/extraction/preflight.mjs: readiness probe also tries the configured interpreter
  • plugins/knowledge/skills/video-digest/extraction/transcript/asr_transcribe.py: Windows-only add_dll_directory for existing site-packages/nvidia/*/bin
  • plugins/knowledge/skills/video-digest/extraction/lib/run-args.test.js, transcript/asr-transcribe.test.js: new cases with stubbed spawn
  • .changes/knowledge/fix-7743-asr-interpreter-option-7743a1c4.md: minor changelog fragment

Verification

The run reports:

Left out: the items under Not verified.

Related

#7743

… dirs for video-digest ASR

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed e98029fdff5f6c6f012f50bb5e47009adb7b9cb3: 0 finding(s), 0 as inline comments.

Security review: PR #8110 (head e98029f)

No security findings.

Scope: the new asr_python user option and its flow: plugin.json, then --asr-python, then VIDEO_DIGEST_ASR_PYTHON, then the interpreter probes in preflight.mjs and asr-transcribe.js. Also the Windows DLL-directory addition in asr_transcribe.py, the SKILL.md changes and the tests.

Checked and found acceptable:

  • Command injection: the option value reaches spawnSync / spawnAsync as the executable with a fixed argument list (-c "import faster_whisper"). Neither call uses a shell, so a value with metacharacters stays a literal path. In SKILL.md the pre-computed ! block puts the substitution inside double quotes.
  • Trust boundary: asr_python is a plugin option the user sets in their own config, like yt_dlp_cookies_file. Only that user can set it, so choosing which interpreter to run does not cross a boundary. No untrusted text (URLs, captions, issue or PR content) can set it.
  • Unsubstituted placeholders: preflight.mjs ignores any value containing ${, so a literal ${user_config...} token is never executed. The run.mjs path takes the value through the --asr-python flag.
  • add_nvidia_dll_directories: it is Windows-only. It adds only existing */bin directories under nvidia/ on sys.path entries, which are the interpreter's own import paths. This is the same trust level as the imports themselves, not attacker-controlled input.
  • allowed-tools: the pattern still matches only preflight.mjs. The added flag does not widen what the skill may run.
  • Instruction-surface deletions: none. The diff adds text only and removes no standing instruction or guardrail, so the protected-class register was not needed.
  • Docs recipe: the uv commands are user-run and labelled so. The skill never runs them, and nothing is auto-installed.

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed e98029fdff5f6c6f012f50bb5e47009adb7b9cb3: 2 finding(s), 2 as inline comments.

Code review: PR #8110 (asr_python option for video-digest ASR)

I read the full diff and the PR context, and checked the run-args, preflight and ASR detection code paths. I ran no tests. The PR's verification claims are author-claimed and unverified by me.

The code changes look sound:

  • --asr-python "" parses fine, so an unset option does not break preflight.
  • buildChildEnv skips empty values.
  • Detection falls through to the PATH candidates, and the Windows DLL step is a no-op off Windows and has tests.

I reported 2 findings as inline comments:

  1. --asr-python is wired only for YouTube runs (plugins/knowledge/skills/video-digest/reference/sources/youtube.md:94).

    • The only instruction to pass the flag to run.mjs is in the YouTube spoke, which loads only for YouTube URLs.
    • reference/sources/x.md never mentions it, yet X watches reach the asr rung when captions are absent.
    • On an X watch, VIDEO_DIGEST_ASR_PYTHON is never set, so ASR degrades even though preflight reports faster-whisper available through the option.
    • The issue's outcome ("detection tries it before the PATH candidates") is therefore not met for non-YouTube sources.
  2. Restated upstream specific in a skill body (plugins/knowledge/skills/video-digest/SKILL.md:350-354).

    • The paragraph states a PyAV/faster-whisper 1.2.1 incompatibility that was reported but not reproduced, and it links no upstream issue.
    • .claude/rules/skill-bodies-state-current-rules.md says a record never cures a restatement.
    • The body should keep the decision and point at a live upstream source with an as-of date and recheck trigger.

Closing issue #7743: the manifest option, SKILL.md rendering, uv recipe, Windows DLL step and tests are present. The one unmet part is the per-source wiring in finding 1.

Unresolved or unread:

  • The README options table was edited by hand, and the PR notes the sync script was not run. I did not check it against the generator.
  • The PR says the Bash tool's export of CLAUDE_PLUGIN_OPTION_ASR_PYTHON was not confirmed. The preflight fallback to that variable is therefore untested against a real session.

…stated upstream specifics

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of 3 on a58014f.

…tate the av pin probe

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of 3 on 028b3ad.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 3 of 3 on 028b3ad.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 18, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a review finding is uncertain or deferred, so a person decides it.

  • Reason: feedback-uncertain
  • Resume key: 028b3adb57e5dfb9211c3137ed954f7491020312 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=8110 and activity=address-feedback:

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

kyle-sexton and others added 2 commits October 18, 2026 19:37
… CI gates

check-plugins flagged the uv lines in the video-digest install recipe as an
undeclared tool, and lint-shell flagged the Windows Scripts\python.exe path as
a GNU \S regex. The recipe is run by the user, never by the skill, and the
path is not a regex, so mark each line with the gates' per-line escapes
(prereq-ok, portability-ok) as other skills do. No content change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 4 of 3 on fa4faed.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a review finding is uncertain or deferred, so a person decides it.

  • Reason: feedback-uncertain
  • Resume key: fa4faed1810c3fab62bf97946b3146e177652ad9 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=8110 and activity=address-feedback:

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

kyle-sexton and others added 2 commits October 20, 2026 01:39
…ranscribe.py

Issue #7743 asks that asr_transcribe.py add each existing
site-packages/nvidia/*/bin directory as a DLL directory on Windows and do
nothing elsewhere. No test covered it. The new suite patches sys.platform,
sys.path and os.add_dll_directory over a temporary site-packages and checks
both platforms.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SysXJ1mcLncKqyhsHzqKjP
…pin upstream

The only rule to pass --asr-python to run.mjs sat in youtube.md, which X
runs never read, though their ladder reaches the asr rung. The rule now
sits beside SKILL.md's Configured options table, which every source reads,
and the youtube.md row is gone.

The av pin paragraph restated upstream behavior. It now points at
SYSTRAN/faster-whisper#1589 and its merged fix #1495, with an as-of date
and a recheck trigger on the first release that ships the fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SysXJ1mcLncKqyhsHzqKjP
@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 20, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Removed needs-human: its recorded reason (feedback-uncertain on the preflight-test thread) is cleared. That thread and the two later claude-review threads are fixed and resolved at 9b12bc0. #7743's criteria are met (configured interpreter probed first, the av<19 recipe with an upstream pointer and recheck trigger, Windows DLL directories tested), and CI is green on this head. Merging under the owner's overnight SOP.

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

Copy link
Copy Markdown
Contributor Author

Unattended merge: the verifier verdict refuses verify:earlier-fail at head 9b12bc06860183514c73ca1e143d4a45c63fb1f2. That refusal needs a human, who merges in person; the pr-merge lane will not merge this pull request.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 20, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 20, 2026
Merged via the queue into main with commit 1b8abd8 Oct 20, 2026
62 of 63 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-7743-39105859063-1 branch October 20, 2026 08:07
github-merge-queue Bot pushed a commit that referenced this pull request Oct 20, 2026
… ui_journey 13 (#8575)

No related issue: a test flake found in merge-queue run
[39378456368](https://github.com/melodic-software/claude-code-plugins/actions/runs/39378456368),
which ejected an unrelated PR (#8110) from the queue.

## Summary

ui_journey phase 13 ("a save while a wake is in flight says queued,
Claude is busy") failed in the merge queue with an empty toast (`FAIL:
ui_journey.13 … []`) and passed elsewhere. It slept a fixed 300 ms and
hoped the page had applied the delivered state by then.

## Fix

- `plugins/planning/surface/tests/ui_journey.js:621`: the
`waitForTimeout(300)` is replaced by a bounded wait (5 s, the test's
existing `until` helper) for `#workLine` to read `Claude is working on`.
The page renders that line from the same condition `queued()` reads for
the "Queued, Claude is busy" suffix (`S.online && !stalled() &&
pending().some(delivered)`; `index.html:632`, `:881-889`, `:921-922`).
The page keeps `S` in a closure, so `#workLine` is where that state
shows. The assertion is unchanged.
- `.changes/planning/fix-planning-ui-journey-13-wait-1f3f108c.md`: a
`bump: none` fragment (the fragment gate counts every file under
`plugins/<name>/`).

## Verification

- `surface-journey.test.sh`: 3/3 local runs passed, 239 checks each,
toast "Sent. Claude's reply lands here. Queued, Claude is busy."
- `scripts/check-affected.sh --tests`: 11 passed, 3 skipped.
- Not proven: that the wait times out without the delivery; `until`
returns quietly at its limit and the unchanged assertion then decides.

## Related

- Merge-queue run
[39378456368](https://github.com/melodic-software/claude-code-plugins/actions/runs/39378456368).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01WyWcv2NwzrPQ4dChfwFjM7

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(knowledge): give video-digest's ASR prerequisite a working install path and interpreter option

1 participant