STEP 1926 → 1958 · 13-STEP arc · 2026-09-10〜11 · rei-aios-20 + 9b

孤立度計 orphan gauge — device v0.1 → v0.5 + dashboard v0.6-alpha → v0.6-beta

更新の有無と参照の有無、二つの軸を独立に取って交差させ、単一軸では出てこない状態を拾う工具。とりわけ「更新なし・参照あり」(RUIN)は、静かに止まったのに読まれ続けている成果物の印です。Arc 全体 (12 STEP): v0.1 land → 50-sample calibration → v0.2 archive detection → v0.3-lite pilot detector → cleanup → site → v0.4 latest.json → top pill → v0.5 stability fix (determinism + cap 20k→50k)v0.5 recalibration (actionable rate 0/50 = 大転換 finding)v0.6-alpha audit dashboard → arc-wide site update (this STEP)。装置 role は cleanup guidance から measurement/audit に shift 済み。

出所: STEP 1909 の chat-Claude 会話成果物 (simulator) の 2 軸 4 値 shape を、real project artifact に適用する device 実装 (私 = Claude Code rei-aios-20)。
Route: chat-Claude 判定 3 択 option 2 (別装置、CM-0 との swap 可能性は open のまま維持)。
Not authored by: 藤本さん (指示のみ) / chat-Claude (simulator + design origin) / cowork-Claude (無関与)。

実測 (2026-09-10、target = data/ src/ scripts/ test/、閾値 30 日、min refs 1)

LIVE
67
2.5%
更新あり・参照あり
ORPHAN
368
13.7%
更新あり・参照なし
RUIN ⚠
107
4.0%
更新なし・参照あり(疑わしい印)
DEAD
2,133
79.8%
更新なし・参照なし

計 in-scope 2,675 (scoped-out 325 = human-read heuristic filter)。scan 10.4 秒 / 3,000 artifacts scanned。

RUIN top 5 (「静かに止まったのに読まれ続けている」)

pathrefsage (days)
data/invention/invention-2026-05-21.json3111.2
data/invention/invention-2026-05-02.json2130.4
data/invention/approvals/approved-2026-05-05.json2126.6
data/invention/invention-2026-05-08.json2124.4
data/invention/invention-2026-05-09.json2123.4

生の JSON は sample-scan.json (2026-09-10 実測、全 verdict + honestScope 含む)。

Timeline v0.1 → v0.2 → v0.3-lite → cleanup (2026-09-10〜11)

STEP 1947 — 50-sample calibration review (2026-09-11)

v0.1 RUIN 1,136 から stratified sample 50 review、verdict:

VerdictCountRate意味
A ACTIONABLE_CLEAN24%実 cleanup 候補
B TOLERATE_ARCHIVE4896%historical/audit/mirror/snapshot
C FALSE_POSITIVE00%device 誤 flag
D UNKNOWN00%判定不能

Precision-as-suspicious-flag: 100% (A+B)。Actionable rate: 4% のみ = 装置の 実 utility は 装置精度と別軸。主 finding: Rei プロジェクト の append-only 学問体系 慣習 (approval trail / paper artifact / historical snapshot / external mirror) と 装置素朴 semantics の semantic mismatch。

STEP 1948 — v0.2 archive detection refinement (2026-09-11)

STEP 1947 evidence に基づき consumption-mode.ts に 8 archive pattern 追加 + defaultConfig.excludeModesarchive 追加。

LIVE
132
0.9%
更新あり・参照あり
ORPHAN
811
5.4%
更新あり・参照なし
RUIN ⚠
334
2.2%
更新なし・参照あり(-70.6% vs v0.1)
DEAD
13,605
91.4%
更新なし・参照なし

計 in-scope 14,882 (scoped-out 5,118)。v0.1 (18,824 / 1,176) から scoped-out +3,942 (archive-classified 増加分)、RUIN 1,136 → 334 (-802、-70.6%)。

v0.2 追加 patterns:

Actionable rate v0.2 推定: lean4-mathlib 297 × 20% + non-lean4-mathlib 37 × 2% ≈ 60/334 ≈ 18% (v0.1 の 4% から 5x 改善)。ただし予測「40-70%」より下振れ、失敗理由は notepad で honest 記録。

