Skip to content

Releases

v0.41.0 — 원장이 사고로 태어나는 통로를 막는다

Choose a tag to compare

@bhyi4 bhyi4 released this 28 Aug 00:08
11f1d76

⚠️ BREAKING — CLI 한정

없는 원장에 첫 봉인을 하려면 --new-ledger 가 필요하다. 이어 쓰기·읽기·파이썬 API·MCP 는 그대로다.

--ledger 기본값이 상대경로라, 이름을 잘못 치거나 다른 디렉터리에서 돌리면 두 번째 원장이 조용히 생기고 일부러 만든 것과 디스크에서 구별되지 않았다. 거절 메시지는 만들었을 절대경로를 찍는다 — 실패 모드가 "어느 디렉터리인지 모름" 일 때 "그런 파일 없음" 은 도움이 안 된다.

Fixed — 원장의 신원이 파일명이었다

verify_all.py 의 covered 가 경로가 아니라 basename 집합이라, 감사 밖 원장을 등재하면 추가가 아니라 맞바꿈이 됐다. 실측: 봉인 62건짜리를 등재하니 같은 이름의 11건짜리가 사라지고 auto-included 가 85→84 로 줄었다 — 읽는 사람에게는 숫자가 올라간 것처럼 보인다. 이제 신원은 경로이고, 이름이 겹치면 두 경로를 다 부르며, scope 줄이 전체 경로를 찍는다.

Performance

봉인마다 원장 전 줄을 파싱하던 것을 끝에서부터 읽기로: 56.18 ms → 0.091 ms(5,676줄 / 4.6 MB 실측). 옛 구현과 96/96 일치.


시험 43건 신설 · pytest 523 통과. 등가성 시험엔 분별력 대조가 들어 있다 — 일부러 틀린 리더가 같은 코퍼스에서 잡히는지 먼저 증명한다.

⚠️ v0.32.0–v0.40.0 은 태그만 있고 릴리스 노트가 없다. 그 판들의 변경은 CHANGELOG.md 에 있다.

v0.31.0 — ㉘ dof-outperforms-target: the guard substrate-2 proved was missing

Choose a tag to compare

@bhyi4 bhyi4 released this 05 Aug 22:23
2cfabd1

v0.30.1 recorded that ㉘ had no mechanism against a swapped-role claim, and that the relabeled_dof case had passed on FM×CDE by substrate luck. This release closes that gap.

The law

A degrees-of-freedom control is the target's own procedure with the claimed structure destroyed. Destroying structure cannot add effect. So a truthful table satisfies effect(dof_control) ≤ effect(target).

A violation means the role labels are swapped, or the arm called a control is not one. Either way the report must not be read as a confirmed win.

  • FAIL by the same paired sign-flip the null ladder uses; a control merely leading on the mean is WARN, not a verdict.
  • A violation holds null-ladder below OK, the same priority shape the anchor rule uses — otherwise a consumer reading only the ladder would see a green light on a report whose control beats its treatment.
  • No dof_control arm ⇒ no finding at all.

Sealed judgment

claim 582f4130 · result am 45d5f3d2 · stack_verify_all ALL OK (10/10)

CASE_ACCURACY 22/22 = 1.0 against a pre-committed bar of 1.0 (chance 0.6364) on the FM×CDE holdout — FP=0, FN=0, zero constant findings. Re-scoring substrate-2, the design set, gives FN=0 there too.

The rejected alternative

A variance heuristic — the target must need the fewest components at a given retained energy — was discarded before measuring on FM×CDE, despite an enormous signal on substrate-2 (33.6 components vs 273.0 for the control). It is a category error: a target arm is a hypothesis about where the effect lives, not the variance, and 103_ labels its PCA arm data_only for that reason. It is pinned as a test so it cannot creep back.

Scope

Catches the swap only when the true target genuinely beats its control. When the two are indistinguishable the swap stays invisible — and so does the effect it would hide. Layer A's standing hole is untouched: a consistent forgery still passes.

Full Changelog: v0.30.1...v0.31.0

v0.30.1 — ㉘ substrate-2 generalization KILLed

Choose a tag to compare

@bhyi4 bhyi4 released this 05 Aug 21:48
eccd038

A docs-and-scope release with no behaviour change — but the scope it corrects is one that made the tool look stronger than it is, so it ships as a release rather than a quiet edit.

What happened

㉘'s own scope clause said all 22 judging cases came from one experiment family (FM×CDE). This release tests that on a second real substrate — 768-d DINO crop embeddings from another arc, flat spectrum, held-out 4-class accuracy — and the generalization fails.

claim subspace_claim_check_substrate2_generalization_20260806_v4 · seal 5c78e503 · result am 2ab6eab7 · stack_verify_all ALL OK (10/10)

value bar
CASE_ACCURACY 0.80 (8/10) 1.0 · chance 0.60
FP 1 0
FN 1 0

The seal declared this outcome in advance and forbade a repair round. None was taken.

The finding that matters to users

㉘ has no guard against a swapped-role claim. If a report labels its degrees-of-freedom control as the target and the real target as the control, nothing in the function detects it — the table alone does not say which arm was the treatment.

The relabeled_dof case passed the original 22/22 because the shuffled arm happened not to beat the null there. On substrate-2 it beats the random null on all 8 splits (0.4437 vs 0.4240, chance 0.3469) and null-ladder confirms the swap. That pass looked like a guard and was substrate luck — and one substrate can never show the difference.

