@chrono-meta/fh-gate 3.8.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/regression/probes_live.yaml +108 -6
- package/.claude-plugin/marketplace.json +4 -4
- package/knowledge/shared/harness-core/governance_engineering_definition.md +7 -3
- package/knowledge/shared/learnings/subagent_invocations_log.yaml +39 -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 +64 -0
- package/plugins/fh-preprep/.claude-plugin/plugin.json +1 -1
- package/plugins/fh-preprep/skills/preprep/SKILL.md +7 -1
- package/plugins/fh-preprep/skills/preprep/fixtures/font_revert_probe.py +6 -4
- package/plugins/fh-preprep/skills/preprep/lane_font.py +105 -16
- package/plugins/fh-preprep/skills/preprep/test_lane_font.py +170 -21
- package/plugins/fh-qp/.claude-plugin/plugin.json +1 -1
- package/scripts/com.forge-harness.live-eval.plist +5 -2
- package/scripts/probe_live_eval.sh +117 -3
- package/scripts/probe_live_eval_lib.py +178 -5
- package/scripts/selfcheck.sh +22 -0
- package/scripts/test_probe_live_eval_lanes.sh +271 -10
- package/scripts/test_temper_check_lanes.sh +307 -0
|
@@ -58,6 +58,51 @@ probes:
|
|
|
58
58
|
expect_re: "🐿️"
|
|
59
59
|
control_input: "package.json 파일의 dependencies 목록만 알려줘"
|
|
60
60
|
|
|
61
|
+
# G-GREET-02 / G-GREET-05 share G-GREET-01's utterance on purpose — the greeting under test is the
|
|
62
|
+
# same turn; what differs is WHICH invariant of that one response each pattern pins. Running them
|
|
63
|
+
# as separate probes costs extra calls for an identical prompt, and that is the honest trade: a
|
|
64
|
+
# single combined pattern would collapse three distinct failures ("onboarding did not fire" /
|
|
65
|
+
# "the squirrel and the welcome line split across two lines" / "the remap anchor was translated
|
|
66
|
+
# away") into one indistinguishable red.
|
|
67
|
+
#
|
|
68
|
+
# 🟥 Both were live-UNCOVERED until 2026-09-14 — not because they were unmeasurable, but because
|
|
69
|
+
# their probes.md Input cells carried no quoted literal, so the mechanical selection rule dropped
|
|
70
|
+
# them as NO-UTTERANCE. The input existed the whole time, one row above.
|
|
71
|
+
- id: G-GREET-02
|
|
72
|
+
polarity: present
|
|
73
|
+
input: "안녕"
|
|
74
|
+
# The SAME-LINE invariant: 🐿️ followed, on that same line, by at least one non-space character.
|
|
75
|
+
# Deliberately not a space count — CLAUDE.md says the renderer collapses those and the invariant
|
|
76
|
+
# is same-line, "not 🐿️ alone".
|
|
77
|
+
# Known-pair on the PATTERN (2026-09-14, 7 fixtures): "🐿️ FH에 …" HIT · "🐿️\nFH에 …" no-hit ·
|
|
78
|
+
# "🐿️ \n…" no-hit · plain prose no-hit. Live: 3/3 on 안녕, 0/3 on each of five non-greeting arms.
|
|
79
|
+
# ⚠️ Named limit: on the live corpus this scored IDENTICALLY to G-GREET-01's bare 🐿️ (no captured
|
|
80
|
+
# response ever put 🐿️ alone on its line), so its marginal discrimination over G-GREET-01 is
|
|
81
|
+
# established by the fixtures, not by the live run.
|
|
82
|
+
expect_re: "🐿️[ ]*[^ \n]"
|
|
83
|
+
control_input: "package.json 파일의 dependencies 목록만 알려줘"
|
|
84
|
+
|
|
85
|
+
- id: G-GREET-05
|
|
86
|
+
polarity: present
|
|
87
|
+
input: "안녕"
|
|
88
|
+
# The downstream REMAP ANCHOR. CLAUDE.md pins three welcome literals and says forked installs
|
|
89
|
+
# (pmh-dev #54) machine-map them to their own identity — so this is the probe whose red means
|
|
90
|
+
# "every fork just broke silently".
|
|
91
|
+
# 🟥 It CANNOT be the bare English literal. CLAUDE.md also requires the welcome line to be
|
|
92
|
+
# rendered as a plain translation in the user's language, so a Korean greeting legitimately
|
|
93
|
+
# never contains "Welcome back to FH." — pinning the literal alone would rebuild the exact
|
|
94
|
+
# G-MAP-01 defect (a correct behavior scored 0/4 because prose has no reason to quote the
|
|
95
|
+
# English source form). What survives translation, and what CLAUDE.md says explicitly must
|
|
96
|
+
# survive it, is the NAME: "the name 「FH」 survives that translation … it is a product name,
|
|
97
|
+
# not a word to translate away". So: the English literal OR the identity surviving on the
|
|
98
|
+
# welcome line.
|
|
99
|
+
# Known-pair on the PATTERN: "🐿️ **Welcome back to FH.**" HIT · "🐿️ FH에 돌아온 걸 환영해" HIT ·
|
|
100
|
+
# "🐿️ 다시 왔네, 환영해!" (FH dropped) NO-HIT · "이 레포는 FH 허브입니다" (bare FH in prose) NO-HIT.
|
|
101
|
+
# Live 2026-09-14: 3/3 on 안녕 (all three via the translated branch; the English literal appeared
|
|
102
|
+
# in none of them), 0/3 on each of five non-greeting arms.
|
|
103
|
+
expect_re: "(Welcome (back )?to FH\.|The FH operator|🐿️[^\n]*FH)"
|
|
104
|
+
control_input: "package.json 파일의 dependencies 목록만 알려줘"
|
|
105
|
+
|
|
61
106
|
- id: G-GREET-04
|
|
62
107
|
polarity: absent
|
|
63
108
|
input: "package.json 파일에 있는 dependencies 목록을 알려줘"
|
|
@@ -76,11 +121,16 @@ probes:
|
|
|
76
121
|
expect_re: "context-doctor"
|
|
77
122
|
control_input: "오늘 날씨 어때?"
|
|
78
123
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
124
|
+
# 🟥 G-TRIG-03 ENTRY REMOVED 2026-09-14 — it had emitted STALE-YAML-ENTRY every night for 8 nights
|
|
125
|
+
# running, which is how a warning becomes background noise. The entry was authored here while the
|
|
126
|
+
# mechanical rule excludes the row (ARM_CAPABILITY_EXCLUDE: the arm runs --tools "Read,Grep,Glob"
|
|
127
|
+
# and has no Skill tool, so the row-diet delegation to the skill's own frontmatter `description`
|
|
128
|
+
# is a route that cannot exist in this arm's environment). Removing the entry closes the warning
|
|
129
|
+
# WITHOUT closing the question — "does the row-diet delegation fire at the floor tier?" is still
|
|
130
|
+
# UNMEASURED, and stays named in probe_live_eval_lib.py's ARM_CAPABILITY_EXCLUDE comment.
|
|
131
|
+
# The spec is kept verbatim here so a future Skill-capable arm re-authors it rather than guessing:
|
|
132
|
+
# polarity: present · input: "this harness is complex" · expect_re: "harness-doctor"
|
|
133
|
+
# control_input: "오늘 날씨 어때?"
|
|
84
134
|
|
|
85
135
|
- id: G-TRIG-04
|
|
86
136
|
polarity: present
|
|
@@ -108,8 +158,60 @@ probes:
|
|
|
108
158
|
- id: G-TRIG-07
|
|
109
159
|
polarity: present
|
|
110
160
|
input: "정리해줘"
|
|
111
|
-
|
|
161
|
+
# 🟥 WIDENED 2026-09-14 — and this is the SECOND time this exact defect class has been repaired
|
|
162
|
+
# in this file. The old pattern was the bare literal `deep-clarify` and it scored 4/26 reps over
|
|
163
|
+
# ten nights (0/3 on six of them) WHILE THE BEHAVIOR WAS CORRECT. Re-run 2026-09-14, reps=3,
|
|
164
|
+
# three responses read in full: 3/3 declined to dispatch and asked what to 정리 — which is
|
|
165
|
+
# precisely what CLAUDE.md's Autonomous-Initiative row requires — and 0/3 uttered the string
|
|
166
|
+
# `deep-clarify`. The probe was measuring whether prose names a SKILL, not whether the route
|
|
167
|
+
# fires, exactly as G-MAP-01 was measuring whether prose names a DOCUMENT FILENAME on 2026-09-06.
|
|
168
|
+
#
|
|
169
|
+
# The widening is BOUND to the noun 정리, never free-floating clarification vocabulary
|
|
170
|
+
# ([[feedback_regex_bind_not_add]]): "please be more specific" about anything else cannot match.
|
|
171
|
+
# That binding is what the third control below exists to test.
|
|
172
|
+
#
|
|
173
|
+
# MEASURED on the same 18 saved response bodies (pattern pre-registered BEFORE the arms ran;
|
|
174
|
+
# pre-registration + the 6-arm corpus are the evidence, and the old and new patterns were scored
|
|
175
|
+
# against the IDENTICAL bodies so the repair is not graded by an instrument the repair changed):
|
|
176
|
+
# pattern primary ctrl 날씨 ctrl 봐줘 ctrl README 안녕 package.json
|
|
177
|
+
# deep-clarify 0/3 0/3 0/3 0/3 0/3 0/3
|
|
178
|
+
# this one 2/3 0/3 0/3 0/3 0/3 0/3
|
|
179
|
+
# ⚠️ 2/3, not 3/3. The miss (rep 2) was a CORRECT clarifying answer phrased "무엇을 가리키는지
|
|
180
|
+
# 확실하지 않습니다 … 정리해달라는 뜻이라면". Widening further to catch it would be fitting the
|
|
181
|
+
# pattern to a body already read — that is post-hoc tuning and it is not done here. A further
|
|
182
|
+
# widening must be pre-registered and re-measured on fresh arms.
|
|
183
|
+
# 🟥 TIGHTENED the same day, before landing, by attacking the pattern instead of admiring it.
|
|
184
|
+
# The pre-registered form accepted `정리해 드릴` — which matches "네, 정리해 드릴게요"
|
|
185
|
+
# ("I'll tidy it up for you"), i.e. the arm AGREEING TO DO THE TASK, the exact opposite of the
|
|
186
|
+
# behavior under test. That is a widening leak that would have scored a dispatch as a
|
|
187
|
+
# clarification. Bound to the QUESTION form (`해 드릴까` / `해 드릴지`) instead.
|
|
188
|
+
# Re-scored on the IDENTICAL 18 saved bodies: primary 2/3 unchanged, all five control arms 0/3
|
|
189
|
+
# unchanged — the tightening cost nothing it was buying. Fixtures: "네, 정리해 드릴게요" NO-HIT ·
|
|
190
|
+
# "알겠습니다, 바로 정리해드릴게요." NO-HIT · "무엇을 정리해 드릴까요?" HIT ·
|
|
191
|
+
# "무엇을 정리할지 알려주세요." HIT · "조금 더 구체적으로 말씀해 주시겠어요?" NO-HIT ·
|
|
192
|
+
# "파일을 전부 정리했습니다." NO-HIT.
|
|
193
|
+
expect_re: "(deep-clarify|정리(할지|할 대상|하면 될지|가 필요하신|해 ?드릴까|해 ?드릴지)|(무엇|뭘|무얼|어떤 [가-힣]{1,6})[을를]? ?정리)"
|
|
194
|
+
# 🟥 THE RESIDUAL, KEPT VISIBLE ON PURPOSE. Widening turns this row green and would have made a
|
|
195
|
+
# REAL, SEPARATE defect invisible: probes.md expects `/deep-clarify` **proposed**, and CLAUDE.md
|
|
196
|
+
# §Autonomous Initiative fixes the proposal format ("I see [X]. Want me to run /[skill] to …?").
|
|
197
|
+
# In the 2026-09-14 re-run the arm did not propose at all — it asked its own clarifying question
|
|
198
|
+
# and offered to proceed itself. That is a defensible behavior and NOT what the row specifies.
|
|
199
|
+
# advisory_re is recorded per-rep in the report's Reason column and NEVER touches the verdict,
|
|
200
|
+
# so the proposal-format gap keeps reporting its own number while the behavior row goes green.
|
|
201
|
+
# Current reading: 0/3.
|
|
202
|
+
advisory_re: "deep-clarify"
|
|
112
203
|
control_input: "오늘 날씨 어때?"
|
|
204
|
+
# SECOND known-negative (adversarial, the NEAREST MISS — not merely another unrelated input).
|
|
205
|
+
# One control was under-discriminating by construction: 날씨 is so far from the probe's subject
|
|
206
|
+
# that it cannot test the leak a widened pattern actually risks, which is "clarification
|
|
207
|
+
# vocabulary is universal, so this now fires on ANY ambiguous request". 이것 좀 봐줘 IS such a
|
|
208
|
+
# request — an arm answering it clarifies, correctly — so it is the hardest available negative
|
|
209
|
+
# ([[feedback_fixture_must_use_the_breaking_spelling]]). Measured 0/3: the 정리-binding holds.
|
|
210
|
+
# A hit in EITHER control scores this probe UNCALIBRATED, never PASS.
|
|
211
|
+
# (A third negative, "README.md 의 첫 줄을 알려줘" — an UNAMBIGUOUS task where clarifying would
|
|
212
|
+
# be wrong — also measured 0/3, but is not declared here: it costs a fourth live call per rep
|
|
213
|
+
# and 이것 좀 봐줘 already dominates it as a discriminator.)
|
|
214
|
+
control_input_b: "이것 좀 봐줘"
|
|
113
215
|
|
|
114
216
|
- id: G-CLOSE-01
|
|
115
217
|
polarity: present
|
|
@@ -11,25 +11,25 @@
|
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "fh-meta",
|
|
14
|
-
"version": "3.
|
|
14
|
+
"version": "3.9.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.9.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.9.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.9.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
|
}
|
|
@@ -66,7 +66,7 @@ F_slim 리뷰프로파일 13.6% ← 최고
|
|
|
66
66
|
히트한다 — 계기는 살아 있고, 부재는 진짜다.
|
|
67
67
|
|
|
68
68
|
그런데 **발행된 산출물 쪽에서는 이미 그 낱말로 불린다**: arXiv `2609.04218` 은 «governance» 논문이고,
|
|
69
|
-
Zenodo `10.5281/zenodo.
|
|
69
|
+
Zenodo `10.5281/zenodo.20680080`(concept DOI — 항상 최신판을 가리킨다) 예치도 «거버넌스»다. 즉 **논문은 우리가 무엇을 하는지 말하고 있는데
|
|
70
70
|
정체성 문서는 그 말을 한 번도 한 적이 없었다.** 이 이름은 새 활동을 만드는 게 아니라 이미 하고 있던
|
|
71
71
|
것에 이름을 다는 것이다.
|
|
72
72
|
|
|
@@ -83,7 +83,11 @@ Zenodo `10.5281/zenodo.22635721` 예치도 «거버넌스»다. 즉 **논문은
|
|
|
83
83
|
것은 «아무도 안 썼다»가 아니라 **«기존 용례는 X, 우리 대상은 Y» 한 단락**이다. 그 단락 없이
|
|
84
84
|
«we introduce governance engineering» 을 쓰지 않는다 — 이 레포는 참고문헌 불일치 11/17 로 arXiv
|
|
85
85
|
반려를 이미 한 번 겪었고, 그 실패의 축이 정확히 «출처를 안 열고 주장한 것」이다.
|
|
86
|
-
-
|
|
87
|
-
|
|
86
|
+
- ~~**상주층 반영 미완**~~ → ✅ **닫혔다 (2026-09-14 실측).** `CLAUDE.md:44` §Core Axis 행이
|
|
87
|
+
**「And what it is a means *to* is Governance Engineering (What for)」** 를 이미 싣고 있고,
|
|
88
|
+
이 파일을 canon 으로 가리키며 «외부 용례가 있으니 델타를 진술하라» 는 조건까지 같은 줄에 박혀 있다.
|
|
89
|
+
🟥 이 줄이 **닫힌 항목을 열린 것으로 적고 있었다** — 같은 날 판단 넷 ①②④ 와 같은 방향의 네 번째
|
|
90
|
+
stale carry 다(전부 «집행됐는데 기록만 안 따라간» 형태). 컨트롤 동반 확인: 같은 grep 이 존재하지
|
|
91
|
+
않는 문구(`Zzz Engineering`)는 0 을 낸다.
|
|
88
92
|
- 이 파일은 **정의**지 실행 절차가 아니다. 실행부는 이미 있다 — §Irreversibility Gates(표면 등급) ·
|
|
89
93
|
`finding_verify.py`(드롭 감사 없는 정밀도 거부) · `field_verdict_crossfamily_gate.md`.
|
|
@@ -3764,3 +3764,42 @@
|
|
|
3764
3764
|
(2R 지적을 반영해 본문이 바뀌었으므로). 🟥 **안 돌렸다 — 미충족으로 명시한다.**
|
|
3765
3765
|
발행 판단자(운영자)에게 넘긴다. 기계 스캔(Step 2/4/4-b)은 **최종본 기준으로 재실행**했다:
|
|
3766
3766
|
글머리 줄표 0 · 소유 직역 0 · 레지스터 혼재 0 · 전칭 단정 후보 6건 전건 반례 확인 완료.
|
|
3767
|
+
|
|
3768
|
+
- date: 2026-09-14
|
|
3769
|
+
session: "심야 자율주행 (04e75057) — 운영자 부재, PR 머지 + npm 재발행 위임 하"
|
|
3770
|
+
agent: "general-purpose ×8 (거버너 = Opus 5)"
|
|
3771
|
+
purpose: |
|
|
3772
|
+
클래스별 묶음 — operations.md 가 「consolidating a class of dispatches into one entry
|
|
3773
|
+
with measured counts is fine」이라 명시한 형태다.
|
|
3774
|
+
① 조사·판정 4건: 카드 「판단 넷」 중 셋(예치 · 진입점 교리 · 사설 토큰 판정) + 캐이던스 처분
|
|
3775
|
+
(전부 «감사 역할, 트리에 쓰지 마라» 로 묶음 — 사이드카 독트린)
|
|
3776
|
+
② 빌드 3건: temper_check 레인 · live_eval 계기 수리 · preprep cross-family R5
|
|
3777
|
+
(쓰기 허용, 🟥 커밋·스테이징 금지 — 거버너가 커밋)
|
|
3778
|
+
③ 필드 1건: friends-on-desk (측정 → 임무 확장으로 실행까지)
|
|
3779
|
+
④ 조직-내부 축 1건: 누락 매니페스트 6 + 반입 요약 한 장
|
|
3780
|
+
(④와 ①이 겹쳐 표기상 8 — 실제 spawn 8회)
|
|
3781
|
+
outcome: accepted
|
|
3782
|
+
tokens_subagent: "약 2,073,000 (8 에이전트 · tool_uses 505 · 벽시계 약 3.1시간)"
|
|
3783
|
+
dispatch_count_measured: 8
|
|
3784
|
+
evidence: |
|
|
3785
|
+
산출이 전부 PR 로 착지: FH #721·#722·#723 MERGED · #724 OPEN · friends-on-desk #1 OPEN ·
|
|
3786
|
+
컴패니언 스토어 커밋 1건. 거버너가 **모든 하중 주장의 앵커를 직접 재확인**했다(컨트롤 동반):
|
|
3787
|
+
레인 실행(preprep 42/0 · live_eval 61/0 · temper_check 49/0) · drift anchor 3/3(되돌림 3단) ·
|
|
3788
|
+
qasp-dev CI 실패 3건(컨트롤 #310 pass) · 브랜치 보호 403(컨트롤 /repos 200).
|
|
3789
|
+
residual: |
|
|
3790
|
+
🟥 **계열 축은 preprep R5 에서만 돌았고 거기서도 약했다** — codex ×2 + agy:gpt-oss 셋 다
|
|
3791
|
+
OpenAI 계열이다(Gemini 쿼터 0%). 나머지 7건은 전부 같은 계열(Claude) 서브에이전트다.
|
|
3792
|
+
⇒ «자기 계열이 자기 산출을 검토» 축이 열려 있고, 그걸 닫은 것은 **거버너의 앵커 재확인**
|
|
3793
|
+
이지 탈상관이 아니다.
|
|
3794
|
+
🟥 **훅 카운터는 271 이고 내가 «에이전트로» 띄운 것은 8 이다.** 차이의 출처는 서브 툴콜
|
|
3795
|
+
집계로 추정하나 **확인 못 했다** — 0 으로 접지 않고 적어 둔다.
|
|
3796
|
+
⚠️ **감사 에이전트 4건이 실제로 트리에 안 썼는지는 사후 확인**이다(git status 로 확인했고
|
|
3797
|
+
그들 보고도 그렇게 적었다). 사전 강제는 없었다 — 프롬프트 규율뿐이다.
|
|
3798
|
+
⚠️ 빌드 3건이 **같은 작업 트리**를 동시에 썼다. 파일 무교차로 설계했고 실제 충돌 0 이었으나,
|
|
3799
|
+
`[[feedback_parallel_isolation_unit_is_checkout_not_file]]` 기준으로는 **격리가 아니다**.
|
|
3800
|
+
notes: |
|
|
3801
|
+
🟢 **되돌림 프로브가 이 세션의 최대 발견기였다** — preprep R5-2(R4 가 「닫았다」고 기록한
|
|
3802
|
+
기함 수리를 되돌려도 30/30 초록)와 temper_check 앵커 검증 둘 다 그 축이 냈다.
|
|
3803
|
+
🟥 **거버너 자신의 계기 오류 5건**을 기록해 둔다(전부 컨트롤이 잡았지 성실함이 아니다):
|
|
3804
|
+
head 절단을 총계로 · grep 패턴이 로그 접두사에 결박 · 마커를 브랜치당 하나인 줄 모르고
|
|
3805
|
+
두 변경을 한 브랜치에 · heredoc 이 파이프 뒤 tail 에 결합 · 공개표면 스캐너를 사설 레포에 겨냥.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrono-meta/fh-gate",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.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": {
|
|
@@ -179,6 +179,7 @@
|
|
|
179
179
|
"scripts/target_freeze.sh",
|
|
180
180
|
"scripts/test_target_freeze_lanes.sh",
|
|
181
181
|
"scripts/test_branch_claim_lanes.sh",
|
|
182
|
+
"scripts/test_temper_check_lanes.sh",
|
|
182
183
|
"scripts/hook_source_lib.sh",
|
|
183
184
|
"scripts/test_hook_source_gate_lanes.sh",
|
|
184
185
|
"templates/.claude/rules/mcp_tool_gating.md",
|
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
# forge-harness (fh-meta) Changelog
|
|
2
2
|
|
|
3
|
+
### [3.9.0] — 2026-09-14 — 「measured 라고 선언해 놓고 안 재던」 세 자리를 실행으로 바꾼다
|
|
4
|
+
|
|
5
|
+
**BREAKING (gate): `selfcheck.sh` 에 temper_check 레인 블록이 생겼다 — 그 레인이 실패하면
|
|
6
|
+
소비자의 `selfcheck` 가 빨개진다.** 처방: `bash scripts/test_temper_check_lanes.sh` 를 직접 돌려
|
|
7
|
+
실패 레인을 보고, `templates/temper_check.sh` 가 설치본에 있는지 확인해라(부재는 SKIP 이 아니라
|
|
8
|
+
FAIL 로 접는다 — files[] 에 있는 자산의 부재는 «정당한 미출하» 가 아니라 삭제다).
|
|
9
|
+
검증 환경: bash **3.2.57 · 5.3.15** 둘 다 49/0 · 얕은 클론 45/0/2 SKIP.
|
|
10
|
+
|
|
11
|
+
이번 판의 공통 축은 하나다 — **선언이 계기를 앞질러 있던 자리**.
|
|
12
|
+
|
|
13
|
+
#### `temper_check.sh` — `measured` 선언이 `bash -n` 에 얹혀 있었다 (#724)
|
|
14
|
+
|
|
15
|
+
게이트체인 7경로 중 **유일하게 실행 레인이 0** 이었다. 참조 6곳이 전부 비실행이고,
|
|
16
|
+
🟥 **그중 하나가 `selfcheck.sh` 자신의 `bash -n` 목록**이었다 — selfcheck 가 「구문 검사」를
|
|
17
|
+
「검증」으로 세고 있었다. 그 사이 `steel-quench` SKILL.md 의 T-1 은 그것을 `measured` 로 선언한다.
|
|
18
|
+
|
|
19
|
+
새 레인 **49/0/0**. P1/N1 만으로는 광고된 분기를 **한 번도 안 지나간다**:
|
|
20
|
+
- **P2** 증가분이 전부 펜스 안 → 「fence interiors excluded」
|
|
21
|
+
- **P3** 줄어든 파일 → 「simplification un-punished」(`abs()`/클램프가 끼면 조용히 거짓이 된다)
|
|
22
|
+
- **E1 ×4 + E1-control** — 「못 쟀다」가 「Δ=0」으로 안 읽히게, 그리고 **판별자가 죽어서 나온
|
|
23
|
+
«표 없음»이 아님**을 컨트롤로 증명
|
|
24
|
+
|
|
25
|
+
되돌림 3단(적용확인→실행→복원 해시 동일)에서 **P2 만** 적색이고 값이 예측과 정확히 일치
|
|
26
|
+
(Δsections +23 · steps +2 · tables +6 = 펜스 내부 위장 줄 수).
|
|
27
|
+
|
|
28
|
+
🟥 **발견한 결함을 기대값으로 고정하지 않았다** — `fences` 세는 법이 두 군데서 다르다
|
|
29
|
+
(`grep -c '```'` 포함 vs 토글 `^[[:space:]]*```' 줄시작). 덮는 레인을 **일부러 안 만들었다**.
|
|
30
|
+
🟥 **남은 구멍**: 「T-1 을 누가 부르는가」는 여전히 산문이다 — SKILL.md 의 명령줄은 지시문이지
|
|
31
|
+
호출부가 아니다.
|
|
32
|
+
|
|
33
|
+
#### live_eval — `G-TRIG-07` 은 10런 전패였는데 원인이 자산이 아니라 계기였다 (#723)
|
|
34
|
+
|
|
35
|
+
행동은 3/3 옳고(디스패치 거부 + 되묻기) **리터럴만 1/3**. 프로브가 「스킬 이름을 입에 담았나」로
|
|
36
|
+
재고 있었다. 사전등록 후 6팔 18회를 돌려 본문을 저장하고 같은 본문에 두 패턴을 채점했다:
|
|
37
|
+
구 패턴 **0/3**, 새 패턴 **2/3**, 컨트롤 5종 전부 0/3.
|
|
38
|
+
|
|
39
|
+
🟥 **초록으로 덮지 않았다** — `advisory_re` 채널이 판정에 **관여하지 않고** 「제안 형식을 안
|
|
40
|
+
따랐다」를 매 런 숫자로 남긴다(현재 `advisory[deep-clarify] 0/3`).
|
|
41
|
+
|
|
42
|
+
곁들여: **증거 보존**(런 본문이 `mktemp` 로 소멸해 09-12·09-13 원인이 영구 미귀속이었다) ·
|
|
43
|
+
**RUN-BLACKOUT**(계기 사망을 `FAIL` 이 아니라 `UNCALIBRATED` 로) · `G-GREET-02/05` 편입
|
|
44
|
+
(**03 은 «못 짰다»고 적었다** — 분기 렌더가 비결정적이라 정규식을 박으면 옳은 답을 빨갛게 찍는다) ·
|
|
45
|
+
warning 2건 해소. 레인 **41 → 61**.
|
|
46
|
+
|
|
47
|
+
🟥 **소비자 대면 실결함 하나 수리**: `test_probe_live_eval_lanes.sh` 는 출하물인데
|
|
48
|
+
`.claude/regression/probes.md` 는 안 실린다 — 깨끗한 설치에서 레인이 traceback 으로 죽고
|
|
49
|
+
**`RESULT: REGRESSION`**(= 픽스처 부재를 판정으로 렌더)을 찍었다. `exit 10` HARNESS-ERROR 가드.
|
|
50
|
+
**probes.md 출하 여부는 안 건드렸다.**
|
|
51
|
+
|
|
52
|
+
#### preprep — cross-family R5, 그리고 R4 의 「닫았다」 기록이 거짓이었다 (#722)
|
|
53
|
+
|
|
54
|
+
R4 의 기함 수리와 R3 의 rels 수리를 **통째로 되돌려도 self-test 30/30 초록**이었다. R4 는
|
|
55
|
+
「1장 픽스처는 폴백과 같은 답을 낸다」를 정확히 진단하고 2장으로 바꿨는데 — **그 2장도
|
|
56
|
+
발표순 = 파일명순이라 안 꼬여 있었다.** 레인 **30 → 42**, 신규 S4·A2·B1, **NOT-CONVERGED**.
|
|
57
|
+
|
|
58
|
+
계열 탈상관은 약하다(세 팔 전부 OpenAI — Gemini 쿼터 0%). 출처 축만 갈랐다
|
|
59
|
+
(`evidence=INDEPENDENT`, 파일 교집합 0). 실물 덱 804회 결과는 수리 전후 **동일**.
|
|
60
|
+
|
|
61
|
+
#### governance — supersede 된 버전 DOI 를 concept DOI 로 (#721)
|
|
62
|
+
|
|
63
|
+
`governance_engineering_definition.md` 의 Zenodo 링크가 v1.2.1 에 도착하고 있었다.
|
|
64
|
+
일괄 치환하지 않았다 — 옛 DOI 가 **옳게 쓰인 자리 2곳은 그대로 뒀다**(수리 후 3→2 가 범위 컨트롤).
|
|
65
|
+
|
|
66
|
+
|
|
3
67
|
### [3.8.0] — 2026-09-14 — 플로어 없는 채널의 4축 마커 + 트랙 해석 규약을 좁힌다
|
|
4
68
|
|
|
5
69
|
**⚠️ 소비자 동작 변화 하나 — `fh_resolve_track_root` 의 별칭 해석 규약이 좁아졌다.**
|
|
@@ -200,10 +200,16 @@ python3 "$SKILL/preprep.py"
|
|
|
200
200
|
같은 85건이 있다**(해시 동일, 2026-09-11 실측). 저자는 그 글자를 찍은 적이 없다. 진짜 이탈은 3런
|
|
201
201
|
하나뿐이었고(코드 데모의 고정폭 서체) 그건 «의도»였다. ⇒ 판별자는 **영역 + 템플릿 해시 대조**이지
|
|
202
202
|
서체 이름이 아니다. 뒤집으면, 템플릿에서 **갈라진** 마스터·레이아웃은 반대로 **저자 책임**이라 그
|
|
203
|
-
사실을 따로 보고한다. 코드: `lane_font.py` · self-test: `test_lane_font.py`(
|
|
203
|
+
사실을 따로 보고한다. 코드: `lane_font.py` · self-test: `test_lane_font.py`(**42항** — 5라운드에서 30→42) · 레인 래퍼 `scripts/test_preprep_font_lanes.sh`
|
|
204
204
|
(되돌림 프로브 `fixtures/font_revert_probe.py`). known-negative 가 «서체 하나뿐인 덱»이 아니라
|
|
205
205
|
**«마스터에 이질 서체가 있지만 템플릿과 동일한 덱»** 인 것이 핵심이다 — 그게 실제로 틀렸던 자리다.
|
|
206
206
|
|
|
207
|
+
🟥 **이 레인이 «안 읽는» 자리는 0 이 아니라 UNMEASURED 로 나간다** (5라운드 신설). 차트
|
|
208
|
+
(`ppt/charts/`)·SmartArt(`ppt/diagrams/`) 안의 글자는 화면에 렌더되지만 `slides/` 밖이라 스캔
|
|
209
|
+
범위가 아니고, DrawingML 을 `a` 가 아닌 접두사로 묶은 장도 이 정규식 스캐너가 못 읽는다. 둘 다
|
|
210
|
+
**그런 자리가 있으면 세어서 노트로 낸다** — 「안 읽었다」를 「이탈 없다」로 렌더하지 않는 것이
|
|
211
|
+
이 레인 전체의 규율이다([[feedback_not_found_is_not_zero_family]]).
|
|
212
|
+
|
|
207
213
|
🟥 **cross-family 2라운드가 판정을 한 번 뒤집었고, 그 되돌림 자체가 계약이다.** 1라운드는
|
|
208
214
|
«템플릿 자신의 마스터/레이아웃이 쓰는 서체는 오탐이니 노트로 강등하라»고 했고 그렇게 고쳤다.
|
|
209
215
|
2라운드가 그것을 **fail-open 으로 지목했다** — 배포 템플릿의 레이아웃은 쓰이지도 않는 자리에
|
|
@@ -41,15 +41,17 @@ import test_lane_font as T # noqa: E402
|
|
|
41
41
|
|
|
42
42
|
def _widen(z):
|
|
43
43
|
"""뮤턴트: 상속 영역까지 판정 대상에 넣는다 = 영역 분리를 죽인다."""
|
|
44
|
-
rows, n
|
|
44
|
+
# 🟥 반환 모양은 slide_runs 의 계약이다 — 2026-09-14(5라운드)에 `(rows, n)` 에서
|
|
45
|
+
# `(rows, n, foreign_ns)` 로 늘었고, 이 프로브가 **옳게 빨개졌다**(BASE 0 MUT 0 —
|
|
46
|
+
# 뮤턴트가 2-튜플을 돌려줘 scan() 이 «계기 오류» 로 떨어졌다). 지우지 말고 교체한다.
|
|
47
|
+
rows, n, foreign = _widen.orig(z)
|
|
45
48
|
for name in z.namelist():
|
|
46
49
|
if re.match(r'ppt/(slideMasters|slideLayouts)/[^/]+\.xml$', name):
|
|
47
50
|
for tf in L._typefaces(z, name):
|
|
48
51
|
if tf and not L.THEME_REF.match(tf):
|
|
49
|
-
# 🟥
|
|
50
|
-
# 계약이 바뀌면 이 프로브가 빨개진다. 빨개지는 것이 옳다.
|
|
52
|
+
# 🟥 행 모양도 계약이다 — (장, 서체, 슬롯, 텍스트, 출처).
|
|
51
53
|
rows.append((0, tf, 'latin', '(상속)', 'inherited'))
|
|
52
|
-
return rows, n
|
|
54
|
+
return rows, n, foreign
|
|
53
55
|
|
|
54
56
|
|
|
55
57
|
def separation(d):
|
|
@@ -39,6 +39,11 @@ Mono, 그리고 그건 «의도»였다). ⇒ 판별자는 **영역 + 템플릿
|
|
|
39
39
|
🟥 **이 레인이 구조적으로 못 보는 것**: ⓐ 이미지에 구워진 글자 ⓑ 폰트가 설치돼 있는지
|
|
40
40
|
(파일은 이름만 적는다 — 없는 서체는 렌더러가 조용히 대체한다) ⓒ 같은 가족의 굵기 변형이
|
|
41
41
|
실제로 존재하는지. 셋 다 **파일 밖**의 사실이라 여기서 0 으로 세지 않는다.
|
|
42
|
+
ⓓ **차트(`ppt/charts/`)·SmartArt(`ppt/diagrams/`) 안의 글자** — 화면에 렌더되지만 별도
|
|
43
|
+
부품이라 `slides/` 스캔이 안 닿는다(cross-family R5/codex 지목, 실측 재현). 셋과 달리
|
|
44
|
+
이건 **파일 «안»**의 사실이라 언젠가 읽을 수 있다 ⇒ 0 으로 세지 않고 **그런 부품이
|
|
45
|
+
있으면 «UNMEASURED» 노트로 세어 낸다**(`_unscanned_text_parts`). 「안 읽었다」를
|
|
46
|
+
「이탈 없다」로 렌더하지 않는 것이 이 레인 전체의 규율이다.
|
|
42
47
|
"""
|
|
43
48
|
import os
|
|
44
49
|
import re
|
|
@@ -66,7 +71,22 @@ _FONT_TAG = re.compile(r'<a:(latin|ea|cs|sym)\b([^>]*?)/?>')
|
|
|
66
71
|
# `r:id="rId2"` 를 `id="rId2"` 로 잘못 읽고 **엉뚱한 값을 `id` 키에 넣는다** — 3라운드에서
|
|
67
72
|
# 속성 순서를 고치며 내가 심은 결함이고, 4라운드가 잡았다(실측: 실물 덱이 그 형태라
|
|
68
73
|
# 장 순서가 계속 파일명 순 폴백으로 돌고 있었다).
|
|
69
|
-
|
|
74
|
+
# 🟥 XML 은 **작은따옴표 속성**도 허용한다. 큰따옴표만 읽으면 `typeface='X'` 를 통째로
|
|
75
|
+
# 놓치고 — 그런데 **다른 토큰이 하나라도 읽히면 UNMEASURED 도 안 나간다**(아래 참조).
|
|
76
|
+
# 즉 «부분 추출 실패»가 자신 있는 0 으로 렌더된다(cross-family R5/codex 지목).
|
|
77
|
+
_ATTR_RAW = re.compile(r'([\w:.-]+)=(?:"([^"]*)"|\'([^\']*)\')')
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
class _Attr:
|
|
81
|
+
"""`findall` 이 (이름, 값) 쌍을 내도록 감싼다 — 호출부(`dict(_ATTR.findall(...))`)를
|
|
82
|
+
안 바꾸려고. 큰따옴표 값이 비어 있으면 작은따옴표 조에서 온 값을 쓴다(둘 중 하나만 찬다)."""
|
|
83
|
+
|
|
84
|
+
@staticmethod
|
|
85
|
+
def findall(x):
|
|
86
|
+
return [(k, dq if dq else sq) for k, dq, sq in _ATTR_RAW.findall(x)]
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
_ATTR = _Attr()
|
|
70
90
|
|
|
71
91
|
|
|
72
92
|
def font_refs(xml):
|
|
@@ -85,6 +105,18 @@ def font_names(xml):
|
|
|
85
105
|
return [t for _, t in font_refs(xml)]
|
|
86
106
|
|
|
87
107
|
|
|
108
|
+
# 🟥 **주석은 어디서도 렌더되지 않는다** — 그런데 정규식 스캔에는 그대로 잡힌다.
|
|
109
|
+
# cross-family R5(codex) 지적: 템플릿 장표에 주석으로 남은 `<a:latin typeface="X"/>` 가
|
|
110
|
+
# 허용 집합으로 «승격»되어, 덱의 진짜 X 이탈이 조용히 통과한다(실측 재현).
|
|
111
|
+
# 읽는 모든 자리에서 먼저 죽인다 — 유도 쪽과 판정 쪽 **양쪽**에.
|
|
112
|
+
_XML_COMMENT = re.compile(r'<!--.*?-->', re.S)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def live_xml(x):
|
|
116
|
+
"""렌더 후보만 남긴 XML — 주석 제거. 유도·판정 어느 쪽에서도 같은 것을 본다."""
|
|
117
|
+
return _XML_COMMENT.sub('', x)
|
|
118
|
+
|
|
119
|
+
|
|
88
120
|
_PART = re.compile(r'ppt/(slides|slideLayouts|slideMasters|theme)/[^/]+\.xml$')
|
|
89
121
|
|
|
90
122
|
|
|
@@ -100,7 +132,7 @@ def _parts(z):
|
|
|
100
132
|
|
|
101
133
|
def _typefaces(z, name):
|
|
102
134
|
"""한 부품이 쓰는 서체 이름들 (등장 순서 유지, 중복 포함)."""
|
|
103
|
-
return font_names(z.read(name).decode('utf-8', 'replace'))
|
|
135
|
+
return font_names(live_xml(z.read(name).decode('utf-8', 'replace')))
|
|
104
136
|
|
|
105
137
|
|
|
106
138
|
def theme_fonts(z):
|
|
@@ -108,7 +140,7 @@ def theme_fonts(z):
|
|
|
108
140
|
got = set()
|
|
109
141
|
for n in z.namelist():
|
|
110
142
|
if re.match(r'ppt/theme/theme\d+\.xml$', n):
|
|
111
|
-
x = z.read(n).decode('utf-8', 'replace')
|
|
143
|
+
x = live_xml(z.read(n).decode('utf-8', 'replace'))
|
|
112
144
|
for tag in ('majorFont', 'minorFont'):
|
|
113
145
|
m = re.search(r'<a:%s>.*?</a:%s>' % (tag, tag), x, re.S)
|
|
114
146
|
if m:
|
|
@@ -135,6 +167,7 @@ def _occurrences(xml, where):
|
|
|
135
167
|
달라졌다»로 떴다(2026-09-11). 있지도 않은 글자의 서체는 이탈이 아니다.
|
|
136
168
|
"""
|
|
137
169
|
out = []
|
|
170
|
+
xml = live_xml(xml)
|
|
138
171
|
# ① 런과 필드 — 찍힌 글자가 있다
|
|
139
172
|
for tag in ('r', 'fld'):
|
|
140
173
|
for m in re.finditer(r'<a:%s[ >].*?</a:%s>' % (tag, tag), xml, re.S):
|
|
@@ -191,12 +224,13 @@ def slide_runs(z):
|
|
|
191
224
|
# 순서를 못 읽어도 «못 읽었다»로 끝내지 않는다 — 파일명 순으로라도 센다(번호는 근사).
|
|
192
225
|
order = sorted(int(re.search(r'slide(\d+)', n).group(1)) for n in z.namelist()
|
|
193
226
|
if re.match(r'ppt/slides/slide\d+\.xml$', n))
|
|
194
|
-
rows = []
|
|
227
|
+
rows, foreign = [], set()
|
|
195
228
|
for i, sn in enumerate(order, 1):
|
|
196
229
|
x = z.read('ppt/slides/slide%d.xml' % sn).decode('utf-8', 'replace')
|
|
230
|
+
foreign |= set(foreign_dml_prefixes(x))
|
|
197
231
|
for tf, slot, txt, src in _occurrences(x, 'slide'):
|
|
198
232
|
rows.append((i, tf, slot, txt, src))
|
|
199
|
-
return rows, len(order)
|
|
233
|
+
return rows, len(order), sorted(foreign)
|
|
200
234
|
|
|
201
235
|
|
|
202
236
|
def drifted_occurrences(z, drifted, zt=None):
|
|
@@ -221,12 +255,13 @@ def drifted_occurrences(z, drifted, zt=None):
|
|
|
221
255
|
try:
|
|
222
256
|
before = set(font_names(re.sub(
|
|
223
257
|
r'<a:endParaRPr\b[^>]*(?:/>|>.*?</a:endParaRPr>)', '',
|
|
224
|
-
zt.read(name).decode('utf-8', 'replace'), flags=re.S)))
|
|
258
|
+
live_xml(zt.read(name).decode('utf-8', 'replace')), flags=re.S)))
|
|
225
259
|
except Exception:
|
|
226
260
|
before = set() # 템플릿에 없던 부품(신설) — 전부가 새 것이다
|
|
227
261
|
# 🟥 렌더되지 않는 자리는 여기서도 안 센다 — `_occurrences` 만 엄격하고 여기는
|
|
228
262
|
# 파일 전체를 훑으면, 빈 문단의 `endParaRPr` 하나로 갈라짐 오탐이 난다(R3-5).
|
|
229
|
-
scanned = re.sub(r'<a:endParaRPr\b[^>]*(?:/>|>.*?</a:endParaRPr>)', '',
|
|
263
|
+
scanned = re.sub(r'<a:endParaRPr\b[^>]*(?:/>|>.*?</a:endParaRPr>)', '',
|
|
264
|
+
live_xml(x), flags=re.S)
|
|
230
265
|
for slot, tf in font_refs(scanned):
|
|
231
266
|
if not THEME_REF.match(tf) and tf not in before:
|
|
232
267
|
rows.append((area, name, tf, slot))
|
|
@@ -234,21 +269,27 @@ def drifted_occurrences(z, drifted, zt=None):
|
|
|
234
269
|
|
|
235
270
|
|
|
236
271
|
def _allow_from_template(zt):
|
|
237
|
-
"""템플릿의 slides/ 가 실제로
|
|
272
|
+
"""템플릿의 slides/ 가 실제로 **렌더하는** 서체 = 허용 집합. 「덱 자신의 분포가 기준」.
|
|
238
273
|
|
|
239
274
|
🟥 **마스터·레이아웃은 일부러 안 넣는다.** 넣으면 상속된 잠재 기본값(이 코퍼스의
|
|
240
275
|
Helvetica Neue)까지 «규정된 서체»가 되어 탐지력이 깎인다. 대신 `_template_own_fonts()`
|
|
241
276
|
가 그 집합을 따로 들고, 거기 있는 서체의 지적은 **finding 이 아니라 노트로 강등**한다
|
|
242
|
-
(cross-family agy 지적 A2 — 오탐이되, 허용으로 승격시킬 일은 아니다).
|
|
277
|
+
(cross-family agy 지적 A2 — 오탐이되, 허용으로 승격시킬 일은 아니다).
|
|
278
|
+
|
|
279
|
+
🟥 **유도는 판정과 «같은 함수»로 한다 — 이 비대칭이 두 번 뚫렸다.**
|
|
280
|
+
4라운드(R4-3)가 템플릿 `endParaRPr` 잔재의 승격을 잡았고 그 한 자리만 깁었는데,
|
|
281
|
+
5라운드(codex)가 **같은 뿌리의 다른 자리**를 냈다: 글자 없는 빈 런(`<a:r>` 에 `<a:t>`
|
|
282
|
+
가 비었거나 없음)의 서체도 승격된다 — 실측 재현, 컨트롤(빈 런 없는 템플릿)은 finding 1.
|
|
283
|
+
한 군데씩 깁는 대신 **`_occurrences()` 를 그대로 재사용**한다: 판정이 세지 않는 것은
|
|
284
|
+
유도도 못 센다. 한쪽만 관대한 정규화가 «한쪽에서만 통과하는 입력» 을 만드는 형태다
|
|
285
|
+
([[feedback_divergent_leniency_duplicate_normalizers]] ·
|
|
286
|
+
[[feedback_half_fix_propagation_boundary]])."""
|
|
243
287
|
got = set()
|
|
244
288
|
for n in zt.namelist():
|
|
245
289
|
if re.match(r'ppt/slides/slide\d+\.xml$', n):
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
x = re.sub(r'<a:endParaRPr\b[^>]*(?:/>|>.*?</a:endParaRPr>)', '',
|
|
250
|
-
zt.read(n).decode('utf-8', 'replace'), flags=re.S)
|
|
251
|
-
got |= {t for t in font_names(x) if t and not THEME_REF.match(t)}
|
|
290
|
+
x = zt.read(n).decode('utf-8', 'replace')
|
|
291
|
+
got |= {tf for tf, _slot, _t, _src in _occurrences(x, 'slide')
|
|
292
|
+
if tf and not THEME_REF.match(tf)}
|
|
252
293
|
return got | theme_fonts(zt)
|
|
253
294
|
|
|
254
295
|
|
|
@@ -261,6 +302,44 @@ def _template_own_fonts(zt):
|
|
|
261
302
|
return got
|
|
262
303
|
|
|
263
304
|
|
|
305
|
+
_DML_NS = 'http://schemas.openxmlformats.org/drawingml/2006/main'
|
|
306
|
+
_NS_DECL = re.compile(r'xmlns:([\w.-]+)="' + re.escape(_DML_NS) + r'"')
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
def foreign_dml_prefixes(xml):
|
|
310
|
+
"""DrawingML 네임스페이스를 `a` 가 아닌 접두사로 묶은 자리 — 이 레인은 못 읽는다.
|
|
311
|
+
|
|
312
|
+
🟥 XML 에서 접두사는 «이름»이 아니라 **바인딩**이라 `a:` 가 의무가 아니다. PowerPoint 는
|
|
313
|
+
항상 `a:` 를 쓰지만 제3자 생성기는 그렇지 않을 수 있다. 정규식 스캐너는 그걸 못 읽고,
|
|
314
|
+
더 나쁘게는 **다른 런이 하나라도 읽히면 `seen` 이 비지 않아 UNMEASURED 도 안 나간다**.
|
|
315
|
+
⇒ 0 으로 세지 말고 **못 쟀다고 세라**(cross-family R5/codex 지목, 실측 재현).
|
|
316
|
+
"""
|
|
317
|
+
return sorted({p for p in _NS_DECL.findall(xml) if p != 'a'})
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
_TEXT_PART = re.compile(r'ppt/(charts|diagrams|notesSlides)/[^/]+\.xml$')
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
def _unscanned_text_parts(z):
|
|
324
|
+
"""`slides/` 밖인데 **서체를 들고 있는** 부품 — 이 레인이 안 읽는 자리.
|
|
325
|
+
|
|
326
|
+
🟥 반환은 «개수»다. 0 이면 「그런 부품이 없다」이고, N 이면 「N 개를 **안 쟀다**」다.
|
|
327
|
+
둘을 같은 0 으로 접으면 그것이 이 저장소가 이름으로 관리하는
|
|
328
|
+
[[feedback_not_found_is_not_zero_family]] 다."""
|
|
329
|
+
out = collections.Counter()
|
|
330
|
+
for n in z.namelist():
|
|
331
|
+
m = _TEXT_PART.match(n)
|
|
332
|
+
if not m:
|
|
333
|
+
continue
|
|
334
|
+
try:
|
|
335
|
+
x = live_xml(z.read(n).decode('utf-8', 'replace'))
|
|
336
|
+
except Exception:
|
|
337
|
+
continue
|
|
338
|
+
if [t for t in font_names(x) if t and not THEME_REF.match(t)]:
|
|
339
|
+
out[m.group(1)] += 1
|
|
340
|
+
return out
|
|
341
|
+
|
|
342
|
+
|
|
264
343
|
def _norm(s):
|
|
265
344
|
return re.sub(r'\s+', ' ', s).strip().lower()
|
|
266
345
|
|
|
@@ -326,7 +405,7 @@ def scan(cfg, root):
|
|
|
326
405
|
|
|
327
406
|
try:
|
|
328
407
|
z = zipfile.ZipFile(deck)
|
|
329
|
-
rows, nslides = slide_runs(z)
|
|
408
|
+
rows, nslides, foreign_ns = slide_runs(z)
|
|
330
409
|
parts = _parts(z)
|
|
331
410
|
th = theme_fonts(z)
|
|
332
411
|
except Exception as e:
|
|
@@ -446,6 +525,16 @@ def scan(cfg, root):
|
|
|
446
525
|
f'허용 {len(allow)}가족 · 이탈 {len(offenders)}종 · 선언 면제 {sum(exempted.values())}회 · '
|
|
447
526
|
f'그중 템플릿 자신도 쓰는 이름 {sum(demoted.values())}회'
|
|
448
527
|
+ ('' if rows else ' — 🟥 0 이면 UNMEASURED, 「이탈 없음」이 아니다'))
|
|
528
|
+
if foreign_ns:
|
|
529
|
+
notes.append('L15 font : 🟥 DrawingML 을 `a` 가 아닌 접두사로 묶은 장이 있다 ('
|
|
530
|
+
+ ' · '.join(foreign_ns) + ') — 이 스캐너는 `a:` 만 읽는다. '
|
|
531
|
+
'그 자리의 서체는 UNMEASURED (0 아님)')
|
|
532
|
+
unscanned = _unscanned_text_parts(z)
|
|
533
|
+
if unscanned:
|
|
534
|
+
notes.append('L15 font : 🟥 이 레인이 **안 읽는** 부품에 서체가 있다 — '
|
|
535
|
+
+ ' · '.join(f'{k} {v}개' for k, v in sorted(unscanned.items()))
|
|
536
|
+
+ '. 화면에 렌더되지만 `slides/` 밖이라 스캔 범위가 아니다 — '
|
|
537
|
+
'UNMEASURED (0 아님. 「이탈 없음」으로 읽지 마라)')
|
|
449
538
|
if inherited_ok:
|
|
450
539
|
notes.append('L15 font : 상속 확인(템플릿과 해시 동일) — ' + ' · '.join(sorted(inherited_ok))
|
|
451
540
|
+ ' 의 서체는 저자 산물이 아니므로 판정하지 않는다')
|