Skip to content

v0.3.0 release candidate: review fixes R1–R4, V6 split, re-run, release metadata - #3

Merged
Ju-eun01 merged 7 commits into
mainfrom
v0_3_0-rc
Oct 23, 2026
Merged

Ju-eun01 merged 7 commits into
mainfrom
v0_3_0-rc

Conversation

@Ju-eun01

@Ju-eun01 Ju-eun01 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Release candidate for v0.3.0, from main at 281de19. It addresses the P2 items (R1–R4) and P3 documentation items of the pre-release review of 2026-10-22, adds the release metadata, and fixes the P2 defect found in the pre-merge check of 2026-10-23. Not to be merged by this session; the tag v0.3.0 and the GitHub Release (Zenodo DOI) are left to the maintainer.

Commits (in order, each pushed separately)

Commit Content
A 471fc47 docs/CHECKS_v0_3_0_AMENDMENT.md: design of R1–R4 and V6, new quantities, re-run design, predicted changes against v0.2. Written before any code. One line in section 10 of the plan.
B a290c75 Code, tests, thresholds of the new quantities (two unmodified runs, rule of the plan, section 4), checker regression tests, re-run runner copy
C ad1857d Re-run outputs out/mutation_v0_3_0_rerun.{json,csv} (designs ii and iii, 53 runs)
D e946733 Results (amendment, section 10); two dated corrections in docs/MUTATION_v0_2.md
E ee16305 Version 0.3.0, CITATION.cff, .zenodo.json, READMEs, out/pytest_output_v0_3_0.txt
F1 361143c Pre-merge check: each check keeps its own deep copy of the request (P2), ge_target validation, 7 regression tests, P3 wording, amendment section 11 with the re-run prediction registered before the run
F2 8c1d2b7 Re-run of designs (ii) and (iii) at 361143c, compared with commit C; raw outputs out/mutation_v0_3_0_rerun_F.{json,csv}; correction of 10.4 (section 11.7)

What changed

  • R1, verdict. The check declares its coverage: expected values per setting, income type and requested shock, recorded in res['v0_3']['at'] and ['status']. checks.v03_verdict then decides each V test:

    • a non-finite, negative or too large value fails the test, whatever else is missing;
    • a missing value without a failure is "incomplete" (pytest skip), never a pass;
    • a provider that supports none of a test's quantities is skipped with the reason.
  • R2, one field convention. Each V quantity uses only the fields of its own equation, and interface.py lists every field the checks read.

  • R3, requested shocks. exog_G, exog_r and exog_rshock compare the solved exogenous paths with the request, and the rate rule uses the requested rshock.

  • R4, GE target of T3. The Werning provider reports ge_target (from the same variable that is passed to the solve) and J_C. V1 judges the residual of the reported target. A ge_target that is not a string is now outside the convention: V1 does not apply, and the reason is recorded.

  • Pre-merge P2, request objects. check_ikc, check_werning and check_tank_limit used to read again the shocks, dr and chis they had passed to the provider. A provider that dropped an experiment or scaled a path in place therefore changed what it was compared with. Now:

    • each check keeps a deep copy of the request;
    • it declares the expected coverage from that copy before the call;
    • every provider call gets a fresh copy.

    T1, T4, check_differencing and suite.run_t6 were checked; none re-reads such objects.

  • V6 is split into V6a (hetinput) and V6b (hetoutput), both strict xfail, SSJ code only.

Conditions kept

  • 276 numbers bit-identical:
    • commit C re-run: in both baselines, all 276 v0.1 summary numbers equal v0.1 run B0;
    • F2 re-run: B1 equals v0.1 B0 in all 276; in B0 the known two-valued number took its v0.1-B1 value (relative 1.4e-11), and the other 275 equal v0.1 B0.
  • Thresholds: the 88 existing ones are unchanged, and the 7 added in B are unchanged.
  • Historical material unchanged: CHECKS_PLAN_v0_3.md (one line in section 10 only), MUTATION_PLAN_v0_1.md, MUTATION_v0_1.md, scripts/mutation_v0_1.py, scripts/mutation_v0_2.py, out/mutation_v0_1.*, out/mutation_v0_2.*. Exceptions: the two dated corrections in docs/MUTATION_v0_2.md. Commit C's out/mutation_v0_3_0_rerun.* are not overwritten.
  • No model computation changed: core.py is unchanged. In models.py, only ssj_werning_provider changed: new fields, an optional argument whose default is the previous behaviour, and the docstring.