STEP 1949 — v0.3-lite lean4-mathlib pilot detector (2026-09-11)

lean4-mathlib 内 pilot 検出用 grep-based tool、509 .lean files 中 310 が isolated (60.9%)Meta finding: Rei の Lean methodology は per-STEP proof exhibit style (各 Step<N>*.lean は STEP 出力 record として standalone、library building block ではない)、「isolated = actionable cleanup」は Rei-context で不成立。detector は screening review tool として value あり、auto-cleanup source としては 概念適用不能。

STEP 1947 corrigendum: sample row 11 SnstRealComparison.lean の A verdict は over-eager without file-content-check、実際は STEP 1228e substantive pilot with load-bearing evidence → 保留判定。

STEP 1950 — A verdict 1 件 実 cleanup (2026-09-11)

STEP 1947 sample 2 A verdicts のうち 1 件のみ実行: data/research-radar/karpathy-llm-wiki-watch.jsondata/research-radar/_archive/2026-09-11/git mv (destructive but reversible、not delete)。もう 1 件 (SnstRealComparison) は STEP 1949 corrigendum で 保留。

Failure mode dataset 追加 (STEP 1948〜1950)

STEP 1952 — v0.4 latest.json + judgments + CF verify (2026-09-11)

consumption-mode.tsARCHIVE_PATH_REGEXES 新設 = /^data\/[^/]+\/latest\.json$/ (single-level subdirectory の domain snapshot)。 Test 45 → 49/49 PASS。 併せて (a) SnstRealComparison KEEP IN PLACE 判定 formalize (STEP 1949 corrigendum 継続、substantive pilot preserve)、(c2) Lean import-graph parser v0.5 defer 明文化、(d) CF Pages verify: HTTP 200 + 20 STEP-refs grep hits on live site。

STEP 1953 — top page banner pill 追加 (2026-09-11)

scripts/build-daily-banner.ts に 「📉 孤立度計 device (v0.4)」 pill entry 追加、7-STEP arc summary + numbers を top page (`/`) の highlights に expose。 mirror md5 一致、slice cap 12 内。

★★ STEP 1954 — v0.5 stability fix + cap-artifact 判明 (2026-09-11)

collect.tsreaddirSync(dir).sort() 追加 + defaultConfigmaxFiles: 20000 → 500002 runs 完全一致 (RUIN set diff = 0 paths)、determinism 達成。

★★ Cap-based measurement artifact 判明: v0.4 reported RUIN=389 は 大幅 cap-truncated。 v0.5 full scan で 真値 RUIN = 1,555 と判明 (+12,885 previously-unseen artifacts、+1,166 landed in RUIN)。 v0.1 → v0.4 -70.6% RUIN narrative は 部分 cap-artifact、 archive-detection の 実効性 (scoped-out 1,176 → 10,196 = 8.6x) は 実存 だが raw count 比較は overclaim。

LIVE
682
3.0%
更新あり・参照あり
ORPHAN
1,278
5.6%
更新あり・参照なし
RUIN ⚠
1,555
6.9%
v0.5 fair baseline (cap-artifact 排除後)
DEAD
19,174
84.5%
更新なし・参照なし

計 in-scope 22,689 (scoped-out 10,196)。v0.5 = 装置 fair baseline (deterministic + full-tree scan)。

★★★ STEP 1955 — v0.5 actionable-rate 大転換 finding (2026-09-11)

v0.5 deterministic RUIN 1,555 から stratified sample n=50 review → A=0/50 (0%) + B=50/50 (100%) + C=0 + D=0 = actionable rate 0% (95% CI 0-7% by rule of 3)。

Verdict resolution: 38 filename heuristics = B (per-STEP exhibits + topic proofs + MathlibPrep + historical data)、12 D UNKNOWN → batch grep で 11 files → B、1 file BakerSeparationAttempt.lean hits=0 → file-content-check で substantive pilot 判明 (STEP 1275 sub-2、Eric Merle Lean 4 conditional deps、load-bearing Rei arc) → B。 STEP 1949 SnstRealComparison pattern の再発、file-content-check discipline (pp) 無条件必須 が再確認。

