oracle-property: the History line is capped at 2000 characters, so a failing history cannot be filed in full

Đang mở
#185 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
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ệ
typescript
Lĩnh vực
testing

Hướng nghiên cứu

Start with packages/oracles/src/oracle-property.ts and inspect reportText plus the failure output that prints the History: and replay lines. Check how the framework handles histories that cannot be shrunk back, especially fixed, constructed entries, and canShrinkWithoutContext. Done means full histories are retained in CI output, replay output names the history being replayed, and the history replay gap is addressed here or tracked in a linked issue.

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

Mô tả

reportText in packages/oracles/src/oracle-property.ts caps every printed value at 2,000 characters:

function reportText(value: unknown): string {
  try {
    return encodeData(value, ``, `report`).slice(0, 2000)

The History: line of a failing oracle uses reportText, so a failing history is truncated. The CI log for the #184 failure (run 44588135077, job "random seed, 3/4") cuts the history at 2,000 characters, so the full history cannot be recorded from CI.

Why it matters: M, "Replay by history" (register 2026-11-16) says a filed counterexample records its full history, not only its seed. Replay and base-replay attribution run that exact history. With this cap, the filed history for #184 (random seed: a daemon pause that cannot engage, seed -1120189360) is incomplete in CI output. A local scratch edit that removes the cap printed the full 3,593-byte history (83 keys), which is how #184 was captured.

Needed: print the full history in the failure (the cap removed, or a separate full-history line that the CI log keeps), and have the replay line name the history it replays. Separately, a history that the arbitrary cannot take back is rejected by fixed and by constructed entries (canShrinkWithoutContext is false), so a captured history cannot yet be replayed by history through the framework's own entries. That is a second gap for the same replay rule and should be covered here or in a linked issue.

Related: TanStack/oracles#184.

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.