@chrono-meta/fh-gate 3.36.1 → 3.37.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-plugin/marketplace.json +4 -4
- package/knowledge/shared/harness-core/builtin_capability_map.md +23 -2
- package/knowledge/shared/harness-core/claude_md_full_reference.md +7 -0
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +54 -0
- package/package.json +8 -1
- package/plugins/fh-commons/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-meta/CHANGELOG.md +18 -0
- package/plugins/fh-meta/skills/frontier-digest/SKILL.md +2 -0
- package/plugins/fh-meta/skills/harness-doctor/SKILL.md +1 -0
- package/plugins/fh-meta/skills/harvest-loop/SKILL.md +1 -0
- package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/card_status_tags.sh +47 -0
- package/scripts/correction_moments.py +116 -0
- package/scripts/destructive_pre_gate.sh +25 -2
- package/scripts/env_layer_fingerprint.sh +44 -3
- package/scripts/probe_live_eval.sh +9 -0
- package/scripts/probe_live_eval_lib.py +40 -0
- package/scripts/selfcheck.sh +3 -0
- package/scripts/selfcheck_shard_weights.txt +184 -0
- package/scripts/session_close_check.sh +11 -0
- package/scripts/test_card_status_tags_lanes.sh +58 -0
- package/scripts/test_correction_moments_lanes.sh +42 -0
- package/scripts/test_destructive_pre_gate_lanes.sh +36 -0
- package/scripts/test_env_layer_fingerprint_lanes.sh +6 -1
- package/scripts/test_fh_detach_lanes.sh +27 -4
- package/scripts/test_live_eval_transitions_lanes.sh +32 -0
- package/scripts/test_selfcheck_shard_lanes.sh +44 -0
- package/templates/fh_audit_check.zsh +140 -0
- package/templates/settings.PreToolUse.snippet.json +2 -1
|
@@ -354,6 +354,15 @@ REPORT_PATH="${REPORT_OUT:-$REPO_ROOT/tracks/_meta/live_eval_${RUN_DATE}.md}"
|
|
|
354
354
|
SCORE_EXTRA=()
|
|
355
355
|
[ -n "$TARGET" ] && SCORE_EXTRA+=(--target "$TARGET")
|
|
356
356
|
[ -n "$BEFORE" ] && SCORE_EXTRA+=(--before "$BEFORE")
|
|
357
|
+
# «Moved since previous» (2026-11-03, record only): the newest live_eval_<date>.md dated before this run. None found -> "" and
|
|
358
|
+
# the report says «not supplied», never «none». FH_LIVE_EVAL_PREV_DIR lets lanes point at a fixture folder.
|
|
359
|
+
PREV=""
|
|
360
|
+
for f in "${FH_LIVE_EVAL_PREV_DIR:-$REPO_ROOT/tracks/_meta}"/live_eval_[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9].md; do
|
|
361
|
+
[ -e "$f" ] || continue
|
|
362
|
+
b=$(basename "$f" .md); d=${b#live_eval_}
|
|
363
|
+
[[ "$d" < "$RUN_DATE" ]] && PREV="$f"
|
|
364
|
+
done
|
|
365
|
+
SCORE_EXTRA+=(--prev "$PREV")
|
|
357
366
|
python3 "$LIB" score ${SCORE_EXTRA[@]+"${SCORE_EXTRA[@]}"} \
|
|
358
367
|
--probes-live "$PROBES_LIVE" \
|
|
359
368
|
--select-json "$SELECT_JSON" \
|
|
@@ -675,6 +675,30 @@ def split_by_target(rows, target, before=None):
|
|
|
675
675
|
return res
|
|
676
676
|
|
|
677
677
|
|
|
678
|
+
def transitions(rows, before):
|
|
679
|
+
"""Every probe's verdict now vs the previous nightly report (2026-11-03, frontier digest: arXiv:2610.41130 — a flat pass rate
|
|
680
|
+
can hide many per-probe flips). Record only: no verdict, no exit code reads this.
|
|
681
|
+
status: 'moved' (some id changed) · 'none' (every current id is in before and none changed) · 'not-comparable' (nothing moved
|
|
682
|
+
among the comparable ids but some current ids are absent from before — «none» would overclaim) · 'not-supplied'."""
|
|
683
|
+
if before is None:
|
|
684
|
+
return {'status': 'not-supplied', 'moved': [], 'missing': []}
|
|
685
|
+
ids = [r['id'] for r in rows]
|
|
686
|
+
missing = [i for i in ids if i not in before]
|
|
687
|
+
moved = ['%s %s->%s' % (r['id'], before[r['id']], r['verdict']) for r in rows
|
|
688
|
+
if r['id'] in before and before[r['id']] != r['verdict']]
|
|
689
|
+
status = 'moved' if moved else ('not-comparable' if missing else 'none')
|
|
690
|
+
return {'status': status, 'moved': moved, 'missing': missing}
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
def render_transitions_line(tr, prev_name):
|
|
694
|
+
if tr['status'] == 'not-supplied':
|
|
695
|
+
return 'moved since previous: not supplied (%s)' % (prev_name or 'no prior report found')
|
|
696
|
+
body = ', '.join(tr['moved']) if tr['moved'] else ('not comparable (%d probes absent from previous)' % len(tr['missing'])
|
|
697
|
+
if tr['status'] == 'not-comparable' else 'none')
|
|
698
|
+
extra = (' (absent from previous: %s)' % ','.join(tr['missing'])) if tr['moved'] and tr['missing'] else ''
|
|
699
|
+
return 'moved since previous (%s): %s%s' % (prev_name, body, extra)
|
|
700
|
+
|
|
701
|
+
|
|
678
702
|
def _fmt_pr(g):
|
|
679
703
|
return ('%d/%d pass_rate=%s failed_to_run=%d uncalibrated=%d' % (
|
|
680
704
|
g['passed'], g['ran'], ('%.2f' % g['pass_rate']) if g['pass_rate'] is not None else 'n/a',
|
|
@@ -772,6 +796,11 @@ def render_report_md(select_result, score_result, run_date):
|
|
|
772
796
|
lines.append("")
|
|
773
797
|
if score_result is not None and score_result.get('target'):
|
|
774
798
|
lines.extend(render_target_md(score_result['target']))
|
|
799
|
+
if score_result is not None and score_result.get('transitions'):
|
|
800
|
+
tr = score_result['transitions']
|
|
801
|
+
lines.extend(['## Moved since previous', '',
|
|
802
|
+
'Record only (no verdict depends on this): per-probe verdict changes against the previous nightly report.',
|
|
803
|
+
'', '- ' + render_transitions_line(tr, tr.get('prev')), ''])
|
|
775
804
|
lines.append("## Excluded (from probes.md, 32-row snapshot)")
|
|
776
805
|
lines.append("")
|
|
777
806
|
lines.append("| Probe | Reason |")
|
|
@@ -874,6 +903,16 @@ def _cmd_score(args):
|
|
|
874
903
|
for l in render_target_lines(t):
|
|
875
904
|
print(l)
|
|
876
905
|
print("")
|
|
906
|
+
prev_arg = getattr(args, 'prev', None)
|
|
907
|
+
if prev_arg is not None:
|
|
908
|
+
prev = parse_prev_report(prev_arg) if prev_arg else None
|
|
909
|
+
tr = transitions(score_result['rows'], prev)
|
|
910
|
+
name = os.path.basename(prev_arg) if prev_arg else ''
|
|
911
|
+
if prev_arg and prev is None:
|
|
912
|
+
name += ' — unreadable or no run table'
|
|
913
|
+
score_result['transitions'] = dict(tr, prev=name)
|
|
914
|
+
print(render_transitions_line(tr, name))
|
|
915
|
+
print("")
|
|
877
916
|
pr = score_result['pass_rate']
|
|
878
917
|
pr_s = ("%.2f" % pr) if pr is not None else "n/a"
|
|
879
918
|
print("total=%d ran=%d failed_to_run=%d uncalibrated=%d passed=%d pass_rate=%s threshold=%.2f"
|
|
@@ -927,6 +966,7 @@ def main():
|
|
|
927
966
|
sc.add_argument('--reps', type=int, default=1)
|
|
928
967
|
sc.add_argument('--target')
|
|
929
968
|
sc.add_argument('--before')
|
|
969
|
+
sc.add_argument('--prev') # previous nightly report for the «moved since previous» record ('' = none found)
|
|
930
970
|
|
|
931
971
|
args = ap.parse_args()
|
|
932
972
|
if args.cmd == 'select':
|
package/scripts/selfcheck.sh
CHANGED
|
@@ -1175,6 +1175,9 @@ for _pair in \
|
|
|
1175
1175
|
"scripts/chamber_run.sh|scripts/test_chamber_run_lanes.sh" \
|
|
1176
1176
|
"scripts/chamber_candidate_collect.sh|scripts/test_chamber_sig_lanes.sh" \
|
|
1177
1177
|
"scripts/destructive_pre_gate.sh|scripts/test_destructive_pre_gate_lanes.sh" \
|
|
1178
|
+
"scripts/probe_live_eval_lib.py|scripts/test_live_eval_transitions_lanes.sh" \
|
|
1179
|
+
"scripts/correction_moments.py|scripts/test_correction_moments_lanes.sh" \
|
|
1180
|
+
"scripts/card_status_tags.sh|scripts/test_card_status_tags_lanes.sh" \
|
|
1178
1181
|
"templates/.git-hooks/pre-push|scripts/test_prepush_destructive_lanes.sh" \
|
|
1179
1182
|
"templates/.git-hooks/pre-push|scripts/test_prepush_destructive_liveness.sh" \
|
|
1180
1183
|
`# 실제 git push 발화 레인 (2026-10-24, 형제 하네스 회신). 합성 stdin 레인은 «판정» 만 잰다 — 이 레인은 git 이 그 동작에서 훅을 «부르는가 · 그 줄을 넘기는가» 를 잰다. --mirror 는 삭제 줄을 안 넘긴다(실측).` \
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# selfcheck_shard_weights.txt — measured seconds per lane suite, input to the --shard plan in selfcheck.sh.
|
|
2
|
+
# Format: <seconds> <suite basename>. '@inline' = the non-suite checks that run in shard 1 only (syntax checks, checkers,
|
|
3
|
+
# --self-test entry points); it pre-loads shard 1. Re-measured 2026-10-31 on the CI runner itself (GitHub ubuntu-latest,
|
|
4
|
+
# validate.yml 4-leg matrix): mean of main runs 41199297108 (4af173b7) and 41200169039 (19d5596f). Per-suite seconds were
|
|
5
|
+
# attributed from the gaps between consecutive SHARD-SKIP timestamps in each leg's log, aligned by name to a
|
|
6
|
+
# FH_SHARD_DRY=1 trace of the same plan; when several suites ran between two skips the gap was split evenly among them,
|
|
7
|
+
# so small rows are approximate. Before this the rows came from a 16-core local box and shard 1 ran 333-360 s against
|
|
8
|
+
# 224-282 s for shard 4. Re-measure after a suite changes cost a lot; a stale or missing row only unbalances the plan
|
|
9
|
+
# (a missing suite is placed by hash) — it never drops a suite.
|
|
10
|
+
# One suite is deliberately NOT listed (about 3 s): its own leak scan flags any scripts/ file that names it. It is placed by hash.
|
|
11
|
+
152 @inline
|
|
12
|
+
279 test_mutation_probe_lanes.sh
|
|
13
|
+
54 test_sidecar_wait_stdin.sh
|
|
14
|
+
28 test_abstract_consult_check_lanes.sh
|
|
15
|
+
28 test_outbound_query_lanes.sh
|
|
16
|
+
28 test_prior_art_prompt_lanes.sh
|
|
17
|
+
25 test_frontier_digest_retry.sh
|
|
18
|
+
25 test_pr_merge_verified_lanes.sh
|
|
19
|
+
25 test_sim_isolated_run_lanes.sh
|
|
20
|
+
24 test_round_instruments_lanes.sh
|
|
21
|
+
20 test_script_caller_ratchet_lanes.sh
|
|
22
|
+
19 test_utterance_intake_lanes.sh
|
|
23
|
+
18 test_outbound_pr_gate_lanes.sh
|
|
24
|
+
18 test_push_zone_lanes.sh
|
|
25
|
+
17 sync_to_be_lanes.sh
|
|
26
|
+
17 test_hook_templates_copilot_compat_lanes.sh
|
|
27
|
+
17 test_selfcheck_shard_lanes.sh
|
|
28
|
+
17 test_selfcheck_state_lanes.sh
|
|
29
|
+
17 test_subagent_tally_hook_lanes.sh
|
|
30
|
+
13 test_preprep_speech_coach_lanes.sh
|
|
31
|
+
12 test_cartridge_admit_lanes.sh
|
|
32
|
+
9 test_fh_audit_check_lanes.sh
|
|
33
|
+
9 test_finding_pipeline_lanes.sh
|
|
34
|
+
8 test_probe_live_eval_lanes.sh
|
|
35
|
+
7 test_generated_harness_check_lanes.sh
|
|
36
|
+
7 test_runner_surface_index_lanes.sh
|
|
37
|
+
6 test_fh_detach_lanes.sh
|
|
38
|
+
6 test_gate_bootstrap_ephemeral_lanes.sh
|
|
39
|
+
6 test_liveness_echo_token_lanes.sh
|
|
40
|
+
6 test_main_commit_guard_lanes.sh
|
|
41
|
+
6 test_ollama_panel_lanes.sh
|
|
42
|
+
6 test_outbound_query_hook_lanes.sh
|
|
43
|
+
6 test_peer_worktree_detect_lanes.sh
|
|
44
|
+
6 test_preprep_drift_anchor_lanes.sh
|
|
45
|
+
6 test_prepush_destructive_liveness.sh
|
|
46
|
+
6 test_prepush_real_fire_lanes.sh
|
|
47
|
+
6 test_wizard_snippet_merge_lanes.sh
|
|
48
|
+
5 test_env_layer_fingerprint_lanes.sh
|
|
49
|
+
5 test_multibyte_bracket_lint_lanes.sh
|
|
50
|
+
5 test_paper_integrity_lanes.sh
|
|
51
|
+
5 test_pipefail_class_lock_lanes.sh
|
|
52
|
+
5 test_verdict_watermark_lanes.sh
|
|
53
|
+
4 test_consent_registry.sh
|
|
54
|
+
4 test_count_check_all_plugins_lanes.sh
|
|
55
|
+
4 test_count_check_decl_lanes.sh
|
|
56
|
+
4 test_count_check_readme_format_lanes.sh
|
|
57
|
+
4 test_degrade_scan_shell_probes.sh
|
|
58
|
+
4 test_destructive_pre_gate_lanes.sh
|
|
59
|
+
4 test_fh_module_check_lanes.sh
|
|
60
|
+
4 test_heavy_classifier_lanes.sh
|
|
61
|
+
4 test_marker_first_use_lanes.sh
|
|
62
|
+
4 test_memory_link_check.sh
|
|
63
|
+
4 test_prepush_destructive_lanes.sh
|
|
64
|
+
4 test_psa_singlefile_lanes.sh
|
|
65
|
+
4 test_satellite_profile_schema_lanes.sh
|
|
66
|
+
4 test_skill_canon_preload_lanes.sh
|
|
67
|
+
4 test_utterance_checklist_hook_lanes.sh
|
|
68
|
+
3 sync_from_be_lanes.sh
|
|
69
|
+
3 test_dispatch_log_lanes.sh
|
|
70
|
+
3 test_hook_drift_lanes.sh
|
|
71
|
+
3 test_marker_floor_lanes.sh
|
|
72
|
+
3 test_regression_guard_ci_lanes.sh
|
|
73
|
+
3 test_regression_guard_sibling_lanes.sh
|
|
74
|
+
3 test_tag_version_lanes.sh
|
|
75
|
+
2 test_ablation_calibrate_lanes.sh
|
|
76
|
+
2 test_adapter_lanes.sh
|
|
77
|
+
2 test_backtick_guard_lanes.sh
|
|
78
|
+
2 test_branch_claim_lanes.sh
|
|
79
|
+
2 test_claim_propagation_lanes.sh
|
|
80
|
+
2 test_claude_md_size_lanes.sh
|
|
81
|
+
2 test_codex_doctor_root_lanes.sh
|
|
82
|
+
2 test_dispatch_receipt_lanes.sh
|
|
83
|
+
2 test_fh_gate_regressions.sh
|
|
84
|
+
2 test_field_canon_lanes.sh
|
|
85
|
+
2 test_files_manifest_shipping_lanes.sh
|
|
86
|
+
2 test_hook_leg_wiring_lanes.sh
|
|
87
|
+
2 test_locale_invariance_lanes.sh
|
|
88
|
+
2 test_mapped_tracks_lanes.sh
|
|
89
|
+
2 test_marker_axes_run_lanes.sh
|
|
90
|
+
2 test_marker_crossfamily_lanes.sh
|
|
91
|
+
2 test_marker_defense_lanes.sh
|
|
92
|
+
2 test_marker_soul_tenet_lanes.sh
|
|
93
|
+
2 test_node_check_lanes.sh
|
|
94
|
+
2 test_node_infra_delta_lanes.sh
|
|
95
|
+
2 test_package_coverage_lanes.sh
|
|
96
|
+
2 test_pipe_verdict_guard_lanes.sh
|
|
97
|
+
2 test_policy_lens_scorer_lanes.sh
|
|
98
|
+
2 test_post_squash_verify_lanes.sh
|
|
99
|
+
2 test_precommit_pointer_index_lanes.sh
|
|
100
|
+
2 test_prless_delta_scan_lanes.sh
|
|
101
|
+
2 test_probe_scope_lanes.sh
|
|
102
|
+
2 test_publish_verify_poll_lanes.sh
|
|
103
|
+
2 test_resident_cost_lanes.sh
|
|
104
|
+
2 test_revert_probe_lanes.sh
|
|
105
|
+
2 test_satellite_publish_gate_lanes.sh
|
|
106
|
+
2 test_session_checklist_lanes.sh
|
|
107
|
+
2 test_session_close_chain_lanes.sh
|
|
108
|
+
2 test_session_close_lanes.sh
|
|
109
|
+
2 test_session_config_fingerprint_lanes.sh
|
|
110
|
+
2 test_session_load_mirror_fp_lanes.sh
|
|
111
|
+
2 test_stale_clone_guard_lanes.sh
|
|
112
|
+
2 test_target_freeze_lanes.sh
|
|
113
|
+
2 test_track_resolve_lanes.sh
|
|
114
|
+
2 test_usage_ledger_lanes.sh
|
|
115
|
+
2 test_worktree_reclaim_lanes.sh
|
|
116
|
+
1 test_absorption_queue_lanes.sh
|
|
117
|
+
1 test_action_yml_lanes.sh
|
|
118
|
+
1 test_axis23_skip_reason_lanes.sh
|
|
119
|
+
1 test_axis4_lane_substitute_lanes.sh
|
|
120
|
+
1 test_capability_entrypoint_shipping.sh
|
|
121
|
+
1 test_card_drift_probe.sh
|
|
122
|
+
1 test_chamber_run_lanes.sh
|
|
123
|
+
1 test_chamber_sig_lanes.sh
|
|
124
|
+
1 test_channel_inventory_lanes.sh
|
|
125
|
+
1 test_checklist_unblocked_lanes.sh
|
|
126
|
+
1 test_digest_slow_leg_lanes.sh
|
|
127
|
+
1 test_doc_claim_triad_lanes.sh
|
|
128
|
+
1 test_env_delta_worktree_lanes.sh
|
|
129
|
+
1 test_env_purity_lanes.sh
|
|
130
|
+
1 test_evidence_root_psa_lanes.sh
|
|
131
|
+
1 test_fh_goal_change_detection_lanes.sh
|
|
132
|
+
1 test_fh_map_paths_lanes.sh
|
|
133
|
+
1 test_fh_qp_lanes.sh
|
|
134
|
+
1 test_fh_run_resolver_lanes.sh
|
|
135
|
+
1 test_fixture_guard_lanes.sh
|
|
136
|
+
1 test_frontier_digest_recall.sh
|
|
137
|
+
1 test_frontier_digest_recall_negctl.sh
|
|
138
|
+
1 test_gate_shape_scan_lanes.sh
|
|
139
|
+
1 test_gate_two_verdicts_lanes.sh
|
|
140
|
+
1 test_halffix_lanes.sh
|
|
141
|
+
1 test_hook_source_gate_lanes.sh
|
|
142
|
+
1 test_knowledge_seam_lanes.sh
|
|
143
|
+
1 test_ko_tech_writer_lanes.sh
|
|
144
|
+
1 test_lane_runner_lanes.sh
|
|
145
|
+
1 test_leak_scan_control_lanes.sh
|
|
146
|
+
1 test_listing_watch_lanes.sh
|
|
147
|
+
1 test_map_flash_render_lanes.sh
|
|
148
|
+
1 test_map_postprocess_lanes.sh
|
|
149
|
+
1 test_marker_address_lanes.sh
|
|
150
|
+
1 test_marker_affected_lanes.sh
|
|
151
|
+
1 test_marker_diff_sha_lanes.sh
|
|
152
|
+
1 test_marker_oracle_lanes.sh
|
|
153
|
+
1 test_marker_soul_check_lanes.sh
|
|
154
|
+
1 test_marker_standpoint_lanes.sh
|
|
155
|
+
1 test_marker_thirdparty_lanes.sh
|
|
156
|
+
1 test_memory_gc_report_lanes.sh
|
|
157
|
+
1 test_pipefail_sigpipe_lanes.sh
|
|
158
|
+
1 test_png_luma_lanes.sh
|
|
159
|
+
1 test_precommit_gitlink_lanes.sh
|
|
160
|
+
1 test_precommit_staged_drift_lanes.sh
|
|
161
|
+
1 test_preprep_adjacent_dup_lanes.sh
|
|
162
|
+
1 test_preprep_diagram_lanes.sh
|
|
163
|
+
1 test_preprep_drift_anchor.sh
|
|
164
|
+
1 test_preprep_font_lanes.sh
|
|
165
|
+
1 test_preprep_progression_lanes.sh
|
|
166
|
+
1 test_preprep_promise_lanes.sh
|
|
167
|
+
1 test_preprep_retired_lanes.sh
|
|
168
|
+
1 test_preprep_slide_refs_lanes.sh
|
|
169
|
+
1 test_prepush_stdin_integrity.sh
|
|
170
|
+
1 test_proposal_hook_lanes.sh
|
|
171
|
+
1 test_remote_marker_gate_lanes.sh
|
|
172
|
+
1 test_residency_admission_lanes.sh
|
|
173
|
+
1 test_residency_closure_lanes.sh
|
|
174
|
+
1 test_reviewer_capability_conformance.sh
|
|
175
|
+
1 test_sessionstart_multihook_lanes.sh
|
|
176
|
+
1 test_sidecar_calibrate_lanes.sh
|
|
177
|
+
1 test_sim_path_isolation_lanes.sh
|
|
178
|
+
1 test_stale_ref_close_lanes.sh
|
|
179
|
+
1 test_stale_ref_scan_lanes.sh
|
|
180
|
+
1 test_stray_path_lanes.sh
|
|
181
|
+
1 test_temper_check_lanes.sh
|
|
182
|
+
1 test_tikitaka_score_lanes.sh
|
|
183
|
+
1 test_utterance_skill_probe_lanes.sh
|
|
184
|
+
1 test_version_lockstep_lanes.sh
|
|
@@ -775,6 +775,17 @@ CARD_LINE_EOF
|
|
|
775
775
|
[ "$DRIFT_HITS" -eq 0 ] && echo "✅ ⑤-b no card absence-claim contradicted by on-disk artifacts"
|
|
776
776
|
fi
|
|
777
777
|
|
|
778
|
+
# ⑤-S STATUS-TAG probe (ADVISORY — never sets FAIL). Each «🌅 다음에 볼 것» item in the newest card
|
|
779
|
+
# block should open with one tag from a closed set, so the next session reads state instead of
|
|
780
|
+
# re-deriving it. Presence/type only; whether the tag is true stays judgment. Anchor: card_status_tags.sh.
|
|
781
|
+
if [ -f "$FH/scripts/card_status_tags.sh" ]; then
|
|
782
|
+
bash "$FH/scripts/card_status_tags.sh" "$CARD"
|
|
783
|
+
_ST_RC=$?
|
|
784
|
+
[ "$_ST_RC" = 0 ] || [ "$_ST_RC" = 3 ] || echo "⚠️ ⑤-S status tags NOT MEASURED — checker exited $_ST_RC (instrument error)"
|
|
785
|
+
else
|
|
786
|
+
echo "⚠️ ⑤-S status tags NOT MEASURED — scripts/card_status_tags.sh missing"
|
|
787
|
+
fi
|
|
788
|
+
|
|
778
789
|
# ⑤-C CARRY-OVER probe — 카드 재작성이 «아직 안 온 기한» 을 날렸는가.
|
|
779
790
|
# WHY (2026-08-24, 실측 손실 1건): ⑤ 재작성이 delta update 가 아니라 새로 쓰기가 되어 미완·
|
|
780
791
|
# 시각박힌 항목이 통째로 사라졌다 — 그날 저녁 19:00 게시, 다음날 GeekNews, 14일 referrer 측정,
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Lanes for scripts/card_status_tags.sh (⑤-S). Known pair + the two NOT-MEASURED shapes + the
|
|
3
|
+
# empty set (which must not read as a pass). Each lane prints the line it judged.
|
|
4
|
+
set -u
|
|
5
|
+
FH="$(cd "$(dirname "$0")/.." && pwd)"
|
|
6
|
+
S="$FH/scripts/card_status_tags.sh"
|
|
7
|
+
T=$(mktemp -d "${TMPDIR:-/tmp}/cst.XXXXXX")
|
|
8
|
+
pass=0; fail=0
|
|
9
|
+
lane() { # name, card body, expected exit, expected pattern
|
|
10
|
+
printf '%s' "$2" > "$T/card.md"
|
|
11
|
+
out=$(bash "$S" "$T/card.md" 2>&1); rc=$?
|
|
12
|
+
if [ "$rc" = "$3" ] && printf '%s' "$out" | grep -q -E "$4"; then
|
|
13
|
+
echo "PASS $1 — $(printf '%s' "$out" | head -1)"; pass=$((pass + 1))
|
|
14
|
+
else
|
|
15
|
+
echo "FAIL $1 — rc=$rc out=$(printf '%s' "$out" | head -2 | tr '\n' ' ')"; fail=$((fail + 1))
|
|
16
|
+
fi
|
|
17
|
+
}
|
|
18
|
+
HEAD='# 🗓️ 2026-11-03 마감
|
|
19
|
+
|
|
20
|
+
> 완료 = x
|
|
21
|
+
|
|
22
|
+
## 🌅 다음에 볼 것
|
|
23
|
+
'
|
|
24
|
+
TAIL='
|
|
25
|
+
## ↩️ 닫힌 것
|
|
26
|
+
- 1. not an item of this section
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
# 🗓️ older block
|
|
31
|
+
## 🌅 다음에 볼 것
|
|
32
|
+
1. untagged item in an OLDER block (must not count)
|
|
33
|
+
'
|
|
34
|
+
lane S1-all-tagged "$HEAD"'1. [merged] #1008 머지
|
|
35
|
+
2. [open-pr] FoD #203
|
|
36
|
+
3. [operator] 임시 폴더 정리
|
|
37
|
+
'"$TAIL" 0 '^✅ ⑤-S status tags: 3/3'
|
|
38
|
+
lane S2-untagged "$HEAD"'1. [merged] #1008 머지
|
|
39
|
+
2. FoD #203 열림
|
|
40
|
+
3. **임시 폴더** 정리
|
|
41
|
+
'"$TAIL" 0 '^⚠️ ⑤-S status tags: 2/3'
|
|
42
|
+
lane S3-unknown-tag "$HEAD"'1. [done] 끝
|
|
43
|
+
2. [planned] 다음
|
|
44
|
+
'"$TAIL" 0 '1/2 .*lack a tag'
|
|
45
|
+
lane S4-tag-not-first "$HEAD"'1. FoD #203 [open-pr]
|
|
46
|
+
'"$TAIL" 0 '1/1 .*lack a tag'
|
|
47
|
+
lane S5-empty-set "$HEAD"'(없음)
|
|
48
|
+
'"$TAIL" 0 '^⬜ ⑤-S status tags: 0 items'
|
|
49
|
+
lane S6-no-section '# 🗓️ block
|
|
50
|
+
## 🧵 이어가려면
|
|
51
|
+
1. [merged] x
|
|
52
|
+
' 3 'NOT MEASURED — newest card block has no'
|
|
53
|
+
# S7: card path that does not exist (the lane() helper always writes a file, so run it directly)
|
|
54
|
+
out=$(bash "$S" "$T/missing.md" 2>&1); rc=$?
|
|
55
|
+
if [ "$rc" = 3 ] && printf '%s' "$out" | grep -q 'card not found'; then echo "PASS S7-missing-card — $out"; pass=$((pass + 1)); else echo "FAIL S7-missing-card — rc=$rc $out"; fail=$((fail + 1)); fi
|
|
56
|
+
rm -rf "$T"
|
|
57
|
+
echo "card_status_tags lanes: $pass pass · $fail fail"
|
|
58
|
+
[ "$fail" -eq 0 ]
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Lanes for scripts/correction_moments.py — fixture ledgers only (never the real ones, which can hold
|
|
3
|
+
# in-house context). Known pair: the same correction phrased differently on two days must pair;
|
|
4
|
+
# an approval must not be a hit. Plus the exclusions, each of which must be COUNTED, not dropped.
|
|
5
|
+
set -u
|
|
6
|
+
FH="$(cd "$(dirname "$0")/.." && pwd)"
|
|
7
|
+
S="$FH/scripts/correction_moments.py"
|
|
8
|
+
T=$(mktemp -d "${TMPDIR:-/tmp}/cmt.XXXXXX")
|
|
9
|
+
pass=0; fail=0
|
|
10
|
+
check() { # name, expected rc, pattern, [dir]
|
|
11
|
+
out=$(python3 "$S" "${4:-$T/led}" 2>&1); rc=$?
|
|
12
|
+
if [ "$rc" = "$2" ] && printf '%s' "$out" | grep -q -E "$3"; then echo "PASS $1"; pass=$((pass + 1))
|
|
13
|
+
else echo "FAIL $1 — rc=$rc"; printf '%s\n' "$out" | head -4 | sed 's/^/ /'; fail=$((fail + 1)); fi
|
|
14
|
+
}
|
|
15
|
+
mkdir -p "$T/led" "$T/empty"
|
|
16
|
+
cat > "$T/led/aaaa1111.jsonl" <<'EOF'
|
|
17
|
+
{"ts": "2026-10-01T10:00:00", "n": 1, "text": "ㅇㅇ 머지하자 초록이면"}
|
|
18
|
+
{"ts": "2026-10-01T10:05:00", "n": 2, "text": "아니 보고서는 영어 말고 한글 반말로 써줘"}
|
|
19
|
+
{"ts": "2026-10-01T10:06:00", "n": 3, "text": "<agent-message from=\"x\"> 아니 이건 서브에이전트 보고다 보고서 한글 반말</agent-message>"}
|
|
20
|
+
{"ts": "2026-10-01T10:07:00", "n": 4, "text": "응"}
|
|
21
|
+
not json at all
|
|
22
|
+
EOF
|
|
23
|
+
cat > "$T/led/bbbb2222.jsonl" <<'EOF'
|
|
24
|
+
{"ts": "2026-10-04T09:00:00", "n": 1, "text": "또 보고서를 영어로 썼네. 한글 반말로 다시 해줘"}
|
|
25
|
+
{"ts": "2026-10-04T09:10:00", "n": 2, "text": "아니 머지 순서가 틀렸어 태그 먼저"}
|
|
26
|
+
EOF
|
|
27
|
+
listing=$(python3 "$S" "$T/led" --all) # own variable: check() overwrites $out. --all: L3/L4 must see unpaired hits, or they pass on an empty listing
|
|
28
|
+
check L1-cross-day-pair 0 '^## R1 — shared: .*반말'
|
|
29
|
+
check L2-counts-exclusions 0 'envelope=1 short\(<6 chars\)=1 long\(>600 chars\)=0 malformed=1'
|
|
30
|
+
if printf '%s' "$listing" | grep -q '머지하자 초록이면'; then echo "FAIL L3-approval-not-a-hit"; fail=$((fail + 1)); else echo "PASS L3-approval-not-a-hit"; pass=$((pass + 1)); fi
|
|
31
|
+
if printf '%s' "$listing" | grep -q '서브에이전트 보고다'; then echo "FAIL L4-envelope-not-a-hit"; fail=$((fail + 1)); else echo "PASS L4-envelope-not-a-hit"; pass=$((pass + 1)); fi
|
|
32
|
+
if printf '%s' "$listing" | grep -q '머지 순서가 틀렸어'; then echo "PASS L3c-listing-alive"; pass=$((pass + 1)); else echo "FAIL L3c-listing-alive (L3/L4 would pass on an empty listing)"; fail=$((fail + 1)); fi
|
|
33
|
+
check L5-cue-hits 0 'cue hits=3 '
|
|
34
|
+
# L6: the same text re-pasted on another day is dropped as a re-paste, not reported as recurrence
|
|
35
|
+
mkdir -p "$T/rep"
|
|
36
|
+
printf '%s\n' '{"ts": "2026-10-01T10:00:00", "n": 1, "text": "아니 이 표의 분모가 틀렸어 재현율 다시 계산"}' > "$T/rep/c1.jsonl"
|
|
37
|
+
printf '%s\n' '{"ts": "2026-10-03T10:00:00", "n": 1, "text": "아니 이 표의 분모가 틀렸어 재현율 다시 계산"}' > "$T/rep/c2.jsonl"
|
|
38
|
+
check L6-repaste-dropped 0 'recurring pairs .*=0 · re-pasted pairs dropped=1' "$T/rep"
|
|
39
|
+
check L7-empty-not-zero 2 'NOT MEASURED' "$T/empty"
|
|
40
|
+
rm -rf "$T"
|
|
41
|
+
echo "correction_moments lanes: $pass pass · $fail fail"
|
|
42
|
+
[ "$fail" -eq 0 ]
|
|
@@ -208,6 +208,42 @@ else
|
|
|
208
208
|
printf ' ❌ %-52s rc=%s out=%s err=%s\n' "C2 block: exit 2, stderr carries the reason" "$c_rc" "$c_out" "$c_err"; fail=$((fail+1))
|
|
209
209
|
fi
|
|
210
210
|
|
|
211
|
+
# B — permission_mode default (2026-11-03): unset + bypassPermissions blocks; explicit 0 restores
|
|
212
|
+
# advisory; every other mode keeps advisory. The decision reads the payload field, so each lane
|
|
213
|
+
# sends a full payload with permission_mode set.
|
|
214
|
+
payload_mode() { python3 -c 'import json,sys; print(json.dumps({"tool_name":"Bash","permission_mode":sys.argv[2],"tool_input":{"command":sys.argv[1]}}))' "$1" "$2"; }
|
|
215
|
+
b_lane() { # name, expected rc, command, mode, env-assignment-or-empty, stderr needle (block) or "-"
|
|
216
|
+
local name=$1 want=$2 cmd=$3 mode=$4 envv=$5 needle=$6 o e r
|
|
217
|
+
if [ -n "$envv" ]; then
|
|
218
|
+
o=$(payload_mode "$cmd" "$mode" | env "$envv" bash "$G" 2>"$c_errf"); r=$?
|
|
219
|
+
else
|
|
220
|
+
o=$(payload_mode "$cmd" "$mode" | env -u FH_DESTRUCTIVE_BLOCK bash "$G" 2>"$c_errf"); r=$?
|
|
221
|
+
fi
|
|
222
|
+
e=$(cat "$c_errf")
|
|
223
|
+
if [ "$r" -eq "$want" ] && { [ "$needle" = "-" ] || printf '%s' "$e" | grep -q "$needle"; }; then
|
|
224
|
+
printf ' ✅ %-52s %s\n' "$name" OK; pass=$((pass+1))
|
|
225
|
+
else
|
|
226
|
+
printf ' ❌ %-52s rc=%s out=%s err=%s\n' "$name" "$r" "$o" "$e"; fail=$((fail+1))
|
|
227
|
+
fi
|
|
228
|
+
}
|
|
229
|
+
b_lane "B1 bypass + unset: blocks (exit 2)" 2 "$HIT_CMD" bypassPermissions "" "permission_mode=bypassPermissions"
|
|
230
|
+
b_lane "B2 bypass + BLOCK=0: advisory (exit 0)" 0 "$HIT_CMD" bypassPermissions "FH_DESTRUCTIVE_BLOCK=0" "-"
|
|
231
|
+
b_lane "B3 default + unset: advisory (exit 0)" 0 "$HIT_CMD" default "" "-"
|
|
232
|
+
b_lane "B4 auto + unset: advisory (exit 0)" 0 "$HIT_CMD" auto "" "-"
|
|
233
|
+
b_lane "B5 bypass + clean cmd: silent (exit 0)" 0 "git status" bypassPermissions "" "-"
|
|
234
|
+
b_lane "B6 bypass + noqa: exempt (exit 0)" 0 "$HIT_CMD # noqa: destructive-op" bypassPermissions "" "-"
|
|
235
|
+
b_lane "B7 default + BLOCK=1: still blocks" 2 "$HIT_CMD" default "FH_DESTRUCTIVE_BLOCK=1" "FH_DESTRUCTIVE_BLOCK=1"
|
|
236
|
+
b_lane "B8 bypass + BLOCK=2: advisory as before" 0 "$HIT_CMD" bypassPermissions "FH_DESTRUCTIVE_BLOCK=2" "-"
|
|
237
|
+
b_lane "B9 bypass + BLOCK= (empty): blocks" 2 "$HIT_CMD" bypassPermissions "FH_DESTRUCTIVE_BLOCK=" "permission_mode=bypassPermissions"
|
|
238
|
+
b_lane "B10 BLOCK=1 message no longer says unset" 2 "$HIT_CMD" bypassPermissions "FH_DESTRUCTIVE_BLOCK=1" "set FH_DESTRUCTIVE_BLOCK=0"
|
|
239
|
+
# B2 must also deliver the advisory, not just exit 0 silently.
|
|
240
|
+
o=$(payload_mode "$HIT_CMD" bypassPermissions | FH_DESTRUCTIVE_BLOCK=0 bash "$G" 2>/dev/null)
|
|
241
|
+
if printf '%s' "$o" | grep -q 'DESTRUCTIVE-OP'; then
|
|
242
|
+
printf ' ✅ %-52s %s\n' "B2b bypass + BLOCK=0 still emits the advisory" OK; pass=$((pass+1))
|
|
243
|
+
else
|
|
244
|
+
printf ' ❌ %-52s out=%s\n' "B2b bypass + BLOCK=0 still emits the advisory" "$o"; fail=$((fail+1))
|
|
245
|
+
fi
|
|
246
|
+
|
|
211
247
|
# C3 — clean command: NO emission at all (silence must stay silent).
|
|
212
248
|
c_out=$(payload 'git status' | bash "$G" 2>"$c_errf"); c_rc=$?
|
|
213
249
|
rm -f "$c_errf"
|
|
@@ -19,6 +19,11 @@ echo "── env-layer-fingerprint lanes ──"
|
|
|
19
19
|
|
|
20
20
|
[ -x "$S" ] || { echo "FAIL $S 가 없거나 실행 불가"; exit 1; }
|
|
21
21
|
|
|
22
|
+
# evidence.marker 는 훅과 같은 `<브랜치>_<오늘>` 주소 하나만 읽는다. 그러니 픽스처도 그
|
|
23
|
+
# 주소로 만들어야 하고, 25분짜리 selfcheck 안에서 자정을 넘겨도 흔들리지 않게 「오늘」을 여기서
|
|
24
|
+
# 고정한다(계기가 그 목적으로 내놓은 이음새). 고정을 지우면 L3 은 적색이 된다 — 초록이 아니다.
|
|
25
|
+
export FH_FP_TODAY=2026-01-02
|
|
26
|
+
|
|
22
27
|
TMP="$(mktemp -d)" || exit 2
|
|
23
28
|
trap 'rm -rf "$TMP"' EXIT
|
|
24
29
|
|
|
@@ -34,7 +39,7 @@ mk_hub() { # mk_hub DIR [full] — READ 층만(=새 클론) 또는 로컬 층
|
|
|
34
39
|
: > "$d/.claude/registry/LOCAL_SKILL_REGISTRY.md"
|
|
35
40
|
: > "$d/CLAUDE.local.md"
|
|
36
41
|
: > "$d/tracks/_meta/edit_manifest.yaml"
|
|
37
|
-
: > "$d/tracks/_meta/.
|
|
42
|
+
: > "$d/tracks/_meta/.axes_23_passed_fixture_${FH_FP_TODAY}.marker"
|
|
38
43
|
: > "$d/tracks/_meta/reference_next_session_starter.md"
|
|
39
44
|
: > "$d/tracks/_meta/session_fixture.md"
|
|
40
45
|
fi
|
|
@@ -15,7 +15,12 @@ DETACH="$HERE/fh_detach.py"
|
|
|
15
15
|
DETAIL="$ROOT/plugins/fh-meta/skills/install-wizard/SKILL_detail.md"
|
|
16
16
|
T="$(mktemp -d)"
|
|
17
17
|
trap 'rm -rf "$T"' EXIT
|
|
18
|
-
pass=0; fail=0
|
|
18
|
+
pass=0; fail=0; unmeas=0
|
|
19
|
+
# 🟥 미측정은 통과도 실패도 아니다. 전제를 못 만든 레인을 ❌ 로 찍으면 주체를 의심하게
|
|
20
|
+
# 만들고(실측: M5d, 아래), ✅ 로 찍으면 공허한 초록이 된다. 세 번째 칸을 둔다.
|
|
21
|
+
unmeasured() { # unmeasured <name> <why>
|
|
22
|
+
unmeas=$((unmeas+1)); printf ' ⬜ %-58s %s\n' "$1" "$2 — 미측정, 통과 아님"
|
|
23
|
+
}
|
|
19
24
|
chk() { # chk <name> <got> <want>
|
|
20
25
|
if [ "$2" = "$3" ]; then pass=$((pass+1)); printf ' ✅ %-58s %s\n' "$1" "$2"
|
|
21
26
|
else fail=$((fail+1)); printf ' ❌ %-58s got=%s want=%s\n' "$1" "$2" "$3"; fi
|
|
@@ -274,7 +279,21 @@ chk "M5c … with --machine the same file is an error (rc 10)" "$(detach_p "$W"
|
|
|
274
279
|
W="$T/w17"; mkworld "$W"; install "$W"
|
|
275
280
|
mkdir -p "$W/proj/.claude" && git -C "$W/proj" init -q && cp "$W/hub/.claude/settings.json" "$W/proj/.claude/settings.json"
|
|
276
281
|
chmod 000 "$W/hub/.claude/settings.json"
|
|
277
|
-
|
|
282
|
+
# 🟥 `chmod 000` 은 root 를 묶지 않는다 — **이 파일 자신이 그것을 이미 적는다**(아래 M6 줄의
|
|
283
|
+
# «chmod 000 does not bind root — codex»). 그 지적이 이웃 레인에만 반영되고 이 레인에는
|
|
284
|
+
# 안 반영된 절반 수리였다. 전제가 안 걸리면 파일이 그냥 읽히고, 주체는 올바르게 rc 0 을
|
|
285
|
+
# 내는데 레인은 `got=0/0 want=0/10` 을 찍는다 — 읽는 사람을 `fh_detach.py` 로 보낸다.
|
|
286
|
+
# 실측 2026-11-02, 같은 트리·같은 스위트·uid 만 바꿈: root → 61 passed · 1 failed(M5d ❌)
|
|
287
|
+
# / `setpriv --reuid=65534` → **62 passed · 0 failed**(M5d ✅ `0/10`). 즉 주체는 성하다.
|
|
288
|
+
# 그러니 이 자리는 수리할 결함이 아니라 **못 쟀다고 말해야 하는 칸**이다. CI 는 비-root 라
|
|
289
|
+
# 거기서는 그대로 측정된다. ⚠️ 전제를 «얻는» 길(이 두 호출만 권한 내려 돌리기)은 택하지
|
|
290
|
+
# 않았다 — `$T` 는 mktemp 의 0700 이라 통과 자체가 안 되고, 통과시키면 주체 프로세스의 uid
|
|
291
|
+
# 가 바뀌어 레인이 재는 것이 달라진다. 이름으로 남기고 고치지 않는다.
|
|
292
|
+
if cat "$W/hub/.claude/settings.json" >/dev/null 2>&1; then
|
|
293
|
+
unmeasured "M5d an unreadable FH-clone settings file" "chmod 000 이 이 uid($(id -u)) 를 묶지 않았다"
|
|
294
|
+
else
|
|
295
|
+
chk "M5d an unreadable FH-clone settings file: project detach rc 0 · --machine rc 10" "$(detach_p "$W" "$W/proj" --apply)/$(detach_p "$W" "$W/proj" --machine)" "0/10"
|
|
296
|
+
fi
|
|
278
297
|
chmod 644 "$W/hub/.claude/settings.json"
|
|
279
298
|
W="$T/w18"; mkworld "$W"; install "$W"
|
|
280
299
|
mkdir -p "$W/proj/.claude" && git -C "$W/proj" init -q && cp "$W/hub/CLAUDE.local.md" "$W/proj/CLAUDE.local.md"
|
|
@@ -298,5 +317,9 @@ chk "W3 install-wizard SKILL.md names --machine" "$(grep -c 'fh_detach.py" --pr
|
|
|
298
317
|
chk "W2 install-wizard SKILL.md points at the detach command" "$(grep -q 'scripts/fh_detach.py" --project . --apply' "$ROOT/plugins/fh-meta/skills/install-wizard/SKILL.md" && echo yes)" yes
|
|
299
318
|
|
|
300
319
|
echo
|
|
301
|
-
echo "fh_detach lanes: $pass passed · $fail failed"
|
|
302
|
-
[ "$fail" -eq 0 ]
|
|
320
|
+
echo "fh_detach lanes: $pass passed · $fail failed · $unmeas unmeasured"
|
|
321
|
+
if [ "$unmeas" -gt 0 ] && [ "$fail" -eq 0 ]; then
|
|
322
|
+
# 통과로 접지 않는다. 같은 판정을 test_mutation_probe_lanes.sh 가 쓰는 문구로 낸다.
|
|
323
|
+
echo "INCOMPLETE fh_detach: $unmeas 레인이 전제를 못 만들어 안 돌았다 — 통과 아님"
|
|
324
|
+
fi
|
|
325
|
+
[ "$fail" -eq 0 ] && [ "$unmeas" -eq 0 ]
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Lanes for probe_live_eval_lib.transitions / render_transitions_line («moved since previous», record only).
|
|
3
|
+
# Known pair: a probe that flipped must be listed; identical runs say «none». The two shapes that must NOT read as «none»:
|
|
4
|
+
# a previous report that lacks some current probes (not comparable) and no previous report at all (not supplied).
|
|
5
|
+
set -u
|
|
6
|
+
FH="$(cd "$(dirname "$0")/.." && pwd)"
|
|
7
|
+
out=$(python3 - "$FH/scripts" <<'PY'
|
|
8
|
+
import sys
|
|
9
|
+
sys.path.insert(0, sys.argv[1])
|
|
10
|
+
import probe_live_eval_lib as L
|
|
11
|
+
rows = [{'id': 'G-A', 'verdict': 'PASS'}, {'id': 'G-B', 'verdict': 'FAIL'}, {'id': 'G-C', 'verdict': 'PASS'}]
|
|
12
|
+
def show(name, tr, prev='live_eval_2026-11-02.md'):
|
|
13
|
+
print(name, tr['status'], '|', L.render_transitions_line(tr, prev))
|
|
14
|
+
show('T1', L.transitions(rows, {'G-A': 'PASS', 'G-B': 'PASS', 'G-C': 'PASS'}))
|
|
15
|
+
show('T2', L.transitions(rows, {'G-A': 'PASS', 'G-B': 'FAIL', 'G-C': 'PASS'}))
|
|
16
|
+
show('T3', L.transitions(rows, {'G-A': 'PASS', 'G-B': 'FAIL'}))
|
|
17
|
+
show('T4', L.transitions(rows, None), '')
|
|
18
|
+
show('T5', L.transitions(rows, {'G-A': 'FAIL', 'G-B': 'FAIL'}))
|
|
19
|
+
PY
|
|
20
|
+
)
|
|
21
|
+
rc=$?
|
|
22
|
+
pass=0; fail=0
|
|
23
|
+
lane() { if printf '%s\n' "$out" | grep -q -E "$2"; then echo "PASS $1"; pass=$((pass+1)); else echo "FAIL $1"; fail=$((fail+1)); fi; }
|
|
24
|
+
[ "$rc" = 0 ] || { echo "FAIL harness — python rc=$rc"; printf '%s\n' "$out"; exit 1; }
|
|
25
|
+
lane T1-flip-listed '^T1 moved \| moved since previous \(live_eval_2026-11-02.md\): G-B PASS->FAIL$'
|
|
26
|
+
lane T2-identical-none '^T2 none \| moved since previous \(live_eval_2026-11-02.md\): none$'
|
|
27
|
+
lane T3-narrower-not-none '^T3 not-comparable \| .*not comparable \(1 probes absent from previous\)$'
|
|
28
|
+
lane T4-no-prev '^T4 not-supplied \| moved since previous: not supplied \(no prior report found\)$'
|
|
29
|
+
lane T5-flip-plus-absent '^T5 moved \| .*G-A FAIL->PASS \(absent from previous: G-C\)$'
|
|
30
|
+
printf '%s\n' "$out" | sed 's/^/ /'
|
|
31
|
+
echo "live-eval transitions lanes: $pass pass · $fail fail"
|
|
32
|
+
[ "$fail" -eq 0 ]
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
# answers "run it".
|
|
15
15
|
# S7 every shard owns at least one suite for N in 2..4 (an empty shard is a wasted runner and a
|
|
16
16
|
# sign the plan collapsed).
|
|
17
|
+
# S8 shard 1 ACTUALLY runs the inline checks (the ~39 non-suite decisions it alone owns).
|
|
18
|
+
# S1..S7 are dry runs and `_shard_inline` answers "skip" in dry mode, so none of them can
|
|
19
|
+
# see this axis; breaking it leaves every leg green with those 39 checks run nowhere.
|
|
17
20
|
# The runs are DRY (`--shard-dry`): nothing is executed, the decision is appended to $FH_SHARD_TRACE.
|
|
18
21
|
# So this suite costs seconds, and it cannot recurse into itself (a dry run never runs a suite).
|
|
19
22
|
set -u
|
|
@@ -121,6 +124,47 @@ else
|
|
|
121
124
|
printf '%s' "$res" | grep -qx 'inlineskip=1'; chk $? "S6 without --shard no inline check is skipped"
|
|
122
125
|
fi
|
|
123
126
|
|
|
127
|
+
# ── S8 shard 1 ACTUALLY runs the inline checks ───────────────────────────────────────────────
|
|
128
|
+
# WHY THIS LANE EXISTS (measured 2026-11-02, weekly clean-room audit). S1..S7 all run with
|
|
129
|
+
# `--shard-dry`, and in dry mode `_shard_inline` returns 1 BY CONSTRUCTION — so every lane above
|
|
130
|
+
# holds the SUITE assignment and none of them can say anything about the inline checks that
|
|
131
|
+
# shard 1 alone owns: the syntax scans, the nine named checkers routed through the `bash` shim
|
|
132
|
+
# (count_check · prepush_guard_check · gate_anchor_check · multibyte_bracket_lint ·
|
|
133
|
+
# package_coverage_check · files_manifest_shipping_check · lane_runner_check · gate_pathspec_check
|
|
134
|
+
# · sync_guard_check) and every `--self-test` entry point — 39 decisions in the dry trace.
|
|
135
|
+
# The hole is silent in the direction this repo calls hollow green: 8 of the 11 `_shard_inline_skip`
|
|
136
|
+
# call sites are `then :`, so a skipped inline check never sets `fail=1`. Measured with the mutant
|
|
137
|
+
# below: with `_shard_inline` answering "skip" always, EVERY leg SHARD-SKIPs all 39, no leg runs
|
|
138
|
+
# them, selfcheck exits 0, and this suite reported 31 passed / 0 failed. Nothing was red anywhere.
|
|
139
|
+
# S6 does not cover it either: S6 asks the no-`--shard` case, which is `npm test`, not a CI leg.
|
|
140
|
+
if [ ! -f "$T/block.sh" ]; then
|
|
141
|
+
chk 1 "S8 the lifted shard block is available (S6 did not produce it — lane would test nothing)"
|
|
142
|
+
else
|
|
143
|
+
# one answer pair from the lifted block, run with the given arguments: "<_shard_inline rc> <_shard_inline_skip rc>"
|
|
144
|
+
inline_answer() { # $1 = block file, $2.. = arguments as selfcheck would receive them
|
|
145
|
+
local _bf="$1"; shift
|
|
146
|
+
( cd "$ROOT" && env -u FH_SELFCHECK_SHARD bash -c '
|
|
147
|
+
f="$1"; shift
|
|
148
|
+
. "$f"
|
|
149
|
+
_shard_inline; a=$?
|
|
150
|
+
_shard_inline_skip LBL >/dev/null 2>&1; b=$?
|
|
151
|
+
echo "$a $b"' _ "$_bf" "$@" 2>/dev/null | tail -1 )
|
|
152
|
+
}
|
|
153
|
+
a_leg1=$(inline_answer "$T/block.sh" --shard 1/4)
|
|
154
|
+
a_leg2=$(inline_answer "$T/block.sh" --shard 2/4)
|
|
155
|
+
a_dry1=$(inline_answer "$T/block.sh" --shard 1/4 --shard-dry)
|
|
156
|
+
[ "$a_leg1" = "0 1" ]; chk $? "S8 --shard 1/4 (not dry): the inline checks RUN here (got '$a_leg1', want '0 1')"
|
|
157
|
+
[ "$a_leg2" = "1 0" ]; chk $? "S8 known-negative: --shard 2/4 skips them, so S8 is not a lane that always passes (got '$a_leg2', want '1 0')"
|
|
158
|
+
[ "$a_dry1" = "1 0" ]; chk $? "S8 control: the DRY form every lane above uses answers 'skip' even for shard 1 (got '$a_dry1') — that is why S1..S7 cannot hold this axis"
|
|
159
|
+
|
|
160
|
+
# KNOWN-NEGATIVE on the detector itself: break inline dispatch with one line. If S8 cannot go
|
|
161
|
+
# red on this, it proves nothing about the subject (same construction as S5).
|
|
162
|
+
sed 's|^ \[ "\$_SHARD_I" = 1 \]$| false|' "$T/block.sh" > "$T/block_mut.sh"
|
|
163
|
+
cmp -s "$T/block.sh" "$T/block_mut.sh"; chk $((1 - $?)) "S8 control: the mutation APPLIED — if this is red the \$_SHARD_I line moved, so S8's known-negative below is VOID, not the subject's fault"
|
|
164
|
+
a_mut=$(inline_answer "$T/block_mut.sh" --shard 1/4)
|
|
165
|
+
[ "$a_mut" != "0 1" ]; chk $? "S8 known-negative: with inline dispatch broken, shard 1 no longer runs them (got '$a_mut') — the detector can fail"
|
|
166
|
+
fi
|
|
167
|
+
|
|
124
168
|
# ── notes (printed, never a verdict) ────────────────────────────────────────────────────────
|
|
125
169
|
if [ -f "$ROOT/scripts/selfcheck_shard_weights.txt" ]; then
|
|
126
170
|
awk 'NF >= 2 && $1 ~ /^[0-9.]+$/ && $2 != "@inline" { print $2 }' "$ROOT/scripts/selfcheck_shard_weights.txt" | LC_ALL=C sort -u > "$T/w.names"
|