@chrono-meta/fh-gate 3.8.0 → 3.10.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.
Files changed (27) hide show
  1. package/.claude/regression/probes_live.yaml +108 -6
  2. package/.claude-plugin/marketplace.json +4 -4
  3. package/docs/OUTPUT_EVIDENCE.md +2 -1
  4. package/knowledge/shared/harness-core/governance_engineering_definition.md +7 -3
  5. package/knowledge/shared/learnings/subagent_invocations_log.yaml +211 -0
  6. package/package.json +3 -1
  7. package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
  8. package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
  9. package/plugins/fh-meta/CHANGELOG.md +84 -0
  10. package/plugins/fh-meta/skills/frontier-digest/SKILL.md +1 -1
  11. package/plugins/fh-meta/skills/frontier-digest/SKILL_detail.md +18 -1
  12. package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
  13. package/plugins/fh-preprep/skills/preprep/SKILL.md +7 -1
  14. package/plugins/fh-preprep/skills/preprep/fixtures/font_revert_probe.py +6 -4
  15. package/plugins/fh-preprep/skills/preprep/lane_font.py +105 -16
  16. package/plugins/fh-preprep/skills/preprep/test_lane_font.py +170 -21
  17. package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
  18. package/scripts/com.forge-harness.live-eval.plist +5 -2
  19. package/scripts/probe_live_eval.sh +117 -3
  20. package/scripts/probe_live_eval_lib.py +178 -5
  21. package/scripts/selfcheck.sh +23 -0
  22. package/scripts/test_precommit_gitlink_lanes.sh +142 -0
  23. package/scripts/test_probe_live_eval_lanes.sh +271 -10
  24. package/scripts/test_temper_check_lanes.sh +307 -0
  25. package/scripts/test_utterance_intake_lanes.sh +131 -0
  26. package/scripts/utterance_intake.sh +115 -4
  27. package/templates/.git-hooks/pre-commit +47 -0
@@ -360,6 +360,53 @@ else
360
360
  echo " ✅ PASS"
361
361
  fi
362
362
 
363
+ # ── Nested-repo gitlink guard — a submodule entry BYPASSES .gitignore ─────────
364
+ # 🟥 WHY THIS IS NOT COVERED BY THE BLOCK ABOVE. That one reads `--name-only`, which lists a
365
+ # gitlink by path like any file — so a `tracks/` gitlink would be caught by it. What it does NOT
366
+ # cover is the reason a gitlink gets staged at all: **`.gitignore` does not apply to a nested
367
+ # repository.** `tracks/**` ignores every file under `tracks/`, but a directory containing its own
368
+ # `.git` is offered to the index as a mode-160000 entry regardless, so `git add -A` stages it while
369
+ # the author believes the whole subtree is ignored. Measured 2026-09-16 on
370
+ # `tracks/_meta/dominance_bench_B/recovered_2026-09-09/benchB/target_repo_O` (a benchmark's target
371
+ # repo, whose git history IS the evidence and must not be deleted): `git add -A --dry-run` staged it.
372
+ #
373
+ # 🟥 SAME ROOT AS THE SYNC DEFECT, DIFFERENT SURFACE. A nested `.git` under `tracks/` also made
374
+ # `sync-to-be.sh`'s destination-newer guard abort falsely four times (fixed separately). That one was
375
+ # noisy; this one is silent — a gitlink committed to a public repo points at a URL the clone cannot
376
+ # fetch, and nothing in the commit output says so.
377
+ #
378
+ # SCOPE, deliberately narrow. Under `tracks/` a gitlink is provably wrong (the lane is local-only),
379
+ # so it BLOCKS. Anywhere else this repo has no submodules today, but declaring that a defect would
380
+ # over-block a legitimate future one — and a gate that over-blocks trains `--no-verify`, which
381
+ # disarms the Destructive-Op gate living in this same hook. So elsewhere it SURFACES and proceeds.
382
+ # Override for a reviewed case: TRACKS_GITLINK_OK=1 (same channel shape as TRACKS_PUBLIC_OK).
383
+ echo "[Privacy] nested-repo gitlink..."
384
+ GITLINK_BLOCKED=0; GITLINK_SEEN=0
385
+ while IFS= read -r p; do
386
+ [ -z "$p" ] && continue
387
+ GITLINK_SEEN=1
388
+ case "$p" in
389
+ tracks/*)
390
+ if [ "${TRACKS_GITLINK_OK:-0}" = "1" ]; then
391
+ echo " ⚠️ gitlink under tracks/ allowed by TRACKS_GITLINK_OK=1: $p"
392
+ else
393
+ echo " ❌ FAIL — nested repo staged as a gitlink under tracks/: $p"
394
+ GITLINK_BLOCKED=1; FAILED=1
395
+ fi ;;
396
+ *)
397
+ echo " ⚠️ gitlink staged outside tracks/ (surfaced, not blocked): $p" ;;
398
+ esac
399
+ done <<GITLINK_EOF
400
+ $(git -c core.quotePath=false diff --cached --raw --no-renames --diff-filter=ACMR 2>/dev/null | awk -F'\t' '$1 ~ / 160000 / {print $2}')
401
+ GITLINK_EOF
402
+ if [ "$GITLINK_BLOCKED" -eq 1 ]; then
403
+ echo " A gitlink records a commit SHA in another repository — a clone cannot fetch it, so the"
404
+ echo ' content is lost while the tree still looks complete. .gitignore never applies to it.'
405
+ echo " Fix: git rm --cached <path> (the working directory and its history stay untouched)."
406
+ elif [ "$GITLINK_SEEN" -eq 0 ]; then
407
+ echo " ✅ PASS"
408
+ fi
409
+
363
410
  # ── Confidentiality guard — public-surface scan on staged tracked content ─────
364
411
  # A commit to a PUBLIC repo is an effective PUBLISH of its content, so the confidentiality boundary is
365
412
  # checked here as well as at push/publish. Pattern loading and matching come from