@chrono-meta/fh-gate 3.25.0 → 3.25.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.
@@ -11,25 +11,25 @@
11
11
  "plugins": [
12
12
  {
13
13
  "name": "fh-meta",
14
- "version": "3.25.0",
14
+ "version": "3.25.1",
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.25.0",
20
+ "version": "3.25.1",
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.25.0",
26
+ "version": "3.25.1",
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.25.0",
32
+ "version": "3.25.1",
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.25.0",
3
+ "version": "3.25.1",
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,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-commons",
3
- "version": "3.25.0",
3
+ "version": "3.25.1",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-meta",
3
- "version": "3.25.0",
3
+ "version": "3.25.1",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -1,5 +1,13 @@
1
1
  # forge-harness (fh-meta) Changelog
2
2
 
3
+ ### [3.25.1] — 2026-10-10 — 로컬 미디어 입력 · 오류처리 · 점검 주기
4
+
5
+ **patch.** PR #861의 출시 후 수정 사항을 배포한다.
6
+
7
+ - speech-coach는 선택한 녹음 경로를 절대 로컬 파일 입력으로 전달해 `-` 또는 `file:`로 시작하는 파일명도 정확히 읽는다. JSON 출력의 열기·쓰기 오류는 traceback 대신 오류 메시지와 종료 코드 2로 보고한다.
8
+ - channel_inventory 레인은 인자 없는 호출의 사용법 출력과 종료 코드 2를 검사해 기존 레인이 놓치던 종료 코드 변이를 잡는다.
9
+ - Area B의 7일 최소 재실행 간격은 실행자가 적용하는 절차이고, 30일 알림은 선택적으로 실행되는 점검임을 명시했다. 두 검사가 보고서를 읽는 경로가 다를 수 있으며, 알림은 최대 간격을 강제하지 않는다.
10
+
3
11
  ### [3.25.0] — 2026-10-09 — mutation probe · 검증 마커 지문
4
12
 
5
13
  **minor.** 새 리뷰 도구를 추가하고, 마커가 검증한 staged 내용의 지문을 선택적으로 대조한다.
@@ -52,7 +52,7 @@ Proposal format: `"If it's related to [X], should I simulate with /sim-conductor
52
52
  /sim-conductor E --target <file> # artifact quality review (post-pipeline)
53
53
  ```
54
54
 
55
- **Frequency limits**: Area A after asset changes or manual trigger · Area B max once/week · Area C/D/E no limit.
55
+ **Frequency limits**: Area A after asset changes or manual trigger · Area B **min 7-day interval** (executor-applied guard: stop a re-run inside 7 days) · target cadence once/month (30-day reminder, when the optional `fh_audit_check.zsh` is enabled and the report is under `$FH_DIR/tracks/_meta`) · Area C/D/E no limit. The 7-day rule is the execution procedure; the 30-day check is only a conditional reminder. They use the same clock only when they inspect the same report directory.
56
56
 
57
57
  ---
58
58
 
@@ -62,7 +62,7 @@ Auto-detect harness root, sync sim clone if present, set `$REPORT_DIR`.
62
62
 
63
63
  > **Detail**: See `SKILL_detail.md §Step0-Bash` — harness root detection, sim clone sync, report dir creation — read when executing Step 0.
64
64
 
65
- **Area B frequency check**: Previous Area B report within 7 days → stop + report date. No file found → treat as first run.
65
+ **Area B frequency check** (the 7-day *minimum* interval, not the monthly target): Before running Area B, inspect the latest Area B report in `$REPORT_DIR`; if it is less than 7 days old, stop and report its date. This is an executor-applied procedure, not an automatic shell gate. No report in the selected `$REPORT_DIR` → treat as first run for this check. Separately, the optional `fh_audit_check.zsh` reminder only looks in `$FH_DIR/tracks/_meta`; it may not see a report stored in a different `$REPORT_DIR`.
66
66
 
67
67
  ---
68
68
 
@@ -146,7 +146,7 @@ Proactively surface 1 concern, then confirm whether to proceed. Skip if no conce
146
146
 
147
147
  | Check | Concern trigger condition |
148
148
  |---|---|
149
- | Area B frequency guard | Previous run within 7 days + S-tier unresolved |
149
+ | Area B unresolved S-tier | An unresolved S-tier finding from the previous run |
150
150
  | Unresolved M-tier | New simulation without processing previous M-tier |
151
151
  | steel-quench not run | Area A in external publish context → **mandatory gate: Area A does not proceed until steel-quench completes** |
152
152
  | Self-recursive path | sim-conductor attempting to auto-PR its own M-tier |
@@ -26,7 +26,9 @@ mkdir -p "$REPORT_DIR"
26
26
  **Area B frequency check bash**:
27
27
  ```bash
28
28
  ls "$REPORT_DIR"/sim_*_area_B*.md 2>/dev/null | sort | tail -1
29
- # If date within 7 days → output warning + stop
29
+ # Executor: if the latest report is <7 days old, output warning + stop (manual procedure, not shell-enforced).
30
+ # The optional fh_audit_check.zsh nag is at 30d and only scans $FH_DIR/tracks/_meta;
31
+ # it shares this clock only when that is also $REPORT_DIR.
30
32
  ```
31
33
 
32
34
  ---
@@ -217,7 +219,7 @@ Claude blind spots (external-only findings):
217
219
 
218
220
  Structural methods to reduce self-reference risk in Area B:
219
221
 
220
- 1. **Regular adversarial attacks**: Area B once/month + `challenger` attack once/quarter. Route challenger → defense results directly into SKILL.md via steel-quench handoff after Area B ends.
222
+ 1. **Regular adversarial attacks**: Area B once/month (target cadence; the optional 30-day reminder is not an enforced maximum interval, and the executor-applied 7-day check in SKILL.md is the minimum interval, not a weekly cadence) + `challenger` attack once/quarter. Route challenger → defense results directly into SKILL.md via steel-quench handoff after Area B ends.
221
223
  2. **Direct external user validation**: Non-owner attempts install + invocation → collect reactions. (cascade β validated: first autonomous external run confirmed.)
222
224
  3. **steel-quench integration**: After Area B ends, hand off challenger findings to `/steel-quench` for deeper adversarial review + SKILL.md inscription.
223
225
  4. **Dual validation principle**: Internal validation (Area B) alone is insufficient — minimized only when combined with external install reaction collection or cross-model validation. **For risk≥medium targets this is no longer advisory: it is the hard Cross-Model Coverage Gate** (SKILL.md Step 0.6) — at least one persona from outside the orchestrator's session context (external CLI → cross-session Claude → else `cross_model_coverage: NONE` withdraws auto-commit). Promoted from advisory to gate by the judge-robustness swarm (2026-06-13): a homogeneous same-session panel shares blind spots, so its clean verdict cannot self-certify.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-preprep",
3
- "version": "3.25.0",
3
+ "version": "3.25.1",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -344,6 +344,11 @@ def run_whisper(cmd, env):
344
344
  subprocess.run(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, env=env)
345
345
 
346
346
 
347
+ def local_recording_input(path):
348
+ """Treat recording names as local files, never as options or protocol URLs."""
349
+ return 'file:' + os.path.abspath(os.fspath(path))
350
+
351
+
347
352
  def decode(path, ffmpeg, env=None):
348
353
  """반환 (샘플, stderr 오류 줄들).
349
354
 
@@ -351,7 +356,7 @@ def decode(path, ffmpeg, env=None):
351
356
  `-v error` 로 «Invalid data found…」를 찍고 그 구간을 버린 채 rc 0 으로 끝난다. 그래서 stderr 를
352
357
  버리지 않고 돌려준다 — 호출자가 «부분 디코드」로 강등한다.
353
358
  """
354
- p = subprocess.run([ffmpeg, '-nostdin', '-v', 'error', '-i', path, '-vn', '-ac', '1',
359
+ p = subprocess.run([ffmpeg, '-nostdin', '-v', 'error', '-i', local_recording_input(path), '-vn', '-ac', '1',
355
360
  '-ar', str(SR), '-f', 's16le', '-'],
356
361
  stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env)
357
362
  if p.returncode != 0:
@@ -368,7 +373,8 @@ def decode(path, ffmpeg, env=None):
368
373
  def probe_duration(path, ffprobe, env=None):
369
374
  """[경계 E3b] 녹화의 오디오 길이(초) — 오디오 스트림 길이, 없으면 컨테이너 길이."""
370
375
  p = subprocess.run([ffprobe, '-v', 'error', '-select_streams', 'a:0', '-show_entries',
371
- 'stream=duration:format=duration', '-of', 'default=nw=1', path],
376
+ 'stream=duration:format=duration', '-of', 'default=nw=1',
377
+ '-i', local_recording_input(path)],
372
378
  stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env)
373
379
  if p.returncode != 0:
374
380
  raise RuntimeError('ffprobe rc=%d' % p.returncode)
@@ -1067,8 +1073,12 @@ def main(argv=None):
1067
1073
  rep = coach(a.recording, a.script, skip)
1068
1074
  print(render(rep))
1069
1075
  if a.json_out:
1070
- with open(a.json_out, 'w', encoding='utf-8') as fh:
1071
- json.dump(rep, fh, ensure_ascii=False, indent=1)
1076
+ try:
1077
+ with open(a.json_out, 'w', encoding='utf-8') as fh:
1078
+ json.dump(rep, fh, ensure_ascii=False, indent=1)
1079
+ except OSError as e:
1080
+ print('JSON output could not be written: %s' % e, file=sys.stderr)
1081
+ return 2
1072
1082
  return rep['rc']
1073
1083
 
1074
1084
 
@@ -104,6 +104,8 @@ FAKE_FFMPEG = r'''
104
104
  import sys, wave
105
105
  a = sys.argv
106
106
  src = a[a.index('-i') + 1]
107
+ if src.startswith('file:'):
108
+ src = src[5:]
107
109
  try:
108
110
  w = wave.open(src, 'rb')
109
111
  except Exception:
@@ -121,7 +123,10 @@ sys.stdout.buffer.write(w.readframes(int(n * keep)))
121
123
 
122
124
  FAKE_FFPROBE = r'''
123
125
  import sys, wave
124
- src = [x for x in sys.argv[1:] if not x.startswith('-') and '=' not in x and x not in ('a:0', 'error')][-1]
126
+ src = (sys.argv[sys.argv.index('-i') + 1] if '-i' in sys.argv else
127
+ [x for x in sys.argv[1:] if not x.startswith('-') and '=' not in x and x not in ('a:0', 'error')][-1])
128
+ if src.startswith('file:'):
129
+ src = src[5:]
125
130
  w = wave.open(src, 'rb')
126
131
  d = w.getnframes() / w.getframerate()
127
132
  print('duration=%.6f' % d)
@@ -671,6 +676,47 @@ def run(tmp):
671
676
  chk('D7-c CLI --skip %r → rc 2 (크래시 아님)' % bad,
672
677
  p.returncode == 2 and b'Traceback' not in p.stderr, 'rc=%d' % p.returncode)
673
678
 
679
+ # Output failures are instrument errors, while valid JSON preserves the measured result.
680
+ cli = [sys.executable, os.path.join(HERE, 'lane_speech_coach.py'), wav, '--audio-only', '--json']
681
+ cli_env = dict(os.environ, PATH=ffbin + os.pathsep + os.path.dirname(sys.executable))
682
+ good_json = os.path.join(tmp, 'cli-result.json')
683
+ p = subprocess.run(cli + [good_json], env=cli_env, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
684
+ with open(good_json, encoding='utf-8') as fh:
685
+ result = json.load(fh)
686
+ chk('D7-json valid output preserves rc 0 and the JSON result',
687
+ p.returncode == 0 and result['rc'] == 0 and b'Traceback' not in p.stderr)
688
+ for label, output in [('directory', tmp), ('missing parent', os.path.join(tmp, 'missing', 'result.json'))]:
689
+ p = subprocess.run(cli + [output], env=cli_env, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
690
+ chk('D7-json %s output failure is rc 2, no traceback' % label,
691
+ p.returncode == 2 and b'Traceback' not in p.stderr and b'JSON output' in p.stderr,
692
+ 'rc=%d' % p.returncode)
693
+
694
+ # Real tools must read the literal local filename, not a leading option or a file: URL.
695
+ real_probe = shutil.which('ffprobe')
696
+ if real_ff and real_probe:
697
+ named = os.path.join(tmp, 'literal-names')
698
+ os.mkdir(named)
699
+ L.write_wav(os.path.join(named, 'clip.wav'), array.array('h', [0] * 1600))
700
+ for name in ('-clip.wav', 'file:clip.wav'):
701
+ L.write_wav(os.path.join(named, name), array.array('h', [0] * 3200))
702
+ cwd = os.getcwd()
703
+ try:
704
+ os.chdir(named)
705
+ for name in ('clip.wav', '-clip.wav', 'file:clip.wav'):
706
+ expected = 1600 if name == 'clip.wav' else 3200
707
+ try:
708
+ samples, errs = L.decode(name, real_ff)
709
+ duration = L.probe_duration(name, real_probe)
710
+ chk('D7-local literal %s uses the correct file in ffmpeg and ffprobe' % name,
711
+ len(samples) == expected and not errs and abs(duration - expected / SR) < 0.00001)
712
+ except Exception as e:
713
+ chk('D7-local literal %s uses the correct file in ffmpeg and ffprobe' % name,
714
+ False, type(e).__name__)
715
+ finally:
716
+ os.chdir(cwd)
717
+ else:
718
+ skip('D7-local literal filenames', 'real ffmpeg or ffprobe unavailable')
719
+
674
720
  if real_ff:
675
721
  r = L.coach(wav, None, {1, 2}, env={'PATH': os.path.dirname(real_ff)})
676
722
  chk('D8 진짜 ffmpeg 팔 → 같은 덩어리 8개 · exit 0', r['rc'] == 0 and r['n_chunks'] == 8,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-qp",
3
- "version": "3.25.0",
3
+ "version": "3.25.1",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # 이 도구가 존재하는 이유는 **하루에 세 번 같은 실수를 했기 때문**이다 — 산출 디렉터리에서
5
5
  # 「기록이 없다」를 판정하면서 **내가 연 채널에만 없는 것**을 무기록으로 단정했다. 그래서
6
- # 이 레인의 핵심 픽스처는 합성이 아니라 **그날 실제로 틀린 그 디렉터리**다(C5).
6
+ # 이 레인의 핵심 픽스처는 합성이 아니라 **그날 실제로 틀린 그 디렉터리**다(C6).
7
7
  #
8
8
  # 실행: bash scripts/test_channel_inventory_lanes.sh
9
9
  set -uo pipefail
@@ -17,6 +17,12 @@ T=$(mktemp -d); trap 'rm -rf "$T"' EXIT
17
17
  CI="$HERE/scripts/channel_inventory.sh"
18
18
 
19
19
  echo "== 합성 known-pair =="
20
+ out=$(bash "$CI" 2>&1); rc=$?
21
+ if [ "$rc" = "2" ] && printf '%s' "$out" | /usr/bin/grep -q 'usage: channel_inventory.sh'; then
22
+ ok "C-usage 인자 없음 → rc=2 · 사용법 (성공으로 접히지 않는다)"
23
+ else
24
+ ng "C-usage 인자 없는데 rc=$rc 또는 사용법 없음"
25
+ fi
20
26
  mkdir -p "$T/box"
21
27
  printf 'x\n' > "$T/box/alpha.jsonl"
22
28
  : > "$T/box/beta.jsonl" # 🟥 있는데 비었다