@chrono-meta/fh-gate 2.8.0 → 2.9.1
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 +33 -5
- package/.claude-plugin/marketplace.json +2 -2
- package/AGENTS.md +5 -0
- package/CLAUDE.md +47 -12
- package/README.ja.md +44 -29
- package/README.ko.md +43 -28
- package/README.md +48 -33
- package/README.zh.md +41 -28
- package/docs/ETHOS.md +48 -8
- package/docs/GATE_DAY.md +235 -0
- package/docs/OUTPUT_EVIDENCE.md +13 -2
- package/docs/codex-compat.md +10 -2
- package/knowledge/shared/harness-core/agents_md_runtime_details.md +10 -3
- package/knowledge/shared/harness-core/fh_three_layer_canon.md +20 -2
- package/knowledge/shared/harness-core/field_verdict_crossfamily_gate.md +23 -5
- package/knowledge/shared/harness-core/harness_incubator_doctrine.md +6 -1
- package/knowledge/shared/harness-core/measurement-integrity-checklist.md +31 -0
- package/knowledge/shared/harness-core/ship_readiness_gate.md +2 -2
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +31 -0
- package/knowledge/shared/rules/multi_session_close_protocol.md +8 -1
- package/package.json +17 -3
- 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 +122 -0
- package/plugins/fh-meta/skills/cross-ecosystem-synergy-detection/SKILL.md +93 -3
- package/scripts/chamber_candidate_collect.sh +71 -13
- package/scripts/compaction_probe.sh +17 -2
- package/scripts/fh-gate.sh +58 -0
- package/scripts/files_manifest_shipping_check.sh +314 -0
- package/scripts/mapped_tracks.sh +113 -0
- package/scripts/package_coverage_check.sh +54 -0
- package/scripts/postinstall_notice.js +9 -2
- package/scripts/prior_art_prompt.sh +49 -2
- package/scripts/selfcheck.sh +58 -2
- package/scripts/session_close_check.sh +56 -3
- package/scripts/test_chamber_sig_lanes.sh +151 -0
- package/scripts/test_files_manifest_shipping_lanes.sh +260 -0
- package/scripts/test_leak_scan_control_lanes.sh +163 -0
- package/scripts/test_mapped_tracks_lanes.sh +162 -0
- package/scripts/test_peer_worktree_detect_lanes.sh +138 -0
- package/scripts/test_prepush_destructive_lanes.sh +366 -0
- package/scripts/test_prior_art_prompt_lanes.sh +48 -0
- package/scripts/test_regression_guard_ci_lanes.sh +124 -0
- package/templates/predelete_check.test.sh +56 -0
- package/templates/regression_guard.sh +75 -3
|
@@ -8,6 +8,128 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
|
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
+
### [2.9.1] — 2026-08-23
|
|
12
|
+
|
|
13
|
+
**자릿수 근거 (patch)**: 수정 · 배선 · 표시자료. 행동을 바꾸는 교리도 새 게이트 클래스도 없다.
|
|
14
|
+
**`BREAKING (gate)` 없음** — 게이트가 무엇을 막는지는 2.9.0 그대로다.
|
|
15
|
+
|
|
16
|
+
#### 🟥 `--version` 이 «대상 파일»로 읽혀, 사용자의 `claude` 가 우리를 인젝션으로 판정했다
|
|
17
|
+
|
|
18
|
+
`scripts/fh-gate.sh` 에 **플래그 처리 분기가 존재하지 않았다**(`grep` 히트 0). 모든 인자가
|
|
19
|
+
`TARGET_FILES` 로 흘러서 `npx @chrono-meta/fh-gate --version` 이 «대상 파일: --version» 으로
|
|
20
|
+
거버넌스 프롬프트를 만들고 사용자의 `claude` CLI 로 보냈다. Claude 는 그것을
|
|
21
|
+
**프롬프트 인젝션 시도로 판정하고 거부**했고, 그 거부문이 우리 도구의 출력으로 찍혔다.
|
|
22
|
+
**신규 사용자가 가장 먼저 치는 명령이 그것이다.**
|
|
23
|
+
|
|
24
|
+
이제 `--version`/`-V`·`--help`/`-h` 를 처리하고, **인식 못 하는 `-*` 는 `exit 11` 로 거부**한다 —
|
|
25
|
+
모르는 플래그를 파일명으로 강등하는 것은 «알 수 없는 입력 → 약한 처리»다.
|
|
26
|
+
기존 호출(인자 없음 = git diff 자동감지 · 파일목록)은 무변경이며 컨트롤로 확인했다.
|
|
27
|
+
|
|
28
|
+
🟥 **적대검증도 레인도 못 잡았다.** 「`--version` 을 쳐본다」를 아무도 질문하지 않았고,
|
|
29
|
+
Reddit 게시글에 그 명령을 넣기 직전 레포 **밖에서 실제로 돌려서** 나왔다
|
|
30
|
+
(`[[feedback_adversarial_review_not_substitute_for_first_use]]`).
|
|
31
|
+
|
|
32
|
+
#### 소비자 표면 수리
|
|
33
|
+
|
|
34
|
+
- **`package.json` 에 `homepage`·`bugs` 신설.** 없으면 npmjs.com 페이지에서 레포 링크가 눈에
|
|
35
|
+
띄는 자리에 안 걸린다. 실측: npm 주간 다운로드 2465 → 14일간 레포 유입 **uniq 1명**.
|
|
36
|
+
⚠️ 다만 그 두 숫자는 **둘 다 사람을 안 센다** — 다운로드는 미러/스캐너 바닥을 포함하고
|
|
37
|
+
(구버전 110개에 주 2~3건씩 균일하게 깔린다), npm 의 레포 링크는 Referer 를 안 보낸다.
|
|
38
|
+
**새는 것을 막는 수리이지 채우는 것이 아니다.**
|
|
39
|
+
- **postinstall 배너 재작성.** 「유용하면 별을 눌러달라」만 있고 **무엇을 하는 물건인지 0글자**였다.
|
|
40
|
+
이제 한 줄 정의 + 지금 돌려볼 명령 + 그 결과를 말한다. 🟥 문구를 쓰기 전 실제로 돌려봤고
|
|
41
|
+
초안 둘이 팬텀이었다(`--help` 미지원 · `check` 서브커맨드 부재).
|
|
42
|
+
- **README star 배지 제거**(4개 언어판). 정보가 아니라 사회적 증거 위젯이고, GitHub 이 레포
|
|
43
|
+
상단에 같은 숫자를 항상 표시하므로 은폐가 성립하지 않는다 — 강조하지 않기로 한 것이다.
|
|
44
|
+
|
|
45
|
+
#### 데모 GIF — 연출이 아니라 재생성 가능하다
|
|
46
|
+
|
|
47
|
+
`docs/demo/gate-block.gif` + `.tape` + `setup.sh`. 에이전트가 스킬 명세를 「정리」했고 diff 는
|
|
48
|
+
8줄 삭제로 무해해 보이는데, `regression_guard` 가 `'Done When' section group dropped (1 → 0)` 으로
|
|
49
|
+
이름을 대고 BLOCK 한다. **섹션만 되살리고 정리는 유지하면 PASS** — 게이트는 정리를 막지 않고
|
|
50
|
+
손실만 막는다. `brew install vhs && vhs docs/demo/gate-block.tape` 로 누구나 같은 GIF 를 다시 굽는다.
|
|
51
|
+
🟥 첫 렌더의 2막은 틀렸고(전부 되돌려서 `SKIP (not-checked, NOT a pass)`) **프레임을 눈으로 봐서**
|
|
52
|
+
걸렸다.
|
|
53
|
+
|
|
54
|
+
#### 잔여 — 이름으로
|
|
55
|
+
|
|
56
|
+
- **다른 bin(`fh-run`·`fh-goal`·`fh-codex-doctor`)의 플래그 처리는 전수 검사하지 않았다.**
|
|
57
|
+
히트 수만 셌고(각 1) 형태는 안 봤다. half-fix 전파경계 후보로 남긴다.
|
|
58
|
+
- 대시로 시작하는 파일명은 이제 거부된다. `--` 구분자는 **안 넣었다** — 실재한 적이 없다.
|
|
59
|
+
- 데모 GIF 의 전환 효과는 **미측정**이다. 근거는 남의 코퍼스 상관(n=252)이다.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
### [2.9.0] — 2026-08-23
|
|
64
|
+
|
|
65
|
+
**자릿수 근거 (minor)**: 새 게이트 레인 둘 · 새 자산 하나 · 소비자 게이트 수용을 바꾸는 변경 하나.
|
|
66
|
+
major 아님 — 정체성 다섯이 전부 🟢 도 아니고(블로커는 여전히 ④ 하나), capability **class** 신설도
|
|
67
|
+
아니다. **이미 있던 게이트를 조인 것에는 major 를 쓰지 않는다**는 정책 그대로.
|
|
68
|
+
|
|
69
|
+
> **BREAKING (gate)**: `templates/regression_guard.sh` 가 이제 «0바이트로 비워진 / 내용이 사라진»
|
|
70
|
+
> 게이트 경로 자산을 **M-tier 로 막는다**(전에는 통과했다). 처방: 제거가 의도라면 **파일을 지워라**
|
|
71
|
+
> — 진짜 삭제는 git 에게 직접 물어(`--diff-filter=D`) 여전히 통과한다. 원래 비어 있던 파일은
|
|
72
|
+
> **S-tier 경고**이고 차단하지 않으며, 못 읽는 파일은 **M-tier 계기오류**로 «통과»가 아니다.
|
|
73
|
+
|
|
74
|
+
#### 🟥 부재-단언 관용구 — 우리 게이트 셋이 같은 얼굴로 뚫려 있었다
|
|
75
|
+
|
|
76
|
+
`cmd && echo FOUND || echo NOT_FOUND` 계열, 즉 **통과 토큰이 실패 가지에서 생산되는** 형태.
|
|
77
|
+
부재를 확인하는 게이트는 «참이기를 가장 바라는» 게이트라 거짓 초록의 피해가 가장 크다.
|
|
78
|
+
|
|
79
|
+
- `templates/regression_guard.sh` — *삭제* · *0바이트로 비워짐* · *못 읽음* 세 상태가 한 분기로
|
|
80
|
+
접혀 있었고 접힌 방향이 PASS 였다. 실측(일회용 레포, `--staged`, 변수 하나씩):
|
|
81
|
+
컨트롤 = 무해한 추가 → PASS · known-positive = `## Done When` 삭제 → **BLOCK**(계기 판별력 확인)
|
|
82
|
+
· 🟥 **같은 파일 0바이트 → PASS**. 전부 잃었는데 초록이었다.
|
|
83
|
+
- `.github/workflows/validate.yml` — `|| true` 가 grep 의 **오류(2)** 를 **무매치(1)** 에 접었다.
|
|
84
|
+
죽은 계기가 「깨끗함」으로 렌더된다. `rc>=2` → `INSTRUMENT ERROR` 로 분리하고, **실제 히트를
|
|
85
|
+
세기 전에** known-positive 컨트롤 픽스처를 먼저 통과시키도록 순서를 고정했다.
|
|
86
|
+
- `scripts/mapped_tracks.sh` — 못 읽는 디렉터리가 `count=0` 이 되어 하류가 `skipped` 로 통과.
|
|
87
|
+
`[ -r ] && [ -x ]` 로 분리. 4케이스 표에서 `111` 이 결정적이다(`-x` 만으로는 통과한다).
|
|
88
|
+
|
|
89
|
+
외부에서 이 부류에 이름을 붙여 준 것은 `Leonxlnx/unlazy` 이슈 #13 의 회신자다.
|
|
90
|
+
|
|
91
|
+
#### 🟥 인큐베이션 큐가 한글 후보의 절반을 조용히 삼키고 있었다
|
|
92
|
+
|
|
93
|
+
`scripts/chamber_candidate_collect.sh` 의 `raw 64 → dedup 31` 은 성능이 아니라 **결함**이었다.
|
|
94
|
+
`sort -u` 의 UTF-8 collation 이 토큰 8개를 2개로 접었고, 2차 피해가 더 나빴다 — `comm -12` 가
|
|
95
|
+
같은 collation 을 쓰므로 **jaccard 의 분자가 토큰이 아니라 collation 을 재고 있었다.**
|
|
96
|
+
`LC_ALL=C` + 바이트 기반 awk 토크나이저로 교체(BSD awk · mawk 1.3.4 · gawk 5 에서 바이트 동일 확인).
|
|
97
|
+
수리 후 **61**. 삼켜지고 있던 것 중에 정체성 ④ 후보가 있었다.
|
|
98
|
+
|
|
99
|
+
#### 추가된 게이트·자산
|
|
100
|
+
|
|
101
|
+
- **caller-zero ratchet** (`scripts/script_caller_ratchet.sh` + `ratchet_base_resolve.sh` +
|
|
102
|
+
`package_coverage_check.sh`, CI 는 `caller-zero-ratchet.yml`) — 호출자 0인 스크립트가 조용히
|
|
103
|
+
느는 것을 막는다. 🟥 **그 게이트 자신이 처음엔 fail-open 이었고**, 그 사실을 함께 기록했다.
|
|
104
|
+
- **파괴적-op 훅 CI 상시 재검증** — 훅이 조용히 망가지는 것을 known-pair 로 매 PR 재실행.
|
|
105
|
+
- **`scripts/mapped_tracks.sh`** (신규) — 매핑된 필드 하네스 리졸버 + 전용 레인 스위트.
|
|
106
|
+
door ④ Step 3-b 배선.
|
|
107
|
+
- **door ④ Step 3-c** — 프런티어 답습 루프 배선.
|
|
108
|
+
|
|
109
|
+
#### 정정 · 기록
|
|
110
|
+
|
|
111
|
+
- 🟥 **「`standpoint:` 값을 검증하는 코드가 0줄」은 거짓이었다** — 상주·정본 층 **8자리 / 6파일**
|
|
112
|
+
전수 철회. 실물: `validate_standpoint_leg()` 는 86줄이고 호출되어 커밋을 **차단한다**.
|
|
113
|
+
정확한 잔여는 훨씬 좁다 — enum 은 닫혀 차단하고, `tier2`+ 의 grounds 검사만 advisory 다.
|
|
114
|
+
레포 안에 계수기가 **둘**이었고(FIVE vs 여섯) **둘 다 틀렸다.**
|
|
115
|
+
- **`docs/GATE_DAY.md`** (신규, 공개) — 하루치 자기 실측. 게이트가 저자를 **7회** 막았고
|
|
116
|
+
**자력 적발 0**, 여덟 번째는 CI 가 뒤늦게 잡았다(그 자체가 이 레포의 「CI 는 백스톱이지
|
|
117
|
+
발견 수단이 아니다」 위반이다). 어떤 델타도 6축을 전부 태우지 않았다.
|
|
118
|
+
- **마감 체인** — 워크트리에서 마감하면 살아있는 peer 를 전원 놓치던 것을 수리.
|
|
119
|
+
- **README** — 게이트만 쓸 사람이 4스크롤 뒤에 만나던 답을 첫 화면으로. 첫 줄 =
|
|
120
|
+
*"Quality gates that catch you, not just your agent."* (4개 언어 + 레포 description 통일).
|
|
121
|
+
DOI · `Codex-beta — help validate` 배지 제거.
|
|
122
|
+
|
|
123
|
+
#### 정직하게 남기는 잔여
|
|
124
|
+
|
|
125
|
+
- 이 릴리스의 커밋 셋(#511·#512·#513)은 **PR 제목이 전부 동일**하다. 브랜치를 서로 위에 쌓고
|
|
126
|
+
가장 **오래된** 커밋 제목을 집는 스크립트를 쓴 결과다. 내용은 컨트롤과 함께 검증됐고,
|
|
127
|
+
이력 재작성은 금지라 **고치지 않고 적어 둔다.**
|
|
128
|
+
- 부재-단언 관용구(N=4)와 built-but-not-wired(N=4) 둘 다 기계화 임계를 넘었으나
|
|
129
|
+
**«무엇을 지을지»가 미정**이다. 투기 빌드를 하지 않는다.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
11
133
|
### [2.8.0] — 2026-08-22
|
|
12
134
|
|
|
13
135
|
**자릿수 근거 (minor)**: 새 게이트 레인 · 행동을 바꾸는 교리 · 소비자 install 동작 변경.
|
|
@@ -43,6 +43,8 @@ Automatically discovers cross-invocable pairs in environments with multiple inst
|
|
|
43
43
|
| "Can I transplant a governance pattern from another project?" | **Step 3-b standalone** |
|
|
44
44
|
| "Could I bring that project's gate over here?" | **Step 3-b standalone** |
|
|
45
45
|
| "하네스끼리 시너지" · "거버넌스 패턴 이식" · "다른 프로젝트 게이트 가져올 수 있나" | **Step 3-b standalone** |
|
|
46
|
+
| "이 하네스에 시너지 몰아줘" · "focus the synergy on this one" · "이거 하나 집중해서 강화" | **focus mode** — Step 3-b **+ Step 3-c by default** |
|
|
47
|
+
| "밖에도 이런 거 있나" · "더 강화할 방법 있어?" · "is there prior art that would make this stronger?" | **Step 3-c** |
|
|
46
48
|
|
|
47
49
|
> **Step 3-b fires standalone.** The last four rows call that step alone; they do not require the full
|
|
48
50
|
> door-④ pass. A request about *harnesses* is not a request about *installed plugins*.
|
|
@@ -99,8 +101,20 @@ Call mechanism compatibility:
|
|
|
99
101
|
|
|
100
102
|
### Step 3-b. Harness-level pattern-transplant scan (conditional default)
|
|
101
103
|
|
|
102
|
-
**Condition**: 2+ mapped field-harness tracks exist
|
|
103
|
-
|
|
104
|
+
**Condition**: 2+ mapped field-harness tracks exist. 🟥 **Establish the count by running
|
|
105
|
+
`bash scripts/mapped_tracks.sh` — never by listing `tracks/` from the session's cwd.** The mapping
|
|
106
|
+
signal is the *presence* of `tracks/<name>/`, and that signal cannot reach a worktree: `tracks/**` is
|
|
107
|
+
gitignored, and at least one mapped track is an **empty directory** git could not carry even if it
|
|
108
|
+
were not. Measured 2026-08-22, one run: **main checkout 11 · worktree 1** — a cwd listing does not
|
|
109
|
+
return a smaller count, it returns a structurally blind one, and `skipped(<2 mapped tracks)` is a
|
|
110
|
+
*pass* value, so the blind run closes green. The script resolves the hub root through
|
|
111
|
+
`git rev-parse --git-common-dir` (the `EVIDENCE_ROOT` pattern this repo already sanctions in
|
|
112
|
+
`templates/.git-hooks/pre-commit`) so both standpoints answer alike.
|
|
113
|
+
🟥 **`status=UNMEASURED` (exit 3) is NOT a skip** — it means the count could not be taken, which is a
|
|
114
|
+
different value from "fewer than two". Close it as `external-error` (non-pass); never as
|
|
115
|
+
`skipped(<2 mapped tracks)`. Underscore-prefixed meta dirs (`_meta`/`_audit`/`_contrib`/`_chamber`)
|
|
116
|
+
do not count — the test is a **leading** underscore, so a track like `the_bible` is counted.
|
|
117
|
+
Otherwise skip with one line.
|
|
104
118
|
|
|
105
119
|
Steps 1–3 look at **installed plugins/skills**. This step looks one layer up: the **governance
|
|
106
120
|
mechanisms of the mapped field harnesses themselves** — verification axes, verdict enums, gate exit
|
|
@@ -125,6 +139,79 @@ codes, persona systems — and finds pairs where one harness's mechanism is tran
|
|
|
125
139
|
> ⚠️ **Mechanized at N=2 by explicit operator instruction; do not count as threshold-triggered
|
|
126
140
|
> mechanization** (`[[feedback_mechanize_at_repetition_prose_before]]`).
|
|
127
141
|
|
|
142
|
+
### Step 3-c. Outward pass — strengthen the pairs (identity ④ loop)
|
|
143
|
+
|
|
144
|
+
**Condition (default is scoped, not always-on)**: runs by default only in **focus mode** — when the
|
|
145
|
+
operator names one harness to concentrate synergy on. In whole-environment mode it is **offered, not
|
|
146
|
+
run** (operator, 2026-08-22: *"로컬 내 플젝 간 시너지는 딱히 영향이 크게 없겠지만 이후 세션에는 또
|
|
147
|
+
새로운 정보를 얻을 수 있겠지"* — worth doing, not worth doing every time).
|
|
148
|
+
|
|
149
|
+
This is identity ④ (**프런티어 답습**) applied to synergy, and its purpose is the same as that
|
|
150
|
+
identity's: **block reinvention.** 📚 *bookshelf = don't rebuild what we already have* ·
|
|
151
|
+
🌍 *library = don't rebuild what the world already made.*
|
|
152
|
+
|
|
153
|
+
**The loop** — ② is a judgment and stays with the session; no hook decides it:
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
Steps 1–3-b produced pairs (📚 bookshelf: our own components + mapped harnesses)
|
|
157
|
+
↓ ② is there ANYTHING you cannot assert confidently about a pair?
|
|
158
|
+
(threshold is «even slightly» — «I'm fairly sure» is the setting where this never fires)
|
|
159
|
+
↓ three outcomes, and COUNT THEM SEPARATELY
|
|
160
|
+
ⓐ closed by thinking — **no tool call was made**; reasoning settled it
|
|
161
|
+
ⓑ closed at the bookshelf — **a Read/Grep against local canon actually ran** and answered it
|
|
162
|
+
ⓒ went to the library — an outward call was made (below)
|
|
163
|
+
```
|
|
164
|
+
🟥 **The three are separated by TOOL CALLS, not by how it felt.** ⓐ = zero calls · ⓑ = a local read
|
|
165
|
+
happened · ⓒ = an outward call happened. Written that way the split is checkable against the session's
|
|
166
|
+
own tool history instead of being self-reported — which is what an earlier draft left it as.
|
|
167
|
+
⚠️ **Never fold ⓐ into ⓑ.** «I already knew it from the bookshelf» with no Read is **ⓐ**, not ⓑ.
|
|
168
|
+
Folding inflates the "closed at the bookshelf" column, and that column is the one that says whether
|
|
169
|
+
this loop works at all.
|
|
170
|
+
|
|
171
|
+
**Record it per pair, not as a total.** A bare `run(2/3/1)` cannot be checked — it says the three were
|
|
172
|
+
counted without showing which pair went where. Step 3-c emits a **pair ledger**:
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
pair | what I could not assert | outcome ⓐ/ⓑ/ⓒ/withheld | bookshelf pointer or query shape | note
|
|
176
|
+
```
|
|
177
|
+
and the arithmetic has to close: **ⓐ + ⓑ + ⓒ + withheld == in-scope pair count.** A pair that appears
|
|
178
|
+
in no row is a dropped pair, not a passing scan.
|
|
179
|
+
|
|
180
|
+
**Two result types — keep them apart** (they feed different steps):
|
|
181
|
+
- `strengthener` — a technique or prior art that makes an existing pair better. **This is what
|
|
182
|
+
Step 3-c is for.**
|
|
183
|
+
- `equivalent-risk` — the outside already has the whole thing. That is **Step 6's question**, not this
|
|
184
|
+
one; hand it down rather than acting on it here. Mixing them is how «강화» quietly becomes «폐기».
|
|
185
|
+
|
|
186
|
+
**Residency — narrow, and stated at its real size.**
|
|
187
|
+
Searching does **not** leak by itself. The only **semantic payload we intentionally send** is the query
|
|
188
|
+
string — ⚠️ not the only surface at all (account and tool logs, which results were opened, any follow-up
|
|
189
|
+
fetch path all exist); it is the one carrying meaning we chose. And the natural way to look for prior art
|
|
190
|
+
is already abstract — nobody searches for a technique by typing their own repo name.
|
|
191
|
+
So this is one careless-phrasing case, not a reason to fear the step:
|
|
192
|
+
- **Keep harness names, repo names, paths and internal codenames out of the query.** Send the **problem
|
|
193
|
+
shape** — «a gate whose verdict is a typed enum, transplanted into a repo that greps prose».
|
|
194
|
+
- It bites unevenly: some mapped harnesses are **company assets**, and `internal repo/asset names` is on
|
|
195
|
+
the residency prohibition list by name. Public ones are not. **Check which side a pair sits on before
|
|
196
|
+
wording the query**, rather than treating every name as equally sensitive.
|
|
197
|
+
- A pair that genuinely cannot be abstracted without naming a private asset stays home — record
|
|
198
|
+
`outward: withheld (residency)`, a *recorded* skip rather than a silent one.
|
|
199
|
+
- Results come back and are matched to pairs **locally**; the matching never goes out.
|
|
200
|
+
|
|
201
|
+
**What comes back, and what it is for**: not «who else built this» trivia — a **prior art or a
|
|
202
|
+
technique that would make an existing pair stronger**. If the outward pass produces no such thing,
|
|
203
|
+
that is a normal result: record `outward: run, 0 applicable`. 🟥 Do **not** manufacture a finding to
|
|
204
|
+
justify having looked.
|
|
205
|
+
|
|
206
|
+
**Boundary with Step 6** — do not merge these, they answer opposite questions:
|
|
207
|
+
|
|
208
|
+
| | question | when |
|
|
209
|
+
|---|---|---|
|
|
210
|
+
| **Step 3-c** (this) | *is there something outside that would **strengthen** these pairs?* | during derivation |
|
|
211
|
+
| **Step 6** «Confirm absence of equivalent external tools» | *does an equivalent already exist, i.e. are we **reinventing**?* | at persistence |
|
|
212
|
+
|
|
213
|
+
Both are «external»; only one of them is asking whether to keep going.
|
|
214
|
+
|
|
128
215
|
### Step 4. Synergy Grade Derivation (★~★★★)
|
|
129
216
|
|
|
130
217
|
| Grade | Compatibility conditions |
|
|
@@ -280,7 +367,10 @@ External users automatically derive their own inventory via Step 1 `installed_pl
|
|
|
280
367
|
| Condition | Check class |
|
|
281
368
|
|---|---|
|
|
282
369
|
| Steps 1~6 completed | **mandatory-pass** |
|
|
283
|
-
| **Step 3-b reported as `run(n pairs)` or `skipped(<2 mapped tracks)`** — never silently omitted; read depth declared per track
|
|
370
|
+
| **Step 3-b reported as `run(n pairs)` or `skipped(<2 mapped tracks)`** — never silently omitted; read depth declared per track. 🟥 **The count comes from `bash scripts/mapped_tracks.sh`, and its `hub_root` / `in_worktree` line is quoted with the verdict** — a count taken by listing cwd is not evidence, it is the defect (main 11 vs worktree 1, measured 2026-08-22). `status=UNMEASURED` closes as `external-error`, **never** as `skipped` | **measured** (the count is a tool-call result, not a recollection) |
|
|
371
|
+
| **Step 3-c closes as exactly one of `run(ⓐ=N ⓑ=N ⓒ=N)` · `offered(whole-environment mode)` · `withheld(residency)`** — 🟥 **there is deliberately no open `skipped(<reason>)` value.** A free-text reason is an escape hatch: «skipped — pair obvious» would satisfy a presence check while doing none of the work. Deciding a lookup is unnecessary is not a skip, it is **ⓐ**, and it gets counted. A lookup or tool **failure** closes as `external-error` — a **NON-PASS**, never one of the three above | **mandatory-pass** |
|
|
372
|
+
| **Step 3-c pair ledger closes: `ⓐ + ⓑ + ⓒ + withheld == in-scope pair count`**, and ⓐ/ⓑ/ⓒ are assigned by tool-call evidence (none / local read / outward call), not by recollection | **measured** (counts come from the ledger and the session's tool history, not from memory) |
|
|
373
|
+
| **Step 3-c queries carried problem shapes, not harness/repo/path names** — and any pair that genuinely could not be abstracted is recorded as `withheld (residency)`, never dropped silently | **mandatory-pass** |
|
|
284
374
|
| **`harness-error` is a NON-PASS, not a third accepted state.** Reporting the error satisfies the anti-silence rule and nothing else — it does not clear this row. Surface it and stop; do not let a status string stand in for a result | **mandatory-pass** |
|
|
285
375
|
| Synergy ranking table (★~★★★) output | **mandatory-pass** |
|
|
286
376
|
| **Step 7 state reported as one of `run` / `not-configured` / `harness-error`** — never silently omitted, and `harness-error` never reported as a skip | **mandatory-pass** |
|
|
@@ -88,13 +88,64 @@ fi
|
|
|
88
88
|
|
|
89
89
|
# --- keyword signature per candidate (for dedup) ---
|
|
90
90
|
STOP='^(that|this|from|into|over|when|what|will|your|there|their|then|than|with|chamber|candidate|skill|agent|tool|does|done|after|before|which|about|through)$'
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
#
|
|
92
|
+
# 🟥 EVERY STAGE IS PINNED TO LC_ALL=C, AND THAT IS THE WHOLE REPAIR (2026-08-22 — known-pair
|
|
93
|
+
# calibration lives in scripts/test_chamber_sig_lanes.sh, which is where the measurements below
|
|
94
|
+
# are reproducible). The signature pipeline used to run under the ambient locale, and in a UTF-8
|
|
95
|
+
# locale THREE of its stages silently mis-handle Hangul:
|
|
96
|
+
# · `sort -u` — Hangul syllables collate as EQUAL to one another. Measured: 8 distinct Korean
|
|
97
|
+
# tokens → 2 survivors on macOS/BSD sort (grouped by syllable count, input-order dependent),
|
|
98
|
+
# → 1 survivor on GNU coreutils 9.7. The signature is not shortened, it is DELETED.
|
|
99
|
+
# · `comm -12` — inherits the same collation, so two entirely different Korean tokens are
|
|
100
|
+
# reported as a common line. Measured: comm -12 <(레인) <(발주) prints a line. The jaccard
|
|
101
|
+
# numerator was measuring a collation, not an overlap.
|
|
102
|
+
# · `awk length()` — BYTES on BSD awk, CHARACTERS on gawk in a UTF-8 locale. The same 2-syllable
|
|
103
|
+
# token passes the old `>=4` on macOS (6 bytes) and is DROPPED on Linux (2 chars): the two
|
|
104
|
+
# platforms did not even agree on the token set before comparing it.
|
|
105
|
+
# Live effect on this repo's 64-marker corpus: unrelated candidates folded into clusters of 11, 7,
|
|
106
|
+
# 7, 4 and 3, only each cluster's first member reached the queue, and the run still printed a
|
|
107
|
+
# healthy "deduped candidates: 31". A silent fold rendered as a clean number
|
|
108
|
+
# ([[feedback_not_found_is_not_zero_family]]).
|
|
109
|
+
#
|
|
110
|
+
# ⚠️ The threshold (MINJ) was NOT touched. The signatures were shredded; a threshold moved to
|
|
111
|
+
# compensate would have papered over the shredding and mis-scored the corpus in a new way.
|
|
112
|
+
#
|
|
113
|
+
# Tokenizer: one POSIX-awk pass over BYTES, no locale-sensitive character classes anywhere.
|
|
114
|
+
# _HANLEAD = UTF-8 lead bytes EA-ED → U+A000..U+DFFF, which contains the Hangul syllable block
|
|
115
|
+
# (U+AC00-D7A3). Deliberately a byte range and not `[가-힣]`: BSD tr reads that range
|
|
116
|
+
# as characters and GNU tr reads it as bytes 0x80-0xED, so the same pattern keeps the
|
|
117
|
+
# em-dash on Linux and drops it on macOS (measured, both).
|
|
118
|
+
# _HANCONT = UTF-8 continuation bytes 80-BF.
|
|
119
|
+
# Because the alternation matches ASCII-alnum runs and Hangul runs separately, every other byte —
|
|
120
|
+
# «»「」·—→…, CJK punctuation, fullwidth forms — is a SEPARATOR by construction, with no
|
|
121
|
+
# hand-maintained punctuation vocabulary to drift.
|
|
122
|
+
# Length is then counted in CHARACTERS on both platforms without asking awk about encoding: an
|
|
123
|
+
# ASCII run is 1 byte/char, a Hangul run is exactly 3.
|
|
124
|
+
# Thresholds preserve the pre-repair BSD semantics on purpose (ASCII ≥4 chars, Hangul ≥2 syllables
|
|
125
|
+
# for _sig; ≥2 / ≥1 for _ksig) — this commit fixes the collation, it does not re-tune the filter.
|
|
126
|
+
#
|
|
127
|
+
# Portability, ARGUED AND THEN MEASURED (not asserted): the awk program uses only match/substr/
|
|
128
|
+
# length/tolower and dynamic regexes built from -v byte ranges, all of which are byte-semantic in
|
|
129
|
+
# the C locale on every awk. Run on the same input: BSD awk 20200816 (macOS), mawk 1.3.4 and
|
|
130
|
+
# gawk 5 (debian:stable-slim, via docker) → BYTE-IDENTICAL token sets.
|
|
131
|
+
_HANLEAD=$(printf '\352-\355')
|
|
132
|
+
_HANCONT=$(printf '\200-\277')
|
|
133
|
+
_tok() { # $1=text $2=min ASCII chars $3=min Hangul syllables → sorted unique token list
|
|
134
|
+
printf '%s' "$1" | LC_ALL=C awk -v L="$_HANLEAD" -v C="$_HANCONT" -v MA="$2" -v MH="$3" '
|
|
135
|
+
{ s = tolower($0); pat = "[a-z0-9]+|([" L "][" C "][" C "])+"
|
|
136
|
+
while (match(s, pat)) {
|
|
137
|
+
t = substr(s, RSTART, RLENGTH)
|
|
138
|
+
if (t ~ ("^[" L "]")) { if (length(t) / 3 >= MH) print t }
|
|
139
|
+
else { if (length(t) >= MA) print t }
|
|
140
|
+
s = substr(s, RSTART + RLENGTH)
|
|
141
|
+
} }' \
|
|
142
|
+
| LC_ALL=C grep -vE "$STOP" | LC_ALL=C sort -u
|
|
143
|
+
}
|
|
144
|
+
_sig() { _tok "$1" 4 2; }
|
|
93
145
|
# kill-side signature for the seen-filter: keeps 2+ char tokens (a slug's meaningful short tokens like
|
|
94
146
|
# "qa"/"ui" are dropped by _sig's ≥4 filter → an all-short slug yields an EMPTY sig → kkn=0 → the old
|
|
95
147
|
# match never fired → a KILLed candidate re-entered the queue SILENTLY, Axis-2 MED-3b). Drops stopwords only.
|
|
96
|
-
_ksig() {
|
|
97
|
-
| awk 'length($0)>=2' | grep -vE "$STOP" | sort -u; }
|
|
148
|
+
_ksig() { _tok "$1" 2 1; }
|
|
98
149
|
|
|
99
150
|
# --- LAYER 2: dedup by greedy jaccard clustering ---
|
|
100
151
|
# cluster files: $WORK/cluster.N holds "source<TAB>desc" lines; $WORK/sig.N holds the union keyword sig.
|
|
@@ -106,12 +157,17 @@ while IFS=$'\t' read -r label desc; do
|
|
|
106
157
|
merged=0
|
|
107
158
|
c=1
|
|
108
159
|
while [ "$c" -le "$NC" ]; do
|
|
109
|
-
|
|
110
|
-
|
|
160
|
+
# LC_ALL=C on BOTH: `comm` requires its inputs sorted in the SAME collation it compares with,
|
|
161
|
+
# and _tok already emits C-collated lines. Under a UTF-8 locale this pair reported different
|
|
162
|
+
# Korean tokens as common (see the _sig header) — the numerator, not just the token list.
|
|
163
|
+
inter=$(LC_ALL=C comm -12 "$WORK/sig.$c" "$WORK/candsig.$idx" 2>/dev/null | grep -c . || true)
|
|
164
|
+
union=$(LC_ALL=C sort -u "$WORK/sig.$c" "$WORK/candsig.$idx" 2>/dev/null | grep -c . || true)
|
|
111
165
|
jac=0; [ "${union:-0}" -gt 0 ] && jac=$(( inter * 100 / union ))
|
|
112
166
|
if [ "$jac" -ge "$MINJ" ]; then
|
|
113
167
|
printf '%s\t%s\n' "$label" "$desc" >> "$WORK/cluster.$c"
|
|
114
|
-
|
|
168
|
+
# C-collated too: this file is a `comm` input on the next iteration. A UTF-8 sort here would
|
|
169
|
+
# re-break the ordering precondition one merge after it was established.
|
|
170
|
+
LC_ALL=C sort -u "$WORK/sig.$c" "$WORK/candsig.$idx" > "$WORK/sig.$c.tmp" && mv "$WORK/sig.$c.tmp" "$WORK/sig.$c"
|
|
115
171
|
merged=1; break
|
|
116
172
|
fi
|
|
117
173
|
c=$((c+1))
|
|
@@ -146,8 +202,8 @@ RANKED="$WORK/ranked"; : > "$RANKED"
|
|
|
146
202
|
c=1
|
|
147
203
|
while [ "$c" -le "$NC" ]; do
|
|
148
204
|
freq=$(grep -c . "$WORK/cluster.$c" 2>/dev/null); freq=${freq:-0}
|
|
149
|
-
ndiv=$(cut -f1 "$WORK/cluster.$c" | sort -u | grep -c . || true)
|
|
150
|
-
srcs=$(cut -f1 "$WORK/cluster.$c" | sort -u | paste -sd, -)
|
|
205
|
+
ndiv=$(cut -f1 "$WORK/cluster.$c" | LC_ALL=C sort -u | grep -c . || true)
|
|
206
|
+
srcs=$(cut -f1 "$WORK/cluster.$c" | LC_ALL=C sort -u | paste -sd, -)
|
|
151
207
|
rep=$(head -1 "$WORK/cluster.$c" | cut -f2-)
|
|
152
208
|
score=$(( ndiv * 2 + freq ))
|
|
153
209
|
# seen-filter: does this candidate match an already-KILLed ledger entry? Two decorrelated tests, either
|
|
@@ -159,15 +215,17 @@ while [ "$c" -le "$NC" ]; do
|
|
|
159
215
|
# catches a wrong match), whereas silent re-entry was invisible. Visible-imprecise ≻ silent-miss.
|
|
160
216
|
if [ "$NKILL" -gt 0 ]; then
|
|
161
217
|
_ksig "$rep" > "$WORK/repsig"
|
|
162
|
-
|
|
218
|
+
# C locale: `tr` ranges and case folding are byte-semantic here, so the flattened slug is the
|
|
219
|
+
# same string on BSD and GNU. Non-ASCII is dropped by design — this is the ASCII-slug fallback.
|
|
220
|
+
repflat=$(printf '%s' "$rep" | LC_ALL=C tr 'A-Z' 'a-z' | LC_ALL=C tr -cd 'a-z0-9')
|
|
163
221
|
seen_match=""
|
|
164
222
|
while IFS= read -r kname; do
|
|
165
223
|
[ -z "$kname" ] && continue
|
|
166
224
|
_ksig "$kname" > "$WORK/ksig"
|
|
167
225
|
kkn=$(grep -c . "$WORK/ksig" 2>/dev/null || true); kkn=${kkn:-0}
|
|
168
|
-
matched=0; [ "$kkn" -gt 0 ] && matched=$(comm -12 "$WORK/ksig" "$WORK/repsig" 2>/dev/null | grep -c . || true)
|
|
226
|
+
matched=0; [ "$kkn" -gt 0 ] && matched=$(LC_ALL=C comm -12 "$WORK/ksig" "$WORK/repsig" 2>/dev/null | grep -c . || true)
|
|
169
227
|
kpct=0; [ "$kkn" -gt 0 ] && kpct=$(( matched * 100 / kkn ))
|
|
170
|
-
kflat=$(printf '%s' "$kname" | tr '
|
|
228
|
+
kflat=$(printf '%s' "$kname" | LC_ALL=C tr 'A-Z' 'a-z' | LC_ALL=C tr -cd 'a-z0-9')
|
|
171
229
|
if [ "$kkn" -gt 0 ] && [ "$kpct" -ge 60 ]; then seen_match="$kname"; break; fi
|
|
172
230
|
if [ "${#kflat}" -ge 5 ] && printf '%s' "$repflat" | grep -qF "$kflat"; then seen_match="$kname"; break; fi
|
|
173
231
|
done < "$KILLED"
|
|
@@ -197,7 +255,7 @@ echo "deduped candidates: $NC (from $NRAW raw markers)"
|
|
|
197
255
|
echo ""
|
|
198
256
|
printf '%-5s %-6s %-24s %-18s %s\n' "SCORE" "SRCS" "SOURCES" "REINVENTION" "CANDIDATE"
|
|
199
257
|
printf '%-5s %-6s %-24s %-18s %s\n' "-----" "------" "------------------------" "------------------" "---------"
|
|
200
|
-
sort -rn "$RANKED" | while IFS=$'\t' read -r score ndiv srcs verdict rep; do
|
|
258
|
+
LC_ALL=C sort -rn "$RANKED" | while IFS=$'\t' read -r score ndiv srcs verdict rep; do
|
|
201
259
|
# drop leading zeros for display
|
|
202
260
|
printf '%-5d %-6d %-24s %-18s %s\n' "$((10#$score))" "$ndiv" "$srcs" "$verdict" "$rep"
|
|
203
261
|
done
|
|
@@ -249,8 +249,23 @@ do_digest() {
|
|
|
249
249
|
awk '/^## 열어야 할 정본/{f=1;next} /^## /{f=0} f' "$sealfile" 2>/dev/null | grep -v '^$'
|
|
250
250
|
grep -E '^payload: ' "$sealfile" 2>/dev/null
|
|
251
251
|
echo
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
# 🟥 2026-08-23: 이 블록은 절 전체를 뽑아 `head -20` 했다. seal 은 «파일 목록 → 브랜치 →
|
|
253
|
+
# 미푸시» 순으로 쓰므로, 파일이 캡을 채우면 **브랜치·미푸시가 조용히 사라진다** — 트리가
|
|
254
|
+
# 가장 바쁠 때, 즉 압축 복구에 git 상태가 가장 필요할 때다. 실측: status 20줄에서 digest 의
|
|
255
|
+
# `브랜치:` 히트 0, 그래서 --self-test #3 이 «git 레포가 아니다»로 읽혔다.
|
|
256
|
+
# 캡을 올리는 것은 임계를 옮길 뿐이다. git 상태 두 줄을 캡 **밖으로** 빼고, 잘린 줄 수를
|
|
257
|
+
# 말하게 한다 — 잘림과 부재를 가르지 않으면 0 으로 렌더된다.
|
|
258
|
+
_cp_sec="$(awk '/^## 이 세션이 건드린 파일/{f=1;next} /^## /{f=0} f' "$sealfile" 2>/dev/null | grep -v '^$')"
|
|
259
|
+
_cp_git="$(printf '%s\n' "$_cp_sec" | grep -E '^[[:space:]]*(브랜치|미푸시|\(git 레포 아님\))')"
|
|
260
|
+
_cp_files="$(printf '%s\n' "$_cp_sec" | grep -vE '^[[:space:]]*(브랜치|미푸시|\(git 레포 아님\))')"
|
|
261
|
+
_cp_n="$(printf '%s\n' "$_cp_files" | grep -c . )"
|
|
262
|
+
if [ "$_cp_n" -gt 20 ]; then
|
|
263
|
+
echo "── 이 세션이 건드린 파일 (앞 20줄 / 전체 ${_cp_n}줄 — $((_cp_n - 20))줄 잘림) ──"
|
|
264
|
+
else
|
|
265
|
+
echo "── 이 세션이 건드린 파일 (${_cp_n}줄) ──"
|
|
266
|
+
fi
|
|
267
|
+
printf '%s\n' "$_cp_files" | head -20
|
|
268
|
+
[ -n "$_cp_git" ] && printf '%s\n' "$_cp_git"
|
|
254
269
|
echo
|
|
255
270
|
echo "── 운영자 발화 (앞 25건) ──"
|
|
256
271
|
awk '/^## 운영자 발화/{f=1;next} /^## /{f=0} f' "$sealfile" 2>/dev/null | grep -E '^[0-9]+\.|^제외:|^합계:' | head -25
|
package/scripts/fh-gate.sh
CHANGED
|
@@ -62,6 +62,64 @@ EXIT_HARNESS_ERROR=10
|
|
|
62
62
|
EXIT_ARG_ERROR=11
|
|
63
63
|
EXIT_DRY_RUN=12
|
|
64
64
|
|
|
65
|
+
# ── Flag handling ─────────────────────────────────────────────────────────────
|
|
66
|
+
# 🟥 Added 2026-08-23 after a first-use measurement: there was NO flag handling at
|
|
67
|
+
# all, so `--version` and `--help` fell through to TARGET_FILES and were treated as
|
|
68
|
+
# file paths. The failure was not cosmetic — the script then built a governance
|
|
69
|
+
# prompt around a nonexistent file and sent it to the user's `claude` CLI, which
|
|
70
|
+
# correctly refused it as a prompt-injection attempt. A first-time user running the
|
|
71
|
+
# most obvious command got their own assistant accusing this tool.
|
|
72
|
+
#
|
|
73
|
+
# Unknown flags are an ERROR, never a filename. Silently demoting an unrecognized
|
|
74
|
+
# argument to "a file to review" is the same shape as demoting an unknown mode to a
|
|
75
|
+
# weaker check: the run continues, reports something, and the something is wrong.
|
|
76
|
+
case "${1:-}" in
|
|
77
|
+
--version|-V)
|
|
78
|
+
printf '%s\n' "fh-gate $VERSION"
|
|
79
|
+
exit 0
|
|
80
|
+
;;
|
|
81
|
+
--help|-h)
|
|
82
|
+
printf '%s\n' "fh-gate $VERSION — FH governance gate"
|
|
83
|
+
printf '%s\n' ""
|
|
84
|
+
printf '%s\n' " Reviews a change through an AI backend and returns a typed verdict, so a"
|
|
85
|
+
printf '%s\n' " machine can act on it. Uses your local 'claude' CLI by default."
|
|
86
|
+
printf '%s\n' ""
|
|
87
|
+
printf '%s\n' "Usage"
|
|
88
|
+
printf '%s\n' " fh-gate review the current git diff (auto-detected)"
|
|
89
|
+
printf '%s\n' " fh-gate \"<files>\" review an explicit space-separated file list"
|
|
90
|
+
printf '%s\n' " fh-gate \"<files>\" <level> level: quick (default) or full"
|
|
91
|
+
printf '%s\n' " fh-gate --version | --help"
|
|
92
|
+
printf '%s\n' ""
|
|
93
|
+
printf '%s\n' "Exit codes"
|
|
94
|
+
printf '%s\n' " 0 PASS no findings"
|
|
95
|
+
printf '%s\n' " 1 PENDING B-grade findings; proceed with awareness"
|
|
96
|
+
printf '%s\n' " 2 BLOCKED A-grade findings; do not merge"
|
|
97
|
+
printf '%s\n' " 3 ESCALATE human decision required"
|
|
98
|
+
printf '%s\n' " 10 harness error — backend unavailable, timeout, unparseable verdict"
|
|
99
|
+
printf '%s\n' " 11 argument error"
|
|
100
|
+
printf '%s\n' " 12 dry run — prompt emitted, NO review performed"
|
|
101
|
+
printf '%s\n' ""
|
|
102
|
+
printf '%s\n' " 10, 11 and 12 sit outside the verdict range on purpose: a check that did"
|
|
103
|
+
printf '%s\n' " not run must never be readable as a pass."
|
|
104
|
+
printf '%s\n' ""
|
|
105
|
+
printf '%s\n' "Environment"
|
|
106
|
+
printf '%s\n' " FH_BACKEND=claude|codex|auto|cross backend (default: claude)"
|
|
107
|
+
printf '%s\n' " FH_MODEL=<model> model override"
|
|
108
|
+
printf '%s\n' " FH_DRY_RUN=1 emit the prompt only; exits 12"
|
|
109
|
+
printf '%s\n' " FH_TIMEOUT=<seconds> backend kill deadline (default: 120)"
|
|
110
|
+
printf '%s\n' " FH_VERBOSE=1 print full backend stderr"
|
|
111
|
+
printf '%s\n' ""
|
|
112
|
+
printf '%s\n' " https://github.com/chrono-meta/forge-harness"
|
|
113
|
+
exit 0
|
|
114
|
+
;;
|
|
115
|
+
-*)
|
|
116
|
+
printf '%s\n' "ERROR: unrecognized option '${1}'." >&2
|
|
117
|
+
printf '%s\n' " fh-gate takes a FILE LIST, not flags — an unknown option is not a filename." >&2
|
|
118
|
+
printf '%s\n' " Run 'fh-gate --help' for usage." >&2
|
|
119
|
+
exit 11
|
|
120
|
+
;;
|
|
121
|
+
esac
|
|
122
|
+
|
|
65
123
|
TARGET_FILES="${FH_TARGET_FILES:-${1:-}}"
|
|
66
124
|
GATE_LEVEL="${FH_GATE_LEVEL:-${2:-quick}}"
|
|
67
125
|
FH_CALLER="${FH_CALLER:-${3:-ci}}"
|