@chrono-meta/fh-gate 2.12.1 → 2.14.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/rules/fh_4axis_gate.md +35 -1
- package/.claude-plugin/marketplace.json +2 -2
- package/AGENTS.md +17 -0
- package/CHEATSHEET.md +19 -1
- package/CLAUDE.md +34 -9
- package/README.ja.md +186 -649
- package/README.ko.md +207 -698
- package/README.md +186 -698
- package/README.zh.md +167 -601
- package/docs/ETHOS.md +73 -1
- package/docs/IDENTITIES.md +83 -0
- package/docs/MODEL_SETUP.md +111 -0
- package/docs/OUTPUT_EVIDENCE.md +10 -2
- package/knowledge/shared/harness-core/fh_detail_protocols.md +131 -1
- package/knowledge/shared/harness-core/fh_three_layer_canon.md +15 -0
- package/knowledge/shared/harness-core/field_harness_diagnostic.md +30 -0
- package/knowledge/shared/harness-core/gate_locality_principle.md +29 -0
- package/knowledge/shared/harness-core/measurement-integrity-checklist.md +80 -0
- package/knowledge/shared/harness-core/ship_readiness_gate.md +103 -15
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +120 -0
- package/knowledge/shared/rules/multi_session_close_protocol.md +7 -1
- package/package.json +22 -2
- package/plugins/fh-commons/.claude-plugin/plugin.json +2 -2
- package/plugins/fh-commons/skills/preprep/README.md +45 -0
- package/plugins/fh-commons/skills/preprep/SKILL.md +214 -0
- package/plugins/fh-commons/skills/preprep/canon_terms.example.yaml +36 -0
- package/plugins/fh-commons/skills/preprep/fixtures/adjdup_known_negative.md +7 -0
- package/plugins/fh-commons/skills/preprep/fixtures/adjdup_known_positive.md +8 -0
- package/plugins/fh-commons/skills/preprep/fixtures/progression_known_negative.md +13 -0
- package/plugins/fh-commons/skills/preprep/fixtures/progression_known_positive.md +13 -0
- package/plugins/fh-commons/skills/preprep/fixtures/promise_known_negative.md +9 -0
- package/plugins/fh-commons/skills/preprep/fixtures/promise_known_positive.md +7 -0
- package/plugins/fh-commons/skills/preprep/interslide_deps.py +223 -0
- package/plugins/fh-commons/skills/preprep/jargon_terms.example.yaml +40 -0
- package/plugins/fh-commons/skills/preprep/lane_adjacent_dup.py +86 -0
- package/plugins/fh-commons/skills/preprep/lane_progression.py +81 -0
- package/plugins/fh-commons/skills/preprep/lane_promise.py +121 -0
- package/plugins/fh-commons/skills/preprep/ooxml/c1_baseline.txt +12 -0
- package/plugins/fh-commons/skills/preprep/ooxml/gate.py +164 -0
- package/plugins/fh-commons/skills/preprep/preprep.py +776 -0
- package/plugins/fh-commons/skills/preprep/presentation_checklist.md +310 -0
- package/plugins/fh-commons/skills/preprep/surfaces.example.yaml +148 -0
- package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/CHANGELOG.md +150 -0
- package/plugins/fh-meta/skills/install-wizard/SKILL.md +39 -0
- package/scripts/activity_log.sh +144 -0
- package/scripts/com.forge-harness.daily-report.plist +44 -0
- package/scripts/context_continuity_score.sh +435 -0
- package/scripts/daily_report.sh +208 -0
- package/scripts/digest_landing_check.sh +71 -0
- package/scripts/fh_session_load.sh +71 -2
- package/scripts/field_canon_preload.sh +44 -0
- package/scripts/gate_pathspec_check.sh +10 -4
- package/scripts/lane_runner_check.sh +34 -1
- package/scripts/launchd_wiring_check.sh +182 -0
- package/scripts/mapped_tracks.sh +69 -0
- package/scripts/package_coverage_check.sh +28 -11
- package/scripts/portability_lint.sh +30 -0
- package/scripts/selfcheck.sh +98 -1
- package/scripts/sim_isolated_run.sh +339 -0
- package/scripts/test_heavy_classifier_lanes.sh +4 -1
- package/scripts/test_lane_runner_lanes.sh +75 -0
- package/scripts/test_mapped_tracks_lanes.sh +58 -0
- package/scripts/test_marker_address_lanes.sh +78 -0
- package/scripts/test_marker_soul_check_lanes.sh +36 -0
- package/scripts/test_precommit_staged_drift_lanes.sh +91 -0
- package/scripts/test_preprep_adjacent_dup_lanes.sh +57 -0
- package/scripts/test_preprep_drift_anchor.sh +65 -0
- package/scripts/test_preprep_progression_lanes.sh +53 -0
- package/scripts/test_preprep_promise_lanes.sh +56 -0
- package/scripts/test_preprep_retired_lanes.sh +54 -0
- package/scripts/test_sim_isolated_run_lanes.sh +219 -0
- package/scripts/test_skill_canon_preload_lanes.sh +58 -0
- package/scripts/universal_guard_check.sh +20 -8
- package/templates/.git-hooks/pre-commit +465 -8
- package/templates/regression_guard.sh +40 -1
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# launchd_wiring_check.sh — 「주기 실행이 실제로 배선됐나」를 typed 로 답한다.
|
|
3
|
+
#
|
|
4
|
+
# ── 왜 (진단) ──
|
|
5
|
+
# `scripts/com.forge-harness.frontier-digest.plist` 는 **템플릿**이다 — 안에 `/path/to/...`
|
|
6
|
+
# 플레이스홀더가 있고 «설치 전에 네 절대경로로 바꿔라» 고 주석이 적혀 있다.
|
|
7
|
+
# `script_caller_ratchet.sh:523-526` 도 그 사실을 기록해뒀다(추적본=템플릿, 실물=`~/Library/LaunchAgents`).
|
|
8
|
+
# 🟥 **그런데 «바꿨는지»도 «걸렸는지»도 보는 것이 0개였다.** 그래서 소비자는 digest 주기 실행이
|
|
9
|
+
# 있다고 믿으면서 한 번도 안 도는 상태로 지낼 수 있고, 그 부재는 **아무 신호도 안 낸다.**
|
|
10
|
+
# `external-grounding` 엔진이 🟡 인 두 다리 중 하나가 정확히 이것이다.
|
|
11
|
+
#
|
|
12
|
+
# ── 이 스크립트가 하는 것과 «안» 하는 것 ──
|
|
13
|
+
# check 설치 상태를 **typed verdict** 로 낸다. 부재를 「정상」으로 렌더하지 않는다
|
|
14
|
+
# render 템플릿에 실제 경로를 채워 **stdout 으로 인쇄한다**
|
|
15
|
+
# 🟥 **설치는 안 한다.** `launchctl` 을 부르지 않고 `~/Library/LaunchAgents` 에 쓰지 않는다.
|
|
16
|
+
# 2026-08-29 에 sim 팔 하나가 요청 없이 launchd 에이전트를 등록한 사고가 있었다
|
|
17
|
+
# (`[[feedback_sim_with_write_tools_is_a_fleet]]`). 주기 실행 등록은 **운영자 머신의 영속
|
|
18
|
+
# 설정 변경**이고, 그건 사람이 눈으로 보고 하는 것이다. 이 스크립트는 «채워서 보여줄» 뿐이다.
|
|
19
|
+
#
|
|
20
|
+
# ── verdict (닫힌 enum — 부재를 0 으로 접지 않는다) ──
|
|
21
|
+
# NOT_APPLICABLE launchd 가 없는 OS. 「안 걸림」이 아니라 「해당 없음」이다
|
|
22
|
+
# TEMPLATE_ONLY 설치본 없음. 정직한 기본값이고 **결함 아님** — 다만 digest 는 안 돈다
|
|
23
|
+
# INSTALLED_PLACEHOLDER 설치는 됐는데 `/path/to/` 가 남아 있다 🟥 이게 이 검사가 존재하는 이유
|
|
24
|
+
# INSTALLED_BROKEN 경로는 치환됐는데 **가리키는 스크립트가 없다**
|
|
25
|
+
# INSTALLED_OK 설치됐고 대상이 실재한다
|
|
26
|
+
# UNKNOWN 읽을 수 없었다. 🟥 UNKNOWN 을 TEMPLATE_ONLY 로 접지 마라
|
|
27
|
+
#
|
|
28
|
+
# ── 사용 ──
|
|
29
|
+
# bash scripts/launchd_wiring_check.sh check
|
|
30
|
+
# bash scripts/launchd_wiring_check.sh render [<label>] # 채운 plist 를 인쇄(설치 안 함)
|
|
31
|
+
# 기본 = frontier-digest
|
|
32
|
+
# bash scripts/launchd_wiring_check.sh --self-test
|
|
33
|
+
# FH_LAUNCHD_DIR=<dir> 로 검사 대상 디렉터리를 바꾼다(테스트용)
|
|
34
|
+
#
|
|
35
|
+
# ⚠️ **범위: 라벨 하나다.** `com.forge-harness.frontier-digest` 만 본다. 같은 디렉터리에
|
|
36
|
+
# `com.forge-harness.satellite-*` · `star-traffic` 등 다른 라벨이 걸려 있어도 **안 센다**
|
|
37
|
+
# (실측 2026-08-30, 이 머신에 4개 더 있었다). 그것들을 「검사됨」으로 읽지 마라 — 미측정이다.
|
|
38
|
+
# 라벨을 늘리려면 이 상수를 배열로 바꾸고 레인을 같이 늘려야 한다.
|
|
39
|
+
|
|
40
|
+
set -uo pipefail
|
|
41
|
+
FH="${CLAUDE_PROJECT_DIR:-$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)}"
|
|
42
|
+
# 🟥 2026-08-30: 라벨 «둘» 로 확장. 초판은 하나만 보면서 그 사실을 범위로만 적어뒀는데,
|
|
43
|
+
# 바로 그 미측정 칸에서 실제 결함이 나왔다 — daily-report 가 로컬 바인딩엔 「설치됨」인데
|
|
44
|
+
# plist 도 스크립트도 없었다. 범위를 적는 것과 재는 것은 다르다.
|
|
45
|
+
LABELS="com.forge-harness.frontier-digest com.forge-harness.daily-report"
|
|
46
|
+
TEMPLATE="$FH/scripts/com.forge-harness.frontier-digest.plist"
|
|
47
|
+
LABEL="com.forge-harness.frontier-digest"
|
|
48
|
+
LAUNCHD_DIR="${FH_LAUNCHD_DIR:-$HOME/Library/LaunchAgents}"
|
|
49
|
+
PLACEHOLDER_RE='/path/to/'
|
|
50
|
+
|
|
51
|
+
# ─────────────────────────────────────────────────────────────────────
|
|
52
|
+
# classify — 순수 함수. 파일 경로만 받고 부작용 없다. 이 분리가 self-test 를 가능하게 한다.
|
|
53
|
+
# $1 = 설치본 경로(없어도 된다) · $2 = launchd 존재 여부(1/0)
|
|
54
|
+
# ─────────────────────────────────────────────────────────────────────
|
|
55
|
+
classify() {
|
|
56
|
+
local installed="$1" has_launchd="$2"
|
|
57
|
+
[ "$has_launchd" = "1" ] || { echo NOT_APPLICABLE; return 0; }
|
|
58
|
+
[ -n "$installed" ] && [ -f "$installed" ] || { echo TEMPLATE_ONLY; return 0; }
|
|
59
|
+
local body
|
|
60
|
+
body="$(cat "$installed" 2>/dev/null)" || { echo UNKNOWN; return 0; }
|
|
61
|
+
[ -n "$body" ] || { echo UNKNOWN; return 0; }
|
|
62
|
+
case "$body" in *"$PLACEHOLDER_RE"*) echo INSTALLED_PLACEHOLDER; return 0 ;; esac
|
|
63
|
+
# 치환은 됐다 — 가리키는 대상이 실재하나. plist 안의 절대경로 .sh 를 뽑아 확인한다.
|
|
64
|
+
local sh missing=0 seen=0
|
|
65
|
+
while IFS= read -r sh; do
|
|
66
|
+
[ -n "$sh" ] || continue
|
|
67
|
+
seen=$((seen+1))
|
|
68
|
+
[ -f "$sh" ] || missing=1
|
|
69
|
+
done < <(printf '%s\n' "$body" | sed -n 's|.*<string>\(/[^<]*\.sh\)</string>.*|\1|p')
|
|
70
|
+
if [ "$seen" -eq 0 ]; then echo UNKNOWN; return 0; fi # .sh 를 못 찾음 = 판정 불가
|
|
71
|
+
[ "$missing" -eq 1 ] && echo INSTALLED_BROKEN || echo INSTALLED_OK
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
do_render() {
|
|
75
|
+
[ -f "$TEMPLATE" ] || { echo "❌ 템플릿 부재: $TEMPLATE" >&2; return 10; }
|
|
76
|
+
# 🟥 안내 «주석»도 치환 대상이다 — 2026-08-30 자기검사 L9 가 잡았다.
|
|
77
|
+
# 그 주석에 '/path/to/...' 라는 문자열이 들어 있어서, 경로를 다 채운 뒤에도 파일 안에
|
|
78
|
+
# 플레이스홀더 토큰이 남는다. 그러면 `classify` 가 **올바르게 설치한 사람을 영구히
|
|
79
|
+
# INSTALLED_PLACEHOLDER 로 찍는다** — 검사기가 거짓 경보 생성기가 되는 왕복 결함이다.
|
|
80
|
+
# 레인이 없었으면 그대로 나갔고, 소비자는 이 검사를 믿지 않게 됐을 것이다.
|
|
81
|
+
sed -e "s|<!-- Replace every /path/to/.* -->|<!-- rendered by scripts/launchd_wiring_check.sh render -->|" \
|
|
82
|
+
-e "s|/path/to/forge-harness|$FH|g" \
|
|
83
|
+
-e "s|/path/to/home|$HOME|g" "$TEMPLATE"
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
do_check_one() {
|
|
87
|
+
LABEL="$1"
|
|
88
|
+
TEMPLATE="$FH/scripts/$LABEL.plist"
|
|
89
|
+
local has_launchd=0
|
|
90
|
+
case "$(uname -s 2>/dev/null)" in Darwin) has_launchd=1 ;; esac
|
|
91
|
+
local installed="$LAUNCHD_DIR/$LABEL.plist"
|
|
92
|
+
[ -f "$installed" ] || installed=""
|
|
93
|
+
local v; v="$(classify "$installed" "$has_launchd")"
|
|
94
|
+
echo "── $LABEL"
|
|
95
|
+
echo "verdict: $v"
|
|
96
|
+
case "$v" in
|
|
97
|
+
NOT_APPLICABLE) echo " launchd 가 없는 OS 다. 「안 걸림」이 아니라 «해당 없음»이다." ;;
|
|
98
|
+
TEMPLATE_ONLY) echo " 설치본이 없다 — 결함은 아니지만 **이 잡은 안 돈다.**"
|
|
99
|
+
echo " 걸려면: bash scripts/launchd_wiring_check.sh render > ~/Library/LaunchAgents/$LABEL.plist"
|
|
100
|
+
echo " launchctl bootstrap gui/\$(id -u) ~/Library/LaunchAgents/$LABEL.plist"
|
|
101
|
+
echo " 🟥 이 스크립트는 그 두 줄을 **대신 실행하지 않는다**(운영자 머신의 영속 설정)." ;;
|
|
102
|
+
INSTALLED_PLACEHOLDER) echo " 🟥 설치본에 '/path/to/' 가 남아 있다 — **걸려 있는데 안 돈다.**"
|
|
103
|
+
echo " 가장 조용한 실패다: launchd 는 등록돼 보이고 로그는 비어 있다." ;;
|
|
104
|
+
INSTALLED_BROKEN) echo " 🟥 경로는 치환됐는데 가리키는 스크립트가 실재하지 않는다." ;;
|
|
105
|
+
INSTALLED_OK) echo " ✅ 설치됨 · 대상 실재. (실제로 «돌았나»는 이 검사의 범위 밖이다 —"
|
|
106
|
+
echo " 그건 tracks/_meta/frontier_digest_*.md 의 존재로 본다.)" ;;
|
|
107
|
+
UNKNOWN) echo " 🟥 읽을 수 없었다. UNKNOWN 을 TEMPLATE_ONLY 로 접지 마라." ;;
|
|
108
|
+
esac
|
|
109
|
+
case "$v" in INSTALLED_PLACEHOLDER|INSTALLED_BROKEN) return 1 ;; *) return 0 ;; esac
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
do_check() {
|
|
113
|
+
local rc=0 l
|
|
114
|
+
for l in $LABELS; do
|
|
115
|
+
do_check_one "$l" || rc=1
|
|
116
|
+
echo
|
|
117
|
+
done
|
|
118
|
+
return "$rc"
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
do_self_test() {
|
|
122
|
+
local T; T="$(mktemp -d)" || return 10
|
|
123
|
+
local P=0 F=0
|
|
124
|
+
chk(){ if [ "$2" = "$3" ]; then P=$((P+1)); echo " ✅ $1"; else F=$((F+1)); echo " ❌ $1 (got=$2 want=$3)"; fi; }
|
|
125
|
+
|
|
126
|
+
chk "L1 launchd 없는 OS → NOT_APPLICABLE (부재가 아니다)" "$(classify "" 0)" NOT_APPLICABLE
|
|
127
|
+
chk "L2 설치본 없음 → TEMPLATE_ONLY" "$(classify "" 1)" TEMPLATE_ONLY
|
|
128
|
+
chk "L3 없는 경로를 줘도 TEMPLATE_ONLY" "$(classify "$T/nope.plist" 1)" TEMPLATE_ONLY
|
|
129
|
+
|
|
130
|
+
# known-POSITIVE — 이 검사가 존재하는 이유. 플레이스홀더가 남은 설치본.
|
|
131
|
+
printf '<plist><string>/path/to/forge-harness/scripts/x.sh</string></plist>\n' > "$T/ph.plist"
|
|
132
|
+
chk "L4 '/path/to/' 잔존 → INSTALLED_PLACEHOLDER (핵심 케이스)" \
|
|
133
|
+
"$(classify "$T/ph.plist" 1)" INSTALLED_PLACEHOLDER
|
|
134
|
+
|
|
135
|
+
# known-NEGATIVE — 치환됐고 대상이 실재하면 통과해야 한다. 없으면 「항상 PLACEHOLDER」와 구분 안 됨
|
|
136
|
+
printf '#!/bin/sh\n' > "$T/real.sh"
|
|
137
|
+
printf '<plist><string>%s/real.sh</string></plist>\n' "$T" > "$T/ok.plist"
|
|
138
|
+
chk "L5 치환됨 ∧ 대상 실재 → INSTALLED_OK (판별력 컨트롤)" \
|
|
139
|
+
"$(classify "$T/ok.plist" 1)" INSTALLED_OK
|
|
140
|
+
|
|
141
|
+
# 치환은 됐는데 대상이 없다 — PLACEHOLDER 와 «다른» 실패다. 접지 않는다.
|
|
142
|
+
printf '<plist><string>%s/gone.sh</string></plist>\n' "$T" > "$T/broken.plist"
|
|
143
|
+
chk "L6 치환됨 ∧ 대상 부재 → INSTALLED_BROKEN (PLACEHOLDER 와 다른 값)" \
|
|
144
|
+
"$(classify "$T/broken.plist" 1)" INSTALLED_BROKEN
|
|
145
|
+
|
|
146
|
+
: > "$T/empty.plist"
|
|
147
|
+
chk "L7 빈 파일 → UNKNOWN (TEMPLATE_ONLY 로 접지 않는다)" \
|
|
148
|
+
"$(classify "$T/empty.plist" 1)" UNKNOWN
|
|
149
|
+
|
|
150
|
+
printf '<plist><string>no-shell-path-here</string></plist>\n' > "$T/nosh.plist"
|
|
151
|
+
chk "L8 .sh 를 못 찾음 → UNKNOWN (「대상 0개니까 OK」가 아니다)" \
|
|
152
|
+
"$(classify "$T/nosh.plist" 1)" UNKNOWN
|
|
153
|
+
|
|
154
|
+
# 🟥 render 가 실제로 플레이스홀더를 없애나 — 안 그러면 위 판정 전부가 무의미하다
|
|
155
|
+
if [ -f "$TEMPLATE" ]; then
|
|
156
|
+
local r; r="$(do_render 2>/dev/null)"
|
|
157
|
+
case "$r" in
|
|
158
|
+
*"/path/to/"*) chk "L9 render 결과에 '/path/to/' 없음" "잔존" "없음" ;;
|
|
159
|
+
"") chk "L9 render 결과에 '/path/to/' 없음" "빈출력" "없음" ;;
|
|
160
|
+
*) chk "L9 render 결과에 '/path/to/' 없음" "없음" "없음" ;;
|
|
161
|
+
esac
|
|
162
|
+
# 컨트롤: 템플릿 «원본»에는 반드시 있어야 한다. 없으면 L9 는 아무것도 증명 못 한다.
|
|
163
|
+
if grep -q '/path/to/' "$TEMPLATE"; then
|
|
164
|
+
chk "L9-CTRL 템플릿 원본엔 '/path/to/' 가 있다(L9 가 뭔가를 재는 증거)" 있음 있음
|
|
165
|
+
else
|
|
166
|
+
chk "L9-CTRL 템플릿 원본엔 '/path/to/' 가 있다(L9 가 뭔가를 재는 증거)" 없음 있음
|
|
167
|
+
fi
|
|
168
|
+
fi
|
|
169
|
+
|
|
170
|
+
rm -rf "$T"
|
|
171
|
+
echo; echo "SELFTEST: $P passed, $F failed"
|
|
172
|
+
[ "$F" = 0 ] || return 1
|
|
173
|
+
return 0
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
case "${1:-check}" in
|
|
177
|
+
check) do_check ;;
|
|
178
|
+
render) LABEL="${2:-com.forge-harness.frontier-digest}"
|
|
179
|
+
TEMPLATE="$FH/scripts/$LABEL.plist"; do_render ;;
|
|
180
|
+
--self-test) do_self_test ;;
|
|
181
|
+
*) echo "usage: launchd_wiring_check.sh [check|render|--self-test]" >&2; exit 2 ;;
|
|
182
|
+
esac
|
package/scripts/mapped_tracks.sh
CHANGED
|
@@ -38,6 +38,12 @@ esac
|
|
|
38
38
|
_die_unmeasured() {
|
|
39
39
|
echo "status=UNMEASURED"
|
|
40
40
|
echo "reason=$1"
|
|
41
|
+
# 🟥 EMIT THE BRANCH KEY ON EVERY PATH, including this one. A consumer greps
|
|
42
|
+
# `onboarding_branch=` and must get an ANSWER in every state — silence is the shape a reader
|
|
43
|
+
# fills in with the friendlier value, and «looks like you're new here» to a returning user is
|
|
44
|
+
# exactly the defect the branch test exists to prevent.
|
|
45
|
+
echo "onboarding_branch=UNKNOWN"
|
|
46
|
+
echo "branch_why=$1 — UNKNOWN is not 'new'"
|
|
41
47
|
echo "# not-found != zero — do NOT read this as 'no mapped tracks'"
|
|
42
48
|
exit 3
|
|
43
49
|
}
|
|
@@ -100,12 +106,75 @@ done
|
|
|
100
106
|
|
|
101
107
|
if [ "$COUNT_ONLY" = "1" ]; then echo "$COUNT"; exit 0; fi
|
|
102
108
|
|
|
109
|
+
# ── ⓐ SESSION FILES, and the branch verdict ───────────────────────────────────────────────────
|
|
110
|
+
# WHY THIS IS HERE AND NOT IN PROSE. The onboarding branch test has two halves: ⓑ (mapped tracks,
|
|
111
|
+
# counted above) and ⓐ (session files). ⓑ has been mechanical since 2026-08-22; ⓐ was left to the
|
|
112
|
+
# session to judge from a sentence — and the sentence was wrong.
|
|
113
|
+
#
|
|
114
|
+
# 🟥 THE DEFECT, measured 2026-08-30 with a control. ⓐ read «any `tracks/**/session_*.md` or
|
|
115
|
+
# `tracks/_meta/*.md` beyond .gitkeep», and TWO files that SHIP WITH THE REPO satisfy it:
|
|
116
|
+
# tracks/_contrib/session_2026_06_27_….md (a sister-asset cross-audit; only the NAME is
|
|
117
|
+
# session-shaped)
|
|
118
|
+
# tracks/_meta/harness_bench_issue_monitor.md (an issue-monitor artifact)
|
|
119
|
+
# So `git clone` alone rendered the RETURNING menu, and the NEW-USER branch was unreachable for
|
|
120
|
+
# anyone who clones. The canon warns two lines away that «a fresh clone is a NEW install — never
|
|
121
|
+
# infer the branch from git log»; the same misreading arrived through tracked FILES instead.
|
|
122
|
+
# (Control: the nonsense pattern `tracks/**/zzz_*.md` matched 0, so the probe discriminates.)
|
|
123
|
+
#
|
|
124
|
+
# THE RULE, one sentence: **ⓐ counts only files that did NOT ship with the repo.** Content that
|
|
125
|
+
# arrived with the checkout is not evidence that this person has worked here. `git ls-files` is the
|
|
126
|
+
# mechanical discriminator, and it degrades honestly: an npm install ships no `tracks/` at all
|
|
127
|
+
# (verified against package.json `files[]`), so both worlds agree.
|
|
128
|
+
#
|
|
129
|
+
# 🟥 THREE-VALUED. "cannot tell shipped from user-made" is UNKNOWN, never `new` — rendering an
|
|
130
|
+
# unmeasured state as the friendlier branch is how a returning user gets told they look new
|
|
131
|
+
# ([[feedback_not_found_is_not_zero_family]]).
|
|
132
|
+
_TRACKED=""
|
|
133
|
+
_TRACKED_OK=0
|
|
134
|
+
if command -v git >/dev/null 2>&1 && [ -d "$HUB_ROOT/.git" ] || { command -v git >/dev/null 2>&1 && git -C "$HUB_ROOT" rev-parse --git-dir >/dev/null 2>&1; }; then
|
|
135
|
+
_TRACKED=$(git -C "$HUB_ROOT" ls-files tracks/ 2>/dev/null)
|
|
136
|
+
# An EMPTY tracked list is a real state (a hub whose tracks/ is fully gitignored) — distinguish it
|
|
137
|
+
# from "git failed" by asking git a question it always answers.
|
|
138
|
+
if git -C "$HUB_ROOT" rev-parse --git-dir >/dev/null 2>&1; then _TRACKED_OK=1; fi
|
|
139
|
+
fi
|
|
140
|
+
|
|
141
|
+
_SESS=0
|
|
142
|
+
_SESS_NAMES=""
|
|
143
|
+
_is_shipped() { # $1 = path relative to HUB_ROOT
|
|
144
|
+
[ "$_TRACKED_OK" = "1" ] || return 1
|
|
145
|
+
printf '%s\n' "$_TRACKED" | grep -qxF "$1"
|
|
146
|
+
}
|
|
147
|
+
for _f in "$HUB_ROOT"/tracks/*/session_*.md "$HUB_ROOT"/tracks/_meta/*.md; do
|
|
148
|
+
[ -f "$_f" ] || continue
|
|
149
|
+
_rel="tracks/${_f#"$HUB_ROOT"/tracks/}"
|
|
150
|
+
case "$(basename "$_f")" in .gitkeep) continue ;; esac
|
|
151
|
+
_is_shipped "$_rel" && continue
|
|
152
|
+
_SESS=$((_SESS + 1))
|
|
153
|
+
# Cap the sample. The COUNT is the answer; the names are a debugging aid, and an operator hub
|
|
154
|
+
# has hundreds — dumping them turns a one-line verdict into a screenful nobody reads.
|
|
155
|
+
[ "$_SESS" -le 3 ] && _SESS_NAMES="$_SESS_NAMES $(basename "$_f")"
|
|
156
|
+
done
|
|
157
|
+
|
|
158
|
+
if [ "$_TRACKED_OK" = "1" ]; then
|
|
159
|
+
if [ "$_SESS" -gt 0 ] || [ "$COUNT" -gt 0 ]; then _BRANCH=returning; else _BRANCH=new; fi
|
|
160
|
+
_BRANCH_WHY="session_files=$_SESS mapped=$COUNT (shipped files excluded via git ls-files)"
|
|
161
|
+
else
|
|
162
|
+
_BRANCH=UNKNOWN
|
|
163
|
+
_BRANCH_WHY="cannot separate shipped from user-made files (git unavailable here) — UNKNOWN is not new"
|
|
164
|
+
fi
|
|
165
|
+
|
|
103
166
|
echo "status=OK"
|
|
104
167
|
echo "hub_root=$HUB_ROOT"
|
|
105
168
|
echo "root_source=$ROOT_SRC"
|
|
106
169
|
echo "in_worktree=$IN_WORKTREE"
|
|
107
170
|
echo "count=$COUNT"
|
|
108
171
|
echo "names=${NAMES# }"
|
|
172
|
+
echo "session_files=$_SESS"
|
|
173
|
+
_SESS_SHOWN="${_SESS_NAMES# }"
|
|
174
|
+
[ "$_SESS" -gt 3 ] && _SESS_SHOWN="$_SESS_SHOWN … (+$((_SESS - 3)) more)"
|
|
175
|
+
echo "session_sample=$_SESS_SHOWN"
|
|
176
|
+
echo "onboarding_branch=$_BRANCH"
|
|
177
|
+
echo "branch_why=$_BRANCH_WHY"
|
|
109
178
|
if [ "$IN_WORKTREE" = "yes" ]; then
|
|
110
179
|
echo "# NOTE: running from a worktree; the count above is the MAIN tree's, resolved via"
|
|
111
180
|
echo "# --git-common-dir. The worktree's own tracks/ is NOT the answer to this question."
|
|
@@ -47,6 +47,25 @@ ACCEPTED_ABSENT=(
|
|
|
47
47
|
# `selfcheck.sh` 는 대상 부재 시 `_absent_subject_verdict` 로 빠지므로 패키지 모드에서 옳게 degrade 한다.
|
|
48
48
|
"scripts/outbound_query_guard.sh"
|
|
49
49
|
"scripts/test_outbound_query_lanes.sh"
|
|
50
|
+
# 🟥 영혼(judgment-circuit) 3종 — **일부러 출하하지 않는다.** 위 outbound 가드와 같은 이유다.
|
|
51
|
+
# 이 셋은 `.claude/soul_tenets.txt`(=**이 레포의** 심지 원칙 등록부)를 전제로 하는데, 그 파일은
|
|
52
|
+
# 소비자에게 안 나간다 — 소비자의 tenet 은 소비자가 쓰는 것이지 우리가 주는 것이 아니다
|
|
53
|
+
# (`.claude/regression/probes.md` 가 이미 같은 논리로 미출하다).
|
|
54
|
+
# 🟥 측정하고 결정했다(2026-08-30): 등록부를 치우고 셋을 돌리니 rc=1·1·10 — 즉 그대로 출하하면
|
|
55
|
+
# **신선 설치가 100% 실패**한다. CLAUDE.md 가 «모든 새 install 을 막는 게이트는 엄격한 게이트가
|
|
56
|
+
# 아니라 우회 훈련기»(→ `--no-verify` 훈련 → 같은 훅의 Destructive-Op 게이트 무장해제)라 못박은
|
|
57
|
+
# 그 형태다. 훅 자체(`templates/.git-hooks/pre-commit`)는 나가고, 인용이 없는 마커는 통과하므로
|
|
58
|
+
# 소비자 게이트는 열린 채로 남는다.
|
|
59
|
+
# ⚠️ **남은 갭을 이름으로**: 소비자는 자기 install 의 soul 다리를 검증할 레인을 못 받는다.
|
|
60
|
+
# `test_hook_leg_wiring_lanes.sh` 는 원리상 등록부 없이도 돌 수 있어야 하고(호출부만 보므로),
|
|
61
|
+
# 그렇게 고치면 이 목록에서 빼는 것이 맞다. 오늘은 안 고쳤다 — 미측정이 아니라 미착수다.
|
|
62
|
+
"scripts/test_marker_soul_tenet_lanes.sh"
|
|
63
|
+
"scripts/test_hook_leg_wiring_lanes.sh"
|
|
64
|
+
"scripts/soul_trace.sh"
|
|
65
|
+
# 🟥 sim 경로격리 레인 — 출하 안 한다. `sim_isolated_run.sh` 는 이 레포의 측정 도구이고
|
|
66
|
+
# 이 레인은 «그 러너가 클론에 무엇을 써넣는가»를 본다. 소비자에게 그 러너가 없으면
|
|
67
|
+
# 레인이 HARNESS-ERROR 로 죽고, 그건 신선 설치를 막는 형태가 된다(위 outbound 와 동일 논리).
|
|
68
|
+
"scripts/test_sim_path_isolation_lanes.sh"
|
|
50
69
|
".claude/registry/LOCAL_SKILL_REGISTRY.md"
|
|
51
70
|
".claude/regression/probes.md"
|
|
52
71
|
# Its sibling, and absent for the same reason one layer up: this file records which sections of
|
|
@@ -77,17 +96,15 @@ ACCEPTED_ABSENT=(
|
|
|
77
96
|
# sibling directly above: it exercises scripts/sync-to-be.sh, itself ACCEPTED_ABSENT — a lane
|
|
78
97
|
# suite for a script that never ships has nothing to verify on a consumer's machine either.
|
|
79
98
|
"scripts/sync_to_be_lanes.sh"
|
|
80
|
-
#
|
|
81
|
-
#
|
|
82
|
-
#
|
|
83
|
-
#
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
# pre-fix behavior, not a new failure mode"), so a consumer loses nothing that consumer ever had.
|
|
90
|
-
"scripts/fh_hub_identity.sh"
|
|
99
|
+
# NOTE (2026-08-29): `scripts/fh_hub_identity.sh` USED to sit here, with a comment saying it had
|
|
100
|
+
# been removed from files[] on 2026-08-15 as a confidentiality misclassification. Both halves are
|
|
101
|
+
# now stale: #484 deliberately put it BACK in files[] (without it, `fh_session_load.sh`'s hub-
|
|
102
|
+
# identity resolution is dead on every consumer install), and a known-pair-calibrated PSA scan on
|
|
103
|
+
# 2026-08-29 found the file clean (known-positive rc=1 with three hits · known-negative rc=0 ·
|
|
104
|
+
# subject rc=0; the only private-looking word in it is "companion-store", which is public FH
|
|
105
|
+
# vocabulary). A shipped path can never exercise an ACCEPTED_ABSENT entry, so the entry was a dead
|
|
106
|
+
# exception — exactly the kind this check's own advisory warns a future real omission can land on
|
|
107
|
+
# and be silenced by. Removed rather than re-justified.
|
|
91
108
|
# ── The three lane suites selfcheck.sh's DEBT-12 pair-loop names but does not ship ────────────
|
|
92
109
|
# Added 2026-08-13, and the way they got here is the point: this check CAUGHT them. Before that
|
|
93
110
|
# loop existed, these names lived in lane_runner_check.sh's DEBT array as bare basenames
|
|
@@ -141,6 +141,26 @@ lint_file() {
|
|
|
141
141
|
_emit " → 루프 첫 줄에 \`[ -e \"\$f\" ] || continue\`, 또는 shopt -s nullglob"
|
|
142
142
|
_hits=$((_hits+1))
|
|
143
143
|
done < <(grep -nE 'for [A-Za-z_][A-Za-z0-9_]* in [^;]*\*[^;)]*; *do' "$f" 2>/dev/null)
|
|
144
|
+
|
|
145
|
+
# ── [P10] `tr` 집합 안의 «범위로 읽힐 수 있는» 하이픈 ────────────────────────────
|
|
146
|
+
# 🟥 2026-08-30 실측, N=3 로 기계화. (번호: 초판이 이미 쓰인 P9 를 재사용해 충돌했다 — 실행해서 잡았다.) `tr -d '[:space:].·—-]'` 의 `—-]` 를 **범위**로 읽는
|
|
147
|
+
# 구현이 있다(GNU tr). 그러면 그 범위에 든 바이트가 전부 삭제되고 — 한글 코퍼스에서는
|
|
148
|
+
# 낱말 자체가 사라진다. macOS 는 리터럴로 읽어 통과하므로 **로컬만 초록이고 CI 에서 적색**이다.
|
|
149
|
+
# 실제 피해: `defeater: 없음` 이 「1 낱말 공허」로 차단됐다(D6 레인, CI 전용 실패).
|
|
150
|
+
# 판별: `tr` 인자 안에서 **양쪽에 문자가 있는 `-`**. 맨 앞/맨 뒤 하이픈은 리터럴이라 안전하고,
|
|
151
|
+
# `a-z`·`0-9` 같은 **의도된 범위**는 오탐이므로 뺀다.
|
|
152
|
+
while IFS= read -r line; do
|
|
153
|
+
n="${line%%:*}"; body="${line#*:}"
|
|
154
|
+
printf '%s' "$body" | grep -qE '#[[:space:]]*portability-noqa:[[:space:]]*[^[:space:]]' && continue
|
|
155
|
+
case "$(printf '%s' "$body" | sed 's/^[[:space:]]*//')" in '#'*) continue ;; esac
|
|
156
|
+
# 의도된 ASCII 범위만 쓰는 줄은 통과
|
|
157
|
+
printf '%s' "$body" | grep -qE "tr[^|]*'[^']*[a-zA-Z0-9]-[a-zA-Z0-9][^']*'" && continue
|
|
158
|
+
_emit " [P10] $f:$n"
|
|
159
|
+
_emit " \`tr\` 집합 안의 하이픈이 **범위**로 읽힐 수 있다(구현마다 다르다)."
|
|
160
|
+
_emit " 비-ASCII 가 섞인 집합에서는 낱말이 통째로 지워진다 — 로컬만 초록이 된다."
|
|
161
|
+
_emit " → 하이픈을 **맨 뒤**로 옮기거나, \`tr\` 대신 셸 파라미터 확장을 써라."
|
|
162
|
+
_hits=$((_hits+1))
|
|
163
|
+
done < <(grep -nE "tr +-[a-z]* *'[^']*[^-'][-][^-'][^']*'" "$f" 2>/dev/null)
|
|
144
164
|
}
|
|
145
165
|
|
|
146
166
|
# ── self-test (known-pair) ────────────────────────────────────────────────────
|
|
@@ -194,6 +214,16 @@ if [ "$SELFTEST" = 1 ]; then
|
|
|
194
214
|
printf 'd=$(date +%%s)\n' > "$t/p7_neg.sh"; _ck "P7 known-negative (date +%s)" 0 "$t/p7_neg.sh" # portability-noqa: self-test 픽스처 — 일부러 위반형을 쓴다
|
|
195
215
|
printf 'run_review "package.json"\n' > "$t/p9_pos.sh"; _ck "P9 known-positive (레포고유 픽스처)" 1 "$t/p9_pos.sh" # portability-noqa: self-test 픽스처 — 일부러 위반형을 쓴다
|
|
196
216
|
printf 'run_review "$t/fixture.json"\n' > "$t/p9_neg.sh"; _ck "P9 known-negative (자기 픽스처)" 0 "$t/p9_neg.sh" # portability-noqa: self-test 픽스처 — 일부러 위반형을 쓴다
|
|
217
|
+
# 🟥 P10 — `tr` 집합 안의 «범위로 읽힐 수 있는» 하이픈. 2026-08-30 CI 전용 실패에서 나왔다:
|
|
218
|
+
# `tr -d '[:space:].·—-]'` 가 GNU 에서 범위로 읽혀 한글이 지워졌고 `defeater: 없음` 이
|
|
219
|
+
# 「1 낱말 공허」로 차단됐다. macOS 는 리터럴로 읽어 **로컬만 초록**이었다.
|
|
220
|
+
printf 'x=$(printf %%s "$b" | tr -d \x27[:space:].\xc2\xb7\xe2\x80\x94-]\x27)\n' > "$t/p10_pos.sh" # portability-noqa: self-test 픽스처 — 일부러 위반형을 쓴다
|
|
221
|
+
_ck "P10 known-positive (하이픈이 범위로 읽힌다)" 1 "$t/p10_pos.sh"
|
|
222
|
+
printf 'y=$(printf %%s "$b" | tr -d \x27[:space:].\xc2\xb7]\x27)\n' > "$t/p10_neg.sh" # portability-noqa: self-test 픽스처 — 일부러 위반형을 쓴다
|
|
223
|
+
_ck "P10 known-negative (하이픈 없음 = 리터럴)" 0 "$t/p10_neg.sh"
|
|
224
|
+
# 🟥 컨트롤 — 의도된 ASCII 범위(a-z)는 오탐이면 안 된다. 없으면 «전부 잡는 계기»와 구분 안 된다.
|
|
225
|
+
printf 'z=$(printf %%s "$b" | tr \x27a-z\x27 \x27A-Z\x27)\n' > "$t/p10_ctl.sh" # portability-noqa: self-test 픽스처 — 일부러 위반형을 쓴다
|
|
226
|
+
_ck "P10 control (의도된 a-z 범위는 오탐 아님)" 0 "$t/p10_ctl.sh"
|
|
197
227
|
|
|
198
228
|
# 🟥 로케일 fail-open — cross-family 가 실측으로 잡은 것. 비-UTF8 바이트가 섞인 줄을
|
|
199
229
|
# UTF-8 로케일에서 돌려도 검출돼야 한다(lint_file 이 LC_ALL=C 로 고정하므로).
|
package/scripts/selfcheck.sh
CHANGED
|
@@ -586,6 +586,12 @@ for _pair in \
|
|
|
586
586
|
"templates/.git-hooks/pre-commit|scripts/test_marker_standpoint_lanes.sh" \
|
|
587
587
|
"templates/.git-hooks/pre-commit|scripts/test_marker_thirdparty_lanes.sh" \
|
|
588
588
|
"templates/.git-hooks/pre-commit|scripts/test_marker_soul_check_lanes.sh" \
|
|
589
|
+
"templates/.git-hooks/pre-commit|scripts/test_marker_soul_tenet_lanes.sh" \
|
|
590
|
+
"scripts/sim_isolated_run.sh|scripts/test_sim_path_isolation_lanes.sh" \
|
|
591
|
+
"templates/.git-hooks/pre-commit|scripts/test_hook_leg_wiring_lanes.sh" \
|
|
592
|
+
".claude/soul_tenets.txt|scripts/test_marker_soul_tenet_lanes.sh" \
|
|
593
|
+
"templates/.git-hooks/pre-commit|scripts/test_precommit_staged_drift_lanes.sh" \
|
|
594
|
+
"templates/.git-hooks/pre-commit|scripts/test_marker_address_lanes.sh" \
|
|
589
595
|
"scripts/residency_closure_scan.py|scripts/test_residency_closure_lanes.sh" \
|
|
590
596
|
"scripts/reviewer_capability_corpus.tsv|scripts/test_reviewer_capability_conformance.sh" \
|
|
591
597
|
"scripts/field_canon_preload.sh|scripts/test_field_canon_lanes.sh" \
|
|
@@ -595,7 +601,14 @@ for _pair in \
|
|
|
595
601
|
"scripts/script_caller_ratchet.sh|scripts/test_runner_surface_index_lanes.sh" \
|
|
596
602
|
"scripts/mapped_tracks.sh|scripts/test_mapped_tracks_lanes.sh" \
|
|
597
603
|
"scripts/fh-goal.sh|scripts/test_fh_goal_change_detection_lanes.sh" \
|
|
598
|
-
"scripts/utterance_skill_probe.sh|scripts/test_utterance_skill_probe_lanes.sh"
|
|
604
|
+
"scripts/utterance_skill_probe.sh|scripts/test_utterance_skill_probe_lanes.sh" \
|
|
605
|
+
`# ── preprep 스킬(2026-08-29). 주체는 스킬 안의 모듈이라 scripts/ 밖이다 ──` \
|
|
606
|
+
"plugins/fh-commons/skills/preprep/preprep.py|scripts/test_preprep_retired_lanes.sh" \
|
|
607
|
+
"plugins/fh-commons/skills/preprep/lane_progression.py|scripts/test_preprep_progression_lanes.sh" \
|
|
608
|
+
"plugins/fh-commons/skills/preprep/lane_adjacent_dup.py|scripts/test_preprep_adjacent_dup_lanes.sh" \
|
|
609
|
+
"plugins/fh-commons/skills/preprep/lane_promise.py|scripts/test_preprep_promise_lanes.sh" \
|
|
610
|
+
"plugins/fh-commons/skills/preprep/SKILL.md|scripts/test_preprep_drift_anchor.sh" \
|
|
611
|
+
"scripts/field_canon_preload.sh|scripts/test_skill_canon_preload_lanes.sh"
|
|
599
612
|
do
|
|
600
613
|
_subj="${_pair%%|*}"; _anc="${_pair##*|}"; _lbl="${_anc##*/}"
|
|
601
614
|
if [ ! -f "$_subj" ]; then
|
|
@@ -749,6 +762,25 @@ for _subj in compaction_probe judgment_circuit_lint novelty_claim_check chamber_
|
|
|
749
762
|
fi
|
|
750
763
|
done
|
|
751
764
|
|
|
765
|
+
# 🟥 `soul_trace.sh` 는 위 루프에 넣지 않고 **명시 호출**한다 (2026-08-30).
|
|
766
|
+
# 루프는 `scripts/$_subj.sh` 로 경로를 조립하므로 **리터럴 grep 에 안 잡힌다** —
|
|
767
|
+
# CI 의 caller-zero ratchet 이 그것을 «호출부 0» 으로 잡았고, 그 판정이 옳다:
|
|
768
|
+
# 「호출된다」를 사람 눈으로만 확인할 수 있으면 그건 배선의 증거가 아니다.
|
|
769
|
+
# 오늘 아침 `digest_landing_check` 에서 본 것과 같은 형태다.
|
|
770
|
+
# 🟥 그리고 이 블록의 초판은 이 파일에 없는 변수(`$ROOT`·`$RC`)를 써서 **selfcheck 자체를
|
|
771
|
+
# 죽였다**(`ROOT: unbound variable`, 770줄). 관행은 상대경로 + `fail=1` 이다.
|
|
772
|
+
if [ ! -f "scripts/soul_trace.sh" ]; then
|
|
773
|
+
_absent_subject_verdict "soul_trace --self-test" "scripts/soul_trace.sh" || fail=1
|
|
774
|
+
else
|
|
775
|
+
if _st_out=$(bash scripts/soul_trace.sh --self-test 2>&1); then
|
|
776
|
+
echo "PASS soul_trace --self-test ($(printf '%s' "$_st_out" | grep -c '✅') lanes)"
|
|
777
|
+
else
|
|
778
|
+
echo "FAIL soul_trace --self-test"
|
|
779
|
+
printf '%s\n' "$_st_out" | grep '❌' | head -5
|
|
780
|
+
fail=1
|
|
781
|
+
fi
|
|
782
|
+
fi
|
|
783
|
+
|
|
752
784
|
# capability_registry_check — one of the 4 embedded --self-test subjects lane_runner_check.sh
|
|
753
785
|
# flagged (2026-08-15), kept out of the loop above (see that loop's comment) because its own
|
|
754
786
|
# terminal line is `통과 N · 실패 N`, never 캘리브레이션 — gate on exit code instead, same shape
|
|
@@ -1065,6 +1097,71 @@ else
|
|
|
1065
1097
|
fail=1
|
|
1066
1098
|
fi
|
|
1067
1099
|
|
|
1100
|
+
# The isolated sim runner gets the same treatment, and it earned it in one session. Its lanes are
|
|
1101
|
+
# hermetic (the `claude` CLI is stubbed), so running them is free — and L8a is the lane that caught
|
|
1102
|
+
# a FALSE FINDING already published into CLAUDE.md: the runner still passed `--restricted` at the
|
|
1103
|
+
# call site after the flag had been "made opt-in" in the tools array, so every arm ran with the
|
|
1104
|
+
# project CLAUDE.md removed, and a two-variable comparison was written up as one. Without this
|
|
1105
|
+
# suite that retraction does not happen. Subject-present-but-anchor-absent is a FAIL, not a skip.
|
|
1106
|
+
if [ ! -f scripts/sim_isolated_run.sh ]; then
|
|
1107
|
+
_absent_subject_verdict "test_sim_isolated_run_lanes.sh" "scripts/sim_isolated_run.sh" || fail=1
|
|
1108
|
+
elif [ -f scripts/test_sim_isolated_run_lanes.sh ]; then
|
|
1109
|
+
if ! bash scripts/test_sim_isolated_run_lanes.sh; then
|
|
1110
|
+
fail=1
|
|
1111
|
+
fi
|
|
1112
|
+
else
|
|
1113
|
+
echo "FAIL test_sim_isolated_run_lanes.sh: sim_isolated_run.sh present but its anchor is missing"
|
|
1114
|
+
fail=1
|
|
1115
|
+
fi
|
|
1116
|
+
|
|
1117
|
+
# daily_report — 어제 커밋 집계. 자기검사 10 레인(known-pair · 멱등 · 부재 표기).
|
|
1118
|
+
# 🟥 이 파일은 «한 번 존재했다가 사라진» 이력이 있다 — 2026-08-29 에 산출물 1건을 내고
|
|
1119
|
+
# git 에 커밋된 적 없이 없어졌고, 로컬 바인딩만 「설치됨」이라 적고 있었다. 배선이
|
|
1120
|
+
# 그 재발을 막는 층이다. subject 있는데 anchor 없으면 FAIL 이지 skip 이 아니다.
|
|
1121
|
+
if [ ! -f scripts/daily_report.sh ]; then
|
|
1122
|
+
_absent_subject_verdict "daily_report --self-test" "scripts/daily_report.sh" || fail=1
|
|
1123
|
+
else
|
|
1124
|
+
if ! bash scripts/daily_report.sh --self-test >/dev/null 2>&1; then
|
|
1125
|
+
echo "FAIL daily_report --self-test"
|
|
1126
|
+
bash scripts/daily_report.sh --self-test 2>&1 | grep '❌' | head -5
|
|
1127
|
+
fail=1
|
|
1128
|
+
else
|
|
1129
|
+
echo "PASS daily_report --self-test (10 lanes)"
|
|
1130
|
+
fi
|
|
1131
|
+
fi
|
|
1132
|
+
|
|
1133
|
+
# launchd_wiring_check — 주기 실행(frontier-digest)이 실제로 배선됐나. 자기검사 10 레인.
|
|
1134
|
+
# 🟥 이 검사가 없던 동안, 추적본 plist 는 «템플릿»(/path/to/ 플레이스홀더)인데 «바꿨는지»도
|
|
1135
|
+
# «걸렸는지»도 보는 것이 0개였다. 소비자는 digest 가 돈다고 믿으면서 한 번도 안 도는 상태로
|
|
1136
|
+
# 지낼 수 있었고 그 부재는 아무 신호도 안 냈다. subject 있는데 anchor 없으면 FAIL 이다.
|
|
1137
|
+
if [ ! -f scripts/launchd_wiring_check.sh ]; then
|
|
1138
|
+
_absent_subject_verdict "launchd_wiring_check --self-test" "scripts/launchd_wiring_check.sh" || fail=1
|
|
1139
|
+
else
|
|
1140
|
+
if ! bash scripts/launchd_wiring_check.sh --self-test >/dev/null 2>&1; then
|
|
1141
|
+
echo "FAIL launchd_wiring_check --self-test"
|
|
1142
|
+
bash scripts/launchd_wiring_check.sh --self-test 2>&1 | grep '❌' | head -5
|
|
1143
|
+
fail=1
|
|
1144
|
+
else
|
|
1145
|
+
echo "PASS launchd_wiring_check --self-test (10 lanes)"
|
|
1146
|
+
fi
|
|
1147
|
+
fi
|
|
1148
|
+
|
|
1149
|
+
# context_continuity_score — 「압축 후 모델이 여전히 답하나」의 격리 채점기. 자기검사 12 레인.
|
|
1150
|
+
# 🟥 이 배선이 없으면 채점 규칙이 조용히 썩는다. 실제로 이 스크립트는 만든 당일에 세 번 틀렸고
|
|
1151
|
+
# (positive 오채점 · 거절 어휘 누락 · negative 게이트 구멍) 셋 다 이 레인들이 잡는 형태다.
|
|
1152
|
+
# subject 는 있는데 anchor 가 없으면 FAIL 이지 skip 이 아니다.
|
|
1153
|
+
if [ ! -f scripts/context_continuity_score.sh ]; then
|
|
1154
|
+
_absent_subject_verdict "context_continuity_score --self-test" "scripts/context_continuity_score.sh" || fail=1
|
|
1155
|
+
else
|
|
1156
|
+
if ! bash scripts/context_continuity_score.sh --self-test >/dev/null 2>&1; then
|
|
1157
|
+
echo "FAIL context_continuity_score --self-test"
|
|
1158
|
+
bash scripts/context_continuity_score.sh --self-test 2>&1 | grep '❌' | head -5
|
|
1159
|
+
fail=1
|
|
1160
|
+
else
|
|
1161
|
+
echo "PASS context_continuity_score --self-test (12 lanes)"
|
|
1162
|
+
fi
|
|
1163
|
+
fi
|
|
1164
|
+
|
|
1068
1165
|
# marker axes-run lanes — 훅의 축 자기대조 형식 검사(§CLAUDE.md 3층 자기 대조)의 앵커.
|
|
1069
1166
|
# ⚠️ 「4축」이라고 적혀 있었는데 2026-08-17 부로 **6축 분기가 생겼다**(마커 날짜 >= 그 날이면
|
|
1070
1167
|
# 기호 키 ⓐ~ⓕ 요구, 미만이면 옛 ASCII 넷). 산문 층이라 레인은 안 깨지고 조용히 stale 이었다.
|