PREDICATES.md: the "settled at the deadband" example claims converged; main reads stable (step equals dh_zero, and converged needs strict <)
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- documentation, testing
Hướng nghiên cứu
Bắt đầu với ví dụ “settled at the deadband” trong docs/PREDICATES.md, dòng 836-842, và dòng converged gần dòng 124. Biên dịch bằng make, sau đó chạy đoạn tái hiện bốn dòng với ./src/eigenscript để xác nhận nó in ra stable và false. Chọn một cách sửa: đổi hệ số thành 0.9995 để ví dụ hiển thị converged, hoặc sửa chú thích và đoạn văn để ghi stable. Đồng thời, biến ví dụ thành một chương trình hoàn chỉnh có khối đầu ra tương ứng, và xóa mục dòng 841 trong VALUE_COMMENT_WAIVERS ở tests/test_doc_examples.py (khoảng dòng 388-391). Hoàn thành khi python3 tests/test_doc_examples.py docs/PREDICATES.md chạy đạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Found by audit area 11 (do doc examples run), read-only, against main b367cd7 (release build, make).
docs/PREDICATES.md:836-842, the "settled at the deadband" example, says the trajectory reads "converged". On main it reads "stable", and converged of x is false.
x is 100.0
for i in range of 20:
x is x * 0.999
print of (report of x)
print of (converged of x)
$ ./src/eigenscript repro.eigs
stable
false
Expected (doc, line 841): report of x # "converged" — settled AT THE DEADBAND; x is ~98, not ~0. Actual: stable (x is 98.01888648295349, so the "~98" half is right).
The verdict does not change with more steps: 20, 30, 50 and 100 iterations all print stable / false. A smaller step does reach converged: factor 0.9995 and 0.9999 both print converged. That fits the doc's own table (docs/PREDICATES.md:124: converged needs every |rel| < dh_zero, strict) and the paragraph under the example, which says 0.1% per step "is exactly the boundary". A step of exactly dh_zero is not under it, so the example sits on the wrong side of its own boundary.
Why it matters: this paragraph teaches the one semantic an agent most needs from this file (what converged means for slow motion), and the example contradicts it. Nothing caught it because the fence is eigenscript fragment (output not compared) and the line is waived in tests/test_doc_examples.py:388-391 with the reason "the verdict itself is checked by the paired output". There is no paired output. The gate side is #2290.
Alternative reading, checked: the doc may mean "reads settled" loosely, covering stable. The comment names "converged" explicitly and the next paragraph says "converged means every recent step is below the tolerance", so the text claims converged, not just "settled".
Done when
- The example prints the verdict it claims: either the factor changes to one strictly inside the deadband (for example
0.9995, which readsconvergedon main) or the comment and paragraph saystableand explain whyconvergedneeds a strict<. - The example is a whole program with a paired ```output block (so
tests/test_doc_examples.pycompares the verdict), and the `VALUE_COMMENT_WAIVERS` entry for line 841 is removed. -
python3 tests/test_doc_examples.py docs/PREDICATES.mdpasses with the updated population row.
— Duet (orchestrator)
Generated by Claude Code
- Ngôn ngữ chính
- C
- Star
- 3
- Fork
- 7
- Merge trung bình
- 6 giờ 28 phút
- Pull request đã merge (30 ngày)
- 312
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của InauguralSystems/EigenScript
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
InauguralSystems/EigenScript#2311 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
InauguralSystems/EigenScript#2305 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:ci bug found-by:duet-audit
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
InauguralSystems/EigenScript#2283 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:docs found-by:duet-audit kind:docs-drift
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
InauguralSystems/EigenScript#2282 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
X11 title and ctype tests pick their display from $$ and can silently attach to a foreign X serverĐang mởarea:gfx kind:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
InauguralSystems/EigenScript#2216 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của InauguralSystems/EigenScript
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 9 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
containers/bubblewrap#826 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Vulkan: create_device reads the device extension list after freeing it (random crash at start)Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 62/100
Revivedx/SavageWindRecomp#488 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-device
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100