@chrono-meta/fh-gate 1.4.67 → 1.4.68

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,13 +11,13 @@
11
11
  "plugins": [
12
12
  {
13
13
  "name": "fh-meta",
14
- "version": "1.4.67",
14
+ "version": "1.4.68",
15
15
  "description": "Hub meta-operations toolkit — 34 skills + 7 agents. 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": "1.4.67",
20
+ "version": "1.4.68",
21
21
  "description": "Project-agnostic utility skills — 4 skills (convergence-loop · deliberation · mcp-circuit-breaker · token-budget-gate) + 1 agent (quench-challenger). Domain-independent utilities transplantable into any project.",
22
22
  "source": "./plugins/fh-commons"
23
23
  }
package/AGENTS.md CHANGED
@@ -117,7 +117,9 @@ So four things that govern behavior are not going to reach you on their own. Rea
117
117
  skip the gate — it just means you meet the block without knowing what it wants.
118
118
  ⚠️ If you run `templates/regression_guard.sh` (Axis 1) yourself, **`exit 0` means PASS *or* SKIP** —
119
119
  SKIP being "no staged file matched the gate's pathspec", which is *not checked*, not *checked and
120
- clean*. Read stdout for `REGRESSION_GUARD_RESULT=skip` to tell them apart. Judging by exit code
120
+ clean*. Prefer the typed file channel set `REGRESSION_GUARD_RESULT_FILE=<path>` and read
121
+ `result=pass|review|block|skip|error` from that file (stdout's `REGRESSION_GUARD_RESULT=` line is
122
+ the no-env fallback). Judging by exit code
121
123
  alone lets an unexamined change report as a pass (measured 2026-07-22: that is exactly what the
122
124
  commit hook did until it was fixed).
123
125
  2. **Company residency is absolute** (CLAUDE.md §Field-Harness Diagnostic): raw company source, secrets,
@@ -109,7 +109,9 @@ operator's residual at merge review).
109
109
  > ⚠️ **"Axis 1 PASS" 는 종료코드로 판정하지 마라.** `regression_guard.sh` 의 `exit 0` 은
110
110
  > **PASS 와 SKIP 을 둘 다** 뜻한다 — SKIP 은 "게이트 pathspec 에 걸린 파일이 없었다"이지
111
111
  > "검사했고 괜찮다"가 아니다. 무인 루틴이 종료코드만 보면 **미검사가 draft PR 을 unblock 한다.**
112
- > 구분: stdout 에 `REGRESSION_GUARD_RESULT=skip` 있으면 SKIP 이다 경우 Axis 1 은
112
+ > 구분: `REGRESSION_GUARD_RESULT_FILE=<path>` 설정하고 파일의 `result=` 읽어라
113
+ > typed 채널이 정본이고 stdout `REGRESSION_GUARD_RESULT=` 줄은 env 를 못 쓸 때 폴백이다.
114
+ > `result=skip` 이면 SKIP — 그 경우 Axis 1 은
113
115
  > *통과가 아니라 미실행*이므로 Axes 2–3 과 같은 운영자 잔여로 올려라.
114
116
  > (2026-07-22 실측: `pre-commit` 이 정확히 이 혼동을 일으켜 AGENTS.md 변경이 `✅ PASS` 를
115
117
  > 받고 지나갔다. `pre-commit` 은 배선 완료 · 이 루틴을 포함한 나머지 소비자는 **미배선 잔여**.)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrono-meta/fh-gate",
3
- "version": "1.4.67",
3
+ "version": "1.4.68",
4
4
  "description": "FH runtime adapters — run FH governance, skills, and agents via Claude or Codex with machine-parseable gates.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-commons",
3
- "version": "1.4.67",
3
+ "version": "1.4.68",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fh-meta",
3
- "version": "1.4.67",
3
+ "version": "1.4.68",
4
4
  "engines": {
5
5
  "claudeCode": ">=1.0.0"
6
6
  },
@@ -115,7 +115,6 @@ size instrument* is read. The footprint rows below apply to **both** scopes and
115
115
  | **Pointer-illusion**: a CLAUDE.md "detail/detailed procedure" pointer whose target is itself an always-loaded `.claude/rules/*.md` | S-tier — the split saves zero context (rules/ auto-loads regardless); move the target out of auto-load, keep the pointer |
116
116
  | weekly_audit 14~30 days elapsed | S-tier |
117
117
  | weekly_audit 30+ days elapsed | M-tier |
118
- | `tracks/_meta/*.md` **reference assets** (excluding dated chronological records — `fh_completed_*` · `fh_signal_*` · `frontier_digest_*` · `session_*` · `weekly_audit_*` · `*_log_*`, whose date lives in the filename by design) missing **both** a role/type tag and a version/date stamp | R-tier — taxonomy gap, not urgent. ⚠️ **Measured FP rate before you act on this**: run against FH itself 2026-07-21 it flagged **99/161 (61%)** un-narrowed and **19/26 (73%)** after narrowing — a row that flags most of a directory is noise, not signal. ⚠️ **No consumer**: grep found **no skill that reads `role`/`type` from these files**. Until one exists this is taxonomy for taxonomy's sake — treat as an inventory observation, never escalate |
119
118
 
120
119
  **Per-unit ≠ aggregate — do not slide between them.** "Every section earns its scope" (the per-unit
121
120
  doctrine test) and "the always-loaded total is affordable" (the budget test) are **different questions, and
@@ -230,51 +229,11 @@ FAIL, the safe direction); and the scope test reads directory *existence*, so th
230
229
  field→meta (acceptable: the operator names the target, and the footprint rows apply to **both** scopes
231
230
  regardless — but it does skip the field-only line rows).
