@chrono-meta/fh-gate 3.11.0 → 3.13.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.
- package/.claude-plugin/marketplace.json +4 -4
- package/CLAUDE.md +8 -4
- package/bin/fh-codex-doctor.js +223 -25
- package/knowledge/shared/harness-core/claude_md_gate_details.md +8 -4
- package/knowledge/shared/harness-core/governance_engineering_definition.md +403 -7
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +99 -0
- package/package.json +268 -257
- package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/CHANGELOG.md +54 -0
- package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/citation_key_check.py +357 -0
- package/scripts/claim_propagation_scan.py +499 -0
- package/scripts/numeric_token_diff.py +389 -0
- package/scripts/outbound_pr_gate.sh +283 -0
- package/scripts/package_coverage_check.sh +10 -0
- package/scripts/section_ref_check.py +591 -0
- package/scripts/selfcheck.sh +111 -0
- package/scripts/session_checklist.py +704 -0
- package/scripts/test_claim_propagation_lanes.sh +573 -0
- package/scripts/test_codex_doctor_root_lanes.sh +384 -0
- package/scripts/test_outbound_pr_gate_lanes.sh +214 -0
- package/scripts/test_paper_integrity_lanes.sh +1473 -0
- package/scripts/test_session_checklist_lanes.sh +746 -0
- package/templates/predelete_check.sh +28 -4
package/scripts/selfcheck.sh
CHANGED
|
@@ -700,6 +700,10 @@ for _pair in \
|
|
|
700
700
|
"scripts/map_postprocess.py|scripts/test_map_postprocess_lanes.sh" \
|
|
701
701
|
`# ── 플로어 없는 채널(2026-09-14): 원격 자율 노드가 FH 자산을 바꾸면 마커가 tracks/ 와 함께 휘발한다. 실측 2/2(#675·#716). CI 가 gitignored 마커를 구조적으로 못 보므로, 그 채널에만 «마커가 커밋 기록에 실려 왔나» 를 건다 ──` \
|
|
702
702
|
"scripts/remote_marker_gate.sh|scripts/test_remote_marker_gate_lanes.sh" \
|
|
703
|
+
`# ── 발신 전 3프로브(2026-09-18): 비소유 레포에 PR 을 «열기 직전» 에 건다. 실측 — outbound 9건 중 기술 결함 지적 3건이 전부 같은 형태다: 우리 가드와 우리 테스트가 «대상의 모형» 위에서 돌았고, 메인테이너의 증거는 우리가 한 번도 안 돌린 실행이었다 ──` \
|
|
704
|
+
"scripts/outbound_pr_gate.sh|scripts/test_outbound_pr_gate_lanes.sh" \
|
|
705
|
+
`# ── 발행 «확인» 예산(2026-09-18): npm publish 는 이미 rc=0 으로 끝났고 이 스크립트는 전파만 관측한다. 둘을 한 종료코드로 접으면 성공한 발행이 빨간 잡이 되고, 그 빨강이 정확히 «손 발행» 을 훈련시킨다(v3.2.0·v3.4.0) ──` \
|
|
706
|
+
"scripts/publish_verify_poll.sh|scripts/test_publish_verify_poll_lanes.sh" \
|
|
703
707
|
".github/workflows/validate.yml|scripts/test_remote_marker_gate_lanes.sh" \
|
|
704
708
|
"templates/.git-hooks/pre-commit|scripts/test_precommit_staged_drift_lanes.sh" \
|
|
705
709
|
"templates/.git-hooks/pre-commit|scripts/test_precommit_gitlink_lanes.sh" \
|
|
@@ -1576,6 +1580,78 @@ else
|
|
|
1576
1580
|
fail=1
|
|
1577
1581
|
fi
|
|
1578
1582
|
|
|
1583
|
+
# The codex-doctor root gate. Its subject is a SHIPPED npm binary (package.json files[]), and the
|
|
1584
|
+
# lane exists because that binary refused every non-npm consumer: it gated on a package.json it
|
|
1585
|
+
# never reads, so a consumer harness holding every surface the doctor actually audits — AGENTS.md,
|
|
1586
|
+
# plugins/, SKILL.md — got exit 11 instead of a report. The lanes pin both directions at once:
|
|
1587
|
+
# the non-npm root now audits, and an empty plugins/ still fails closed rather than printing a
|
|
1588
|
+
# confident "Skills scanned: 0". Same pairing rule as above — the lane exists only because the
|
|
1589
|
+
# binary does, so its absence beside a present subject is a FAIL, not a skip.
|
|
1590
|
+
if [ ! -f bin/fh-codex-doctor.js ]; then
|
|
1591
|
+
_absent_subject_verdict "test_codex_doctor_root_lanes.sh" "bin/fh-codex-doctor.js" || fail=1
|
|
1592
|
+
elif [ -f scripts/test_codex_doctor_root_lanes.sh ]; then
|
|
1593
|
+
if ! bash scripts/test_codex_doctor_root_lanes.sh; then
|
|
1594
|
+
fail=1
|
|
1595
|
+
fi
|
|
1596
|
+
else
|
|
1597
|
+
echo "FAIL test_codex_doctor_root_lanes.sh: fh-codex-doctor.js present but its anchor is missing"
|
|
1598
|
+
fail=1
|
|
1599
|
+
fi
|
|
1600
|
+
|
|
1601
|
+
# Claim propagation — the scanner that catches a RETRACTED NUMBER surviving in another file after the
|
|
1602
|
+
# canon withdrew it. halffix_propagation_scan.sh cannot: its token rule needs a letter-start ≥10-char
|
|
1603
|
+
# identifier or a path, so «2.7 %» / «다섯 팔» are structurally invisible to it (measured 2026-09-17:
|
|
1604
|
+
# a withdrawn five-arm figure sat in CLAUDE.md twice after the canon retracted it, and the scanner's
|
|
1605
|
+
# output did not list CLAUDE.md at all). Numeric-retraction only, advisory (rc=2 = LIVE), never a
|
|
1606
|
+
# commit gate — prose-claim retractions are OUT OF SCOPE by measurement (0/8 precision). Same pairing
|
|
1607
|
+
# rule: the lane exists only because the scanner does, so its absence beside a present subject is a
|
|
1608
|
+
# FAIL, not a skip.
|
|
1609
|
+
if [ ! -f scripts/claim_propagation_scan.py ]; then
|
|
1610
|
+
_absent_subject_verdict "test_claim_propagation_lanes.sh" "scripts/claim_propagation_scan.py" || fail=1
|
|
1611
|
+
elif [ -f scripts/test_claim_propagation_lanes.sh ]; then
|
|
1612
|
+
if ! bash scripts/test_claim_propagation_lanes.sh; then
|
|
1613
|
+
fail=1
|
|
1614
|
+
fi
|
|
1615
|
+
else
|
|
1616
|
+
echo "FAIL test_claim_propagation_lanes.sh: claim_propagation_scan.py present but its anchor is missing"
|
|
1617
|
+
fail=1
|
|
1618
|
+
fi
|
|
1619
|
+
|
|
1620
|
+
# Paper-integrity lanes — the three checks the governor ran BY HAND with ad-hoc python on 2026-09-17
|
|
1621
|
+
# (paper 2; the sister paper had just been rejected by arXiv for 11/17 reference mismatches): every
|
|
1622
|
+
# cited key defined and every defined key cited (+ NEAR-MISS pairing for [MF24]↔[MF22]-style
|
|
1623
|
+
# renumbering), no number dropped or invented by a shrink pass, every §N / Sec. N / 섹션 N / 부록 N
|
|
1624
|
+
# cross-reference resolving to a heading. One suite for three subjects; the pairing key is
|
|
1625
|
+
# citation_key_check.py and the suite itself asserts numeric_token_diff.py and section_ref_check.py
|
|
1626
|
+
# exist (L1, FAIL not skip). Same pairing rule as above: the lane exists only because the scanner
|
|
1627
|
+
# does, so its absence beside a present subject is a FAIL, not a skip.
|
|
1628
|
+
if [ ! -f scripts/citation_key_check.py ]; then
|
|
1629
|
+
_absent_subject_verdict "test_paper_integrity_lanes.sh" "scripts/citation_key_check.py" || fail=1
|
|
1630
|
+
elif [ -f scripts/test_paper_integrity_lanes.sh ]; then
|
|
1631
|
+
if ! bash scripts/test_paper_integrity_lanes.sh; then
|
|
1632
|
+
fail=1
|
|
1633
|
+
fi
|
|
1634
|
+
else
|
|
1635
|
+
echo "FAIL test_paper_integrity_lanes.sh: citation_key_check.py present but its anchor is missing"
|
|
1636
|
+
fail=1
|
|
1637
|
+
fi
|
|
1638
|
+
|
|
1639
|
+
# session_checklist.py — the «request checklist close report» (2026-09-18): every operator utterance of a
|
|
1640
|
+
# session (raw transcript + the compaction summaries, two channels) gets a row with an achievement status,
|
|
1641
|
+
# reason and carry-over proposal, so a human can review the session like a TC report. `check` is FORM only
|
|
1642
|
+
# (closed status enum · non-empty reason/proposal · evidence on DONE) — it never judges whether a status is
|
|
1643
|
+
# true. Same pairing rule as above: the lane exists only because the subject does.
|
|
1644
|
+
if [ ! -f scripts/session_checklist.py ]; then
|
|
1645
|
+
_absent_subject_verdict "test_session_checklist_lanes.sh" "scripts/session_checklist.py" || fail=1
|
|
1646
|
+
elif [ -f scripts/test_session_checklist_lanes.sh ]; then
|
|
1647
|
+
if ! bash scripts/test_session_checklist_lanes.sh; then
|
|
1648
|
+
fail=1
|
|
1649
|
+
fi
|
|
1650
|
+
else
|
|
1651
|
+
echo "FAIL test_session_checklist_lanes.sh: session_checklist.py present but its anchor is missing"
|
|
1652
|
+
fail=1
|
|
1653
|
+
fi
|
|
1654
|
+
|
|
1579
1655
|
# The infra-delta half of the same subject. Separate suite, same pairing rule: it exists only because
|
|
1580
1656
|
# fh_node_check.sh does, so its absence beside a present subject is a FAIL, not a skip.
|
|
1581
1657
|
if [ ! -f scripts/fh_node_check.sh ]; then
|
|
@@ -1942,6 +2018,41 @@ elif _ships_per_files "scripts/test_lane_runner_lanes.sh"; then
|
|
|
1942
2018
|
fail=1
|
|
1943
2019
|
fi
|
|
1944
2020
|
|
|
2021
|
+
# test_outbound_pr_gate_lanes.sh — 발신 전 3프로브의 앵커. 출하물이므로 파일이 있으면 무조건 돈다.
|
|
2022
|
+
# 🟥 배선을 같은 변경에서 한다: 실측 — 비소유 레포 outbound 9건 중 기술 결함 지적 3건이 전부 같은
|
|
2023
|
+
# 형태(우리 가드·테스트가 «대상의 모형» 위에서 돌았고 메인테이너의 증거는 우리가 한 번도 안 돌린
|
|
2024
|
+
# 실행)였고, 규칙은 CLAUDE.md 에 이미 있었으나 배선이 없었다. 산문으로 둔 채 올리면 그 1/15 를 반복한다.
|
|
2025
|
+
if [ -f scripts/test_outbound_pr_gate_lanes.sh ]; then
|
|
2026
|
+
if _out=$(bash scripts/test_outbound_pr_gate_lanes.sh 2>&1); then
|
|
2027
|
+
echo "PASS test_outbound_pr_gate_lanes.sh (trigger scoping · standpoint rung · enum class-closing · revert probe)"
|
|
2028
|
+
else
|
|
2029
|
+
echo "FAIL test_outbound_pr_gate_lanes.sh: the outbound-PR gate's verdicts have drifted"
|
|
2030
|
+
_show_failure "$_out"
|
|
2031
|
+
fail=1
|
|
2032
|
+
fi
|
|
2033
|
+
elif _ships_per_files "scripts/test_outbound_pr_gate_lanes.sh"; then
|
|
2034
|
+
echo "FAIL test_outbound_pr_gate_lanes.sh is DECLARED SHIPPED but absent — deletion or broken install"
|
|
2035
|
+
fail=1
|
|
2036
|
+
fi
|
|
2037
|
+
|
|
2038
|
+
# test_publish_verify_poll_lanes.sh — 발행 «확인» 예산의 앵커. 주체가 ACCEPTED_ABSENT(이 레포의
|
|
2039
|
+
# 릴리스 파이프라인 부품, 소비자 호출부 없음)이므로 소비자 install 에서는 파일이 없고 SKIP 이다.
|
|
2040
|
+
# 🟥 SKIP 은 PASS 가 아니다 — 이 레포에서 실제로 도는 것이 이 배선의 유일한 검증면이다.
|
|
2041
|
+
# 무엇을 지키나: 「전파 지연」과 「발행 실패」가 같은 종료코드로 접히지 않는 것. 접혔던 실측이
|
|
2042
|
+
# v3.12.0 이고, 그 빨강이 v3.2.0·v3.4.0 에서 손 발행을 훈련시켜 OIDC 경로를 깨뜨렸다.
|
|
2043
|
+
if [ -f scripts/test_publish_verify_poll_lanes.sh ]; then
|
|
2044
|
+
if _out=$(bash scripts/test_publish_verify_poll_lanes.sh 2>&1); then
|
|
2045
|
+
echo "PASS test_publish_verify_poll_lanes.sh (not_yet_visible != failure · instrument-error stays distinct · calibration)"
|
|
2046
|
+
else
|
|
2047
|
+
echo "FAIL test_publish_verify_poll_lanes.sh: propagation-lag and publish-failure have been conflated again"
|
|
2048
|
+
_show_failure "$_out"
|
|
2049
|
+
fail=1
|
|
2050
|
+
fi
|
|
2051
|
+
elif _ships_per_files "scripts/test_publish_verify_poll_lanes.sh"; then
|
|
2052
|
+
echo "FAIL test_publish_verify_poll_lanes.sh is DECLARED SHIPPED but absent — deletion or broken install"
|
|
2053
|
+
fail=1
|
|
2054
|
+
fi
|
|
2055
|
+
|
|
1945
2056
|
# sync_from_be_lanes.sh — the RETURN path's anchor. Wired in the same change that ships it: the
|
|
1946
2057
|
# script had an operator-side caller (a SessionStart hook outside this repo) while its 70 lanes had
|
|
1947
2058
|
# NO caller anywhere, which is the shape this repo keeps re-finding — a transport that writes into
|