Results

  • pytest: 114 passed, 4 xfailed (F1, F2, V6a, V6b): 77 tests in groups T1–T6, D and V, and 37 checker regression tests.
  • Re-run at B (commit C):
    • (ii): no cell differs from v0.2; 19 of 20 caught, N20 missed;
    • (iii): only C03/V changes, from 2/33 to 0/37; this holds by construction of R4. 25 of 25 caught.
  • Re-run at the fix (F2), against commit C:
    • every test outcome and group cell is identical in all 53 runs, and the 7 new tests pass in every run;
    • 182 summarised numbers differ at rounding level. 158 of them are exempted by the registered prediction (goods-market path residuals, the two-valued number). 24 are not: T5 walras_max values in 9 mutant runs, at most 3.4e-11 relative;
    • by the registered rule, the raw outputs are therefore committed;
    • the same kind of variation was already present between v0.2 and commit C, a point that 10.4 had missed (corrected in section 11.7).
  • Re-anchored patches: M04 and C03, via the runner copy scripts/mutation_v0_3_0.py.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SaLSoFg2N1x4mzFYiwrgVT

Pre-registers, before any code and before any re-run, the review-driven
changes to the v0.3 checks (R1 verdict with declared coverage, R2 one
field convention, R3 exogenous paths against the request, R4 GE target
of T3 in the provider convention, V6 split), the new quantities, the
re-run design (ii, iii) and the cells expected to differ from v0.2.
Plan section 10 gets one line pointing to the new document.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SaLSoFg2N1x4mzFYiwrgVT
- R1: coverage declared by the check (placeholders per setting, income
  type and requested shock; res['v0_3']['at'], ['status']), and
  checks.v03_verdict: a non-finite, negative or too large value fails
  whatever else is missing; a missing value without failure is
  "incomplete" (pytest skip), never a pass.
- R2: each V quantity computed from the fields of its own equation
  (T5 paths no longer raise KeyError without dB/dC); T3 beta read from
  ss_detail; interface.py lists every field the checks read.
- R3: exog_G, exog_r, exog_rshock compare the solved exogenous paths
  with the caller's request; the rate rule uses the requested rshock.
- R4: the Werning provider reports ge_target (optional argument,
  default asset_mkt, the same variable as the solve) and J_C; V1 judges
  the residual of the reported target, the other market is a diagnostic.
- V6 split into V6a (hetinput) and V6b (hetoutput), strict xfail.
- New thresholds by the plan's rule from two unmodified runs of the
  candidate (out/thresholds_v0_3_0_run{1,2}.json); the 88 existing ones
  are unchanged. Checker regression tests with fake providers in
  tests/test_v0_3_0_checker.py. Re-run runner scripts/mutation_v0_3_0.py
  (copy of the v0.2 runner with M04 and C03 re-anchored).
- models.py: only ssj_werning_provider (new fields, optional argument,
  docstring); no computation changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SaLSoFg2N1x4mzFYiwrgVT
scripts/mutation_v0_3_0.py --v03-ref a290c75 --design ii iii --jobs 4
--out out/mutation_v0_3_0_rerun (runner committed in B, clean worktree;
2026-10-22 14:52:08 UTC, 53 runs, 1071 s). M04 and C03 re-anchored as
registered (amendment, section 3.6). Every run's outcomes and check
summaries in the JSON; one row per design x mutant x group in the CSV.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SaLSoFg2N1x4mzFYiwrgVT
…t D)

Amendment section 10: re-run of designs (ii) and (iii) on the suite as
revised after review. (ii): no cell differs from v0.2 (19/20, N20
missed, no control alarm); (iii): only C03/V changes (2/33 -> 0/37,
no alarm, by construction of R4), 25/25. Baselines bit-identical to
each other and, in all 276 v0.1 numbers, to v0.1 run B0. Predictions
P1-P3 and P5-P8 held; P4 failed at rounding level (T5 goods-market path
residuals, up to 2.8e-15 in the refined setting; no outcome affected).
New quantities caught nothing on these samples (R1-R3 evidence is the
checker regression tests).

