@chrono-meta/fh-gate 3.41.0 โ 3.43.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.
- package/.claude/regression/probes_live.yaml +16 -8
- package/.claude/rules/fh_4axis_gate.md +8 -0
- package/.claude-plugin/marketplace.json +4 -4
- package/AGENTS.md +5 -0
- package/README.ja.md +2 -0
- package/README.ko.md +2 -0
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/docs/HOW_FH_DIFFERS.en.md +37 -0
- package/docs/HOW_FH_DIFFERS.md +39 -0
- package/docs/USER_GUIDE.md +113 -2
- package/docs/model_tier_expectations.md +8 -4
- package/knowledge/shared/harness-core/claude_md_full_reference.md +10 -0
- package/knowledge/shared/harness-core/dispatch_conditional_prohibition.md +18 -0
- package/knowledge/shared/harness-core/fh_module_contract.md +19 -0
- package/knowledge/shared/harness-core/measurement-integrity-checklist.md +24 -0
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +30 -0
- package/package.json +7 -1
- package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-commons/skills/ko-tech-writer/SKILL.md +12 -5
- package/plugins/fh-commons/skills/ko-tech-writer/SKILL_detail.md +17 -0
- package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/CHANGELOG.md +49 -3
- package/plugins/fh-meta/skills/edit-manifest/SKILL.md +14 -1
- package/plugins/fh-meta/skills/harvest-loop/SKILL.md +1 -1
- package/plugins/fh-meta/skills/meta-prompt-builder/SKILL.md +19 -0
- package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/capability_registry_check.sh +15 -2
- package/scripts/fh_session_load.sh +3 -1
- package/scripts/live_eval_trace.py +122 -0
- package/scripts/package_coverage_check.sh +7 -0
- package/scripts/pr_merge_verified.sh +7 -0
- package/scripts/probe_live_eval.sh +6 -3
- package/scripts/probe_live_eval_lib.py +89 -1
- package/scripts/remote_marker_gate.sh +56 -0
- package/scripts/selfcheck.sh +9 -1
- package/scripts/session_close_check.sh +16 -0
- package/scripts/sim_isolated_run.sh +17 -2
- package/scripts/test_abstract_consult_check_lanes.sh +1 -0
- package/scripts/test_adapter_lanes.sh +1 -0
- package/scripts/test_axis23_skip_reason_lanes.sh +1 -0
- package/scripts/test_backtick_guard_lanes.sh +1 -0
- package/scripts/test_claim_propagation_lanes.sh +1 -0
- package/scripts/test_claude_md_size_lanes.sh +1 -0
- package/scripts/test_consent_registry.sh +1 -0
- package/scripts/test_count_check_all_plugins_lanes.sh +1 -0
- package/scripts/test_count_check_decl_lanes.sh +1 -0
- package/scripts/test_count_check_readme_format_lanes.sh +1 -0
- package/scripts/test_degrade_scan_shell_probes.sh +1 -0
- package/scripts/test_destructive_pre_gate_lanes.sh +1 -0
- package/scripts/test_dispatch_receipt_lanes.sh +1 -0
- package/scripts/test_doc_claim_triad_lanes.sh +1 -0
- package/scripts/test_env_delta_worktree_lanes.sh +1 -0
- package/scripts/test_env_layer_fingerprint_lanes.sh +1 -0
- package/scripts/test_evidence_root_psa_lanes.sh +1 -0
- package/scripts/test_fh_detach_lanes.sh +1 -0
- package/scripts/test_fh_goal_change_detection_lanes.sh +1 -0
- package/scripts/test_fh_module_check_lanes.sh +1 -0
- package/scripts/test_fh_qp_lanes.sh +1 -0
- package/scripts/test_files_manifest_shipping_lanes.sh +1 -0
- package/scripts/test_fixture_git_env_lanes.sh +15 -0
- package/scripts/test_fixture_guard_coverage_lanes.sh +141 -0
- package/scripts/test_gate_bootstrap_ephemeral_lanes.sh +1 -0
- package/scripts/test_halffix_lanes.sh +1 -0
- package/scripts/test_hook_drift_lanes.sh +1 -0
- package/scripts/test_hook_templates_copilot_compat_lanes.sh +1 -0
- package/scripts/test_lane_gap_hint_lanes.sh +1 -0
- package/scripts/test_lane_runner_lanes.sh +1 -0
- package/scripts/test_live_eval_trace_lanes.sh +145 -0
- package/scripts/test_main_commit_guard_lanes.sh +1 -0
- package/scripts/test_marker_axes_run_lanes.sh +1 -0
- package/scripts/test_marker_crossfamily_lanes.sh +1 -0
- package/scripts/test_marker_defense_lanes.sh +1 -0
- package/scripts/test_marker_diff_sha_lanes.sh +1 -0
- package/scripts/test_marker_floor_lanes.sh +1 -0
- package/scripts/test_meta_prompt_restate_lanes.sh +36 -0
- package/scripts/test_mutation_probe_lanes.sh +26 -6
- package/scripts/test_name_boundary_locale_lanes.sh +1 -0
- package/scripts/test_outbound_pr_gate_lanes.sh +1 -0
- package/scripts/test_package_coverage_lanes.sh +1 -0
- package/scripts/test_peer_worktree_detect_lanes.sh +1 -0
- package/scripts/test_pipe_verdict_guard_lanes.sh +1 -0
- package/scripts/test_post_squash_verify_lanes.sh +1 -0
- package/scripts/test_pr_merge_verified_lanes.sh +24 -0
- package/scripts/test_precommit_gitlink_lanes.sh +1 -0
- package/scripts/test_precommit_pointer_index_lanes.sh +1 -0
- package/scripts/test_precommit_staged_drift_lanes.sh +1 -0
- package/scripts/test_prepush_stdin_integrity.sh +1 -0
- package/scripts/test_prior_art_prompt_lanes.sh +1 -0
- package/scripts/test_prless_delta_scan_lanes.sh +1 -0
- package/scripts/test_probe_live_eval_lanes.sh +1 -0
- package/scripts/test_psa_singlefile_lanes.sh +1 -0
- package/scripts/test_remote_marker_gate_lanes.sh +97 -0
- package/scripts/test_residency_admission_lanes.sh +1 -0
- package/scripts/test_revert_probe_lanes.sh +1 -0
- package/scripts/test_reviewer_capability_conformance.sh +1 -0
- package/scripts/test_selfcheck_state_lanes.sh +1 -0
- package/scripts/test_session_close_chain_lanes.sh +1 -0
- package/scripts/test_session_close_lanes.sh +8 -0
- package/scripts/test_session_load_mirror_fp_lanes.sh +1 -0
- package/scripts/test_sim_isolated_run_lanes.sh +1 -0
- package/scripts/test_stale_clone_guard_lanes.sh +1 -0
- package/scripts/test_stale_ref_close_lanes.sh +1 -0
- package/scripts/test_tag_version_lanes.sh +1 -0
- package/scripts/test_version_lockstep_lanes.sh +1 -0
- package/scripts/test_wizard_snippet_merge_lanes.sh +1 -0
- package/scripts/test_worktree_reclaim_lanes.sh +1 -0
|
@@ -183,6 +183,13 @@ if [ -n "$_changed" ]; then
|
|
|
183
183
|
[ "$_hit" -eq 1 ] || echo "โ ๏ธ --rerun mentions none of this PR's $(printf '%s\n' "$_changed" | wc -l | tr -d ' ') changed file(s) (nor any script it names) โ it may not exercise the change. Advisory only; merging continues." >&2
|
|
184
184
|
fi
|
|
185
185
|
|
|
186
|
+
# 1c. defect-path prompt โ ONE LINE, PRINT ONLY (never changes rc, runs nothing, checks nothing). The script cannot know
|
|
187
|
+
# the path a defect travels, so it does not judge coverage; it asks the merging session to say it (2026-11-14 harvest H2:
|
|
188
|
+
# #316's control was green on main because HOME held a space and the lane ran elsewhere). Quiet when every changed file is
|
|
189
|
+
# a doc (*.md / docs/) or a lane (scripts/test_*) โ those PRs have no defect path to name, and the line would be noise.
|
|
190
|
+
_code=$(printf '%s\n' "$_changed" | grep -vE '(\.md$|^docs/|(^|/)test_[^/]*$)' | grep -c . )
|
|
191
|
+
[ "${_code:-0}" -gt 0 ] && echo "๐ before merging: name the path the defect travels โ does this --rerun lane traverse it, and was its control red on the UNFIXED target via that same path? (prompt only โ nothing was checked; merging continues)" >&2
|
|
192
|
+
|
|
186
193
|
# 2. merge
|
|
187
194
|
# ๐ฅ cross-family W1: pin the merge to the head we RECORDED. Without it, a push landing between the
|
|
188
195
|
# record and the merge gets squashed in unverified, and ยซmerged and verifiedยป describes a commit
|
|
@@ -137,6 +137,9 @@ MODEL="sonnet"
|
|
|
137
137
|
# ๊ทธ๋๋ก ๋จ๊ธด๋ค(3/3 ๊ณผ 2/3 ์ ๋ค๋ฅธ ์ฌ์ค์ด๋ค).
|
|
138
138
|
# โ ๏ธ ๋น์ฉ: reps=3 ์ด๋ฉด ํ๋ก๋ธ๋น `claude -p` ํธ์ถ์ด 2 โ 6 ์ด๋ค(12 ํ๋ก๋ธ = 24 โ 72).
|
|
139
139
|
REPS=1
|
|
140
|
+
# ยงTRACE (2026-11-14, FH-3): arms keep their event stream so the scorer can read tool calls and the
|
|
141
|
+
# init tool/MCP list (behave: probes ยท INVALID-COMPARISON). FH_LIVE_TRACE=0 restores text-only runs.
|
|
142
|
+
if [ "${FH_LIVE_TRACE:-1}" = 0 ]; then FH_LIVE_TRACE_ARG=""; else FH_LIVE_TRACE_ARG="--trace"; fi
|
|
140
143
|
DRYRUN=0
|
|
141
144
|
SUBSET=""
|
|
142
145
|
IDS=""
|
|
@@ -287,7 +290,7 @@ while IFS= read -r id; do
|
|
|
287
290
|
echo ""
|
|
288
291
|
echo "โถ $id โ primary"
|
|
289
292
|
bash "$SIM_RUNNER" --arm primary --reps "$REPS" --prompt "$input_text" \
|
|
290
|
-
--mode observe --model "$MODEL" --out "$probe_out" \
|
|
293
|
+
--mode observe --model "$MODEL" --out "$probe_out" ${FH_LIVE_TRACE_ARG:+"$FH_LIVE_TRACE_ARG"} \
|
|
291
294
|
> "$probe_out/_runner_primary.log" 2>&1
|
|
292
295
|
runner_rc=$?
|
|
293
296
|
tail -n 6 "$probe_out/_runner_primary.log"
|
|
@@ -308,7 +311,7 @@ while IFS= read -r id; do
|
|
|
308
311
|
|
|
309
312
|
echo "โถ $id โ control"
|
|
310
313
|
bash "$SIM_RUNNER" --arm control --reps "$REPS" --prompt "$control_text" \
|
|
311
|
-
--mode observe --model "$MODEL" --out "$probe_out" \
|
|
314
|
+
--mode observe --model "$MODEL" --out "$probe_out" ${FH_LIVE_TRACE_ARG:+"$FH_LIVE_TRACE_ARG"} \
|
|
312
315
|
> "$probe_out/_runner_control.log" 2>&1
|
|
313
316
|
runner_rc=$?
|
|
314
317
|
tail -n 6 "$probe_out/_runner_control.log"
|
|
@@ -329,7 +332,7 @@ while IFS= read -r id; do
|
|
|
329
332
|
control_b_text="$(cat "$SPEC_DIR/$id.control_b.txt")"
|
|
330
333
|
echo "โถ $id โ control_b"
|
|
331
334
|
bash "$SIM_RUNNER" --arm control_b --reps "$REPS" --prompt "$control_b_text" \
|
|
332
|
-
--mode observe --model "$MODEL" --out "$probe_out" \
|
|
335
|
+
--mode observe --model "$MODEL" --out "$probe_out" ${FH_LIVE_TRACE_ARG:+"$FH_LIVE_TRACE_ARG"} \
|
|
333
336
|
> "$probe_out/_runner_control_b.log" 2>&1
|
|
334
337
|
runner_rc=$?
|
|
335
338
|
tail -n 6 "$probe_out/_runner_control_b.log"
|
|
@@ -312,6 +312,13 @@ FAILED_TO_RUN = 'FAILED-TO-RUN'
|
|
|
312
312
|
UNCALIBRATED = 'UNCALIBRATED'
|
|
313
313
|
PASS = 'PASS'
|
|
314
314
|
FAIL = 'FAIL'
|
|
315
|
+
INVALID_COMPARISON = 'INVALID-COMPARISON' # arms ran with different tool/MCP surfaces (FH-3, 2026-11-14)
|
|
316
|
+
|
|
317
|
+
try: # ยงTRACE โ sibling module; absent = every probe is scored on text only and labelled MENTION-ONLY
|
|
318
|
+
import live_eval_trace as _trace
|
|
319
|
+
except ImportError: # pragma: no cover
|
|
320
|
+
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
321
|
+
import live_eval_trace as _trace
|
|
315
322
|
|
|
316
323
|
|
|
317
324
|
def _read_text(path):
|
|
@@ -515,6 +522,14 @@ def score_run(live_rows, run_root, ids_in_order, threshold, model, reps=1):
|
|
|
515
522
|
adv_re = spec.get('advisory_re')
|
|
516
523
|
adv_pat = re.compile(adv_re) if adv_re else None
|
|
517
524
|
adv_hits = 0
|
|
525
|
+
behave, behave_err = spec.get('behave'), None
|
|
526
|
+
if behave:
|
|
527
|
+
try:
|
|
528
|
+
_trace.parse_behave(behave)
|
|
529
|
+
except (ValueError, re.error) as e:
|
|
530
|
+
behave_err, behave = str(e), None
|
|
531
|
+
inventories, inv_unknown, traces, no_trace, b_reps = set(), 0, {}, 0, []
|
|
532
|
+
damaged, any_trace = 0, False
|
|
518
533
|
ctrl_b_absent = False # rep-1 only, diagnostic: which arm actually produced nothing
|
|
519
534
|
per_rep = [] # [(verdict, phit, chit, primary_text, control_text)]
|
|
520
535
|
for i in range(1, reps + 1):
|
|
@@ -544,6 +559,31 @@ def score_run(live_rows, run_root, ids_in_order, threshold, model, reps=1):
|
|
|
544
559
|
# without re-deriving this; none currently does.
|
|
545
560
|
ct = ct + '\n----- control_b -----\n' + ctb
|
|
546
561
|
v, ph, ch = score_probe(pt, ct, spec['polarity'], spec['expect_re'])
|
|
562
|
+
# ยงTRACE โ what each arm's session had (init tools/MCP) and, for a `behave:` probe, did.
|
|
563
|
+
for arm in ['primary', 'control'] + (['control_b'] if has_ctrl_b else []):
|
|
564
|
+
tr = _trace.parse_stream(os.path.join(base, '%s_r%d.stream.jsonl' % (arm, i)))
|
|
565
|
+
if tr is not None and tr['damaged']:
|
|
566
|
+
damaged += 1
|
|
567
|
+
tr = None
|
|
568
|
+
any_trace = any_trace or tr is not None
|
|
569
|
+
inv = _trace.inventory(tr)
|
|
570
|
+
if inv is not None:
|
|
571
|
+
inventories.add(inv)
|
|
572
|
+
elif tr is not None:
|
|
573
|
+
inv_unknown += 1
|
|
574
|
+
traces[(arm, i)] = tr
|
|
575
|
+
if behave and v in (PASS, FAIL):
|
|
576
|
+
arms_i = ['primary', 'control'] + (['control_b'] if has_ctrl_b else [])
|
|
577
|
+
if any(traces[(a, i)] is None for a in arms_i):
|
|
578
|
+
no_trace += 1
|
|
579
|
+
else:
|
|
580
|
+
bp = _trace.behave_hit(traces[('primary', i)], behave)
|
|
581
|
+
bc = any(_trace.behave_hit(traces[(a, i)], behave) for a in arms_i[1:])
|
|
582
|
+
b_reps.append((bp, bc))
|
|
583
|
+
if bc:
|
|
584
|
+
v = UNCALIBRATED # the control arm did the action too: it cannot discriminate
|
|
585
|
+
elif v == PASS and not bp:
|
|
586
|
+
v = FAIL # said it, did not do it
|
|
547
587
|
if adv_pat is not None and pt:
|
|
548
588
|
if adv_pat.search(pt):
|
|
549
589
|
adv_hits += 1
|
|
@@ -555,6 +595,10 @@ def score_run(live_rows, run_root, ids_in_order, threshold, model, reps=1):
|
|
|
555
595
|
|
|
556
596
|
if not ran_reps:
|
|
557
597
|
verdict = FAILED_TO_RUN
|
|
598
|
+
elif len(inventories) > 1 or (inventories and inv_unknown):
|
|
599
|
+
verdict = INVALID_COMPARISON # different surfaces, or one arm's surface unknown
|
|
600
|
+
elif behave_err or (behave and any_trace and (no_trace or damaged)):
|
|
601
|
+
verdict = UNCALIBRATED # bad spec, or traces expected but some arm's is missing/damaged
|
|
558
602
|
elif uncal:
|
|
559
603
|
verdict = UNCALIBRATED
|
|
560
604
|
else:
|
|
@@ -573,6 +617,24 @@ def score_run(live_rows, run_root, ids_in_order, threshold, model, reps=1):
|
|
|
573
617
|
'reps_requested': reps,
|
|
574
618
|
'silent': silent,
|
|
575
619
|
'rep_verdicts': [r[0] for r in per_rep]}
|
|
620
|
+
# scored_by: BEHAVIOUR only when every rep that ran carried both traces and a behave spec.
|
|
621
|
+
# A probe with no `behave:` or a rep with no trace is MENTION-ONLY โ its PASS reads a text.
|
|
622
|
+
row['scored_by'] = ('BEHAVIOUR' if behave and ran_reps and len(b_reps) == len(ran_reps)
|
|
623
|
+
else 'MENTION-ONLY')
|
|
624
|
+
row['behave'] = ('%d/%d did ยท control %d/%d' % (sum(1 for b in b_reps if b[0]), len(b_reps),
|
|
625
|
+
sum(1 for b in b_reps if b[1]), len(b_reps))) if b_reps else ('no trace' if behave else '-')
|
|
626
|
+
row['inventory'] = (('%d distinct' % len(inventories)) if inventories else 'UNMEASURED (no trace)') + \
|
|
627
|
+
((' ยท %d trace(s) without init' % inv_unknown) if inv_unknown else '')
|
|
628
|
+
row['_inventories'] = sorted(inventories)
|
|
629
|
+
if behave_err:
|
|
630
|
+
row['reason'] = 'BAD-BEHAVE: ' + behave_err
|
|
631
|
+
elif inventories and inv_unknown and len(inventories) == 1:
|
|
632
|
+
row['reason'] = 'INVALID-COMPARISON: %d trace(s) carry no init tool list โ surfaces not comparable' % inv_unknown
|
|
633
|
+
elif behave and any_trace and (no_trace or damaged):
|
|
634
|
+
row['reason'] = 'TRACE-INCOMPLETE: %d rep(s) missing an arm trace ยท %d damaged stream(s)' % (no_trace, damaged)
|
|
635
|
+
elif len(inventories) > 1:
|
|
636
|
+
row['reason'] = 'INVALID-COMPARISON: arms saw %d different tool/MCP lists โ %s' % (
|
|
637
|
+
len(inventories), ' โ '.join(sorted(inventories)))
|
|
576
638
|
if len(ran_reps) > 1 and 0 < len(pass_reps) < len(ran_reps):
|
|
577
639
|
row['reason'] = 'FLAKY across reps (%s)' % ','.join(r[0] for r in per_rep)
|
|
578
640
|
if adv_pat is not None:
|
|
@@ -643,11 +705,19 @@ def score_run(live_rows, run_root, ids_in_order, threshold, model, reps=1):
|
|
|
643
705
|
r['reason'] = (r['reason'] + '; ' + note) if r.get('reason') else note
|
|
644
706
|
|
|
645
707
|
failed_to_run = [r for r in rows if r['verdict'] == FAILED_TO_RUN]
|
|
708
|
+
invalid = [r for r in rows if r['verdict'] == INVALID_COMPARISON]
|
|
709
|
+
run_inv = set(x for r in rows for x in r.get('_inventories', []))
|
|
710
|
+
behaviour_backed = [r for r in rows if r['verdict'] == PASS and r.get('scored_by') == 'BEHAVIOUR']
|
|
711
|
+
mention_only_pass = [r for r in rows if r['verdict'] == PASS and r.get('scored_by') != 'BEHAVIOUR']
|
|
646
712
|
uncalibrated = [r for r in rows if r['verdict'] == UNCALIBRATED]
|
|
647
713
|
ran = [r for r in rows if r['verdict'] in (PASS, FAIL)]
|
|
648
714
|
passed = [r for r in rows if r['verdict'] == PASS]
|
|
649
715
|
|
|
650
|
-
if
|
|
716
|
+
if invalid or len(run_inv) > 1:
|
|
717
|
+
overall = INVALID_COMPARISON # no number: the arms were not the same instrument
|
|
718
|
+
rc = 2
|
|
719
|
+
pass_rate = None
|
|
720
|
+
elif uncalibrated:
|
|
651
721
|
overall = 'UNCALIBRATED'
|
|
652
722
|
rc = 2
|
|
653
723
|
pass_rate = None
|
|
@@ -681,6 +751,10 @@ def score_run(live_rows, run_root, ids_in_order, threshold, model, reps=1):
|
|
|
681
751
|
'silent_fraction': silent_fraction,
|
|
682
752
|
'blackout': blackout,
|
|
683
753
|
'blackout_suspect': blackout_suspect,
|
|
754
|
+
'invalid_comparison': len(invalid),
|
|
755
|
+
'run_inventories': len(run_inv),
|
|
756
|
+
'behaviour_backed': len(behaviour_backed),
|
|
757
|
+
'mention_only_pass': len(mention_only_pass),
|
|
684
758
|
}
|
|
685
759
|
|
|
686
760
|
|
|
@@ -904,6 +978,11 @@ def render_report_md(select_result, score_result, run_date, instrument=None):
|
|
|
904
978
|
% (score_result['overall'], score_result['ran'], score_result['failed_to_run'],
|
|
905
979
|
score_result['uncalibrated'], score_result['passed'], pr_s))
|
|
906
980
|
lines.append("")
|
|
981
|
+
lines.append("- scored by behaviour: **%d** of %d PASS ยท MENTION-ONLY: **%d** (a MENTION-ONLY PASS read the "
|
|
982
|
+
"reply text; it is not evidence the rule acted) ยท tool/MCP surfaces in this run: %s"
|
|
983
|
+
% (score_result.get('behaviour_backed', 0), score_result['passed'],
|
|
984
|
+
score_result.get('mention_only_pass', 0),
|
|
985
|
+
score_result.get('run_inventories') or 'UNMEASURED (no trace)'))
|
|
907
986
|
sf = score_result.get('silent_fraction')
|
|
908
987
|
if sf is not None:
|
|
909
988
|
lines.append("- instrument-silent probes: %d/%d (%.2f) โ a probe is *silent* when its "
|
|
@@ -923,6 +1002,15 @@ def render_report_md(select_result, score_result, run_date, instrument=None):
|
|
|
923
1002
|
"instrument failure produce this shape, and this file cannot tell them "
|
|
924
1003
|
"apart; the preserved response bodies can.")
|
|
925
1004
|
lines.append("")
|
|
1005
|
+
if score_result is not None:
|
|
1006
|
+
lines.extend(["## Scored by โ behaviour or mention", "",
|
|
1007
|
+
"`BEHAVIOUR` = the probe's `behave:` action was read from the event stream in every rep "
|
|
1008
|
+
"(primary did it, control did not). `MENTION-ONLY` = the verdict rests on reply text.", "",
|
|
1009
|
+
"| Probe | scored_by | behave (primary did ยท control did) | tool/MCP lists |", "|---|---|---|---|"])
|
|
1010
|
+
for r in score_result['rows']:
|
|
1011
|
+
lines.append("| %s | %s | %s | %s |" % (r['id'], r.get('scored_by', 'MENTION-ONLY'),
|
|
1012
|
+
_md_escape(r.get('behave', '-')), _md_escape(r.get('inventory', '-'))))
|
|
1013
|
+
lines.append("")
|
|
926
1014
|
lines.extend(render_construct_md(select_result['selected']))
|
|
927
1015
|
if score_result is not None and score_result.get('target'):
|
|
928
1016
|
lines.extend(render_target_md(score_result['target']))
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
# ํ๋๋ก ๋ฌถ์ด ๋๋๋ ์ค๋ฌผ PR ์ฌํ์ด **์ ๋ถ SKIP** ์ผ๋ก ๋จ์ด์ก๋ค(์กฐ์ฉํ ํต๊ณผ).
|
|
48
48
|
# RMG_BASE_REF ๋น๊ต ๊ธฐ์ค (๊ธฐ๋ณธ: origin/main)
|
|
49
49
|
# RMG_BODY_FILE PR ๋ณธ๋ฌธ์ด ๋ด๊ธด ํ์ผ (์ ํ โ ์์ผ๋ฉด ์ปค๋ฐ ๋ฉ์์ง๋ง ๋ณธ๋ค)
|
|
50
|
+
# RMG_PR_LOOKUP 1 ์ด๋ฉด BODY_FILE ์ด ์์ ๋ ๊ทธ ์ปค๋ฐ์ PR ๋ณธ๋ฌธ์ `gh api` ๋ก ์ฝ๋๋ค(push ์คํ์ฉ)
|
|
51
|
+
# ์กฐํ ์คํจ = rc=10 ยท ์ด ์ฑ๋์ PR ์์ = ์ปค๋ฐ ๋ฉ์์ง๋ง
|
|
52
|
+
# RMG_REPO owner/name (RMG_PR_LOOKUP=1 ์ผ ๋ ํ์) ยท RMG_GH gh ์คํ ํ์ผ (๊ธฐ๋ณธ: gh โ ๋ ์ธ์ด ๊ฐ์ง๋ฅผ ๊ฝ๋๋ค)
|
|
50
53
|
# RMG_CHANNEL_RE ํ๋ก์ด ์๋ ์ฑ๋ ํจํด (๊ธฐ๋ณธ: '^claude/')
|
|
51
54
|
# RMG_GUARD_FILE GUARD_PATHSPEC ์ ๋ณธ (๊ธฐ๋ณธ: templates/regression_guard.sh)
|
|
52
55
|
set -u
|
|
@@ -134,6 +137,59 @@ fi
|
|
|
134
137
|
say "๐ FH ์์ฐ $NCH ๊ฐ๋ฅผ ๊ฑด๋๋ ธ๋ค:"
|
|
135
138
|
printf '%s\n' "$CHANGED" | sed 's/^/ /'
|
|
136
139
|
|
|
140
|
+
# โโ 3-a. push ์คํ: ๊ทธ ์ปค๋ฐ์ PR ๋ณธ๋ฌธ์ API ๋ก ์ฝ๋๋ค (2026-11-15, AQ-20261114-10) โโ
|
|
141
|
+
# `pull_request` ์คํ์ ๋ณธ๋ฌธ์ ์ด๋ฒคํธ์์ ๋ฐ์ง๋ง `push` ์คํ์๋ ๋ณธ๋ฌธ์ด ์๋ค. ๊ทธ๋์ ๊ฐ์
|
|
142
|
+
# HEAD ์ push ์คํ๋ง ๋นจ๊ฐ๊ณ pull_request ์คํ์ ์ด๋ก์ธ ๋ ํ์ ์ด ๋ฌ๋ค(#1095 ยท #1103).
|
|
143
|
+
# ๐ฅ ์กฐํ ์คํจ๋ ยซPR ์์ยป ์ด ์๋๋ค โ rc=10(๋นจ๊ฐ). PR ์ด ์ ๋ง ์์ผ๋ฉด ์ปค๋ฐ ๋ฉ์์ง๋ง ๋ณธ๋ค โ
|
|
144
|
+
# ๊ทธ๋ ๋ง์ปค๊ฐ ์์ผ๋ฉด ์๋ 4 ๊ฐ rc=1 ๋ก ๋ง๋๋ค. ์ ๋ณธ ๊ธฐ๋ก๋ฉด์ ์ฌ์ ํ ์ปค๋ฐ ๋ฉ์์ง๋ค(:172 ์ฒ๋ฐฉ).
|
|
145
|
+
if [ -z "$BODY_FILE" ] && [ "${RMG_PR_LOOKUP:-0}" = "1" ]; then
|
|
146
|
+
GH_BIN="${RMG_GH:-gh}"
|
|
147
|
+
if [ -z "${RMG_REPO:-}" ] || [ -z "$_h" ]; then
|
|
148
|
+
say "โ HARNESS-ERROR โ PR ์กฐํ์ ํ์ํ ๊ฐ์ด ์๋ค(RMG_REPO='${RMG_REPO:-}' ยท sha='$_h')."
|
|
149
|
+
exit 10
|
|
150
|
+
fi
|
|
151
|
+
LOOKUP_DIR=$(mktemp -d 2>/dev/null) || { say "โ HARNESS-ERROR โ ์์ ํด๋๋ฅผ ๋ชป ๋ง๋ ๋ค"; exit 10; }
|
|
152
|
+
if ! "$GH_BIN" api "repos/$RMG_REPO/commits/$_h/pulls" > "$LOOKUP_DIR/pulls.json" 2> "$LOOKUP_DIR/err.txt"; then
|
|
153
|
+
say "โ HARNESS-ERROR โ ์ปค๋ฐ $_h ์ PR ์กฐํ๊ฐ ์คํจํ๋ค:"
|
|
154
|
+
sed 's/^/ /' "$LOOKUP_DIR/err.txt" | head -5
|
|
155
|
+
say " ๐ฅ ์กฐํ ์คํจ๋ฅผ ยซPR ์์ยป ์ผ๋ก ์ฝ์ง ์๋๋ค. ๋ค์ ๋๋ฆฌ๊ฑฐ๋ ์ปค๋ฐ ๋ฉ์์ง์ ๋ง์ปค๋ฅผ ์ค์ด๋ผ."
|
|
156
|
+
rm -rf "$LOOKUP_DIR"; exit 10
|
|
157
|
+
fi
|
|
158
|
+
# ์ด ์ฑ๋(head ref)์ PR ๋ง ๋ฐ๋๋ค โ ๊ฐ์ ์ปค๋ฐ์ ํ์ ๋จ์ PR ๋ณธ๋ฌธ์ผ๋ก ํต๊ณผํ์ง ์๊ฒ.
|
|
159
|
+
# head ๋ ํฌ๊น์ง ๋ง์ถ๋ค โ ๊ฐ์ ๋ธ๋์น ์ด๋ฆ์ ํฌํฌ PR ๋ณธ๋ฌธ์ผ๋ก ํต๊ณผํ์ง ์๊ฒ(codex R1).
|
|
160
|
+
if ! python3 - "$LOOKUP_DIR/pulls.json" "$CHANNEL_NAME" "$LOOKUP_DIR/body.txt" "$RMG_REPO" > "$LOOKUP_DIR/n.txt" 2>> "$LOOKUP_DIR/err.txt" <<'PY'
|
|
161
|
+
import json, sys
|
|
162
|
+
src, ref, out, repo = sys.argv[1:5]
|
|
163
|
+
data = json.load(open(src, encoding="utf-8"))
|
|
164
|
+
if not isinstance(data, list):
|
|
165
|
+
raise SystemExit("not a list")
|
|
166
|
+
bodies = []
|
|
167
|
+
for p in data:
|
|
168
|
+
# a malformed entry is an unreadable answer, not ยซno PRยป (codex R1)
|
|
169
|
+
h = p.get("head") if isinstance(p, dict) else None
|
|
170
|
+
r = h.get("repo") if isinstance(h, dict) else None
|
|
171
|
+
if not (isinstance(h, dict) and isinstance(h.get("ref"), str)
|
|
172
|
+
and isinstance(r, dict) and isinstance(r.get("full_name"), str)):
|
|
173
|
+
raise SystemExit("malformed PR entry (head.ref / head.repo.full_name)")
|
|
174
|
+
if h["ref"] == ref and r["full_name"] == repo:
|
|
175
|
+
bodies.append(p.get("body") or "")
|
|
176
|
+
open(out, "w", encoding="utf-8").write("\n".join(bodies))
|
|
177
|
+
print(len(bodies))
|
|
178
|
+
PY
|
|
179
|
+
then
|
|
180
|
+
say "โ HARNESS-ERROR โ PR ์กฐํ ์๋ต์ ๋ชป ์ฝ๋๋ค:"
|
|
181
|
+
sed 's/^/ /' "$LOOKUP_DIR/err.txt" | head -5
|
|
182
|
+
rm -rf "$LOOKUP_DIR"; exit 10
|
|
183
|
+
fi
|
|
184
|
+
NPR=$(cat "$LOOKUP_DIR/n.txt")
|
|
185
|
+
if [ "${NPR:-0}" -gt 0 ] 2>/dev/null; then
|
|
186
|
+
BODY_FILE="$LOOKUP_DIR/body.txt"
|
|
187
|
+
say "๐ push ์คํ: ์ปค๋ฐ $_h ์ PR($CHANNEL_NAME) ${NPR} ๊ฐ ๋ณธ๋ฌธ์ API ๋ก ์ฝ์๋ค."
|
|
188
|
+
else
|
|
189
|
+
say "๐ push ์คํ: ์ปค๋ฐ $_h ๋ฅผ ํ์ '$CHANNEL_NAME' PR ์ด ์๋ค โ ์ปค๋ฐ ๋ฉ์์ง๋ง ๋ณธ๋ค."
|
|
190
|
+
fi
|
|
191
|
+
fi
|
|
192
|
+
|
|
137
193
|
# โโ 3. ๊ธฐ๋ก๋ฉด = ์ปค๋ฐ ๋ฉ์์ง (+ ์ ํ์ PR ๋ณธ๋ฌธ) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
138
194
|
RECORD=$(git log --format='%B' "$BASE_REF".."$HEAD_REF" 2>/dev/null)
|
|
139
195
|
if [ -n "$BODY_FILE" ] && [ -r "$BODY_FILE" ]; then
|
package/scripts/selfcheck.sh
CHANGED
|
@@ -195,7 +195,7 @@ if [ "${FH_SELFCHECK_PROFILE:-full}" = consumer ]; then
|
|
|
195
195
|
if _package_mode; then _CONSUMER=1
|
|
196
196
|
else echo "โ ๏ธ FH_SELFCHECK_PROFILE=consumer IGNORED โ this tree is a git checkout; running the full suite"; fi
|
|
197
197
|
fi
|
|
198
|
-
CHECKOUT_ONLY_SUITES="test_package_coverage_lanes.sh test_files_manifest_shipping_lanes.sh test_map_postprocess_lanes.sh test_remote_marker_gate_lanes.sh test_worktree_reclaim_lanes.sh test_sim_isolated_run_lanes.sh test_utterance_intake_lanes.sh test_precommit_pointer_index_lanes.sh test_selfcheck_shard_lanes.sh test_ci_validate_shard_count_lanes.sh"
|
|
198
|
+
CHECKOUT_ONLY_SUITES="test_fixture_guard_coverage_lanes.sh test_package_coverage_lanes.sh test_files_manifest_shipping_lanes.sh test_map_postprocess_lanes.sh test_remote_marker_gate_lanes.sh test_worktree_reclaim_lanes.sh test_sim_isolated_run_lanes.sh test_utterance_intake_lanes.sh test_precommit_pointer_index_lanes.sh test_selfcheck_shard_lanes.sh test_ci_validate_shard_count_lanes.sh"
|
|
199
199
|
CONSUMER_SKIPPED=""
|
|
200
200
|
_consumer_skip() { # $1 = suite basename ยท rc 0 = skip it (and it has been named)
|
|
201
201
|
[ "$_CONSUMER" -eq 1 ] || return 1
|
|
@@ -1183,10 +1183,16 @@ for _pair in \
|
|
|
1183
1183
|
"scripts/probe_live_eval_lib.py|scripts/test_live_eval_transitions_lanes.sh" \
|
|
1184
1184
|
"scripts/correction_moments.py|scripts/test_correction_moments_lanes.sh" \
|
|
1185
1185
|
"scripts/probe_live_eval_lib.py|scripts/test_live_eval_construct_lanes.sh" \
|
|
1186
|
+
"scripts/live_eval_trace.py|scripts/test_live_eval_trace_lanes.sh" \
|
|
1187
|
+
"scripts/probe_live_eval_lib.py|scripts/test_live_eval_trace_lanes.sh" \
|
|
1188
|
+
"scripts/sim_isolated_run.sh|scripts/test_live_eval_trace_lanes.sh" \
|
|
1186
1189
|
`# ๋ฌด์ธ ์์ฒด๊ฐ๋ฐ ๋ฃจํ(2026-11-04, ์ด์์ ์์ ์์ฒญ). ์๋ ๋จธ์ง ๋ฑ๊ธ์ ๋ชจ๋ธ์ด ์๋๋ผ ๊ฒฝ๋ก ํ์ฉ ๋ชฉ๋ก์ด ์ ํ๋ค โ ๋น ๋ชฉ๋ก์ AUTO ๊ฐ ์๋๋ผ HARNESS-ERROR(์ค์ธก: ๊ฐ๋๋ฅผ ์ง์ฐ๋ฉด ๋น ๋ชฉ๋ก์ด AUTO ๋ก ํต๊ณผ).` \
|
|
1187
1190
|
"scripts/selfdev_merge_tier.sh|scripts/test_selfdev_merge_tier_lanes.sh" \
|
|
1188
1191
|
"scripts/selfdev_queue.py|scripts/test_selfdev_queue_lanes.sh" \
|
|
1189
1192
|
"scripts/ablation_nominate.py|scripts/test_ablation_nominate_lanes.sh" \
|
|
1193
|
+
"scripts/ablation_verdict.py|scripts/test_ablation_verdict_lanes.sh" \
|
|
1194
|
+
`# ๋น๋ ์นด๋ ํ์ผ ์ญํ 4๊ฐ(2026-11-15, FH-6). ๋์คํจ์น ๋ค ๋ฐ๋ ํ์ผ โฉ protected = โ
โ protected ๋ฅผ ์ ์ ์ ์นด๋๋ ํต๊ณผ๊ฐ ์๋๋ผ HARNESS-ERROR.` \
|
|
1195
|
+
"scripts/builder_card_files_check.py|scripts/test_builder_card_files_lanes.sh" \
|
|
1190
1196
|
`# ๋ฆฌ์ค ๊ธฐ๋ก ์ฑ๋(2026-11-07). ์ธ์
์ ์ด์, ๊ธฐ๋ก์ ์ด์์ โ ์์ด์ ํธ ์
ธ ๊ฑฐ๋ถ ยท ์ฝ๋ ๋ถ์ผ์น ๋ฌด๊ธฐ๋ก ยท ์์์ ๊ต์ฒด.` \
|
|
1191
1197
|
"scripts/lease_line_apply.sh|scripts/test_lease_line_apply_lanes.sh" \
|
|
1192
1198
|
`# ๊ณต์ ์ธ์
์ฅ๋ถ(2026-11-11 ์๋ฒ). ์ค๋ฌด ์ธ์
์ด ์ฐ๊ณ ๋ฃจํธ๊ฐ ์ฝ๋๋ค โ ์ ์ ์ ์ธ์
์ NOT-WRITTEN, ๊นจ์ง ์ค์ MALFORMED.` \
|
|
@@ -1251,6 +1257,7 @@ for _pair in \
|
|
|
1251
1257
|
"scripts/fixture_guard_lib.sh|scripts/test_fixture_guard_lanes.sh" \
|
|
1252
1258
|
"scripts/fixture_guard_lib.sh|scripts/test_fixture_git_env_lanes.sh" \
|
|
1253
1259
|
"scripts/lane_identity_tripwire.sh|scripts/test_fixture_git_env_lanes.sh" \
|
|
1260
|
+
"scripts/fixture_guard_lib.sh|scripts/test_fixture_guard_coverage_lanes.sh" \
|
|
1254
1261
|
"scripts/stray_path_scan.sh|scripts/test_stray_path_lanes.sh" \
|
|
1255
1262
|
"scripts/session_close_check.sh|scripts/test_stray_path_lanes.sh" \
|
|
1256
1263
|
`# โโ โ -g stale-ref (2026-09-21 ์ ์ค) โ #773 ์ด ใ๋ฐฐ์ ์ ํจใ์ด๋ผ ์ ์ ์๋ฆฌ์ ํธ์ถ๋ถ. SUBJECT ๋ ์ค์บ๋๊ฐ ์๋๋ผ ยซ๋ง๊ฐ ๋ธ๋กยป์ด๋ค: ์ค์บ๋ ์์ฒด๋ test_stale_ref_scan_lanes.sh ๊ฐ ์ด๋ฏธ ์ต์ปคํ๋ค โโ` \
|
|
@@ -1292,6 +1299,7 @@ for _pair in \
|
|
|
1292
1299
|
"scripts/stale_clone_guard.sh|scripts/test_stale_clone_guard_lanes.sh" \
|
|
1293
1300
|
"scripts/proposal_hook.sh|scripts/test_proposal_hook_lanes.sh" \
|
|
1294
1301
|
"plugins/fh-commons/skills/ko-tech-writer/SKILL.md|scripts/test_ko_tech_writer_lanes.sh" \
|
|
1302
|
+
"plugins/fh-meta/skills/meta-prompt-builder/SKILL.md|scripts/test_meta_prompt_restate_lanes.sh" \
|
|
1295
1303
|
"scripts/absorption_queue.py|scripts/test_absorption_queue_lanes.sh" \
|
|
1296
1304
|
"scripts/catch_tally.py|scripts/test_catch_tally_lanes.sh" \
|
|
1297
1305
|
"scripts/shell_name_boundary_scan.sh|scripts/test_name_boundary_locale_lanes.sh" \
|
|
@@ -528,6 +528,22 @@ if [ -f "$FC" ]; then
|
|
|
528
528
|
fi
|
|
529
529
|
fi
|
|
530
530
|
|
|
531
|
+
# โค-done-anchor (RECORD-ONLY โ never sets FAIL, 2026-11-14). A ยซ์๋ฃ/doneยป line is a claim about the
|
|
532
|
+
# world handed to the next session. arXiv:2611.14654 measured what a tidied record costs the reader:
|
|
533
|
+
# an agent's own ยซcompletedยป action next to an error still in the world lowered recovery 50% โ 44%,
|
|
534
|
+
# while a truthful note beside the preserved error raised it 51% โ 66% (vs a matched neutral note).
|
|
535
|
+
# This line checks only a property of the record โ does each done-line carry a world anchor (commit
|
|
536
|
+
# sha ยท #PR ยท run id ยท file path ยท URL) โ never whether the work is actually done.
|
|
537
|
+
if [ -f "$FC" ]; then
|
|
538
|
+
_DONE_RE='์๋ฃ|[Dd]one|DONE|[Cc]losed'
|
|
539
|
+
_ANCHOR_RE='[0-9a-f]{7,40}|#[0-9]+|[0-9]{8,}|[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+|[A-Za-z0-9_-]+\.(md|sh|py|js|json|yml)|https?://'
|
|
540
|
+
_bare=$(grep -E "$_DONE_RE" "$FC" | grep -vE '^[[:space:]]*#' | grep -vcE "$_ANCHOR_RE")
|
|
541
|
+
if [ "${_bare:-0}" -gt 0 ]; then
|
|
542
|
+
echo "โ โค-done-anchor ${_bare} ยซ์๋ฃยป line(s) in fh_completed_${TODAY}.md name no commit ยท PR ยท file (record only) โ pair each with its world state, and say what is still unresolved:"
|
|
543
|
+
grep -E "$_DONE_RE" "$FC" | grep -vE '^[[:space:]]*#' | grep -vE "$_ANCHOR_RE" | head -3 | cut -c1-140 | sed 's/^/ /'
|
|
544
|
+
fi
|
|
545
|
+
fi
|
|
546
|
+
|
|
531
547
|
# โฃ-b npm freshness โ files[] assets changed since last version tag โ republish owed.
|
|
532
548
|
# Patterns are NARROWED to the actually-shipped subpaths (package.json files[]): knowledge/ ships only
|
|
533
549
|
# shared/{harness-core,dialogue,rules}; docs/ ships only {codex-compat,CONTRIBUTING,pillars}. A broad
|
|
@@ -314,7 +314,7 @@ _PYEOF
|
|
|
314
314
|
|
|
315
315
|
BASE_REF=""; BASE_SHA=""
|
|
316
316
|
ARM=""; REPS=1; PROMPT=""; MODE="observe"; MODEL="sonnet"; TIMEOUT=900; OUTDIR=""; NOHARNESS=0; SETUP=""; EXTRA=""
|
|
317
|
-
TURNS=""; NORESUME=0
|
|
317
|
+
TURNS=""; NORESUME=0; TRACE=0
|
|
318
318
|
SETSRC=""; SETFILE=""; PERMMODE=""; ADDWRAP=0 # ยงCONSUMER SURFACE โ never inherited from the env (codex R1)
|
|
319
319
|
_needval() { [ "$#" -ge 2 ] || { echo "FAIL: $1 needs a value" >&2; exit 2; }; }
|
|
320
320
|
while [ $# -gt 0 ]; do
|
|
@@ -334,6 +334,7 @@ while [ $# -gt 0 ]; do
|
|
|
334
334
|
--mcp-config) MCPCFG="${2:-}"; shift 2 ;; # the ONLY MCP servers an arm may see (see MCP ISOLATION). Default: none.
|
|
335
335
|
--turns) TURNS="${2:-}"; shift 2 ;; # MULTI-TURN: one turn per line. See ยงMULTI-TURN.
|
|
336
336
|
--no-resume) NORESUME=1; shift ;; # CONTROL arm for --turns:each turn is a fresh session. See ยงMULTI-TURN.
|
|
337
|
+
--trace) TRACE=1; shift ;; # ยงTRACE: keep the event stream (tool calls + init tool list). Single-shot only.
|
|
337
338
|
--setting-sources) _needval "$@"; SETSRC="$2"; [ -n "$SETSRC" ] || { echo "FAIL: --setting-sources is empty" >&2; exit 2; }; shift 2 ;; # ยงCONSUMER SURFACE โ e.g. project,local
|
|
338
339
|
--settings) _needval "$@"; SETFILE="$2"; [ -n "$SETFILE" ] || { echo "FAIL: --settings is empty" >&2; exit 2; }; shift 2 ;; # ยงCONSUMER SURFACE โ permission file
|
|
339
340
|
--permission-mode) _needval "$@"; PERMMODE="$2"
|
|
@@ -343,6 +344,7 @@ while [ $# -gt 0 ]; do
|
|
|
343
344
|
*) echo "unknown flag: $1" >&2; exit 2 ;;
|
|
344
345
|
esac
|
|
345
346
|
done
|
|
347
|
+
if [ "$TRACE" -eq 1 ] && [ -n "$TURNS" ]; then echo "FAIL: --trace is single-shot only (refused with --turns, never silently ignored)" >&2; exit 2; fi
|
|
346
348
|
# โโ ยงCONSUMER SURFACE (2026-11-10, AQ-20261110-6) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
347
349
|
# WHY: the blind harness-birth test (branch claude/blind-birth-test-092883, its fixtures folder
|
|
348
350
|
# blind_birth_2026-11-10 โ not on main when this landed) needed an arm that
|
|
@@ -685,7 +687,7 @@ for r in $(seq 1 "$REPS"); do
|
|
|
685
687
|
# A reused --out must not carry the previous run's budget record into a rep that fails before
|
|
686
688
|
# writing its own (clone failure `continue`s first) โ a stale `ended_at_cap=no` would be read as
|
|
687
689
|
# this run's. Same for the per-turn table the budget line reads.
|
|
688
|
-
rm -f "$OUTDIR/${ARM}_r${r}.meta.tsv" "$OUTDIR/${ARM}_r${r}.turns.tsv"
|
|
690
|
+
rm -f "$OUTDIR/${ARM}_r${r}.meta.tsv" "$OUTDIR/${ARM}_r${r}.turns.tsv" "$OUTDIR/${ARM}_r${r}.stream.jsonl" "$OUTDIR/${ARM}_r${r}.tools.txt"
|
|
689
691
|
# Each clone gets its OWN parent directory. Siblings under one parent are visible to `../`,
|
|
690
692
|
# and that is not hypothetical: an arm measured 2026-08-29 scanned its parent for mappable
|
|
691
693
|
# projects and reported finding "iso_A, door_CTRL" โ the other arms' work dirs. Content stayed
|
|
@@ -869,6 +871,19 @@ for r in $(seq 1 "$REPS"); do
|
|
|
869
871
|
# adds a path, it does not modify the one every existing probe already runs on.
|
|
870
872
|
fh_run_turns "$r"
|
|
871
873
|
rc=$?
|
|
874
|
+
elif [ "$TRACE" -eq 1 ]; then
|
|
875
|
+
# ยงTRACE (2026-11-14, FH-3) โ same argv plus a stream format, so the scorer can read what the
|
|
876
|
+
# session DID (tool calls) and which tool surface it had (init event). The .txt keeps the shape
|
|
877
|
+
# every scorer already reads. A stream with no result event is rc 3, never an empty answer.
|
|
878
|
+
( cd "$WORK" && fh_timeout "$TIMEOUT" claude -p "$PROMPT" \
|
|
879
|
+
--model "$MODEL" "${TOOLS[@]}" ${MCPARGS[@]+"${MCPARGS[@]}"} \
|
|
880
|
+
${SURFREP[@]+"${SURFREP[@]}"} --output-format stream-json --verbose \
|
|
881
|
+
< /dev/null 2>"$OUTDIR/${ARM}_r${r}.stderr.txt" ) > "$OUTDIR/${ARM}_r${r}.stream.jsonl"
|
|
882
|
+
rc=$?
|
|
883
|
+
python3 "$(dirname "$0")/live_eval_trace.py" extract "$OUTDIR/${ARM}_r${r}.stream.jsonl" \
|
|
884
|
+
"$OUTDIR/${ARM}_r${r}.txt" "$OUTDIR/${ARM}_r${r}.tools.txt"
|
|
885
|
+
_xrc=$?
|
|
886
|
+
[ "$rc" -eq 0 ] && [ "$_xrc" -ne 0 ] && rc=3
|
|
872
887
|
else
|
|
873
888
|
( cd "$WORK" && fh_timeout "$TIMEOUT" claude -p "$PROMPT" \
|
|
874
889
|
--model "$MODEL" "${TOOLS[@]}" ${MCPARGS[@]+"${MCPARGS[@]}"} \
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
# ๐ฅ ๊ฒ์ดํธ๋ ยซ๋ง๋ยป ์ ยซ์ ์ ์ง๋ฌธ์ ์ ๋ง๋ยป ๋ฅผ ๊ฐ์ด ์ฐ๋ค โ ์ญํ ๋ก ๋ฐ๊พผ ์ง๋ฌธ๊น์ง ๋ง์ผ๋ฉด ์ด ๊ธธ์ ์ธ๋ชจ๊ฐ ์๋ค.
|
|
4
4
|
# ์ฌ์ ์ ํฝ์ค์ฒ๋ค(/usr/share/dict/words ๊ฐ ์๋ CI ์์๋ ๊ฐ์ ํ์ ). ์ค์ ์ฌ์ ยท ์ค์ ๋ ํฌ ๊ณผ์ฐจ๋จ ๋น์จ์ D2 ๊ฐ ์ฐ๋ค.
|
|
5
5
|
# rc ๊ณ์ฝ: 0 = clean ยท 1 = hit ยท 3 = NOT SCANNED
|
|
6
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
6
7
|
set -uo pipefail
|
|
7
8
|
HERE=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
8
9
|
C="$HERE/abstract_consult_check.py"
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
# bash scripts/test_adapter_lanes.sh --revert-probe # ๋ ์ธ + ๋๋๋ฆผ ํ๋ก๋ธ 2์ข
|
|
24
24
|
# exit: 0 = ์ ๋ถ ๊ธฐ๋๋๋ก ยท 1 = ํ๊ท ยท 10 = ํ๋ค์ค ์ค๋ฅ(์ ์ ํ์ โ ํ์ ์๋)
|
|
25
25
|
|
|
26
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
26
27
|
set -uo pipefail
|
|
27
28
|
|
|
28
29
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
# ํธ์ถ๋ถ๋ฅผ ์ ๋ฆฌํฐ๋ด๋ก ๋๋๋ฆฐ ์ฌ๋ณธ์์ ์ฌ๋ผ์ง๋์ง(known-negative)
|
|
23
23
|
#
|
|
24
24
|
# Usage: bash scripts/test_axis23_skip_reason_lanes.sh Exit: 0 PASS ยท 1 ํ๊ท ยท 10 ๊ณ๊ธฐ ๋ถ๋
|
|
25
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
25
26
|
set -uo pipefail
|
|
26
27
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
27
28
|
HOOK="$REPO_ROOT/templates/.git-hooks/pre-commit"
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
# Surface = the Bash tool call itself (interactively-composed commands), same reasoning as
|
|
19
19
|
# pipe_verdict_guard: every recurrence was in a composed command, none in a shipped file.
|
|
20
20
|
|
|
21
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
21
22
|
set -u
|
|
22
23
|
G="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/backtick_guard.sh"
|
|
23
24
|
pass=0; fail=0
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
#
|
|
31
31
|
# Usage: bash scripts/test_claim_propagation_lanes.sh (PATH=<interp-dir>:$PATH to pin an interpreter โ a $PY invoker is unreadable to new_code_anchor_check.sh)
|
|
32
32
|
# Exit: 0 = every lane passed ยท 1 = a lane failed (or the instrument itself broke)
|
|
33
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
33
34
|
set -u
|
|
34
35
|
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
35
36
|
SCAN="$HERE/claim_propagation_scan.py"
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
# ์ธ๋ฏ๋ก ๊ฐ์ ๋จ์๋ค. `wc -c` ๋ ๋ฐ์ดํธ๋ผ ํ๊ธ ํ ๊ธ์๋ฅผ 3 ์ผ๋ก ์ธ์ด ๊ณผ์ฐจ๋จํ๋ค(L4 ๊ฐ ๊ทธ ์ฐจ์ด๋ฅผ ๋ฐ๋๋ค).
|
|
14
14
|
# ์ฒ๋ฐฉ: ๋นจ๊ฐ์ง๋ฉด ์ง์ฐ์ง ๋ง๊ณ **์ฎ๊ฒจ๋ผ** โ ๊ทผ๊ฑฐยท์ค์ธกยท์ฒ ํ ๊ฒฝ์๋ฅผ detail ํ์ผ๋ก verbatim ์ด๊ดํ๊ณ ์์ฃผ์๋
|
|
15
15
|
# ๊ท์น + ํฌ์ธํฐ๋ง ๋จ๊ธด๋ค(์ ๋ก: tracks/_meta/claude_md_diet_2026-09-26/ ์ diet.pyยทverify.py).
|
|
16
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
16
17
|
set -uo pipefail
|
|
17
18
|
HERE="$(cd "$(dirname "$0")" && pwd)"; ROOT="$(cd "$HERE/.." && pwd)"
|
|
18
19
|
LIMIT="${FH_CLAUDE_MD_LIMIT:-18000}" # ํฌํฌ๋ ์๊ธฐ CLAUDE.md ์ ๋ง์ถฐ ์ฌ๋ ค๋ ๋๋ค(์ด๊ฑด FH ํ๋ธ ์์ฃผ ๋์นซ์ด๋ค)
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
#
|
|
20
20
|
# Lanes: N* = known-negative (must pass) ยท P* = known-positive (must be caught) ยท D* = degrade.
|
|
21
21
|
# Exit 0 = all lanes correct. Exit 1 = the validator regressed toward permissiveness.
|
|
22
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
22
23
|
set -uo pipefail
|
|
23
24
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
24
25
|
CHK="$ROOT/scripts/consent_registry_check.sh"
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
# use count_check's own active-skill rule (first 20 lines carry no deprecation marker).
|
|
17
17
|
# Arms assert the README line AND that it is the only FAIL, so a run failing for another reason
|
|
18
18
|
# never counts as the README check firing.
|
|
19
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
19
20
|
set -uo pipefail
|
|
20
21
|
|
|
21
22
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
# does not come back GREEN, no later verdict in this file means anything.
|
|
23
23
|
#
|
|
24
24
|
# ๐ฅ The real repository is never mutated. L8 asserts that.
|
|
25
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
25
26
|
set -uo pipefail
|
|
26
27
|
|
|
27
28
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
# with a populated plugin tree; a fixture that lacks one fails for an unrelated reason ("0 active
|
|
19
19
|
# fh-meta skills") and every arm goes red for the SAME wrong cause โ which is how a first attempt
|
|
20
20
|
# at this test nearly certified a guard that had not been exercised at all.
|
|
21
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
21
22
|
set -uo pipefail
|
|
22
23
|
|
|
23
24
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
#
|
|
20
20
|
# Usage: bash scripts/test_degrade_scan_shell_probes.sh
|
|
21
21
|
# Exit: 0 = all assertions pass; 1 = a regression.
|
|
22
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
22
23
|
set -uo pipefail
|
|
23
24
|
|
|
24
25
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
# Advisory by default; FH_DESTRUCTIVE_BLOCK=1 escalates. The FP lanes matter as much as the HIT
|
|
13
13
|
# lanes: noise trains dismissal of the one warning that will matter (pipe_verdict S5 lesson).
|
|
14
14
|
|
|
15
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
15
16
|
set -u
|
|
16
17
|
G="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/destructive_pre_gate.sh"
|
|
17
18
|
pass=0; fail=0
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
# Each lane builds a throwaway git repo under mktemp. Exit: 0 all lanes pass ยท 1 a lane failed ยท 10 harness error.
|
|
4
4
|
# codex 2026-10-20 R1 shaped the second half: quoted paths, renames, submodules, swallowed tool errors, rewritten claims, and a
|
|
5
5
|
# revert probe that runs the mismatch lanes themselves against a mutant (they must go red there).
|
|
6
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
6
7
|
set -uo pipefail
|
|
7
8
|
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
8
9
|
R="$HERE/dispatch_receipt.py"
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
# ๐ฅ ์ด ๋ ์ธ์ด ์งํค๋ ๊ฒ์ ยซ์ซ์ยป๊ฐ ์๋๋ผ ยซํ๋ณ๋ ฅยป์ด๋ค. ๊ทธ ๊ณ๊ธฐ๋ ์ธ์
์ค ์ธ ๋ฒ ๋ซ๋ ธ๊ณ
|
|
5
5
|
# (๊ณต์กดโ ๊ด๊ณ ยท ๋ฐฉํฅ ๋ฏธํด๊ฒฐ ยท ๋์ด ํต๊ณผ) ์ธ ๋ฒ ๋ค ์๊ฒ์ฆ์ด ์ก์๋ค. ๋ ์ธ์ ๊ทธ ์
์ด
|
|
6
6
|
# ๋๋์์ค๋์ง๋ฅผ ๋ณธ๋ค โ ํฝ์ค์ฒ๋ ์ค์ ๋ก ๋ซ๋ ธ๋ ํ๊ธฐ๋ฅผ ๊ทธ๋๋ก ์ด๋ค.
|
|
7
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
7
8
|
set -uo pipefail
|
|
8
9
|
HERE="$(cd "$(dirname "$0")" && pwd)"; ROOT="$(dirname "$HERE")"
|
|
9
10
|
SCAN="$HERE/doc_claim_triad_scan.py"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
# - its unmapped main repo IS still counted (known-positive โ the fix must not hide real repos)
|
|
9
9
|
# - a `.git` FILE that is not a worktree pointer (submodule shape) still counts (old behaviour kept)
|
|
10
10
|
# - cwd inside a worktree of a MAPPED repo โ silent; of an UNMAPPED repo โ names the main repo
|
|
11
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
11
12
|
set -u
|
|
12
13
|
HERE="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
|
|
13
14
|
SCAN="$HERE/fh_env_delta_scan.sh"
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
# ๐ฅ ๊ณ๊ธฐ-์ค๋ฅ ํ(L6)์ด ์ด ๋ฌถ์์ ํต์ฌ์ด๋ค โ ํ๋ธ๊ฐ ์๋ ๊ณณ์ ๊ฒจ๋๋ฉด ยซ๋๋ฆฌํํธ 11๊ฑดยป์ด ์๋๋ผ
|
|
8
8
|
# rc=2 ๊ฐ ๋์์ผ ํ๋ค. ๊ทธ ํ์ด ์์ผ๋ฉด ์ด ๊ณ๊ธฐ์ ๊ฐ์ฅ ๊ทธ๋ด๋ฏํ ์คํจ(์๋ฑํ cwd ์์ ์ ๋ถ
|
|
9
9
|
# ABSENT ๋ฅผ ์ฐ๊ณ ๋ณด๊ณ )๊ฐ ์ด๋ก์ผ๋ก ์ง๋๊ฐ๋ค.
|
|
10
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
10
11
|
set -uo pipefail
|
|
11
12
|
cd "$(dirname "$0")/.." || exit 2
|
|
12
13
|
S=scripts/env_layer_fingerprint.sh
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
# E1 ์ํฌํธ๋ฆฌ์์ ์ปค๋ฐํด๋ ์ค๋ฒ๋ผ์ด๋๋ฅผ ์ฐพ๋๋ค (๊ฒฝ๊ณ ๋ฐฐ๋ ์์)
|
|
15
15
|
# E1n CONTROL โ ์ค๋ฒ๋ผ์ด๋๋ฅผ ์ง์ฐ๋ฉด ๊ฐ์ ์คํ์์ ๋ฐฐ๋๊ฐ **๋ฌ๋ค**(๊ณ๊ธฐ๊ฐ ์ด์ ์๋ค๋ ์ฆ๊ฑฐ)
|
|
16
16
|
# E2 CONTROL โ ๋ฉ์ธ ํธ๋ฆฌ๋ ์ข
์ ๊ทธ๋๋ก ๋์ํ๋ค (ํ๊ท ์์)
|
|
17
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
17
18
|
set -u
|
|
18
19
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
19
20
|
pass=0; fail=0
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
# D* detach (known-positive: install changes the tree ยท known-negative: detach restores it exactly)
|
|
9
9
|
# G* the wizard's 4-axis gate block needs FH_WIZARD_GATE_CONSENT=Y
|
|
10
10
|
# P1 --plugin calls the Claude Code uninstall (a fake `claude` records the argv)
|
|
11
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
11
12
|
set -u
|
|
12
13
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
13
14
|
ROOT="$(cd "$HERE/.." && pwd)"
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
# ARM C (control) git status OK, one file โ MUST reach fh-gate (proves A/B are not
|
|
15
15
|
# just "everything exits early")
|
|
16
16
|
# Without ARM C, A and B both pass on a script that never gets to the gate at all.
|
|
17
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
17
18
|
set -uo pipefail
|
|
18
19
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
19
20
|
TARGET="${FH_GOAL_UNDER_TEST:-$ROOT/scripts/fh-goal.sh}"
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
# case | shape | filescan | events | uncalmerge | uncal | dupkey | mergefloor | mergevalid | emptyinst |
|
|
10
10
|
# rtguard | rtscan | rtpkg | rtdyn | rtnear | rtdef | rtshadow | rtattr | rtenc | rtwalk |
|
|
11
11
|
# rtkw | rtbuiltins | rtarg | rtmeth | rtgen
|
|
12
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
12
13
|
set -u
|
|
13
14
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
14
15
|
REPO="$(dirname "$HERE")"
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
# What it does NOT prove: that a session FOLLOWS the SKILL prose (that is the floor-tier sim's job),
|
|
10
10
|
# or that any verdict label is TRUE (judgment, deliberately unmechanised).
|
|
11
11
|
# Exit: 0 all lanes pass ยท 1 any lane fails ยท 10 harness error (plugin/tool missing).
|
|
12
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
12
13
|
set -uo pipefail
|
|
13
14
|
FH="$(cd "$(dirname "$0")/.." && pwd)"
|
|
14
15
|
T="$FH/plugins/fh-qp/scripts/qp_tools.sh"
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
#
|
|
11
11
|
# Usage: bash scripts/test_files_manifest_shipping_lanes.sh
|
|
12
12
|
# Exit: 0 = no lane failed. 1 = a regression.
|
|
13
|
+
. "$(dirname "${BASH_SOURCE[0]}")/fixture_guard_lib.sh" # scrub inherited GIT_* env first (#1088)
|
|
13
14
|
set -uo pipefail
|
|
14
15
|
|
|
15
16
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|