@chrono-meta/fh-gate 3.10.0 → 3.12.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 (34) hide show
  1. package/.claude/regression/probes_live.yaml +13 -5
  2. package/.claude-plugin/marketplace.json +4 -4
  3. package/AGENTS.md +1 -1
  4. package/CHEATSHEET.md +1 -1
  5. package/CLAUDE.md +8 -4
  6. package/bin/fh-codex-doctor.js +223 -25
  7. package/docs/codex-compat.md +1 -1
  8. package/knowledge/shared/harness-core/claude_md_gate_details.md +8 -4
  9. package/knowledge/shared/harness-core/governance_engineering_definition.md +403 -7
  10. package/knowledge/shared/harness-core/harness_terminal_correlation_and_recommendations.md +22 -6
  11. package/knowledge/shared/learnings/subagent_invocations_log.yaml +107 -0
  12. package/package.json +11 -2
  13. package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
  14. package/plugins/fh-commons/README.md +1 -1
  15. package/plugins/fh-commons/skills/ko-tech-writer/SKILL.md +269 -26
  16. package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
  17. package/plugins/fh-meta/CHANGELOG.md +44 -0
  18. package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
  19. package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
  20. package/scripts/citation_key_check.py +357 -0
  21. package/scripts/claim_propagation_scan.py +499 -0
  22. package/scripts/ko_tech_writer_calibrate.py +13 -4
  23. package/scripts/numeric_token_diff.py +389 -0
  24. package/scripts/probe_live_eval_lib.py +19 -1
  25. package/scripts/section_ref_check.py +591 -0
  26. package/scripts/selfcheck.sh +72 -0
  27. package/scripts/session_checklist.py +704 -0
  28. package/scripts/test_claim_propagation_lanes.sh +573 -0
  29. package/scripts/test_codex_doctor_root_lanes.sh +384 -0
  30. package/scripts/test_ko_tech_writer_lanes.sh +5 -1
  31. package/scripts/test_paper_integrity_lanes.sh +1473 -0
  32. package/scripts/test_probe_live_eval_lanes.sh +25 -4
  33. package/scripts/test_session_checklist_lanes.sh +746 -0
  34. package/templates/predelete_check.sh +28 -4
@@ -227,8 +227,14 @@ fi
227
227
  # ~G-LINT-01 — moved from NOT-YET-AUTHORED into ARM_CAPABILITY_EXCLUDE. Excluded either way, so
228
228
  # the counts are unaffected; what changed is that it no longer emits a nightly warning that
229
229
  # reads like a to-do for a spec nobody can write against a route the arm cannot take.
230
- _lane S2 select-guard "selected count == 13 (11 + G-GREET-02 + G-GREET-05)" "13" "$sel_count"
231
- _lane S3 select-guard "excluded count == 20 (33 probes.md rows - 13 selected)" "20" "$exc_count"
230
+ # ~G-TRIG-01 — 2026-09-17: moved into ARM_CAPABILITY_EXCLUDE, the TWIN of G-TRIG-03 above and
231
+ # for the identical reason (fh_detail_protocols.md:443-444 lists the two on adjacent lines
232
+ # of one row-diet removal list; neither route exists for an arm without the Skill tool).
233
+ # Unlike G-LINT-01 this DOES move the counts — it had been selected and authored — so 13 -> 12
234
+ # and 20 -> 21. It should have moved on 2026-09-14 with its twin; leaving it behind is the
235
+ # half-fix shape, and these three pinned numbers are what surfaced it.
236
+ _lane S2 select-guard "selected count == 12 (13 - G-TRIG-01, 2026-09-17)" "12" "$sel_count"
237
+ _lane S3 select-guard "excluded count == 21 (33 probes.md rows - 12 selected)" "21" "$exc_count"
232
238
 
233
239
  # S7/S8: the two newly-covered rows must actually be IN the selection, and the state-excluded row
234
240
  # must carry its OWN reason rather than the generic utterance-shape one. Counting alone would pass
@@ -240,6 +246,21 @@ ids={p['id'] for p in s}
240
246
  print('yes' if {'G-GREET-02','G-GREET-05'} <= ids else 'no')")
241
247
  _lane S7 select-guard "G-GREET-02 and G-GREET-05 are selected BY NAME (not just a count of 13)" "yes" "$greet_new"
242
248
 
249
+ # S10: the count-drift guard's other half — S2/S3 would pass again if some unrelated row swapped in
250
+ # to replace G-TRIG-01. Assert the IDENTITY on both sides: excluded by name, AND with the twin's own
251
+ # reason (not the generic utterance-shape one), AND that its live neighbour is still selected.
252
+ # 🟥 A pass here is NOT evidence that the row-diet delegation fires at the floor tier — that stays
253
+ # UNMEASURED. This asserts only that the exclusion is the one we meant.
254
+ trig01=$(python3 -c "
255
+ import json; d=json.load(open('$SELECT_JSON'))
256
+ exc={x['id']: x['reason'] for x in d['excluded']}
257
+ sel={p['id'] for p in d['selected']}
258
+ ok = ('G-TRIG-01' in exc and 'Skill' in exc['G-TRIG-01']
259
+ and exc.get('G-TRIG-01') == exc.get('G-TRIG-03')
260
+ and 'G-TRIG-02' in sel)
261
+ print('yes' if ok else 'no')")
262
+ _lane S10 select-guard "G-TRIG-01 excluded BY NAME with its twin's exact reason, G-TRIG-02 still selected" "yes" "$trig01"
263
+
243
264
  g03_reason=$(python3 -c "
244
265
  import json; e=json.load(open('$SELECT_JSON'))['excluded']
245
266
  r=[x['reason'] for x in e if x['id']=='G-GREET-03']
@@ -313,10 +334,10 @@ _lane R1 dry-run "probe_live_eval.sh --dry-run exits 0" "0" "$dry_rc"
313
334
  _lane R2 dry-run "--dry-run creates no OUTDIR (no live run attempted)" "absent" "$([ -d "$DRY_OUT" ] && echo present || echo absent)"
314
335
  # Pinned like S2/S3 and for the same reason — see the S2 note for why 11 became 13 on 2026-09-14.
315
336
  case "$dry_stdout" in
316
- *"SELECTED (13)"*) r3=yes ;;
337
+ *"SELECTED (12)"*) r3=yes ;;
317
338
  *) r3=no ;;
318
339
  esac
319
- _lane R3 dry-run "--dry-run stdout shows the real 13-probe selection" "yes" "$r3"
340
+ _lane R3 dry-run "--dry-run stdout shows the real 12-probe selection" "yes" "$r3"
320
341
 
321
342
  # ── fail-fast: probe_live_eval.sh aborts on the FIRST rc=2 runner call, not after burning the
322
343
  # rest of the selected set (2026-09-05, the launchd incident this exists for) ────────────────────