@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.
- 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 +56 -0
- package/package.json +11 -2
- 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 +23 -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/section_ref_check.py +591 -0
- package/scripts/selfcheck.sh +72 -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_paper_integrity_lanes.sh +1473 -0
- package/scripts/test_session_checklist_lanes.sh +746 -0
- package/templates/predelete_check.sh +28 -4
|
@@ -26,8 +26,15 @@ cd "$repo" || { echo "FAIL: cannot cd to repo '$repo'" >&2; exit 2; }
|
|
|
26
26
|
git rev-parse --git-dir >/dev/null 2>&1 || { echo "FAIL: '$repo' is not a git repo" >&2; exit 2; }
|
|
27
27
|
|
|
28
28
|
# Fetch: surface failure (stale enumeration on an irreversible surface is a real risk), do not swallow.
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
# π₯ `--prune` β 2026-09-17 μ€μΈ‘: μ΄κ²μ΄ μμ΄μ μ΄ κ²μ¬κ° **μ‘΄μ¬νμ§ μλ λΈλμΉλ₯Ό νμ λμμΌλ‘
|
|
30
|
+
# λ³΄κ³ **νλ€. λ‘컬 remote-tracking 243 vs μ€μ μ격 7 β 236κ°κ° μ λ Ήμ΄μκ³ REVIEW 213 μ€
|
|
31
|
+
# λλΆλΆμ΄ κ·Έκ²μ΄μλ€. prune ν REVIEW λ 213 β 4.
|
|
32
|
+
# κ³Όνμ§λ μμ λ₯Ό λ§λ λ°©ν₯μ΄λΌ λ°μ΄ν°λ₯Ό μμ§λ μλλ€. π₯ κ·Έλ¬λ γREVIEW 213γμ λ΄λ©΄
|
|
33
|
+
# μ무λ μ μ½κ³ , κ·Έ 무μλ **μ§μ§ REVIEW κ° λ¬ λ μλ** μλνλ€. κ·Έκ²μ΄ μ΄ νλ©΄μ μμ€ κ²½λ‘λ€.
|
|
34
|
+
if ! git fetch origin --prune --quiet 2>/dev/null; then
|
|
35
|
+
echo "WARN: 'git fetch origin --prune' failed β enumerating against possibly-STALE remote refs" >&2
|
|
36
|
+
echo " π₯ stale μ Β«μλ λΈλμΉλ₯Ό REVIEW λ‘Β» λ³΄κ³ νλ€. μλ μ«μλ₯Ό μ€μ¬λ‘ μ½μ§ λ§λΌ β" >&2
|
|
37
|
+
echo " νμΈ: git ls-remote --heads origin | wc -l (μ΄ μμ ν¬κ² λ€λ₯΄λ©΄ μΊμκ° λ‘μλ€)" >&2
|
|
31
38
|
fi
|
|
32
39
|
|
|
33
40
|
# Base must resolve, else every comparison is bogus and the old code would misclassify SAFE β fail-closed.
|
|
@@ -58,8 +65,25 @@ while IFS= read -r ref; do
|
|
|
58
65
|
n=$(git log --oneline "${base}..${ref}" 2>/dev/null | wc -l | tr -d ' ')
|
|
59
66
|
# π₯ 2026-08-31 β λ‘μΌμΌ μ ν λ°©μ§. μ¬κΈ°κ° μ νλ©΄ unique path κ° μ€μ΄ REVIEW νμ μ΄
|
|
60
67
|
# CHECK/SAFE λ‘ κ°λ±λλ€(λΉκ°μ νλ©΄). [[feedback_locale_string_equality_breaks_nonascii]]
|
|
61
|
-
|
|
62
|
-
|
|
68
|
+
# π₯ Β«λΈλμΉ νΈλ¦¬μ μκ³ base μ μλ€Β» λ λ κ°μ§λ₯Ό μλλ€ (2026-09-17 μ€μΈ‘):
|
|
69
|
+
# β λΈλμΉκ° **μΆκ°**ν νμΌ β μ§μ§ νμ λμ
|
|
70
|
+
# β base κ° κ·Έ λ€ **μμ **ν μ νμΌ β νμ λΆμ (μ€νλ € μλμ μΌλ‘ μ§μ΄ κ²)
|
|
71
|
+
# μ€λλ λΈλμΉμΌμλ‘ βκ° μμ¬μ γunique 28γ κ°μ μ«μκ° λμ€λλ° νμν κ²μ 0μ΄λ€.
|
|
72
|
+
# β merge-base μ **μλ** κ²λ§ μΌλ€. merge-base λ₯Ό λͺ» ꡬνλ©΄ fail-closed(μ μλ₯Ό μΌλ€).
|
|
73
|
+
mb=$(git merge-base "$base" "$ref" 2>/dev/null || true)
|
|
74
|
+
_cand=$(LC_ALL=C comm -23 <(git ls-tree -r --name-only "$ref" 2>/dev/null | LC_ALL=C sort) \
|
|
75
|
+
<(git ls-tree -r --name-only "$base" 2>/dev/null | LC_ALL=C sort))
|
|
76
|
+
if [ -z "$mb" ]; then
|
|
77
|
+
uniq=$(printf '%s' "$_cand" | grep -c . || true) # merge-base λΆλͺ
β μ’νμ§ μλλ€
|
|
78
|
+
else
|
|
79
|
+
uniq=0
|
|
80
|
+
while IFS= read -r _f; do
|
|
81
|
+
[ -n "$_f" ] || continue
|
|
82
|
+
git cat-file -e "${mb}:${_f}" 2>/dev/null || uniq=$((uniq+1))
|
|
83
|
+
done <<EOF
|
|
84
|
+
$_cand
|
|
85
|
+
EOF
|
|
86
|
+
fi
|
|
63
87
|
if [ "$uniq" -gt 0 ]; then
|
|
64
88
|
echo "REVIEW $b β unique paths: $uniq, commits off base: $n β recover/integrate BEFORE delete"
|
|
65
89
|
fail=1
|