daemon inputs: after a hang replaced the only context, the next check through the daemon reuses nothing (#133)

Đang mở
#175 0 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/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ệ
javascript
Lĩnh vực
testing

Hướng nghiên cứu

Read the README's reuse contract, R13, and the daemon and warm-read logic in check.mjs around warmReads and globalKey. Compare the fixed-seed e2e unit's reach on #133 with main, then add an oracle law for reuse of the unedited file's runs after a hang replaces the only context. The issue leaves the cause unconfirmed and describes alternative fixes; done means the law captures the regression and the correct check still matches the cold run.

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

Mô tả

Summary

On #133 (since at least 9bb7c74a, and at 5fc4b9a4), the fixed-seed e2e unit a check through the daemon that works past the bound reuses no unit in its test-edit check through the daemon. On main (97a4e7a8 and 30928ee8), the same check reuses file b's runs. It reaches incremental check reused evidence and incremental check reused some evidence and recomputed some.

This is a loss of reuse, not of correctness: the check still equals the cold run. The campaign does not lose these states, because 34 and 24 other units reach them. But the unit's own reach moved, and no law requires partial reuse after an edit, so the oracle passes.

Trace

  • #133 at 5fc4b9a4: CI run 44436324847, job 135266004465 (fixed seed 2/5). The unit's reach has a check through the daemon worked past its CLI's bound, an edit that changed the cold result after a hang replaced the only context and edit test changed the cold result, and neither reuse state.
  • Main 30928ee8: run 44435834785, job 135264344204. Its reach also has both reuse states.

Likely cause (plausible, not confirmed)

In this history a slow copy is cut, and a new context warms in place of the cut one. A warm records its reads as global inputs (warmReads, check.mjs), which become part of the unit identity (globalKey). If the replacement warm reads a file or variable that the first warm did not, then the next check's globalKey differs from the one the earlier units were stored under, and every unit misses once.

Possible fixes:

  • A warm in place of a cut context records new reads as hook reads, like a read that arrives after its warm ended.
  • Or the global key covers only the reads of a session's first warm.

Either needs a law that the oracle can judge. One option is to require reuse of the unedited file's runs in the check after a hang replaced the only context, which is a state the grammar already reaches.

Authority

The README's reuse contract and R13 (the daemon is the default). M-30 is met (I8 holds), so this is a speed regression, which belongs to the maintainer's cost rules (P12 / R7).

This issue was written by Isaac.

Ngôn ngữ chính
JavaScript
Star
5
Fork
1
Merge trung bình
11 giờ 18 phút
Pull request đã merge (30 ngày)
66

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: 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 TanStack/oracles

Tất cả issue của TanStack/oracles

Issue tương tự

Thêm issue về JavaScript

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.