@chrono-meta/fh-gate 3.7.0 → 3.8.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/CLAUDE.md +1 -1
- package/knowledge/shared/harness-core/self_evolution_routine.md +14 -0
- package/knowledge/shared/harness-core/sonnet_floor_doctrine.md +75 -0
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +32 -0
- package/package.json +4 -2
- 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 +33 -0
- package/plugins/fh-meta/skills/asset-placement-gate/SKILL.md +30 -0
- package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-preprep/skills/preprep/lane_attr_consistency.py +77 -6
- package/plugins/fh-preprep/skills/preprep/lane_screen_parity.py +14 -1
- package/plugins/fh-preprep/skills/preprep/test_preprep_lanes_rp.py +73 -3
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/adapters/peer_resolve.sh +4 -0
- package/scripts/cluster_capability_scan.sh +21 -2
- package/scripts/fh-run.sh +19 -2
- package/scripts/fh_track_resolve.sh +22 -0
- package/scripts/remote_marker_gate.sh +186 -0
- package/scripts/selfcheck.sh +3 -0
- package/scripts/test_adapter_lanes.sh +46 -1
- package/scripts/test_fh_run_resolver_lanes.sh +20 -3
- package/scripts/test_remote_marker_gate_lanes.sh +190 -0
- package/scripts/test_track_resolve_lanes.sh +51 -7
|
@@ -11,25 +11,25 @@
|
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "fh-meta",
|
|
14
|
-
"version": "3.
|
|
14
|
+
"version": "3.8.0",
|
|
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.8.0",
|
|
21
21
|
"description": "Project-agnostic utility skills — 5 skills (convergence-loop · deliberation · mcp-circuit-breaker · token-budget-gate · ko-tech-writer) + 1 agent (quench-challenger). 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.8.0",
|
|
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.8.0",
|
|
33
33
|
"description": "preprep — a presentation-preparation harness. 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
|
}
|
package/CLAUDE.md
CHANGED
|
@@ -581,7 +581,7 @@ Every new `SKILL.md` must clear a **6-item bar** (role-duplication via `/asset-p
|
|
|
581
581
|
|
|
582
582
|
**FH 자산을 수정하면**(SKILL.md · **SKILL_detail.md** · `.claude/rules/*.md` · `knowledge/shared/rules/*.md` · `templates/` · `CLAUDE.md` · substantive `knowledge/`·`docs/*.md` · `AGENTS.md` · **`scripts/**/*.sh`** · **`scripts/**/*.py`**(`.py` 는 2026-09-07 부터 — 그 전엔 출하 파이썬 7개가 게이트 밖이었다) · **에이전트 정의**(`plugins/*/agents/**/*.md` · `.claude/agents/**/*.md`)) **4축 검증 체인이 그 세션 첫 커밋 전에 자동 실행된다.** 사용자 요청 불요 — 제안이 아니라 의무 단계다.
|
|
583
583
|
|
|
584
|
-
**기계층 — 무엇이 실제로 막는지 나눠서 말한다(2026-08-04 실측).** `git commit` 은 `templates/.git-hooks/pre-commit` 이 **하드 차단**한다: 축이 전부 PASS 할 때까지 커밋이 안 되고, 아래 상세가 로드되지 않아도 훅이 막는다 — 이 산문은 훅 위의 살리언스 층이지 유일 floor 가 아니다. 다만 **훅은 클라이언트측이고 `--no-verify` 로 우회된다**(§Integration branch 가 이미 그렇게 말한다 — 두 곳이 어긋나 보이던 것을 여기서 맞춘다). **그리고 서버측 검증엔 남은 잔여가 있다(2026-08-12 재확인 — `contexts=[]` 서술은 stale, 정정됨)**: `main` 은 `enforce_admins: true` 로 **푸시 경로**(PR 경유)를 강제하고, legacy `required_status_checks.contexts` 는 **`["validate"]`** — `validate` 잡(`.github/workflows/validate.yml`, 메타데이터·`selfcheck.sh` 배선 레인)이 실제 **필수 체크**다. ⚠️ **`validate` 는 Axis 1 이 아니다** — Axis 1(`regression-guard.yml` → `templates/regression_guard.sh`)은 여전히 필수 체크가 **아니고**, 그 워크플로의 `paths:` 필터가 `SKILL.md`·`.claude/rules/*.md`·`CLAUDE.md`·`templates/*.md` 만 보므로 이 절이 4축 대상으로 나열한 `knowledge/shared/rules/*.md`·`docs/*.md`·`AGENTS.md`·`scripts/**/*.sh`·에이전트 정의·`SKILL_detail.md` 만 바뀐 PR 에는 **Axis 1 자체가 돌지도 않는다**. `validate` 쪽 남은 갭은 `strict: false`: 그 체크는 PR 브랜치에 푸시할 때마다 재실행되지만(오픈 시점 한정이 아니다), 그 뒤 main 이 움직여도 재검증을 강제하지 않으므로 **초록으로 남아 있는 체크가 실제로 병합되는 최신 트리를 본 적이 없을 수 있다.** 즉 서버가 강제하는 건 *체크가 초록인가*지 *그 체크가 지금의 main 을 봤는가*가 아니다. Axes 2–3(마커)·Axis 4(매니페스트)는 그 파일들이 `tracks/**` 로 gitignored 라 CI 가 **구조적으로 볼 수조차 없다**. 정직한 표현은 "하드 차단"이 아니라 "**가용한 가장 강한 층**"이다. **미해결 잔여**: `strict` 를 켜는 것도, Axis 1 을 필수 체크로 걸거나 그 `paths:` 를 넓히는 것도 운영자 결정이다(막 flaky 레인을 하나 기록한 참이라, 과차단이 override 를 습관화시키는 쪽으로 기울 수 있다).
|
|
584
|
+
**기계층 — 무엇이 실제로 막는지 나눠서 말한다(2026-08-04 실측).** `git commit` 은 `templates/.git-hooks/pre-commit` 이 **하드 차단**한다: 축이 전부 PASS 할 때까지 커밋이 안 되고, 아래 상세가 로드되지 않아도 훅이 막는다 — 이 산문은 훅 위의 살리언스 층이지 유일 floor 가 아니다. 다만 **훅은 클라이언트측이고 `--no-verify` 로 우회된다**(§Integration branch 가 이미 그렇게 말한다 — 두 곳이 어긋나 보이던 것을 여기서 맞춘다). **그리고 서버측 검증엔 남은 잔여가 있다(2026-08-12 재확인 — `contexts=[]` 서술은 stale, 정정됨)**: `main` 은 `enforce_admins: true` 로 **푸시 경로**(PR 경유)를 강제하고, legacy `required_status_checks.contexts` 는 **`["validate"]`** — `validate` 잡(`.github/workflows/validate.yml`, 메타데이터·`selfcheck.sh` 배선 레인)이 실제 **필수 체크**다. ⚠️ **`validate` 는 Axis 1 이 아니다** — Axis 1(`regression-guard.yml` → `templates/regression_guard.sh`)은 여전히 필수 체크가 **아니고**, 그 워크플로의 `paths:` 필터가 `SKILL.md`·`.claude/rules/*.md`·`CLAUDE.md`·`templates/*.md` 만 보므로 이 절이 4축 대상으로 나열한 `knowledge/shared/rules/*.md`·`docs/*.md`·`AGENTS.md`·`scripts/**/*.sh`·에이전트 정의·`SKILL_detail.md` 만 바뀐 PR 에는 **Axis 1 자체가 돌지도 않는다**. `validate` 쪽 남은 갭은 `strict: false`: 그 체크는 PR 브랜치에 푸시할 때마다 재실행되지만(오픈 시점 한정이 아니다), 그 뒤 main 이 움직여도 재검증을 강제하지 않으므로 **초록으로 남아 있는 체크가 실제로 병합되는 최신 트리를 본 적이 없을 수 있다.** 즉 서버가 강제하는 건 *체크가 초록인가*지 *그 체크가 지금의 main 을 봤는가*가 아니다. Axes 2–3(마커)·Axis 4(매니페스트)는 그 파일들이 `tracks/**` 로 gitignored 라 CI 가 **구조적으로 볼 수조차 없다**. 🟥 **그 사각이 실제로 뚫렸다(2026-09-14 실측, 2/2)** — 원격 자율 노드(`claude/*` 브랜치, 클라우드 세션)는 체크아웃이 휘발해서 마커가 **아무 데도 안 남는다**. 머지된 `claude/` 접두사 PR 전수 **#675·#716 둘 다** FH 자산을 바꾸고 마커 없이 **초록으로** 들어왔다. ⇒ `scripts/remote_marker_gate.sh` 가 **그 채널에 한해** «마커 3필드(`axes-run`·`crossfamily`·`standpoint`)가 커밋 기록에 실려 왔나» 를 `validate` 에서 막는다(레인 14 · 되돌림 프로브 포함). 보통 브랜치는 pre-commit 이 이미 관할하므로 **SKIP** 이다 — 만족 불가능한 이중 요구는 override 를 훈련시킨다. 🟥 **닫은 것은 «조용한 부재» 하나다**: 검사는 형식만 보고(값의 진위도 enum 멤버십도 안 본다 — enum 정본은 저작 노드의 훅이다), 옮긴 마커와 지어낸 마커는 여전히 바이트가 같다. 정직한 표현은 "하드 차단"이 아니라 "**가용한 가장 강한 층**"이다. **미해결 잔여**: `strict` 를 켜는 것도, Axis 1 을 필수 체크로 걸거나 그 `paths:` 를 넓히는 것도 운영자 결정이다(막 flaky 레인을 하나 기록한 참이라, 과차단이 override 를 습관화시키는 쪽으로 기울 수 있다).
|
|
585
585
|
|
|
586
586
|
> **상세 정본**: `.claude/rules/fh_4axis_gate.md` — 4축 정의·마커 필수 필드·경량 예외·substantive carve-out·target-tier sim 게이트·Mode D 모델 공지·cross-family 보완. **`paths:` 로 *일부* FH 자산 경로에 스코핑돼 있어 그 파일들을 *읽을 때* 자동 로드된다 — 로드 조건이지 게이트 적용 범위가 아니다** (공식 트리거는 read — `code.claude.com/docs/en/memory.md` §Path-specific rules).
|
|
587
587
|
> (2026-07-20 분리. **파일 char 실측**: 이 절 자체가 76,706자 중 **10,331자(13.5%)**로 단일 최대였다. 그 분리 + 같은 세션의 중복 3건 제거 + New-Skill 게이트 편입까지 **합산**해 파일은 **76,706 → 67,611 (순감 9,095자, 11.9%)** — 합산치이지 이 절 하나의 성과가 아니다 — 이건 파일 크기지 `/context` 상주 실측이 아니다(계기≠대상, [[feedback_resident_memory_measured_fresh_toplevel]]: 상주는 톱레벨 새 세션 `/context` 로만 잰다 — 미측정). 트리거가 *파일*이고 *기계 백스톱*이 있어 1순위 후보였다. 같은 이유로 **비가역 게이트 3종은 이동 불가** — 의도 트리거라 경로 스코핑하면 fail-open 이 된다.)
|
|
@@ -236,6 +236,20 @@ Task:
|
|
|
236
236
|
tracks/_meta/.axes_23_passed_<branch>_<date>.marker with fields axis2-engine / axis2-model /
|
|
237
237
|
floor-status / axis2-evidence. If a skill is unavailable, note "skipped (skill unavailable)".
|
|
238
238
|
- Axis 4: append a one-line predicted-impact entry to tracks/_meta/edit_manifest.yaml.
|
|
239
|
+
5b. 🟥 **COPY the marker's axis lines INTO THE COMMIT MESSAGE.** The marker file lives under
|
|
240
|
+
`tracks/**`, which is **gitignored** — on a node whose checkout is ephemeral (a cloud session,
|
|
241
|
+
a throwaway clone) it evaporates the moment the run ends, and CI cannot see gitignored files at
|
|
242
|
+
all. So the marker must ride the one channel that survives: the commit itself. Put these three
|
|
243
|
+
lines, verbatim values, in the commit message body:
|
|
244
|
+
axes-run: ⓐ=… ⓑ=→standpoint ⓒ=… ⓓ=… ⓔ=… ⓕ=…
|
|
245
|
+
crossfamily: <value> — <grounds>
|
|
246
|
+
standpoint: <value> — <grounds>
|
|
247
|
+
Measured 2026-09-14, every `claude/`-prefixed merged PR to date: **#675 and #716, 2 of 2**,
|
|
248
|
+
changed an FH asset and left **no marker anywhere reachable** — and both were green, because
|
|
249
|
+
`validate` is structurally blind to `tracks/**`. `scripts/remote_marker_gate.sh` now fails a
|
|
250
|
+
`claude/*` PR that touches an FH asset without these lines. 🟥 It checks the **form** only —
|
|
251
|
+
whether the record travelled — never whether the values are true; that judgment stays with the
|
|
252
|
+
merger (§Mechanization Boundary).
|
|
239
253
|
6. Commit (the hook enforces the gate), push the claude/frontier-auto-* branch, and open a DRAFT pull
|
|
240
254
|
request titled "frontier-auto: <one-line summary>" describing the signal it came from and the
|
|
241
255
|
predicted impact. IF Axis 2 (challenger/steel-quench) was skipped (skill unavailable), the FIRST
|
|
@@ -134,6 +134,81 @@ deterministic** (a grep never has an attention lapse and costs nothing) — dete
|
|
|
134
134
|
survival axis, orthogonal to capability. A deterministic check that replaces a per-session judged
|
|
135
135
|
step keeps paying even when the model no longer needs the help.
|
|
136
136
|
|
|
137
|
+
## What a harness sells — ceiling-extraction, not ceiling-raising (operator formulation, 2026-09-13)
|
|
138
|
+
|
|
139
|
+
**Operator, verbatim**: *"하네스란 각 모델들의 한계치를 뛰어넘는 게 아니라 각 모델들을 안정적으로
|
|
140
|
+
한계치까지 뽑아내는 거라고 생각해. … 하네스의 능력을 넘어서는 근육형 짓기야 오퍼스나 페이블이 더
|
|
141
|
+
잘하겠지만, 그게 아닌 하네스 활용형 단계에서는 이게 잘 돌아가야겠지."*
|
|
142
|
+
|
|
143
|
+
This names the **value proposition** the floor exists to protect, and it is not the same statement as
|
|
144
|
+
the floor itself. The floor says *where* base ops must run; this says *what the harness is selling*:
|
|
145
|
+
|
|
146
|
+
| | claim | who does it better |
|
|
147
|
+
|---|---|---|
|
|
148
|
+
| **근육형 (raw build)** | exceed what the substrate can produce | a stronger model — Opus, Fable. **Explicitly out of the harness's claim.** |
|
|
149
|
+
| **활용형 (harness-mediated)** | reach the substrate's own ceiling, **stably, every run** | the harness. This is the whole claim. |
|
|
150
|
+
|
|
151
|
+
Two consequences that were not previously written down:
|
|
152
|
+
|
|
153
|
+
**① Variance, not mean, is the quantity.** If the sale is "reach the ceiling reliably", then the
|
|
154
|
+
metric is **dispersion across runs of the same design**, not average yield. A pipeline whose mean
|
|
155
|
+
output is higher but whose run-to-run spread exceeds the effect has not delivered this — it has
|
|
156
|
+
delivered a lottery with a better expected value, which is a different product.
|
|
157
|
+
🟥 **Measured instance, and it is ours**: in the dominance-B2 study two runs of the same design
|
|
158
|
+
scored **15/24 and 20/24** while the effect under test contributed **3 and 2**. The spread was
|
|
159
|
+
larger than the effect. That study's primary metric was yield; under this formulation it should
|
|
160
|
+
have been spread. (Detail: `tracks/_meta/dominance_B2/PAPER2_DRAFT_2026-09-12.md` §3.1 · §9.2.)
|
|
161
|
+
|
|
162
|
+
**② Floor-tier operation is a PORTABILITY TEST, not only an accessibility floor.**
|
|
163
|
+
|
|
164
|
+
🟥 **And the substrate swap is not hypothetical — it is in production** (operator, 2026-09-13).
|
|
165
|
+
A gateway-served model (glm-5.3-flash) is routed into a Claude Code shell via the org's CLI, and
|
|
166
|
+
the Claude-Code-compatible field harnesses (pmh, qasp) run there, orchestrating gateway sidecars.
|
|
167
|
+
The desktop client is set up the same way on the other network. **It already works.** The operator's
|
|
168
|
+
stated goal is the harder one: *"정말 '보증하는' 잘 돌아감 환경"* — not "it runs" but "we can
|
|
169
|
+
guarantee it runs."
|
|
170
|
+
|
|
171
|
+
🟥 **And the tier estimate was revised DOWN the same day — which inverts the comfortable reading.**
|
|
172
|
+
The first estimate put that substrate near Sonnet 4.7–5, and the reasoning followed: *"우리 설계가
|
|
173
|
+
기본 소넷급이라면 어렵지 않을 거임."* The operator then revised it (2026-09-13, same session):
|
|
174
|
+
|
|
175
|
+
| substrate | operator's estimate |
|
|
176
|
+
|---|---|
|
|
177
|
+
| glm-5.3-flash (the production routing) | **Claude 3.5 Sonnet / 3.7 일반 모드 초기~중기 체급** |
|
|
178
|
+
| qwen3.8:27b (the dominance-B2 scorer) | Claude 3.7 Sonnet 기본 추론 모드 근처 |
|
|
179
|
+
|
|
180
|
+
**If that is right, the floor is set ABOVE the substrate that is actually carrying the work.**
|
|
181
|
+
«Runs at current Sonnet» then does **not** imply «runs on glm-5.3-flash» — there is a real gap
|
|
182
|
+
between the proxy and the target, and the proxy sits on the easy side of it. The inference
|
|
183
|
+
«floor pass ⇒ substrate pass» is therefore **not conservative**; it is optimistic in the exact
|
|
184
|
+
direction that hides failures.
|
|
185
|
+
|
|
186
|
+
Two things follow, and they are the opposite of "this is easy":
|
|
187
|
+
- The portability claim needs **the substrate's own tier**, not the floor tier, as its test bed.
|
|
188
|
+
A floor-tier sim that passes says little about a deployment two generations below it.
|
|
189
|
+
- Or the floor itself is mis-set: if the org's real substrate is 3.5/3.7-class, then a base op
|
|
190
|
+
that needs current-Sonnet is **already tier-gated for that deployment** — the existing defect
|
|
191
|
+
class, just measured against the wrong reference tier.
|
|
192
|
+
|
|
193
|
+
⚠️ **Both estimates are the operator's, not benchmark results**, and they disagree with each other
|
|
194
|
+
by roughly two model generations. 🟥 **That disagreement is itself the finding**: nobody has
|
|
195
|
+
measured it, and the two readings prescribe opposite amounts of work. Settle it with the
|
|
196
|
+
comparison below before either is used to plan.
|
|
197
|
+
|
|
198
|
+
So a floor-tier failure is now **two** findings, not one: the base op is tier-gated (the existing
|
|
199
|
+
defect class), **and** it predicts a failure in a deployment that is currently carrying real work.
|
|
200
|
+
That raises the stakes of a floor miss without changing the remedy — the remedy is still to make
|
|
201
|
+
the rule fire (§Prescription ladder), never to conclude the tier is too weak.
|
|
202
|
+
|
|
203
|
+
⚠️ **Honest scope — what is missing is the COMPARISON, not the deployment.** The substrate runs;
|
|
204
|
+
nobody has yet taken a floor-tier sim set and run the same set on it to report the **disagreement
|
|
205
|
+
count**. Until that exists, "floor-tier pass predicts substrate pass" is **the operator's reasoning,
|
|
206
|
+
recorded as such** — and the tier estimate (≈ Sonnet 4.7–5) is likewise an estimate, not a
|
|
207
|
+
benchmark result. 🟥 The measurement is therefore **cheap and available**, not blocked: the arms
|
|
208
|
+
already exist on both sides. A nonzero disagreement refutes the prediction and is worth more than
|
|
209
|
+
another floor-tier run. 🟥 Residency note: that comparison runs **inside the org**; its per-case
|
|
210
|
+
outputs are company-resident and only a disagreement **count** crosses back.
|
|
211
|
+
|
|
137
212
|
## Done When (for any change citing this doctrine)
|
|
138
213
|
|
|
139
214
|
- No availability-gate remains in the touched surface *(check class: measured — tier-reference
|
|
@@ -3732,3 +3732,35 @@
|
|
|
3732
3732
|
⚠️ 1차 실행이 세션 한도로 27 검증 팔에서 죽었고 `resumeFromRunId` 로 재개했다 — 캐시 65 재생 + 27 재실행.
|
|
3733
3733
|
**한도 소진이 「발견 0」으로 렌더될 수 있는 자리**였고, 워크플로가 failures 를 명시해서 갈렸다.
|
|
3734
3734
|
notes: "발견은 전부 파일:줄로만 지목하고 제한 환경 값은 옮기지 않았다. 기록 = tracks/_meta/qasp_maturity_diagnostic_2026-09-13.md(gitignored). 아무것도 자동 수정하지 않았다 — 진단의 산출은 랭크된 목록이고 실행은 운영자 승인 뒤다."
|
|
3735
|
+
|
|
3736
|
+
- date: 2026-09-14
|
|
3737
|
+
invoked_by: "FH 세션 773e7d1d (자율주행 · sonnet)"
|
|
3738
|
+
agent: "fh-meta:beginner ×2 (friends-on-desk README 콜드리드 1R · 수리본 재콜드리드 2R)"
|
|
3739
|
+
purpose: |
|
|
3740
|
+
ko-tech-writer Step 5 «발행 전 콜드리드 1패스» + 🟥 «재콜드리드 — 발행되는 것은 수리본이다».
|
|
3741
|
+
조직 내부 사용자용 리드미를 쓰고, 초안과 **수리본을 각각** 배경지식 0 으로 통독시켰다.
|
|
3742
|
+
outcome: accepted
|
|
3743
|
+
evidence: |
|
|
3744
|
+
**1R(초안)** — 지적 4건 + 전제결손 5건. 가장 큰 것: «AI 코딩 도구를 쓰고 있어야 한다»는
|
|
3745
|
+
**전제가 설치 단계 «뒤»에 나온다**(순서 결함). 그 외 ~/.codex/pets 존재 여부 · 성공 확인
|
|
3746
|
+
방법 없음 · 「3분」 약속과 앱 설치 위임의 모순.
|
|
3747
|
+
**2R(수리본)** — 🟥 **수리가 새 구멍을 냈고 그걸 잡았다**: ⓐ `git clone` 지시가 사용자 섹션에
|
|
3748
|
+
아예 없다(맨 아래 개발자 절에만 곁다리로) ⓑ **도구 목록이 앞뒤로 6개 vs 8개로 어긋난다**
|
|
3749
|
+
(내가 앞 표에 6개만 적고 뒤에서 «여덟 가지»라 했다) ⓒ `~/.codex/pets` vs `~/.clawd/themes`
|
|
3750
|
+
두 디렉터리 관계 무설명 ⓓ 「원본의 3분의 1」이 «셋만 쟀다»는 각주와 안 맞는다.
|
|
3751
|
+
둘 다 반영했다. 🟥 **1라운드만 돌렸으면 6 vs 8 불일치가 그대로 나갔다.**
|
|
3752
|
+
격리 수준 = **약**(같은 레포에서 띄운 서브에이전트라 프로젝트 지침을 상속한다 — 완전 블라인드 아님).
|
|
3753
|
+
tokens_subagent: "264,012 (2 에이전트 · tool_uses 14 · 벽시계 약 5.8분)"
|
|
3754
|
+
dispatch_count_measured: 2
|
|
3755
|
+
residual: |
|
|
3756
|
+
🟥 **계열 축이 비어 있다** — 둘 다 같은 계열이다. 리드미 통독은 «읽히나» 를 재지 «참인가» 를
|
|
3757
|
+
안 재므로 그 자리는 cross-family 가 아니라 **사람**이 닫는다(운영자 검수).
|
|
3758
|
+
🟥 **격리가 약하다** — 레포 밖 cwd 헤드리스가 아니라 같은 레포 서브에이전트다. 전제 결손은
|
|
3759
|
+
잘 잡았지만 «자기 어휘 검사» 축은 오염됐을 수 있다(프로젝트 지침을 상속했다).
|
|
3760
|
+
⚠️ 이 세션의 훅 집계는 7건인데 내가 «에이전트로» 띄운 것은 2건이다 — 나머지 5건의 출처는
|
|
3761
|
+
**미확인**이다(스킬/워크플로 경유 집계로 추정하나 확인 못 했다). 0 으로 세지 않고 적어 둔다.
|
|
3762
|
+
notes: |
|
|
3763
|
+
ko-tech-writer Step 5 의 «정지 조건은 라운드 수가 아니라 변경» 을 따르면 3R 이 필요하다
|
|
3764
|
+
(2R 지적을 반영해 본문이 바뀌었으므로). 🟥 **안 돌렸다 — 미충족으로 명시한다.**
|
|
3765
|
+
발행 판단자(운영자)에게 넘긴다. 기계 스캔(Step 2/4/4-b)은 **최종본 기준으로 재실행**했다:
|
|
3766
|
+
글머리 줄표 0 · 소유 직역 0 · 레지스터 혼재 0 · 전칭 단정 후보 6건 전건 반례 확인 완료.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrono-meta/fh-gate",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
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": {
|
|
@@ -342,6 +342,8 @@
|
|
|
342
342
|
"scripts/test_preprep_diagram_lanes.sh",
|
|
343
343
|
"scripts/test_preprep_slide_refs_lanes.sh",
|
|
344
344
|
"scripts/test_preprep_font_lanes.sh",
|
|
345
|
-
"scripts/test_action_yml_lanes.sh"
|
|
345
|
+
"scripts/test_action_yml_lanes.sh",
|
|
346
|
+
"scripts/remote_marker_gate.sh",
|
|
347
|
+
"scripts/test_remote_marker_gate_lanes.sh"
|
|
346
348
|
]
|
|
347
349
|
}
|
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# forge-harness (fh-meta) Changelog
|
|
2
2
|
|
|
3
|
+
### [3.8.0] — 2026-09-14 — 플로어 없는 채널의 4축 마커 + 트랙 해석 규약을 좁힌다
|
|
4
|
+
|
|
5
|
+
**⚠️ 소비자 동작 변화 하나 — `fh_resolve_track_root` 의 별칭 해석 규약이 좁아졌다.**
|
|
6
|
+
같은 이름의 실물 레포와 `-dev` 포크가 **동시에** 있는 노드에서, 종전에는 `AMBIGUOUS`(rc=2)로
|
|
7
|
+
떨어지며 아무것도 안 골랐다. 이제 **정확 일치가 있으면 그것이 이긴다**(rc=0). 정확 일치가
|
|
8
|
+
**없을 때는 종전 그대로 AMBIGUOUS** 다 — 즉 막히던 것이 풀리는 방향이고 새로 막는 것은 없다.
|
|
9
|
+
(하류 제보 pmh-dev #80. 제안은 「first match wins」였고 **「exact match wins」로 좁혀서** 받았다:
|
|
10
|
+
넓은 쪽은 정확 일치가 없을 때 후보 하나를 **조용히** 고르는데, 그게 이 가드의 존재 이유다.)
|
|
11
|
+
|
|
12
|
+
**신규 — `scripts/remote_marker_gate.sh`**
|
|
13
|
+
FH 자산 변경의 4축 마커는 `tracks/**` 에 살고 그건 gitignored 다. 저작 노드가 이 레포의 작업
|
|
14
|
+
트리면 맞는 설계인데, **원격 자율 노드**(체크아웃이 휘발하는 클라우드 세션)는 마커가 같이
|
|
15
|
+
사라진다. 그리고 CI 는 gitignored 파일을 구조적으로 못 본다 ⇒ **마커 없는 FH 자산 커밋이
|
|
16
|
+
초록으로 들어온다.** 실측: `claude/` 접두사 머지 PR 전수 **2/2** 가 그랬다.
|
|
17
|
+
⇒ 그 채널에 한해 «축 3줄(`axes-run`·`crossfamily`·`standpoint`)이 커밋 기록에 실려 왔나» 를
|
|
18
|
+
`validate` 에서 본다. **보통 브랜치는 SKIP** — pre-commit 이 이미 관할하므로 이중 요구는
|
|
19
|
+
override 를 훈련시킨다.
|
|
20
|
+
🟥 **형식만 본다.** 값의 진위도 enum 멤버십도 안 본다(그 정본은 저작 노드의 훅이다).
|
|
21
|
+
옮긴 마커와 지어낸 마커는 바이트가 같다 — 닫은 것은 «조용한 부재» 하나다.
|
|
22
|
+
|
|
23
|
+
**문서**
|
|
24
|
+
- `asset-placement-gate` — 인용한 논문(arXiv:2605.11418)의 **네 번째 수치**를 채웠다:
|
|
25
|
+
Governance 단계에서 semantic evasion 이 **차단 판정을 36.5%–100% 회피**. 입회 게이트는 정확히
|
|
26
|
+
차단-판정 표면이라 이 게이트 자신의 사각을 가리킨다. 🟥 다른 레지스트리·다른 위협모형이고
|
|
27
|
+
상단 100% 는 «어떤 구성은 아무것도 안 막았다» 라는 뜻 — 양방향으로 좁혀서 적었다.
|
|
28
|
+
- `self_evolution_routine.md` §5b 신설 — 자율 패스가 마커 3줄을 **커밋 메시지에** 싣도록.
|
|
29
|
+
- `CLAUDE.md` §4축 기계층 — 「CI 가 마커를 못 본다」 뒤에 그 사각이 실제로 뚫린 실측을 붙였다.
|
|
30
|
+
|
|
31
|
+
**레인**: `test_remote_marker_gate_lanes.sh` 15개(되돌림 프로브 포함) · `test_track_resolve_lanes.sh`
|
|
32
|
+
24→28 · `test_adapter_lanes.sh` 37→38 · `cluster_capability_scan --self-test` 20→21.
|
|
33
|
+
🟥 그 과정에서 **기존 모호 컨트롤 5건(파일 3개)이 대상과 같이 죽을 뻔했다** — 기대값이 아니라
|
|
34
|
+
**픽스처의 과녁**을 «정확 일치가 없는» 케이스로 옮겨서 살렸다.
|
|
35
|
+
|
|
3
36
|
### [3.7.0] — 2026-09-13 — 리뷰 페르소나 캐스트 출하 (`persona-cast` + 렌즈 6)
|
|
4
37
|
|
|
5
38
|
필드 하네스가 **컨테이너를 몰라도** 쓸 수 있는 리뷰 좌석 묶음. 화면·스펙·PR·페이지를 여섯 좌석의
|
|
@@ -110,6 +110,36 @@ both the judge (cutoff) and the grep (literal); that residual leans on the judge
|
|
|
110
110
|
enumerated descriptions above** (grounded comparison, not pure memory), not on full mechanization. A
|
|
111
111
|
shared common word is a judged-review flag, **not** a hard fail.
|
|
112
112
|
|
|
113
|
+
**External grounding (2026-09-14 frontier signal, citation verified live before inclusion)**: Saha,
|
|
114
|
+
Faghih & Feizi, *"Under the Hood of SKILL.md: Semantic Supply-chain Attacks on AI Agent Skill
|
|
115
|
+
Registry"* (arXiv:2605.11418, May 2026 — https://arxiv.org/abs/2605.11418). Using real registry
|
|
116
|
+
mechanisms (not a hypothetical), it measures SKILL.md-only attacks that manipulate which skill gets
|
|
117
|
+
**discovered** (adversarial phrasing wins embedding-retrieval visibility: up to 86% pairwise win rate,
|
|
118
|
+
80% Top-10 placement) and **selected** (description-only framing biases the agent toward a
|
|
119
|
+
functionally-equivalent adversarial variant in 77.6% of paired trials on average). This is external
|
|
120
|
+
confirmation that the paraphrase/semantic gap named just above — the grep grounds *literal* reuse
|
|
121
|
+
only — sits on a measured admission-time attack surface, not a theoretical edge case. **This note does
|
|
122
|
+
not close the residual**: no new mechanized check is added here, and none should be added by an
|
|
123
|
+
autonomous pass — a `steel-quench` Wave scoped to adversarial (not merely accidental) trigger/description
|
|
124
|
+
framing is a candidate follow-up, but the gate-design decision belongs to human review
|
|
125
|
+
(§Mechanization Boundary — judgment stays with evolution).
|
|
126
|
+
|
|
127
|
+
🟥 **The paper's fourth stage is the one aimed at THIS gate, and the paragraph above left it out**
|
|
128
|
+
(caught 2026-09-14 by reading the abstract directly rather than re-reading the citing paragraph — the
|
|
129
|
+
omission is invisible to a re-read, which is the whole argument for opening the source). Verbatim:
|
|
130
|
+
*"In Governance, semantic evasion strategies cause malicious skills to avoid a blocking verdict in
|
|
131
|
+
**36.5%-100%** of cases."* Discovery and selection describe **which skill gets picked**; governance
|
|
132
|
+
describes **how a blocking verdict gets dodged** — and an admission gate is exactly a blocking-verdict
|
|
133
|
+
surface, so that band is a measurement of this gate's own evasion ceiling, not of a neighbouring
|
|
134
|
+
concern. Read it against what Step 0.5 actually holds: the grep leg is literal, so semantic evasion
|
|
135
|
+
passes it by construction, and the judged leg is a model reading descriptions — the same modality the
|
|
136
|
+
36.5%-100% was measured on. **The honest reading is narrow in both directions**: that band is a
|
|
137
|
+
different registry, a different threat model (deliberately adversarial submissions, where this gate's
|
|
138
|
+
common case is accidental duplication), and an upper end of 100% means *some* configuration blocked
|
|
139
|
+
nothing at all, not that this gate does. What it does establish is that "semantic paraphrase evades a
|
|
140
|
+
literal check" is measured, not speculative, on a governance surface. Still no mechanized check is
|
|
141
|
+
added — for the reason the previous paragraph gives, unchanged.
|
|
142
|
+
|
|
113
143
|
## Step 0.6. Tier-0/1 Official-Corpora Check (grounds criterion ③)
|
|
114
144
|
|
|
115
145
|
Besides the FH roster (Step 0.5), check the proposal against the official corpora: platform
|
|
@@ -136,7 +136,8 @@ def load(path):
|
|
|
136
136
|
# ── 면제 채널 (P1 과 같은 규율: 선언되었나만 본다 · 사유 필수 · 조용히 안 삼킨다) ──────
|
|
137
137
|
|
|
138
138
|
def _intent_index(intended):
|
|
139
|
-
idx, errs =
|
|
139
|
+
"""(idx, errs, by_n). `by_n[n] = (axis, shapes_tuple, declared_slides)` — 죽은 선언의 근사 진단용."""
|
|
140
|
+
idx, errs, by_n = collections.defaultdict(list), [], {}
|
|
140
141
|
for n, e in enumerate(intended or [], 1):
|
|
141
142
|
if not isinstance(e, dict):
|
|
142
143
|
errs.append(f'attr_consistency.intended[{n}] : 매핑이 아니다 — 면제 안 함')
|
|
@@ -163,7 +164,10 @@ def _intent_index(intended):
|
|
|
163
164
|
continue
|
|
164
165
|
for s in sl:
|
|
165
166
|
idx[(ax, int(s))].append((tuple(sorted(e.get('shapes') or [])), why, n))
|
|
166
|
-
|
|
167
|
+
# 🟥 선언별 원장 — «죽은 선언» 을 보고할 때 «왜» 죽었는지 말하려면 선언 자신을 다시 봐야 한다.
|
|
168
|
+
# idx 는 (축,장) 으로 흩어 놓은 형태라 선언 하나를 되짚을 수 없다.
|
|
169
|
+
by_n[n] = (ax, tuple(sorted(e.get('shapes') or [])), sorted(int(v) for v in sl))
|
|
170
|
+
return idx, errs, by_n
|
|
167
171
|
|
|
168
172
|
|
|
169
173
|
AMBIG = '\u2205' # «같은 장 안에 같은 이름 둘» — 선언으로 못 가르는 표식(R5 A6). 어떤 선언과도 안 맞는다.
|
|
@@ -178,6 +182,39 @@ def _mark_ambig(shapes_):
|
|
|
178
182
|
return names
|
|
179
183
|
|
|
180
184
|
|
|
185
|
+
def _dead_intent_msg(n, intent_by_n, seen_groups):
|
|
186
|
+
"""죽은 선언 한 줄 — **왜** 죽었는지까지 말한다.
|
|
187
|
+
|
|
188
|
+
🟥 이 함수가 있는 이유(2026-09-13 실측). 이 덱에서 죽은 선언이 **12개** 나왔는데, 원인은
|
|
189
|
+
전부 하나였다: `shapes` 는 정확히 맞는데 `slides` 에 그룹의 **한 장만** 적혀 있었다.
|
|
190
|
+
echo 후보는 여러 장에 걸치고, 매칭은 «그 장 전부가 같은 선언에 걸려야» 면제한다(R3 B14 —
|
|
191
|
+
부분 선언이 완전 선언을 가리지 않게 한 그 규칙). 그 규칙이 들어올 때 기존 설정이 안 따라왔다.
|
|
192
|
+
|
|
193
|
+
종전 메시지는 「지우거나 고쳐라」뿐이라, 사람이 12줄을 받아들고 **무엇이 어긋났는지를
|
|
194
|
+
직접 재현해야** 했다. 어긋남을 아는 쪽은 기계다. 그래서 여기서 말한다.
|
|
195
|
+
|
|
196
|
+
⚠️ 근사 진단이지 판정이 아니다 — 이름집합이 같은 후보 그룹을 찾아 장 차집합을 보일 뿐이고,
|
|
197
|
+
「그러니 그 장들을 적어라」는 사람이 정한다(그 후보가 정말 같은 의도인지는 의미 판단이다).
|
|
198
|
+
"""
|
|
199
|
+
base = f'attr_consistency.intended[{n}] : 🟥 죽은 선언 — 이 덱에서 아무 후보도 면제하지 않는다. 지우거나 고쳐라'
|
|
200
|
+
rec = intent_by_n.get(n)
|
|
201
|
+
if not rec:
|
|
202
|
+
return base
|
|
203
|
+
ax, want, declared = rec
|
|
204
|
+
if not want:
|
|
205
|
+
# shapes 를 안 적은 선언 = 그 장의 그 축 전체. 그 축 후보가 그 장에 아예 없다는 뜻이다.
|
|
206
|
+
return base + f' (축 {ax} · 선언 장 {declared} — 그 장에 이 축 후보가 없다)'
|
|
207
|
+
got = seen_groups.get((ax, want))
|
|
208
|
+
if got is None:
|
|
209
|
+
return base + f' (축 {ax} · 도형 {list(want)} — 이 이름 조합의 후보 자체가 없다. 도형 이름이 바뀌었나)'
|
|
210
|
+
missing = [s_ for s_ in got if s_ not in declared]
|
|
211
|
+
if missing:
|
|
212
|
+
return (base + f' ← 근사: 도형 {list(want)} 는 맞는데 **장이 모자란다** — '
|
|
213
|
+
f'선언 {declared} · 실제 후보 그룹 {got} (빠진 장 {missing}). '
|
|
214
|
+
'면제는 «그룹의 모든 장» 이 같은 선언에 걸려야 성립한다')
|
|
215
|
+
return base + f' (축 {ax} · 도형 {list(want)} · 장 {declared} — 후보 그룹 {got} 와 장은 맞는데 안 걸렸다)'
|
|
216
|
+
|
|
217
|
+
|
|
181
218
|
def _why_all(idx, axis, slide, names):
|
|
182
219
|
"""이 장·축·도형 집합에 걸리는 «모든» 선언 [(why, n) …]. R3 B14: 첫 선언만 고르면 순서 의존이 된다.
|
|
183
220
|
R5 A6: 같은 이름이 둘이면 «어느 것» 인지 선언으로 못 가른다 — 면제 불가(집합화가 셋째 도형을 지웠다)."""
|
|
@@ -210,15 +247,43 @@ def ax_dash(S, sw, cfg):
|
|
|
210
247
|
f"{sn:>3}p [dash] «{d}» 굵기가 갈린다 — {detail}"
|
|
211
248
|
|
|
212
249
|
|
|
250
|
+
def _algn_key(a):
|
|
251
|
+
"""도형의 «정렬» 비교 키 — 균일하면 그 값 하나, 섞였으면 문단 패턴 그대로.
|
|
252
|
+
|
|
253
|
+
문단 수가 정렬 차이로 둔갑하지 않게 하면서(실물 47·48p), 순서 차이는 그대로 남긴다(A11).
|
|
254
|
+
"""
|
|
255
|
+
al = tuple(a['algn'])
|
|
256
|
+
uniq = set(al)
|
|
257
|
+
return next(iter(uniq)) if len(uniq) == 1 else al
|
|
258
|
+
|
|
259
|
+
|
|
213
260
|
def ax_algn(S, sw, cfg):
|
|
214
|
-
"""같은 장에서 «같은 폭 · 같은 y»(= 한 줄)인데 정렬 방식이 갈리는가.
|
|
261
|
+
"""같은 장에서 «같은 폭 · 같은 y»(= 한 줄)인데 정렬 방식이 갈리는가.
|
|
262
|
+
|
|
263
|
+
🟥 비교 키는 «시퀀스 그대로» 가 아니다 (2026-09-13 실측 수리). 종전에는 문단별 정렬을
|
|
264
|
+
튜플 그대로 비교해서 `('ctr','ctr')` 과 `('ctr',)` 이 «갈린다» 로 보고됐다 — **문단 수가
|
|
265
|
+
다를 뿐 전부 가운데 정렬인데도.** 실물 덱 47·48p 가 정확히 그 형태였고(도형 다섯 전부
|
|
266
|
+
`ctr`, `rv-b1` 만 문단이 둘), 그 둘이 이 덱의 마지막 P4 후보였다. 축이 자기 docstring 의
|
|
267
|
+
질문(«정렬 방식이 갈리는가»)이 아니라 다른 질문(«시퀀스가 갈리는가»)을 답하고 있었다.
|
|
268
|
+
|
|
269
|
+
🟥 그런데 **집합으로 바꾸면 반대쪽이 깨진다.** 기존 레인 A11 이 `('ctr', 기본)` 과
|
|
270
|
+
`(기본, 'ctr')` 을 «갈린다» 로 못 박고 있고 그건 옳다 — 문단 수가 같고 **순서가 다르면**
|
|
271
|
+
첫 문단이 한쪽은 가운데, 다른 쪽은 기본이다. 실제로 갈린 것이다.
|
|
272
|
+
(초판이 집합으로 바꿨다가 A11 이 빨개져서 잡혔다. 기존 레인이 내 과교정을 막았다.)
|
|
273
|
+
|
|
274
|
+
⇒ 판별자는 **«균일하면 그 값 하나, 섞였으면 패턴 그대로»** 다:
|
|
275
|
+
('ctr','ctr') → 'ctr' ('ctr',) → 'ctr' → 같다 (실물 47·48p)
|
|
276
|
+
('ctr', 기본) → 그 튜플 (기본,'ctr') → 그 튜플 → 다르다 (A11)
|
|
277
|
+
한 도형이 한 가지 정렬만 쓰면 그 도형의 정렬은 문단 수와 무관하게 그 값이고, 섞어 쓰면
|
|
278
|
+
그 패턴 자체가 그 도형의 정렬이다.
|
|
279
|
+
"""
|
|
215
280
|
for sn, sh in enumerate(S, 1):
|
|
216
281
|
rows = collections.defaultdict(list)
|
|
217
282
|
for a in sh:
|
|
218
283
|
if a['text']: # 글자 있는 도형만이 «정렬»을 가진다 — 크기가 상속이어도 정렬은 있다
|
|
219
284
|
rows[(round(a['w'], 2), round(a['y'], 1))].append(a)
|
|
220
285
|
for (w, y), v in rows.items():
|
|
221
|
-
if len(v) > 1 and len({a
|
|
286
|
+
if len(v) > 1 and len({_algn_key(a) for a in v}) > 1:
|
|
222
287
|
detail = ' · '.join(f"{a['name'][:12]}={'/'.join(a['algn'])}" for a in v)
|
|
223
288
|
yield sn, _mark_ambig(v), \
|
|
224
289
|
f"{sn:>3}p [algn] 폭 {w}\" y {y}\" 한 줄인데 정렬이 갈린다 — {detail}"
|
|
@@ -291,7 +356,7 @@ AXIS_FN = {'dash': ax_dash, 'algn': ax_algn, 'mirror': ax_mirror, 'echo': ax_ech
|
|
|
291
356
|
def collect(path, cfg):
|
|
292
357
|
"""(lines, suppressed, errors, stats)"""
|
|
293
358
|
S, sw = load(path)
|
|
294
|
-
idx, errors = _intent_index(cfg.get('intended'))
|
|
359
|
+
idx, errors, intent_by_n = _intent_index(cfg.get('intended'))
|
|
295
360
|
want = [a for a in (cfg.get('axes') or AXES) if a in AXIS_FN]
|
|
296
361
|
unknown = [a for a in (cfg.get('axes') or []) if a not in AXIS_FN]
|
|
297
362
|
errors += [f'attr_consistency.axes : 모르는 축 «{a}» — 무시 (있는 축: {AXES})' for a in unknown]
|
|
@@ -301,9 +366,15 @@ def collect(path, cfg):
|
|
|
301
366
|
stats['shapes'] = sum(len(sh) for sh in S)
|
|
302
367
|
stats['sized'] = sum(1 for sh in S for a in sh if a['szs'])
|
|
303
368
|
hits = collections.Counter()
|
|
369
|
+
# 🟥 (축, 이름집합) → 그 후보 그룹이 실제로 걸친 장 목록. «죽은 선언» 의 근사 진단에 쓴다.
|
|
370
|
+
# 정확 키(면제)가 이미 있어도 이걸 같이 모은다 — 근사 스캔을 «정확 키가 없을 때만» 돌리면
|
|
371
|
+
# 「왜 안 걸렸나」를 물어야 하는 바로 그 순간에 자료가 없다.
|
|
372
|
+
seen_groups = {}
|
|
304
373
|
for ax in want:
|
|
305
374
|
for slide, names, line in AXIS_FN[ax](S, sw, cfg):
|
|
306
375
|
slides_all = list(slide) if isinstance(slide, tuple) else [slide]
|
|
376
|
+
_key = (ax, tuple(sorted(set(n_ for n_ in names if n_ != AMBIG))))
|
|
377
|
+
seen_groups.setdefault(_key, sorted(set(int(x) for x in slides_all)))
|
|
307
378
|
# 그룹이 여러 장에 걸치면(echo) 전부 «같은 선언 n» 에 걸려야 면제 — R3 B14: 장마다 첫 선언을 고르지 말고
|
|
308
379
|
# 장 전체에 공통인 n 을 찾는다(부분 선언이 완전 선언을 가리지 않게)
|
|
309
380
|
per = [dict((n_, w_) for w_, n_ in _why_all(idx, ax, sl_, names)) for sl_ in slides_all]
|
|
@@ -321,7 +392,7 @@ def collect(path, cfg):
|
|
|
321
392
|
# 🟥 죽은 선언 보고 — 아무 후보도 안 거는 intended 항목(덱 세션 실측 09-11: 유령 후보에 붙은 why)
|
|
322
393
|
for n in sorted({n for v in idx.values() for _w, _y, n in v}):
|
|
323
394
|
if hits.get(n, 0) == 0:
|
|
324
|
-
errors.append(
|
|
395
|
+
errors.append(_dead_intent_msg(n, intent_by_n, seen_groups))
|
|
325
396
|
stats['dead_intended'] += 1
|
|
326
397
|
return lines, suppressed, errors, dict(stats)
|
|
327
398
|
|
|
@@ -75,7 +75,20 @@ def deck_screens_grouped(path):
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
def _norm(t):
|
|
78
|
-
|
|
78
|
+
"""비교용 정규화 — 공백 제거 + **HTML 엔티티 해제**.
|
|
79
|
+
|
|
80
|
+
🟥 엔티티 해제를 2026-09-13 에 더했다. 실물 원고(`manuscript.md:1563`)에 `Q & A` 가
|
|
81
|
+
**문자 그대로** 들어 있고 화면은 `Q&A` 라, 같은 문자열이 «문구만 다른 줄» 로 보고됐다.
|
|
82
|
+
같은 내용을 다르게 적은 것을 «어긋남» 으로 렌더한 것이므로 계기 쪽 오탐이다.
|
|
83
|
+
|
|
84
|
+
덱 쪽은 XML 파싱에서 이미 풀려 나오고(`lane_attr_consistency` A12 가 `&` ≡ `&`
|
|
85
|
+
를 이미 그렇게 못 박았다), 원고 쪽만 안 풀려 있었다 — **한쪽만 관대한 정규화**가
|
|
86
|
+
한쪽에서만 통과하는 입력을 만든 형태다. 양쪽을 같은 함수로 지나게 둔다.
|
|
87
|
+
|
|
88
|
+
⚠️ 잃는 것: 원고가 화면에 «&» 라는 글자를 그대로 띄우려고 적은 경우를 이제 못 가른다.
|
|
89
|
+
그 형태는 이 덱에 없고, 생기면 원고 쪽 교정 문제지 화면 대조 문제가 아니다.
|
|
90
|
+
"""
|
|
91
|
+
return re.sub(r'\s', '', html.unescape(t))
|
|
79
92
|
|
|
80
93
|
|
|
81
94
|
def compare(man, deck, threshold=0.60, skip=(), deck_groups=None):
|
|
@@ -656,6 +656,52 @@ def run_codex_audit_regressions(fx_dir):
|
|
|
656
656
|
ok('A9 attr: 산 선언 1 면제 · 죽은 선언 1 보고') if len(sup2) == 1 and len(dead2) == 1 and 'intended[2]' in dead2[0] \
|
|
657
657
|
else ng('A9 attr sup=%d errs=%r' % (len(sup2), errs2))
|
|
658
658
|
|
|
659
|
+
# ── A9b 죽은 선언의 «근사 진단» (2026-09-13) ────────────────────────────────
|
|
660
|
+
# 🟥 왜 이 레인이 있나: 실물 덱에서 죽은 선언이 **12개** 나왔고 원인이 전부 하나였다 —
|
|
661
|
+
# `shapes` 는 정확히 맞는데 `slides` 에 그룹의 **한 장만** 적혀 있었다(echo 후보는
|
|
662
|
+
# 여러 장에 걸치고, 매칭은 그 장 전부가 같은 선언에 걸려야 면제한다 — R3 B14).
|
|
663
|
+
# 종전 메시지는 「지우거나 고쳐라」뿐이라 사람이 12줄을 받아들고 어긋남을 직접
|
|
664
|
+
# 재현해야 했다. 어긋남을 아는 쪽은 기계다.
|
|
665
|
+
# known-pair: ⓐ 장이 모자란 선언 → «장이 모자란다» + 빠진 장을 이름으로
|
|
666
|
+
# ⓑ 이름이 아예 다른 선언 → «이 이름 조합의 후보 자체가 없다» (다른 문구)
|
|
667
|
+
# ⓒ shapes 없는 선언 → «그 장에 이 축 후보가 없다» (또 다른 문구)
|
|
668
|
+
# 셋이 같은 문구로 뭉치면 진단이 진단이 아니다.
|
|
669
|
+
dnm = os.path.join(fx_dir, 'ma_dead_nearmiss.pptx')
|
|
670
|
+
# 같은 문자열이 세 장에 서로 다른 크기로 — echo 후보 그룹이 [1,2,3] 이 된다
|
|
671
|
+
_mini_deck(dnm, [
|
|
672
|
+
_sp('n1', 914400, 914400, 3000000, 400000, '여덟글자가넘는문장입니다', sz=3200),
|
|
673
|
+
_sp('n1', 914400, 914400, 3000000, 400000, '여덟글자가넘는문장입니다', sz=3400),
|
|
674
|
+
_sp('n1', 914400, 914400, 3000000, 400000, '여덟글자가넘는문장입니다', sz=4600),
|
|
675
|
+
])
|
|
676
|
+
def _nm(intended):
|
|
677
|
+
_l3, _s3, e3, _t3 = LA.collect(dnm, {'axes': ['echo'], 'intended': intended})
|
|
678
|
+
return [e for e in e3 if '죽은 선언' in e]
|
|
679
|
+
|
|
680
|
+
# ⓐ 그룹은 [1,2,3] 인데 선언은 [1] 만
|
|
681
|
+
a_msg = _nm([{'axis': 'echo', 'slides': [1], 'shapes': ['n1'], 'why': 'w'}])
|
|
682
|
+
ok('A9b 근사①: 장이 모자란 선언이 «빠진 장» 을 이름으로 말한다') \
|
|
683
|
+
if len(a_msg) == 1 and '장이 모자란다' in a_msg[0] and '[2, 3]' in a_msg[0] \
|
|
684
|
+
else ng('A9b 근사① %r' % a_msg)
|
|
685
|
+
|
|
686
|
+
# ⓑ 이름이 아예 없는 선언 — 다른 문구여야 한다
|
|
687
|
+
b_msg = _nm([{'axis': 'echo', 'slides': [1], 'shapes': ['ghost'], 'why': 'w'}])
|
|
688
|
+
ok('A9b 근사②: 없는 이름 조합은 «후보 자체가 없다» 로 갈린다') \
|
|
689
|
+
if len(b_msg) == 1 and '후보 자체가 없다' in b_msg[0] and '장이 모자란다' not in b_msg[0] \
|
|
690
|
+
else ng('A9b 근사② %r' % b_msg)
|
|
691
|
+
|
|
692
|
+
# ⓒ shapes 를 안 적은 선언 — 또 다른 문구
|
|
693
|
+
c_msg = _nm([{'axis': 'dash', 'slides': [9], 'why': 'w'}])
|
|
694
|
+
ok('A9b 근사③: shapes 없는 선언은 «그 장에 이 축 후보가 없다» 로 갈린다') \
|
|
695
|
+
if len(c_msg) == 1 and '이 축 후보가 없다' in c_msg[0] \
|
|
696
|
+
else ng('A9b 근사③ %r' % c_msg)
|
|
697
|
+
|
|
698
|
+
# ⓓ known-negative — 장을 다 적으면 죽은 선언이 **사라진다**(진단이 가리키는 수리가 실제로 듣는다)
|
|
699
|
+
_l4, s4, e4, _t4 = LA.collect(dnm, {'axes': ['echo'], 'intended': [
|
|
700
|
+
{'axis': 'echo', 'slides': [1, 2, 3], 'shapes': ['n1'], 'why': 'w'}]})
|
|
701
|
+
ok('A9b 근사④ known-negative: 빠진 장을 채우면 면제되고 죽은 선언 0') \
|
|
702
|
+
if len(s4) == 1 and not [e for e in e4 if '죽은 선언' in e] \
|
|
703
|
+
else ng('A9b 근사④ sup=%d errs=%r' % (len(s4), e4))
|
|
704
|
+
|
|
659
705
|
# ── R2 (codex 09-11 13:04) 레인 A5–A10 · B11–B12 ──
|
|
660
706
|
mp3 = os.path.join(fx_dir, 'r2_man.md')
|
|
661
707
|
def _man(lines):
|
|
@@ -755,7 +801,7 @@ def run_codex_audit_regressions(fx_dir):
|
|
|
755
801
|
ok('A8 delta: 새 1 · 사라짐 1 (이름 전체가 신원)') if len(new8) == 1 and len(gone8) == 1 else ng('A8 new=%d gone=%d' % (len(new8), len(gone8)))
|
|
756
802
|
# A9 문자열 shapes 선언은 오류 (geometry · attr)
|
|
757
803
|
_i9, e9 = LG._intent_index([{'slides': [1, 2], 'shapes': 'ab', 'attrs': ['x'], 'why': 'w'}])
|
|
758
|
-
_i9b, e9b = LA._intent_index([{'axis': 'dash', 'slides': [1], 'shapes': 'ab', 'why': 'w'}])
|
|
804
|
+
_i9b, e9b, _b9b = LA._intent_index([{'axis': 'dash', 'slides': [1], 'shapes': 'ab', 'why': 'w'}])
|
|
759
805
|
ok('A9 shapes:"ab" → geometry·attr 둘 다 선언 오류(면제 0)') if len(e9) == 1 and not _i9 and len(e9b) == 1 and not _i9b \
|
|
760
806
|
else ng('A9 geo errs=%r idx=%r · attr errs=%r idx=%r' % (e9, dict(_i9), e9b, dict(_i9b)))
|
|
761
807
|
# A10 구간: AB@28+CD@32 vs A@28+BCD@32 는 다르다 · ABCD@28 vs AB@28+CD@28 은 같다
|
|
@@ -780,6 +826,30 @@ def run_codex_audit_regressions(fx_dir):
|
|
|
780
826
|
S11, sw11 = LA.load(d)
|
|
781
827
|
ok('A11 정렬 슬롯 %s vs %s → 갈림 1' % (S11[0][0]['algn'], S11[0][1]['algn'])) if S11[0][0]['algn'] != S11[0][1]['algn'] and len(list(LA.ax_algn(S11, sw11, {}))) == 1 \
|
|
782
828
|
else ng('A11 algn=%r/%r' % (S11[0][0]['algn'], S11[0][1]['algn']))
|
|
829
|
+
# A11b 문단 «수» 는 정렬 차이가 아니다 (2026-09-13 실물 47·48p)
|
|
830
|
+
# 🟥 종전에는 ('ctr','ctr') 과 ('ctr',) 이 «정렬이 갈린다» 로 보고됐다 — 전부 가운데인데도.
|
|
831
|
+
# 실물 덱의 마지막 P4 후보 2건이 이 형태였고, 축이 자기 질문이 아닌 «시퀀스가 갈리는가»
|
|
832
|
+
# 를 답하고 있었다. A11(순서 차이)은 여전히 갈려야 하므로 둘을 같이 건다.
|
|
833
|
+
d = os.path.join(fx_dir, 'r3_algn_count.pptx')
|
|
834
|
+
_mini_deck(d, [_paras('a', 0, 'ctr', 'ctr') + _paras('b', 5000000, 'ctr')])
|
|
835
|
+
S11b, sw11b = LA.load(d)
|
|
836
|
+
ok('A11b 문단 수만 다르고 전부 ctr → 갈림 0 (%s vs %s)' % (S11b[0][0]['algn'], S11b[0][1]['algn'])) \
|
|
837
|
+
if S11b[0][0]['algn'] != S11b[0][1]['algn'] and len(list(LA.ax_algn(S11b, sw11b, {}))) == 0 \
|
|
838
|
+
else ng('A11b algn=%r/%r hits=%d' % (S11b[0][0]['algn'], S11b[0][1]['algn'], len(list(LA.ax_algn(S11b, sw11b, {})))))
|
|
839
|
+
# A11c known-positive 컨트롤 — 진짜로 방식이 다르면 여전히 잡는다(수리가 축을 죽이지 않았다)
|
|
840
|
+
d = os.path.join(fx_dir, 'r3_algn_real.pptx')
|
|
841
|
+
_mini_deck(d, [_paras('a', 0, 'ctr', 'ctr') + _paras('b', 5000000, 'r')])
|
|
842
|
+
S11c, sw11c = LA.load(d)
|
|
843
|
+
ok('A11c 컨트롤: ctr/ctr vs r → 갈림 1(축이 죽지 않았다)') \
|
|
844
|
+
if len(list(LA.ax_algn(S11c, sw11c, {}))) == 1 else ng('A11c hits=%d' % len(list(LA.ax_algn(S11c, sw11c, {}))))
|
|
845
|
+
# A11d 화면대조 정규화도 엔티티를 푼다 (2026-09-13 실물 119p)
|
|
846
|
+
# 🟥 실물 원고에 `Q & A` 가 문자 그대로 들어 있고 화면은 `Q&A` 라, 같은 문자열이
|
|
847
|
+
# «문구만 다른 줄» 로 보고됐다. 덱 쪽은 이미 풀려 나오는데 원고 쪽만 안 풀려 있던
|
|
848
|
+
# **한쪽만 관대한 정규화**였다. known-pair 로 양방향을 건다.
|
|
849
|
+
ok('A11d 정규화: «Q & A» 와 «Q&A» 가 같다') \
|
|
850
|
+
if LS._norm('Q & A') == LS._norm('Q&A') else ng('A11d %r vs %r' % (LS._norm('Q & A'), LS._norm('Q&A')))
|
|
851
|
+
ok('A11d 컨트롤: 진짜로 다른 문자열은 여전히 다르다') \
|
|
852
|
+
if LS._norm('Q & A') != LS._norm('Q & B') else ng('A11d 컨트롤 — 정규화가 너무 관대하다')
|
|
783
853
|
# A12 엔티티 동치: & 와 & 는 같은 문장
|
|
784
854
|
d = os.path.join(fx_dir, 'r3_entity.pptx')
|
|
785
855
|
_mini_deck(d, [_sp('e', 0, 0, 100, 100, 'Research & Development', 2800), _sp('e', 0, 0, 100, 100, 'Research & Development', 3200)])
|
|
@@ -824,7 +894,7 @@ def run_codex_audit_regressions(fx_dir):
|
|
|
824
894
|
l6, st6, _s, _e = LG.p1_lines(LG.load_slides(d), 200000)
|
|
825
895
|
ok('A6 geometry: 엔티티 표기가 달라도 결박(mismatch 0) · 후보 1') if len(l6) == 1 and st6.get('mismatch', 0) == 0 else ng('A6 lines=%r st=%r' % (l6, st6))
|
|
826
896
|
# A7 slides 원소 1.9 · true 는 오류
|
|
827
|
-
_i7, e7 = LA._intent_index([{'axis': 'dash', 'slides': [1.9], 'why': 'w'}, {'axis': 'dash', 'slides': [True], 'why': 'w'}])
|
|
897
|
+
_i7, e7, _b7 = LA._intent_index([{'axis': 'dash', 'slides': [1.9], 'why': 'w'}, {'axis': 'dash', 'slides': [True], 'why': 'w'}])
|
|
828
898
|
ok('A7 slides [1.9]·[true] → 선언 오류 2 · 면제 0') if len(e7) == 2 and not _i7 else ng('A7 errs=%r idx=%r' % (e7, dict(_i7)))
|
|
829
899
|
# B8 mirror: 글자 수 다른 AB / ABCDE 같은 28pt → 후보 0 · (28,32)/(32,28) 는 여전히 1
|
|
830
900
|
d = os.path.join(fx_dir, 'r4_mirror_len.pptx')
|
|
@@ -1150,7 +1220,7 @@ def run_r8_regressions(fx_dir):
|
|
|
1150
1220
|
if nie and rc_c == 0 and rc_d == 0 else ng('A2 nie=%r cand=%s dest=%s\n%s' % (nie, rc_c, rc_d, (out_c + out_d)[-300:]))
|
|
1151
1221
|
|
|
1152
1222
|
# ── A3: intended shapes 원소가 섞이면 «그 항목만» 오류, 레인은 산다 ──
|
|
1153
|
-
idx3, errs3 = LA._intent_index([{'axis': 'dash', 'slides': [1], 'shapes': ['A', 1], 'why': 'r'},
|
|
1223
|
+
idx3, errs3, _b3 = LA._intent_index([{'axis': 'dash', 'slides': [1], 'shapes': ['A', 1], 'why': 'r'},
|
|
1154
1224
|
{'axis': 'dash', 'slides': [1], 'shapes': ['B'], 'why': 'r'}])
|
|
1155
1225
|
ok('A3 shapes=["A",1] → 오류 1 · 정상 항목은 색인됨 %s' % (dict(idx3),)) \
|
|
1156
1226
|
if len(errs3) == 1 and ('dash', 1) in idx3 and len(idx3[('dash', 1)]) == 1 else ng('A3 errs=%r idx=%r' % (errs3, dict(idx3)))
|