@chrono-meta/fh-gate 2.14.0 โ 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/AGENTS.md +33 -0
- package/knowledge/shared/harness-core/ship_readiness_gate.md +132 -4
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +91 -0
- package/package.json +4 -1
- package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-commons/skills/preprep/SKILL.md +1 -1
- package/plugins/fh-commons/skills/preprep/preprep.py +14 -1
- package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/CHANGELOG.md +62 -0
- package/scripts/context_continuity_score.sh +499 -40
- package/scripts/directional_diff_gate.sh +11 -4
- package/scripts/fixture_guard_lib.sh +55 -0
- package/scripts/novelty_claim_check.sh +5 -1
- package/scripts/package_coverage_check.sh +20 -0
- package/scripts/portability_lint.sh +87 -0
- package/scripts/prepush_guard_check.sh +2 -2
- package/scripts/public_surface_scan_files.sh +36 -1
- package/scripts/selfcheck.sh +74 -1
- package/scripts/session_close_check.sh +17 -0
- package/scripts/shell_name_boundary_scan.sh +30 -0
- package/scripts/sim_isolated_run.sh +148 -3
- package/scripts/test_branch_claim_lanes.sh +8 -3
- package/scripts/test_env_purity_lanes.sh +4 -1
- package/scripts/test_mapped_tracks_lanes.sh +6 -2
- package/scripts/test_memory_link_check.sh +3 -1
- package/scripts/test_node_check_lanes.sh +5 -2
- package/scripts/test_node_infra_delta_lanes.sh +3 -1
- package/scripts/test_peer_worktree_detect_lanes.sh +3 -1
- package/scripts/test_prepush_destructive_lanes.sh +5 -2
- package/scripts/test_prepush_stdin_integrity.sh +2 -2
- package/scripts/test_regression_guard_ci_lanes.sh +4 -1
- package/scripts/test_selfcheck_state_lanes.sh +19 -4
- package/scripts/test_session_close_lanes.sh +5 -5
- package/scripts/test_sim_isolated_run_lanes.sh +46 -0
- package/scripts/test_target_freeze_lanes.sh +3 -1
- package/scripts/test_verdict_watermark_lanes.sh +427 -0
- package/scripts/test_wizard_snippet_merge_lanes.sh +4 -1
- package/scripts/universal_guard_check.sh +1 -1
- package/templates/.git-hooks/pre-commit +22 -2
- package/templates/.git-hooks/pre-push +8 -3
- package/templates/predelete_check.sh +4 -2
- package/templates/regression_guard.sh +7 -1
|
@@ -115,9 +115,16 @@ trap 'rm -rf "$TMP"' EXIT
|
|
|
115
115
|
# invisible: a truncated sort leaves an empty file, comm then produces an empty `lost`, and
|
|
116
116
|
# nlost=0 renders as CLEAN. An instrument that failed must not answer "nothing was lost".
|
|
117
117
|
compute_lost() { # $1=R file $2=L file
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
# ๐ฅ 2026-09-01 โ `LC_ALL=C` ๊ฐ ํ์ค์ด๋ค. ์ด ๋ก์ผ์ผ์์ `sort`/`comm` ์ **ASCII ์ ๋๊ฐ ๊ฐ๊ณ
|
|
119
|
+
# ๊ทธ ๋ค๊ฐ ๋นASCII ์ธ ๋ ์ค์ ยซ๊ฐ๋คยป๊ณ ์ ๋๋ค**(๋น๊ต๊ฐ ์ฒซ ๋นASCII ๋ฐ์ดํธ์์ ์๋ฆฐ๋ค).
|
|
120
|
+
# ๋น๊ต ๋์์ ยซํ์ผ ๋ด์ฉ์ ์คยป์ด๊ณ ์ด ์ ์ฅ์ ๋ฌธ์๋ ํ๊ธ์ด๋ค. ์ค์ธก:
|
|
121
|
+
# ใํ๊ธ ์ค ํ๋ใ vs ใํ๊ธ ์ค ๋ใ โ comm -23 **0 ์ค** ยท LC_ALL=C **1 ์ค** ยท ASCII ์ปจํธ๋กค 1 ์ค
|
|
122
|
+
# โ ์์ด์ง ์ค์ด ยซ0ยป ์ผ๋ก ๋ ๋๋๊ณ ์ ์ฃผ์์ด ๊ฒฝ๊ณ ํ ๊ทธ CLEAN ์ค๋ต์ด ๊ทธ๋๋ก ๋๋ค.
|
|
123
|
+
# rc ์คํจ ๊ฒฝ๋ก๋ ์๋ `|| return 10` ์ด ๋ง์ง๋ง **๋ก์ผ์ผ ์ ํ์ rc ๊ฐ 0 ์ด๋ผ ์ ๋งํ๋ค** โ
|
|
124
|
+
# ๊ฐ์ ๊ฒฐ๊ณผ๊ฐ ๋ค๋ฅธ ์์ธ์ผ๋ก ๋๋ค. [[feedback_locale_string_equality_breaks_nonascii]]
|
|
125
|
+
LC_ALL=C sort "$1" > "$TMP/rs" || return 10
|
|
126
|
+
LC_ALL=C sort "$2" > "$TMP/ls" || return 10
|
|
127
|
+
LC_ALL=C comm -23 "$TMP/rs" "$TMP/ls" > "$TMP/lost" || return 10
|
|
121
128
|
return 0
|
|
122
129
|
}
|
|
123
130
|
|
|
@@ -157,7 +164,7 @@ check_path() { # $1=repo $2=base_sha $3=path
|
|
|
157
164
|
# Absent declaration = standalone/manual use; no binding is claimed and none is enforced.
|
|
158
165
|
if [ -n "${DIRECTIONAL_DIFF_PINS:-}" ] && [ -f "${DIRECTIONAL_DIFF_PINS}" ]; then
|
|
159
166
|
local want got
|
|
160
|
-
want=$(awk -F'\t' -v p="$path" '$2==p{print $1; exit}' "$DIRECTIONAL_DIFF_PINS")
|
|
167
|
+
want=$(LC_ALL=C awk -F'\t' -v p="$path" '$2==p{print $1; exit}' "$DIRECTIONAL_DIFF_PINS") # ๋ก์ผ์ผ ์ ํ ๋ฐฉ์ง(pins ๊ฒฝ๋ก)
|
|
161
168
|
if [ -z "$want" ]; then
|
|
162
169
|
echo " ๐ฅ $path โ UNDECIDABLE: pins declared but this path is not among them."
|
|
163
170
|
echo " Judging a file the caller did not pin means the verdict binds to nothing."
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# fixture_guard_lib.sh โ ๋ ์ธ ํฝ์ค์ฒ ๋ฃจํธ์ **๋จ์ผ ์์ค** ๊ฐ๋.
|
|
3
|
+
#
|
|
4
|
+
# tenet: FH-T02 (๊ธฐ๊ณ๋ ๋น๊ฐ์ญ ๊ฒฝ๊ณ์ ์ฑ๋์๋ง โ ์ฌ๊ธฐ์๋ ยซ์ฐ๊ธฐ ๋์์ด ์ค๋ ํฌ์ธ๊ฐยป๋ผ๋ ๊ฒฝ๊ณ)
|
|
5
|
+
#
|
|
6
|
+
# WHY: 2026-08-31, `test_script_caller_ratchet_lanes.sh` ์ `d="$(cd "$d" && pwd)"` ๊ฐ ๋น ๊ฐ์ผ๋ก
|
|
7
|
+
# ๋ถ๊ดดํด `git -C "" ` = **cwd = ๋ผ์ด๋ธ ๋ ํฌ**๊ฐ ๋๊ณ , `commit --no-verify` +
|
|
8
|
+
# `core.hooksPath=/nonexistent-fixture-hooks` ๋ผ ์ด๋ค ํ
๋ ์ ๊ฑธ๋ ธ๋ค. ์ค์ ๋ก ์ปค๋ฐ ํ๋๊ฐ
|
|
9
|
+
# ์์
๋ธ๋์น์ ์นํ๋ค(`lane <lane@example.invalid> "base"`). ์ด๊ฑฐโํ์ 0โ`reset --mixed` ๋ก ํ์.
|
|
10
|
+
#
|
|
11
|
+
# WHY A LIB (์ฌ๋ฐ๋ช
์ ๊ฒ ๊ฒฐ๊ณผ, 2026-08-31 ์ค์ธก):
|
|
12
|
+
# ยท `hook_source_lib.sh` = SessionStart ํ์ด๋ก๋ ํ์ โ **๋๋ฉ์ธ์ด ๋ค๋ฅด๋ค**. ์ฌ๊ธฐ ๋ถ์ด๋ฉด
|
|
13
|
+
# ใํ
์์ค ํ์ฑใ lib ์ด ํฝ์ค์ฒ ์์ ์ ๊ฒธํ๊ฒ ๋์ด ๋ ๊ด์ฌ์ฌ๊ฐ ํ ํ์ผ์ ์ฐ๋ค.
|
|
14
|
+
# ยท `psa_scan_lib.sh` = public-surface ์ค์บ. ๋ฌด๊ด.
|
|
15
|
+
# ยท ๋ ์ธ 12๊ฐ ์ ์ ์กฐ์ฌ: `source`/`.` ๋ฅผ ์ฐ๋ ํ์ผ **0๊ฐ** โ ๊ณต์ฉ ๋ ์ธ lib ์ด **์๋ค**.
|
|
16
|
+
# โ ์ ํ์ผ์ด ์ ๋นํ๋ค. ์ฌ๋ณธ์ 11๋ฒ ๋๋ ๊ฒ์ ยซ๊ด๋ํจ ๊ฐ๋ฆฐ ์ค๋ณต ์ ๊ทํยป ๋ฅผ ์์ฝํ๋ ๊ฒ์ด๋ค.
|
|
17
|
+
#
|
|
18
|
+
# ๐ฅ ๋ถ๋ณ์์ ยซ์ฆ์ยป์ด ์๋๋ผ ยซ์์ธยป์ด๋ค: `[ -n "$d" ]` ๋ ๋น ๊ฐ๋ง ๋ณด๊ณ , **๋น์ด ์์ง ์์๋ฐ
|
|
19
|
+
# ์ค๋ ํฌ๋ฅผ ๊ฐ๋ฆฌํค๋** ๊ฒฝ์ฐ๋ฅผ ๋ชป ์ก๋๋ค. ์ด ๊ฐ๋๊ฐ ๋ณด๋ ๊ฒ์ **ใํฝ์ค์ฒ๋ ์ค๋ ํฌ์ ์ฐ์ง ์๋๋คใ**.
|
|
20
|
+
#
|
|
21
|
+
# ๐ฅ ๊ฐ์ ๋ฐํํ๋ค(ํด์๋ ์ ๋๊ฒฝ๋ก). ํธ์ถ๋ถ๊ฐ `d="$(fh_fixture_root "$d")"` ๋ก ์ฐ๋ฏ๋ก,
|
|
22
|
+
# ์ด ํจ์๊ฐ ์ฃฝ๊ฑฐ๋ ์คํ
์ด ๋๋ฉด `d` ๊ฐ ๋น๊ณ **ํธ์ถ ๋ ์ธ์ด ์ฆ์ ๋นจ๊ฐ์ง๋ค** โ ๊ฐ๋๊ฐ ์ฅ์์ด ์๋์
|
|
23
|
+
# ๋๋๋ฆผ์ผ๋ก ์ด ์ ์๊ฒ ํ๋ ์ค๊ณ๋ค(์์ ๋ถ์์ฉ ๊ฐ๋๋ ์คํ
์ผ๋ก ๋ฐ๊ฟ๋ ์๋ฌด๋ ์ ๋นจ๊ฐ์ง๋ค).
|
|
24
|
+
#
|
|
25
|
+
# ์ฌ์ฉ:
|
|
26
|
+
# . "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh"
|
|
27
|
+
# T="$(fh_fixture_root "$(mktemp -d)")"
|
|
28
|
+
#
|
|
29
|
+
# ์ด์์ฑ: bash 3.2 (stock macOS). `realpath`/`readlink -f` ๋ฅผ ์ฐ์ง ์๋๋ค โ ๋ ๋ค ๋ฏธ๋ณด์ฅ.
|
|
30
|
+
#
|
|
31
|
+
# ๐ฅ **์์น ์์กด์ด๋ค โ ์ด ํ์ผ์ `scripts/` ์ ์ด์์ผ ํ๋ค.** ๋ ํฌ ๋ฃจํธ๋ฅผ `dirname(์ด ํ์ผ)/..`
|
|
32
|
+
# ๋ก ๊ณ์ฐํ๋ฏ๋ก, ๋ค๋ฅธ ๊น์ด์ ๋ณต์ฌ๋๋ฉด ยซ๋ ํฌยป ์ ์๋ฏธ๊ฐ ๋ฐ๋๋ค. ์ค์ธก(2026-08-31, ํ ๋ณ์๋ง
|
|
33
|
+
# ๋ฐ๊พผ ๋์กฐ): ์์ ๋ฃจํธ ๋ฐ๋ก ๋ฐ์ ๋๋ฉด ๊ทธ ๋ถ๋ชจ(`/โฆ/T`)๋ฅผ ๋ ํฌ๋ก ๋ณด๊ณ **์ ์ mktemp ํฝ์ค์ฒ๊น์ง
|
|
34
|
+
# ๊ฑฐ๋ถ**ํ๊ณ , `scripts/` ๋ฐ์ ๋๋ฉด ํต๊ณผํ๋ค. ๋ฐฉํฅ์ **fail-closed(๊ณผ์ฐจ๋จ)** ๋ผ ์์ ํ์ง๋ง,
|
|
35
|
+
# ๋ฒค๋๋งํ๋ฉด ๋ชจ๋ ์๋น์ฒ๊ฐ ์๋๋ฝ๊ฒ ์ฃฝ๋๋ค โ ์ฎ๊ธธ ๊ฑฐ๋ฉด ๋ ํฌ ๋ฃจํธ ๊ณ์ฐ์ ์ธ์๋ก ๋ฐ๊ฒ ๋ฐ๊ฟ๋ผ.
|
|
36
|
+
|
|
37
|
+
fh_fixture_root() { # $1 = ํ๋ณด ํฝ์ค์ฒ ๋ฃจํธ โ stdout: ํด์๋ ์ ๋๊ฒฝ๋ก. ์๋ฐ์ด๋ฉด exit 1.
|
|
38
|
+
[ -n "${1:-}" ] || { echo "FIXTURE-GUARD: empty root โ refusing (git -C \"\" would target cwd)" >&2; exit 1; }
|
|
39
|
+
[ -d "$1" ] || { echo "FIXTURE-GUARD: root does not exist: $1" >&2; exit 1; }
|
|
40
|
+
case "$1" in /|"$HOME") echo "FIXTURE-GUARD: refusing root $1" >&2; exit 1 ;; esac
|
|
41
|
+
_fg_real="$(cd "$1" 2>/dev/null && pwd -P)" || { echo "FIXTURE-GUARD: cannot resolve $1" >&2; exit 1; }
|
|
42
|
+
case "$_fg_real" in /|"$HOME") echo "FIXTURE-GUARD: refusing resolved root $_fg_real" >&2; exit 1 ;; esac
|
|
43
|
+
# ๐ฅ `BASH_SOURCE[0]` ์ **์ด ํจ์๊ฐ ์ ์๋ ํ์ผ**(= ์ด lib)์ ๊ฐ๋ฆฌํจ๋ค. lib ์ด scripts/ ์
|
|
44
|
+
# ์ด๋ฏ๋ก `../` ๊ฐ ๋ ํฌ ๋ฃจํธ๋ค. ํธ์ถ๋ถ ์์น์ ๋ฌด๊ดํ๊ฒ ๊ฐ์ ๋ต์ด ๋์จ๋ค โ L4 ์ต์ปค๊ฐ ์ด๊ฒ์ ์ฐ๋ค.
|
|
45
|
+
_fg_repo="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." 2>/dev/null && pwd -P)" || _fg_repo=""
|
|
46
|
+
if [ -n "$_fg_repo" ]; then
|
|
47
|
+
if [ "$_fg_real" = "$_fg_repo" ]; then
|
|
48
|
+
echo "FIXTURE-GUARD: root IS the live repo ($_fg_real) โ refusing" >&2; exit 1
|
|
49
|
+
fi
|
|
50
|
+
case "$_fg_real" in
|
|
51
|
+
"$_fg_repo"/*) echo "FIXTURE-GUARD: root is inside the live repo ($_fg_real) โ refusing" >&2; exit 1 ;;
|
|
52
|
+
esac
|
|
53
|
+
fi
|
|
54
|
+
printf '%s\n' "$_fg_real"
|
|
55
|
+
}
|
|
@@ -104,7 +104,11 @@ self_test() {
|
|
|
104
104
|
local T f=0 n=0 rc
|
|
105
105
|
T=$(mktemp -d); trap 'rm -rf "$T"' RETURN
|
|
106
106
|
t() { n=$((n+1)); if [ "$2" = "$3" ]; then echo "โ
$1 โ $3"; else echo "โ $1 โ $3 (๊ธฐ๋ $2)"; f=1; fi; }
|
|
107
|
-
|
|
107
|
+
# ๐ฅ 2026-08-31 โ `awk ==` ๊ฐ ์ด ๋ก์ผ์ผ์์ **์๋ก ๋ค๋ฅธ ์ ๋ฌธ์๋ฅผ ์ ๋ถ ๊ฐ๋ค**๊ณ ํ์ ํ๋ค
|
|
108
|
+
# (์ค์ธก: `โข` `โง` `โ` `ใป` `ยท` ๋ค์ฏ์ด ์ํธ ๋์ผ. ASCII ๋ ์ ์ = ๋นASCII ํ์ ).
|
|
109
|
+
# ๊ตฌ๋ถ์๋ฅผ ์๋ชป ์ก์ผ๋ฉด ๋ฝ๋ ยซ์ซ์ยป๊ฐ ๋ฐ๋๋ค โ ์ฝํผ์ค๋ `ยท`(57ํ์ผ)์ `โข`(1ํ์ผ)๋ฅผ ๋ ๋ค ์ด๋ค.
|
|
110
|
+
# โ `LC_ALL=C` ๋ก ๋ฐ์ดํธ ๋น๊ต๋ฅผ ๊ฐ์ ํ๋ค. [[feedback_locale_string_equality_breaks_nonascii]]
|
|
111
|
+
bad() { scan_file "$1" 2>/dev/null | LC_ALL=C awk '/๋ฌด์ต์ปค [0-9]+๊ฑด/{for(i=1;i<=NF;i++) if($i=="ยท"){print $(i+2)}}' | tr -d '๊ฑด'; }
|
|
108
112
|
|
|
109
113
|
# known-positive: ์ต์ปค ์๋ ๋ถ์ฌ ์ฃผ์ฅ
|
|
110
114
|
printf '์ด ํจํด์ ์ ๋ก๊ฐ ์๋ค.\n๊ทธ๋์ ์ฐ๋ฆฌ๊ฐ ์ฒ์ ๋ง๋ ๋ค.\n' > "$T/ungrounded.md"
|
|
@@ -45,6 +45,26 @@ ACCEPTED_ABSENT=(
|
|
|
45
45
|
# โ CLAUDE.md ๊ฐ ยซ๋ชจ๋ ์ install ์ ๋ง๋ ๊ฒ์ดํธ๋ ์๊ฒฉํ ๊ฒ์ดํธ๊ฐ ์๋๋ผ ์ฐํ ํ๋ จ๊ธฐยป ๋ผ ๋ชป๋ฐ์
|
|
46
46
|
# ๊ทธ ํํ๋ค. ์๋น์์ฉ์ผ๋ก ์ด๋ ค๋ฉด override ๋ถ์ฌ ์์ degrade ๋ฅผ ๋ฐ๋ก ์ค๊ณํด์ผ ํ๊ณ , ์ ํ๋ค.
|
|
47
47
|
# `selfcheck.sh` ๋ ๋์ ๋ถ์ฌ ์ `_absent_subject_verdict` ๋ก ๋น ์ง๋ฏ๋ก ํจํค์ง ๋ชจ๋์์ ์ณ๊ฒ degrade ํ๋ค.
|
|
48
|
+
# ๐ฅ 2026-09-01 โ ์๋ ์ฌ์ฏ์ ยซ์ถํ ๋ฌธ์๊ฐ ์ด๋ฆ์ ๋์ง๋ง selfcheck ๊ฐ ์คํํ์ง ์๋ยป ๊ฒ๋ค์ด๋ค.
|
|
49
|
+
# ํ๋ณ์ ์ค์ธก์ด๋ค: `bash <๊ฒฝ๋ก>` ํํ์ ํธ์ถ์ selfcheck ์์ ์ผ ๊ฒฐ๊ณผ watermark ๋ง 3ํ์ด๊ณ
|
|
50
|
+
# ๋๋จธ์ง๋ 0ํ๋ค โ ๊ทธ๋์ watermark ๋ files[] ๋ก ๊ฐ๊ณ ์ด ์ฌ์ฏ์ ์ฌ๊ธฐ ๋จ๋๋ค.
|
|
51
|
+
# ๐ฅ ์๋น์๊ฐ ยซํ์๋ก ํ์ง ์๋๋คยป๊ฐ ์๋๋ผ ยซ์ด ๋ ํฌ์ ์ฐ๊ตฌยท๊ฐ์ฌ ๊ณ๊ธฐ๋คยป๊ฐ ์ด์ ๋ค.
|
|
52
|
+
# ์ถํํ๋ฉด ์๋น์ ํธ๋ฆฌ์ ์ ๋๋ ์คํฌ๋ฆฝํธ๊ฐ ๋๊ณ , ๊ทธ๊ฒ orphan ์ค์บ์ ์์์ด ๋๋ค.
|
|
53
|
+
"scripts/stray_path_scan.sh" # ์ด ๋ ํฌ ๊ฒฝ๋ก ์์ ์ค์บ๋ โ ์๋น์ ํธ๋ฆฌ ๊ตฌ์กฐ๊ฐ ๋ค๋ฅด๋ค
|
|
54
|
+
"scripts/test_stray_path_lanes.sh" # ์ ๋ ์ธ
|
|
55
|
+
"scripts/test_fixture_guard_lanes.sh" # ํฝ์ค์ฒ ๊ฐ๋ ๋ ์ธ โ ๊ฐ๋ ์์ฒด(fixture_guard_lib)๋ ์ถํํ๋ค
|
|
56
|
+
"scripts/test_marker_first_use_lanes.sh" # 4์ถ ๋ง์ปค first-use ๋ ์ธ โ ์ด ๋ ํฌ ๋ง์ปค ๊ท์ฝ ์ ์ฉ
|
|
57
|
+
"scripts/round/fallback_reach_probe.sh" # ๋งฅ๋ฝ์ ์ง ํ์ฐจ ๊ณ๊ธฐ โ ์๋น์๋ ํ์ฐจ๋ฅผ ์ ๋๋ฆฐ๋ค
|
|
58
|
+
# ๐ฅ round/ ๊ณ๊ธฐ 4์ข
๊ณผ ๊ทธ ์ต์ปค โ ์ fallback_reach_probe ์ **๊ฐ์ ์ฌ์ **๋ค. ์๋น์๋ ํ์ฐจ๋ฅผ
|
|
59
|
+
# ์ ๋๋ฆฌ๊ณ , ๋ท์ ์ด ๋ ํฌ์ ์ธก์ ์์ฅ(์ฌ์ ๋ฑ๋กยท๋ด์ธยท์ ๊ฒฉ)์ ์ ์ ๋ก ํ๋ค. ์ต์ปค๋ ๊ฐ์ด ์
|
|
60
|
+
# ๋๊ฐ๋ค: ์ฃผ์ฒด๊ฐ ์๋ ํธ๋ฆฌ์์ ์ด ์ค์ํธ๋ ์ฒซ ๊ฐ๋์์ exit 2(๊ณ๊ธฐ ์ค๋ฅ)๋ก ์ฃฝ๊ณ , ๊ทธ๊ฑด
|
|
61
|
+
# ์ ์ ์ค์น๋ฅผ ์ ์์ผ๋ก ๋ง๋๋ ํํ๋ค. selfcheck ์ง ํ๋ ์ฃผ์ฒด ๋ถ์ฌ ํ์ด ๋จผ์ ๋ฐํํด SKIP ํ๋ค.
|
|
62
|
+
"scripts/round/delta_guard.sh"
|
|
63
|
+
"scripts/round/target_pin.sh"
|
|
64
|
+
"scripts/round/instrument_manifest.sh"
|
|
65
|
+
"scripts/round/eligcheck_qset.sh"
|
|
66
|
+
"scripts/test_round_instruments_lanes.sh"
|
|
67
|
+
"scripts/fixtures/isolation_assembly_BROKEN_2026-08-30_ccrun7.json" # ์ญ์ฌ ์ฐ์ถ๋ฌผ(๋ฑ๊ธํ๊ฐ ์ฆ๊ฑฐ๋ก ์ธ์ฉ)
|
|
48
68
|
"scripts/outbound_query_guard.sh"
|
|
49
69
|
"scripts/test_outbound_query_lanes.sh"
|
|
50
70
|
# ๐ฅ ์ํผ(judgment-circuit) 3์ข
โ **์ผ๋ถ๋ฌ ์ถํํ์ง ์๋๋ค.** ์ outbound ๊ฐ๋์ ๊ฐ์ ์ด์ ๋ค.
|
|
@@ -161,6 +161,77 @@ lint_file() {
|
|
|
161
161
|
_emit " โ ํ์ดํ์ **๋งจ ๋ค**๋ก ์ฎ๊ธฐ๊ฑฐ๋, \`tr\` ๋์ ์
ธ ํ๋ผ๋ฏธํฐ ํ์ฅ์ ์จ๋ผ."
|
|
162
162
|
_hits=$((_hits+1))
|
|
163
163
|
done < <(grep -nE "tr +-[a-z]* *'[^']*[^-'][-][^-'][^']*'" "$f" 2>/dev/null)
|
|
164
|
+
|
|
165
|
+
# โโ [P11] ๋น์ธ์ฉ heredoc ๋ณธ๋ฌธ์ ๋ฐฑํฑ = ์กฐ์ฉํ ๋ช
๋ น์นํ โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
166
|
+
# ๐ฅ 2026-09-01, N=3 ๋ก ๊ธฐ๊ณํ(ํ๋ฃจ์ ๋ ์ธ์
์ด ๊ฐ๊ฐ ๊ฒช์๋ค).
|
|
167
|
+
# `cat <<EOF` ๋ ๋ณธ๋ฌธ์ **ํ์ฅ**ํ๋ค. ๊ทธ๋์ ๋ณธ๋ฌธ์ ๋ฐฑํฑ์ ๋ฌธ์์ด์ด ์๋๋ผ **๋ช
๋ น**์ด๋ค:
|
|
168
|
+
# ยท ๊ทธ ๋ช
๋ น์ด ์์ผ๋ฉด โ ๊ทธ ์๋ฆฌ๊ฐ **์ญ์ **๋๋ค(๋ฌธ์ฅ์ด ๋ฌธ๋ฒ์ ์ผ๋ก ๋ฉ์ฉกํ ์ฑ ์ฃผ์ด๋ฅผ ์๋๋ค)
|
|
169
|
+
# ยท ์์ผ๋ฉด โ ์ถ๋ ฅ์ด **์ค์ฝ์
**๋๋ค
|
|
170
|
+
# ์ค์ ํผํด: 4์ถ ๋ง์ปค์ ํ ๋ฑ๋ง์ด ์ฌ๋ผ์ง ์ฑ ์ปค๋ฐ๋๋ค. ํ
์ ยซํ๋ ์กด์ฌยป๋ง ๋ณด๋ฏ๋ก ์ ๋ง์๋ค.
|
|
171
|
+
# ๐ฅ ์ฒ๋ฐฉ์ด ใ์ธ์ฉ heredoc(`<<'EOF'`)์ ์จ๋ผใ๊ฐ **์๋** ์ด์ : ์ฌ๊ณ ๋ ยซํ์ฅ์ด ํ์ํด์ยป
|
|
172
|
+
# ๋น์ธ์ฉ์ ๊ณจ๋์ ๋ ๋๋ค. โ **๊ฐ์ ๋ฏธ๋ฆฌ ๊ณ์ฐํด ๋ณ์์ ๋ด๊ณ , ๋ณธ๋ฌธ์ ๋ณ์๋ง ๋ฃ์ด๋ผ.**
|
|
173
|
+
# ํ๋ณ์ด ์ข๋ค: ๋น์ธ์ฉ heredoc ๋ณธ๋ฌธ์ **์ด์ค์ผ์ดํ๋์ง ์์** ๋ฐฑํฑ์ ์ธ์ ๋ ๋ช
๋ น์นํ์ด๋ค.
|
|
174
|
+
# (\\` ๋ ๋ฆฌํฐ๋ด์ด๋ผ ๋์์ด ์๋๋ค โ ์ฒซ ์ค์ฌ์ฉ์์ ๊ทธ ํํ ํ๋๊ฐ ์คํ์ผ๋ก ๋์๋ค.)
|
|
175
|
+
# ์ธ์ฉ ํํ(`<<'EOF'` ยท `<<"EOF"`)๋ ํ์ฅ์ด ์์ผ๋ฏ๋ก ๋์์ด ์๋๋ค.
|
|
176
|
+
# ๐ฅ python ์ **์์ ํ์ผ**๋ก ๋บ๋ค. ์ข
์ ์ `<(python3 - "$f" <<'P11PY' โฆ )` ์๋๋ฐ
|
|
177
|
+
# **ํ๋ก์ธ์ค ์นํ ์์ heredoc** ์ ์
ธ์ด ๋ชป ํ๋ค โ ๋ณธ๋ฌธ์ `)` ๊ฐ ํ๋ ๋ค์ด๊ฐ ์๊ฐ
|
|
178
|
+
# `bad substitution` ์ผ๋ก ์ฃฝ๊ณ , ์ด ๋ฆฐํธ๋ ๊ทธ๊ฑธ ์ผ์ผ **ใ์๊ฒฌ ์์ใ์ผ๋ก ๋ ๋ํ๋ค**(fail-open).
|
|
179
|
+
# ์ด ์คํฌ๋ฆฝํธ๊ฐ ์ก์ผ๋ผ๊ณ ์กด์ฌํ๋ ยซ์กฐ์ฉํ ์ฆ์ฌยป ํด๋์ค๋ฅผ ์๊ธฐ๊ฐ ์ ์ง๋ ๋ค.
|
|
180
|
+
# ๐ฅ 2026-09-01 CI ๊ฐ ์ก์๋ค: `mktemp -t p11py` ๋ macOS ์์ ํตํ๊ณ **GNU ์์ ์ฃฝ๋๋ค**
|
|
181
|
+
# (`too few X's in template`). ์ด์์ฑ ๋ฆฐํธ ยซ์ยป์ ์ด์์ฑ ๊ฒฐํจ์ด๊ณ , ์ด ๋ฆฐํธ๊ฐ ์ก์ผ๋ผ๊ณ
|
|
182
|
+
# ์กด์ฌํ๋ ํด๋์ค ๊ทธ ์์ฒด๋ค. ๋ก์ปฌ์ ์ด๋ก์ด์๋ค โ ใ๋ก์ปฌ ์ด๋ก โ CI ์ด๋กใ.
|
|
183
|
+
# ๐ฅ **์ด ์๋ฆฌ๋ ์ด ๋จธ์ ์์ ๊ฒ์ฆ ๋ถ๊ฐ๋ค** โ macOS mktemp ๋ X ์๋ ํ
ํ๋ฆฟ๋, X ์๋
|
|
184
|
+
# ํ
ํ๋ฆฟ๋ ยซ๋ ๋คยป ๋ฐ๋๋ค(์ค์ธก rc=0/rc=0). ๊ทธ๋ฌ๋ ๋ก์ปฌ ์ด๋ก์ ์ด ์๋ฆฌ์ ๋ํด ์๋ฌด๊ฒ๋
|
|
185
|
+
# ์ฆ๋ช
ํ์ง ์๋๋ค. **GNU ๋์์ ์ ์ผํ ๊ณ๊ธฐ๋ CI ๋ค.** ๋ฏธ๊ฒ์ฆ์ด๋ผ๊ณ ์ ์ด๋๋ค.
|
|
186
|
+
_p11py=$(mktemp -t p11py.XXXXXX 2>/dev/null || mktemp) || _p11py=""
|
|
187
|
+
if [ -n "$_p11py" ]; then
|
|
188
|
+
cat > "$_p11py" <<'P11PY'
|
|
189
|
+
import re, sys
|
|
190
|
+
try:
|
|
191
|
+
lines = open(sys.argv[1], encoding='utf-8', errors='replace').read().split('\n')
|
|
192
|
+
except OSError:
|
|
193
|
+
sys.exit(0)
|
|
194
|
+
# ์ง์ง heredoc ์ฌ๋ ์ค์ ๊ตฌ๋ถ์ ยซ๋คยป์ ์ค๋์ด๋ ๋ฆฌ๋ค์ด๋ ์
์ด ์จ๋ค.
|
|
195
|
+
# ์ด ๊ผฌ๋ฆฌ ์กฐ๊ฑด์ด ์์ผ๋ฉด `sed 's/.*<<VERDICT:...'` ๊ฐ์ ยซheredoc ์ฒ๋ผ ์๊ธด ๋ฌธ์์ดยป์
|
|
196
|
+
# ์ฌ๋ ์ค๋ก ์ฝ๊ณ ํ์ผ ๋๊น์ง heredoc ๋ชจ๋์ ๊ฐํ๋ค โ ์ฒซ ์ค์ฌ์ฉ์์ ์คํ 119๊ฑด์ด ๋ฌ๋ค.
|
|
197
|
+
open_re = re.compile(
|
|
198
|
+
r"<<-?\s*(?P<q>['\"])?(?P<w>[A-Za-z_][A-Za-z0-9_]*)(?(q)(?P=q))\s*(?:[|>&;)]|$)")
|
|
199
|
+
delim = None
|
|
200
|
+
for i, l in enumerate(lines):
|
|
201
|
+
if delim is None:
|
|
202
|
+
m = open_re.search(l)
|
|
203
|
+
if m and not m.group('q'):
|
|
204
|
+
delim = m.group('w')
|
|
205
|
+
continue
|
|
206
|
+
if l.strip() == delim:
|
|
207
|
+
delim = None
|
|
208
|
+
else:
|
|
209
|
+
# \U0001f7e5 ์ด์ค์ผ์ดํ๋ ๋ฐฑํฑ(\\`)์ ๋ฆฌํฐ๋ด์ด๋ผ ๋ช
๋ น์นํ์ด ์๋๋ค โ ์ฒซ ์ค์ฌ์ฉ์์
|
|
210
|
+
# ์ ์ผํ๊ฒ ๋จ์ ์๊ฒฌ์ด ์ ํํ ๊ทธ ํํ์๋ค(์๋๋ ์
ธ shim ๋ฌธ์์ด).
|
|
211
|
+
# โ ๊ท์น ์ง์ ๋ ์ ์ ๋๋ค: ใ๋น์ธ์ฉ heredoc ์ ๋ฐฑํฑ์ ์ธ์ ๋ ๋ช
๋ น์นํใ์ด ์๋๋ผ
|
|
212
|
+
# **ใ์ด์ค์ผ์ดํ๋์ง ์์ ๋ฐฑํฑ์ ์ธ์ ๋ ๋ช
๋ น์นํใ**์ด๋ค.
|
|
213
|
+
stripped = re.sub(r'\\.', '', l) # ์ด์ค์ผ์ดํ ์ํ์ค(๋ฐฑ์ฌ๋์+1๋ฌธ์)๋ฅผ ๋จผ์ ์ง์ด๋ค
|
|
214
|
+
if '\x60' in stripped:
|
|
215
|
+
print(i + 1)
|
|
216
|
+
P11PY
|
|
217
|
+
_p11out=$(python3 "$_p11py" "$f" 2>&1); _p11rc=$?
|
|
218
|
+
rm -f "$_p11py"
|
|
219
|
+
if [ "$_p11rc" != 0 ]; then
|
|
220
|
+
_emit " [UNMEASURED] $f โ P11 ๊ฒ์ฌ๊ธฐ๊ฐ ์ฃฝ์๋ค(rc=$_p11rc). ์ด๋ก์ด ์๋๋ค."
|
|
221
|
+
_emit " $(printf '%s' "$_p11out" | head -1)"
|
|
222
|
+
else
|
|
223
|
+
for n in $_p11out; do
|
|
224
|
+
body=$(sed -n "${n}p" "$f" 2>/dev/null)
|
|
225
|
+
printf '%s' "$body" | grep -qE '#[[:space:]]*portability-noqa:[[:space:]]*[^[:space:]]' && continue
|
|
226
|
+
_emit " [P11] $f:$n"
|
|
227
|
+
_emit " ๋น์ธ์ฉ heredoc ๋ณธ๋ฌธ์ ๋ฐฑํฑ์ **๋ช
๋ น์นํ**์ด๋ค โ ์์ผ๋ฉด ๊ทธ ์๋ฆฌ๊ฐ ์ญ์ ๋๋ค."
|
|
228
|
+
_emit " โ ๊ฐ์ ๋ฏธ๋ฆฌ ๊ณ์ฐํด ๋ณ์์ ๋ด๊ณ ๋ณธ๋ฌธ์ ๋ณ์๋ง ๋ฃ์ด๋ผ."
|
|
229
|
+
_hits=$((_hits+1))
|
|
230
|
+
done
|
|
231
|
+
fi
|
|
232
|
+
else
|
|
233
|
+
_emit " [UNMEASURED] $f โ P11 ์์ํ์ผ ์์ฑ ์คํจ. ์ด๋ก์ด ์๋๋ค."
|
|
234
|
+
fi
|
|
164
235
|
}
|
|
165
236
|
|
|
166
237
|
# โโ self-test (known-pair) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
@@ -191,6 +262,22 @@ if [ "$SELFTEST" = 1 ]; then
|
|
|
191
262
|
_ck "P2 known-positive (stat -f ์ ํ)" 1 "$t/p2_pos.sh"
|
|
192
263
|
printf 'm=$(stat -c %%Y "$1" 2>/dev/null || echo 0)\n' > "$t/p2_neg.sh" # portability-noqa: self-test ํฝ์ค์ฒ โ ์ผ๋ถ๋ฌ ์๋ฐํ์ ์ด๋ค
|
|
193
264
|
_ck "P2 known-negative (GNU-first)" 0 "$t/p2_neg.sh"
|
|
265
|
+
# P11 known-positive โ ๋น์ธ์ฉ heredoc ๋ณธ๋ฌธ์ ๋ฐฑํฑ (2026-09-01 ์ค์ฌ๊ณ ํํ)
|
|
266
|
+
# ๐ฅ ํฝ์ค์ฒ๋ฅผ printf ๋ก ยซ์กฐ๋ฆฝยปํ๋ค. ์์ค์ ๊ทธ๋๋ก ์ฐ๋ฉด ์ด ํ์ผ ์์ ์ด P11 ์ ๊ฑธ๋ฆฐ๋ค โ
|
|
267
|
+
# ๊ณ๊ธฐ๊ฐ ์๊ธฐ ํฝ์ค์ฒ์ ๊ฑธ๋ฆฌ๋ ๊ฒ์ P1 ์ดํ์ด ์ด๋ฏธ ํ ๋ฒ ๊ฒช์ ํํ๋ค.
|
|
268
|
+
BQ=$(printf '\140')
|
|
269
|
+
printf 'cat <<EOF\nvalue is %snproc%s\nEOF\n' "$BQ" "$BQ" > "$t/p11_pos.sh"
|
|
270
|
+
_ck "P11 known-positive (๋น์ธ์ฉ heredoc + ๋ฐฑํฑ)" 1 "$t/p11_pos.sh"
|
|
271
|
+
# P11 known-negative โ โ ์ธ์ฉ heredoc ์ด๋ฉด ํ์ฅ์ด ์๋ค
|
|
272
|
+
printf "cat <<'EOF'\nvalue is %snproc%s\nEOF\n" "$BQ" "$BQ" > "$t/p11_neg_quoted.sh"
|
|
273
|
+
_ck "P11 known-negative (์ธ์ฉ heredoc โ ํ์ฅ ์์)" 0 "$t/p11_neg_quoted.sh"
|
|
274
|
+
# P11 known-negative โก โ ๋น์ธ์ฉ์ด์ง๋ง ๋ฐฑํฑ์ด ์๋ค
|
|
275
|
+
printf 'cat <<EOF\nvalue is $VAR\nEOF\n' > "$t/p11_neg_nobq.sh"
|
|
276
|
+
_ck "P11 known-negative (๋ฐฑํฑ ์์)" 0 "$t/p11_neg_nobq.sh"
|
|
277
|
+
# P11 ์ปจํธ๋กค โ heredoc ยซ๋ฐยป์ ๋ฐฑํฑ์ ์ด ๊ท์น ๋์์ด ์๋๋ค(๋ค๋ฅธ ๊ฒฐํจ์ผ ์๋ ์๋ค)
|
|
278
|
+
printf 'x=%sdate%s\n' "$BQ" "$BQ" > "$t/p11_ctrl_outside.sh"
|
|
279
|
+
_ck "P11 ์ปจํธ๋กค (heredoc ๋ฐ ๋ฐฑํฑ โ ํด๋น์์)" 0 "$t/p11_ctrl_outside.sh"
|
|
280
|
+
|
|
194
281
|
# P5 PIPESTATUS
|
|
195
282
|
printf 'cmd | tail -1\nrc=${PIPESTATUS[0]}\n' > "$t/p5_pos.sh" # portability-noqa: self-test ํฝ์ค์ฒ โ ์ผ๋ถ๋ฌ ์๋ฐํ์ ์ด๋ค
|
|
196
283
|
_ck "P5 known-positive (PIPESTATUS)" 1 "$t/p5_pos.sh"
|
|
@@ -28,7 +28,7 @@ DEF_SRC="$REPO_ROOT/.claude/rules/.public-surface-patterns.defaults"
|
|
|
28
28
|
|
|
29
29
|
# Test the STAGED blob when the hook is staged โ same reasoning as universal_guard_check.sh: an
|
|
30
30
|
# anchor that reads the worktree can be bypassed by staging a regression and restoring the worktree.
|
|
31
|
-
WORK=$(mktemp -d) || exit 1
|
|
31
|
+
WORK=$(mktemp -d) || exit 1; : "${WORK:?fixture root unset โ refusing to run git in cwd}"
|
|
32
32
|
trap 'rm -rf "$WORK"' EXIT
|
|
33
33
|
_status=$(git -C "$REPO_ROOT" -c core.quotePath=false diff --cached --name-status --no-renames 2>/dev/null \
|
|
34
34
|
| awk -F'\t' '$2 == "templates/.git-hooks/pre-push" { print $1; exit }')
|
|
@@ -48,7 +48,7 @@ PATK="ghp""_abcdefghijklmnopqrstuvwxyz012345"
|
|
|
48
48
|
DOCK="AKIAIOSFODNN7EXAMPLE" # the documented example key: must be exempt, so it stays literal
|
|
49
49
|
|
|
50
50
|
newrepo() { # echoes a fresh repo path with the pattern layers in place and one base commit
|
|
51
|
-
local d; d=$(mktemp -d)
|
|
51
|
+
local d; d=$(mktemp -d); : "${d:?fixture root unset โ refusing to run git in cwd}"
|
|
52
52
|
mkdir -p "$d/.claude/rules" "$d/templates/.git-hooks" "$d/tracks/_meta"
|
|
53
53
|
cp "$DEF_SRC" "$d/.claude/rules/.public-surface-patterns.defaults"
|
|
54
54
|
# The operator override is GITIGNORED in the real repo, so it never enters history. Committing it
|
|
@@ -144,10 +144,28 @@ fi
|
|
|
144
144
|
|
|
145
145
|
# โโ Scan full content of each published file โโ
|
|
146
146
|
LEAK=0
|
|
147
|
+
# ๐ฅ 2026-09-01: `[ -f "$path" ] || continue` ๊ฐ ์ฌ๊ธฐ ์์๋ค โ ๋ฐํ ๋ชฉ๋ก์ ์๋๋ฐ
|
|
148
|
+
# ๋์คํฌ์ ์๋ ํ์ผ์ด **์ค์บ ์์ด** ํต๊ณผํ๋ค. ์นด์ดํฐ๋ ์ด๋ฆ๋ ์์ด์ LEAK=0 ๊ณผ ๊ตฌ๋ถ์ด ์ ๋๋ค.
|
|
149
|
+
# ์ด ํ์ผ์ ๋ฐ๋ก ์์์ ยซnpm --json ํํ๊ฐ ๋ฐ๋๋ฉดยป fail-closed ํ๋๋ฐ, ์ ์ ยซ์ค์บ ๋ชป ํ ํ์ผยป
|
|
150
|
+
# ์๋ ์๋ฌด ๋ง๋ ์ ํ๋ค. **๋น๊ฐ์ญ ํ๋ฉด(publish)์์ ๋ถ์ฌ๊ฐ ํต๊ณผ๋ก ๋ ๋๋ ์๋ฆฌ**๋ค.
|
|
151
|
+
# โ ์ธ๊ณ , ์ด๋ฆ์ ๋๊ณ , ๋์์ fail-closed ํ๋ค(ยงSurface-Class Degrade Invariant).
|
|
152
|
+
# ๐ฅ **๋๋ฌ ๊ฒฝ๋ก โ ใnpm ์ด ์๋ ํ์ผ์ ๋์ดํ ๋ฆฌ ์๋คใ๋ ๋ฐ๋ก ์ ๋ํ ๋ต.**
|
|
153
|
+
# FILES ๋ `f.path` ์ฆ **tarball ๋ด๋ถ ๊ฒฝ๋ก**๋ค. ๊ทธ ๋ชจ์์ด ์ํฌํธ๋ฆฌ ์๋๊ฒฝ๋ก์ ์ด๊ธ๋๋ฉด
|
|
154
|
+
# (npm ์ด ๊ณผ๊ฑฐ์ `package/` ์ ๋๋ฅผ ๋ถ์ด๋ ๊ฒ์ฒ๋ผ) **์ ํ์ผ์ด ์กฐ์ฉํ ์คํต๋๊ณ clean ์ด ๋๋ค.**
|
|
155
|
+
# ์ด ํ์ผ์ ๋ฐ๋ก ์์์ ยซFILES ๊ฐ ๋น๋ฉดยป fail-closed ํ๋๋ฐ, ยซFILES ๊ฐ ์๋๋ฐ ํ๋๋ ๋ชป ์ฝ๋ยป
|
|
156
|
+
# ๊ฒฝ์ฐ๋ ์ข
์ ์ ํต๊ณผ์๋ค. ๊ฐ์ shape-change ์ถ์ ๋ฐ์ชฝ๋ง ๋ง๊ณ ์์๋ค.
|
|
157
|
+
# ๐ก **์ธก์ ์ํ(์ ์ง)**: 2026-09-01 ํ์ฌ 362/362 ์ด ์ผ์นํ๋ฏ๋ก UNSCANNED=0 ์ด๊ณ
|
|
158
|
+
# ์ด ๋ถ๊ธฐ๋ **์์ง ์คํ๋ ์ ์ด ์๋ค.** shape-change ๋ฅผ ์ธ์๋ก ๋ง๋ค ์๋จ์ด ์์ด ๋ ์ธ๋ ์๋ค.
|
|
159
|
+
# โ ยซ๋ง๋ค์๋คยป์ด์ง ยซ๊ฒ์ฆ๋๋คยป๊ฐ ์๋๋ค. npm ํ์ฌ๋ฆผ ๋ ์ด ๋ถ๊ธฐ๋ฅผ ๋ค์ ๋ด๋ผ.
|
|
160
|
+
UNSCANNED=0; UNSCANNED_LIST=""
|
|
147
161
|
while IFS= read -r f; do
|
|
148
162
|
[ -z "$f" ] && continue
|
|
149
163
|
path="$REPO_ROOT/$f"
|
|
150
|
-
[ -f "$path" ]
|
|
164
|
+
if [ ! -f "$path" ]; then
|
|
165
|
+
UNSCANNED=$((UNSCANNED+1)); UNSCANNED_LIST="$UNSCANNED_LIST
|
|
166
|
+
$f"
|
|
167
|
+
continue
|
|
168
|
+
fi
|
|
151
169
|
while IFS=$'\t' read -r sev regex; do
|
|
152
170
|
[ -z "$regex" ] && continue
|
|
153
171
|
case "$sev" in \#*) continue;; esac
|
|
@@ -171,6 +189,23 @@ while IFS= read -r f; do
|
|
|
171
189
|
done <<< "$PSA_STREAM"
|
|
172
190
|
done <<< "$FILES"
|
|
173
191
|
|
|
192
|
+
# ๐ฅ ยซ์ค์บ ๋ชป ํ ํ์ผยป์ ยซ๊นจ๋ํ ํ์ผยป์ด ์๋๋ค. ๋ฐํ ๋ชฉ๋ก์ ์๋๋ฐ ์ฝ์ง ๋ชปํ์ผ๋ฉด
|
|
193
|
+
# ๊ทธ ํ์ผ์ ๋ฌด์์ด ์๋์ง **๋ชจ๋ฅธ๋ค** โ ๊ทธ๋ฆฌ๊ณ publish ๋ ๋น๊ฐ์ญ์ด๋ค. fail-closed.
|
|
194
|
+
# LEAK ๋ณด๋ค ยซ๋จผ์ ยป ๋ณธ๋ค: ์ค์บ์ด ๋ถ์์ ํ๋ฉด LEAK=0 ์ ยซ์๋คยป๊ฐ ์๋๋ผ ยซ๋ชป ๋ดค๋คยป์ด๊ธฐ ๋๋ฌธ์ด๋ค.
|
|
195
|
+
if [ "$UNSCANNED" -gt 0 ]; then
|
|
196
|
+
echo " ๐ฅ ๋ฐํ ๋ชฉ๋ก์ ํ์ผ ${UNSCANNED}๊ฑด์ **์ค์บํ์ง ๋ชปํ๋ค**(๊ฒฝ๋ก์ ์์):"
|
|
197
|
+
printf '%s\n' "$UNSCANNED_LIST" | sed '/^$/d'
|
|
198
|
+
echo " ์ค์บ ๋ชป ํ ํ์ผ์ ยซ๊นจ๋ยป์ด ์๋๋ผ ยซ๋ฏธ์ธก์ ยป์ด๋ค. publish ๋ ๋น๊ฐ์ญ์ด๋ฏ๋ก ๋ง๋๋ค."
|
|
199
|
+
echo " ์ํฌํธ๋ฆฌโtarball ๊ฒฝ๋ก ์ฐจ์ด๋ ์ด๋ฏธ ๋ช
๋ช
๋ ์์ฌ๋ค โ npm pack ์ฐ์ถ๊ณผ ๋์กฐํด๋ผ."
|
|
200
|
+
if [ "${PUBLIC_SURFACE_OK:-0}" = "1" ]; then
|
|
201
|
+
echo " โ ๏ธ PUBLIC_SURFACE_OK=1 ๋ก ๊ฐํํ๋ค(๊ธฐ๋ก๋จ)"
|
|
202
|
+
echo "$(date +%Y-%m-%dT%H:%M:%S) PUBLIC_SURFACE_OK override (npm publish) โ ${UNSCANNED} unscanned file(s)" \
|
|
203
|
+
>> "$REPO_ROOT/tracks/_meta/.psa_override_log" 2>/dev/null || true
|
|
204
|
+
else
|
|
205
|
+
exit 1
|
|
206
|
+
fi
|
|
207
|
+
fi
|
|
208
|
+
|
|
174
209
|
if [ "$LEAK" -eq 1 ]; then
|
|
175
210
|
if [ "${PUBLIC_SURFACE_OK:-0}" = "1" ]; then
|
|
176
211
|
echo " โ ๏ธ public-surface hit(s) allowed by PUBLIC_SURFACE_OK=1 (conscious, reviewed intent)"
|
package/scripts/selfcheck.sh
CHANGED
|
@@ -327,6 +327,25 @@ fi
|
|
|
327
327
|
# catch the eye. Fixing it is one line in validate.yml (set core.hooksPath before the selfcheck step)
|
|
328
328
|
# and is deliberately NOT bundled here โ see the handoff. Until then the only real measurement arm is
|
|
329
329
|
# the author's machine, which is the exact shape portability_lint.sh was written to condemn.
|
|
330
|
+
# โโ prepush-guard known-pair (2026-08-31 ๋ฐฐ์ ) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
331
|
+
# WHY: ์ด ์คํฌ๋ฆฝํธ๋ pre-push ๊ฒ์ดํธ์ known-pair ์ต์ปค์ธ๋ฐ **์๋ฌด๋ ๋ถ๋ฅด์ง ์์๋ค**.
|
|
332
|
+
# ๊ทธ๋ฆฌ๊ณ ๊ทธ๊ฒ์ด ์ค์ฌ๊ณ ์ ์ถ์ฒ์๋ค โ ํฝ์ค์ฒ ๋ฃจํธ๊ฐ ๋น ๊ฐ์ด ๋๋ฉด ๋ ํฌ ๋ฃจํธ์ ํ์ผ 13๊ฐ๋ฅผ
|
|
333
|
+
# ๋ฟ๋ฆฐ๋ค(2026-08-31 ๊ณ ์ฅ ์ฃผ์
์ผ๋ก ์ฌํ: `mktemp` ๊ฐ rc=0 ์ผ๋ก ๋น ์ถ๋ ฅ์ ๋ผ ๋).
|
|
334
|
+
# ใํธ์ถ๋ถ๊ฐ ์๋ ์ต์ปค๋ ์ฐ๋ฌธใ์ด๋ฏ๋ก ๋ฐฐ์ ํ๋ค. ์ข
๋ฃ์ฝ๋ ๊ณ์ฝ์ 0=ํต๊ณผ / ๊ทธ ์ธ=์คํจ.
|
|
335
|
+
if [ ! -f scripts/prepush_guard_check.sh ]; then
|
|
336
|
+
_absent_subject_verdict "prepush-guard known-pair" "scripts/prepush_guard_check.sh" || fail=1
|
|
337
|
+
else
|
|
338
|
+
# ๐ฅ ํ์ดํ ์์์ rc ๋ฅผ ์ก๋๋ค โ ํ์ ํํฐ์ rc ๋ฅผ ์ฝ์ผ๋ฉด ์คํจ๊ฐ 0 ์ผ๋ก ๋ณด์ธ๋ค.
|
|
339
|
+
_pg_out="$(bash scripts/prepush_guard_check.sh 2>&1)"; _pg_rc=$?
|
|
340
|
+
if [ "$_pg_rc" -eq 0 ]; then
|
|
341
|
+
echo "PASS prepush-guard known-pair"
|
|
342
|
+
else
|
|
343
|
+
echo "FAIL prepush-guard known-pair (rc=$_pg_rc)"
|
|
344
|
+
[ -n "$_pg_out" ] && printf '%s\n' "$_pg_out" | tail -12 | sed 's/^/ /'
|
|
345
|
+
fail=1
|
|
346
|
+
fi
|
|
347
|
+
fi
|
|
348
|
+
|
|
330
349
|
if [ ! -f scripts/gate_anchor_check.sh ]; then
|
|
331
350
|
_absent_subject_verdict "gate-anchor harness" "scripts/gate_anchor_check.sh" || fail=1
|
|
332
351
|
else
|
|
@@ -588,6 +607,10 @@ for _pair in \
|
|
|
588
607
|
"templates/.git-hooks/pre-commit|scripts/test_marker_soul_check_lanes.sh" \
|
|
589
608
|
"templates/.git-hooks/pre-commit|scripts/test_marker_soul_tenet_lanes.sh" \
|
|
590
609
|
"scripts/sim_isolated_run.sh|scripts/test_sim_path_isolation_lanes.sh" \
|
|
610
|
+
"templates/.git-hooks/pre-commit|scripts/test_marker_first_use_lanes.sh" \
|
|
611
|
+
"scripts/fixture_guard_lib.sh|scripts/test_fixture_guard_lanes.sh" \
|
|
612
|
+
"scripts/stray_path_scan.sh|scripts/test_stray_path_lanes.sh" \
|
|
613
|
+
"scripts/session_close_check.sh|scripts/test_stray_path_lanes.sh" \
|
|
591
614
|
"templates/.git-hooks/pre-commit|scripts/test_hook_leg_wiring_lanes.sh" \
|
|
592
615
|
".claude/soul_tenets.txt|scripts/test_marker_soul_tenet_lanes.sh" \
|
|
593
616
|
"templates/.git-hooks/pre-commit|scripts/test_precommit_staged_drift_lanes.sh" \
|
|
@@ -608,7 +631,12 @@ for _pair in \
|
|
|
608
631
|
"plugins/fh-commons/skills/preprep/lane_adjacent_dup.py|scripts/test_preprep_adjacent_dup_lanes.sh" \
|
|
609
632
|
"plugins/fh-commons/skills/preprep/lane_promise.py|scripts/test_preprep_promise_lanes.sh" \
|
|
610
633
|
"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"
|
|
634
|
+
"scripts/field_canon_preload.sh|scripts/test_skill_canon_preload_lanes.sh" \
|
|
635
|
+
`# โโ round/ ํ์ฐจ ๊ณ๊ธฐ 4์ข
(2026-09-01). ๋ท ๋ค ํ ์ค์ํธ๊ฐ ์ก๋๋ค โ ์ฃผ์ฒด๋ณ๋ก ํ์ ๋๋ค โโ` \
|
|
636
|
+
"scripts/round/delta_guard.sh|scripts/test_round_instruments_lanes.sh" \
|
|
637
|
+
"scripts/round/target_pin.sh|scripts/test_round_instruments_lanes.sh" \
|
|
638
|
+
"scripts/round/instrument_manifest.sh|scripts/test_round_instruments_lanes.sh" \
|
|
639
|
+
"scripts/round/eligcheck_qset.sh|scripts/test_round_instruments_lanes.sh"
|
|
612
640
|
do
|
|
613
641
|
_subj="${_pair%%|*}"; _anc="${_pair##*|}"; _lbl="${_anc##*/}"
|
|
614
642
|
if [ ! -f "$_subj" ]; then
|
|
@@ -1114,6 +1142,51 @@ else
|
|
|
1114
1142
|
fail=1
|
|
1115
1143
|
fi
|
|
1116
1144
|
|
|
1145
|
+
# ๋ฌดํจ ์ํฐ๋งํฌ โ ๋ฌดํจ ํ์ฐจ์ ยซ์ซ์ ์คยป์ด ์๊ธฐ ๋ฌดํจ๋ฅผ ๋๋ฅด๋๊ฐ.
|
|
1146
|
+
# ๐ฅ ํ์ฐจ 3 ์ ์๊ธฐ ๊ฒ์ดํธ๊ฐ VOID ๋ฅผ ์ฐ๊ณ ๋ ๊ทธ ์ซ์๋ง ๊ธฐ๋ก์ผ๋ก ๋์ด๊ฐ๋ค(VOID ๋ฑ๋ง์ 0ํ).
|
|
1147
|
+
# ํ์ ์ด ํ ยซ๋ฐยป์ ์์๊ณ ์ฌ๋์ ํ๋ฅผ ๋ณต์ฌํ๊ธฐ ๋๋ฌธ์ด๋ค. ๊ทธ ์ฑ๋์ ๋ซ์ ๋ฐฐ์ ์ ์ต์ปค๋ค.
|
|
1148
|
+
# subject-present-but-anchor-absent ๋ SKIP ์ด ์๋๋ผ FAIL ์ด๋ค โ ์ฌ๊ธฐ์๋ ๊ฐ์ ํํ๋ฅผ ์ด๋ค.
|
|
1149
|
+
if [ ! -f scripts/context_continuity_score.sh ]; then
|
|
1150
|
+
_absent_subject_verdict "test_verdict_watermark_lanes.sh" "scripts/context_continuity_score.sh" || fail=1
|
|
1151
|
+
elif [ -f scripts/test_verdict_watermark_lanes.sh ]; then
|
|
1152
|
+
if ! bash scripts/test_verdict_watermark_lanes.sh; then
|
|
1153
|
+
fail=1
|
|
1154
|
+
fi
|
|
1155
|
+
else
|
|
1156
|
+
echo "FAIL test_verdict_watermark_lanes.sh: context_continuity_score.sh present but its anchor is missing"
|
|
1157
|
+
fail=1
|
|
1158
|
+
fi
|
|
1159
|
+
|
|
1160
|
+
# ๋ฌดํจ ์ํฐ๋งํฌ โ ๋ฌดํจ ํ์ฐจ์ ยซ์ซ์ ์คยป์ด ์๊ธฐ ๋ฌดํจ๋ฅผ ๋๋ฅด๋๊ฐ.
|
|
1161
|
+
# ๐ฅ ํ์ฐจ 3 ์ ์๊ธฐ ๊ฒ์ดํธ๊ฐ VOID ๋ฅผ ์ฐ๊ณ ๋ ๊ทธ ์ซ์๋ง ๊ธฐ๋ก์ผ๋ก ๋์ด๊ฐ๋ค(VOID ๋ฑ๋ง์ 0ํ).
|
|
1162
|
+
# ํ์ ์ด ํ ยซ๋ฐยป์ ์์๊ณ ์ฌ๋์ ํ๋ฅผ ๋ณต์ฌํ๊ธฐ ๋๋ฌธ์ด๋ค. ๊ทธ ์ฑ๋์ ๋ซ์ ๋ฐฐ์ ์ ์ต์ปค๋ค.
|
|
1163
|
+
# subject-present-but-anchor-absent ๋ SKIP ์ด ์๋๋ผ FAIL ์ด๋ค โ ์ฌ๊ธฐ์๋ ๊ฐ์ ํํ๋ฅผ ์ด๋ค.
|
|
1164
|
+
if [ ! -f scripts/context_continuity_score.sh ]; then
|
|
1165
|
+
_absent_subject_verdict "test_verdict_watermark_lanes.sh" "scripts/context_continuity_score.sh" || fail=1
|
|
1166
|
+
elif [ -f scripts/test_verdict_watermark_lanes.sh ]; then
|
|
1167
|
+
if ! bash scripts/test_verdict_watermark_lanes.sh; then
|
|
1168
|
+
fail=1
|
|
1169
|
+
fi
|
|
1170
|
+
else
|
|
1171
|
+
echo "FAIL test_verdict_watermark_lanes.sh: context_continuity_score.sh present but its anchor is missing"
|
|
1172
|
+
fail=1
|
|
1173
|
+
fi
|
|
1174
|
+
|
|
1175
|
+
# ๋ฌดํจ ์ํฐ๋งํฌ โ ๋ฌดํจ ํ์ฐจ์ ยซ์ซ์ ์คยป์ด ์๊ธฐ ๋ฌดํจ๋ฅผ ๋๋ฅด๋๊ฐ.
|
|
1176
|
+
# ๐ฅ ํ์ฐจ 3 ์ ์๊ธฐ ๊ฒ์ดํธ๊ฐ VOID ๋ฅผ ์ฐ๊ณ ๋ ๊ทธ ์ซ์๋ง ๊ธฐ๋ก์ผ๋ก ๋์ด๊ฐ๋ค(VOID ๋ฑ๋ง์ 0ํ).
|
|
1177
|
+
# ํ์ ์ด ํ ยซ๋ฐยป์ ์์๊ณ ์ฌ๋์ ํ๋ฅผ ๋ณต์ฌํ๊ธฐ ๋๋ฌธ์ด๋ค. ๊ทธ ์ฑ๋์ ๋ซ์ ๋ฐฐ์ ์ ์ต์ปค๋ค.
|
|
1178
|
+
# subject-present-but-anchor-absent ๋ SKIP ์ด ์๋๋ผ FAIL ์ด๋ค โ ์ฌ๊ธฐ์๋ ๊ฐ์ ํํ๋ฅผ ์ด๋ค.
|
|
1179
|
+
if [ ! -f scripts/context_continuity_score.sh ]; then
|
|
1180
|
+
_absent_subject_verdict "test_verdict_watermark_lanes.sh" "scripts/context_continuity_score.sh" || fail=1
|
|
1181
|
+
elif [ -f scripts/test_verdict_watermark_lanes.sh ]; then
|
|
1182
|
+
if ! bash scripts/test_verdict_watermark_lanes.sh; then
|
|
1183
|
+
fail=1
|
|
1184
|
+
fi
|
|
1185
|
+
else
|
|
1186
|
+
echo "FAIL test_verdict_watermark_lanes.sh: context_continuity_score.sh present but its anchor is missing"
|
|
1187
|
+
fail=1
|
|
1188
|
+
fi
|
|
1189
|
+
|
|
1117
1190
|
# daily_report โ ์ด์ ์ปค๋ฐ ์ง๊ณ. ์๊ธฐ๊ฒ์ฌ 10 ๋ ์ธ(known-pair ยท ๋ฉฑ๋ฑ ยท ๋ถ์ฌ ํ๊ธฐ).
|
|
1118
1191
|
# ๐ฅ ์ด ํ์ผ์ ยซํ ๋ฒ ์กด์ฌํ๋ค๊ฐ ์ฌ๋ผ์งยป ์ด๋ ฅ์ด ์๋ค โ 2026-08-29 ์ ์ฐ์ถ๋ฌผ 1๊ฑด์ ๋ด๊ณ
|
|
1119
1192
|
# git ์ ์ปค๋ฐ๋ ์ ์์ด ์์ด์ก๊ณ , ๋ก์ปฌ ๋ฐ์ธ๋ฉ๋ง ใ์ค์น๋จใ์ด๋ผ ์ ๊ณ ์์๋ค. ๋ฐฐ์ ์ด
|
|
@@ -687,5 +687,22 @@ CARRY_EOF
|
|
|
687
687
|
fi
|
|
688
688
|
fi
|
|
689
689
|
|
|
690
|
+
# โโ โ -e STRAY PATH (advisory) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
691
|
+
# ๐ฅ `git status` ๋ **๋น ๋๋ ํฐ๋ฆฌ๋ฅผ ์ ๋ณด์ฌ์ค๋ค**(`--porcelain` ๋ `-uall` ๋ 0; ํ์ผ ํ๋
|
|
692
|
+
# ๋ฃ์ผ๋ฉด 1 โ known-pair ๋ก ํ์ธ). ๊ทธ๋์ ใํธ๋ฆฌ ๊นจ๋ใ์ด ์ด ํด๋์ค์ ๋ํด์ **๋ถ์ฌ ์ฆ๋ช
์ด
|
|
693
|
+
# ์๋๋ค.** 2026-08-31 ํ๋ฃจ์ ์ธ ๋ฒ ๋ฌ๊ณ (๊ฑฐ๋ฒ๋ ๋ ํฌ 2 ยท ๋ณ๋ ฌ ํ ๋ ํฌ 1) ์ธ ๋ฒ ๋ค ยซ๊นจ๋ยป
|
|
694
|
+
# ๋ณด๊ณ ๋ค์ ๋ฐ๊ฒฌ๋๋ค. ๊ทธ์ค ํ๋๋ ์ฑ์ ๊ธฐ ๋ ์ธ์ ์ ์ grep ์ rc=2 ๋ก ์ฃฝ์๋ค.
|
|
695
|
+
# ๐ฅ **advisory ๋ค โ ๋ง์ง ์๋๋ค.** ๋น ๋๋ ํฐ๋ฆฌ ํ๋๋ก push ๋ฅผ ๋ง์ผ๋ฉด ๊ทธ๊ฒ์ด `--no-verify` ๋ฅผ
|
|
696
|
+
# ํ๋ จ์ํค๊ณ , ๊ฐ์ ํ
์ Destructive-Op ๊ฒ์ดํธ๋ฅผ ๋ฌด์ฅํด์ ํ๋ค. ์๋๋ฝ๊ฒ ํ๋ ์ ๋ง๋๋ค.
|
|
697
|
+
if [ -x "$FH/scripts/stray_path_scan.sh" ]; then
|
|
698
|
+
_sp_out=$(bash "$FH/scripts/stray_path_scan.sh" "$FH" 2>&1); _sp_rc=$?
|
|
699
|
+
case "$_sp_rc" in
|
|
700
|
+
1) printf '%s\n' "$_sp_out" ;;
|
|
701
|
+
2) echo "โ ๏ธ โ -e stray-path ์ค์บ ๋ถ๊ฐ โ UNMEASURED (0 ์ผ๋ก ์ฝ์ง ๋ง๋ผ)" ;;
|
|
702
|
+
esac
|
|
703
|
+
else
|
|
704
|
+
echo "โ ๏ธ โ -e stray_path_scan.sh ์์ โ skipped, not passed"
|
|
705
|
+
fi
|
|
706
|
+
|
|
690
707
|
echo "โโ close check: $([ "$FAIL" -eq 0 ] && echo CONSISTENT || echo VIOLATIONS) โโ"
|
|
691
708
|
exit "$FAIL"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# ์
ธ ยซ์ด๋ฆ ๊ฒฝ๊ณยป ์ค์บ๋ โ ๋ณ์ ์ ๊ฐ์์ ยซ์ด๋๊น์ง๊ฐ ์ด๋ฆ์ธ๊ฐยป๋ฅผ ์
ธ์ด ๋์ ๋ค๋ฅด๊ฒ ์ฝ๋ ์๋ฆฌ.
|
|
3
|
+
#
|
|
4
|
+
# ๐ฅ ์ ์๋. 2026-08-31 ํ๋ฃจ์ **์ธ ๋ฒ** ๋์๊ณ ์
๋ค ์๋ ฅ ์ ๋ฐ์ด ์๋์๋ค:
|
|
5
|
+
# โ zsh "$ref:scripts/x" ์ฝ๋ก ๋ค๋ฅผ ยซmodifierยป ๋ก ๋จน๋๋ค โ ์๋ฌ๊ฐ ์๋๋ผ ยซ๋ค๋ฅธ ์ ํจ ๋ฌธ์์ดยป
|
|
6
|
+
# โก zsh set -- $pair ์ธ์ฉ ์๋ ์ ๊ฐ๊ฐ ๋ฆฌ์คํธ๊ฐ ์ ๋๋ค โ ์ฌ๋ฌ ๋ฑ๋ง์ด ํ ๋ฑ๋ง๋ก
|
|
7
|
+
# โข bash "$Vยป" ๋ค๊ตญ์ด ๋ฌธ์๊ฐ ยซ๋ณ์๋ช
ยป์ ๋ถ๋๋ค โ ์ด๋ฆ `Vยป` โ unbound variable
|
|
8
|
+
# ๊ณตํตํ: **์
ธ์ด ์ด๋ฆ ๊ฒฝ๊ณ๋ฅผ ๋ค๋ฅด๊ฒ ์ฝ๋๋ฐ ๊ทธ๊ฒ ์กฐ์ฉํ๋ค**(โ ์ ์์ ๋ฌด์, โข๋ง ์๋๋ฝ๋ค).
|
|
9
|
+
#
|
|
10
|
+
# โ ๏ธ **์ด ์ค์บ๋๋ ์
์ค ยซ๋ยป๋ง ๋ฎ๋๋ค** โ โ ๊ณผ โข. โก(๋จ์ด๋ถํ )๋ ๋ฌธ๋ฒ์ด ์๋๋ผ ยซ์๋ยป๋ผ
|
|
11
|
+
# ์ ์ ์ผ๋ก ๋ชป ๊ฐ๋ฅธ๋ค. ์ ๋ฎ๋ ๊ฒ์ ๋ฎ๋ ์ฒํ์ง ์๋๋ค.
|
|
12
|
+
# โ ๏ธ ์ฃผ์ ์์ ํํธ๋ ยซ๋ณด๊ณ ํ๋คยป โ ์ ์ธํ๋ฉด ์ง์ง๋ฅผ ๋์น๋ ์ชฝ์ผ๋ก ๊ธฐ์ด๋ค. ์ฌ๋์ด ํ์ ํด๋ผ.
|
|
13
|
+
set -uo pipefail
|
|
14
|
+
[ $# -gt 0 ] || { echo "usage: shell_name_boundary_scan.sh <file...>"; exit 2; }
|
|
15
|
+
python3 - "$@" <<'PY'
|
|
16
|
+
import re,sys,io
|
|
17
|
+
NONASCII=re.compile(r'\$[A-Za-z_][A-Za-z0-9_]*(?=[^\x00-\x7F])') # โข
|
|
18
|
+
MODIFIER=re.compile(r'"\$[A-Za-z_][A-Za-z0-9_]*:') # โ (์ค๊ดํธ ์๋ "$V:...")
|
|
19
|
+
hits=0
|
|
20
|
+
for f in sys.argv[1:]:
|
|
21
|
+
try: s=io.open(f,encoding='utf-8').read()
|
|
22
|
+
except Exception as e: print(" โ ๏ธ ์ฝ๊ธฐ ์คํจ %s: %s (๋ฏธ๊ฒ์ฌ โ ํต๊ณผ ์๋)"%(f,e)); hits+=1; continue
|
|
23
|
+
for i,l in enumerate(s.split('\n'),1):
|
|
24
|
+
for m in NONASCII.finditer(l):
|
|
25
|
+
print(" ๐ฅ %s:%d [๋น-ASCII๊ฐ ์ด๋ฆ์ ๋ถ์] %s โ %s"%(f,i,m.group(0),l.strip()[:64])); hits+=1
|
|
26
|
+
for m in MODIFIER.finditer(l):
|
|
27
|
+
print(" ๐ฅ %s:%d [zsh modifier ๋ก ๋จนํ ์ ์์] %s โ %s"%(f,i,m.group(0),l.strip()[:64])); hits+=1
|
|
28
|
+
print(" ํํธ %d ๊ฑด (0 ์ด๋ฉด ์ด ๋ ์ผ๊ตด์ ์๋ค โ ๋๋จธ์ง ํ๋๋ ์ด ๊ณ๊ธฐ๊ฐ ยซ์ ๋ณธ๋คยป)"%hits)
|
|
29
|
+
sys.exit(1 if hits else 0)
|
|
30
|
+
PY
|