This is now written into subspace_claim_check's own docstring and into both READMEs, because a reader of the old text would over-trust the probe.

Second fact: a column-shuffled basis is not a null on real anisotropic embeddings — shuffling destroys cross-dimension covariance but preserves the per-dimension marginals that carry the signal.

What this does not falsify

Not seal 99a1a510, the FM×CDE holdout judgment, which was explicitly scoped to one experiment family. What falls is generalization to a second substrate, which was never asserted before this run.

🦋 Catalog 70 → 71

fn-guard/guard-passed-by-substrate-luck.

Full Changelog: v0.30.0...v0.30.1

v0.30.0 — ㉘ layer B: the subspace executor

Choose a tag to compare

@bhyi4 bhyi4 released this 05 Aug 13:26
0f7b163

Layer A audits a submitted table. Layer B produces one from the arrays and hands it straight back to layer A — so an own run is judged by the same auditor a stranger's claim is. Layer B does not supersede layer A and does not widen what layer A can see.

pip install "measure-mirror[subspace]"    # adds numpy

What's new

  • measure_mirror/subspace.py — fit_basis / energy_profile / cumulative_energy / k_for_energy / build_subspace_report / overfit_smallsample.
  • Content-addressed sample ids — basis_fit_ids / effect_eval_ids are sha256 of each row's float64 bytes, so estimation-eval-overlap tests actual reuse rather than declared labels.
  • effect_fn_sha256 — the effect callback's source hash; None with a stated reason when the source cannot be read, because hashing a repr would look like provenance while attesting to nothing.
  • overfit_smallsample — the judgment layer A is structurally unable to make. A positive control runs at every n, not only the largest; any n whose control fails is reported withheld, never counted as a pass.

Sealed run

claim bd98a045 · result am c6a3e145 · stack_verify_all ALL OK (10/10)

value bar
BALANCED (primary) 0.9853 ≥ 0.90 (chance 0.50, n = 240)
NULL_FPR 0.0210 ≤ 0.10
POWER 0.9917 ≥ 0.90

The primary is balanced accuracy on purpose: an inert instrument scores a perfect NULL_FPR and an always-on one perfect power, and both land at exactly chance — the vacuous pass is unreachable by construction. NULL_FPR = 0.0210 is not evidence of beating α; the paired sign-flip on 8 seeds has an attainable size of ≈0.025 already.

🦋 Dependency advertising now carries its scope

"Zero-dep core" → "stdlib-only core", stated with the two optional modules that do have dependencies. README_KO.md carried a stronger version of the same overclaim, so the guard test now checks both files and the badge. Recurrence of catalog/self-catch/zero-dep-scope-overgeneralize.md.

Catalog 67 → 70

constant-check-passes-vacuously · coincidence-read-as-design · devset-consumed-by-repair-signal — all three from this arc, each with a ledger seal.

Scope not closed

Synthetic isotropic Gaussians only, one effect callback, one ambient dimension. Layer A's standing hole is untouched: a consistent forgery still passes.

Full Changelog: v0.29.0...v0.30.0

v0.29.0

Choose a tag to compare

@bhyi4 bhyi4 released this 05 Aug 02:14
b3b6dec

㉘ subspace_claim_check — a declaration auditor

Audits the claim "the gain lives in a few input directions" (active-subspace style). Layer A only: stdlib, no numpy, and it never sees the basis, the samples or the model — only the table the claimant submitted.

⚠️ A falsified energy_kept passes. That limit is structural and applies to all seven findings. The C1–C4 consistency laws raise the cost of a false table from "edit one number" to "forge a consistent manifold"; they do not close the hole.

Findings: no-anchor · energy-not-matched · dof-uncontrolled · null-ladder · vacuous · saturation · estimation-eval-overlap. Priority rule: a failed anchor holds null-ladder below OK, because without a reproducible anchor the ratio normalizer is undefined.

Validated in both directions — after two kills

seal set result
98e993b2 dev 🔴 KILL, FP=2
3e6bd450 dev 🔴 KILL, FP=1
99a1a510 held out 🟢 PASS 22/22

Neither repair was a threshold change — the tolerance that caused the first kill was removed as a gate entirely. Both kills are pinned as regression tests, and the scorer gained a discriminative-power gate so a constant check can never pass vacuously again.

Also

  • Finding.data: dict | None. ⚠️ Breaking for astuple/asdict: 4 elements now.
  • Fixed a latent crash — report() and the MCP formatters raised KeyError on any INFO/N/A finding, which five call sites already emitted.
  • CHANGELOG / catalog-count / docs-example sync guards for the targets no test covered.
  • wilson_ci, lookup_baseline, lookup_reproduction documented — they were in __all__ with zero docs.

Full detail in CHANGELOG.md.

v0.28.1

Choose a tag to compare

@bhyi4 bhyi4 released this 23 Jul 08:00
abe0c19

First tagged release (repo had 0 tags — external review flagged the missing version anchors).

0.28.1 — power_check now honors its alpha/target_power args (both z-values were hardcoded, so the message printed the requested power while n was always computed at 80%/α=0.05 — a text-vs-number lie). Derived via statistics.NormalDist (zero-dep). See CHANGELOG.md for full history incl. 0.28.0 (verify_chain prev_seal security fix) and 0.27.0 (64-hex seals).