@chrono-meta/fh-gate 2.12.1 → 2.14.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 (76) hide show
  1. package/.claude/rules/fh_4axis_gate.md +35 -1
  2. package/.claude-plugin/marketplace.json +2 -2
  3. package/AGENTS.md +17 -0
  4. package/CHEATSHEET.md +19 -1
  5. package/CLAUDE.md +34 -9
  6. package/README.ja.md +186 -649
  7. package/README.ko.md +207 -698
  8. package/README.md +186 -698
  9. package/README.zh.md +167 -601
  10. package/docs/ETHOS.md +73 -1
  11. package/docs/IDENTITIES.md +83 -0
  12. package/docs/MODEL_SETUP.md +111 -0
  13. package/docs/OUTPUT_EVIDENCE.md +10 -2
  14. package/knowledge/shared/harness-core/fh_detail_protocols.md +131 -1
  15. package/knowledge/shared/harness-core/fh_three_layer_canon.md +15 -0
  16. package/knowledge/shared/harness-core/field_harness_diagnostic.md +30 -0
  17. package/knowledge/shared/harness-core/gate_locality_principle.md +29 -0
  18. package/knowledge/shared/harness-core/measurement-integrity-checklist.md +80 -0
  19. package/knowledge/shared/harness-core/ship_readiness_gate.md +103 -15
  20. package/knowledge/shared/learnings/subagent_invocations_log.yaml +120 -0
  21. package/knowledge/shared/rules/multi_session_close_protocol.md +7 -1
  22. package/package.json +22 -2
  23. package/plugins/fh-commons/.claude-plugin/plugin.json +2 -2
  24. package/plugins/fh-commons/skills/preprep/README.md +45 -0
  25. package/plugins/fh-commons/skills/preprep/SKILL.md +214 -0
  26. package/plugins/fh-commons/skills/preprep/canon_terms.example.yaml +36 -0
  27. package/plugins/fh-commons/skills/preprep/fixtures/adjdup_known_negative.md +7 -0
  28. package/plugins/fh-commons/skills/preprep/fixtures/adjdup_known_positive.md +8 -0
  29. package/plugins/fh-commons/skills/preprep/fixtures/progression_known_negative.md +13 -0
  30. package/plugins/fh-commons/skills/preprep/fixtures/progression_known_positive.md +13 -0
  31. package/plugins/fh-commons/skills/preprep/fixtures/promise_known_negative.md +9 -0
  32. package/plugins/fh-commons/skills/preprep/fixtures/promise_known_positive.md +7 -0
  33. package/plugins/fh-commons/skills/preprep/interslide_deps.py +223 -0
  34. package/plugins/fh-commons/skills/preprep/jargon_terms.example.yaml +40 -0
  35. package/plugins/fh-commons/skills/preprep/lane_adjacent_dup.py +86 -0
  36. package/plugins/fh-commons/skills/preprep/lane_progression.py +81 -0
  37. package/plugins/fh-commons/skills/preprep/lane_promise.py +121 -0
  38. package/plugins/fh-commons/skills/preprep/ooxml/c1_baseline.txt +12 -0
  39. package/plugins/fh-commons/skills/preprep/ooxml/gate.py +164 -0
  40. package/plugins/fh-commons/skills/preprep/preprep.py +776 -0
  41. package/plugins/fh-commons/skills/preprep/presentation_checklist.md +310 -0
  42. package/plugins/fh-commons/skills/preprep/surfaces.example.yaml +148 -0
  43. package/plugins/fh-meta/.claude-plugin/plugin.json +1 -1
  44. package/plugins/fh-meta/CHANGELOG.md +150 -0
  45. package/plugins/fh-meta/skills/install-wizard/SKILL.md +39 -0
  46. package/scripts/activity_log.sh +144 -0
  47. package/scripts/com.forge-harness.daily-report.plist +44 -0
  48. package/scripts/context_continuity_score.sh +435 -0
  49. package/scripts/daily_report.sh +208 -0
  50. package/scripts/digest_landing_check.sh +71 -0
  51. package/scripts/fh_session_load.sh +71 -2
  52. package/scripts/field_canon_preload.sh +44 -0
  53. package/scripts/gate_pathspec_check.sh +10 -4
  54. package/scripts/lane_runner_check.sh +34 -1
  55. package/scripts/launchd_wiring_check.sh +182 -0
  56. package/scripts/mapped_tracks.sh +69 -0
  57. package/scripts/package_coverage_check.sh +28 -11
  58. package/scripts/portability_lint.sh +30 -0
  59. package/scripts/selfcheck.sh +98 -1
  60. package/scripts/sim_isolated_run.sh +339 -0
  61. package/scripts/test_heavy_classifier_lanes.sh +4 -1
  62. package/scripts/test_lane_runner_lanes.sh +75 -0
  63. package/scripts/test_mapped_tracks_lanes.sh +58 -0
  64. package/scripts/test_marker_address_lanes.sh +78 -0
  65. package/scripts/test_marker_soul_check_lanes.sh +36 -0
  66. package/scripts/test_precommit_staged_drift_lanes.sh +91 -0
  67. package/scripts/test_preprep_adjacent_dup_lanes.sh +57 -0
  68. package/scripts/test_preprep_drift_anchor.sh +65 -0
  69. package/scripts/test_preprep_progression_lanes.sh +53 -0
  70. package/scripts/test_preprep_promise_lanes.sh +56 -0
  71. package/scripts/test_preprep_retired_lanes.sh +54 -0
  72. package/scripts/test_sim_isolated_run_lanes.sh +219 -0
  73. package/scripts/test_skill_canon_preload_lanes.sh +58 -0
  74. package/scripts/universal_guard_check.sh +20 -8
  75. package/templates/.git-hooks/pre-commit +465 -8
  76. package/templates/regression_guard.sh +40 -1
