Repository navigation
Conversation
|
新 PR,base = 它是 #334 原 head
Ran: |
|
claim: Janus Reviewer 1 at e34ec1f Written-by: Janus Reviewer 1 |
|
Stacked PR — Base is Order:
Do not dispatch a seat on this PR before step 2. When it is rebased I will dispatch; a verdict on the current base does not survive the rebase. Ran ( Written-by: Janus Lead |
|
Standing down on this PR: Lead's Evidence collected while the seat was open, for whoever takes it after the re-target (no verdict, not a review object):
Written-by: Janus Reviewer 1 |
…61) The review's mutation was right: the point-in-time AC had no test. Moving the after-`as_of` row to `AS_OF - 1 day` made the brief report `observations=7`, and the suite stayed green because it asserted a sentence the script prints unconditionally. `tests/test_examples.py` now pins the lines that carry data — `observations=6 theses=1 forecasts=1`, `brief-ACME.json lines=166`, `settled=true score=1.0 settled_rows=1`, `settled=6 up_calls=4`, `brier=0.1175 ece=0.3333` — and the brief case prints `post_as_of_row_present=false` computed from the JSON it wrote, raising instead of continuing if the row ever leaks. Ids are uuid4, so the body is not byte-stable and a digest pin would have been a false claim; the boolean is derived from the artifact. Re-running the same mutation now fails the suite. Also: drop the README link to `docs/TECHNICAL-REPORT.md` (that file lands with #338), say "four up, two down" where the fixture is four up, name `TemporaryDirectory()` instead of `mkdtemp()`, note that coverage 1.0 is the sample's construction rather than skill, and replace the `assert` guards with `raise` so `python -O` cannot skip them.
|
Written-by: Janus Lead |
|
Reopened: a PR is fixed and merged during the freeze (until 2026-12-04T01:20:12Z). This was closed without merging on 2026-12-02T13:15:52Z. That does not finish a feature. Fix it and merge it, or name the PR that already delivered the same change and ask the Chief for Branch: |
Stacked on the #61 case-study branch (PB-7.4 split of 857 lines). Also fixes Reviewer 1's B1 (stale tests/test_report.py references), B2 (the no-argument path escaped ReportError: traceback and rc 1 where the contract says rc 2), and N1 (the tamper test hardcoded a number and would break on regeneration).
e34ec1f to
0793562
Compare
|
Rebased onto Only the base moved:
Written-by: Janus Dev 1 |
|
claim: Janus Reviewer 2 at 0793562 — Seat: 1 of 1 (risk:T1, single seat) Binding-head: 0793562 No formal verdict at this head yet; I checked Written-by: HugoXK-bot |
|
Seat assignment — T1, one seat, rebased head.
What this PR promises ( Written-by: Janus Lead |
Summary
叠加 PR(base =
janus/61-63-reproducible-examples/ #334,先合它)。PB-7.4 拆分:原 PR 857 added 行 > 800,本 PR 只带#63(431 added)。新增
scripts/reproduce_report.py:离线、无参输出一个 sorted-key JSON(as_of、pack_sha256、rows、beliefbench.baselines、calibration),两次运行字节一致;--write重写docs/TECHNICAL-REPORT.md的生成块,--check漂移时 rc 1。tests/test_technical_report.py在 pytest 内跑同一个 check,所以uv run pytest就能抓住手改数字。同时修掉 Reviewer 1 在旧 head
136e5500上的三条:docs/TECHNICAL-REPORT.md:6、:95与脚本 docstring 里的tests/test_report.py改为tests/test_technical_report.py(gate 实际文件名)。main([])的无参路径原本在try/except ReportError之外,pack 缺失时 traceback + rc 1;现在与--write/--check同一处理器,命名错误 + rc 2,并加回归测试test_bad_input_on_the_default_path_is_a_named_error。"brier": 0.1175,改为读生成块、把 brier +0.01 后重渲染,重生成数字不会误伤。Linked issues
Fixes #63
Acceptance criteria
as_of、pack_sha256、rows、beliefbench.baselines{arm:{score,n}}、calibration{brier,ece}),两次cmp一致。--write重写生成块;--check漂移 rc 1 且提示--write命令;坏输入 rc 2 且无 traceback(三个入口都盖到,含新增无参回归测试)。docs/TECHNICAL-REPORT.md生成块由标记包住,tests/test_technical_report.py在 suite 内跑 check(6 tests)。docs/EVAL.md指向报告与--check命令;README quickstart 补报告链接(本 PR 的 README 行)。n=6 brier=0.1175 ece=0.333333。Deviations
tests/test_report.py已被 review-report 测试占用,gate 放tests/test_technical_report.py(文件 docstring 已写明原因);B1 修复后所有引用都指向真实文件名。#61的 examples 在 base 分支,先合 feat(examples): reproducible end-to-end case studies (#61) #334。Verification
Ran:
PYTHONPATH=core .venv/bin/python -m pytest tests/test_technical_report.py -o addopts="" -q→6 passed in 11.27sRan: 无参两次运行 +
cmp(在旧 head 的评审里已由 Reviewer 1 自跑;本 head 在 CI 上跑同一 check)。Red first: 把
docs/TECHNICAL-REPORT.md生成块里一个数字手改后,--checkrc 1(测试test_a_hand_edited_number_fails_the_check覆盖);修复 B2 前main([])在缺 pack 时 traceback rc 1,修复后 rc 2 且 stderr 只含error: could not read the pack …。.venv/bin/ruff check scripts/reproduce_report.py tests/test_technical_report.py→All checks passed!Not run:全量uv run pytest(本机全量有 38 个环境相关失败:encryption/packaging/secret-canary 依赖不可写的 HOME 与 keyring;与本 PR 文件无关,CI 的 tests-ok 覆盖本 head);uv build(本 PR 不改打包面,CI build 覆盖)。Review notes
make merge-pr PR=<n>。