@chrono-meta/fh-gate 3.26.1 → 3.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +4 -4
- package/package.json +1 -1
- 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 +7 -0
- package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/capability_effect_probe.sh +98 -23
|
@@ -11,25 +11,25 @@
|
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "fh-meta",
|
|
14
|
-
"version": "3.26.
|
|
14
|
+
"version": "3.26.2",
|
|
15
15
|
"description": "New in 2.2.0: BREAKING (gate): chamber step 6 now reads ACTUAL.md, not BUDGET.md — an in-flight chamber run whose actual cost sits in BUDGET.md blocks until the ACTUAL: line moves to tracks/_chamber/<slug>/ACTUAL.md (the runner prints the path). Why: BUDGET.md's pre-verdict hash IS the ordering witness, and step 6 hard-blocked until that same file changed, so every run that reached COMPLETE necessarily mutated a witnessed artifact and verify returned TAMPERED — the chamber's promotion condition was unsatisfiable by construction, not by strictness. Two roles (immutable witness / post-verdict calibration sink) had collided in one file; each was correct alone, so neither side's code showed the conflict. Also: ko-tech-writer Step 2/4-b scans are now calibration-backed (known-pair fixtures + reproducible command, shipped) — discrimination is proven, 'zero residue' is explicitly NOT; chamber lane suite 12 -> 33 including the runner x witness seam no test covered; chamber_run.sh now teaches the two-commit discipline (gate hashes and verdict hash must land in separate commits/PRs — it previously advised the opposite). New in 2.1.0: BREAKING (gate): `crossfamily: declined` in an Axes 2-3 marker now requires grounds naming a record path that RESOLVES on disk — bare `declined`, and `declined` justified by author judgment, are blocked at commit. Remedy: cite where the operator decision lives (e.g. `.. — operator declined sidecars, per knowledge/shared/rules/operational_adaptation.md`), or use `DEGRADED_PANEL_UNUSED` if a panel was reachable and you chose not to recruit it — which is what author judgment actually is. `declined` was the only enum value with no grounds requirement; a cross-family review then broke the first (vocabulary-grep) fix three ways — self-validating on the value's own token, vacuous keyword passes, and over-blocking real declinations in natural prose — so the check asserts a resolvable record instead of words. Also: standpoint axis gains `tier1b` (a STATIC read of a target repo, executed nothing) plus a decide-in-order procedure, after blind floor-tier sims graded pure cold-reads as `tier2` three rounds running; steel-quench Wave 1's sixth angle (gate-locality) gains the output-template row it never had, so a mandatory angle stops being structurally unreportable; verify-bidirectional gains category 5 (prescriptive doctrine statement); Sister Asset Protocol gains an active-adoption trigger; new resident doctrine — Mechanization Boundary, Local Execution First, Skeleton-not-Muscle, Expedition track, and this package's versioning policy. Hub meta-operations toolkit — 35 skills + 7 agents. New in 2.0.1: harness-doctor cadence hook, portability lint wired into pre-commit, branch_claim.sh claim-count-vs-tree-count warning, louder confidentiality-scan fail-open notice, fh-gate.sh missing-package.json survival, identity ① reclassified 🟢 (cross-harness adapters + relay argument channel). New in 1.4.53: `fh-codex-doctor` (npm bin) — Codex adapter drift scanner; reads the documented M1/M2/M3 skill tier map + skill/agent source and reports codex-native/adapter-required/claude-native/unclassified per unit, wired into `npm test`/`prepublishOnly` (fail-closed on unclassified Claude-native primitives). New in 1.4.49: steel-quench gains Step 0.6 Verdict-Invariance Probe (groundedness axis — a load-bearing judged gate's verdict must track behavior, not rubric phrasing; measured flip-count over cross-family paraphrases; arXiv:2605.06161 Policy Invariance anchor); multi_model_sidecar_strategy §Vendor-native harness (a model is strongest in its own vendor CLI — Claude/CC, GPT/codex, Gemini/Antigravity; a universal router degrades all of them, so it stays an autocomplete/QA sidecar, never orchestration); predelete_check.sh fail-closed rewrite; memory-hygiene A-TMA anchor. New in 1.4.48: phantom-quench + steel-quench gain external frontier anchors (arXiv:2607.02052 package-hallucination; arXiv:2607.02057 prompt-coverage-adequacy); README model-flat claim reframed from a per-release point-curve to structural invariants (operation flattens across tiers; depth tier-order fixed within a generation). New in 1.4.47: onboarding step ① surfaces the Mode D companion-store session-start load in the auto-read salience anchor (previously only in the local binding + rules, so a greeting could skip the load). New in 1.4.46: context-doctor command-output axis (route to rtk/proxy for verbose CLI stdout, complementing .claudeignore; risk-gated to token-scarce envs). New in 1.4.41: context-doctor 2026 trigger vocab (context engineering/rot/collapse) + phantom-citation hardening; hub measurement-integrity-checklist (cross-model measurement pre-flight: display-name pin/reps≥3/discriminating probe). New in 1.4.40: install-wizard queryable-wiki scaffold (INDEX + session-start read + R/W/C ingest). New in 1.4.39: auto-decorrelation (cross-family verifier sidecar recruitment) + video-ingest (capability-routed video ingestion). New in 1.4.x: verify-axis check-class taxonomy (mandatory-pass/measured/judged), no-reinvention Tier-0 inventory, 7-class failure taxonomy, Destructive-Op Gate, Wave-T (Temper), tier-floor governance, Mode D Model Notice, FC consent lane, default-Sonnet guidance. New in 1.3.0: public-surface-audit, field-harvest Mode B auto-trigger, 4-axis gate scope ext. Validated cross-CLI: Claude Code, Codex, Gemini.",
|
|
16
16
|
"source": "./plugins/fh-meta"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"name": "fh-commons",
|
|
20
|
-
"version": "3.26.
|
|
20
|
+
"version": "3.26.2",
|
|
21
21
|
"description": "Project-agnostic utility skills — 6 skills (convergence-loop · deliberation · mcp-circuit-breaker · token-budget-gate · ko-tech-writer · persona-cast) + 7 agents (quench-challenger + the web-review cast: designer · ux-writer · fe-dev · be-dev · qa · a11y). Domain-independent utilities transplantable into any project.",
|
|
22
22
|
"source": "./plugins/fh-commons"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "fh-qp",
|
|
26
|
-
"version": "3.26.
|
|
26
|
+
"version": "3.26.2",
|
|
27
27
|
"description": "QP (Quality Platform) — the generic edition of a field QA harness's Prepare→Automation→Regression loop as an FH plugin: 4 skills (qp router · qp-plan · qp-run · qp-regress) + qp_tools.sh (target-class · adapter-probe · mask · surface-reach · mtm-check · run-verbs, typed exit codes) + a zero-domain-constant profile slot + 29 known-pair lanes. Drives web targets through the session's Playwright MCP and desktop targets through computer-use MCP (mobile deferred); calls a registered qasp typed capability when one exists (strictest-wins) — none is registered today, so the MCP fallback is the first edition. Verdict contract: a MACHINE closure requires a recorded assertion; a failed first step is attributed BLOCKED, not FAIL; surface_reach counts every TC in the denominator. Born as chamber run #18 (EMIT, 2026-09-05).",
|
|
28
28
|
"source": "./plugins/fh-qp"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "fh-preprep",
|
|
32
|
-
"version": "3.26.
|
|
32
|
+
"version": "3.26.2",
|
|
33
33
|
"description": "preprep — a presentation-preparation harness. 1 skill. One CLI over 17 lanes (7 built-in + 10 module) that reads a declared surface manifest and checks a talk's assets against each other: canonical terms, jargon glosses, retired vocabulary, inter-slide dependencies, pacing, get/put round-trips, adjacent duplication, slide relations, geometry, attribute consistency, fonts, diagrams, slide refs, and screen-parity between manuscript and deck. Verdict contract: exit 0 pass / 1 findings / 2 cannot-judge — a surface that could not be read is UNMEASURED, never 0. Promoted out of fh-commons 2026-09-13 after the skill grew past one role (routing / lane modules / fixtures).",
|
|
34
34
|
"source": "./plugins/fh-preprep"
|
|
35
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrono-meta/fh-gate",
|
|
3
|
-
"version": "3.26.
|
|
3
|
+
"version": "3.26.2",
|
|
4
4
|
"description": "FH runtime adapters — run FH governance, skills, and agents via Claude or Codex with machine-parseable gates.",
|
|
5
5
|
"homepage": "https://github.com/chrono-meta/forge-harness#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# forge-harness (fh-meta) Changelog
|
|
2
2
|
|
|
3
|
+
### [3.26.2] — 2026-10-14 — self-test 가 Windows 에서 실행 파일을 대량 복사하던 것
|
|
4
|
+
|
|
5
|
+
**patch.** 수리.
|
|
6
|
+
|
|
7
|
+
- `capability_effect_probe.sh --self-test`(selfcheck 가 부른다): shim 빌더가 PATH 의 모든 실행 파일을 임시 폴더에 링크했고, Windows Git Bash 는 그 링크를 복사로 바꿔 보안 제품 오탐이 났다. 허용 목록만 링크하고, 심링크가 안 되는 환경이면 실행 파일을 하나도 넘기지 않고 해당 레인을 SKIP(미측정, 통과 아님)으로 남긴다(#890).
|
|
8
|
+
- 같은 파일: 홈 디렉터리 감시가 `shasum` 을 직접 불러, shasum 이 없는 호스트에서는 홈 쓰기를 늘 «안 바뀜» 으로 봤다 — 목록을 직접 비교한다(#890).
|
|
9
|
+
|
|
3
10
|
### [3.26.1] — 2026-10-13 — README 정리 · 레인 플레이크 · live-eval 거짓 적색
|
|
4
11
|
|
|
5
12
|
**patch.** 행동을 바꾸지 않는 문서·계기 수정.
|
|
@@ -316,7 +316,9 @@ probe_one() { # $1=capfile → rc
|
|
|
316
316
|
# (d) 가 말하는 결함을 프로브 자신이 갖고 있었던 것이다. 절대경로 쓰기의 가장 흔한
|
|
317
317
|
# 표적이 홈이므로 여기에도 감시를 둔다. ⚠️ 완전하지 않다 — 아래 §잔여 참조.
|
|
318
318
|
local home_before home_after
|
|
319
|
-
|
|
319
|
+
# 해시 없이 목록 자체를 비교한다 — `shasum` 직접 호출은 shasum 없는 Linux 에서 앞뒤 모두 빈 값이 돼
|
|
320
|
+
# 홈 감시가 늘 «안 바뀜» 으로 죽었다(2026-10-14, L20b 문구 검사가 드러냄). 해시 도구 의존 자체를 뺀다.
|
|
321
|
+
home_before=$(ls -A "$HOME" 2>/dev/null | LC_ALL=C sort; echo "|end") # 표지: 치환이 끝 줄바꿈을 먹지 않게(codex R3 #2)
|
|
320
322
|
mkdir -p "$sandbox/scripts"; printf 'x\n' > "$sandbox/scripts/CANARY_SCRIPTS"
|
|
321
323
|
|
|
322
324
|
local before after out rc
|
|
@@ -388,7 +390,7 @@ $out2"
|
|
|
388
390
|
_cleanup_probe
|
|
389
391
|
rm -rf "$outside"
|
|
390
392
|
|
|
391
|
-
home_after=$(ls -A "$HOME" 2>/dev/null | LC_ALL=C sort |
|
|
393
|
+
home_after=$(ls -A "$HOME" 2>/dev/null | LC_ALL=C sort; echo "|end") # 표지: 치환이 끝 줄바꿈을 먹지 않게(codex R3 #2)
|
|
392
394
|
local home_changed
|
|
393
395
|
home_changed=$([ "$home_before" = "$home_after" ] && echo 0 || echo 1)
|
|
394
396
|
|
|
@@ -873,55 +875,128 @@ EOF
|
|
|
873
875
|
# ⓑ shim 빌더가 `set -f`(전역 noglob) 때문에 확장이 안 됨 — **캘리브레이션 짝**이 적발
|
|
874
876
|
# 여기서는 도구를 **하나씩** 빼고, 매 arm 에 기대값을 다르게 건다.
|
|
875
877
|
# ★PATH 원소 분해는 공백/글롭 안전하게(`tr` → 줄 단위). cross-family 지목 #7.
|
|
876
|
-
|
|
878
|
+
# 🟥 PATH 전체가 아니라 **허용 목록**만 링크한다 (pmh-dev #87). 옛 판은 PATH 의 모든 실행 파일을
|
|
879
|
+
# 깔았고, Windows Git Bash 는 `ln -s` 를 «복사» 로 바꾸므로 System32 까지 수천 개가 임시 트리로
|
|
880
|
+
# 복사돼 EDR 이 짖었다. 이제 실행 파일을 넘기기 전에 텍스트 탐침으로 심링크가 되는지 묻고, 안 되면
|
|
881
|
+
# rc=2 로 돌아가 부르는 쪽이 그 레인을 SKIP(미측정, 통과 아님)한다.
|
|
882
|
+
# ⚠️ 보장 범위(codex R3 #1): MSYS/Git Bash 처럼 폴백이 «균일한» ln 에서는 실행 파일 복사 0 이다.
|
|
883
|
+
# 텍스트는 링크하고 실행 파일만 복사하는 ln 이라면 첫 실행 파일 하나가 복사된 뒤 rc=3(FAIL)로 멈춘다.
|
|
884
|
+
_SHIM_TOOLS="bash sh env cat cp mv rm ln mkdir mktemp touch chmod ls find stat readlink realpath
|
|
885
|
+
dirname basename sed awk grep egrep tr cut head tail sort uniq wc comm diff cmp xargs od
|
|
886
|
+
date sleep uname id expr git perl shasum sha256sum"
|
|
887
|
+
_mkshim() { # $1=shim경로 $2..=제외할 도구명 · rc=2 = 심링크를 못 만드는 환경(복사 폴백)
|
|
877
888
|
local shimd="$1"; shift
|
|
878
889
|
mkdir -p "$shimd"
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
890
|
+
# 실행 파일을 넘기기 «전에» 무해한 텍스트 파일로 심링크가 되는지 묻는다 — 복사 폴백이면
|
|
891
|
+
# 복사되는 것은 이 텍스트 한 장뿐이다(cross-family codex R1 #1: 사후 감지는 이미 복사한 뒤다)
|
|
892
|
+
printf 'symlink probe\n' > "$shimd/.lnprobe.txt"
|
|
893
|
+
MSYS=winsymlinks:nativestrict ln -s "$shimd/.lnprobe.txt" "$shimd/.lnprobe" 2>/dev/null
|
|
894
|
+
if [ ! -L "$shimd/.lnprobe" ]; then rm -f "$shimd/.lnprobe" "$shimd/.lnprobe.txt"; return 2; fi
|
|
895
|
+
rm -f "$shimd/.lnprobe" "$shimd/.lnprobe.txt"
|
|
896
|
+
hash -r # type -P 가 해시 캐시가 아니라 지금 PATH 의 첫 일치를 고르게(codex R1 #2)
|
|
897
|
+
local _t _x _skip _src
|
|
898
|
+
for _t in $_SHIM_TOOLS; do
|
|
899
|
+
_skip=0
|
|
900
|
+
for _x in "$@"; do [ "$_t" = "$_x" ] && { _skip=1; break; }; done
|
|
901
|
+
[ "$_skip" = 1 ] && continue
|
|
902
|
+
_src=$(type -P "$_t" 2>/dev/null) || continue
|
|
903
|
+
[ -n "$_src" ] || continue
|
|
904
|
+
# 탐침이 심링크였는데 실행 파일에서 실패·복사하면 «환경 미지원» 이 아니라 구성 오류다 — rc=3(codex R2 #1·#2)
|
|
905
|
+
MSYS=winsymlinks:nativestrict ln -s "$_src" "$shimd/$_t" 2>/dev/null || return 3
|
|
906
|
+
if [ ! -L "$shimd/$_t" ]; then rm -f "$shimd/$_t"; return 3; fi
|
|
907
|
+
done
|
|
908
|
+
}
|
|
909
|
+
_shim_skip() { echo "⏭ $1 SKIP — 이 환경에서는 심링크를 못 만든다(복사 폴백). 복사하지 않는다 — 미측정, 통과 아님"; }
|
|
910
|
+
# rc=2 만 SKIP 이다. 그 밖의 실패(링크 도중 오류)는 SKIP 으로 접지 않고 FAIL 로 센다(codex R2 #2)
|
|
911
|
+
_shim_ready() { # $1=레인 $2=shim경로 $3..=제외할 도구명 · 0=준비됨
|
|
912
|
+
local _lane="$1" _rc; shift
|
|
913
|
+
_mkshim "$@"; _rc=$?
|
|
914
|
+
[ "$_rc" = 0 ] && return 0
|
|
915
|
+
if [ "$_rc" = 2 ]; then _shim_skip "$_lane"
|
|
916
|
+
else fails=$((fails+1)); echo "❌ $_lane shim 구성 오류 rc=$_rc — 링크 도중 실패/복사(SKIP 아님)"; fi
|
|
917
|
+
return 1
|
|
893
918
|
}
|
|
919
|
+
# 정상 위반 판정인가 — rc 만이 아니라 판정 문구가 있고 도구 조회 오류가 없어야 한다(codex R1 #3 · R2 #3)
|
|
920
|
+
_viol_ok() { printf '%s' "$1" | grep -q '^🟥 VIOLATION .*샌드박스가 바뀌었다' \
|
|
921
|
+
&& ! printf '%s' "$1" | grep -qiE 'command not found|not found|no such file'; }
|
|
922
|
+
|
|
923
|
+
# L20g **판정 문구 검사 자체의 짝** — 위반 문구만 있으면 참, 도구 조회 오류가 섞이면 거짓, 문구가 없으면 거짓.
|
|
924
|
+
if _viol_ok '🟥 VIOLATION /x/a.cap — `writes: read-only` 선언인데 샌드박스가 바뀌었다' \
|
|
925
|
+
&& ! _viol_ok "$(printf 'bash: touch: command not found\n🟥 VIOLATION /x/a.cap — 샌드박스가 바뀌었다')" \
|
|
926
|
+
&& ! _viol_ok '✅ VERIFIED /x/a.cap'; then
|
|
927
|
+
pass=$((pass+1)); echo "✅ L20g 판정 문구 검사: 양성 1 참 · 조회 오류 섞임 거짓 · 문구 없음 거짓"
|
|
928
|
+
else
|
|
929
|
+
fails=$((fails+1)); echo "❌ L20g 판정 문구 검사가 짝을 못 가른다 — rc=1 만으로 통과하는 레인이 된다"
|
|
930
|
+
fi
|
|
931
|
+
|
|
932
|
+
# L20-ctl **허용 목록 컨트롤** — 아무것도 안 뺀 shim 에서 «정상 위반 판정» 이 나와야 한다.
|
|
933
|
+
# rc 만 보면 의존 도구가 빠져 오류로 끝난 rc=1 도 통과한다(codex R1 #3) — 판정 문구까지 본다.
|
|
934
|
+
# 이게 빨갛면 허용 목록에 프로브가 쓰는 도구가 빠진 것이고, 아래 L20 계열의 rc 는 의미가 없다.
|
|
935
|
+
if _shim_ready "L20-ctl" "$d/bin_all"; then
|
|
936
|
+
out=$(PATH="$d/bin_all" "${BASH:-/bin/bash}" "$0" "$d/agg_viol.cap" 2>&1); rc=$?
|
|
937
|
+
if [ "$rc" = "1" ] && _viol_ok "$out"; then
|
|
938
|
+
pass=$((pass+1)); echo "✅ L20-ctl 허용 목록 shim 에서 정상 위반 판정(도구 누락 없음)"
|
|
939
|
+
else
|
|
940
|
+
fails=$((fails+1)); echo "❌ L20-ctl rc=$rc (1 + 위반 문구 기대) — 허용 목록에 프로브가 쓰는 도구가 빠졌다: $(printf '%s' "$out" | head -1)"
|
|
941
|
+
fi
|
|
942
|
+
fi
|
|
943
|
+
# L20e **복사 폴백이면 실행 파일을 하나도 안 넘긴다** — 복사하는 가짜 ln 이 받은 원본을 전부 적는다.
|
|
944
|
+
mkdir -p "$d/fakeln"; : > "$d/fakeln_sources"
|
|
945
|
+
printf '#!/bin/sh\n# 심링크 대신 복사하는 ln (MSYS 기본 폴백 재현) — 받은 원본을 적는다\nshift; printf "%%s\\n" "$1" >> "%s"; cp "$1" "$2"\n' "$d/fakeln_sources" > "$d/fakeln/ln"; chmod +x "$d/fakeln/ln"
|
|
946
|
+
( PATH="$d/fakeln:$PATH"; _mkshim "$d/bin_copy" ); rc=$?
|
|
947
|
+
_nsrc=$(wc -l < "$d/fakeln_sources" | tr -d ' ')
|
|
948
|
+
_nexe=$(grep -vc '\.lnprobe\.txt$' "$d/fakeln_sources")
|
|
949
|
+
_nleft=$(find "$d/bin_copy" -type f 2>/dev/null | wc -l | tr -d ' ')
|
|
950
|
+
if [ "$rc" = "2" ] && [ "$_nsrc" = "1" ] && [ "$_nexe" = "0" ] && [ "$_nleft" = "0" ]; then
|
|
951
|
+
pass=$((pass+1)); echo "✅ L20e 복사 폴백 환경: 텍스트 탐침 한 장만 넘기고 rc=2 · 실행 파일 0 · 남은 사본 0"
|
|
952
|
+
else
|
|
953
|
+
fails=$((fails+1)); echo "❌ L20e rc=$rc 넘긴 원본=$_nsrc 그중 실행 파일=$_nexe 남은 사본=$_nleft (2·1·0·0 기대) — 복사 폴백에서 실행 파일을 넘긴다"
|
|
954
|
+
fi
|
|
894
955
|
|
|
895
956
|
# L20 해시 도구가 **둘 다** 없으면 판정하지 않는다.
|
|
896
|
-
|
|
957
|
+
if _shim_ready "L20" "$d/bin_none" shasum sha256sum; then
|
|
897
958
|
out=$(PATH="$d/bin_none" "${BASH:-/bin/bash}" "$0" "$d/agg_viol.cap" 2>&1); rc=$?
|
|
898
959
|
if [ "$rc" = "10" ] && printf '%s' "$out" | grep -q "sha256sum"; then
|
|
899
960
|
pass=$((pass+1)); echo "✅ L20 해시 도구 전무는 HARNESS_ERROR (이유도 찍힌다)"
|
|
900
961
|
else
|
|
901
962
|
fails=$((fails+1)); echo "❌ L20 rc=$rc (10 기대) — 계기 사망이 통과/판정으로 렌더된다"
|
|
902
963
|
fi
|
|
964
|
+
fi
|
|
903
965
|
# L20b **과차단 방지** — `shasum` 만 없고 `sha256sum` 이 있으면 정상 판정해야 한다.
|
|
904
966
|
# cross-family 지목 #3: 이 파일은 files[] 로 출하되고 Linux 소비자는 sha256sum 만 갖는다.
|
|
905
967
|
if command -v sha256sum >/dev/null 2>&1; then
|
|
906
|
-
|
|
968
|
+
if _shim_ready "L20b" "$d/bin_s256" shasum; then
|
|
907
969
|
out=$(PATH="$d/bin_s256" "${BASH:-/bin/bash}" "$0" "$d/agg_viol.cap" 2>&1); rc=$?
|
|
908
|
-
if [ "$rc" = "1" ]; then
|
|
970
|
+
if [ "$rc" = "1" ] && _viol_ok "$out"; then
|
|
909
971
|
pass=$((pass+1)); echo "✅ L20b shasum 부재+sha256sum 존재 → 폴백이 정상 판정(과차단 없음)"
|
|
910
972
|
else
|
|
911
973
|
fails=$((fails+1)); echo "❌ L20b rc=$rc (1 기대) — 폴백이 없거나 과차단한다"
|
|
912
974
|
fi
|
|
975
|
+
fi
|
|
976
|
+
# L20f **shasum 없이도 홈 감시가 산다** — 옛 판은 홈 목록을 `shasum` 으로 직접 해시해서, shasum 없는
|
|
977
|
+
# Linux 에서 앞뒤가 둘 다 빈 값 → 홈 쓰기가 늘 «안 바뀜» 이었다. L14b 와 같은 과녁을 shim 아래에서 친다.
|
|
978
|
+
if _shim_ready "L20f" "$d/bin_s256f" shasum; then
|
|
979
|
+
out=$(PATH="$d/bin_s256f" "${BASH:-/bin/bash}" "$0" "$d/outside.cap" 2>&1); rc=$?
|
|
980
|
+
rm -f "$_homemark"
|
|
981
|
+
if [ "$rc" = "1" ] && printf '%s' "$out" | grep -q '홈 디렉토리'; then
|
|
982
|
+
pass=$((pass+1)); echo "✅ L20f shasum 부재에서도 홈 쓰기는 VIOLATION(이유 «홈»)"
|
|
983
|
+
else
|
|
984
|
+
fails=$((fails+1)); echo "❌ L20f rc=$rc · 이유=[$(printf '%s' "$out" | tail -1)] — shasum 없는 환경에서 홈 감시가 죽었다"
|
|
985
|
+
fi
|
|
986
|
+
fi
|
|
913
987
|
else
|
|
914
|
-
echo "⏭ L20b SKIP — 이 머신에 sha256sum 이 없다(미측정, 통과 아님)"
|
|
988
|
+
echo "⏭ L20b · L20f SKIP — 이 머신에 sha256sum 이 없다(미측정, 통과 아님)"
|
|
915
989
|
fi
|
|
916
990
|
# L20c **«있는데 고장난» 해시 도구** — cross-family 지목 #1. 프리플라이트는 통과한다.
|
|
917
|
-
|
|
991
|
+
if _shim_ready "L20c" "$d/bin_broken" shasum sha256sum; then
|
|
918
992
|
printf '#!/bin/sh\nexit 1\n' > "$d/bin_broken/shasum"; chmod +x "$d/bin_broken/shasum"
|
|
919
993
|
out=$(PATH="$d/bin_broken" "${BASH:-/bin/bash}" "$0" "$d/agg_viol.cap" 2>&1); rc=$?
|
|
920
|
-
if [ "$rc" = "1" ]; then
|
|
994
|
+
if [ "$rc" = "1" ] && _viol_ok "$out"; then
|
|
921
995
|
pass=$((pass+1)); echo "✅ L20c 해시 도구가 고장나도 파일 생성은 잡힌다(이름 목록 축)"
|
|
922
996
|
else
|
|
923
997
|
fails=$((fails+1)); echo "❌ L20c rc=$rc (1 기대) — 고장난 계기가 거짓 VERIFIED 를 낸다"
|
|
924
998
|
fi
|
|
999
|
+
fi
|
|
925
1000
|
# L20d **읽을 수 없는 파일** — 가짜 도구 없이 재현되는 형태(cross-family 지목 #1 두 번째).
|
|
926
1001
|
cat > "$d/unreadable.cap" <<EOF
|
|
927
1002
|
id: t:unread
|