232
231
 
233
- **Context-File Taxonomy check** (mechanical grep, R-tier only a coverage lens, not a mandate): L1 (Step 2)
234
- checks `CLAUDE.md` / `.claudeignore` / `.claude/` existence, but nothing checks `tracks/_meta/*.md` context-file
235
- existence or taxonomy this adds both. Note: `tpa_schema.md` classifies this file class (`session_card`) as
236
- **low** risk / "ephemeral state, low blast radius" most `tracks/_meta/*.md` files are untagged by design, and
237
- that is expected, not a defect. This check surfaces untagged files for optional triage on the subset that
238
- function as durable references (e.g. `reference_next_session_starter.md`); it is not a mandate that every file
239
- in the directory carry a tag.
240
-
241
- Scan for two markers per file — a role/type tag (`role:` or `type:` in frontmatter, or a leading `# Role:`
242
- line) and a version/date stamp (a `YYYY-MM-DD` date or a `version:` frontmatter key, either in the first 10
243
- lines). A file missing either marker is untagged — report the file list and count; do not escalate past R
244
- without a human judging whether the specific file's staleness is actually a problem.
245
-
246
- ```bash
247
- # find | while, not a glob — same reason as the always-loaded footprint scan above: an unmatched
248
- # glob aborts under zsh, and a silent zero-match run must still report, not disappear.
249
- TARGET="${1:?pass the target root explicitly — cwd is not the target}"
250
- total=0; untagged=0
251
- while IFS= read -r f; do
252
- [ -n "$f" ] || continue
253
- total=$((total + 1))
254
- # 연대기 기록물은 파일명에 날짜가 있는 것이 설계다 — taxonomy 대상이 아니다(FP 원인의 78/99)
255
- case "$(basename "$f")" in fh_completed_*|fh_signal_*|frontier_digest_*|session_*|weekly_audit_*|*_log_*) continue ;; esac
256
- grep -qE '^(role|type):|^# ?Role:' "$f" && tag=yes || tag=no
257
- head -10 "$f" | grep -qE '[0-9]{4}-[0-9]{2}-[0-9]{2}|^version:' && stamp=yes || stamp=no
258
- if [ "$tag" = no ] || [ "$stamp" = no ]; then
259
- untagged=$((untagged + 1))
260
- echo "UNTAGGED: $f (role-tag=$tag version-stamp=$stamp)"
261
- fi
262
- done < <(find "$TARGET/tracks/_meta" -maxdepth 1 -name '*.md' 2>/dev/null)
263
- echo "context-file-taxonomy: $untagged untagged of $total files"
264
- ```
265
-
266
- **Named residuals of this scan**: `head -10` can miss a stamp in unusually long frontmatter; `^type:` is not
267
- fence-scoped, so a stray body line starting `type:` outside frontmatter false-positives `tag=yes` — both push
268
- toward under-reporting, not over-reporting.
269
-
270
- Origin (2026-07-20, frontier-auto): surfaced via [Frontier Digest 2026-07-14](https://github.com/chrono-meta/forge-harness/issues/102#issuecomment-4964058520),
271
- which described a durable-context-file pattern (role-tagged, versioned files shared across 50+ specialized
272
- agents) citing `aimultiple.com/llm-orchestration` as its source. A `/phantom-quench` pass on 2026-07-20 found
273
- that page's retrievable content does not actually discuss this pattern — the digest's citation is mis-attributed
274
- and no verified primary source has been located. The qualitative taxonomy idea (role/version tagging on context
275
- files) is adopted here on the digest's description alone and is `SPECULATIVE` per H1/H1-b until a verified
276
- primary source is found; the "40% fewer tool calls" figure the digest also reported is not cited anywhere in
277
- this check for the same reason.
232
+ <!-- Context-File Taxonomy check removed 2026-07-22/23 (#153 weekly-audit #6 decision): consumer
233
+ re-measure = 0 skills read role:/type: from these files; measured FP 99/161 (61%) un-narrowed,
234
+ 19/26 (73%) after narrowing; origin citation was mis-attributed (SPECULATIVE, no primary source).
235
+ Decorative unit per doctrine FP figures preserved in the removal commit message as the
236
+ regression anchor. Re-adding requires a named consumer first. -->
278
237
 
279
238
  ### Step 3-L. Language Lint (`--lint` mode only)
280
239
 
@@ -466,9 +425,13 @@ Verifies that prescription application didn't strip operational content. Run aft
466
425
  | F6 Line reduction ≥30% | S |
467
426
  | F7 Bash block syntax (bash -n parse) | M if net increase in bad blocks |
468
427
 
469
- Verdict: ✅ PASS (0M 0S) · ⚠️ REVIEW (0M 1+S) · ❌ BLOCK (1+M).
428
+ Verdict: ✅ PASS (0M 0S) · ⚠️ REVIEW (0M 1+S) · ❌ BLOCK (1+M) · ⏭️ SKIP (검사 대상 0 — **PASS 가 아니다**).
470
429
 
471
430
  Implementation: `bash templates/regression_guard.sh` (compare vs main) or `bash templates/regression_guard.sh BASE HEAD`.
431
+ **Verdict 는 종료코드가 아니라 typed 채널로 읽어라** — `exit 0` 은 pass 와 skip 둘 다다(2026-07-23):
432
+ `REGRESSION_GUARD_RESULT_FILE=/tmp/rg.$$ bash templates/regression_guard.sh …` 후 파일의
433
+ `result=pass|review|block|skip` 를 판정에 쓴다. `skip` = 미검사 — PASS 로 보고하지 말고 "Axis 1
434
+ 해당 없음(대상 파일 0)" 으로 보고한다.
472
435
 
473
436
  > **Detail**: See `SKILL_detail.md §Step-1-3` — bash scripts for Steps 1~6 (L1~L4 diagnostics) — read when running the diagnostic commands.
474
437
 
@@ -120,6 +120,11 @@ All 5 Steps completed
120
120
  ```
121
121
 
122
122
  **→ Mandatory when PR contains SKILL.md / rules / templates changes: `bash templates/regression_guard.sh`** — run Axis 1 (backward check) before merge recommendation is issued. If regression_guard exits with M-tier block, merge recommendation must change to ❌ regardless of other checks.
123
+ **Read the verdict from the typed channel, not the exit code** — `exit 0` means pass **or** skip
124
+ (not-checked). Run with `REGRESSION_GUARD_RESULT_FILE=/tmp/rg.$$` and read `result=` from that file:
125
+ `skip` means Axis 1 **did not examine** this PR (no matching file) — record it as "Axis 1 N/A", never
126
+ as a green check. A merge recommendation that cites an unexamined Axis 1 as PASS is the 2026-07-22
127
+ fail-open class.
123
128
 
124
129
  ## References
125
130