reach: a timed-out run reused after an edit depends on timeouts, so its coverage is no longer required (#90)

Đang mở
#104 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
testing

Hướng nghiên cứu

Start in the witness module's edit sequence (an edit sequence over the witness module) and find where PR #90 dropped the state a timed-out run reused after an edit. Look at its predicate daemon.evidence.cut < coldRun.evidence.cut, then at how the CLI assigns cut counts, and compare with the #84 fix for the heartbeat state. Done means the cut comes from a recorded count rather than wall-clock timeouts, so the state can be required again and the witness unit passes deterministically. Run the witness unit test to confirm.

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

Mô tả

Summary

PR #90 removed the reach state a timed-out run reused after an edit from the witness module's edit sequence. Its predicate compares the cut counts of a daemon check and a cold run (daemon.evidence.cut < coldRun.evidence.cut), and those counts depend on wall-clock timeouts. Determinism failed on the witness unit because the state was present in one run and not the other.

The state is no longer observed, required, or entered by its constructed history (an edit sequence over the witness module). That is a coverage loss: nothing now claims that the daemon reuses a timed-out run after an edit. Law 9 is still judged on the outcomes of that history, since the comparison runs on every check.

What restores it

A deterministic cut: the witness's hang is cut by a count the CLI records (for example, a call budget or an owner's run count), not by the clock. With that, the state's predicate depends only on the history, and the state can be observed and required again. #84 is the same kind of fix for the heartbeat state.

Authority

Register (2026-11-14): "Determinism under load covers witnesses too: an oracle driver must not rely on wall-clock ordering." The evidence counts are not observed, as for cli (note in the stability check).

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

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.