@chrono-meta/fh-gate 3.24.0 โ 3.25.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 +14 -1
- package/.claude-plugin/marketplace.json +4 -4
- package/CLAUDE.md +5 -4
- package/README.md +8 -6
- package/knowledge/shared/harness-core/claude_md_gate_details.md +34 -0
- package/knowledge/shared/harness-core/fh_integration_contract.md +0 -1
- package/knowledge/shared/harness-core/fh_opencode_governance_wrapper.md +0 -1
- package/knowledge/shared/harness-core/fh_three_layer_canon.md +110 -2
- package/knowledge/shared/harness-core/field_verdict_crossfamily_gate.md +22 -0
- package/knowledge/shared/harness-core/governance_engineering_definition.md +16 -0
- package/knowledge/shared/harness-core/harness_verification_core_extended.md +26 -0
- package/knowledge/shared/harness-core/ship_readiness_gate.md +3 -0
- package/knowledge/shared/harness-core/sonnet_floor_doctrine.md +19 -0
- package/package.json +10 -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 +9 -0
- package/plugins/fh-meta/skills/install-wizard/SKILL_detail.md +17 -3
- package/plugins/fh-meta/skills/verify-bidirectional/SKILL.md +1 -1
- package/plugins/fh-preprep/.claude-plugin/plugin.json +2 -2
- package/plugins/fh-preprep/README.md +11 -0
- package/plugins/fh-preprep/skills/preprep/SKILL.md +47 -1
- package/plugins/fh-preprep/skills/preprep/lane_speech_coach.py +1080 -0
- package/plugins/fh-preprep/skills/preprep/test_lane_speech_coach.py +705 -0
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/cluster_capability_scan.sh +17 -0
- package/scripts/compaction_probe.sh +102 -23
- package/scripts/count_check.sh +37 -10
- package/scripts/field_canon_preload.sh +84 -2
- package/scripts/marker_diff_sha.sh +13 -0
- package/scripts/mutation_probe.py +1541 -0
- package/scripts/revert_probe.sh +5 -6
- package/scripts/selfcheck.sh +48 -0
- package/scripts/test_axis23_skip_reason_lanes.sh +109 -0
- package/scripts/test_count_check_all_plugins_lanes.sh +130 -0
- package/scripts/test_field_canon_lanes.sh +33 -0
- package/scripts/test_hook_templates_copilot_compat_lanes.sh +250 -0
- package/scripts/test_marker_diff_sha_lanes.sh +129 -0
- package/scripts/test_mutation_probe_lanes.sh +786 -0
- package/scripts/test_preprep_speech_coach_lanes.sh +62 -0
- package/scripts/test_skill_canon_preload_lanes.sh +148 -0
- package/scripts/universal_guard_check.sh +2 -0
- package/templates/.git-hooks/pre-commit +109 -5
- package/templates/goal-quench-hook-setup.md +3 -3
- package/templates/goal-quench-settings-merged.json +0 -1
- package/templates/settings.Compaction.snippet.json +0 -2
- package/templates/settings.FieldCanon.snippet.json +0 -1
- package/templates/settings.SessionStart.snippet.json +0 -2
- package/templates/settings.SubagentStop.snippet.json +0 -1
- package/templates/subagent-tally-hook.json +0 -1
package/scripts/revert_probe.sh
CHANGED
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
# lines changed color) is a mechanization trigger, not a one-off. This is that mechanization.
|
|
9
9
|
#
|
|
10
10
|
# ๐ฅ FRONTIER WARNING โ read before citing this tool's PASS as "the suite has detection power".
|
|
11
|
-
# A single revert of a single file is ONE mutant.
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
# correlation with real fault-detection effectiveness once suite size is controlled for โ a
|
|
11
|
+
# A single revert of a single file is ONE mutant. The LLM-test replication study (https://arxiv.org/abs/2607.22880)
|
|
12
|
+
# finds coverage/mutation metrics are context-dependent, not universally uncorrelated after
|
|
13
|
+
# controlling suite size. Neither a score nor this one-file probe certifies a whole suite โ a
|
|
15
14
|
# single kill is evidence the ANCHOR under test is load-bearing for THIS ONE reverted file,
|
|
16
15
|
# never a general claim that the suite "has good mutation coverage" or "catches regressions".
|
|
17
16
|
# Run this against every file you actually care about; do not average or extrapolate from one.
|
|
@@ -106,8 +105,8 @@ echo "baseline: $BASELINE"
|
|
|
106
105
|
echo ""
|
|
107
106
|
echo "๐ฅ FRONTIER WARNING (arXiv 2607.22880): this run reverts EXACTLY ONE file โ ONE mutant."
|
|
108
107
|
echo " A โ
verdict here means the anchor caught THIS mutant, not that the suite has general"
|
|
109
|
-
echo " mutation-detection power. Coverage/mutation
|
|
110
|
-
echo "
|
|
108
|
+
echo " mutation-detection power. Coverage/mutation metrics are context-dependent โ do not average"
|
|
109
|
+
echo " or extrapolate from a single run."
|
|
111
110
|
echo "๋๋๋ฆฐ ํ์ผ(๋ฎคํดํธ) ์: 1 โ $REL_PATH"
|
|
112
111
|
echo ""
|
|
113
112
|
|
package/scripts/selfcheck.sh
CHANGED
|
@@ -442,6 +442,19 @@ else
|
|
|
442
442
|
fail=1
|
|
443
443
|
fi
|
|
444
444
|
|
|
445
|
+
# The README header sum must cover every plugin on disk. It summed two of four until 2026-10-01
|
|
446
|
+
# and passed a README that was five skills stale โ pinned here so a hand-picked sum cannot return.
|
|
447
|
+
if [ ! -f scripts/count_check.sh ]; then
|
|
448
|
+
_absent_subject_verdict "count_check all-plugins lanes" "scripts/count_check.sh" || fail=1
|
|
449
|
+
elif [ -f scripts/test_count_check_all_plugins_lanes.sh ]; then
|
|
450
|
+
if ! bash scripts/test_count_check_all_plugins_lanes.sh; then
|
|
451
|
+
fail=1
|
|
452
|
+
fi
|
|
453
|
+
else
|
|
454
|
+
echo "FAIL count_check all-plugins lanes: count_check.sh present but its anchor is missing"
|
|
455
|
+
fail=1
|
|
456
|
+
fi
|
|
457
|
+
|
|
445
458
|
# count_check's COUNT DECLARATION parser โ the sweep reads "N skills"/"N agents" out of a plugin
|
|
446
459
|
# description and compares it to disk. #768 shipped that sweep and wrote its own residual down:
|
|
447
460
|
# ยซ์ํ๋ description ์ ์ฒซ N skills ํจํด๋ง ์ฝ๋๋ค โ ๊ณผํ/๋ฏธํ ๋ฐฉํฅ ๋ฏธ์ธก์ ยป. Both were measured
|
|
@@ -968,6 +981,9 @@ for _pair in \
|
|
|
968
981
|
"templates/.git-hooks/pre-commit|scripts/test_marker_soul_tenet_lanes.sh" \
|
|
969
982
|
"templates/.git-hooks/pre-commit|scripts/test_marker_affected_lanes.sh" \
|
|
970
983
|
"templates/.git-hooks/pre-commit|scripts/test_marker_oracle_lanes.sh" \
|
|
984
|
+
`# โโ ๊ฒฝ๋ SKIP ์ ยซ์ฌ์ ยป ๊ฐ ์ฐธ์ธ๊ฐ (2026-10-05, ํด๋ฆฐ๋ฃธ ๊ฐ์ฌ): ํ์ ์ ๋ง๊ณ ์ฌ์ ๊ฐ ๊ฑฐ์ง์ด๋ฉด ์๋ฌด ๋ ์ธ๋ ์ ๋นจ๊ฐ์ง๋ค โโ` \
|
|
985
|
+
"templates/.git-hooks/pre-commit|scripts/test_axis23_skip_reason_lanes.sh" \
|
|
986
|
+
"templates/.git-hooks/pre-commit|scripts/test_marker_diff_sha_lanes.sh" \
|
|
971
987
|
`# โโ ํ์ ์ ๋๋ก (2026-09-06, SWE-Gate ๋ต์ต): ํฉ์ฑ ยซPASSยป ๊ฐ acceptance-evidence ๋ฅผ ๊ฐ๋ฆฌ์ง ์๋๊ฐ โโ` \
|
|
972
988
|
"templates/.git-hooks/pre-commit|scripts/test_gate_two_verdicts_lanes.sh" \
|
|
973
989
|
`# โโ fh-qp (QP) โ chamber run #18 EMIT 2026-09-05: qp_tools.sh known-pair + residency lanes โโ` \
|
|
@@ -976,6 +992,8 @@ for _pair in \
|
|
|
976
992
|
`# โโ action.yml โ the GitHub Action wrapper: its exit-code mapping is where a typed verdict could become a boolean โโ` \
|
|
977
993
|
"action.yml|scripts/test_action_yml_lanes.sh" \
|
|
978
994
|
"scripts/sim_isolated_run.sh|scripts/test_sim_path_isolation_lanes.sh" \
|
|
995
|
+
`# โโ mutation_probe (2026-10-07) โ revert_probe ์ ยซ์ ์๊ฐ ๊ณ ๋ฅธ ๋ณ์ด 1๊ฐยป ๋ฅผ ์ฐ์ฐ์ ์์ฑ ๋ณ์ด๋ก ๋ํ ๊ฒ. ์ต์ปค๊ฐ ๊ณ ์ ํ๋ ๊ฒ์ ์์ฑ๊ธฐ ๋ณด์ (๋ฆฌ๋ค์ด๋ ํธ ๋น๋ณ์ด)๊ณผ ยซ๋ชป ์ฐ ๊ฒ์ 2ยป ๋ค โโ` \
|
|
996
|
+
"scripts/mutation_probe.py|scripts/test_mutation_probe_lanes.sh" \
|
|
979
997
|
`# โโ live-eval โ the live twin of the static /prompt-regression probe check (2026-09-04) โโ` \
|
|
980
998
|
"scripts/probe_live_eval.sh|scripts/test_probe_live_eval_lanes.sh" \
|
|
981
999
|
"scripts/probe_live_eval_lib.py|scripts/test_probe_live_eval_lanes.sh" \
|
|
@@ -1033,6 +1051,8 @@ for _pair in \
|
|
|
1033
1051
|
"plugins/fh-preprep/skills/preprep/lane_promise.py|scripts/test_preprep_promise_lanes.sh" \
|
|
1034
1052
|
"plugins/fh-preprep/skills/preprep/lane_slide_refs.py|scripts/test_preprep_slide_refs_lanes.sh" \
|
|
1035
1053
|
"plugins/fh-preprep/skills/preprep/lane_font.py|scripts/test_preprep_font_lanes.sh" \
|
|
1054
|
+
`# ๋ฐํ ์ฝ์นญ(2026-10-03) โ ๋
นํ๋ฅผ ๋ฃ๋ ๋ ์ธ. ์์กด์ฑ์ด ยซ์๋ยป ์ํ๊ฐ ๊ฐ์ฅ ํํด์, ์ด ์ต์ปค๊ฐ ๊ณ ์ ํ๋ ๊ฒ์ ยซ๋ชป ๋ค์์ ๋ 0 ์ ์ ๋ธ๋คยป ๋ค` \
|
|
1055
|
+
"plugins/fh-preprep/skills/preprep/lane_speech_coach.py|scripts/test_preprep_speech_coach_lanes.sh" \
|
|
1036
1056
|
"plugins/fh-preprep/skills/preprep/SKILL.md|scripts/test_preprep_drift_anchor.sh" \
|
|
1037
1057
|
"scripts/test_preprep_drift_anchor.sh|scripts/test_preprep_drift_anchor_lanes.sh" \
|
|
1038
1058
|
"scripts/field_canon_preload.sh|scripts/test_skill_canon_preload_lanes.sh" \
|
|
@@ -1343,6 +1363,20 @@ else
|
|
|
1343
1363
|
_show_failure "$_out"
|
|
1344
1364
|
fail=1
|
|
1345
1365
|
fi
|
|
1366
|
+
# ๋ฐํ ๋ ์ธ(2026-10-02, pmh-dev #84) โ ํธ์ถ์ env ์ ํด๋ฌ์คํฐ ๋ณ์๊ฐ ์ด์ ์์ด๋ self-test ํ์ ์ด ๊ฐ์์ผ ํ๋ค.
|
|
1367
|
+
# known-pair: ์ ๋ธ๋ก(env ์์)๊ณผ ์ด ๋ธ๋ก(env ์์)์ด ๊ฐ์ ยซ0 FAILยป ์ ๋ด๊ณ , ์ด ๋ธ๋ก์ ๋น์ด ์ฌ์ค์ ์ด๋ฆ์ผ๋ก ๋งํ๋ค.
|
|
1368
|
+
if [ -f scripts/cluster_capability_scan.sh ]; then
|
|
1369
|
+
if _out=$(FH_CLUSTER_ROOTS=/nonexistent-fh-a:/nonexistent-fh-b FH_TRACKS_ROOT=/nonexistent-fh-tracks FH_PROJECTS_HOME=/nonexistent-fh-home \
|
|
1370
|
+
bash scripts/cluster_capability_scan.sh --self-test < /dev/null 2>&1) \
|
|
1371
|
+
&& printf '%s\n' "$_out" | grep -qE '์บ๋ฆฌ๋ธ๋ ์ด์
ํต๊ณผ: [1-9][0-9]* PASS / 0 FAIL' \
|
|
1372
|
+
&& printf '%s\n' "$_out" | grep -q 'ํฝ์ค์ฒ ๋ฐํ): FH_CLUSTER_ROOTS FH_TRACKS_ROOT FH_PROJECTS_HOME'; then
|
|
1373
|
+
echo "PASS cluster_capability_scan.sh --self-test hermetic under caller env ($(printf '%s\n' "$_out" | grep -oE '[0-9]+ PASS / [0-9]+ FAIL' | tail -1))"
|
|
1374
|
+
else
|
|
1375
|
+
echo "FAIL cluster_capability_scan.sh: --self-test leaks caller env (FH_CLUSTER_ROOTS/FH_TRACKS_ROOT/FH_PROJECTS_HOME) into fixture lanes"
|
|
1376
|
+
_show_failure "$_out"
|
|
1377
|
+
fail=1
|
|
1378
|
+
fi
|
|
1379
|
+
fi
|
|
1346
1380
|
|
|
1347
1381
|
# capability_effect_probe โ wired 2026-08-16. `lane_runner_check.sh` had been flagging it as an
|
|
1348
1382
|
# embedded --self-test subject with ZERO dispatchers, and that warning was load-bearing: the same
|
|
@@ -2382,6 +2416,20 @@ elif [ -f scripts/test_hook_drift_lanes.sh ]; then
|
|
|
2382
2416
|
else
|
|
2383
2417
|
echo "FAIL hook-drift lanes: hook_drift_check.sh present but its anchor is missing"; fail=1
|
|
2384
2418
|
fi
|
|
2419
|
+
# Hook templates must load in GitHub Copilot CLI too (2026-10-01): `"matcher": ""` makes Copilot
|
|
2420
|
+
# reject the WHOLE settings file (ยซmatcher cannot be emptyยป); omitted means the same in Claude Code.
|
|
2421
|
+
# Subjects = shipped templates/snippets/docs + the wizard merge blocks + hook_drift_check's "" โก omitted.
|
|
2422
|
+
if [ -f scripts/test_hook_templates_copilot_compat_lanes.sh ]; then
|
|
2423
|
+
if _out=$(bash scripts/test_hook_templates_copilot_compat_lanes.sh 2>&1); then
|
|
2424
|
+
echo "PASS test_hook_templates_copilot_compat_lanes.sh (no empty matcher shipped ยท wizard normalizes ยท drift \"\"โกomitted ยท revert probe)"
|
|
2425
|
+
else
|
|
2426
|
+
echo "FAIL test_hook_templates_copilot_compat_lanes.sh: a shipped hook template would break Copilot CLI settings loading"
|
|
2427
|
+
_show_failure "$_out"
|
|
2428
|
+
fail=1
|
|
2429
|
+
fi
|
|
2430
|
+
else
|
|
2431
|
+
echo "FAIL copilot-compat lanes: anchor scripts/test_hook_templates_copilot_compat_lanes.sh is missing"; fail=1
|
|
2432
|
+
fi
|
|
2385
2433
|
# โฃ-f session config fingerprint (2026-09-26): a mid-session overwrite of settings/CLAUDE.md went
|
|
2386
2434
|
# unnoticed on 2026-09-25. Advisory at close; the lane pins ยซno snapshot = NOT MEASUREDยป.
|
|
2387
2435
|
if [ ! -f scripts/session_config_fingerprint.sh ]; then
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# test_axis23_skip_reason_lanes.sh โ ยซAxes 2+3 ์ด ์ ์ ๋์๋ยป ๋ผ๋ ๋ฌธ์ฅ์ด ์ฐธ์ธ์ง ๊ณ ์ ํ๋ค.
|
|
3
|
+
#
|
|
4
|
+
# WHY (2026-10-05, ์ฃผ๊ฐ ํด๋ฆฐ๋ฃธ ๊ฐ์ฌ ์ค์ธก known-pair): ๊ฒฝ๋ ๋ชจ๋์ SKIP ์ค์ ์ฌ์ ๋ฅผ
|
|
5
|
+
# ยซlightweight mode โ CATALOG.md / tracks/ onlyยป ๋ผ๋ **๋ฆฌํฐ๋ด**๋ก ์ฐ๊ณ ์์๋ค. $LIGHT ๋ ๋
|
|
6
|
+
# ๊ฒฝ๋ก๋ก ์ฑ์์ง๋๋ฐ โ โ ๊ฒฝ๋ก-light(CATALOG.md ยท tracks/) ยท โ carve-out ๊ฐ๋ฑ(knowledge/**.md ยท
|
|
7
|
+
# docs/*.md ยท AGENTS.md ยท README*.md ์ prose-only diff) โ ๊ทธ ๋ฌธ์ฅ์ โ๋ง ๋งํ๋ค. ์ค์ธก:
|
|
8
|
+
# CATALOG.md ๋ง staged โ ยซCATALOG.md / tracks/ onlyยป (์ฐธ)
|
|
9
|
+
# prose-only knowledge/** ๋ง โ ยซCATALOG.md / tracks/ onlyยป (๊ฑฐ์ง โ CATALOG ๋ tracks ๋ ์๋ค)
|
|
10
|
+
# **ํ์ ์ ๋ง๊ณ ์ฌ์ ๊ฐ ๊ฑฐ์ง**์ด๋ผ ์๋ฌด ๋ ์ธ๋ ๋นจ๊ฐ์ง์ง ์์๋ค. ์ํด๋ฅผ ๋ณด๋ ์ชฝ์ ์ปค๋ฐ์ด ์๋๋ผ
|
|
11
|
+
# ํ
์ถ๋ ฅ์ ์ฝ๊ณ ยซ์ด ์ปค๋ฐ์ ์ ์ ์ฒด ๊ฒ์ดํธ๋ฅผ ์ ํ๋ยป๋ฅผ ์ฌ๊ตฌ์ฑํ๋ **๊ฐ์ฌ์**๋ค โ ์ด ์ ์ฅ์๊ฐ
|
|
12
|
+
# ์ด๋ฏธ ์ด๋ฆ์ ๊ฐ์ง ๊ฒฐํจ ๋ถ๋ฅ๋ค([[feedback_rule_misdescribes_its_own_machine]]).
|
|
13
|
+
#
|
|
14
|
+
# SCOPE โ ์ฑ๋์ด์ง ํ์ ์ด ์๋๋ค(ยงMechanization Boundary). ์ด ๋ ์ธ์ ยซ๊ฒฝ๋์ผ๋ก ๊ฐ๋ ๊ฒ ๋ง๋ยป๋ฅผ
|
|
15
|
+
# ์ ๋ฌป๋๋ค(๊ทธ ๋ผ์ฐํ
์ `test_heavy_classifier_lanes.sh` ๊ฐ ๊ณ ์ ํ๋ค). ๋ฌป๋ ๊ฒ์ ํ๋๋ค:
|
|
16
|
+
# ๋ผ์ฐํ
์ด ์ค์ค๋ก๋ฅผ ์ค๋ช
ํ๋ ๋ฌธ์ฅ์ด ๊ทธ ๋ผ์ฐํ
์ ์ค์ ์ถ์ฒ์ ์ผ์นํ๋.
|
|
17
|
+
#
|
|
18
|
+
# ๋ฐฉ๋ฒ โ ๋ ์ธต์ ๋ค ์ฐ๋ค. ํจ์๋ง ๊ฒฉ๋ฆฌํด ์ฌ๋ฉด ยซํธ์ถ๋๋๊ฐยป๋ฅผ ๊ตฌ์กฐ์ ์ผ๋ก ๋ณผ ์ ์๊ณ (๊ทธ ๊ฒฐํจ์
|
|
19
|
+
# ์ ๋ณธ์ `test_hook_leg_wiring_lanes.sh` ๋จธ๋ฆฌ๋ง), ํ
๋ง ๋๋ฆฌ๋ฉด ๊ฒฝ๊ณ ์
๋ ฅ์ ๋ชป ๋ง๋ ๋ค.
|
|
20
|
+
# โ ํฝ์ค์ฒ : ํ
์์ `_axis23_skip_reason` ์ **์ถ์ถ**ํด ๊ฒฝ๊ณ ์
๋ ฅ์ผ๋ก ๋๋ฆฐ๋ค(๋ฆฌํฐ๋ด ์ฌ์์ฑ ๊ธ์ง)
|
|
21
|
+
# โก ๋ฐฐ์ : ํฉ์ฑ ๋ ํฌ์์ **์ง์ง ํ
**์ ๋๋ ค โ ํ์ด ์ค์ ๋ก ๊ทธ ๋ฌธ์ฅ์ ๋ด๋์ง ๋ณธ๋ค +
|
|
22
|
+
# ํธ์ถ๋ถ๋ฅผ ์ ๋ฆฌํฐ๋ด๋ก ๋๋๋ฆฐ ์ฌ๋ณธ์์ ์ฌ๋ผ์ง๋์ง(known-negative)
|
|
23
|
+
#
|
|
24
|
+
# Usage: bash scripts/test_axis23_skip_reason_lanes.sh Exit: 0 PASS ยท 1 ํ๊ท ยท 10 ๊ณ๊ธฐ ๋ถ๋
|
|
25
|
+
set -uo pipefail
|
|
26
|
+
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
27
|
+
HOOK="$REPO_ROOT/templates/.git-hooks/pre-commit"
|
|
28
|
+
[ -f "$HOOK" ] || { echo "โ HARNESS-ERROR โ hook not found: $HOOK"; exit 10; }
|
|
29
|
+
T=$(mktemp -d); trap 'rm -rf "$T"' EXIT
|
|
30
|
+
FAIL=0
|
|
31
|
+
|
|
32
|
+
# โโ โ ํจ์ ์ถ์ถ. ๐ฅ ๋น๋ฉด ์๋ ํฝ์ค์ฒ๊ฐ ยซ์๋ฌด๊ฒ๋ ์๋ ๊ฒยป์ ์ฌ๊ณ ์ ๋ถ ํต๊ณผํ๋ค โ fail CLOSED.
|
|
33
|
+
sed -n '/^_axis23_skip_reason()/,/^}/p' "$HOOK" > "$T/fn.sh"
|
|
34
|
+
if ! grep -q '_axis23_skip_reason' "$T/fn.sh"; then
|
|
35
|
+
echo "โ HARNESS-ERROR โ _axis23_skip_reason ์ด $HOOK ์์ ์ถ์ถ๋์ง ์์๋ค."
|
|
36
|
+
echo " ํ
์ ๋ชจ์์ด ๋ฐ๋์๋ค. ์ด ์ถ์ถ์ ๊ณ ์ณ๋ผ โ ๋ ์ธ์ ์ง์ฐ๊ฑฐ๋ ์ฌ์ ๋ฌธ์์ด์ ์ฌ๋ณธ์"
|
|
37
|
+
echo " ์ฌ๊ธฐ ์ธ๋ผ์ธํ์ง ๋ง๋ผ(๊ทธ๊ฒ์ด ๋ ์ธ์ด ๋์์ ๋ฎ๊ธฐ๋ฅผ ๋ฉ์ถ๋ ๋ฐฉ์์ด๋ค)."
|
|
38
|
+
exit 10
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
f() { bash -c 'set -uo pipefail; . "$1"; _axis23_skip_reason "$2"' _ "$T/fn.sh" "${1-}" 2>&1; }
|
|
42
|
+
|
|
43
|
+
lane() { # $1=id $2=LIGHT $3=๊ธฐ๋ ์ฌ์ (์์ ์ผ์น)
|
|
44
|
+
local id="$1" light="$2" want="$3" got
|
|
45
|
+
got=$(f "$light")
|
|
46
|
+
if [ "$got" = "$want" ]; then printf ' โ
%-26s %s\n' "$id" "$got"
|
|
47
|
+
else printf ' โ %-26s ๊ธฐ๋ ยซ%sยป ยท ์ค์ ยซ%sยป\n' "$id" "$want" "$got"; FAIL=1; fi
|
|
48
|
+
}
|
|
49
|
+
lane_not() { # $1=id $2=LIGHT $3=๋์ค๋ฉด ์ ๋๋ ์กฐ๊ฐ
|
|
50
|
+
local id="$1" light="$2" never="$3" got
|
|
51
|
+
got=$(f "$light")
|
|
52
|
+
if grep -qF -- "$never" <<<"$got"; then
|
|
53
|
+
printf ' โ %-26s ยซ%sยป ๊ฐ ์ฌ์ ์ ์์๋ค โ ์ค์ ยซ%sยป\n' "$id" "$never" "$got"; FAIL=1
|
|
54
|
+
else printf ' โ
%-26s ยซ%sยป ์์ โ %s\n' "$id" "$never" "$got"; fi
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
echo "== โ ์ฌ์ โ \$LIGHT ์ถ์ฒ (๊ฒฝ๊ณ ์
๋ ฅ) =="
|
|
58
|
+
lane S1-path-catalog 'CATALOG.md' 'CATALOG.md / tracks/'
|
|
59
|
+
lane S2-path-tracks 'tracks/_meta/fh_completed_2026-10-05.md' 'CATALOG.md / tracks/'
|
|
60
|
+
lane S3-prose-only 'knowledge/shared/harness-core/x.md (prose-only)' 'prose-only carve-out'
|
|
61
|
+
lane S4-both 'CATALOG.md
|
|
62
|
+
docs/USER_GUIDE.md (prose-only)' 'CATALOG.md / tracks/ + prose-only carve-out'
|
|
63
|
+
# ๐ฅ ๋น ๊ฐ์ โ๊ฐ ์๋๋ค. ๋ฏธ์ธก์ /๋ถ์ฌ๋ฅผ ยซCATALOG.md / tracks/ยป ๋ก ์ ๋ ๊ฒ์ด ์ด ๊ฒฐํจ์ ์ผ๋ฐํ์ด๋ค.
|
|
64
|
+
lane S5-empty '' 'no heavy-class file staged'
|
|
65
|
+
lane S6-blank-lines '
|
|
66
|
+
|
|
67
|
+
' 'no heavy-class file staged'
|
|
68
|
+
|
|
69
|
+
echo "== โ ์ปจํธ๋กค โ ์ฌ์ ๊ฐ ๊ทธ๋ฅ ์์ชฝ ๋ค ์ฐ๋ ๊ฒ์ด ์๋๋ค =="
|
|
70
|
+
lane_not C1-prose-not-path 'AGENTS.md (prose-only)' 'CATALOG.md'
|
|
71
|
+
lane_not C2-path-not-prose 'CATALOG.md' 'prose-only'
|
|
72
|
+
|
|
73
|
+
echo "== โก ๋ฐฐ์ โ ์ง์ง ํ
์ด ๊ทธ ๋ฌธ์ฅ์ ๋ด๋ (๋๋๋ฆผ known-negative) =="
|
|
74
|
+
WP="$T/wp"; mkdir -p "$WP/knowledge/shared/harness-core" "$WP/tracks/_meta"
|
|
75
|
+
( cd "$WP" && git init -q . && git config user.email t@example.invalid && git config user.name t ) \
|
|
76
|
+
|| { echo "โ HARNESS-ERROR โ git init failed"; exit 10; }
|
|
77
|
+
ln -s "$REPO_ROOT/scripts" "$WP/scripts"
|
|
78
|
+
printf '# prose\n' > "$WP/knowledge/shared/harness-core/doctrine.md"
|
|
79
|
+
( cd "$WP" && git add knowledge/shared/harness-core/doctrine.md && git commit -qm init ) >/dev/null 2>&1
|
|
80
|
+
printf '\nํ ์ค ์ฐ๋ฌธ.\n' >> "$WP/knowledge/shared/harness-core/doctrine.md"
|
|
81
|
+
( cd "$WP" && git add knowledge/shared/harness-core/doctrine.md ) >/dev/null 2>&1
|
|
82
|
+
|
|
83
|
+
# known-negative: ํธ์ถ๋ถ๋ฅผ ์ ๋ฆฌํฐ๋ด๋ก ๋๋๋ฆฐ ์ฌ๋ณธ
|
|
84
|
+
NH="$T/hook_literal.sh"
|
|
85
|
+
sed -E 's/\[Axis 2\+3\] SKIP \(lightweight mode โ \$\(_axis23_skip_reason "\$LIGHT"\)\)/[Axis 2+3] SKIP (lightweight mode โ CATALOG.md \/ tracks\/ only)/' "$HOOK" > "$NH"
|
|
86
|
+
if grep -qF '_axis23_skip_reason "$LIGHT"' "$NH" || ! bash -n "$NH" 2>/dev/null; then
|
|
87
|
+
echo "โ HARNESS-ERROR โ ๋๋๋ฆผ ์ฌ๋ณธ์ด ํธ์ถ๋ถ๋ฅผ ๊ทธ๋๋ก ๋ค๊ณ ์๊ฑฐ๋ ๊ตฌ๋ฌธ์ด ๊นจ์ก๋ค. ์ด๋ก ๋ณด๊ณ ์ ํ๋ค."
|
|
88
|
+
exit 10
|
|
89
|
+
fi
|
|
90
|
+
|
|
91
|
+
live=$( cd "$WP" && bash "$HOOK" 2>&1 | grep -cF 'prose-only carve-out' )
|
|
92
|
+
dead=$( cd "$WP" && bash "$NH" 2>&1 | grep -cF 'prose-only carve-out' )
|
|
93
|
+
if [ "$live" -gt 0 ] && [ "$dead" -eq 0 ]; then
|
|
94
|
+
printf ' โ
%-26s WIRED (live=%s dead=%s)\n' W1-prose-arm "$live" "$dead"
|
|
95
|
+
elif [ "$live" -eq 0 ]; then
|
|
96
|
+
printf ' โ %-26s NOT REACHED โ ์ง์ง ํ
์ด ยซprose-only carve-outยป ์ ์ ์ฐ์๋ค\n' W1-prose-arm; FAIL=1
|
|
97
|
+
else
|
|
98
|
+
printf ' โ %-26s HARNESS-ERROR โ ๋๋๋ ค๋ ๋ฌธ์ฅ์ด ๋จ๋๋ค(live=%s dead=%s). ๋ฐฐ์ ์ ์ฌ๋ ๊ฒ ์๋๋ค.\n' \
|
|
99
|
+
W1-prose-arm "$live" "$dead"; FAIL=1
|
|
100
|
+
fi
|
|
101
|
+
|
|
102
|
+
echo
|
|
103
|
+
echo "๐ฅ ์ด ๋ ์ธ์ด ๋ฎ์ง ์๋ ๊ฒ (์ด๋ฆ์ผ๋ก ๋จ๊ธด๋ค):"
|
|
104
|
+
echo ' ยท ๊ฒฝ๋/์ ์ฒด **๋ผ์ฐํ
** ์์ฒด โ test_heavy_classifier_lanes.sh ๊ฐ ๊ณ ์ ํ๋ค.'
|
|
105
|
+
echo " ยท \`diff_is_substantive\` ์ ํ์ (์ด๋ค diff ๊ฐ prose-only ์ธ๊ฐ) โ ๊ฑฐ๊ธฐ๋ ๋ณ๋ ์ต์ปค๊ฐ ์๋ค."
|
|
106
|
+
echo " ยท ์ ์ฒด ๋ชจ๋์ ์ถ๋ ฅ ๋ฌธ๊ตฌ โ ์ด ๋ ์ธ์ SKIP ์ชฝ ํ ์ค๋ง ๋ณธ๋ค."
|
|
107
|
+
echo
|
|
108
|
+
if [ $FAIL -eq 0 ]; then echo "AXIS23 SKIP REASON LANES: PASS"; exit 0; fi
|
|
109
|
+
echo "AXIS23 SKIP REASON LANES: FAIL"; exit 1
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# test_count_check_all_plugins_lanes.sh โ known-pair anchor: the README ยซN skills ยท M agentsยป header
|
|
3
|
+
# is checked against the sum over EVERY plugin, not a hand-picked subset.
|
|
4
|
+
#
|
|
5
|
+
# WHY THIS EXISTS
|
|
6
|
+
# Until 2026-10-01 `count_check.sh` rendered the README header from fh-meta + fh-commons only. Two
|
|
7
|
+
# plugins added later (fh-qp 4 skills, fh-preprep 1) were outside the sum, so a README saying
|
|
8
|
+
# ยซ41 skillsยป PASSED while the disk held 46 โ the gate was green on exactly the drift it exists to
|
|
9
|
+
# catch, and the operator found it by reading the README.
|
|
10
|
+
#
|
|
11
|
+
# HOW: a disposable copy of exactly the files count_check.sh reads, plus ONE SYNTHETIC PLUGIN
|
|
12
|
+
# (`zz-lane-probe`, 1 skill, manifest + marketplace entry consistent) added by the lane itself. The
|
|
13
|
+
# defect is ยซa plugin outside the sumยป, so the lane brings its own extra plugin: it means the same
|
|
14
|
+
# thing in a repo with 4 plugins or with 2 (a downstream harness). The README is rewritten to just
|
|
15
|
+
# the header line, so a localized README elsewhere cannot change what the arms see. Expected values
|
|
16
|
+
# use count_check's own active-skill rule (first 20 lines carry no deprecation marker).
|
|
17
|
+
# Arms assert the README line AND that it is the only FAIL, so a run failing for another reason
|
|
18
|
+
# never counts as the README check firing.
|
|
19
|
+
set -uo pipefail
|
|
20
|
+
|
|
21
|
+
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
22
|
+
pass=0; fail=0
|
|
23
|
+
ok() { printf ' \342\234\205 %s\n' "$1"; pass=$((pass+1)); }
|
|
24
|
+
bad() { printf ' \342\235\214 %s\n' "$1"; fail=$((fail+1)); }
|
|
25
|
+
|
|
26
|
+
WORK=$(mktemp -d "${TMPDIR:-/tmp}/count-all-plugins.XXXXXX") || { echo "mktemp failed"; exit 1; }
|
|
27
|
+
trap 'rm -rf "$WORK"' EXIT
|
|
28
|
+
PROBE=zz-lane-probe
|
|
29
|
+
|
|
30
|
+
active_skills() { # active_skills <dir> โ same rule as count_check.sh count_active
|
|
31
|
+
local n=0 s
|
|
32
|
+
for s in "$1"/plugins/*/skills/*/SKILL.md; do
|
|
33
|
+
[ -f "$s" ] || continue
|
|
34
|
+
head -20 "$s" | grep -qE 'deprecated: true|DEPRECATED' || n=$((n+1))
|
|
35
|
+
done
|
|
36
|
+
echo "$n"
|
|
37
|
+
}
|
|
38
|
+
agents() { ls "$1"/plugins/*/agents/*.md 2>/dev/null | wc -l | tr -d ' '; }
|
|
39
|
+
|
|
40
|
+
mkcopy() { # mkcopy <dir> โ count_check's inputs from this tree + the synthetic plugin
|
|
41
|
+
local p
|
|
42
|
+
mkdir -p "$1/scripts" "$1/templates" || return 1
|
|
43
|
+
for p in plugins .claude-plugin scripts/count_check.sh templates/local_fh_context.md; do
|
|
44
|
+
[ -e "$REPO_ROOT/$p" ] || { echo " missing input: $p"; return 1; }
|
|
45
|
+
cp -R "$REPO_ROOT/$p" "$1/$p" || return 1
|
|
46
|
+
done
|
|
47
|
+
mkdir -p "$1/plugins/$PROBE/.claude-plugin" "$1/plugins/$PROBE/skills/probe-skill" || return 1
|
|
48
|
+
printf '{"name":"%s","description":"Lane probe plugin: 1 skills + 0 agents"}\n' "$PROBE" \
|
|
49
|
+
> "$1/plugins/$PROBE/.claude-plugin/plugin.json"
|
|
50
|
+
printf -- '---\nname: probe-skill\ndescription: lane probe\n---\n# probe\n' \
|
|
51
|
+
> "$1/plugins/$PROBE/skills/probe-skill/SKILL.md"
|
|
52
|
+
python3 - "$1/.claude-plugin/marketplace.json" "$PROBE" <<'PY' || return 1
|
|
53
|
+
import json, sys
|
|
54
|
+
p, name = sys.argv[1], sys.argv[2]
|
|
55
|
+
d = json.load(open(p))
|
|
56
|
+
d["plugins"].append({"name": name, "source": "./plugins/" + name,
|
|
57
|
+
"description": "Lane probe plugin: 1 skills + 0 agents"})
|
|
58
|
+
json.dump(d, open(p, "w"), ensure_ascii=False, indent=2)
|
|
59
|
+
PY
|
|
60
|
+
}
|
|
61
|
+
readme() { printf '# fixture\n\n## %s skills ยท %s agents\n' "$2" "$3" > "$1/README.md"; }
|
|
62
|
+
fails_other_than_readme() { printf '%s\n' "$1" | grep '^FAIL ' | grep -v 'FAIL count: README header' | head -3; }
|
|
63
|
+
|
|
64
|
+
echo "== count_check README header = sum over all plugins โ known pair =="
|
|
65
|
+
|
|
66
|
+
# A1 โ README states the full sum including the probe plugin โ PASS, no FAIL lines at all.
|
|
67
|
+
if mkcopy "$WORK/a1"; then
|
|
68
|
+
N=$(active_skills "$WORK/a1"); M=$(agents "$WORK/a1"); readme "$WORK/a1" "$N" "$M"
|
|
69
|
+
out=$(bash "$WORK/a1/scripts/count_check.sh" 2>&1); rc=$?
|
|
70
|
+
if [ "$rc" -eq 0 ] && printf '%s' "$out" | grep -q "PASS count: README header"; then
|
|
71
|
+
ok "A1 README = all-plugin sum (${N} skills incl. the probe plugin) โ PASS"
|
|
72
|
+
else bad "A1 expected PASS (rc=$rc): $(printf '%s' "$out" | grep -E '^FAIL' | head -3)"; fi
|
|
73
|
+
else bad "A1 fixture could not be built"; fi
|
|
74
|
+
|
|
75
|
+
# A2 โ README omits the probe plugin (the shape of the 2026-10-01 defect) โ FAIL on README only.
|
|
76
|
+
if mkcopy "$WORK/a2"; then
|
|
77
|
+
N=$(active_skills "$WORK/a2"); M=$(agents "$WORK/a2"); readme "$WORK/a2" "$((N - 1))" "$M"
|
|
78
|
+
out=$(bash "$WORK/a2/scripts/count_check.sh" 2>&1); rc=$?
|
|
79
|
+
other=$(fails_other_than_readme "$out")
|
|
80
|
+
if [ "$rc" -ne 0 ] && printf '%s' "$out" | grep -q "FAIL count: README header โ expected \"${N} skills" && [ -z "$other" ]; then
|
|
81
|
+
ok "A2 README missing one plugin's skill (${N}-1) โ FAIL on README header only"
|
|
82
|
+
else bad "A2 stale README not caught as the sole failure (rc=$rc): $(printf '%s' "$out" | grep -E '^FAIL' | head -3)"; fi
|
|
83
|
+
else bad "A2 fixture could not be built"; fi
|
|
84
|
+
|
|
85
|
+
# A3 โ a deprecated skill in the probe plugin is NOT counted (same rule as the gate).
|
|
86
|
+
if mkcopy "$WORK/a3"; then
|
|
87
|
+
N=$(active_skills "$WORK/a3"); M=$(agents "$WORK/a3")
|
|
88
|
+
mkdir -p "$WORK/a3/plugins/$PROBE/skills/old-skill"
|
|
89
|
+
printf -- '---\nname: old-skill\ndeprecated: true\n---\n# old\n' > "$WORK/a3/plugins/$PROBE/skills/old-skill/SKILL.md"
|
|
90
|
+
readme "$WORK/a3" "$N" "$M"
|
|
91
|
+
out=$(bash "$WORK/a3/scripts/count_check.sh" 2>&1); rc=$?
|
|
92
|
+
if [ "$rc" -eq 0 ] && printf '%s' "$out" | grep -q "PASS count: README header"; then
|
|
93
|
+
ok "A3 deprecated skill in a later plugin leaves the header at ${N} โ PASS"
|
|
94
|
+
else bad "A3 deprecated skill changed the expected header (rc=$rc): $(printf '%s' "$out" | grep -E '^FAIL' | head -3)"; fi
|
|
95
|
+
else bad "A3 fixture could not be built"; fi
|
|
96
|
+
|
|
97
|
+
# A4 โ a skill-bearing directory without a manifest is not silently left out of the sum.
|
|
98
|
+
if mkcopy "$WORK/a4"; then
|
|
99
|
+
N=$(active_skills "$WORK/a4"); M=$(agents "$WORK/a4"); readme "$WORK/a4" "$N" "$M"
|
|
100
|
+
mkdir -p "$WORK/a4/plugins/zz-orphan/skills/a"; printf '# a\n' > "$WORK/a4/plugins/zz-orphan/skills/a/SKILL.md"
|
|
101
|
+
out=$(bash "$WORK/a4/scripts/count_check.sh" 2>&1); rc=$?
|
|
102
|
+
if [ "$rc" -ne 0 ] && printf '%s' "$out" | grep -q "plugins/zz-orphan ์ ์คํฌ์ด ์๋๋ฐ .claude-plugin/plugin.json ์ด ์๋ค"; then
|
|
103
|
+
ok "A4 orphan skill directory without plugin.json โ FAIL by name"
|
|
104
|
+
else bad "A4 orphan skill directory passed silently (rc=$rc): $(printf '%s' "$out" | grep -E '^FAIL' | head -3)"; fi
|
|
105
|
+
else bad "A4 fixture could not be built"; fi
|
|
106
|
+
|
|
107
|
+
# A5 โ --staged counts the INDEX: a plugin staged but gone from the worktree is still in the sum.
|
|
108
|
+
if mkcopy "$WORK/a5" && command -v git >/dev/null 2>&1; then
|
|
109
|
+
N=$(active_skills "$WORK/a5"); M=$(agents "$WORK/a5"); readme "$WORK/a5" "$N" "$M"
|
|
110
|
+
( cd "$WORK/a5" && git init -q && git add -A ) || bad "A5 git index could not be built"
|
|
111
|
+
mkdir -p "$WORK/a5/plugins/zz-staged/.claude-plugin" "$WORK/a5/plugins/zz-staged/skills/s"
|
|
112
|
+
printf '{"name":"zz-staged","description":"1 skills + 0 agents"}\n' > "$WORK/a5/plugins/zz-staged/.claude-plugin/plugin.json"
|
|
113
|
+
printf '# s\n' > "$WORK/a5/plugins/zz-staged/skills/s/SKILL.md"
|
|
114
|
+
python3 - "$WORK/a5/.claude-plugin/marketplace.json" <<'PY'
|
|
115
|
+
import json, sys
|
|
116
|
+
p = sys.argv[1]; d = json.load(open(p))
|
|
117
|
+
d["plugins"].append({"name": "zz-staged", "source": "./plugins/zz-staged", "description": "1 skills + 0 agents"})
|
|
118
|
+
json.dump(d, open(p, "w"), ensure_ascii=False, indent=2)
|
|
119
|
+
PY
|
|
120
|
+
( cd "$WORK/a5" && git add plugins/zz-staged .claude-plugin/marketplace.json && rm -rf plugins/zz-staged )
|
|
121
|
+
out=$(cd "$WORK/a5" && bash scripts/count_check.sh --staged 2>&1); rc=$?
|
|
122
|
+
other=$(fails_other_than_readme "$out")
|
|
123
|
+
if [ "$rc" -ne 0 ] && printf '%s' "$out" | grep -q "FAIL count: README header โ expected \"$((N + 1)) skills" && [ -z "$other" ]; then
|
|
124
|
+
ok "A5 --staged sees a staged-only plugin โ README header expects $((N + 1)), sole failure"
|
|
125
|
+
else bad "A5 staged-only plugin left out of the sum (rc=$rc): $(printf '%s' "$out" | grep -E '^FAIL|README' | head -3)"; fi
|
|
126
|
+
else bad "A5 fixture could not be built (needs git)"; fi
|
|
127
|
+
|
|
128
|
+
echo "----"
|
|
129
|
+
echo "count_check all-plugins lanes: $pass passed, $fail failed"
|
|
130
|
+
[ "$fail" -eq 0 ] || exit 1
|
|
@@ -162,5 +162,38 @@ w2=$(printf '%s' '{"session_id":"RX2","prompt":"q.sp ๋ฅผ ๋ณด์"}' \
|
|
|
162
162
|
[ -n "$w2" ] && ok "โญ-b โ
์ปจํธ๋กค: ์ ํํ 'q.sp' ๋ ์กํ๋ค(โญ ์ ์นจ๋ฌต์ด ๊ณตํํ์ง ์๋ค)" \
|
|
163
163
|
|| no "โญ-b ์ปจํธ๋กค" "์ ํํ ์ด๋ฆ๋ ๋ชป ์ก๋๋ค โ โญ ๋ ๋ฌด์๋ ์ฆ๋ช
ํ์ง ์๋๋ค"
|
|
164
164
|
|
|
165
|
+
# โฎ (2026-10-03 2๋ผ์ด๋) ๊ธด ์ฌ๋ฌ ์ค ํ๋กฌํํธ โ ๋งคํ ๋ฃจํ์ `printf "$PROMPT" | grep -qiF "$name"` ์
|
|
166
|
+
# grep -q ๊ฐ ์ฒซ ์ค ์ผ์น์ ํ์ดํ๋ฅผ ๋ซ์ผ๋ฉด printf ๊ฐ SIGPIPE ๋ก ์ฃฝ์ด(pipefail โ 141) ยซ์ ๋ง์ใ์ผ๋ก
|
|
167
|
+
# ์ฝํ๋ค. ์๋ฆฌ ์ ์ค์ธก: ยซqasp ๋ณด์\nใ + x 1,000,000 โ 3/3 MISS. ํฝ์ค์ฒ๋ ํ์ผ ๋ฆฌ๋ค์ด๋ ํธ(๋ ์ธ ์ชฝ ํ์ดํ ์์).
|
|
168
|
+
python3 -c 'import json,sys; sys.stdout.write(json.dumps({"prompt":"qasp ๋ณด์\n"+"x"*1000000}))' > "$TMP/big15.json" 2>/dev/null
|
|
169
|
+
if [ -s "$TMP/big15.json" ]; then
|
|
170
|
+
out=$(env CLAUDE_PROJECT_DIR="$FHUB" FIELD_CANON_PROJECT_ROOT="$FPROJ" FIELD_CANON_SENTINEL_DIR="$TMP/15" bash "$H" < "$TMP/big15.json" 2>&1)
|
|
171
|
+
case "$out" in *qasp*README.md*) ok "โฎ ๊ธด ์ฌ๋ฌ ์ค ํ๋กฌํํธ์ ์ฒซ ์ค ยซqaspใ โ ์ ๋ณธ ๊ฒฝ๋ก ์ ์ (SIGPIPE ๋ก ๋์น์ง ์๋๋ค)" ;;
|
|
172
|
+
*) no "โฎ ๊ธด ์ฌ๋ฌ ์ค ํ๋กฌํํธ" "์ฒซ ์ค์ ๋งคํ ์ด๋ฆ์ ๋์ณค๋ค" ;; esac
|
|
173
|
+
out=$(run '{"prompt":"QASP ๋ณด์"}' "$TMP/15b")
|
|
174
|
+
case "$out" in *qasp*README.md*) ok "โฎ-b ๋์๋ฌธ์ ๋ฌด์๋ ์ ์ง๋๋ค (ยซQASPใ โ ์กํ๋ค, grep -i ์ ๊ฐ์ ์๋ฏธ)" ;;
|
|
175
|
+
*) no "โฎ-b ๋์๋ฌธ์" "ยซQASPใ๋ฅผ ๋ชป ์ก๋๋ค โ case ์ ํ์ด -i ์๋ฏธ๋ฅผ ์์๋ค" ;; esac
|
|
176
|
+
else
|
|
177
|
+
no "โฎ CONTROL" "1MB ํฝ์ค์ฒ ์์ฑ ์คํจ โ ๋ ์ธ ๋ฌดํจ"
|
|
178
|
+
fi
|
|
179
|
+
|
|
180
|
+
# โฏ (2026-10-03 3๋ผ์ด๋) ๋น ํ๋ก์ ํธ ์ด๋ฆ โ `*""*` ๋ ๋ชจ๋ ํ๋กฌํํธ์ ๋ง๋๋ค. ๋จ์ด ๋ถํ ๋ก๋ ๋น ์ด๋ฆ์ด
|
|
181
|
+
# ์ ์๊ธฐ๋ฏ๋ก ์ด์์ ๋๋ฌํ์ง ์๋๋ค(๋ฐฉ์ด ๊ฐ๋). ํ
์ฌ๋ณธ์ ๋ฃจํ์ ๋น ์ด๋ฆ์ ๋ผ์ ์ฐ๋ค.
|
|
182
|
+
mkdir -p "$TMP/h16"; cp "$HERE/fh_track_resolve.sh" "$TMP/h16/" # ํ
์ด ํ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์์คํ๋ค
|
|
183
|
+
HC16="$TMP/h16/field_canon_preload.sh"
|
|
184
|
+
# ๐ ๋น ์ด๋ฆ์ **๋ ๊ฒน์ผ๋ก** ์ด์์ ๋๋ฌ ๋ถ๊ฐ๋ค: โ ๋จ์ด ๋ถํ ์ด ๋น ์ด๋ฆ์ ์ ๋ง๋ ๋ค โก ์ผํฐ๋ฌ ๊ฒ์ฌ
|
|
185
|
+
# `[ -e "$SENT_DIR/$name" ]` ๊ฐ ๋น ์ด๋ฆ์ด๋ฉด ๋๋ ํฐ๋ฆฌ `$SENT_DIR/` ์์ฒด๋ผ ์ฐธ โ continue(๋๋๋ฆผ ์ค์ธก:
|
|
186
|
+
# ๊ฐ๋๋ฅผ ์ง์๋ ์ด ๋ ์ธ์ด ์ด๋ก์ด์๋ค). ๊ทธ๋์ ์ฌ๋ณธ์์ โก๋ ๊ฑท์ด **๊ฐ๋๋ง** ๋จ๊ธด ์ํ๋ฅผ ์ฐ๋ค.
|
|
187
|
+
sed -e 's/^for name in \$mapped; do$/for name in "" $mapped; do/' \
|
|
188
|
+
-e 's/^ \[ -n "\$SENT_DIR" \] && \[ -e "\$SENT_DIR\/\$name" \] && continue.*$/ :/' "$H" > "$HC16"
|
|
189
|
+
if grep -q '^for name in "" \$mapped; do$' "$HC16" && ! grep -q 'SENT_DIR/\$name" \] && continue' "$HC16"; then
|
|
190
|
+
out=$(printf '%s' '{"prompt":"์ค๋ ๋ ์จ ์ด๋"}' | env CLAUDE_PROJECT_DIR="$FHUB" FIELD_CANON_PROJECT_ROOT="$FPROJ" FIELD_CANON_SENTINEL_DIR="$TMP/16" bash "$HC16" 2>&1)
|
|
191
|
+
[ -z "$out" ] && ok "โฏ ๋น ํ๋ก์ ํธ ์ด๋ฆ์ด ๋ฌด๊ดํ ํ๋กฌํํธ์ ๊ฑธ๋ฆฌ์ง ์๋๋ค" || no "โฏ ๋น ์ด๋ฆ" "๋ฌด๊ดํ ํ๋กฌํํธ์ ์ถ๋ ฅ: $out"
|
|
192
|
+
out=$(printf '%s' '{"prompt":"qasp ๋ณด์"}' | env CLAUDE_PROJECT_DIR="$FHUB" FIELD_CANON_PROJECT_ROOT="$FPROJ" FIELD_CANON_SENTINEL_DIR="$TMP/16b" bash "$HC16" 2>&1)
|
|
193
|
+
case "$out" in *qasp*README.md*) ok "โฏ-b CONTROL: ๊ฐ์ ์ฌ๋ณธ์์ ์ง์ง ์ด๋ฆ์ ์กํ๋ค" ;; *) no "โฏ-b CONTROL" "์ฌ๋ณธ์ด ์ ๋๋ค" ;; esac
|
|
194
|
+
else
|
|
195
|
+
no "โฏ CONTROL" "ํ
์ฌ๋ณธ ์์ ์คํจ โ ๋ ์ธ ๋ฌดํจ"
|
|
196
|
+
fi
|
|
197
|
+
|
|
165
198
|
echo "โโ PASS $PASS ยท FAIL $FAIL"
|
|
166
199
|
[ "$FAIL" -eq 0 ] || exit 1
|