Safety prompts recur across run_skill and transfer_task sub-sessions

Đang mở
#4,882 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

@onatozmenn đang làm issue này rồi.

Từ ngày 12/11/2026.

  • #4915 của @onatozmenn — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, go
Lĩnh vực
security, testing

Hướng nghiên cứu

Start by tracing how run_skill classifies read-only operations and how safety approvals are scoped when transfer_task creates a child session; the issue does not name source files or tests. Reproduce the reported flow, confirm both behaviors from the source, then add a focused regression test for a read-only skill crossing the sub-session boundary while preserving write confirmations and safety hooks.

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

Mô tả

area/runtime area/security area/sessions area/skills

Problem

A prior session using Docker Agent dev build bbe70f53 observed repeated safety prompts across delegated work: 10/10 runs in the surviving log window prompted again. This report is about runtime safety-state/tool classification, not agent prompt design.

Working hypothesis from the observed behavior: launching a skill with run_skill does not mark its execution read-only, so the default safety mode prompts; an approve-autonomous decision appears scoped to the current sub-session, while transfer_task creates a new sub-session that prompts again. These details need source-level confirmation and a minimal reproduction by maintainers; the surviving observations alone do not establish the mechanism.

Reproduction to investigate

  1. In default safety mode, run a skill via run_skill that performs only read operations.
  2. Observe whether the tool launch prompts for approval despite being read-only.
  3. Grant the applicable autonomous/safety approval in that session, then delegate via transfer_task to a child session that performs the same read-only operation.
  4. Observe whether the new sub-session prompts again.

Reported observation: repeated prompts occurred in 10/10 runs visible in the surviving log window. This count is limited to that window and is not a broader rate estimate. No raw logs, private content, local paths, or credentials are attached.

Expected

Provide safe, explicit, least-privilege handling for read-only operations and/or scoped reuse of a user-granted safety policy across related sub-sessions, with clear visibility of scope. Preserve safety hooks and their enforcement. Reuse must not automatically authorize writes or bypass explicit confirmation for external, irreversible, or production-reaching writes.

Actual observation / uncertainty

Prompts recurred across skill/delegation runs. The proposed run_skill classification and per-sub-session approval scope are hypotheses, not independently verified source conclusions.

Environment / limitations

  • Docker Agent dev build: bbe70f53
  • macOS arm64
  • Prior-session observation; exact source revision and a standalone reproduction were not retained.

Please confirm the classification and approval-scope behavior, then add a focused regression test for a read-only skill crossing a transfer_task sub-session boundary.

Ngôn ngữ chính
Go
Star
4.7k
Fork
565
Merge trung bình
18 giờ 52 phút
Pull request đã merge (30 ngày)
221

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 docker/docker-agent

Tất cả issue của docker/docker-agent

Issue tương tự

Thêm issue về Go

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.