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

session: standing execution falsely reports branch isolation while committing to main

Đang mở
#1,550 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

Chưa có ai nhận issue này.

Đá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
48/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ệ
git, go
Lĩnh vực
devtools, security

Hướng nghiên cứu

Start in internal/session and reproduce the standing-task flow described in the issue. Inspect the completion claim alongside git reflog, git status, and git log -1 on main. Done means branch-isolated runs use a separate worktree or branch, validate the resulting git ref, and leave main unchanged.

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

Mô tả

area:session bug sev:critical
Summary

Standing task firings report that changes were committed to an isolated branch, but commits are written directly to the active working tree branch (main).

Observed Behavior

A standing task firing completes with the summary message: "committed on branch vet-fix, not merged". Running git reflog and git status in the repository reveals the commit was applied directly to main.

Expected Behavior

If a task run claims branch isolation or is granted permission only for branch commits, the engine must enforce worktree isolation on a separate git branch and never modify main.

Reproduction Steps
  1. Set up a standing task with instructions to commit fixes to a branch without merging.
  2. Allow the task to fire.
  3. Review the completion report claiming commits landed on a separate branch.
  4. Run git log -1 on the host repository's main branch. The commit is present directly on main.
Root Cause / Location

internal/session accepts the LLM's prose output claim as truth without validating git ref state or enforcing an isolated git worktree before landing changes.

—
Drafted with CodeAF · reviewed and owned by the author

Ngôn ngữ chính
Go
Star
115
Fork
14
Merge trung bình
9 giờ 35 phút
Pull request đã merge (30 ngày)
752

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

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 Agent-Field/CodeAF

Tất cả issue của Agent-Field/CodeAF

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.