Device 大転換 finding: precision (100%) と cleanup value (~0%) は独立次元、Rei per-STEP methodology + append-only 学問体系 で 残 RUIN は 実質全て intentional preservation、low-hanging fruit (karpathy STEP 1950) は既 picked。Device role shift: cleanup guidance (0%) → measurement / audit (100% precise) / methodology characterization / discipline enforcement (2 retroactive corrigendum trigger)。

STEP 1956 — v0.6-alpha audit dashboard (2026-09-11)

Device role shift の 実装: append-only timeline.json + orphan-gauge-append-history.ts script + 📊 audit dashboard page (inline SVG line chart、cap-artifact ⚠ marker、entries table)。 Time series monitoring tool として device を 位置づけ直し、cleanup guidance value 増加 は 主張しない (STEP 1955 finding 遵守)。

STEP 1958 — v0.6-beta = schema v0.2 + filter toggle + CI hook defer (2026-09-11)

timeline.json schema v0.1 → v0.2: 追加 optional per-entry fields = correctedBy: <runId> (superseded → dashboard 側で faded/strikethrough) + deprecated: bool (dashboard hides by default、opt-in toggle で表示可)。 v0.1 entries 互換 (additive only)。 Append script: --supersedes <runId> + --deprecate <runId> flags 追加、 past entry の 値 (counts 等) は 変更しない (append-only immutability preserved)、 annotation metadata のみ 追加。 Smoke test: step-1954-run2 を step-1958-v06-beta-smoke で supersedes、 annotation 正常書込。 Dashboard v0.6-beta: filter bar 追加 (「cap-artifact 除外 = v0.5+ のみ」 + 「deprecated 表示」 checkbox、 localStorage 永続化)、 CSS + JS で superseded/deprecated 表示 marker、 chart + table 別スコープ (chart は filtered、 table は 全 entries with 表示 class)。 CI hook は 「実 use case 発生時」 の user directive 尊重で **defer** (現状 → v0.7 candidate、 起票 trigger = 「藤本さん daily check」等の実 use case)、 npm alias や scheduled task も 同 dependency。

Failure mode dataset (STEP 1948-1956 追加)

使い方

npm i  # 一度だけ
npx tsx scripts/orphan-gauge.ts                       # default (30 日閾値、v0.2 archive 除外)
npx tsx scripts/orphan-gauge.ts --days 7              # 鮮度しきい値
npx tsx scripts/orphan-gauge.ts --min-refs 2          # 参照ありと見なす下限
npx tsx scripts/orphan-gauge.ts --targets data,src    # 対象ディレクトリ
npx tsx scripts/orphan-gauge.ts --include-human       # 人が読む成果物も測定対象に
npx tsx scripts/orphan-gauge.ts --json out.json       # JSON レポートを書き出す

# v0.3-lite (STEP 1949): lean4-mathlib pilot detector (screening review 用)
npx tsx scripts/lean4-mathlib-pilot-detector.ts --tsv pilots.tsv --json pilots.json

test

npm run test:step192645/45 PASS (v0.1 29 + v0.2 archive detection 15 + T26b defaultConfig)。v0.2 test cases: 4 dir-prefix + 8 filename patterns positive + 3 negative (must-not-be-archive) tests。

装置構造

module役割
src/aios/orphan-gauge/types.tsQuadrant / ConsumptionMode / Artifact / GaugeConfig / GaugeReport 型定義
src/aios/orphan-gauge/consumption-mode.tspath pattern による「人が読む/機械が読む/履歴」heuristic 分類 (較正未着手)
src/aios/orphan-gauge/reference-graph.tsexplicit-path literal 出現による参照抽出 (lower bound)
src/aios/orphan-gauge/classify.ts(updated?, referenced?) → Quadrant 交差分類 + report 集約
src/aios/orphan-gauge/collect.tsfile tree walk (hard-exclude: node_modules / .git / dist 等)
src/aios/orphan-gauge/index.tspublic API: gauge(cfg) + defaultConfig(root)

Honest scope

主張する

主張しない

Failure mode (未来 Claude 用 dataset)

Related