@@ -1,5 +1,76 @@
1
1
  # forge-harness (fh-meta) Changelog
2
2
 
3
+ ### [2.14.0] — 2026-08-31 — 영혼 엔진 배선 + sim 경로 격리
4
+
5
+ ### 🟥 BREAKING (gate): 2026-09-01 부터 마커에 `defeater:` 가 필요하다
6
+
7
+ **무엇이 이제 막히나**: **2026-09-01 이후 날짜**의 Axes 2–3 마커에 `defeater:` 줄이 없으면
8
+ **커밋이 차단된다.** 「이 성공 정의가 틀렸다면 **무엇이 관측될 것인가**」 한 줄이다.
9
+ 비공허성만 검사한다(6낱말 이상). 그 전 날짜의 마커는 **소급 없음**.
10
+
11
+ **한 줄 처방**: 마커에 `defeater: <틀렸다면 관측될 사건>` 을 추가해라.
12
+ 반증 조건이 정말 없으면 `defeater: 없음` 도 **합법**이다 — 선언된 부재는 값이고 침묵이 아니다.
13
+
14
+ **같이 들어온 것(차단 아님)**: `tenets:` 는 **선택**이다. 인용하면 `.claude/soul_tenets.txt` 에
15
+ 실재하는 `FH-T\d\d` 만 허용된다(오타를 조용히 안 버린다). 인용이 없으면 통과한다.
16
+ `soul-check:` 는 **있으면** enum 이 강제되고 **없으면 통과**한다(부재는 차단 아님).
17
+
18
+ **왜 지금**: `judgment-circuit`(영혼) 엔진이 🔴 였고 기계 앵커가 6단 중 1단뿐이었다.
19
+ 외부 정본을 따랐다 — 원자 tenet([arXiv 2605.24229](https://arxiv.org/abs/2605.24229)) ·
20
+ defeater([Assurance 2.0](https://arxiv.org/abs/2004.10474)) · 양방향 추적성(DO-178C) ·
21
+ 등록부 규율([AWS tenets](https://aws.amazon.com/blogs/enterprise-strategy/tenets-supercharging-decision-making/):
22
+ 최대 7 · 우선순위 · **반대가 방어 가능해야 한다**). 셋 다 «기록의 속성»만 단언한다.
23
+
24
+ ### 🟥 sim 러너는 2.13.0 까지 «격리»가 아니었다
25
+
26
+ `scripts/sim_isolated_run.sh` 헤더가 *"disposable clone 이라 오염 없음"* 이라 적어왔으나
27
+ **클론은 cwd 일 뿐**이고 `--tools "Read,Grep,Glob"` 는 쓰기만 막았다. 실측에서 팔이
28
+ **채점용 정답 키를 그대로 읽었다.** 이 버전부터 클론에 `Read` deny 를 주입한다
29
+ (실제 레포 · 홈 · out · 다른 팔의 클론 트리). 격리가 없으면 **회차를 시작하지 않는다**.
30
+
31
+ ⚠️ **2.13.0 이하로 낸 sim 숫자는 재측정 대상이다.** ARM/CTRL 차이가 「운반체 덕」인지
32
+ 「팔이 답을 읽었는지」 구조적으로 구분되지 않는다.
33
+
34
+ ### 그 외
35
+
36
+ - `portability_lint` **[P10]** — `tr` 집합 안의 하이픈이 **범위**로 읽히는 이식성 결함.
37
+ GNU/BSD 가 갈리고 **로컬만 초록**이 되는 클래스를 로컬로 당겨온다.
38
+ - 훅 다리 넷이 «정의만 하고 안 부르는» 상태를 잡는 배선 레인(`test_hook_leg_wiring_lanes.sh`).
39
+ - 마커 스펙(`.claude/rules/fh_4axis_gate.md`)에 `soul:`·`soul-check:`·`defeater:`·`tenets:` 기재
40
+ — 🟥 `soul:` 은 2026-08-21 부터 차단해왔는데 **어느 규칙 파일에도 적혀 있지 않았다**.
41
+
42
+
43
+ ### 🟥 BREAKING (gate): novelty/absence 주장 검사가 **차단**으로 바뀐다 (2026-08-30)
44
+
45
+ **무엇이 이제 막히나**: `knowledge/**` · `docs/**` 의 `.md` 를 커밋할 때, **세계에 대한
46
+ 신규성·부재 주장**(「선례가 없다」·「시장에 유일하게」·`no prior art`·`unprecedented` 등)이
47
+ **±6줄 안에 외부 앵커 없이** 서 있으면 **커밋이 차단된다.** 종전에는 advisory 였다.
48
+
49
+ **한 줄 처방**: 그 주장 옆에 외부 앵커를 둬라 — URL · arXiv/DOI · `WebSearch`/`WebFetch` ·
50
+ `출처` · `원문 확인` · `서베이`. 강행이 필요하면 `FH_NOVELTY_OK=1 git commit …` (기록에 남는다).
51
+
52
+ **왜 지금**: `external-grounding` 엔진이 🟡 인 두 다리 중 하나가 「배선은 됐는데 안 막는다」였다.
53
+
54
+ 🟢 **켜기 전에 쟀다** — 대상 표면 전수(`knowledge/`·`docs/` **69개 문서**)에서 무앵커 **0건**.
55
+
56
+ 🟥 **그 숫자가 «켜도 안전하다»를 지지하지는 않는다** — cross-family 패널(gpt-5.5 · gemini-3.1)이
57
+ 독립 수렴해 지적했고 맞다. 잰 것은 **완성돼 안착한 정적 코퍼스의 마찰**이지, 저자가 **작성 중인**
58
+ 워크플로가 아니다. 사람은 주장을 먼저 쓰고 출처를 나중에 보강한다. 소비자 코퍼스·미래 편집·
59
+ 무관 앵커의 false pass 는 **전부 미측정**이다. 정확한 표현은
60
+ 「**현재 이 레포의 정적 마찰 = 0**」이지 「배포 안전」이 아니다.
61
+
62
+ ⚠️ **명명된 우회 경로 3건** (숨기지 않는다 — 두 계열이 같은 것을 짚었다):
63
+ 1. **무관한 앵커 세탁** — ±6줄 안에 **아무 URL** 이나 있으면 통과한다.
64
+ *"이 아키텍처는 전례가 없다. 백엔드는 [Node.js](https://nodejs.org)로 구축했다."* 가 통과한다.
65
+ 앵커의 **존재**만 보고 **연관성**을 안 본다(진위는 phantom-quench 의 일).
66
+ 2. **GUI git 클라이언트** — VS Code·SourceTree 등에서 커밋당 env 주입은 번거롭다.
67
+ 가장 쉬운 우회가 **「Skip hooks」 = `--no-verify`** 이고, 그건 **같은 훅의 Destructive-Op
68
+ 게이트까지** 끈다. 그래서 차단 메시지가 이 함정을 명시적으로 경고한다.
69
+ 3. **override 는 습관이 되기 쉽다** — env 는 셸에 export 해두면 영구다.
70
+ 완화: `tracks/_meta/.novelty_override_log` 에 **시각·브랜치·우회한 주장**을 append 한다
71
+ (집안 관행 `.psa_override_log` 와 같은 형태). 🟥 초판은 「기록에 남는다」고 **말만** 하고
72
+ 원장이 없었다 — gpt-5.5 가 잡았고, 그건 규칙이 자기 기계를 잘못 서술한 판이었다.
73
+
3
74
  All notable changes to fh-meta plugin and all skills.
4
75
 
5
76
  Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
@@ -8,6 +79,78 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
8
79
 
9
80
  ---
10
81
 
82
+ ### [2.13.0] — 2026-08-29
83
+
84
+ > **추가 (발행 전 보완)** — 아래 두 항목은 릴리스 커밋 이후, **발행 전에** 같은 2.13.0 으로
85
+ > 들어왔다. 미발행 상태라 노트를 보완하는 것이 태그·타르볼·문서를 일치시키는 정직한 방향이다.
86
+ >
87
+ > - **새 게이트 행 + 필드 렌즈 — `measurement-reps`.** 측정을 기록했는데 `reps` 가 바(3) 미달
88
+ > 이고 그 결론이 **하중을 지면**(판정·등급·교리·비가역 처방) 한 줄 제안이 뜬다. 지금까지는
89
+ > 「바 미달」이라고 **적고 넘어가는 것**이 기본값이었다 — 라벨은 측정이 아니다. §Field-Harness
90
+ > Diagnostic 도 8렌즈 → **9렌즈**. 🟥 필드 하네스에 돌리기 전에
91
+ > `knowledge/shared/harness-core/field_harness_diagnostic.md` 의 **Step 0(provenance 분리)**
92
+ > 를 읽어라 — FH 파생 하네스를 그냥 스캔하면 FH 자기 텍스트를 필드 발견으로 되읽는다
93
+ > (실측: 어느 필드 레포 원시 히트의 2/3).
94
+ > - **인사말 번역 조항** — 문장은 어느 언어로든 자연스럽게 옮기되 이름 「FH」는 움직이지 않는다.
95
+ > 🟥 **측정했고 안 닫혔다**(컨트롤 1/3 · 조항 2/3, n=3 에서 차이 1). 조항은 옳고 싸서 남겼지
96
+ > 효과가 측정돼서가 아니다. 이 축엔 기계 floor 가 없다.
97
+ > - 🟥 **fail-open 수리 — `templates/regression_guard.sh` F1(frontmatter).** 발행 직전 보안 패스가
98
+ > 찾았다: 검사기(`python3`)가 없거나 안 도는 머신에서 F1 이 **「✅ frontmatter intact」로 렌더**
99
+ > 됐다 — 출력에 `FAIL` 토큰이 없다는 이유만으로. **macOS 는 python3 를 기본 탑재하지 않으므로**
100
+ > 상당수 소비자에게 이 레인은 늘 초록이었고, 그 초록은 「검사했다」가 아니라 「검사기가 없었다」였다.
101
+ > 이제 **종료코드**로 판정한다(0=정상 · 1=FAIL · 그 외=`⚠️ F1 UNMEASURED`). 🟥 **차단하지 않는다**
102
+ > — 가역 표면이고, 과차단은 이 파일 자신이 경고한 대로 `--no-verify` 를 근육에 새긴다.
103
+ > ⚠️ **행동 변화**: 그런 머신에서 이제 경고 줄이 뜬다. 통과/차단 판정은 안 바뀐다.
104
+ > - `scripts/activity_log.sh` 가 **files[] 에 진입**했다 — 배포되는 digest 생산자
105
+ > (`frontier_digest_autopilot.sh`)가 언더스코어 날짜 파일을 만드는데 그 판독기가 안 실려 있었다.
106
+
107
+ > **BREAKING (gate)**: `templates/regression_guard.sh` 의 Axis 1 pathspec 이 이제
108
+ > `README*.md` · `CHEATSHEET.md` · `CATALOG.md` · `.github/workflows/*.yml` · `scripts/*.py` ·
109
+ > `.claude/registry/*.md` · `package.json` 을 **본다**. **FH 클론에 4축 pre-commit 훅을
110
+ > opt-in 한 경우**, 그 파일들만 바꾼 커밋이 이전엔 `SKIP (not-checked)` 이었는데 이제 검사되고,
111
+ > 대규모 삭제 시 `REVIEW`(S-tier) 또는 `BLOCK`(M-tier)이 될 수 있다.
112
+ > **처방**: 의도된 감량이면 마커에 근거를 적고 진행한다 — S-tier 는 머지를 막지 않는다.
113
+ > 영향 범위는 **FH 클론 + 훅 opt-in** 에 한정된다(그 게이트는 필드 프로젝트에 설치되지 않는다).
114
+
115
+ **Added**
116
+ - `docs/MODEL_SETUP.md` — 모델 교리의 정본 신설. `/model` 선택 표 · `opusplan` 측정 캐비앗
117
+ (10턴 중 Opus 0턴) · 하드웨어 티어 · **두 구조 법칙** · Multi-Model Sidecar.
118
+ `docs/OUTPUT_EVIDENCE.md` 가 「README §Model setup」을 역참조하던 것을 이 파일로 고쳤다
119
+ (그대로 뒀으면 README 감량 후 팬텀 참조가 된다).
120
+ - `scripts/gate_pathspec_check.sh` — 새로 커버된 클래스에 **앵커 6쌍 추가**. 되돌림 프로브 확인:
121
+ `README*.md` 항만 제거하면 FAIL, 복원하면 PASS(30쌍).
122
+
123
+ **Changed**
124
+ - **README 4판 감량 3,443 → 1,535줄 (−55%)**. EN 896→382 · ko 880→387 · ja 861→396 · zh 806→370.
125
+ 가장 설득력 있는 증거(OpenCode 실측 · 8홀 5/8→6/8→8/8)가 **72% 지점**에 묻혀 있던 것을
126
+ **40% 지점**으로 올렸다. 지운 것은 전부 착지처를 열어서 확인하고 옮겼다.
127
+ 🟥 판마다 보존 경계가 다르다(EN L1~100 · ko L1~96 · ja L1~111 · zh L1~106) — 「100줄」을
128
+ 일괄 적용했으면 ja·zh 는 두 문(door) 구조를 잘라먹었다.
129
+ - `CHEATSHEET.md` — `FH_BACKEND=cross` 행 신설(기존 `FH_BACKEND` 행에 「one leg」 명시:
130
+ `auto` 는 폴백 *선택*이라 레그를 하나만 돈다) · PyYAML 요구사항 착지(§6).
131
+ - `fh_three_layer_canon.md` — 「'4'가 셋이다」 3자 구분표를 `README.ko.md` 에서 정본으로 이관
132
+ (4개 언어판 중 ko 에만 있던 비대칭 해소).
133
+
134
+ **Fixed**
135
+ - **온보딩 분기** — 뭔가 하고 **마감 없이 끈 사용자에게 「완전 신규」 인사가 뜰 수 있었다.**
136
+ 정본(`fh_detail_protocols.md`)은 원래 옳았고(`tracks/_meta/*.md` 도 세션 파일로 센다),
137
+ 상주 요약이 「밑줄 디렉터리는 안 센다」를 어디에 거는지 안 정해 놓은 것이 원인이었다.
138
+ 인사는 세션 첫 턴이라 detail 을 안 읽고 판정하는 경로가 실재한다 — 두 조건을 갈라 적었다.
139
+ 같이: 재방문 문 **아래** 마감 권고 한 줄(문 개수·환영문 리터럴 불변) ·
140
+ 🟥 **마감 트리거를 「어느 언어든」으로 명시** — 인사말 트리거는 이미 그런데 마감은 아니어서,
141
+ 세션이 「마무리하자」라고 가르쳐도 그 말이 목록에 없었다. 블라인드 sim 이 잡았다.
142
+ 검증: 플로어 티어(sonnet) known-pair **reps=3** — ARM 마감줄 3/3 · CONTROL 0/3.
143
+ - `ship_readiness_gate.md` — §6 「확인된 stale 2건」이 그 자체로 stale 이었다. 1건은 stale 이
144
+ 맞고 1건은 **수리완료를 미수리로 가리키는 오보**였다. 둘 다 철회·정정.
145
+ - `scripts/activity_log.sh` — digest 날짜 정규식이 대시 표기만 봐서 언더스코어 파일 **70건을
146
+ 무음 드롭**했다. `emit_line` 에 정규화가 있는데 호출부가 그 앞에서 죽여 도달하지 못한 형태.
147
+ 실측 1 → 71.
148
+ - README 4판의 stale 사실 2건 — 버전 셀(`2.8.0` vs 실제 2.12.1)과 정체성 등급(② 는 2026-08-21
149
+ 부로 🟢). **고쳐 적지 않고 복제를 지웠다** — 그 문단이 스스로 «두 파일에 나눠 두면 썩는다»고
150
+ 적어놓고 복제한 자리였다.
151
+
152
+ ---
153
+
11
154
  ### [2.12.1] — 2026-08-28
12
155
 
13
156
  **코드 무변경.** 2.12.0 이 **정정 전 리드미**로 발행됐다 — v2.12.0 태그(19:48)가 리드미 정정
@@ -634,6 +777,13 @@ are **blocked at commit**.
634
777
  - `standpoint:` gains **`tier1b`** (a STATIC read of a target repo — executed nothing) plus a
635
778
  decide-in-order procedure, after blind floor-tier sims graded pure cold-reads as `tier2` for three
636
779
  rounds, defeating three separate rewordings via the enum's own internal logic.
780
+ 🟥 **[RETRACTED 2026-08-17, noted here 2026-08-30]** — that sim result is withdrawn: the runs had
781
+ `tool_uses: 0`, so the agents never opened a file and the grades measure nothing. The live re-run
782
+ landed the **opposite** result at reps=1, below this repo's own bar — so neither direction is
783
+ established. **The `tier1b` rung itself stands** on its own wording (a read that executed nothing
784
+ is not `tier2`), not on this measurement. Canon: `CLAUDE.md` §Skeleton-Not-Muscle ·
785
+ `field_verdict_crossfamily_gate.md:310`. The sentence above is kept rather than deleted so the
786
+ citation stays traceable.
637
787
  - steel-quench Wave 1's sixth angle (**gate-locality**) gains the output-template row it never had —
638
788
  a mandatory angle that was structurally unreportable. Gate-locality failing its own check.
639
789
  - `verify-bidirectional` category 5 — **prescriptive doctrine statement**, the operator-correction
@@ -199,6 +199,44 @@ intended default needs a `settings.json` edit, propose it in this step with the
199
199
  it only on approval. Do not change settings silently on the strength of the doctrine alone — the
200
200
  doctrine says dispatch is the default posture, not that the wizard may edit a user's config unasked.
201
201
 
202
+ ### Step 3-E. Sidecar Panel — measure it once, here, instead of remembering it forever
203
+
204
+ Step 3-D settles *whether you may dispatch*. This step settles **whether there is anyone of a
205
+ different model family to dispatch TO** — and until now the wizard never asked. Measured
206
+ 2026-08-29 by a cross-family audit (codex, control-paired): **zero `sidecar_calibrate` references in
207
+ either wizard file**, while the same install negotiates dispatch consent in detail. The gate that
208
+ depends on this — `CLAUDE.md §Field-Harness Load-Bearing Change Gate` — degrades **fail-closed** when
209
+ no different-family auditor is reachable, so "is one reachable?" is a question every install answers,
210
+ and today answers **from memory**. `scripts/sidecar_calibrate.sh` opens with exactly that complaint:
211
+ *"A panel you have not probed is not a panel; it is an assumption with a hostname."*
212
+
213
+ **Ask first — this costs real API calls** (3 short probes per runtime), which is why it is a
214
+ consent step and not a silent probe:
215
+
216
+ > *"크로스패밀리 사이드카(codex · agy · 로컬 ollama)가 이 머신에서 실제로 도는지 지금 한 번
217
+ > 재둘까? 짧은 프로브 3개씩이라 비용은 작고, 안 재면 나중에 게이트가 «기억으로» 답하게 돼."*
218
+
219
+ On approval:
220
+
221
+ ```bash
222
+ bash scripts/sidecar_calibrate.sh # or --only codex|agy to scope
223
+ ```
224
+
225
+ Record the final `PANEL:` line — that is the line a marker's `crossfamily:` leg quotes. Three
226
+ outcomes, and **each is a valid recorded answer**:
227
+
228
+ | Result | What to write down |
229
+ |---|---|
230
+ | `PANEL: <runtimes>` | the panel exists — markers may claim `panel(<families>)` |
231
+ | `PANEL:` empty | **no different-family auditor** — this install's load-bearing changes degrade to `DEGRADED_SINGLE_FAMILY`, and that is now a *measured* value rather than an assumed one |
232
+ | declined / not run | write **that** down, so the next session knows the panel is `UNKNOWN` — *did not look* is a distinct enum value from *could not* on purpose |
233
+
234
+ 🟥 **`REACHABLE` is not `PIN-OK`.** The calibrator separates them because a runtime can answer
235
+ happily while serving a different model than the one pinned (measured 2026-07-30: agy pinned to
236
+ `gemini-3.1-pro-high` answered as Gemini 3.6 Flash, silently). A runtime marked `UNTRUSTED-PIN`
237
+ still runs — it just cannot carry a claim about *which family* reviewed. Record the verdict, not
238
+ just the fact that something answered.
239
+
202
240
  ⚠️ **The lease is honoured by reading, not by machinery.** `scripts/consent_registry_check.sh`
203
241
  enforces leases for *registered consent classes*, and this grant is not one of those — say so when
204
242
  recording it rather than implying an expiry alarm exists.
@@ -318,6 +356,7 @@ On Claude API / MCP failure → refer to [`references/fallback-guide.md`](../../
318
356
  SUBSTITUTED values (no literal "{FH_DIR}" in the target file)
319
357
  or explicitly declined and the decline recorded (mandatory-pass)
320
358
  ☐ Step 3-D dispatch consent recorded in the three-part form
359
+ ☐ Step 3-E sidecar panel measured (or the decline recorded) — never left to memory
321
360
  (quoted words · dated lease · scope) or a recorded decline —
322
361
  a two-part record is invalid and counts as absent (mandatory-pass)
323
362
  ☐ Summary output: "N items installed, M items skipped" where
@@ -0,0 +1,144 @@
1
+ #!/usr/bin/env bash
2
+ # activity_log.sh — on-demand chronological assembler (the portable LLM-Wiki `log.md`).
3
+ #
4
+ # WHY: the LLM-Wiki pattern (Karpathy; wikidocs book/19830) pairs an index (FH already has =
5
+ # CATALOG.md + MEMORY.md) with a `log.md` — a single time-ordered trail of every ingest/check the
6
+ # agent performed. FH's activity is scattered across 5+ record stores (edit_manifest, fh_signal,
7
+ # _audit, gate markers, subagent log). Rather than add a 6th always-write file, this ASSEMBLES the
8
+ # chronological view on demand from what already exists. Honest trade (not a free lunch): this MOVES
9
+ # the maintenance cost from "every writer must remember to append" (drift-prone — the fh_completed
10
+ # card-bug class) to "one parser branch per store format, here" (centralized, but silent on format
11
+ # drift). Mitigation: dates are pulled by regex after a prefix-strip, not by hardcoded character
12
+ # offsets, so a renamed prefix degrades toward an empty date (which emit_line drops) rather than
13
+ # silently slicing garbage. Zero new write obligation; backend-agnostic (plain stdout — runs in a
14
+ # bare terminal / air-gapped / ephemeral cloud, no Obsidian or any app required).
15
+ #
16
+ # Obsidian/gbrain are OPTIONAL frontends: `--emit <path>` writes the same view as a markdown file
17
+ # (e.g. a companion store's log.md) only when such a frontend exists. The portable core is the stdout default.
18
+ #
19
+ # Usage:
20
+ # bash scripts/activity_log.sh # full chronological view (newest first) to stdout
21
+ # bash scripts/activity_log.sh --since 2026-06-15
22
+ # bash scripts/activity_log.sh --emit /path/to/store/log.md # also write a markdown frontend file
23
+ # bash scripts/activity_log.sh --asc # oldest first
24
+ #
25
+ # NOTE: this is a best-effort assembler — many greps legitimately return no-match (a record store
26
+ # without a `date:` frontmatter line falls back to the filename date). So NO `set -e`: a non-matching
27
+ # grep must not abort the assembly. `set -u` (unset-var guard) is kept.
28
+ set -uo pipefail
29
+
30
+ HUB="$(cd "$(dirname "$0")/.." && pwd)"
31
+ cd "$HUB"
32
+
33
+ SINCE=""
34
+ EMIT=""
35
+ ORDER="-r" # newest first by default
36
+ while [[ $# -gt 0 ]]; do
37
+ case "$1" in
38
+ --since) SINCE="$2"; shift 2 ;;
39
+ --emit) EMIT="$2"; shift 2 ;;
40
+ --asc) ORDER=""; shift ;;
41
+ *) echo "unknown arg: $1" >&2; exit 2 ;;
42
+ esac
43
+ done
44
+
45
+ TMP="$(mktemp)"
46
+ trap 'rm -f "$TMP"' EXIT
47
+
48
+ emit_line() { # date type label source
49
+ local d="${1//_/-}" # normalize _ date-separators -> -
50
+ [[ "$d" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] || return 0 # skip empty / malformed dates
51
+ printf '%s\t%-7s %s\t[%s]\n' "$d" "$2" "$3" "$4" >> "$TMP"
52
+ }
53
+
54
+ # 1. edit_manifest.yaml — pair each "- id:" with its following " date:"
55
+ if [[ -f tracks/_meta/edit_manifest.yaml ]]; then
56
+ awk '
57
+ /^- id:/ { id=$3 }
58
+ /^ date:/ { if (id!="") { print $2 "\t" id; id="" } }
59
+ ' tracks/_meta/edit_manifest.yaml | while IFS=$'\t' read -r d id; do
60
+ emit_line "$d" "edit" "${id#em-}" "manifest"
61
+ done
62
+ fi
63
+
64
+ # 2. fh_signal_<date>_<slug>.md
65
+ for f in tracks/_meta/fh_signal_*.md; do
66
+ [[ -e "$f" ]] || continue
67
+ base="$(basename "$f" .md)"; rest="${base#fh_signal_}" # strip prefix (no hardcoded offset)
68
+ d="$(printf '%s' "$rest" | grep -oE '^[0-9]{4}[-_][0-9]{2}[-_][0-9]{2}' | head -1)"
69
+ slug="${rest:11}"
70
+ emit_line "$d" "signal" "$slug" "fh_signal"
71
+ done
72
+
73
+ # 3. fh_completed_<date>.md
74
+ for f in tracks/_meta/fh_completed_*.md; do
75
+ [[ -e "$f" ]] || continue
76
+ base="$(basename "$f" .md)"; rest="${base#fh_completed_}" # strip prefix (no hardcoded offset)
77
+ d="$(printf '%s' "$rest" | grep -oE '^[0-9]{4}[-_][0-9]{2}[-_][0-9]{2}' | head -1)"
78
+ emit_line "$d" "done" "session completions" "fh_completed"
79
+ done
80
+
81
+ # 4. gate markers (.axes_*_<date>.marker)
82
+ for f in tracks/_meta/.axes_*.marker; do
83
+ [[ -e "$f" ]] || continue
84
+ base="$(basename "$f")"; d="$(printf '%s' "$base" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}' | head -1)"
85
+ [[ -n "$d" ]] && emit_line "$d" "gate" "4-axis marker" "axes_marker"
86
+ done
87
+
88
+ # 5. _audit/*.md — date from frontmatter; weekly_audit tagged distinctly
89
+ for f in tracks/_audit/*.md; do
90
+ [[ -e "$f" ]] || continue
91
+ d="$(grep -m1 '^date:' "$f" | awk '{print $2}')"
92
+ [[ -z "$d" ]] && d="$(basename "$f" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}' | head -1)"
93
+ [[ -z "$d" ]] && continue
94
+ name="$(grep -m1 '^name:' "$f" | sed 's/^name:[[:space:]]*//')"
95
+ [[ -z "$name" ]] && name="$(basename "$f" .md)"
96
+ case "$(basename "$f")" in
97
+ weekly_audit_*) emit_line "$d" "weekly" "$name" "_audit" ;;
98
+ *) emit_line "$d" "audit" "$name" "_audit" ;;
99
+ esac
100
+ done
101
+
102
+ # 6. subagent_invocations_log.yaml — dispatch events (date: field per entry)
103
+ # 전환 설계: 레거시 단일 파일 ∪ 세션별 디렉터리를 둘 다 읽는다 (session_close_check.sh 와 동일)
104
+ _SAL=knowledge/shared/learnings/subagent_invocations_log.yaml
105
+ _SAD=knowledge/shared/learnings/subagent_invocations
106
+ if [[ -f "$_SAL" || -d "$_SAD" ]]; then
107
+ { [[ -f "$_SAL" ]] && cat "$_SAL"; [[ -d "$_SAD" ]] && cat "$_SAD"/*.yaml; } 2>/dev/null \
108
+ | grep -E '^[[:space:]]*-?[[:space:]]*date:' \
109
+ | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}' | sort | uniq -c | while read -r n d; do
110
+ emit_line "$d" "dispatch" "$n agent invocation(s)" "subagent_log"
111
+ done
112
+ fi
113
+
114
+ # 7. cadence artifacts (harness_doctor / frontier_digest in _meta)
115
+ for f in tracks/_meta/harness_doctor_*.md tracks/_meta/frontier_digest_*.md; do
116
+ [[ -e "$f" ]] || continue
117
+ # 🟥 2026-08-29 — 초판은 대시 표기만 봤다(`[0-9]{4}-[0-9]{2}-[0-9]{2}`). 실파일 71개 중
118
+ # 대시 표기는 **1개**뿐이고 나머지 70개는 언더스코어라, `d=""` → emit_line 이 malformed 로
119
+ # 조용히 return 0 → **70건 무음 드롭**. emit_line:49 에 `${1//_/-}` 정규화가 **있는데도**
120
+ # 호출부가 그 앞에서 죽여서 도달하지 못했다([[feedback_not_found_is_not_zero_family]]).
121
+ d="$(basename "$f" | grep -oE '[0-9]{4}[-_][0-9]{2}[-_][0-9]{2}' | head -1)"
122
+ case "$(basename "$f")" in
123
+ harness_doctor_*) emit_line "$d" "doctor" "harness-doctor run" "_meta" ;;
124
+ frontier_*) emit_line "$d" "digest" "frontier-digest" "_meta" ;;
125
+ esac
126
+ done
127
+
128
+ # --- assemble: filter by --since, sort chronologically ---
129
+ OUT="$(sort $ORDER "$TMP" | { [[ -n "$SINCE" ]] && awk -v s="$SINCE" '$1 >= s' || cat; })"
130
+
131
+ render() {
132
+ echo "# FH Activity Log — assembled $(date +%Y-%m-%d) (portable LLM-Wiki core, on-demand)"
133
+ echo "# index = CATALOG.md + MEMORY.md | this = chronological log over 5 record stores"
134
+ [[ -n "$SINCE" ]] && echo "# since: $SINCE"
135
+ echo
136
+ echo "$OUT"
137
+ }
138
+
139
+ if [[ -n "$EMIT" ]]; then
140
+ render > "$EMIT"
141
+ echo "emitted $(printf '%s\n' "$OUT" | grep -c . ) events → $EMIT"
142
+ else
143
+ render
144
+ fi
@@ -0,0 +1,44 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <!-- Replace every /path/to/... below with your own absolute paths before installing -->
6
+ <!-- 또는: bash scripts/launchd_wiring_check.sh render-daily > ~/Library/LaunchAgents/com.forge-harness.daily-report.plist -->
7
+ <key>Label</key>
8
+ <string>com.forge-harness.daily-report</string>
9
+
10
+ <key>ProgramArguments</key>
11
+ <array>
12
+ <string>/bin/bash</string>
13
+ <string>/path/to/forge-harness/scripts/daily_report.sh</string>
14
+ </array>
15
+
16
+ <!-- 매일 07:30. 잠자는 중이면 launchd 가 깨어난 뒤 한 번 돌린다(정각 보장 아님). -->
17
+ <key>StartCalendarInterval</key>
18
+ <dict>
19
+ <key>Hour</key><integer>7</integer>
20
+ <key>Minute</key><integer>30</integer>
21
+ </dict>
22
+
23
+ <key>RunAtLoad</key>
24
+ <false/>
25
+
26
+ <key>StandardOutPath</key>
27
+ <string>/path/to/forge-harness/tracks/_meta/logs/daily_report_out.log</string>
28
+ <key>StandardErrorPath</key>
29
+ <string>/path/to/forge-harness/tracks/_meta/logs/daily_report_err.log</string>
30
+
31
+ <key>EnvironmentVariables</key>
32
+ <dict>
33
+ <key>PATH</key>
34
+ <string>/path/to/home/.local/bin:/usr/local/bin:/usr/bin:/bin</string>
35
+ <key>HOME</key>
36
+ <string>/path/to/home</string>
37
+ <!-- 🟥 author 필터: 레포 로컬 user.email 이 전역과 다르면 조용히 틀린 사람으로 걸러진다.
38
+ 리포트 헤더가 불일치를 표시하지만, 여기서 못박아 두는 편이 낫다.
39
+ 비워 두면 레포 설정을 쓴다. -->
40
+ <key>DR_AUTHOR</key>
41
+ <string></string>
42
+ </dict>
43
+ </dict>
44
+ </plist>