github / github/app

Status messages interrupt active child sessions and trigger unbounded review restarts

Đang mở
#2,315 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Bugs
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.1k
Fork
153
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Summary

Cross-session status messages sent to an active child session interrupted its certification work. The child repeatedly restarted review, expanded its changes, and consumed substantial resources without checkpointing, committing, or opening a pull request.

My status questions were reasonable and exposed the defect. The repeated work was caused by orchestration behavior, not user error.

## Reproduction

1. Delegate a long-running review to a child session.

2. Request its status through the parent session while it is processing.

3. The parent sends the status request into the child as a new user turn.

4. Active work is interrupted or superseded.

5. The child restarts review instead of resuming from a checkpoint.

6. Repeated status checks cause repeated review cycles and scope growth.

## Expected behavior

- Status checks should be read-only and not interrupt active child work.

- Any unavoidable interruption should require confirmation.

- Interrupted work should resume from a durable checkpoint.

- Review loops should have duplicate-work detection and resource budgets.

## Actual behavior and impact

- Status-only messages became disruptive child turns.

- A bounded audit expanded into 16 modified files and over 2,500 inserted lines.

- No commit or pull request was produced before the work was manually frozen.

- Local telemetry recorded 1,295 model-usage events, approximately 194.2M input tokens and 1.02M output tokens. These are local counters that may include replayed or cached context—not asserted billable totals.

## Suggested fixes

1. Provide a read-only child-status API.

2. Queue parent messages behind active child work by default.

3. Warn before cancelling or superseding an active child turn.

4. Persist checkpoints and resume after interruption.

5. Detect repeated reviews over substantially identical diffs.

6. Enforce time, token, retry and diff-size budgets.

7. Distinguish user, parent-orchestrator, sibling and system messages in diagnostics.

I can provide the full diagnostic report and session identifiers privately to maintainers for server-side telemetry correlation.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Issue không xác định tệp, bài kiểm thử hay entry point nào. Hãy bắt đầu với các bước tái hiện và truy vết cách các yêu cầu trạng thái của parent trở thành child turn; phần hoàn tất phải bao gồm các kiểm tra trạng thái không gây gián đoạn, xử lý ngắt an toàn, tiếp tục từ checkpoint, phát hiện công việc trùng lặp và ngân sách tài nguyên.

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

Đánh giá

Lĩnh vực
ai-infra-agents
Loại issue
Lỗi
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

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.