Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

fix(knowledge): frame the video title and URL in the video-digest resume prompt as untrusted data

オープン 初心者向け
#6,980 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript
領域
ai, security

調査の方向性

plugins/knowledge/skills/video-digest/extraction/watch/watch-state.js の buildContinuationPrompt から始めてください。title と sourceUrl は 326 行目と 330 行目付近で埋め込まれています。46〜47 行目の状態フィールドも確認してください。再利用するフレーミングの骨組みとして docs/conventions/untrusted-content/README.md を読んでください。完了条件は、title と URL が区切られたデータブロック内にあり、改行が統合され、バッククォートが無害化されていること、見出しに生のタイトルが含まれなくなっていること、そして命令文の行とコードフェンスを含むタイトルがそのブロック内にのみ現れることを新しいテストで示すことです。

索引モデルが issue の本文から書いたものです。

説明

needs-human needs-triage

Summary

buildContinuationPrompt in watch-state.js interpolates the video title and source URL straight into the resume prompt. Both come from the video's own metadata, which the video's publisher controls. The prompt is the text a fresh session reads as its instructions, and it is written into the slice, so a title carrying imperative text lands in the instruction channel with no data framing.

Failure scenario

Expected: ingested metadata is presented as data, never instructions, per the framing contract in docs/conventions/untrusted-content/README.md (classification, finding, authority floor).

Actual: the first line is # Continue /knowledge:video-digest watch — ${state.title} and a later line is Source: ${state.sourceUrl}, unquoted and unframed. A title such as one containing a sentence addressed to the agent reads, to the resuming session, as part of its own prompt. #6820 framed the ingested transcripts, comments and pages; this prompt is a separate ingest path that the fix did not cover.

Evidence

Suggested fix

Carry the inline framing spine from the untrusted-content convention in the prompt, move the title and URL into a clearly delimited data block (for example a fenced block, with newlines in the title collapsed and backticks neutralized), and keep the heading free of the raw title. Add a test that a title containing an imperative line and a code fence does not appear outside the data block.

Related

  • #6820 (framed ingested transcripts, comments and pages)
  • docs/conventions/untrusted-content/README.md

🤖 Generated with Claude Code

主要言語
Shell
スター
22
フォーク
2
平均マージ
6時間 10分
マージ済み PR(30日)
937

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

melodic-software/claude-code-plugins のほかの issue

melodic-software/claude-code-plugins の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。