@chrono-meta/fh-gate 3.37.0 → 3.38.1
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/governance_engineering_definition.md +26 -0
- package/knowledge/shared/harness-core/self_evolution_routine.md +22 -0
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +54 -0
- package/package.json +2 -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 +21 -1
- package/plugins/fh-meta/skills/frontier-digest/SKILL_detail.md +7 -3
- package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/adapters/gstack_content_safety.sh +1 -1
- package/scripts/capability_effect_probe.sh +2 -2
- package/scripts/chamber_run.sh +2 -2
- package/scripts/compaction_probe.sh +14 -14
- package/scripts/fh_session_load.sh +2 -2
- package/scripts/frontier_digest_autopilot.sh +10 -0
- package/scripts/gate_shape_scan.sh +1 -1
- package/scripts/governor_board.sh +2 -2
- package/scripts/outbound_pr_gate.sh +1 -1
- package/scripts/package_coverage_check.sh +10 -0
- package/scripts/pr_merge_verified.sh +8 -1
- package/scripts/probe_live_eval_lib.py +49 -2
- package/scripts/residency_admission_check.sh +1 -1
- package/scripts/selfcheck.sh +5 -0
- package/scripts/session_close_check.sh +2 -2
- package/scripts/sim_isolated_run.sh +2 -2
- package/scripts/test_count_check_decl_lanes.sh +1 -1
- package/scripts/test_degrade_scan_shell_probes.sh +1 -1
- package/scripts/test_dispatch_log_lanes.sh +3 -3
- package/scripts/test_fh_qp_lanes.sh +1 -1
- package/scripts/test_fh_run_resolver_lanes.sh +4 -4
- package/scripts/test_finding_pipeline_lanes.sh +7 -7
- package/scripts/test_gate_two_verdicts_lanes.sh +1 -1
- package/scripts/test_lane_runner_lanes.sh +1 -1
- package/scripts/test_lane_stub_env_lanes.sh +2 -2
- package/scripts/test_map_postprocess_lanes.sh +1 -1
- package/scripts/test_marker_address_lanes.sh +1 -1
- package/scripts/test_marker_defense_lanes.sh +1 -1
- package/scripts/test_marker_oracle_lanes.sh +1 -1
- package/scripts/test_outbound_pr_gate_lanes.sh +1 -1
- package/scripts/test_peer_worktree_detect_lanes.sh +1 -1
- package/scripts/test_pr_merge_verified_lanes.sh +8 -0
- package/scripts/test_precommit_staged_drift_lanes.sh +1 -1
- package/scripts/test_preprep_adjacent_dup_lanes.sh +1 -1
- package/scripts/test_prepush_destructive_lanes.sh +1 -1
- package/scripts/test_probe_live_eval_lanes.sh +68 -1
- package/scripts/test_regression_guard_ci_lanes.sh +8 -8
- package/scripts/test_regression_guard_codecomment_lanes.sh +140 -0
- package/scripts/test_revert_probe_lanes.sh +1 -1
- package/scripts/test_selfcheck_state_lanes.sh +1 -1
- package/scripts/test_stale_ref_close_lanes.sh +1 -1
- package/scripts/test_temper_check_lanes.sh +1 -1
- package/scripts/test_utterance_intake_lanes.sh +9 -9
- package/scripts/test_verdict_watermark_lanes.sh +3 -3
- package/scripts/test_worktree_reclaim_lanes.sh +1 -1
- package/templates/.git-hooks/pre-commit +2 -2
- package/templates/regression_guard.sh +32 -2
|
@@ -11,25 +11,25 @@
|
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "fh-meta",
|
|
14
|
-
"version": "3.
|
|
14
|
+
"version": "3.38.1",
|
|
15
15
|
"description": "New in 2.2.0: BREAKING (gate): chamber step 6 now reads ACTUAL.md, not BUDGET.md — an in-flight chamber run whose actual cost sits in BUDGET.md blocks until the ACTUAL: line moves to tracks/_chamber/<slug>/ACTUAL.md (the runner prints the path). Why: BUDGET.md's pre-verdict hash IS the ordering witness, and step 6 hard-blocked until that same file changed, so every run that reached COMPLETE necessarily mutated a witnessed artifact and verify returned TAMPERED — the chamber's promotion condition was unsatisfiable by construction, not by strictness. Two roles (immutable witness / post-verdict calibration sink) had collided in one file; each was correct alone, so neither side's code showed the conflict. Also: ko-tech-writer Step 2/4-b scans are now calibration-backed (known-pair fixtures + reproducible command, shipped) — discrimination is proven, 'zero residue' is explicitly NOT; chamber lane suite 12 -> 33 including the runner x witness seam no test covered; chamber_run.sh now teaches the two-commit discipline (gate hashes and verdict hash must land in separate commits/PRs — it previously advised the opposite). New in 2.1.0: BREAKING (gate): `crossfamily: declined` in an Axes 2-3 marker now requires grounds naming a record path that RESOLVES on disk — bare `declined`, and `declined` justified by author judgment, are blocked at commit. Remedy: cite where the operator decision lives (e.g. `.. — operator declined sidecars, per knowledge/shared/rules/operational_adaptation.md`), or use `DEGRADED_PANEL_UNUSED` if a panel was reachable and you chose not to recruit it — which is what author judgment actually is. `declined` was the only enum value with no grounds requirement; a cross-family review then broke the first (vocabulary-grep) fix three ways — self-validating on the value's own token, vacuous keyword passes, and over-blocking real declinations in natural prose — so the check asserts a resolvable record instead of words. Also: standpoint axis gains `tier1b` (a STATIC read of a target repo, executed nothing) plus a decide-in-order procedure, after blind floor-tier sims graded pure cold-reads as `tier2` three rounds running; steel-quench Wave 1's sixth angle (gate-locality) gains the output-template row it never had, so a mandatory angle stops being structurally unreportable; verify-bidirectional gains category 5 (prescriptive doctrine statement); Sister Asset Protocol gains an active-adoption trigger; new resident doctrine — Mechanization Boundary, Local Execution First, Skeleton-not-Muscle, Expedition track, and this package's versioning policy. Hub meta-operations toolkit — 35 skills + 7 agents. New in 2.0.1: harness-doctor cadence hook, portability lint wired into pre-commit, branch_claim.sh claim-count-vs-tree-count warning, louder confidentiality-scan fail-open notice, fh-gate.sh missing-package.json survival, identity ① reclassified 🟢 (cross-harness adapters + relay argument channel). New in 1.4.53: `fh-codex-doctor` (npm bin) — Codex adapter drift scanner; reads the documented M1/M2/M3 skill tier map + skill/agent source and reports codex-native/adapter-required/claude-native/unclassified per unit, wired into `npm test`/`prepublishOnly` (fail-closed on unclassified Claude-native primitives). New in 1.4.49: steel-quench gains Step 0.6 Verdict-Invariance Probe (groundedness axis — a load-bearing judged gate's verdict must track behavior, not rubric phrasing; measured flip-count over cross-family paraphrases; arXiv:2605.06161 Policy Invariance anchor); multi_model_sidecar_strategy §Vendor-native harness (a model is strongest in its own vendor CLI — Claude/CC, GPT/codex, Gemini/Antigravity; a universal router degrades all of them, so it stays an autocomplete/QA sidecar, never orchestration); predelete_check.sh fail-closed rewrite; memory-hygiene A-TMA anchor. New in 1.4.48: phantom-quench + steel-quench gain external frontier anchors (arXiv:2607.02052 package-hallucination; arXiv:2607.02057 prompt-coverage-adequacy); README model-flat claim reframed from a per-release point-curve to structural invariants (operation flattens across tiers; depth tier-order fixed within a generation). New in 1.4.47: onboarding step ① surfaces the Mode D companion-store session-start load in the auto-read salience anchor (previously only in the local binding + rules, so a greeting could skip the load). New in 1.4.46: context-doctor command-output axis (route to rtk/proxy for verbose CLI stdout, complementing .claudeignore; risk-gated to token-scarce envs). New in 1.4.41: context-doctor 2026 trigger vocab (context engineering/rot/collapse) + phantom-citation hardening; hub measurement-integrity-checklist (cross-model measurement pre-flight: display-name pin/reps≥3/discriminating probe). New in 1.4.40: install-wizard queryable-wiki scaffold (INDEX + session-start read + R/W/C ingest). New in 1.4.39: auto-decorrelation (cross-family verifier sidecar recruitment) + video-ingest (capability-routed video ingestion). New in 1.4.x: verify-axis check-class taxonomy (mandatory-pass/measured/judged), no-reinvention Tier-0 inventory, 7-class failure taxonomy, Destructive-Op Gate, Wave-T (Temper), tier-floor governance, Mode D Model Notice, FC consent lane, default-Sonnet guidance. New in 1.3.0: public-surface-audit, field-harvest Mode B auto-trigger, 4-axis gate scope ext. Validated cross-CLI: Claude Code, Codex, Gemini.",
|
|
16
16
|
"source": "./plugins/fh-meta"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"name": "fh-commons",
|
|
20
|
-
"version": "3.
|
|
20
|
+
"version": "3.38.1",
|
|
21
21
|
"description": "Project-agnostic utility skills — 7 skills (convergence-loop · deliberation · mcp-circuit-breaker · token-budget-gate · ko-tech-writer · persona-cast · standpoint-review) + 7 agents (quench-challenger + the web-review cast: designer · ux-writer · fe-dev · be-dev · qa · a11y). Domain-independent utilities transplantable into any project.",
|
|
22
22
|
"source": "./plugins/fh-commons"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "fh-qp",
|
|
26
|
-
"version": "3.
|
|
26
|
+
"version": "3.38.1",
|
|
27
27
|
"description": "QP (Quality Platform) — the generic edition of a field QA harness's Prepare→Automation→Regression loop as an FH plugin: 4 skills (qp router · qp-plan · qp-run · qp-regress) + qp_tools.sh (target-class · adapter-probe · mask · surface-reach · mtm-check · run-verbs, typed exit codes) + a zero-domain-constant profile slot + 29 known-pair lanes. Drives web targets through the session's Playwright MCP and desktop targets through computer-use MCP (mobile deferred); calls a registered qasp typed capability when one exists (strictest-wins) — none is registered today, so the MCP fallback is the first edition. Verdict contract: a MACHINE closure requires a recorded assertion; a failed first step is attributed BLOCKED, not FAIL; surface_reach counts every TC in the denominator. Born as chamber run #18 (EMIT, 2026-09-05).",
|
|
28
28
|
"source": "./plugins/fh-qp"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "fh-preprep",
|
|
32
|
-
"version": "3.
|
|
32
|
+
"version": "3.38.1",
|
|
33
33
|
"description": "preprep — a presentation-preparation harness. 1 skill. One CLI over 17 lanes (7 built-in + 10 module) that reads a declared surface manifest and checks a talk's assets against each other: canonical terms, jargon glosses, retired vocabulary, inter-slide dependencies, pacing, get/put round-trips, adjacent duplication, slide relations, geometry, attribute consistency, fonts, diagrams, slide refs, and screen-parity between manuscript and deck. Verdict contract: exit 0 pass / 1 findings / 2 cannot-judge — a surface that could not be read is UNMEASURED, never 0. Promoted out of fh-commons 2026-09-13 after the skill grew past one role (routing / lane modules / fixtures).",
|
|
34
34
|
"source": "./plugins/fh-preprep"
|
|
35
35
|
}
|
|
@@ -190,6 +190,32 @@ B-1 은 타입된 주장을 생산한 적이 없다. **실측 2026-09-17, 재현
|
|
|
190
190
|
셋은 층이 달라서 서로를 대체하지 않는다. 하네스는 거버넌스 엔지니어링의 **도구**이고,
|
|
191
191
|
거버넌스 엔지니어링은 하네스가 **무엇을 위해** 있는지를 말한다.
|
|
192
192
|
|
|
193
|
+
## 바깥 용어 대응 — 번역이지 개정이 아니다 (2026-11-06)
|
|
194
|
+
|
|
195
|
+
바깥 글(에이전트 가드레일 · 승인 UX · 경로 정책 연구)을 읽는 사람이 이 교리를 **자기 분야 낱말로**
|
|
196
|
+
찾게 하는 표다. 🟥 **방향은 한쪽이다** — 바깥 낱말이 FH 교리를 넓히거나 바꾸지 않는다. 대응이 어긋나면
|
|
197
|
+
고치는 쪽은 이 표이지 교리가 아니다. 출처는 2026-11-05 야간 웹 검색(세션 fa277252 기획서
|
|
198
|
+
`PLAN_2026-11-05_governance_ultimate.md` §2, gitignored)에서 열어 본 것만 적고, 본문을 다 확인하지 못한 것은 그렇게 표시한다.
|
|
199
|
+
|
|
200
|
+
| 바깥 용어 | 바깥에서 하는 말 | FH 쪽 이름 | 판정 |
|
|
201
|
+
|---|---|---|---|
|
|
202
|
+
| **execution-layer guardrail** | 비가역 행동은 실행 층에서 막아야 한다 — 프롬프트 지시로는 못 멈춘다 ([Vercel](https://vercel.com/i/five-ai-agent-guardrails-production) · [AWS](https://aws.amazon.com/blogs/security/balancing-speed-and-safety-a-control-framework-for-ai-coding-agents/) · [iii.dev](https://iii.dev/blog/what-stops-your-coding-agent-doing-something-it-cant-undo/)) | Gate-locality(게이트는 행위자가 지나가는 자리에) · FoD PreToolUse 훅 | **같다** |
|
|
203
|
+
| **action-class / risk-tier gating** | 되돌릴 수 있는 행동은 자동 정책, 위험한 부류만 사람 (같은 출처) | **표면 등급**(공개 · 삭제 · 이력 재작성) — 판별자는 «위험도» 가 아니라 **T1~T3**(되돌림 · 동의하지 않은 제3자 관측 · 손실 귀속과 동의, 아래 §명명된 잔여), 종단은 **사람 또는 기록된 override** | **부분**: «행동을 부류로 갈라 다르게 다룬다» 까지 같다. 판별자가 다르다 — 바깥의 위험 등급은 T1 쪽(행위의 성질)에 가깝고 T3(누가 손실을 지나)는 행위의 함수가 아니다. 그리고 둘째 동사(정확도가 좋아져도 경계가 안 움직인다)를 위 출처가 명시하는지는 **본문 미확인** |
|
|
204
|
+
| **error budget** (SRE) | SLO 가 허용하는 실패량으로 변경 속도를 조절한다 — 예산이 남으면 출시한다 ([Google SRE — Embracing Risk](https://sre.google/sre-book/embracing-risk/)) | — (대응 개념 없음) | **다르다 — 대비로만 쓴다**: 오류 예산은 «허용 실패량» 이고 첫째 동사는 «오차율을 낮추는 목표» 라 대상이 다르다. 대비점은 하나다 — 오류 예산은 **숫자가 문을 여는** 구조이고, 둘째 동사는 비가역 표면에서 그것을 금지한다. 이 줄은 SRE 개념에 FH 제약을 덧붙이지 않는다 |
|
|
205
|
+
| **human-in-the-loop · approval fatigue / habituation** | 전부 막으면 승인 피로로 게이트가 무력해진다 · 고위험 부류 승인율 100% 는 사고로 본다 ([approval fatigue UX](https://www.buildmvpfast.com/blog/approval-fatigue-agent-permission-ux-2026) · [habituation curve](https://tianpan.co/blog/2026-04-28-agent-permission-prompt-habituation-curve) — 실무 블로그) | 둘째 동사의 비용 · FoD `gate_ledger.py --fatigue`(FoD #225 — 부류별 사람 승인율 · 결정 시간, «고무도장 의심» 표시) | **부분**: 승인 피로를 문제로 보는 데까지 같다. FH 는 «승인율 100% = 사고» 보다 **약하게** 둔다 — 승인율 100% 는 정당한 요청만 있었어도 나오므로 **의심 표시**일 뿐 사고의 증거가 아니다. 경보는 기록의 성질만 말하고 게이트를 여닫지 않는다. 문턱은 UNCALIBRATED |
|
|
206
|
+
| **policies on paths** | 정책 위반이 앞선 단계에 의존하면 실행 시점(경로 위)에서만 강제할 수 있다 ([arXiv 2603.16586](https://arxiv.org/abs/2603.16586)) | 단건 판정 + FoD #222 체크포인트(사이클 끝 일괄 승인) | **부분**: 같은 세션 경로 위의 규칙(예: 테스트 실패 직후 비가역)은 없다 — 판정 enum 을 건드리는 설계라 운영자 결정 대기 |
|
|
207
|
+
| **approval-layer bypass** | 일괄 · 관리자 · 백엔드 직접 호출은 승인 층을 통째로 건너뛴다 ([iii.dev](https://iii.dev/blog/what-stops-your-coding-agent-doing-something-it-cant-undo/)) | 채널 일가(«읽는 쪽이 안 연 채널») · `scripts/channel_inventory.sh` | **같은 결** |
|
|
208
|
+
| **harness as an auditable runtime object** | 하네스를 문서화 · 감사 가능한 런타임 층으로, 모델×하네스 쌍으로 평가 ([UNU 2026-07](https://unu.edu/publication/engineering-and-governing-agent-harness-technology-and-policy-framework-runtime-layer)) | live-eval(모델×하네스 2팔) | **부분**: «모델×하네스 쌍으로 평가» 만 대응한다. 문서화 · 감사 가능성 요구는 2팔 평가로 충족되지 않고, 보고서의 권고 본문은 **미확인**이라 그 이상은 주장하지 않는다 |
|
|
209
|
+
| **classifier FP / FN by workload** | 같은 자동 모드 분류기가 실운영과 통제 과제에서 전혀 다른 FN 을 낸다 ([arXiv 2604.04978](https://arxiv.org/abs/2604.04978) — 숫자는 2차 출처로 읽음) | «잰 범위 ≠ 주장 범위» | **같은 교훈** |
|
|
210
|
+
|
|
211
|
+
**남는 델타 한 줄**(논문·발표에서 쓸 때): 위 출처 **일부는** «비가역 행동은 실행 층에서 막는다» 와
|
|
212
|
+
«되돌릴 수 있는 행동은 자동 정책으로» 를 권한다(합의라고 쓰지 않는다 — 본문을 다 확인하지 않았다). 🟥 FH 교리는
|
|
213
|
+
비가역 표면만 말하고, 그 밖의 자동화를 보장하지 않는다. FH 가 더하는 것은 **그 경계가 숫자로 옮겨지지
|
|
214
|
+
않는다는 고정**(둘째 동사)과, 그 고정에 쓰이는 **기록 장치들**(표면 등급 · 승인 피로 원장 · 마커)이다.
|
|
215
|
+
🟥 그 장치들은 고정이 실제로 지켜졌는지(준수)를 재지 않는다 — 마커 검사는 기록의 **형식과 비공허성**만
|
|
216
|
+
보고(§Mechanization Boundary 와 같은 경계), 승인 피로 원장은 승인 **패턴**(부류별 승인율 · 결정 시간)을 셀 뿐이다.
|
|
217
|
+
🟥 «바깥은 이걸 모른다» 로 쓰지 않는다 — 위 출처의 본문 전부를 확인하지 않았다(§명명된 잔여의 «델타 진술» 요구와 같은 경계).
|
|
218
|
+
|
|
193
219
|
## 왜 이 이름이 지금 필요했나 — 측정된 공백
|
|
194
220
|
|
|
195
221
|
낱말 실측(2026-09-09, 컨트롤 동반): 「거버넌스 엔지니어링 / governance engineering」은 이 레포
|
|
@@ -56,6 +56,28 @@ cheap signal accumulation; weekly = one considered proposal.
|
|
|
56
56
|
- **`claude/` branch prefix only.** Do not enable "unrestricted branch pushes" for this routine.
|
|
57
57
|
- **Methodology mirror stays clean.** Daily digests live on the GitHub Issue, never in `tracks/**`
|
|
58
58
|
(gitignored) and never committed to the methodology tree.
|
|
59
|
+
|
|
60
|
+
### 3b. The operator's own machine — a narrower auto-merge (2026-11-04)
|
|
61
|
+
|
|
62
|
+
The remote routine above is unchanged. **On the hub operator's machine only**, a RECORDED standing
|
|
63
|
+
request (quoted words · dated lease · scope — `CLAUDE.local.md`, never a session's own initiative)
|
|
64
|
+
lets `scripts/selfdev_loop.sh` merge a self-dev PR unattended when **all** of these hold, each
|
|
65
|
+
checked mechanically after the builder has finished (the builder never grades its own merge):
|
|
66
|
+
|
|
67
|
+
1. **Direction was human** — the PR's `request: «…»` equals, character for character, an open
|
|
68
|
+
operator request from a session checklist (`seed=human` in `scripts/selfdev_queue.py`).
|
|
69
|
+
Machine-proposed candidates (digest, absorption queue, correction moments, card `[planned]`)
|
|
70
|
+
open a PR and wait. This keeps goal-quench §Autonomy Ladder's «direction is always human».
|
|
71
|
+
2. **Reversible by path** — every changed file is on `scripts/selfdev_merge_tier.sh`'s allow-list
|
|
72
|
+
(docs, knowledge outside rules/gate docs, skill docs, CATALOG, an *added* lane), ≤ 300 lines.
|
|
73
|
+
3. **CI green**, and the branch's 4-axis marker carries `crossfamily: panel(…)`.
|
|
74
|
+
4. **Not demoted** — an operator `Revert "selfdev: …"` on main in the last 30 days holds everything
|
|
75
|
+
(goal-quench §Autonomy Ladder (d), rollback feeds demotion).
|
|
76
|
+
|
|
77
|
+
What this gives up, by the operator's choice: goal-quench Path 2's «review before consumption» for
|
|
78
|
+
that narrow class — the review moves to the morning report (`tracks/_meta/selfdev/report_<date>.md`)
|
|
79
|
+
and to revert. Publish · delete · tag · history rewrite stay human on every path. A plugin user's
|
|
80
|
+
install does not ship this behaviour: for them the same records become an issue or PR *proposal*.
|
|
59
81
|
- **Cost ceiling.** Both arms run `WebSearch`/`WebFetch`. Daily draws subscription usage and counts
|
|
60
82
|
against the per-account routine daily cap; keep the daily prompt to collection-only.
|
|
61
83
|
- **Cite-verify (PR #112 lesson, 2026-06-22) — do not weaken.** Any citation / source / version claim
|
|
@@ -5345,3 +5345,57 @@
|
|
|
5345
5345
|
outcome: "with the section: named G-TRIG-05 PASS->FAIL and G-TRIG-02 FAIL->PASS and said the flat rate hides it; without: «can't tell from this file»"
|
|
5346
5346
|
evidence: "PR body of feat/live-eval-moved-since-previous"
|
|
5347
5347
|
tokens: "115131 + 115035"
|
|
5348
|
+
- date: 2026-11-04
|
|
5349
|
+
agent: "general-purpose (sonnet) ×1 — consumer-side measurement of the published 3.37.0 destructive-op hook (purpose: independence)"
|
|
5350
|
+
task: "npm pack the published package into an empty /private/tmp dir (no install scripts, no ~/.claude), feed the hook synthetic PreToolUse JSON for bypass/default modes and FH_DESTRUCTIVE_BLOCK=0, compare its sha with main"
|
|
5351
|
+
outcome: "5/5 as designed — bypass force-push exit 2 · FH_DESTRUCTIVE_BLOCK=0 advisory · default advisory · git status allowed · rm -rf on an arbitrary absolute path allowed (documented residual); hook sha equals main. Caught the governor's wrong package name in the card (forge-harness → @chrono-meta/fh-gate)"
|
|
5352
|
+
evidence: "fh_completed_2026-11-04.md «세션 bebe7abb» · /private/tmp/fh-3370-consumer.LG6V"
|
|
5353
|
+
tokens: "134376"
|
|
5354
|
+
- date: 2026-11-04
|
|
5355
|
+
agent: "general-purpose (sonnet) ×1 — diagnosis of a suspected double count in .subagent_dispatch_tally.detail (purpose: context)"
|
|
5356
|
+
task: "find every writer of the tally/detail rows, reproduce one SubagentStop on a scratch copy, compare live counts"
|
|
5357
|
+
outcome: "suspicion refuted — one writer, one row per event; 2026-11-03 tally 37 = detail count 37 (governor re-checked); the «two rows» were internal-agent rows mixed into detail"
|
|
5358
|
+
evidence: "fh_completed_2026-11-04.md «세션 bebe7abb»"
|
|
5359
|
+
tokens: "129495"
|
|
5360
|
+
- date: 2026-11-04
|
|
5361
|
+
agent: "general-purpose (sonnet) ×1 — blind run of the edited frontier-digest GeekNews section (purpose: independence, floor-tier first use)"
|
|
5362
|
+
task: "follow only the edited section (curl -sL …/rss/news) and report bytes, entries, items and the progress fragment"
|
|
5363
|
+
outcome: "28,635 B · 20 entries · «GeekNews 5 items» — matched the governor's same-minute measurement; old command (no -L) was 0 B"
|
|
5364
|
+
evidence: "PR #1015 body · marker .axes_23_passed_fix_digest-geeknews-redirect_2026-11-04"
|
|
5365
|
+
tokens: "122365"
|
|
5366
|
+
- date: 2026-11-04
|
|
5367
|
+
agent: "fh-meta:beginner (sonnet) ×1 — blind cold-read of a public FoD guide draft as a non-developer and a skeptical developer (purpose: independence)"
|
|
5368
|
+
task: "read only docs/WHY_GATE.md (cross-refs GUIDE/README allowed) and report where a non-developer stops, claims stronger than their own evidence, open developer questions, top 3 edits"
|
|
5369
|
+
outcome: "flagged undefined terms (hook/MCP/PR/corpus/p) and 9 over-strong claims (unqualified 100%, «won't happen», unmeasured «continues the work») — all applied: glossary, limits beside summary numbers, «미측정» marks, softened wording"
|
|
5370
|
+
evidence: "FoD PR #214 body (Review section)"
|
|
5371
|
+
tokens: "77735"
|
|
5372
|
+
- date: 2026-11-05
|
|
5373
|
+
agent: "fh-commons:quench-challenger (opus) ×1 — Axis 2 adversarial pass on the live-eval Instrument line (purpose: independence)"
|
|
5374
|
+
task: "attack the staged diff of probe_live_eval_lib.py + test_probe_live_eval_lanes.sh: verdict/rc movement, previous-report reader, false claims, lane discrimination, npm-install behaviour"
|
|
5375
|
+
outcome: "1 MED (sim runner not fingerprinted — fixed, IF4 added) · 3 LOW (wording, IF1 skip reason, IF3 fixture path — fixed; reader negative fixture left out of scope) · verdict path confirmed untouched"
|
|
5376
|
+
evidence: "selfdev PR auto/selfdev-2026-11-05-1 body · marker .axes_23_passed_auto_selfdev-2026-11-05-1_2026-11-05"
|
|
5377
|
+
tokens: "47401"
|
|
5378
|
+
- date: 2026-11-05
|
|
5379
|
+
agent: "web-fetch (sonnet) ×1 — summary of a public engineering blog post (purpose: context)"
|
|
5380
|
+
task: "read the Kurly QA AI Hub post (spec → TC → execution → defect) and return a faithful structured summary with exact numbers"
|
|
5381
|
+
outcome: "5-stage pipeline, server+per-PC worker architecture, golden-TC effect (95/26/15) and measured results; used for the QASP comparison note"
|
|
5382
|
+
evidence: "tracks/_meta/insight_kurly_qa_hub_vs_qasp_2026-11-05.md"
|
|
5383
|
+
tokens: "24220"
|
|
5384
|
+
- date: 2026-11-05
|
|
5385
|
+
agent: "general-purpose (sonnet) ×2 — source reading of a TC generator (CaseCraft V6.2) and of QASP's quality mechanisms (purpose: context)"
|
|
5386
|
+
task: "inventory each tool's pipeline, noise/error mechanisms (enforced vs prose), blind spots, with file:line"
|
|
5387
|
+
outcome: "governor re-checked the three key CaseCraft claims in source (verify_reorder_integrity has no caller · @skip_on_error on redefine/reorder · subject overwritten by label) and two QASP claims (tc_final_gate and context_checker not called from the generation path) — all held; basis of docs/report/casecraft_parity_2026-11-05.md"
|
|
5388
|
+
evidence: "qasp-dev #381 body · fh_completed_2026-11-05.md"
|
|
5389
|
+
tokens: "279610 + 244051"
|
|
5390
|
+
- date: 2026-11-05
|
|
5391
|
+
agent: "Explore (sonnet) ×2 — FoD approval-flow map and Clawd naming inventory (purpose: context)"
|
|
5392
|
+
task: "map gate decision → once-pass → card → Stop path; classify every clawd occurrence (rename / migrate / keep / dead)"
|
|
5393
|
+
outcome: "🟥 both read a STALE checkout (fod-v1-src sat on an old branch at 1.0.16) — caught by the governor from the report's own first line; the builder was told to re-verify everything against 1.0.60, and the rename brief carries a stale-inventory warning (current main: 187 files / 786 lines)"
|
|
5394
|
+
evidence: "tracks/_meta/fod_checkpoint_approval_brief_2026-11-05.md · fod_clawd_rename_brief_2026-11-05.md"
|
|
5395
|
+
tokens: "286835 + 147956"
|
|
5396
|
+
- date: 2026-11-05
|
|
5397
|
+
agent: "general-purpose (sonnet) ×1 — builder for FoD checkpoint batch approval (purpose: context; an Opus launch was stopped at once with zero changes — subagents are Sonnet/Haiku only)"
|
|
5398
|
+
task: "queue irreversible commands in autopilot, one card at Stop, batch confirm, passes, Stop decision:block telling the agent; lanes + revert probes + full suite"
|
|
5399
|
+
outcome: "CK1–CK8 and full suite 5516/0/4 reported; governor re-ran the suite, measured the desktop entrypoint (claude-desktop), and fixed two cross-family findings (no card → no queue; card must really show) as CK9–CK11; final 5519/0/4; merged as FoD #222"
|
|
5400
|
+
evidence: "FoD PR #222 body"
|
|
5401
|
+
tokens: "300317"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrono-meta/fh-gate",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.38.1",
|
|
4
4
|
"description": "FH runtime adapters — run FH governance, skills, and agents via Claude or Codex with machine-parseable gates.",
|
|
5
5
|
"homepage": "https://github.com/chrono-meta/forge-harness#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -369,6 +369,7 @@
|
|
|
369
369
|
"scripts/test_push_zone_lanes.sh",
|
|
370
370
|
"scripts/test_regression_guard_ci_lanes.sh",
|
|
371
371
|
"scripts/test_regression_guard_sibling_lanes.sh",
|
|
372
|
+
"scripts/test_regression_guard_codecomment_lanes.sh",
|
|
372
373
|
"scripts/test_relay_channel_lanes.sh",
|
|
373
374
|
"scripts/test_remote_marker_gate_lanes.sh",
|
|
374
375
|
"scripts/test_residency_admission_lanes.sh",
|
|
@@ -2,7 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
### [Unreleased]
|
|
4
4
|
|
|
5
|
-
### [3.
|
|
5
|
+
### [3.38.1] — 2026-11-06
|
|
6
|
+
|
|
7
|
+
Documentation-only patch.
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- `knowledge/shared/harness-core/governance_engineering_definition.md` gains a section that maps the doctrine to outside terms: execution-layer guardrail, action-class/risk-tier gating, error budget, approval fatigue, policies on paths, approval-layer bypass, harness as a runtime object, classifier FP/FN by workload. Each row has a source and a same/partial/different verdict; unread source bodies are marked unverified. No doctrine sentence changes (#1029).
|
|
11
|
+
- Sub-agent invocation log entries for 2026-11-05 (#1028).
|
|
12
|
+
|
|
13
|
+
### [3.38.0] — 2026-11-05
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- Self-dev loop (`scripts/selfdev_loop.sh`): an unattended loop in its own clone, with a path-tier auto-merge (#1016). `SELFDEV_NO_MERGE` opens PRs but never merges; its parsing is fail-closed, and the template plist ships it set (#1024). A builder that is not logged in is reported as a HARNESS-ERROR, and the template plist sets `USER` (#1024).
|
|
17
|
+
- Queue builder (`scripts/selfdev_queue.py`): a row open only in an older checklist is `seed=recheck` and cannot authorize an auto-merge. If today's frontier digest is not yet written, yesterday's is used and labelled (#1023).
|
|
18
|
+
- live-eval reports carry an Instrument line: git blob ids of the runner, scorer, probes and sim runner (#1025).
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- Regression guard F4 no longer counts Python comments as operational tokens. Only the comment text is removed, after its position is verified; any mismatch or parse failure counts unfiltered. Shell is not filtered (#1022).
|
|
22
|
+
- pipefail early-exit pipelines across 100+ lines (#1019, #1020) and a SIGPIPE race in a regression-guard CI lane (#1021).
|
|
23
|
+
- frontier-digest follows the GeekNews feedburner redirect (#1015).
|
|
24
|
+
|
|
25
|
+
## [3.37.0] — 2026-11-04 — 권한 무시 모드에서 파괴 명령 기본 차단 · 카드 상태 태그 · 정정 순간 마이닝 · live-eval 직전 밤 대비 변화 · «측정 못 함» 을 판정으로 내던 채널 여섯
|
|
6
26
|
|
|
7
27
|
새 스크립트와 새 레인이 들어가고 게이트 하나의 기본 동작이 조여져서 버전 정책상 minor 다.
|
|
8
28
|
|
|
@@ -179,10 +179,14 @@ row today; known-negative = an empty body yields the UNMEASURED line, not `0`.
|
|
|
179
179
|
### GeekNews — news.hada.io (RSS)
|
|
180
180
|
|
|
181
181
|
```bash
|
|
182
|
-
curl -
|
|
182
|
+
curl -sL --max-time 8 "https://news.hada.io/rss/news"
|
|
183
183
|
```
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
🟥 **`-L` is load-bearing (2026-11-04).** `/rss/news` now answers `302 → feeds.feedburner.com/geeknews-feed`;
|
|
186
|
+
without `-L` the body is **0 bytes**, with `-L` it was 28,635 B / 20 `<entry>` (same run). A 0-byte body is
|
|
187
|
+
`UNMEASURED (empty body)`, never `0 items`.
|
|
188
|
+
|
|
189
|
+
Korean dev-news aggregator (HN-equivalent), AI-heavy. **The `/rss/news` path serves an Atom feed** (`<feed>`/`<entry>`, NOT RSS `<item>` — verified 2026-06-20: 50 `<entry>` elements, 0 `<item>`; 2026-11-04 after the redirect: 20 `<entry>`, 0 `<item>`). Parse `<entry>` → `<title>` + `<link href>`; keep AI/agent/LLM/harness-relevant items only. `/rss/news` is a *general* dev-news feed, so if 0 AI-relevant items remain after filtering, **drop GeekNews from this run's progress line rather than padding to 5**. Endpoint verified HTTP 200 (2026-06-20); `/rss/new` and `/rss/topics` 404 — use `/rss/news`. Max 5 items.
|
|
186
190
|
|
|
187
191
|
### Launch channels and vendor feeds (added 2026-10-17; ids match SKILL.md Step 1)
|
|
188
192
|
|
|
@@ -196,7 +200,7 @@ were live-checked once on 2026-10-17 (HTTP status · entries counted by `<entry`
|
|
|
196
200
|
- **Product Hunt (`product-hunt`)**: official Atom feed `https://www.producthunt.com/feed` (2026-10-17: 200, 50 `<entry>`). ⚠️ the `?category=` parameter returned a byte-near-identical feed, so it is not shown to filter — filter by keyword yourself. Parse `<entry>` title + link.
|
|
197
201
|
- **Show HN (`show-hn`)**: `'https://hn.algolia.com/api/v1/search_by_date?tags=show_hn&query=<KW>&hitsPerPage=8&numericFilters=points%3E10'` (quoted; 2026-10-17: 200, 8 hits for «agent») for the same keywords as the HN leg. Cite the HN item id.
|
|
198
202
|
- **GeekNews (`geeknews`)**: unchanged section above (still wired).
|
|
199
|
-
- **Vendor changelogs/blogs (`vendor-changelogs`)**: Feeds: OpenAI `https://openai.com/news/rss.xml` (200, RSS) · Google DeepMind `https://deepmind.google/blog/rss.xml` (200, RSS). HTML pages, no feed found (200, parse with WebFetch): Anthropic `https://www.anthropic.com/news` · Gemini API changelog `https://ai.google.dev/gemini-api/docs/changelog` · Meta AI `https://ai.meta.com/blog/` · Cursor `https://cursor.com/changelog`. Keep entries newer than the previous digest; cite the entry URL.
|
|
203
|
+
- **Vendor changelogs/blogs (`vendor-changelogs`)**: Feeds: OpenAI `https://openai.com/news/rss.xml` (200, RSS) · Google DeepMind `https://deepmind.google/blog/rss.xml` (200, RSS). HTML pages, no feed found (200, parse with WebFetch): Anthropic `https://www.anthropic.com/news` · Gemini API changelog `https://ai.google.dev/gemini-api/docs/changelog` (⚠️ 2026-11-04: `301 → https://aistudio.google.com/docs/changelog`, a JS shell to curl — read it with WebFetch or report `UNMEASURED (js shell)`) · Meta AI `https://ai.meta.com/blog/` · Cursor `https://cursor.com/changelog`. Keep entries newer than the previous digest; cite the entry URL.
|
|
200
204
|
|
|
201
205
|
Recall regression: `scripts/test_frontier_digest_recall.sh` against `scripts/fixtures/frontier_digest_recall.tsv` (structural only: each known item must have a channel in the Step 1 list; the channel assignments are expectations, not announcement evidence — do not cite the lane as measured recall).
|
|
202
206
|
|
|
@@ -155,7 +155,7 @@ while IFS= read -r f; do
|
|
|
155
155
|
[ -n "$f" ] || continue
|
|
156
156
|
[ -f "$f" ] && [ -r "$f" ] || continue
|
|
157
157
|
LC_ALL=C grep -Iq . "$f" 2>/dev/null || continue # 바이너리는 대상이 아니다
|
|
158
|
-
[ -n "$(tr -d '[:space:]' < "$f" 2>/dev/null |
|
|
158
|
+
[ -n "$(tr -d '[:space:]' < "$f" 2>/dev/null | cut -c1-1)" ] || continue # 공백뿐 = 내용 없음
|
|
159
159
|
|
|
160
160
|
# 판정은 파이프를 통과시키지 않는다(PIPE-VERDICT).
|
|
161
161
|
out=$(cd "$PEER_ROOT" && bun "$CLI" --from-file "$f" 2>&1); rc=$?
|
|
@@ -80,7 +80,7 @@ ORDER_writes="read-only write-local write-remote"
|
|
|
80
80
|
_idx() { local v="$1" i=0 x; for x in $ORDER_writes; do [ "$x" = "$v" ] && { printf '%d' "$i"; return; }; i=$((i+1)); done; printf '%d' -1; }
|
|
81
81
|
|
|
82
82
|
_key() { # $1=capfile $2=key
|
|
83
|
-
sed -n "s/^[[:space:]]*$2:[[:space:]]*//p" "$1" 2>/dev/null |
|
|
83
|
+
sed -n "s/^[[:space:]]*$2:[[:space:]]*//p" "$1" 2>/dev/null | sed -n 1p \
|
|
84
84
|
| sed 's/[[:space:]]*$//'
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -416,7 +416,7 @@ $out2"
|
|
|
416
416
|
# 조용히 실패한다. 그 실패를 「안 썼다」로 렌더하면 [S] 를 고치면서 같은 얼굴의 결함을
|
|
417
417
|
# 새로 만드는 것이다 — 실측: `core.pager` 를 심으려던 capability 가 수리 직후
|
|
418
418
|
# **VERIFIED** 를 받았다(실물 레포는 깨끗해졌지만 판정이 거짓). 미측정은 미측정으로 낸다.
|
|
419
|
-
if [ "$rc" -ge 10 ] || printf '%s' "$out" | grep -
|
|
419
|
+
if [ "$rc" -ge 10 ] || printf '%s' "$out" | grep -ciE 'command not found|no such file|not a git repository' >/dev/null; then
|
|
420
420
|
printf '⚠️ UNVERIFIABLE %s — 진입점이 이 샌드박스에서 못 돌았다(rc=%s). 미측정이지 통과 아님\n' "$cap" "$rc"
|
|
421
421
|
return "$RC_UNVERIFIABLE"
|
|
422
422
|
fi
|
package/scripts/chamber_run.sh
CHANGED
|
@@ -111,7 +111,7 @@ if grep -q '<one line: the capability' "$WS/INTENT.md"; then
|
|
|
111
111
|
fi
|
|
112
112
|
# gate (a) is "artifact exists WITH real content", not just "placeholder removed" (Axis-2 LOW-6): require
|
|
113
113
|
# at least one non-empty numbered success condition so a gutted INTENT.md doesn't pass.
|
|
114
|
-
if ! awk '/^## Success conditions/{f=1;next} /^## /{f=0} f && /^[0-9]+\.[[:space:]]*[^[:space:]]/{print; exit}' "$WS/INTENT.md" | grep -
|
|
114
|
+
if ! awk '/^## Success conditions/{f=1;next} /^## /{f=0} f && /^[0-9]+\.[[:space:]]*[^[:space:]]/{print; exit}' "$WS/INTENT.md" | grep -c . >/dev/null; then
|
|
115
115
|
# 계약을 **에러 메시지가 가르친다.** 이 형식은 CHAMBER_RUN_SKELETON.md 에 한 글자도 없어서,
|
|
116
116
|
# 스켈레톤만 읽고 쓴 INTENT 가 반려됐다 — gate-locality(계약이 게이트 구현에만 산다).
|
|
117
117
|
# 같은 런에서 step 6 도 같은 이유로 막혔다(N=2). 문서는 드리프트하지만 에러는 코드와 같이 산다.
|
|
@@ -190,7 +190,7 @@ fi
|
|
|
190
190
|
# PARTIAL-EMIT listed FIRST in every alternation so it is never mis-extracted as its EMIT substring.
|
|
191
191
|
VERDICT=$(grep -ioE '^VERDICT:[[:space:]]*(PARTIAL-EMIT|EMIT|KILL|CURATED|NOT-APPLICABLE)' "$WS/EMISSION_VERDICT.md" 2>/dev/null | head -1 | grep -ioE 'PARTIAL-EMIT|EMIT|KILL|CURATED|NOT-APPLICABLE' | head -1 | tr 'a-z' 'A-Z')
|
|
192
192
|
# a bare "## Verdict:" prose line (run #3 style) also counts if it names KILL/EMIT
|
|
193
|
-
[ -z "$VERDICT" ] && VERDICT=$(grep -ioE 'VERDICT[: *]+\**(PARTIAL-EMIT|EMIT|KILL|CURATED|NOT-APPLICABLE)' "$WS/EMISSION_VERDICT.md" 2>/dev/null | grep -ioE 'PARTIAL-EMIT|EMIT|KILL|CURATED|NOT-APPLICABLE' |
|
|
193
|
+
[ -z "$VERDICT" ] && VERDICT=$(grep -ioE 'VERDICT[: *]+\**(PARTIAL-EMIT|EMIT|KILL|CURATED|NOT-APPLICABLE)' "$WS/EMISSION_VERDICT.md" 2>/dev/null | grep -ioE 'PARTIAL-EMIT|EMIT|KILL|CURATED|NOT-APPLICABLE' | sed -n 1p | tr 'a-z' 'A-Z')
|
|
194
194
|
if [ -z "$VERDICT" ]; then
|
|
195
195
|
echo " ⛔ step 5 BLOCKED: no VERDICT (EMIT|PARTIAL-EMIT|KILL|CURATED|NOT-APPLICABLE) found in $WS/EMISSION_VERDICT.md, re-run."; exit 1
|
|
196
196
|
fi
|
|
@@ -251,7 +251,7 @@ do_digest() {
|
|
|
251
251
|
[ -n "$_cp_git" ] && printf '%s\n' "$_cp_git"
|
|
252
252
|
echo
|
|
253
253
|
echo "── 운영자 발화 (앞 25건) ──"
|
|
254
|
-
awk '/^## 운영자 발화/{f=1;next} /^## /{f=0} f' "$sealfile" 2>/dev/null | grep -E '^[0-9]+\.|^제외:|^합계:' |
|
|
254
|
+
awk '/^## 운영자 발화/{f=1;next} /^## /{f=0} f' "$sealfile" 2>/dev/null | grep -E '^[0-9]+\.|^제외:|^합계:' | sed -n '1,25p'
|
|
255
255
|
echo
|
|
256
256
|
echo " ⚠️ 이 원장은 **축자 기록**이다. 여기 있는 발화가 기록에 착지했는지는 별도 검증이다"
|
|
257
257
|
echo " (scripts/utterance_landing_check.sh)."
|
|
@@ -265,7 +265,7 @@ do_digest() {
|
|
|
265
265
|
# ─────────────────────────────────────────────────────────────────────────────
|
|
266
266
|
do_score() {
|
|
267
267
|
local transcript="$1" outdir="$2"
|
|
268
|
-
local latest; latest="$(ls -t "$outdir"/seal_*.md 2>/dev/null |
|
|
268
|
+
local latest; latest="$(ls -t "$outdir"/seal_*.md 2>/dev/null | sed -n 1p)"
|
|
269
269
|
echo "🟥 REFUTED — 전사본 grep 채점은 성립하지 않는다. 아무 판정도 여기에 의존하지 않는다."
|
|
270
270
|
echo " 실측(2026-08-08 첫 실압축): 압축 후에도 전사본이 전 레코드를 보존한다(ⓐ)."
|
|
271
271
|
echo " → grep 은 손실 0 을 영원히 보고한다 = fail-open 계기. 캘리브레이션 부족이 아니라 가정 오류."
|
|
@@ -298,7 +298,7 @@ self_test() {
|
|
|
298
298
|
do_seal "$T/tr.jsonl" "$T/out" "sess1" >/dev/null 2>&1; rc=$?
|
|
299
299
|
t "seal 정상 종료" 0 "$rc"
|
|
300
300
|
|
|
301
|
-
local sf; sf="$(ls "$T/out"/seal_*.md 2>/dev/null |
|
|
301
|
+
local sf; sf="$(ls "$T/out"/seal_*.md 2>/dev/null | sed -n 1p)"
|
|
302
302
|
[ -n "$sf" ] && r=YES || r=NO
|
|
303
303
|
t "봉인 파일 생성" YES "$r"
|
|
304
304
|
|
|
@@ -332,7 +332,7 @@ self_test() {
|
|
|
332
332
|
# ── 회귀 레인: SIGPIPE 소비 누락 (2026-08-08 실측 재현) ──
|
|
333
333
|
# 소비자가 파이프를 먼저 닫아도 마커는 소비돼야 한다. 인쇄 뒤에 rm 을 두면 여기서 되돌아온다.
|
|
334
334
|
do_seal "$T/tr.jsonl" "$T/out3" "sess3" >/dev/null 2>&1
|
|
335
|
-
do_digest "$T/out3" "sess3" 2>/dev/null | head -1 >/dev/null 2>&1
|
|
335
|
+
do_digest "$T/out3" "sess3" 2>/dev/null | head -1 >/dev/null 2>&1 # pipefail-intentional: 이 레인의 자극이다 — 소비자가 파이프를 먼저 닫는 상황을 일부러 만든다(codex R1 지목)
|
|
336
336
|
d2="$(do_digest "$T/out3" "sess3" 2>/dev/null | wc -c | tr -d ' ')"
|
|
337
337
|
t "파이프 조기 종료 후에도 소비됨 (무한 재주입 방지)" 0 "$d2"
|
|
338
338
|
|
|
@@ -349,7 +349,7 @@ self_test() {
|
|
|
349
349
|
t "빈 페이로드에도 봉인은 생성된다" YES "$rc"
|
|
350
350
|
[ -f "$T/pl/.last_payload" ] && rc=YES || rc=NO
|
|
351
351
|
t "원본 페이로드가 기록된다 (원인 추적 가능)" YES "$rc"
|
|
352
|
-
local sf2; sf2="$(ls -t "$T/pl"/seal_*.md 2>/dev/null |
|
|
352
|
+
local sf2; sf2="$(ls -t "$T/pl"/seal_*.md 2>/dev/null | sed -n 1p)"
|
|
353
353
|
grep -qE 'payload: (fallback-session|fallback-mtime-UNVERIFIED|unresolved)' "$sf2" 2>/dev/null && rc=YES || rc=NO
|
|
354
354
|
t "payload 상태가 typed 로 남는다 (무음 아님)" YES "$rc"
|
|
355
355
|
|
|
@@ -406,7 +406,7 @@ self_test() {
|
|
|
406
406
|
# #11 신선도 가드가 **구형식 pending(경로 한 줄)** 에서 무음으로 꺼지지 않는다.
|
|
407
407
|
# 실측 2026-08-13: 이 경로로 5일 묵은 봉인이 "직전 압축"이라고 주장하며 실제 세션에 주입됐다.
|
|
408
408
|
do_seal "$T/tr.jsonl" "$T/out11" "SESSA" >/dev/null 2>&1
|
|
409
|
-
local p11; p11="$(ls "$T/out11"/.pending_* 2>/dev/null |
|
|
409
|
+
local p11; p11="$(ls "$T/out11"/.pending_* 2>/dev/null | sed -n 1p)"
|
|
410
410
|
cut -f1 "$p11" > "$p11.t" 2>/dev/null && mv "$p11.t" "$p11" # 구형식으로 강등 = 봉인 시각 소실
|
|
411
411
|
local d11; d11="$(do_digest "$T/out11" "SESSA" 2>/dev/null)"
|
|
412
412
|
case "$d11" in *"직전 압축 전에"*) rc=YES ;; *) rc=NO ;; esac
|
|
@@ -425,7 +425,7 @@ self_test() {
|
|
|
425
425
|
# #11c **미래 시각**도 신선도 판정 불가다 — 음수 _age 는 `-gt 43200` 을 통과 못 해서
|
|
426
426
|
# 가드가 또 조용히 꺼진다. cross-family(codex/gpt-5.5)가 이번 수리 안에서 지목한 세 번째 얼굴.
|
|
427
427
|
do_seal "$T/tr.jsonl" "$T/out11c" "SESSA" >/dev/null 2>&1
|
|
428
|
-
local p11c; p11c="$(ls "$T/out11c"/.pending_* 2>/dev/null |
|
|
428
|
+
local p11c; p11c="$(ls "$T/out11c"/.pending_* 2>/dev/null | sed -n 1p)"
|
|
429
429
|
awk -v ts="$(( $(date +%s) + 86400 ))" 'BEGIN{FS=OFS="\t"}{$3=ts;print}' "$p11c" > "$p11c.t" \
|
|
430
430
|
&& mv "$p11c.t" "$p11c"
|
|
431
431
|
local d11c; d11c="$(do_digest "$T/out11c" "SESSA" 2>/dev/null)"
|
|
@@ -441,7 +441,7 @@ self_test() {
|
|
|
441
441
|
# 검증: 이 레인 없이 `elif [ "$_age" -gt 43200 ]` 가지를 통째로 지워도 39쌍 전부 초록이었다.
|
|
442
442
|
# (Axis 2 M-3 지목. 세션 일치 케이스라 주장은 유지되고 나이는 부가정보로 붙는다 — M-4)
|
|
443
443
|
do_seal "$T/tr.jsonl" "$T/out11d" "SESSA" >/dev/null 2>&1
|
|
444
|
-
local p11d; p11d="$(ls "$T/out11d"/.pending_* 2>/dev/null |
|
|
444
|
+
local p11d; p11d="$(ls "$T/out11d"/.pending_* 2>/dev/null | sed -n 1p)"
|
|
445
445
|
awk -v ts="$(( $(date +%s) - 432000 ))" 'BEGIN{FS=OFS="\t"}{$3=ts;print}' "$p11d" > "$p11d.t" \
|
|
446
446
|
&& mv "$p11d.t" "$p11d"
|
|
447
447
|
local d11d; d11d="$(do_digest "$T/out11d" "SESSA" 2>/dev/null)"
|
|
@@ -456,7 +456,7 @@ self_test() {
|
|
|
456
456
|
# 셸 즉시 종료 → exit 0 미도달 → stdout 통째 폐기. 이 파일의 「훅은 절대 비영 종료 안 한다」
|
|
457
457
|
# 불변식이 입력 하나로 깨지던 자리다(Axis 2 M-1, 실측 재현).
|
|
458
458
|
do_seal "$T/tr.jsonl" "$T/out11e" "SESSA" >/dev/null 2>&1
|
|
459
|
-
local p11e; p11e="$(ls "$T/out11e"/.pending_* 2>/dev/null |
|
|
459
|
+
local p11e; p11e="$(ls "$T/out11e"/.pending_* 2>/dev/null | sed -n 1p)"
|
|
460
460
|
awk 'BEGIN{FS=OFS="\t"}{$3="08123456";print}' "$p11e" > "$p11e.t" && mv "$p11e.t" "$p11e"
|
|
461
461
|
local d11e d11e_rc
|
|
462
462
|
d11e="$(do_digest "$T/out11e" "SESSA" 2>&1)"; d11e_rc=$?
|
|
@@ -473,7 +473,7 @@ self_test() {
|
|
|
473
473
|
# 막는 마지막 층이고, 지우면 그 경우가 조용히 「일치」로 렌더된다. 이 레인은 회귀 앵커가 아니라
|
|
474
474
|
# **방어 가지가 살아 있다는 증명**이다 — 도달 경로가 있는 척하지 않으려고 여기 적는다.
|
|
475
475
|
do_seal "$T/tr.jsonl" "$T/out13" "SESSX" >/dev/null 2>&1
|
|
476
|
-
local sf13; sf13="$(ls -t "$T/out13"/seal_*.md 2>/dev/null |
|
|
476
|
+
local sf13; sf13="$(ls -t "$T/out13"/seal_*.md 2>/dev/null | sed -n 1p)"
|
|
477
477
|
printf '%s\t%s\t%s\n' "$sf13" "SESSX" "$(( $(date +%s) - 432000 ))" > "$T/out13/.pending_SESSA"
|
|
478
478
|
local d13; d13="$(do_digest "$T/out13" "SESSA" 2>/dev/null)"
|
|
479
479
|
case "$d13" in *"다른 세션(SESSX)"*) rc=YES ;; *) rc=NO ;; esac
|
|
@@ -501,7 +501,7 @@ self_test() {
|
|
|
501
501
|
# 남의 봉인을 09-30 두 세션 · 10-03 한 세션에 주입했다. 구형식은 아무도 더 이상 쓰지 않으므로
|
|
502
502
|
# 거기 남은 것은 정의상 낡다. 컨트롤: 같은 디렉터리에 내 마커를 넣으면 주입된다(계기 살아 있음).
|
|
503
503
|
do_seal "$T/tr.jsonl" "$T/out14" "SESSOLD" >/dev/null 2>&1
|
|
504
|
-
local sf14; sf14="$(ls -t "$T/out14"/seal_*.md 2>/dev/null |
|
|
504
|
+
local sf14; sf14="$(ls -t "$T/out14"/seal_*.md 2>/dev/null | sed -n 1p)"
|
|
505
505
|
rm -f "$T/out14"/.pending_* 2>/dev/null
|
|
506
506
|
printf '%s\n' "$sf14" > "$T/out14/.pending" # 08-08 이전 모양 — 경로 한 줄
|
|
507
507
|
local d14; d14="$(do_digest "$T/out14" "SESSNEW" 2>/dev/null | wc -c | tr -d ' ')"
|
|
@@ -558,7 +558,7 @@ self_test() {
|
|
|
558
558
|
# #5 세션 미상 폴백은 **미검증으로 라벨**돼야 한다 (침묵 추정 금지)
|
|
559
559
|
local sf5
|
|
560
560
|
printf '%s' '{}' | bash "$0" seal --dir "$T/out5" >/dev/null 2>&1
|
|
561
|
-
sf5="$(ls -t "$T/out5"/seal_*.md 2>/dev/null |
|
|
561
|
+
sf5="$(ls -t "$T/out5"/seal_*.md 2>/dev/null | sed -n 1p)"
|
|
562
562
|
# ⚠️ 성질은 "세션 미상 폴백이 **타입으로 남는다**" 이지 특정 값 하나가 아니다. 특정 값으로
|
|
563
563
|
# 과대명세했더니 **저자 머신의 전사본이 있어야만 통과**하는 레인이 됐고, selfcheck 에 배선하자
|
|
564
564
|
# CI 가 82db426 부터 빨개졌다(로컬 초록 ≠ CI 초록, 실측). 전사본이 없는 러너에서는 `unresolved`
|
|
@@ -638,11 +638,11 @@ if [ "$MODE" != "digest" ] && { [ -z "$TRANSCRIPT" ] || [ ! -f "$TRANSCRIPT" ];
|
|
|
638
638
|
# 세션 id 를 알면 **그 세션의 전사본**을 고른다. mtime 최신을 고르면 같은 레포에 세션이 둘 열려
|
|
639
639
|
# 있을 때 **남의 발화를 이 세션 것으로 봉인**한다(high 리뷰 #5, 이 디렉토리에 전사본 125개).
|
|
640
640
|
if [ "$SESSION" != "unknown" ] && [ -n "$SESSION" ]; then
|
|
641
|
-
_cand="$(ls "$_dir"/"$SESSION"*.jsonl 2>/dev/null |
|
|
641
|
+
_cand="$(ls "$_dir"/"$SESSION"*.jsonl 2>/dev/null | sed -n 1p)"
|
|
642
642
|
[ -n "$_cand" ] && PAYLOAD_STATUS="fallback-session"
|
|
643
643
|
fi
|
|
644
644
|
if [ -z "$_cand" ]; then
|
|
645
|
-
_cand="$(ls -t "$_dir"/*.jsonl 2>/dev/null |
|
|
645
|
+
_cand="$(ls -t "$_dir"/*.jsonl 2>/dev/null | sed -n 1p)"
|
|
646
646
|
# 세션 미상 → 최신을 쓰되 **검증 불가임을 타입으로 남긴다.** 침묵 추정 금지.
|
|
647
647
|
[ -n "$_cand" ] && PAYLOAD_STATUS="fallback-mtime-UNVERIFIED"
|
|
648
648
|
fi
|
|
@@ -285,7 +285,7 @@ _hd_latest() { # stdout: 가장 최근 리포트의 mtime (없으면 빈 문자
|
|
|
285
285
|
_hd_has_history() { # «굴러가는 설치인가» — 이것도 합집합으로 본다
|
|
286
286
|
for _d in "$FH/tracks/_meta" ${BE:+"$BE/$TM"}; do
|
|
287
287
|
[ -d "$_d" ] || continue
|
|
288
|
-
find "$_d" -maxdepth 1 -name 'fh_completed_*.md' -print 2>/dev/null | grep -
|
|
288
|
+
find "$_d" -maxdepth 1 -name 'fh_completed_*.md' -print 2>/dev/null | grep -c . >/dev/null && return 0
|
|
289
289
|
done
|
|
290
290
|
return 1
|
|
291
291
|
}
|
|
@@ -569,7 +569,7 @@ done
|
|
|
569
569
|
# here either (unlike tracks-meta above, which pmh-dev#68 PR #368 review flagged for exactly this).
|
|
570
570
|
INDEX_HEAD=""
|
|
571
571
|
if [ -f "$BE/INDEX.md" ]; then
|
|
572
|
-
INDEX_HEAD="$(grep -iE 'live pointer|Live pointers' -A 8 "$BE/INDEX.md" 2>/dev/null |
|
|
572
|
+
INDEX_HEAD="$(grep -iE 'live pointer|Live pointers' -A 8 "$BE/INDEX.md" 2>/dev/null | sed -n '1,10p')"
|
|
573
573
|
fi
|
|
574
574
|
|
|
575
575
|
# 5) Emit the freshness block (short + imperative). Only speak if there is something to say.
|
|
@@ -119,6 +119,16 @@ _log "Stage 1 (digest) OK for ${HUMAN_DATE}."
|
|
|
119
119
|
|
|
120
120
|
cd "$FH_DIR" || { _log "cannot cd to \$FH_DIR ($FH_DIR)"; exit 1; }
|
|
121
121
|
|
|
122
|
+
# ── Stage 2 retired here (2026-11-04) → scripts/selfdev_loop.sh ─────────────
|
|
123
|
+
# Measured: 25 consecutive daily runs (2026-10-11 → 2026-11-04) logged «Stage 2 SKIPPED: working tree
|
|
124
|
+
# is dirty» — the shared checkout always carries untracked experiment trees, so rail ① below made the
|
|
125
|
+
# stage permanently dead. The self-dev loop now runs in its own clone (selfdev_loop.sh, nightly), which
|
|
126
|
+
# has no shared-tree reason to skip. Set FD_AUTOPILOT_STAGE2=1 to run the old in-checkout stage anyway.
|
|
127
|
+
if [ "${FD_AUTOPILOT_STAGE2:-0}" != 1 ]; then
|
|
128
|
+
_log "Stage 2 retired — self-dev runs in its own clone via scripts/selfdev_loop.sh (FD_AUTOPILOT_STAGE2=1 to force the old path)."
|
|
129
|
+
exit 0
|
|
130
|
+
fi
|
|
131
|
+
|
|
122
132
|
# ── Stage 2 preconditions (rails ① ② ③) ─────────────────────────────────────
|
|
123
133
|
if [ -n "$(git status --porcelain 2>/dev/null)" ]; then
|
|
124
134
|
_log "Stage 2 SKIPPED: working tree is dirty (another session's uncommitted work may be live) — never touching it unattended."
|
|
@@ -43,7 +43,7 @@ COMMENT_RE='^[[:space:]]*(#|//|\*([[:space:]]|$)|/\*|--([[:space:]]|$)|;|"""|'"'
|
|
|
43
43
|
scan_one() { # $1=file → prints hits, returns 0 hit / 1 none / 3 unscannable
|
|
44
44
|
local f="$1" body v e r hits
|
|
45
45
|
[ -r "$f" ] || { echo "UNSCANNABLE $f (unreadable)"; return 3; }
|
|
46
|
-
if /usr/bin/file -b --mime-encoding "$f" 2>/dev/null | /usr/bin/grep -
|
|
46
|
+
if /usr/bin/file -b --mime-encoding "$f" 2>/dev/null | /usr/bin/grep -c '^binary$' >/dev/null; then
|
|
47
47
|
echo "UNSCANNABLE $f (binary)"; return 3; fi
|
|
48
48
|
# one pass: drop comment-led lines, then classify (VERDICT wins over EXPOSURE over IRREV per line)
|
|
49
49
|
# 🟥 pmh-dev #76 (2026-09-11): 여러 줄 docstring 의 «안쪽» 줄은 줄머리가 따옴표가 아니라 COMMENT_RE 를 통과했다 —
|
|
@@ -304,7 +304,7 @@ CLOSED_CHANNELS=""
|
|
|
304
304
|
_closed() { CLOSED_CHANNELS="$CLOSED_CHANNELS
|
|
305
305
|
- $1"; }
|
|
306
306
|
|
|
307
|
-
_field() { sed -n "s/^$2=//p" "$1" 2>/dev/null |
|
|
307
|
+
_field() { sed -n "s/^$2=//p" "$1" 2>/dev/null | sed -n 1p; }
|
|
308
308
|
|
|
309
309
|
# crossfamily 값 → 판에 찍을 계열 토큰. **enum 을 다시 판정하지 않는다** — 정본은
|
|
310
310
|
# `templates/.git-hooks/pre-commit` 의 validate_crossfamily_leg 이고, 여기서 그 로직을 다시
|
|
@@ -507,7 +507,7 @@ EOF
|
|
|
507
507
|
case "$n" in ''|*[!0-9]*) prog='미측정' ;; *) prog="+$n" ;; esac
|
|
508
508
|
fi
|
|
509
509
|
if [ "$prog" != "미측정" ] && [ -d "$p" ]; then
|
|
510
|
-
[ -n "$(git -C "$p" status --porcelain 2>/dev/null |
|
|
510
|
+
[ -n "$(git -C "$p" status --porcelain 2>/dev/null | sed -n 1p)" ] && prog="$prog*"
|
|
511
511
|
fi
|
|
512
512
|
|
|
513
513
|
# 마지막 움직임 — 커밋 시각과 claim 시각 중 **늦은 쪽**. 둘 다 없으면 빈칸(0 아님).
|
|
@@ -215,7 +215,7 @@ _add() { REASONS="${REASONS} - $1
|
|
|
215
215
|
_field() { # $1 = field name; echoes the value line or nothing
|
|
216
216
|
ls -1 "$RECDIR"/outbound_pr_"$TODAY"_*.md 2>/dev/null | while read -r f; do
|
|
217
217
|
grep -m1 -E "^[[:space:]]*$1:" "$f" 2>/dev/null
|
|
218
|
-
done |
|
|
218
|
+
done | sed -n 1p
|
|
219
219
|
}
|
|
220
220
|
_records=$(ls -1 "$RECDIR"/outbound_pr_"$TODAY"_*.md 2>/dev/null | wc -l | tr -d ' ')
|
|
221
221
|
|
|
@@ -39,6 +39,16 @@ cd "$REPO_ROOT" || exit 1
|
|
|
39
39
|
# scripts/sync_to_be_lanes.sh — forward-path lane suite for sync-to-be.sh, itself
|
|
40
40
|
# ACCEPTED_ABSENT above; added 2026-08-14, pmh-dev#69.
|
|
41
41
|
ACCEPTED_ABSENT=(
|
|
42
|
+
# 2026-11-04 — unattended self-dev loop. Operator-machine only, by the operator's own scope
|
|
43
|
+
# (CLAUDE.local.md §FH 자체개발 자율화: «일반 사용자는 이슈/PR 제안»): shipping it would put an
|
|
44
|
+
# auto-merging loop into every consumer install. self_evolution_routine.md §3b names these files to
|
|
45
|
+
# say exactly that; selfcheck resolves their rows as SKIP on a consumer tree.
|
|
46
|
+
"scripts/selfdev_loop.sh"
|
|
47
|
+
"scripts/selfdev_merge_tier.sh"
|
|
48
|
+
"scripts/selfdev_queue.py"
|
|
49
|
+
"scripts/test_selfdev_merge_tier_lanes.sh"
|
|
50
|
+
"scripts/test_selfdev_queue_lanes.sh"
|
|
51
|
+
"scripts/test_selfdev_loop_lanes.sh"
|
|
42
52
|
# 2026-10-19 — cartridge admission checker and its lanes. Not shipped yet on purpose: publishing cartridges
|
|
43
53
|
# (fh-cartridges) is an open operator decision, and shipping the checker would put it in the next npm
|
|
44
54
|
# release by default. selfcheck resolves its row as SKIP («not in files[], and absent») on a consumer tree.
|
|
@@ -33,12 +33,13 @@
|
|
|
33
33
|
# (gh non-zero but GitHub says MERGED → continue to verify; state unreadable → 4, outcome UNKNOWN)
|
|
34
34
|
|
|
35
35
|
set -uo pipefail
|
|
36
|
-
PR=""; RERUN=""; RERUN_SET=0; REPO="."; LEASE="NONE"
|
|
36
|
+
PR=""; RERUN=""; RERUN_SET=0; REPO="."; LEASE="NONE"; EXPECT_HEAD=""
|
|
37
37
|
_need() { [ $# -ge 2 ] || { echo "🟥 $1 needs a value" >&2; exit 2; }; }
|
|
38
38
|
while [ $# -gt 0 ]; do
|
|
39
39
|
case "$1" in
|
|
40
40
|
--rerun) _need "$@"; RERUN="${2-}"; RERUN_SET=1; shift 2 ;;
|
|
41
41
|
--repo) _need "$@"; REPO="${2:-}"; shift 2 ;;
|
|
42
|
+
--expect-head) _need "$@"; EXPECT_HEAD="${2-}"; shift 2 ;;
|
|
42
43
|
--lease) _need "$@"; LEASE="${2-}"; [ -n "$LEASE" ] || { echo "🟥 --lease needs a non-empty label" >&2; exit 2; }; shift 2 ;;
|
|
43
44
|
-h|--help) sed -n '2,30p' "$0"; exit 0 ;;
|
|
44
45
|
-*) echo "unknown arg: $1" >&2; exit 2 ;;
|
|
@@ -96,6 +97,12 @@ HEAD_OID=$(gh pr view "$PR" --json headRefOid -q .headRefOid < /dev/null) || HEA
|
|
|
96
97
|
git fetch -q origin "pull/$PR/head" < /dev/null 2>/dev/null || git fetch -q origin "$HEAD_OID" < /dev/null 2>/dev/null || true
|
|
97
98
|
git cat-file -e "$HEAD_OID^{commit}" 2>/dev/null \
|
|
98
99
|
|| { echo "🟥 HARNESS-ERROR (before merge): PR head $HEAD_OID not fetchable — not merging" >&2; exit 4; }
|
|
100
|
+
# --expect-head: the caller already judged ONE commit; merging any other is refused before the merge
|
|
101
|
+
# (selfdev_loop.sh, codex R2 2026-11-04 — without it the head this script records could be a commit
|
|
102
|
+
# pushed after the caller's checks, and --match-head-commit would then bind to the unchecked one).
|
|
103
|
+
if [ -n "$EXPECT_HEAD" ] && [ "$HEAD_OID" != "$EXPECT_HEAD" ]; then
|
|
104
|
+
echo "🟥 PR #$PR head is $HEAD_OID, not the checked $EXPECT_HEAD — not merging" >&2; exit 2
|
|
105
|
+
fi
|
|
99
106
|
echo "── PR #$PR head recorded: $HEAD_OID"
|
|
100
107
|
|
|
101
108
|
# 1b. coverage advisory — WARNING ONLY (never changes rc, never merges or refuses). post_squash_verify's precheck rejects a
|