docs/MUTATION_v0_2.md: two dated corrections (margins recomputed from
the data: per-mutant largest factor >= 9.7e3 in (ii), smallest per test
526; "any goods-market solve" narrowed to the observed setting). No
data, code, threshold or result changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SaLSoFg2N1x4mzFYiwrgVT
- Version 0.3.0 in pyproject.toml, CITATION.cff, .zenodo.json and
  hank_limits.__version__; date-released 2026-10-24.
- CITATION.cff keeps the concept DOI and drops the v0.2.1 version DOI
  (the v0.3.0 version DOI is added after Zenodo archives the release);
  abstract and .zenodo.json description name the V checks, F3
  (shade-econ/sequence-jacobian#41) and the mutation tests. AI-use
  wording unchanged.
- READMEs: title v0.3.0, "unreleased"/"this branch" removed, citation
  by concept DOI; changelog "v0.2.1 -> v0.3.0" with V1-V6, optional
  fields, GE target convention, verdict states, the review fixes and
  the re-run; V3 row with the reference per model; bit-identity limited
  to the report baselines; "41 passed, 2 xfailed" and section 11
  marked as v0.2.1 with a link to out/pytest_output_v0_3_0.txt; Korean
  README run directory corrected to hank-limits.
- out/pytest_output_v0_3_0.txt: 107 passed, 4 xfailed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SaLSoFg2N1x4mzFYiwrgVT
…arget validation

- checks._request (deep copy): check_ikc copies shocks_fn(T), declares the
  expected coverage from that copy before the provider is called, gives
  the provider a separate copy, and computes residuals, exog_* and the
  rate rule from its own copy. check_werning keeps its own dr and gives
  each of the two calls per b a fresh copy; check_tank_limit the same
  for dr and chis. T1, T4, check_differencing and suite.run_t6 re-read
  no object a provider receives (amendment, section 11.2).
- ge_target that is not a string is outside the convention: V1 not
  applicable, reason recorded (no TypeError); interface.py wording.
- Seven regression tests (tests/test_v0_3_0_checker.py): experiment
  dropped by the provider -> incomplete; paths doubled in place -> exog_*
  and rate rule fail; T3 dr doubled in place -> V1 direct fails; T2 dr
  and chis changed; the caller's objects unchanged; non-string
  ge_target. All seven failed at ee16305. Full pytest: 114 passed,
  4 xfailed.
- Amendment: P3 wording (section 5 b_max of the T5 goods-market path is
  3.115563e-13 in both threshold runs; "every mutant caught by V" in
  10.7), and section 11 with the fix.
- Registered before the re-run (section 11.6): designs (ii) and (iii) at
  this commit are predicted to give the same test outcomes and group
  cells as commit C in all 53 runs, 276 v0.1 numbers equal to v0.1 B0,
  and the same summarised numbers except rounding-level T5 goods-market
  path residuals and the known two-valued v0.1 number. Comparison script
  scripts/rerun_v0_3_0_F_compare.py.
- README test counts; out/pytest_output_v0_3_0.txt regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SaLSoFg2N1x4mzFYiwrgVT
…son with commit C

Results in amendment section 11.6 (registered prediction committed with
361143c before the run):
- Test outcomes and group cells identical to commit C in all 53 runs;
  the 7 new checker tests pass in every run; (ii) 19/20, N20 missed,
  (iii) 25/25, no control alarm.
- Baselines: B1 has all 276 v0.1 numbers equal to v0.1 B0; in B0 the
  known two-valued number took its v0.1-B1 value (275 equal B0).
  The prediction failed in that one number.
- 182 summarised numbers in 31 runs differ at rounding level: 138 T5
  goods-market path residuals and 20 two-valued numbers (exempted), and
  24 T5 walras_max values in 9 mutant runs (<= 3.4e-11 relative), not
  exempted. By the registered rule the raw outputs are committed as
  out/mutation_v0_3_0_rerun_F.{json,csv}; out/rerun_v0_3_0_F_compare.json
  lists every difference and the execution record.
- Section 11.7 corrects 10.4: the v0.1 summaries of mutant runs also
  differ between v0.2 and commit C (34 numbers in 21 runs: 16 two-valued,
  18 walras_max, <= 3.4e-11); 10.4 had checked only the baselines there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SaLSoFg2N1x4mzFYiwrgVT
@Ju-eun01
Ju-eun01 merged commit 35ea89c into main Oct 23, 2026
5 checks passed
@Ju-eun01
Ju-eun01 deleted the v0_3_0-rc branch October 23, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants