@chrono-meta/fh-gate 3.11.0 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1576,6 +1576,78 @@ else
1576
1576
  fail=1
1577
1577
  fi
1578
1578
 
1579
+ # The codex-doctor root gate. Its subject is a SHIPPED npm binary (package.json files[]), and the
1580
+ # lane exists because that binary refused every non-npm consumer: it gated on a package.json it
1581
+ # never reads, so a consumer harness holding every surface the doctor actually audits — AGENTS.md,
1582
+ # plugins/, SKILL.md — got exit 11 instead of a report. The lanes pin both directions at once:
1583
+ # the non-npm root now audits, and an empty plugins/ still fails closed rather than printing a
1584
+ # confident "Skills scanned: 0". Same pairing rule as above — the lane exists only because the
1585
+ # binary does, so its absence beside a present subject is a FAIL, not a skip.
1586
+ if [ ! -f bin/fh-codex-doctor.js ]; then
1587
+ _absent_subject_verdict "test_codex_doctor_root_lanes.sh" "bin/fh-codex-doctor.js" || fail=1
1588
+ elif [ -f scripts/test_codex_doctor_root_lanes.sh ]; then
1589
+ if ! bash scripts/test_codex_doctor_root_lanes.sh; then
1590
+ fail=1
1591
+ fi
1592
+ else
1593
+ echo "FAIL test_codex_doctor_root_lanes.sh: fh-codex-doctor.js present but its anchor is missing"
1594
+ fail=1
1595
+ fi
1596
+
1597
+ # Claim propagation — the scanner that catches a RETRACTED NUMBER surviving in another file after the
1598
+ # canon withdrew it. halffix_propagation_scan.sh cannot: its token rule needs a letter-start ≥10-char
1599
+ # identifier or a path, so «2.7 %» / «다섯 팔» are structurally invisible to it (measured 2026-09-17:
1600
+ # a withdrawn five-arm figure sat in CLAUDE.md twice after the canon retracted it, and the scanner's
1601
+ # output did not list CLAUDE.md at all). Numeric-retraction only, advisory (rc=2 = LIVE), never a
1602
+ # commit gate — prose-claim retractions are OUT OF SCOPE by measurement (0/8 precision). Same pairing
1603
+ # rule: the lane exists only because the scanner does, so its absence beside a present subject is a
1604
+ # FAIL, not a skip.
1605
+ if [ ! -f scripts/claim_propagation_scan.py ]; then
1606
+ _absent_subject_verdict "test_claim_propagation_lanes.sh" "scripts/claim_propagation_scan.py" || fail=1
1607
+ elif [ -f scripts/test_claim_propagation_lanes.sh ]; then
1608
+ if ! bash scripts/test_claim_propagation_lanes.sh; then
1609
+ fail=1
1610
+ fi
1611
+ else
1612
+ echo "FAIL test_claim_propagation_lanes.sh: claim_propagation_scan.py present but its anchor is missing"
1613
+ fail=1
1614
+ fi
1615
+
1616
+ # Paper-integrity lanes — the three checks the governor ran BY HAND with ad-hoc python on 2026-09-17
1617
+ # (paper 2; the sister paper had just been rejected by arXiv for 11/17 reference mismatches): every
1618
+ # cited key defined and every defined key cited (+ NEAR-MISS pairing for [MF24]↔[MF22]-style
1619
+ # renumbering), no number dropped or invented by a shrink pass, every §N / Sec. N / 섹션 N / 부록 N
1620
+ # cross-reference resolving to a heading. One suite for three subjects; the pairing key is
1621
+ # citation_key_check.py and the suite itself asserts numeric_token_diff.py and section_ref_check.py
1622
+ # exist (L1, FAIL not skip). Same pairing rule as above: the lane exists only because the scanner
1623
+ # does, so its absence beside a present subject is a FAIL, not a skip.
1624
+ if [ ! -f scripts/citation_key_check.py ]; then
1625
+ _absent_subject_verdict "test_paper_integrity_lanes.sh" "scripts/citation_key_check.py" || fail=1
1626
+ elif [ -f scripts/test_paper_integrity_lanes.sh ]; then
1627
+ if ! bash scripts/test_paper_integrity_lanes.sh; then
1628
+ fail=1
1629
+ fi
1630
+ else
1631
+ echo "FAIL test_paper_integrity_lanes.sh: citation_key_check.py present but its anchor is missing"
1632
+ fail=1
1633
+ fi
1634
+
1635
+ # session_checklist.py — the «request checklist close report» (2026-09-18): every operator utterance of a
1636
+ # session (raw transcript + the compaction summaries, two channels) gets a row with an achievement status,
1637
+ # reason and carry-over proposal, so a human can review the session like a TC report. `check` is FORM only
1638
+ # (closed status enum · non-empty reason/proposal · evidence on DONE) — it never judges whether a status is
1639
+ # true. Same pairing rule as above: the lane exists only because the subject does.
1640
+ if [ ! -f scripts/session_checklist.py ]; then
1641
+ _absent_subject_verdict "test_session_checklist_lanes.sh" "scripts/session_checklist.py" || fail=1
1642
+ elif [ -f scripts/test_session_checklist_lanes.sh ]; then
1643
+ if ! bash scripts/test_session_checklist_lanes.sh; then
1644
+ fail=1
1645
+ fi
1646
+ else
1647
+ echo "FAIL test_session_checklist_lanes.sh: session_checklist.py present but its anchor is missing"
1648
+ fail=1
1649
+ fi
1650
+
1579
1651
  # The infra-delta half of the same subject. Separate suite, same pairing rule: it exists only because
1580
1652
  # fh_node_check.sh does, so its absence beside a present subject is a FAIL, not a skip.
1581
1653
  if [ ! -f scripts/fh_node_check.sh ]; then