@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.
Files changed (50) hide show
  1. package/.claude/rules/fh_4axis_gate.md +14 -1
  2. package/.claude-plugin/marketplace.json +4 -4
  3. package/CLAUDE.md +5 -4
  4. package/README.md +8 -6
  5. package/knowledge/shared/harness-core/claude_md_gate_details.md +34 -0
  6. package/knowledge/shared/harness-core/fh_integration_contract.md +0 -1
  7. package/knowledge/shared/harness-core/fh_opencode_governance_wrapper.md +0 -1
  8. package/knowledge/shared/harness-core/fh_three_layer_canon.md +110 -2
  9. package/knowledge/shared/harness-core/field_verdict_crossfamily_gate.md +22 -0
  10. package/knowledge/shared/harness-core/governance_engineering_definition.md +16 -0
  11. package/knowledge/shared/harness-core/harness_verification_core_extended.md +26 -0
  12. package/knowledge/shared/harness-core/ship_readiness_gate.md +3 -0
  13. package/knowledge/shared/harness-core/sonnet_floor_doctrine.md +19 -0
  14. package/package.json +10 -2
  15. package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
  16. package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
  17. package/plugins/fh-meta/CHANGELOG.md +9 -0
  18. package/plugins/fh-meta/skills/install-wizard/SKILL_detail.md +17 -3
  19. package/plugins/fh-meta/skills/verify-bidirectional/SKILL.md +1 -1
  20. package/plugins/fh-preprep/.claude-plugin/plugin.json +2 -2
  21. package/plugins/fh-preprep/README.md +11 -0
  22. package/plugins/fh-preprep/skills/preprep/SKILL.md +47 -1
  23. package/plugins/fh-preprep/skills/preprep/lane_speech_coach.py +1080 -0
  24. package/plugins/fh-preprep/skills/preprep/test_lane_speech_coach.py +705 -0
  25. package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
  26. package/scripts/cluster_capability_scan.sh +17 -0
  27. package/scripts/compaction_probe.sh +102 -23
  28. package/scripts/count_check.sh +37 -10
  29. package/scripts/field_canon_preload.sh +84 -2
  30. package/scripts/marker_diff_sha.sh +13 -0
  31. package/scripts/mutation_probe.py +1541 -0
  32. package/scripts/revert_probe.sh +5 -6
  33. package/scripts/selfcheck.sh +48 -0
  34. package/scripts/test_axis23_skip_reason_lanes.sh +109 -0
  35. package/scripts/test_count_check_all_plugins_lanes.sh +130 -0
  36. package/scripts/test_field_canon_lanes.sh +33 -0
  37. package/scripts/test_hook_templates_copilot_compat_lanes.sh +250 -0
  38. package/scripts/test_marker_diff_sha_lanes.sh +129 -0
  39. package/scripts/test_mutation_probe_lanes.sh +786 -0
  40. package/scripts/test_preprep_speech_coach_lanes.sh +62 -0
  41. package/scripts/test_skill_canon_preload_lanes.sh +148 -0
  42. package/scripts/universal_guard_check.sh +2 -0
  43. package/templates/.git-hooks/pre-commit +109 -5
  44. package/templates/goal-quench-hook-setup.md +3 -3
  45. package/templates/goal-quench-settings-merged.json +0 -1
  46. package/templates/settings.Compaction.snippet.json +0 -2
  47. package/templates/settings.FieldCanon.snippet.json +0 -1
  48. package/templates/settings.SessionStart.snippet.json +0 -2
  49. package/templates/settings.SubagentStop.snippet.json +0 -1
  50. package/templates/subagent-tally-hook.json +0 -1
@@ -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. Mutation-testing research (arXiv 2607.22880,
12
- # and the companion Meta engineering write-up cited alongside it in
13
- # frontier_verification_map_2026-09-04.md ยงโ“•) found that coverage/mutation SCORE loses its
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 score decorrelates from real effectiveness"
110
- echo " once suite size is controlled for โ€” do not average or extrapolate from a single run."
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
 
@@ -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