Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở Phù hợp với người mới
#6,980 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@kyle-sexton đang làm issue này rồi.

Từ ngày 11/10/2026.

  • #7088 của @kyle-sexton — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
ai, security

Hướng nghiên cứu

Bắt đầu từ buildContinuationPrompt trong plugins/knowledge/skills/video-digest/extraction/watch/watch-state.js, nơi title và sourceUrl được nội suy quanh dòng 326 và 330, rồi kiểm tra các trường trạng thái ở dòng 46-47. Đọc docs/conventions/untrusted-content/README.md để tái sử dụng khung bao bọc. Hoàn thành khi title và URL nằm trong một khối dữ liệu có phân định, các ký tự xuống dòng được gộp lại và dấu backtick được vô hiệu hóa, tiêu đề không còn chứa tiêu đề thô, và một bài kiểm tra mới cho thấy tiêu đề có dòng mệnh lệnh và khối mã chỉ xuất hiện bên trong khối đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
6 giờ 10 phút
Pull request đã merge (30 ngày)
937

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.