변경 기록

태그가 붙은 정식 릴리스와 아직 릴리스에 들어가지 않은 main 브랜치 작업을 구분해 보여 줍니다. 모든 항목은 저장소의 CHANGELOG.md에서 직접 읽어 옵니다.

릴리스 본문과 세부 항목은 기술 용어와 검증 식별자가 어긋나지 않도록 저장소의 영문 원문 그대로 싣습니다.

저장소 CHANGELOG.md 보기 (v0.18.0)

main의 미출시 변경 사항

v0.18.0 이후 main 브랜치(69c1381)에 반영한 변경입니다. 정식 릴리스 태그에는 아직 들어가지 않았습니다.

main 브랜치에 포함main@69c1381 CHANGELOG.md 보기

Added

  • T184: rigorloom mcp serves the document tools to an agent over stdio (MCP 2025-06-18): open, read, find, edit, fill, new, preview, check, save, changes and guide, from the same registry as the command line. The agent works only inside the folders the client names plus each --allow DIR; a client that names none gets the working folder, unless that is the home folder or a filesystem root, and otherwise every tool says which --allow line to add. Folders the client takes away stop counting as soon as it announces the change, and a granted folder that is replaced by a link grants nothing. save over an existing file asks the person through the client, with the same facts the terminal shows; cancelling the call, a malformed answer or no answer writes nothing, and a "no" holds for those bytes at that file in every session. Pictures in markdown are checked where the converter reads them, and the converter gets a copy of each checked file; a picture the check did not see stops the build. Refusals carry a stable code and Korean text. Setup and the rules are in docs/mcp.md.
  • T179: rigorloom has document verbs for people and agents: open, read, find, edit, fill, new, preview, check, save, changes, undo, convert and guide. Edits go to a draft kept outside your folder, and the file changes only on save. save asks before it replaces a file it did not create (--force answers yes up front, except for content you already said no to for that file), keeps the replaced copy, and rigorloom undo puts it back; undo reverses only the save it showed you, and leaves the file alone if it changed meanwhile. -o OUT writes a one-off result without touching the shared draft. --json prints the same result an agent receives. Each tool is defined once and served to the CLI, the MCP server and the agent loop from the same registry, so the three cannot drift apart. Output for people is in Korean, and document text and file names lose terminal control and bidi characters before they are printed. fill leaves signature, seal and approval-date seats for the person and lists them. Drafts, previews and history live in an owner-only state folder; rigorloom changes clean removes what has not been used for 30 days and never drops unsaved work unless you add --all. runtime/schemas/changeset.schema.json and events.schema.json describe the change sets and agent events the desktop UI will show, and a proposal marked as a test (mock) stays marked in the save receipt and history. Each verb's --help is in Korean with two command lines to copy, and a mistyped command gets a Korean "did you mean" line instead of the protocol command list. Reading a file while a draft holds unsaved work says so on stderr. When you answer no at the terminal you can run save again and answer yes; an agent that gets a no cannot ask again for the same bytes. Legacy commands (--root DIR ..., guard, style, ui, doctor, install, engine, demo) parse and print exactly as before. The document verbs need the document layer from T178; without it they answer capability_unavailable and exit 3.

Changed

  • T178: New runtime/scripts/rt_doc.py, the document layer the CLI, MCP tools and UI will call instead of talking to the HWP engine themselves. It gives every paragraph, table, cell, heading and fill place an address (p12, t3/r2/c1, h:"제목", place:<id>), numbered the same way the engine numbers them, and takes edits as a list of ops (set, replace, insert_after, table.set_cells, fill and more) against the file's rev. An edit is refused as stale when the file changed, as expect_mismatch when the text is not what the caller saw, and as ambiguous_match when a replacement would hit more than one place; the input is never overwritten unless asked. Without the engine, .hwpx files can still be read, searched and have their text edited; everything else says plainly that it needs the engine. See docs/doc-core.md.
  • T182: An apply now copies the approved document once into a private file, checks that copy against the plan's digest, and validates, edits and grades from the copy alone, so a change to the runtime's own copy during an apply can no longer end up in a published 수정본. The receipt records the digest of the bytes that ran as input, and the preview reads the same kind of copy.
  • T181: The five screens have calmer controls and clearer layouts, with a fitted Fill page on phones and more legible document edits.
  • T181: The review UI no longer lets an approval land on something other than what it showed. A plan made before the newest 수정본 is refused (plan_behind_head), and when a plan is applied, pending approvals whose base is no longer the head are marked superseded_by_newer_candidate. Publication is serialized per session across processes, and the approval click is bound to the plan, hash, base and acknowledgements the person saw. The built-in test agent runs only with a developer setting, in the browser and the desktop app, and its changes are labelled 시험용 제안 everywhere, from the runtime's own launch identity. Each document keeps its own queue, returned changes are remembered per document, 되돌리기 refuses when a later revision changed the target, and the approval dialog lists every failing guard value.
  • T177: XML report assembly now splits snapshot capture and one-shot compilation in engine/scripts/build_report.py from mechanical HWPX execution in engine/scripts/report_xml_worker.py. The worker consumes frozen operations, resolved post-processing settings, and content-addressed form, baseline, and figure blobs without re-reading source files, while measurement and rendering settings stay separate in engine/scripts/fill_report.py. User-visible CLI behavior, exit codes, verdicts, and receipts are unchanged.
  • T176: Added docs/research: the Korean naturalness A/B protocol and the 2026-11-16 pilot results. The pilot could not measure naturalness: 12 of 19 drafts per condition failed the reference guard, and the editors left most drafts unchanged. Limits: 19 of 21 items from korea.kr, model-only screening, dates 2015-08 to 2019-12.
  • T175: The review screen no longer loses its guard results when a plan and its approval request arrive as separate events. Plan adoption is serialized and the guard check reruns only when the plan itself changes, not on every re-render. The change list now says in the page when its guard results are ready, and the gongmun walkthrough waits for that instead of sleeping. Screenshots of the History screen use a fixed time during capture, so the 20 images under docs/ui/ come out byte-identical from run to run.
  • T174: rigorloom style check can now add a rule pack for one kind of document with --pack gongmun, minwon, hr or grant. Each rule says where it comes from (the 2025 행정업무운영 편람, the 국립국어원 public-language guide, the 법제처 plain-law standard) or that it is a house rule. Every pack rule is a notice, a question for a person rather than a verdict, so adding --pack never changes the exit code; the only error is still ko.double-passive in the base set. Without --pack the output is exactly what it was before.
  • T173: the code of the old UI is gone: 23 unused screens and components were deleted, the agent operator dialog (opened from 명령창) is now a small panel with the provider settings and a raw event log, and every Korean word on screen now comes from the shared vocabulary, which a new test enforces. The web bundle is about 49 KB smaller.
  • T172: the local review UI has been rebuilt as five screens: Open, Review, Fill, History and Settings. Review shows the proposed form page next to a list of changes, Fill lets you type into blanks on the page itself, and History lists approved revisions and lets you compare or undo them. Approval and export work as before: you approve one plan hash and the runtime applies it; a test checks that exporting the 공문 example still gives the same file byte for byte. The old session list, plan view and structure tree screens are gone, and the screenshots in docs/ui/ show the new screens in light and dark at desktop and phone width.

Fixed

  • T183: rigorloom guard and the fact check in rigorloom check now read a Korean amount with its magnitude and unit, so 금500만원 → 금500원, 2천만원 → 2백만원 and 3일 → 3개월 are reported. The same amount written another way still compares equal: 500만원 and 5,000,000원, 1억 2천만원 and 120,000,000원, 10㎡ and 10 m², 1달 and 1개월. In 제1조, 조 is an article, not a trillion. m² and m³ are now different units. A minus sign covers the whole amount (-1억 2천만원 is -120,000,000원), 마이너스 and − are minus signs too, the groups of one amount may be several spaces apart, the won after the last group belongs to it (1억 2,000만 3,500원), a long decimal is compared digit by digit, and 7명/7인, 36 m²/36 m2/36제곱미터, 1.20%/1.2% and +3,000원/3,000원 compare equal, while 4% → 4%p, 45평 → 45제곱미터, 4차 → 4분기 and 24인치 → 24명 are reported. A unit is never the start of another word: 제12차량, 18 인원, 38 평가 and 68 분기점 hold no unit, and 8차분 and 8 차분 read the same. A bare amount takes the unit declared for it: a table header cell's (금액(천원)) for its column only, a field's (연구비(천원)는 75) for the next number, and 단위: 백만원 or 천원 단위로 for the amounts after it; (원가) and (만원권) declare nothing. So moving 천원 from a cell to the header is no change, changing the header is, and a row number or year beside the amounts keeps no unit. A bare amount is shown with the unit it inherits (93(천원) → 93(백만원)). When every number is still there but numbers traded their words (기본급은 300만원, 수당은 50만원 → 기본급은 50만원, 수당은 300만원, also 서부권 지원금/동부권 지원금, A반/B반, numbered list items, 14건을 승인하고 6건을 반려했다 → 14건을 반려하고 6건을 승인했다, and a swap next to an edited word or under a predicate every number shares), the paragraph is reported as swapped numbers, each value shown with the words that name it as that side writes them (in --json, a numbers change with "order": true whose before and after are lists of those values); a sentence that is only reordered, with each number still beside its words before or after it (3건 승인, 5건 보류 → 5건 보류, 3건 승인, 35만원을 반환하고 60만원을 집행했다 → 60만원을 집행하고 35만원을 반환했다), passes. Changed numbers are now shown as the document writes them (1,000만원), not in the internal spelling used to compare them. The review screen marks the whole amount (100만원) as removed or added, and compares amounts as the guard does, in the unit their field declares: 500만원 and 5,000,000원, or 43 under 운송비(천원) and 43,000원, are kept. A digit right after a full-width Latin letter (v2) is left alone like one after v. Still not caught: numbers that trade places when their only label is another number, the commonest shape in official documents (2025년 120명, 2026년 150명 → 2025년 150명, 2026년 120명, and the same with 1차/2차, 1차년도, 1분기, 1월 and 제1항), swaps whose words sit around the numbers (각각 2회, 5회, 3명에게서 5명에게로, 3%에서 5%로, 총 3건 중 1건), two dates that trade fields (2028.4.2./2028.4.6.), table columns, clock times and 분/초, 제1조의2 against 제1조 제2항, numbers in words, fractions, ranges, phone, account and prefixed id digit groups, Hangul and circled list labels and a leading-dot decimal. Still reported though nothing changed: 2년 against 24개월, a date written another way (2026. 3. 1. and 2026년 3월 1일), and v 5.2.1 with a space.
  • T180: rigorloom guard and the fact check in rigorloom check now catch a number that changes right after a Korean syllable, such as 제17조 → 제18조 or 금500만원 → 금50만원. Before, the number pattern skipped any digit that followed Hangul, so those edits passed. Numbers after a Latin letter, digit or dot (v2, x86, 1.5) are read as before. The same number written another way is not a change: full-width digits (17 and 17), thousands commas (1,000 and 1000) and a space before the unit (20 ℃ and 20℃) compare equal. The guard still compares the numbers in a paragraph without their order, so two amounts that swap places, Korean units of magnitude (500만원 → 500원) and numbers written in words (제십칠조) are not caught yet.

v0.18.0

v0.18.0에 포함GitHub에서 v0.18.0 보기

An agent or a person proposes an edit to a Korean official document. A person reviews exactly what will change and approves it before the HWPX file is modified. RuntimeCore owns the edit path, with the few remaining exceptions listed in docs/architecture.md.

Three commands support this workflow:

  • rigorloom ui opens a review workspace in a browser on your own machine, with the plan, diff and approval in one place.
  • rigorloom guard reports when an edit changes a number, a date, a quotation, a negation or a direction word such as 증가 or 감소.
  • rigorloom style check flags Korean phrasing for a person to review. It asks questions rather than grading the text.

The 공문 demo runs the full workflow on a blank 기안문 form without Hancom Office. Run it from a clone with python runtime/scripts/cli.py demo gongmun --out DIR; tests check its output byte for byte.

This release also includes an optional adapter for a separately installed HWP engine, stricter receipts and evidence files, a fail-closed HWP5 reader and a paragraph-level story editor. The old read-only Studio dashboard has been removed. Bundle hashes and the CI counts for the release commit are in docs/release-v0.18.0.md.

알려진 한계

  • The HWP engine adapter is optional. The engine itself is private and not part of this repository; without it, Rigorloom uses its own minimal HWPX path.
  • No claim is made about how natural or human-like any rewritten Korean is. A measured study is being designed; until it reports, the product says nothing on that point.
  • style check rules are notices for a person to read. They have false alarms on careful human writing, and they do not cover every document type equally.
  • 14 tests fail on the machine this release was prepared on, and pass or skip in CI: 3 call Node with --experimental-strip-types, which that machine's Node 20 does not have; 10 compare text layout against values measured with the fonts the forms declare, which are licensed and not distributed; 1 is a .docx render test that stops on an image read error (docx.image UnexpectedEndOfFileError) and has not been diagnosed further.
  • The native desktop shell under desktop/src-tauri/ is still pre-alpha. The browser UI is the supported way to review edits.

문체 점검 결과는 대부분 알림입니다. 이중 피동 오류가 나오면 종료 코드는 3입니다. docs/korean-style-rules.md 보기

v0.18.0 세부 변경 내역9개 분류 · 95건

Release

  • T171: version 0.18.0. Two documentation fixes from the release review: docs/pipeline-master-v0.6.md now points at the live modules/report/references/workspace_layout.json, and the "Report workspace files" section of docs/architecture.md is three plain sentences. tests/test_release_docs.py now reads the release record named by the README's current-release line and checks it against the pyproject.toml version, instead of pinning v0.17.0.

Security

  • Studio: DNS rebinding could read workspaces and the action token. Studio binds to 127.0.0.1, but a web page open on the operator's machine could point a domain it controls at 127.0.0.1 and then read every GET response as same-origin: workspace state, drafts, personalization data, and the action token embedded in /. The action guard compared the Host header with startswith("localhost") / startswith("127.0.0.1"), so a name like localhost.attacker.example also passed it, which made action POSTs reachable once STUDIO_ALLOW_ACTIONS=1 was set. Every request now has to carry an exact loopback Host (127.0.0.1, localhost, [::1], any port) and, when a browser sends one, a loopback Origin; anything else gets 403 before a route runs. The token comparison is constant-time.
  • Studio: figures are served only when they are regular files inside the workspace. A figure that was a symlink could expose any file the Studio process could read.
  • Studio: the deliverable preview is served with Content-Security-Policy: sandbox, so its scripts stay in an opaque origin even when the URL is opened directly rather than through the dashboard's sandboxed iframe.

Removed

  • T168: removed the legacy read-only studio/ dashboard (studio/main.py, studio/index.html, studio/README.md, studio/requirements.txt), tests/test_studio.py, and the studio optional extra in pyproject.toml. Use rigorloom ui (runtime/scripts/rt_ui.py, docs/web-ui.md) instead. Human pipeline gate resolution in the web UI writes the exact <gate>: approved by <approver> via ui at=<timestamp> format parsed by modules/report/scripts/pipeline_ctl.py:1150 (verified end-to-end in tests/test_ui_approval_roundtrip.py::test_pipeline_gates_list_approve_reject_and_script_gate_refusal).

Changed

  • T170: polished post-phase-2 docs and example fixtures: aligned docs/architecture.md (guard wording and .pipeline/handoff.json / modules/report/references/workspace_layout.json), streamlined docs/demo-gongmun.md and documented warn=1 (dumun_seat_unfilled on (경유)), replaced the Sejong address in examples/gongmun/brief.json with a fictional placeholder (우 00000, 가상시 예시구 예시로 0) and regenerated the deterministic fixtures, documented the Blob export flow and ?token= controls in docs/web-ui.md, and refreshed README.md and docs/README.md (direction word, desktop/ on main vs. pre-alpha desktop/src-tauri/, runtime//agenthost//desktop/ tree, docs/guard-block-diff.md, and archive/).
  • T169: every document edit now has one owner, RuntimeCore (propose, validate, request approval, resolve, apply), and the paths that are still outside it are named in docs/architecture.md.
    • RuntimeCore.plan_preview replaces the web UI's own preedit preview loop. It runs the same steps in a temporary directory and writes no event, journal, receipt or candidate, and never uses an approval (tests/test_runtime_preview.py).
    • The preedit step loop moved into rt_apply._execute_preedit_steps, with no behaviour change; a test checks candidate bytes and receipt fields stay the same.
    • pipeline_ctl.py now owns one APPROVALS.md codec (parse_gate_approvals, format_gate_decision_line, record_gate_decision_text, write_gate_decision), and rigorloom ui writes gate decisions through it.
    • Behaviour change: for a rejected line, the recorded reason no longer includes a trailing at=..., and that timestamp is kept instead of being replaced with the current time (TestApprovalsMdCodec::test_parse_gate_approvals_precedence_and_timestamps). pipeline_ctl gate exit codes are unchanged.
    • docs/architecture.md is rewritten around the edit transaction, and the opening of docs/runtime-protocol-v0.md no longer says no runtime code exists. tests/test_wp4a_inventory_boundary.py replays the inventory commands and their exit codes. The Studio row is retired because #375 removed Studio.

Added

  • T167: rigorloom demo gongmun --out DIR fills the blank 기안문 form (gianmun-byeolji-1ho.hwpx) from examples/gongmun/brief.json without Hancom Office or the HWP engine, checks it with check_residue and check_gongmun, and writes filled.hwpx, plan.json, verdict.json and approval.json only when every check passes (exit 3 otherwise, with nothing published). --deterministic reproduces the committed examples/gongmun/expected/ files byte for byte. See docs/demo-gongmun.md.

  • T166: rigorloom ui serves the desktop review workspace in a browser from 127.0.0.1, with no Node.js needed at runtime (the bundle ships in runtime/scripts/ui_dist/, and CI checks it rebuilds byte for byte from desktop/src). It opens corpus forms or an uploaded .hwpx, queues the four preedit edit kinds, shows the guard diff, binds approval to the plan hash shown, and resolves human pipeline gates; earlier APPROVALS.md lines for a gate are kept as # superseded comments. The token model and its limits are in docs/web-ui.md.

  • T164: rigorloom style check FILE lists Korean phrasing worth a second look in .txt, .md and .hwpx files, as file:line:col rule-id. The rule set is versioned (ko-style/1, thirteen rules). Only the double passive (되어지다) is an error and exits 3; the rest are notices, filtered by --doc-type so report habits are not flagged in 공문 or contracts. Each rule has a sentence it must flag and one it must leave alone, in docs/korean-style-rules.md and the tests.

  • T165: rigorloom guard --mode block-diff prints each edited paragraph's old and new text side by side, with the protected expressions lost or added, and keeps the same exit codes. The format is defined first in docs/guard-block-diff.md, and examples/guard/block-diff.txt is regenerated byte for byte by the tests.

  • T163: an optional adapter for a separately installed HWP engine (runtime/scripts/rt_kit.py). Set RIGORLOOM_HWP_ENGINE to the directory holding its kit_api.py; rigorloom engine reports whether it is there, and rigorloom capabilities carries the same answer under hwpEngine. Without the engine nothing changes, and each engine function returns a refusal that names what the built-in path cannot do (.hwp binary files, structural edits, page layout, text PDF). The engine is not part of this repository. See docs/hwp-engine-adapter.md.

  • T162: the prose fidelity check now protects direction words (증가/감소, 늘었다/줄었다, rose/fell and similar), treats short numbered lines such as 3. 실험 방법 as headings, and counts tokens as words instead of substrings ("Really" no longer counts as "all", 계약 no longer counts as 약). This changes verdicts on real documents: flipping 감소 to 증가 next to an unchanged number now reverts, and some edits that passed before now revert too (see humanization_contract.md). English negation adds cannot, n't, nothing, none, neither, nor and without.

  • T126: a cross-lane reproduction of the private-capture custody claims from PRs #134-#137, written from this side against the shipped code rather than derived from the PR text. Reproduced: a clean one-link file is captured with an identity, a one-link count and a sha256 over the exact bytes read; a hardlinked leaf is refused; a symlinked leaf is refused; and a refusal carries neither the private path nor any platform detail, because every failure funnels through one reason token on purpose. The support claim splits in two as a result - the capture half is now supported with its own evidence, and generation rebinding, ownership-aware rollback across parent-swap races and post-key manifest ordering stay unknown, since those need a full renderer run and a race harness. A missing result is still not parity.

  • T125: the first committed pack record, evals/records/2026-08-12-clean-bundle-machine-checks.json, plus evals/records/README.md describing what a record is and is not. Every shipped eval task materialized into a clean-room root installed from bundles and its machine checks executed: 8 tasks, 91 checks, 24 passing against the blank form, 2 skipped with a stated reason, and tasks_with_a_deliverable: 0 because no agent solved anything. That last field is what tells a reader how to interpret every failed check - the check had nothing to read. Per-check causes are deliberately not classified. The support matrix gains a record: pointer kind, which requires the file to exist, parse, and declare a schema, and the per-task-record row moves from unsupported to partially supported: the deterministic half is published, the agent-completion half is not. A new rule closes a hole mutation found - a supported row may not carry a reason, because needing to explain a caveat means the capability is partially supported, and without it a downgraded row could be upgraded while its own reason still said half of it was unpublished.

  • T124: docs/support-matrix.md, generated by scripts/support_matrix.py from pipeline/references/support-claims.yaml, classifying each capability supported / partially supported / unsupported / unknown with an evidence pointer on every row. docs/capability-matrix.md answers a different question (alias to OS ceiling); this one is the per-capability classification. The value is in the refusals: a supported row with no resolving pointer is rejected, a pointer that does not resolve is rejected by name, anything not supported must state a reason, and coverage is checked against DERIVED sets so a new distribution module or eval task cannot go unclassified in silence. Pointer kinds resolve statically - a test function that exists (by AST, so the generator never needs the suite that runs it), an eval task, a doc heading, a capability key render_probe actually emits. A pointer means the assertion exists and a third party can run it, not that it is strong, and the generated document says so. 17 claims: 11 supported, 3 partially, 1 unsupported, 2 unknown.

  • T150: added a quarantine-only rigorloom/renderer-runtime-v2/v1 receipt lane for one explicitly supplied, SHA-256-pinned rhwp_pdf binary. The runner owns the pre-created output/proof/renderer-runtime-v2/<run-id> leaf, stages the source and binary, invokes only the fixed --version and export-pdf argv, and binds source, certificate, PDF, process state, timeout/overflow, environment policy, and a platform-specific process policy through bounded no-follow captures and final rebinds. Equation-bearing HWPX is refused before execution. The certificate is captured but not semantically validated, dependency closure is unknown, comparison is unknown, render is not_run, proof is none, submission is false, and promotion is not_run. This lane never feeds doc_backend, Stage 0/5/6, new_report, canonical output, or certified routing; it ships no operator binary, certificate, document, or corpus bytes.

  • T151: added the independent pathless rigorloom/render-cert-envelope/v2 exact-document envelope. Operators issue it with issue PRIVATE_MANIFEST --out CERT, then use verify CERT or check DOCUMENT CERT; the private manifest is never serialized into the certificate. Canonical measurements contain only hashes, byte counts, opaque ids, and metric hashes, bound by certificate_sha256 and certificate_hmac_sha256; no local paths, command streams, source text, private key material, PDF/corpus bytes, or generalized feature envelope is shipped. Its ceiling is runtime_binding: not_established, proof_grade: none, submission_grade: false, and promotion: not_run. Legacy v1 certificate tooling remains quarantined; both ADVISORY_PROOF_RELEASE_ENABLED and CERTIFIED_PROOF_RELEASE_ENABLED stay false, with no runtime integration, auto-route, or PDF promotion.

  • T152: added the diagnostic-only rigorloom/renderer-certificate-composite/v1 receipt. check WORKSPACE joins the T150 runtime receipt with the T151 exact-document certificate and publishes only under output/proof/renderer-certificate-composite/<run-id>/receipt.json; verify WORKSPACE re-runs both underlying verifiers and the exact source check. The join is binding_scope: captured_snapshot_only with evidence ceiling runtime_input_exact_document_certificate_binding_only; it keeps dependency_closure: unknown, comparison: unknown, render: not_run, proof none, submission false, and promotion not_run. File-level certificate bytes and signed certificate-body digests remain distinct. The composite is not HMAC-authenticated, does not execute or auto-route, and publishes no paths, operator key, corpus/PDF bytes, argv, or streams.

  • T153: added the standalone, read-only rigorloom/hwpx-definition-graph/v1 diagnostic. The CLI inspects one HWPX snapshot and emits only the selected definition/reference graph's closed counts and canonical graph_sha256; ZIP order and compression do not alter the digest. status: analyzed is still a diagnostic result, not semantic, feature, renderer, certificate, runtime, conversion, or submission proof. It publishes no source text, member names, raw IDs, binary bytes, metadata, or paths, refuses unresolved or malformed references, and does not execute a renderer or use an automatic route. The downstream ceiling remains comparison: {state: unknown}, render: {state: not_run}, proof_grade: none, submission_grade: false, and promotion: not_run; no release switch or existing runtime/certificate behavior changes.

  • T154: clarified the T150 execution boundary. Windows uses windows_job_kill_on_close_v1; POSIX uses posix_process_group_v1. execution.descendant_containment and execution.evidence_authentication remain not_established: ordinary descendants that stay in the Job/process group are cleaned, but a POSIX setsid() descendant and brokered processes outside that boundary are not claimed. The lane supplies no memory, process-count, CPU, filesystem, or network isolation. Receipt verification rebinds current artifact and receipt bytes but does not authenticate child-process evidence; proof remains none, submission false, and promotion not_run.

  • T155: duplicate JSON object members now refuse recursively in generic document-evidence receipts and in the legacy v1 render-certificate loaders, including external files and inline JSON. Generic receipt decoding reports receipt_duplicate_key; certificate verify/check reports certificate_invalid_json, while an outer CLI operation that cannot parse its input remains operation_failed. This adds no authentication, automatic route, or promotion; the legacy v1 workflow remains quarantined and diagnostic-only with proof_grade: none. T155 is duplicate-member rejection only; it does not expand canonical JSON, non-finite-value, or HMAC semantics.

  • T156: finite-JSON enforcement now rejects NaN, Infinity, and -Infinity recursively in generic document-evidence and T150 receipt input, with receipt_nonfinite_value; receipt writers use allow_nan=False and render-certificate thresholds must be finite. Legacy v1 external certificate JSON still reports certificate_invalid_json, while an outer CLI parse failure remains operation_failed. T151 and T152 were already strict and remain unchanged. This is finite-JSON enforcement only: it adds no canonical JSON, HMAC, authentication, routing, proof, promotion, or privacy expansion.

  • T157: the quarantined legacy v1 renderer-certificate API now exposes a bounded public summary: verify_certificate returns only ok, reason_code, reason, and reason_codes; check_document and the check CLI add only eligible. Public summaries omit raw errors, local paths, argv, feature maps, certificate payloads, and renderer streams. The CLI has measure, certify, and check only; there is no verify subcommand (the Python verification API remains available to quarantined consumers). Successful measure/certify files remain private operator artifacts and may retain pathful v1 fields; they are never public receipts. render_probe publishes only render_certificate_configured and a closed render_certificate_reason. This changes no authentication, execution, eligibility semantics, routing, proof, submission behavior, or release switches; both advisory and certified release switches remain false.

  • T158: legacy v1 measure/certify --out now use a dedicated fresh private artifact publisher. A pre-created canonical parent must be a real directory, and the output leaf must be absent before publication; the new leaf is required to be a regular one-link file. Symlink, reparse-point, hardlink, pre-existing-target, and parent-swap cases refuse without overwriting foreign bytes. Publication stages and links relative to a held parent, then rebinds exact bytes and filesystem identity before committing; rollback removes only a generation owned by this call, preserving foreign replacements. A refusal from main remains the pathless operation_failed result. Generic write_json, check, and doc_backend receipt writes are unchanged; artifacts remain pathful private v1 files, and stdout/privacy, authentication, routing, proof, submission, and release-switch semantics are unchanged.

  • T159: legacy private measurement binding now accepts only a safe single non-dot manifest ID segment, validated before its candidate directory is created. The configured renderer binds argv[0] to the configured binary. Before and after rendering, source, reference, and candidate files are captured as bounded no-follow regular one-link generations; the manifest reference hash must match exactly, and a fresh candidate plus any alternate renderer output are refused rather than overwritten or selected ambiguously. issue_certificate revalidates the live manifest and every document, reference, and candidate path and hash, with a second rebind before HMAC; candidate output aliasing either the manifest reference PDF or source document is refused. These are private operator checks: measure/certify payloads and stdout remain pathful v1 artifacts, while public verify_certificate remains exactly four fields (ok, reason_code, reason, reason_codes) and check adds only eligible. Generic write_json/doc_backend behavior and authentication, execution, eligibility, routing, proof, submission, and promotion semantics remain unchanged; both release switches remain false.

  • T160: legacy private measurement now binds owned captured snapshots for every producer read. Feature extraction, renderer input, and PDF metrics use those owned captured snapshot files rather than rereading live document/reference/candidate paths. After metrics, the final live document/reference/candidate generations are rebound; a mutation restored before that final check cannot alter snapshot-derived metrics, while non-restored drift refuses the record. Before issuing a certificate, the operator key is loaded first; immediately before HMAC the live manifest and all measurement generations are rebound again, so a final manifest or source/reference/candidate mutation cannot become a signed claim. Successful measure/certify artifacts and stdout remain pathful private v1 outputs; final pre-HMAC manifest drift publishes no stale certificate artifact. The public verify/check projection, schema, routing, proof, release switches, and generic failure/projection semantics otherwise remain unchanged.

  • T161: legacy v1 reader verification now captures the current certificate, manifest, renderer binary, and check_document input as bounded no-follow regular one-link snapshots. Parsing, certificate self-hash/HMAC checks, manifest claims, feature extraction, and renderer-version checks consume the captured bytes or owned staged copies, then perform a final rebind of every current dependency before returning; symlink, reparse, hardlink, and other identity drift cases refuse with the closed certificate_changed, manifest_changed, renderer_binary_changed, or document_changed reasons. Historical measurement document/reference/candidate paths are not reread and are not public dependencies. Public verify_certificate remains exactly four fields and check_document adds only eligible; the private rich route remains quarantined. Schema, routing, proof, submission, promotion, and release switches are unchanged.

  • T93: hardened the generic document-evidence receipt and artifact custody boundary. Captures now require no-follow regular one-link files, reject interior symlink/reparse parents, bind hash/size/identity from one descriptor, and perform two final input/output rebind passes before the final receipt raw/payload/identity read. Owned rollback preserves a foreign receipt replacement, Windows 8.3/long path spellings are accepted only when they identify the same non-reparse filesystem node, and public errors remain workspace-relative. Automatic certified-renderer execution and promotion are quarantined behind the closed certified_runtime_unbound release gate; legacy certificate measure/certify/check and the Python verify API are diagnostic-only and derive proof grade none.

  • T92: tightened the shared rigorloom/hwpeqn/v1 equation lane with a closed LaTeX/HwpEqn XOR envelope, static case-folded origin-refusal vocabulary, bounded lexical/argument/control checks, exact matrix row separators, shared deterministic base_pt quantization, and terminal conversion warnings. COM and XML now use the same operation keys and preflight before document work; base_pt is quantized at 0.1pt in [1,100]pt. This remains a lexical envelope only, with no HwpEqn semantic, native/render/layout, PDF, or parity proof.

  • T91: added the separate rigorloom/hwp-equation-diagnostic/v1 receipt-only HWPX equation-envelope inventory. It resolves section order from the validated OPF spine and recognizes the official paragraph namespace by expanded QName, so alternate prefixes cannot route an equation-bearing package to LibreOffice and comments or similarly named elements cannot create false equations. Receipts expose only the source artifact hash, bounded counts, and closed states: no script text or per-script hash. HwpEqn semantics, native execution, render, comparison, and submission remain unproved. Conversion parity now preserves equation whitespace instead of collapsing sin x and sinx, and requires the same closed equation envelope on captured source/assembled snapshots with final live-byte rebind, so duplicate-script loss or mid-check replacement cannot pass. Raw-HWP parity likewise runs COM inspection on a private HWP snapshot only after the T85 preflight and through the serialized, bounded, privacy-safe COM envelope, then rebinds the live source. Manifest-backed extracts are SHA-bound to the captured source; OPF-spine semantic order is compared even when sections differ only by equation scripts. Receipt-only publication and verification perform source/root callbacks before the final one-link receipt content/identity check, closing same-inode overwrite races. The legacy rhwp SVG proof helper is no longer selected automatically.

  • T90: added the separate rigorloom/hwp-docinfo-coverage/v1 receipt-only DocInfo cardinality and BodyText ID-reference diagnostic. It binds the detailed 26-byte DocumentProperties and 72-byte IDMappings forms, zero-based definition counts and physical record groups, and ParaShape, Style, and CharShape reference bounds without exposing raw IDs or payload values. Definition semantics, generated numbering/bullets, style redirects, paragraph split state, and versioned tails remain explicitly unscanned, so eligibility and comparison stay unknown, render is not_run, proof is none, and submission is false. The tool publishes only a one-link receipt below the pre-created hwp-docinfo-coverage/<run-id> leaf, always exits 3 after analysis/refusal, and cannot enter ingress, Stage 0, canonical output, rendering, or submission.

  • T89: added the separate rigorloom/hwp-source-coverage/v1 receipt-only source inventory. It captures bounded HWP bytes once, reuses the T85 FileHeader/CFB preflight, scans only direct BodyText/Section0..N streams, inventories records and controls without raw identifiers, closes the exact 24-byte v1 ParaHeader and supported child order, rejects source-path symlink/reparse ancestry, and publishes analyzed ineligible or unknown receipts under the pre-created hwp-source-coverage/<run-id> leaf. The owner-token commit remains authoritative if only post-commit scratch cleanup fails, and new_report reserves the leaf against fabricated raw candidates. It does not install or execute syhwp, and it establishes no source fidelity, conversion parity, native execution, render, or submission claim.

  • T88: added a receipt-only paired bounded content/object agreement oracle for one release-allowlisted T86 rhwp candidate and one lock-bound T87 Java candidate. It rebinds both current receipts and candidates at compare/verify, runs the public lane verifiers over captured snapshots, follows OPF spine order with closed text/story-table-topology/equation/referenced-picture/ explicit-control coverage (styles, numbering, pagination, and metadata are outside the comparison), and publishes only rigorloom/hwp-semantic-oracle/v1 agreement receipts. Comparison remains diagnostic-only (source_fidelity: not_established), render is not_run, proof is none, submission is false, and new_report has a defense-in-depth guard that rejects a forged/reserved candidate path under the receipt-only semantic-oracle root.

  • T87: added a separate Java HWP diagnostic-candidate lane for the release-approved hwp2hwpx fat-JAR hash and source-visible fixed bridge. It reuses the T86 bounded process/publication core, strips JVM option injection variables, rehashes the explicit Java launcher while declaring its surrounding runtime unbound, canonicalizes the known hwpxlib ZIP envelope defect, records any pruned missing auxiliary rootfile, and publishes only rigorloom/hwp-java-diagnostic-candidate/v1 below work/stage-0/scratch/hwp-java-diagnostic. Comparison remains unknown, render not_run, proof none, and submission grade false. The bundle ships the lock and bridge source but no JAR, JRE, class, HWP/HWPX, or corpus copy; raw/receipt candidates are rejected by new_report.

  • T86: added the separate, strictly quarantined rhwp diagnostic-candidate runner. It accepts only an explicit binary plus mandatory SHA-256 pin, runs rhwp export-hwpx INPUT OUTPUT --verify --verify-pages from immutable snapshots with bounded timeout/output, validates the candidate through T85, and publishes only an exclusive rigorloom/hwp-diagnostic-candidate/v1 receipt and <run-id>/candidate.hwpx below work/stage-0/scratch/hwp-diagnostic. Comparison remains unknown/independent_oracle_not_run, render remains not_run, and proof_grade remains none; no Stage-0 form_copy.hwpx, canonical ingress/backend receipt, new_report --ingress-receipt, pyhwp, or LibreOffice fallback is involved. Operator-local v0.8.2 archive/binary hashes and one public-form probe are evidence notes only; no corpus bytes or private runtime artifacts are shipped.

  • T85: added a fail-closed, standard-library HWP5 ingress boundary. The read-only hwp_ingress.py inspect route validates closed CFB v3 FAT, mini-FAT, directory and stream allocation; direct-root DocInfo and BodyText/Section structure; and its unique 256-byte FileHeader, exact HWP Document File signature, supported 5.0/5.1 version, and protection flags without exposing document text or stream names. Canonical HWP-to-HWPX publication is Windows Hancom-only: one named mutex covers the complete operation; the source and reopened output use the same privacy-safe COM extractor; full-text/character and table/picture/equation/shape/page/ control/field aggregates must match; the physical ZIP plus OCF/OPF/section envelope must validate; and the live source hash must remain current. The receipt is published first and the output link is the final commit marker. The verify route closes receipt keys, types and terminal state and rebinds the exact HWPX bytes/counts; new_report --ingress-receipt verifies both the supplied artifact and workspace copy and retains the receipt for claimed binary-HWP provenance. Rollback removes a receipt only when its full creation identity and content hash still match, so immediate POSIX inode reuse cannot delete a path that another writer replaced after publication began. The separate rigorloom/hwp-ingress/v1 receipt is conversion-only and always has proof_grade: none; it is never native-render evidence. Missing Hancom, protected input, unavailable parity, or any mismatch exits 3. No LibreOffice or rhwp result may become the canonical form.

  • T79: added the read-only story_graph.py HWPX inventory. It follows the OPF content.hpf manifest/spine plus actual section roots, inventories the bounded header/footer/footNote/endNote paragraph-list controls, and emits manifest-order member ordinals, role/ordinal addresses, counts, topology, and schema-only structural hashes (never raw-byte fingerprints). The physical mimetype must be the first stored, extra-free ZIP entry; every local header is reconciled with its central record (including version-needed and DOS date/time; empty extras and only flags 0 or public-corpus-proven DEFLATE fast flag 0x0004); OCF rootfiles and all declared XML roots are closed and validated before OPF. Every section must occur exactly once in a nonempty spine, which references only definitions or sections; table-cell stories retain only closed table/cell encounter ordinals (never raw coordinates) and story-in-story owners refuse. ZIP/XML bounds, OPF grammar/media/coverage, supported parent grammar, exact control values, note/cell scope identity, and unsupported story resources are fail-closed. Fields, hidden comments, draw text, captions, master pages, .hwp, rendering, and editing are deliberately out of scope.

  • T80: added the bounded story_edit.py paragraph-only structural editor. It accepts one private exact source SHA and one canonical section/container/story/paragraph selector, requires exactly one direct text-bearing run with one direct hp:t, and refuses text-first/raw-ID/ /run[n]/ambiguous/stale/noncanonical/unsupported/CR inputs. Raw span splicing removes only the changed paragraph's own line-segment cache; semantic no-ops copy bytes exactly. Immutable-snapshot processing, topology-only T79 recheck, raw ZIP-record/metadata preservation verification, exclusive identity-safe publication, and a closed local receipt preserve the privacy/evidence boundary. This is structural mechanics only; render remains not_run.

  • T81: corrected PKWARE DEFLATE flag 0x0004 handling to fast level 1, skipped processing instructions through exact ?>, and refused DTD/entity declarations in the bounded editor lexer.

  • T82: added a closed visual_verify operation_scope: "story_edit" for current native story-edit renders. It requires a .hwpx, explicit PDF, comparable baseline, hash-bound conversion record, and non-empty per-page required_text/full-string forbidden_text; the unbound structural T80 receipt is never artifact evidence. Form-fill/profile/blank/waiver, deterministic-only, targeted-vision, unknown-scope/key, malformed XML, invalid conversion/page/PrintMethod, and incomparable-baseline paths fail closed. Fill-only checks are audited under deterministic.not_applicable_checks, never acceptance waivers or ordinary skips; XML/page parity, baseline diff, and all-page vision remain mandatory. Initial native evidence for this slice was deliberately narrower than the structural role coverage: one public/sanitized header was converted with Windows Hancom and accepted only after an all-page visual verdict. T84 later adds disposable donor-role execution without promoting those XML-assembled notes to native-authored semantics. Every independent render-quality result remains unknown/unsupported_graphics_state, not a quality pass.

  • T83: kept the document-evidence privacy rejection regression while assembling its synthetic Windows profile path at runtime, so the public repository privacy scan remains HARD-free instead of flagging the test fixture itself.

  • T84: recorded the bounded Windows-Hancom execution evidence for disposable footer, footNote, and endNote donor probes without shipping their HWPX/PDF bytes. All three passed T79/T80, current hash-bound conversion records, page parity, baseline pixel comparison, and T82 all-page vision; their independent render-quality result remained unknown/unsupported_graphics_state. The note controls were XML-assembled, not Hancom-authored anchors, so native note insertion, numbering, and continuation remain explicitly unproved.

  • form_inspect now emits additive, backward-compatible anchor_records (legacy para_idx plus the preedit-aligned at_para when identity is proven) as internal evidence, and accepts opt-in --full-text PARA:N, returning only the requested paragraph's own exact text/runs in preedit's document order.

Added

  • T130: check_residue --expect-text asserts offline that a string MUST be present. The gate could only say what must be absent, so a clean-room run confirming its values landed and three statutory notices survived hand-rolled a zip/XML scan — not a shipped tool, therefore unrepeatable and absent from every receipt, while visual_verify --expectations can assert presence but needs a render, which on Windows means starting Hancom. On its first real use the flag DISAGREED with the run that motivated it: the agent reported 「동의를 거부할 권리가 있습니다」 present verbatim, and it is not — this corpus breaks words at run boundaries and the notice extracts as 「…권리가 있 습니다」. Collapsing that into a whitespace-stripped match would have made the flag a wildcard (T115), so a miss instead names which kind it is: absent, or split_across_runs when the string is in the document but not as one literal. The verdict labels its own evidence_level: "text", because presence in the text says nothing about whether the string renders visibly. A caller who declares nothing gets no block published, so an empty claim cannot read as a check that ran.

Fixed

  • T134: the subprocess-bounds guard was blind to the suite's second spelling of a spawn bound. Its scanner read subprocess.run(timeout=) only — its own scope sentence claimed that was "the entire surface" — while five run_child_capture(timeout=) call sites existed, one bounding a cold-spawn chain at 0.8s against the measured loaded median of 9.00s. Surfaced as a 1-in-full-suite flake by an unrelated run; reproduced 3-of-4 under synthetic saturation. Two mechanisms, both fixed and both proven under load (3/3 pass saturated): the four hang-detector bounds raised to a named HANG_TIMEOUT = 120.0 and the grandchild-kill test redesigned around the tree floor (KILL_TIMEOUT = 20.0, grandchild sleeps longer than the bound so its marker can only appear if the kill failed); and — found only because the first fix round FAILED the load proof — two parents that blind-slept 0.3/0.4s before exiting now handshake on the file their grandchild writes, because under load cleanup killed the cold-starting grandchild before its pid record existed and no post-return poll could ever see it. The scanner now reads both spellings (_is_child_capture, bare and module-qualified), the stale scope sentence is corrected and records its own staleness, and a unit test pins the new spelling so a third one cannot go unseen the same way.

  • T133: the bundled skill/SKILL.md closed on "Module skill fragments ... are appended below by the installer", and for that file the sentence is false and always will be: it is the pre-install source, scripts/sync_local.py does the appending, and the result lands in the installed copy under the Claude skills directory. A clean-room agent read the sentence there, found nothing appended, confirmed the module was enabled, and reported the installer as broken — the installer was fine, the composed copy is 735 lines and carries every fragment, and nothing in the bundled file said which copy the reader was holding. Extracting a bundle and opening skill/SKILL.md is the obvious thing to do. The closing passage now names the installer, the destination, and the fact that this copy never carries the fragments; a guard pins all three and checks that sync_local.py really is the composer rather than trusting the sentence.

  • T132: operations.md stated the form-fill keep-list derivation twice and differently. The section documenting the standalone check_residue call said to derive it from profile anchors minus the keys your fill consumed; the visual_verify section 283 lines later gave (anchors ∪ placeholders) minus the consumed entries. Anchors alone is not enough and the gap is reachable: _profile_inventory puts placeholder-sourced rows in the forbidden set, so a form's own cross-reference to another attachment's 서식 number stays forbidden under an anchors-only keep list, and a clean-room run following the narrower sentence verbatim got a HARD on text its fill never touched. One formula now, named on both paths, with a guard asserting that no derivation says anchors without placeholders. Also names the field the worked fill.json address belongs to: "2,7" is the 법인등록번호 blank on that form while 사업자등록번호 is a different field one row down at "3,7" — the example was always correct, and carrying its addresses across documents is what is not.

  • T131: fill-recipe.md §3c tabulated three seat shapes and worked through two. The row for at_para 64 — one unruled run holding label, blank and marker together — was never revisited, and two independent clean-room runs hit it and both guessed. They guessed right, which is what made it worth fixing rather than shrugging: a table that names a case reads as a promise to handle it. The row now has a worked answer verified on the corpus form (set-runs addressing the single run; the receipt and the read-back both report charPr 37, so the character shape survives as it does for the other two shapes), plus the distinction that makes it safe — the name is writable, the marker is reproduced byte-identically and a human still signs. tests/test_fill_recipe_seat_shapes.py reads the seat numbers out of the table and requires each to reappear below it, so a fourth row cannot be added without an answer. Also corrects --keep-pattern and --keep help, which described themselves as anchor-only while derive_forbidden applies both to every inventory row — anchor, guide text and placeholder alike.

  • T129: _parse_constraints was handed guide_text only, so a budget the form states in a plain bullet never reached it. The nrf 결과보고서 양식 says 「◦ 결과보고서의 전체 분량은 15쪽 이상, 글자크기는 12포인트 권장」 and that line is neither colored nor an instruction keyword nor a ※ note prefix, so it is filed under anchors and never under guide_text; the regexes were already correct and yield 15 and 12 when run against it. The profile published constraints all-null anyway, which downstream is the difference between a checked length budget and length_budget_unverified: not_declared. Measured before widening: the old input detects a constraint on ZERO of the ten corpus forms, the widened input changes exactly ONE — nrf gains its own stated base_pt: 12 and min_pages: 15 — and the other nine stay all-null, which makes them the false-positive fixtures. Found by a clean-room agent that traced it to the call site rather than reporting the symptom. Stated limit, pinned by a test: the shipped regex cannot tell a requirement about THIS document from a page count citing another one, so if such a form appears the fix is a scope rule, not a wider input.

  • T128: a paragraph seat now gets the colour verdict T127 added, on the --full-text run record. T127 reached table cells only: _fill_preflight has one call site, inside the table walk, so a form whose seats are top-level paragraphs profiles as fill_target_count: 0 and received no pre-flight at all — and the writers for those seats check nothing, because set-runs deliberately never rewrites the run opener. Found by a clean-room agent filling the standard labour contract, whose fill was clean only by luck of the form: it verified the ten charPr ids it wrote into by calling _charpr_defs itself, since no shipped surface reported colour for a paragraph seat. Same predicate as the table pre-flight and the guide-text classifier, so three consumers cannot disagree; an unreadable colour omits the key rather than reporting clean. Measured limit, stated: a paragraph seat still gets no script verdict, and on the 주민등록 등초본 form 12 of 68 body charPrs differ from the baseline on the five script properties.

  • T127: the T30 fill pre-flight reported script_anomaly: false — its own documented meaning is checked and clean — about colour it never examined. charpr_script does not parse colour at all, so a fill inheriting a guide-blue run passed the pre-flight and shipped text that reads as a form hint. color_anomaly now carries the same three-state contract, decided by the predicate that classifies guide_text reason: "colored" so the two halves of form_inspect cannot disagree, and judged before the script early-return so a document with no derivable baseline still gets a colour verdict. The remedy needed its own field: charpr_suggested is the body baseline and the body baseline can be coloured — on the kstartup form guide blue holds 378 characters in one charPr while black prose spreads across 144 ids topping out at 323, so blue wins the maximum despite black being 72% of body weight. body_black_charpr applies the same rule to black runs only and prefers one at the baseline's nominal height, because swapping a 10pt blue seat for a 12pt black one trades one defect for another. body_baseline_charpr is untouched: its tie-break must stay identical to visual_verify's. Found by a clean-room agent whose own prose came back classified as guide text while every cell it touched reported script_anomaly: false.

  • T123: ingress refuses a file that exists but is not a document, before COM starts. T25 closed the missing-input case with the note that says why - Hwp opens a blank document and the blank artifact leaves as ok: true - and a 0-byte file named .hwp had the identical failure mode: it inspected as {"ok": true, "pages": 1, "controls_total": 2}, so on the machine-to-machine privacy-safe surface a truncated upload was indistinguishable from a real one-page document. document_shape_reason reads the first eight bytes and names the problem; the container signatures are measured against this repo's corpus (10/10 .hwp are OLE compound files, 12/12 .hwpx are ZIP) rather than recalled, and a test asserts every corpus form is still accepted. The detailed vocabulary is for a human at the CLI: the privacy-safe surface collapses it to one source_not_a_document token and still never echoes the path. This is a byte check, not a validity claim - a well-formed but corrupt document still reaches Hancom, which is the only thing that can judge it. Order is load-bearing and CI proved it: checking pyhwpx availability first answered source_not_a_document on a Windows bench with Hancom and inspect_failed on all four runners, one input with two answers. The input's shape is now decided before the host's capability. A measured side effect closes #70's mechanism rather than accommodating it - the refusal no longer imports pyhwpx to answer a question that does not need it, so the spawn the flaky privacy test bounds went from an idle median of 2.76s and a loaded median of 9.00s to 0.12s and 0.51s, with a loaded worst case of 0.67s against a 120s bound (179x headroom, up from 3.3x).

  • T122: the T121 subprocess-bound guard scanned the whole checkout instead of the suite, so on a working copy carrying unpacked third-party sources it walked an untracked vendored Python 2 tree, ast.parse raised on a print statement, and three of its own tests died on a file that is not part of this project. Its scope is now what pytest itself collects, taken from pytestconfig.getini("testpaths") and expanded the way pytest expands it - derived from the consumer rather than restating the module layout. A file that IS in scope and does not parse now fails by name instead of dying inside ast.parse. Caught by the post-merge recheck on the real bench: the fresh worktree and all four CI jobs were green, because none of them has the directory that triggers it.

  • T121: a privacy test's own subprocess bound was inside the distribution of a normal loaded spawn, so a saturated suite raced the bound instead of testing the code. Measured rather than guessed - 15 samples of exactly that spawn gave an idle median of 2.76s and a loaded median of 9.00s with a worst case of 36.46s, and the bound was 10s. Because the process exits 3 whether it refuses or is killed, the flake presented as a privacy regression, which is the worst possible disguise for a timeout. The bound is now a named constant carrying the measurement, and tests/test_subprocess_bounds.py holds a floor derived from it. Mutation testing then found the real hole: inspect --privacy-safe refuses in two places and only the availability guard was covered, so planting the source path in the exception handler's payload left the suite green. That branch now has an in-process test that reaches it without spawning anything.

  • T120: validate_task refuses a key the check's kind never reads, so an assertion cannot be silently dead. A strings: list under a file check used to validate and do nothing - found by an invalid mutation during T118, where the mutation changed no behaviour, which is what exposed it. json_file and assert_json stay legal on every kind, because the assertion pass runs after the kind dispatch and T118/T119 depend on that. The per-kind table is measured against the dispatcher rather than invented: a first version omitted expect_exit from the residue kind and refused six shipped tasks, and the code was right - the residue branch does compare a return code against it. Two guards keep it honest: every declared key must be one the dispatcher reads, and every shipped task must still validate.

  • T119: check_hr and check_minwon publish the same rule-outcome map, H1 and P2 assert outcomes, and T118's KNOWN_NAME_SEARCH_DEBT is now empty — no shipped task searches for a rule name in a verdict any more. rule_states lives in pipeline/scripts/checker_base.py, one implementation for all three checkers rather than a copy each (T101), and a test asserts none of them re-declares the state vocabulary. The hr (18) and minwon (16) rule inventories are derived from what each module emits, and the four names the two tasks assert were measured clean on their pristine forms first. The inventory guard deliberately asserts only emitted <= declared: check_grant emits several rules from data tables that no literal scanner can see, so demanding equality would make you delete a legitimate declaration.

  • T118: an eval task asserts a rule's outcome, never the presence of its name in a verdict JSON. evals/README.md documented "a name absent means it ran and passed"; that was never true, because a checker writes a rule name as a finding, as a positive acknowledgment, and as a permanent skipped row with a reason. A3's check asserted thirteen names absent and could never pass — not on a perfect fill, and not on the pristine form check_grant grades pass, since budget_total_mismatch is a permanent skip (no_addends). check_grant now publishes rules, mapping every rule to hard/warn/skipped/clean, severity first so a skip elsewhere cannot mask a finding. A guard forbids the pattern, and it widened its own scope twice while being written: it found two more instances in A2/A3, then — after the vocabulary parser was corrected, because only one of fifteen checkers declares a RULES tuple — two more in H1 and P2. Four tasks, six checks, three modules. The remaining four need check_hr and check_minwon to publish the same map, so they are pinned in KNOWN_NAME_SEARCH_DEBT and the guard asserts the offender list equals it: a new instance fails and a fixed one forces the list down on purpose.

  • T117: a legitimate fill no longer makes check_grant report a table as deleted. grid_tables derives a table's identity from the first row carrying at least header_min_labels non-empty cells, per document, so writing a value into a sparse earlier row promotes that row to header and puts the operator's own text into the table's signature. Measured on kstartup table 0: filling the cell A3's prompt names moved header_row 1 → 0, left the two signatures disjoint, and produced table_structure_lost — which made A3's grant_structure check unsatisfiable by any fill that does what the task asks. match_grid now compares the baseline signature against two readings of each candidate — its own derived header row, and its labels at the row the baseline calls its header — so identity stays on the baseline's side (the T49/T100 rule). The relaxation only adds matches, so the proof is the still-catches set: a deleted table and genuinely rewritten header labels both still HARD, and the mutations pair exactly (dropping the fix fails the defect test, accepting any candidate fails the rewritten-labels test). Found by the A3 clean-room run.

  • T116: the residue gate could not run at all on a form whose inventory contains a literal --. Every caller built the keep list as two argv tokens, ["--keep", entry], and argparse reads a bare -- as its end-of-options marker, so check_residue exited 2 with argument --keep: expected one argument and visual_verify's own residue leg HARDed with check_residue_error. The shell is irrelevant — it reproduces through the internal subprocess list, which is the path the product takes. Nothing an operator does causes it: the keep list is derived from the form's own inventory, and kstartup-jiwon-sincheongseo prints -- twice as a schedule placeholder in the untouched original. Every emitter now passes one token, --keep=VALUE, and check_residue --help states the rule for humans. Guarded by a unit test on the emitted tokens, an end-to-end test that runs the real delegate against the real corpus form, and a source-level guard that tokenizes every module and rejects any ["--keep", …] list. Found by the A3 clean-room agent-completion run.

Added

  • T115: preedit set-runs — a third operation that addresses structure instead of matching text, the same move fill-cells made for empty cells. It writes one run's text at (at_para, run) and never rewrites the run's opener, so its charPrIDRef survives and a value written into a ruled blank sits on the rule (T112). The address is exactly what form_inspect --full-text already reports, with runs[].ruled naming which run. This closes the limit T112 had to state: a ruled blank of nothing but spaces gives replace no string to match, and a whitespace-only key cannot be the answer — tier A compares run text stripped, so such a key is a wildcard over every whitespace-only run, and scoping it to one paragraph still leaves the indent run ambiguous with the rule. Refuses rather than guesses: an out-of-range paragraph or run index reports the count it found, a duplicate address is an error, and a paragraph whose only run has no <hp:t> is sent to fill-cells. Only the edited paragraph's own linesegarray is dropped (T24) — a nested paragraph's cached coordinates are preserved. Re-applying the same value is content-identical.

  • T114: expectations.protected_text — a distribution module declares the text that must survive a fill, and core consumes the list rather than containing it (T43). A 동의서's PIPA §22 고지 (동의 거부권 및 불이익) looks exactly like removable guide text to core, so check_residue held it in the forbidden set and the only route to a green gate was a hand-written --keep — the symptom T31 recorded as a defect. visual_verify forwards the declaration and records it as deterministic.residue_keep.module_protected_keep, apart from the operator's explicit_keep, because "I hand-wrote this keep" and "the module says this is statutory" are different claims. Declaring one string in both protected_text and forbidden_text is refused rather than resolved, and story_edit scope refuses the key outright since that scope never runs the residue leg. Measured on A2's artifact: 4 hand-written keeps → 0, and with neither the gate correctly fails. The grant payload's list is derived, not remembered: a regression asserts it equals the 동의서's actual removal_targets, which after T110 is exactly the three notices. Caller constraint: module expectations are payload the caller passes, so merge modules/<family>/references/visual_expectations/<family>.json into your --expectations file; an empty module_protected_keep on a 동의서 means the merge was forgotten.

Fixed

  • T113: the eval harness now checks that the agent wrote what the task asked for. Each task carries a requested_values_present check listing the literal strings its prompt supplies, and tests/test_prompt_values_are_accounted.py parses the prompt and fails on any value that is neither asserted nor listed in the new unasserted_prompt_values block with a reason from a closed vocabulary (prose, composite, format_unknown, in_blank_form, expected_absent, uncurated, pinned at 0). Previously the gates verified only the internal consistency of what the agent asserted, so A2's prompt could supply 본인 성명: 김도현, no check name it, the value never be written, and the run still reach verdict: pass. The capability was not missing — text_present existed and every task used it, as a spot check on a form string rather than on the request: across 8 tasks the prompts named 39 values and 7 were asserted anywhere. All 39 are now curated from measurement, including 4 verified to be in the blank form already, where asserting them would pass for an agent that did nothing. Guarded in both directions: a stale exemption naming a value the prompt no longer contains fails too.

  • T112: a form's blank is a run whose charPr draws a rule, and the fill path could not see it. --full-text run records now carry ruled: true when the run's charPr has a non-NONE underline (present only when true, so the record shape stays as pinned), and fill-recipe.md §3c says to write the value into the ruled run rather than after the label. Extending the label run leaves the value unruled and pushes the rule along until it wraps — A2's accepted artifact rendered exactly that on the 주 소 : line. Every deterministic check passed, because the charPr id never changed and no text went missing; the vision half did catch it as alignment_drift warn and named the mechanism exactly, but a warn does not block, so the run finished acceptance: true with no blockers. The fix is to stop creating the finding. While correcting that, alignment_drift's per-class entry still read Deterministic: NONE although T102 had corrected the class table to PARTIAL — the document contradicting itself about the class that slice existed to fix. Both per-class lines now lead with the table's token, and a new guard asserts leading-token agreement so the second copy cannot drift again. Finding the underline needed a parser fix of its own: a real charPr body is 649 chars with underline at offset 462, past the 400-char window the neighbouring fontRef lookup uses, so the body is now bounded by the charPr boundary — and a regression pins that a short definition still does not inherit its neighbour's rule. Stated limit: a whitespace-only rule cannot be keyed, because preedit replace refuses a whitespace-only key, so on that seat extending the label run remains the only shipped route and correct rendering is not achievable offline today.

  • T111: answering a consent question is now a documented operation, and the paragraph that needs answering now has an address. fill-recipe.md §3b covers it with the measured constraints, and every answer_slot entry in a profile carries at_para — resolved by the same _resolve_at_para the anchors use, and omitted rather than guessed when the binding is unprovable. Previously the legacy para_idx → editable at_para bridge existed only on anchor_records, so it was present exactly when the paragraph happened to be an anchor: the 수집ㆍ이용 consent question had it (39 → 42) and its 제3자 twin did not. --full-text PARA:N takes at_para and echoes the number under both key names, so retyping a para_idx there silently returns a different paragraph. The constraint the recipe now states: on a glyphless form no gate checks whether the consent was marked. (예, 아니오) carries no mark glyph, so consent_unmarked skips with no_mark_glyphs — the same line a passing run emits whether or not the consents were answered — while kstartup's ( ■동의함 □동의하지 않음 ) is glyph-bearing and required, so there the rule fires and HARDs. The tool never picks the answer either; marking a consent is the applicant's decision.

  • T110: form_inspect no longer offers a statutory consent question up for deletion. A guide paragraph carrying an answer slot is a marking site, not a deletion site, and is excluded from removal_targets on content, with the reason exposed as guide_text[].answer_slot — interrogative_enumeration (a question mark plus a parenthesized pair of short alternatives, 동의하십니까? (예, 아니오)) or multiple_mark_slots (two or more empty [ ]/□ slots, the 주민등록 등초본 선택 필드). Previously the two legally identical PPS consent questions received opposite verdicts because paraPrIDRef 18 is reused by a heading and 21 is not, so a style id decided which one was protected. The verdict reached a gate rather than only a report: check_residue treats removal_targets as its authority (T47), so the consent text sat in the forbidden set and the only route to a pass was a hand-written --keep. Measured over all 12 corpus forms: removal_targets 79 → 76, guide_text unchanged at 268. Statutory notice prose on the same form carries no answer slot and still needs an explicit keep — a stated limit, because that is domain knowledge belonging in a module vocabulary rather than in core (T43).

  • T79: the story inventory now rejects case-fold duplicate ZIP members and has an explicit CLI contract: exit 0 for a passed graph, 2 for argparse or output/usage errors, and 3 for a refused/unknown package. Help and output are UTF-8-safe and never echo document text, author metadata, or absolute paths.

  • T53: backend capability probes no longer promote XML assembly to Hancom proof. Every non-none legacy grade is derived from a terminal execution receipt bound to the current artifact hashes; current-host capabilities are informational only.

  • T54: the XML adapter dispatch now passes its explicit --assemble mode and canonical --out output/verdict_v06.json, so a real adapter invocation cannot silently exit with usage 2 while leaving a stale verdict behind.

  • T55: renderer failures and stale higher-grade verdicts fail closed to none; the active terminal receipt, rather than a max-grade merge, owns the current proof grade. Receipt invalidation now fails loudly if a stale file cannot be removed before a new execution.

  • T56: flattened installs ship the pure-stdlib document_evidence helper alongside the pipeline scripts, with an installed --help import check.

  • T57: XML renderer templates accept both {out_dir} and the historical {outdir} spelling used by the WSL probe.

  • T58: receipt validation closes backend/evidence pairs, artifact roles and extensions, distinct input/output bindings, successful exit code 0, and canonical submission hashes; decoy artifacts cannot establish proof.

  • T59: receipt reason/renderer metadata is bounded to machine tokens and capability facts are allowlisted booleans, preventing user paths or prose from entering evidence artifacts.

  • T60: flattened report installs now carry the in-tree adapters_impl package required by doc_backend.py, with import/help and no-private-payload regression coverage.

  • T61: document-evidence v1 now rejects unknown top-level, execution, and artifact fields; validates exact UTC-second timestamps and closed artifact roles; and requires native exit code 0 for successful structural as well as rendered evidence. Producers and the golden path now describe XML assembly as an artifact, not a graded proof.

  • T62: the XML dispatcher now parses one bounded, unambiguous adapter JSON object even when a PDF/layout dependency adds prefix or suffix diagnostics; malformed, ambiguous, oversized, or non-object output fails closed without recording raw stdout. Renderer terminal failures use truthful renderer_failed/renderer_output_missing reasons. Advisory promotion stays behind the independent visual-quality release decision while the known LibreOffice tofu/layout risk is investigated.

  • T63: successful renderer execution now records a hash-bound, privacy-safe Hangul glyph-quality result. Missing/insufficient glyphs fail closed as missing_hangul_glyphs; ambiguous, uninspectable Type3, nonembedded, or unavailable font buffers remain unknown (inspectable Type3 is covered by T72). Stage 6 reruns the checker and requires converged:true, passed quality, matching PDF bytes, and the existing visual/layout HARD gates before any advisory grade; extracted text alone is not visible-glyph proof, and advisory is not Hancom parity.

  • T64: the Hangul quality checker now compares the complete source syllable set from visible section run text with the extracted PDF set before checking font capacity. Partial coverage is conservatively unknown/source_visibility_ambiguous; a PDF with zero extracted Hangul remains the definitive failed/missing_hangul_glyphs case. Header and metadata text remain outside the source boundary.

  • T65: advisory proof release is governed by one shared, currently closed policy across document evidence, direct fill_report, dispatch, and Stage 6. Quality-passed LibreOffice output therefore remains terminal none until the independent visual contract is released, including for forged receipts.

  • T66: public renderer decisions no longer expose an internal proof_grade candidate. The bounded candidate_proof_grade field is informational; the top-level terminal grade remains authoritative.

  • T67: native Hancom provenance remains hancom when the bounded glyph checker is unknown/not_applicable (including Type3 or unavailable font buffers), and downgrades only on confirmed quality failure. Stage 6 still independently requires converged, clean layout/style evidence and canonical hash bindings; native provenance is not a readability certification.

  • T68: core bundles now stage pipeline/adapters_impl alongside the dispatcher scripts. A clean extracted bundle can run both doc_backend.py --help and submission_preflight.py --help under CP949 without an import failure; corpus and private payload exclusions remain enforced.

  • T69: generated core INSTALL.md manifests now sync the sibling pipeline/adapters_impl package as well as the dispatcher scripts. The shipped instructions are regression-tested by syncing a freshly extracted bundle and running both installed help paths under CP949.

  • T70: contradiction-only preflight fixtures now carry a current, hash-bound native receipt. Missing receipts remain a separate HARD regression; the non-none receipt contract is not weakened.

  • T71: missing_glyphs is now a closed visual-rubric class with a HARD severity floor. Vision findings of that class are accepted only as HARD and block acceptance; unknown classes remain usage errors.

  • T72: Hangul-used Type3 fonts now receive a bounded, code-aware quality check. The checker requires ToUnicode, Encoding Differences, CharProcs, finite nonzero metrics, path construction and paint, and distinct Unicode-to-code-to-program identities; ActualText alone cannot pass. Identity collapse and missing geometry fail closed, while Do/XObject, unsupported graphics state, malformed, oversized, duplicate, or otherwise uninspectable mappings remain unknown. Symbol-only Type3 resources are ignored, code 0 is valid, TTF/OTF behavior is unchanged, and coverage is limited to synthetic/public fixtures rather than full PDF certification.

  • T73–T76: Type3 checks now prefer decoded streams, scope Tf resources and identity budgets per page, model only balanced finite transforms and closed nonzero polygon clips, and reject duplicate CMap keys or non-injective Unicode/code/CharProc identities. Full-page visual/layout intersection remains a separate HARD gate.

  • T77: Type3 pages that use cm or polygon clips now require bounded PyMuPDF Page.get_texttrace()/Page.get_bboxlog() evidence, exact ordered code/trace alignment, positive in-page opacity, adjacent fill/stroke path boxes, and full trace-box containment in active transformed clips. Missing, far, zero-opacity, late/nonoverlap, and repeated-occurrence mismatches stay unknown; this is a glyph-visibility guard, not full layout certification.

  • T78: conflicting Hangul claims in a rawdict span's chars and text/ActualText fields are no longer merged. Equal claims are accepted, a strictly longer text claim remains visible to the Type3 identity check, and equal/shorter disagreement is unknown/semantic_text_ambiguous. The checker still does not treat ActualText alone as visible-glyph proof.

  • T47: guide/removal residue policy is paragraph-addressed when the records are structurally valid; missing, malformed, or mismatched evidence keeps the legacy strict all-anchor/all-guide fallback.

  • T48: long signature seats are anchors only for the narrow label/colon/trailing-marker shape; arbitrary long prose remains non-anchor.

  • T49: --full-text PARA:N uses preedit's global depth-first at_para order and own-run text, while retaining the table-address syntax; its optional para_idx field is only an alias for that address, not the legacy profile index.

  • T51: anchor records preserve the legacy profile para_idx for T47 residue identity and add a start/identity-bound preedit at_para; nested and multi-section drift refuses to guess when identity cannot be proven.

  • T52: the PPS signature workflow now documents that fixed-padding marker runs must be inspected and scoped explicitly, then checked in a Hancom/PDF visual loop; text hit gates do not prove line fit.

validated product: autonomous verification, clean-room proof, six modules

v0.16.0 shipped as an alpha: written by its authors, run on its authors' machine, exercised on one form-family lineage, and only ever against empty forms. v0.17 is the release that turned that into a product someone else can install and use. The product tree contains 30 commits, PRs #57–#86; the final release-record PR changes documentation only. Three things changed in kind: the system now judges its own rendered output with no human in the acceptance loop (#57, #61, #64, #75); a clean-room harness installs the product the way a buyer would and refuses to fall back to the checkout, which is what found the defects the repo suite structurally could not see (#58, #59); and the module contract carried four new work types (공문, 민원, 인사, 지원사업) with zero core edits, taking the product to six distribution modules and seven bundles (#65, #68, #69, #70).

Forty defects and harness lessons were found by validation rather than by the suite: three Claude clean-room rounds, three tiers of an independent Codex harness, three work-type family runs, and the fresh-root G1 acceptance chain. The ledger, and the honest limits of what those runs prove, is docs/release-v0.17.0.md.

v0.17.0 세부 변경 내역13개 분류 · 41건

Added

  • preedit fill-cells writes multiple paragraphs into one cell (T39). A fill value is now a list of paragraphs: a --map JSON array, a newline inside any value, or --cell-line ROW,COL=TEXT (repeatable, given order = paragraph order) — the PowerShell-usable spelling. Korean 공문 본문 is hierarchical by regulation (1. / 가. / 1) / 가), one paragraph per level), so the gongmun module could not produce a regulation-shaped 본문 at all before this. The blank paragraphs a form already reserves in the cell are used before any are created; the writable run stops at the first paragraph holding a nested table (the 기안문 본문 cell contains the 직인/발신명의 tables); continuations beyond the reserved run clone the target paragraph whole, so paraPr and charPr are the form's own and no created paragraph carries a stale linesegarray. The T30 pre-flight now covers every paragraph a call will write.
  • --parapr-per-cell ROW,COL=ID repoints the paraPrIDRef of the paragraphs a fill writes, for forms whose reserved blanks are not body-formatted (the 기안문 본문 blanks are centre-aligned because they share the cell with 발신명의). Per-cell only, never batch-wide (T32); guarded by guards.assert_no_dangling_parapr, the T22 assertion's sister.
  • fill-cells cell reports gain paragraphs, paragraphs_reused, paragraphs_created and parapr.

Documentation

  • fill-recipe.md §1.1 distinguishes a T30 charPr trap from the form's own typography, with the 기안문 별지 제1호서식 numbers as the worked example (body baseline charPr 23 = 10pt/100% 비고 fine print vs the 12pt/97% label and 본문 face) — previously any script_anomaly read as a defect and pasting suggested_flags unread would silently reformat the 본문.
  • fill-recipe.md §1.2, the gongmun fragment and gongmun_flow.md carry the multi-paragraph 본문 call; T39 is in the trouble table and the shipped troubleshooting distillate.

Fixed

  • T37 — self-closing XML elements do not steal a sibling's text. Six shared patterns treated <hp:run/> as if it opened a paired run and captured the next sibling's body. The arity-preserving fix recognizes the self-closing branch explicitly. A first repair also exposed the reusable rule: changing a shared regex's capture-group count is an interface change whose blast radius is every caller in the tree, not only the edited directory. Fourteen regressions pin both the XML shape and group arity.
  • T38 — conversion provenance survives the step boundary. A correctly filled 기안문 별지 (and every gongmun-family form whose blank stores PrintInfo/PrintMethod=4) could not reach verdict: pass by any shipped path. com_backend.py convert already neutralises the stored n-up print imposition before SaveAs(PDF), but only reported it on stdout — and the canonical recipe converts in one process and verifies in another, so visual_verify saw no evidence, HARDed imposition_mismatch, and could not be waived (that class is deliberately outside SAFETY_CHECKS). A gate cannot tell "did not happen" from "was not told". convert now writes a rigorloom/conversion-record/v1 sidecar at <--to>.conversion.json by default (--record PATH, --no-record), carrying what the conversion did plus the sha256 of both the source and the output PDF; visual_verify auto-discovers it beside --pdf (or takes --conversion-record PATH) and rebuilds the same conversion dict it would have built had it converted itself. The hash binding is enforced: a record that does not describe the files under verification is a usage error (exit 2), never a quiet accept. Not a relaxation — with no record and PrintMethod != 0 the HARD stands verbatim, and no baseline exemption was added.
  • T40 — the T30 post-flight compares the SEAT, not just the document. With T38 fixed, the last thing keeping the gongmun family from acceptance: true was two unwaivable fill_charpr_script_mismatch HARDs on the 수신/제목 seats of a demonstrably correct 기안문 별지 fill. Both said differing: ["ratio"], 97% against a baseline of 100% — and the untouched blank form carries 97% on every substantive seat it has. The detector's one baseline was the document's own body charPr (the id carrying the most non-fill text), which on a mostly-EMPTY form is boilerplate: on this form it is the 비고 fine print, so every real field differed from it and the check was inverted on the whole document class. Worse, nothing ever asked the question that decides the finding — did the fill introduce this signature? An --at-cell-append fill preserves the printed label's charPr on purpose (T31), so the fill introduced nothing and was being blamed for the form's design. --baseline (the blank form, which the canonical recipe already passes for the pixel diff) is now read a second way — offline, as XML, no renderer needed — and each fill-modified run is compared against the exact blank run named by the fill-map key inside its own seat. A seat is a structural address (Contents/section0.xml/t1/1,0), keyed on cellAddr because that is the coordinate the fill CLIs take and because text cannot be the key: the same seat reads 수신 in the blank and 수신 국가유산청장 in the artifact. A run HARDs only when it differs from BOTH baselines, so the seat can only downgrade a finding, never create one. Inherited → WARN fill_charpr_script_inherited, naming the seat and the blank form's charPr (never a silent drop). An empty seat in the blank form → HARD, because there is no typography to inherit — the trap's own shape. No .hwpx baseline, or a .pdf/image-directory one → HARD and the finding says the inheritance question was not checked. fill_charpr_script_mismatch stays in SAFETY_CHECKS and --accept-without was not widened.
  • T41 — an ambiguous text match refuses instead of choosing. The HR module's documented preedit replace --map path rewrote the same clause on five sibling contracts because a paragraph key had no position scope, and every module structural gate still passed the corrupted pack. Unscoped keys that resolve more than once now exit 2 as replace_key_ambiguous, naming each at_para plus recent prior context including the variant title; use {"text": V, "at_para": N} for one paragraph or {"text": V, "all_occurrences": true} for all. Occurrences are scanned independently per key against the original document, so overlapping keys cannot erase each other's evidence. The same doctrine now guards residue keep derivation: a fill-map key that claims several inventory strings is a usage error until other_occurrences: form_text|seats states which semantics apply. Scoped maps work from either --fill-map or expectations-only and are flattened for every other consumer.
  • T42 — address-keyed reserved form runs are a strict seat baseline. The canonical 기안문 body fill uses key "2,0" and writes into a block of 23 blank paragraphs, all carrying the form's deliberate 12pt/97% charPr. T40 could prove inheritance only from visible text, so this correct fill still HARDed. For exact ROW,COL keys, the post-flight now accepts at least two empty runs in that exact seat only when they share one defined charPr, the filled signature matches it exactly, and its sole body difference is ratio; the result is the existing named inheritance WARN. A single empty run, mixed ids, changed signature, or script/scale/offset anomaly remains HARD. No safety check or waiver changed.
  • T43 — residue consumption uses the gate's value spans. A mapped payload appearing after a surviving form label no longer makes the keep report call that label consumed. The targeted occurrence itself must lie wholly inside a declared value span, using check_residue's own span and occurrence primitives. Prefix-preserving or COM fills therefore declare the complete resulting line ({"수신": "수신 국가유산청장"}); payload-only declarations remain unfilled and HARD. Key-absence replacement fallback is unchanged.
  • T44 — multi-paragraph fill declarations reach T30/T42. The authoring path split JSON arrays and newline strings into one run per paragraph, but the post-flight searched each run for the unsplit whole. That made the charPr safety check unavailable on the documented multi-line body shape; JSON arrays also failed render presence by being stringified as a Python list. visual_verify now reuses preedit.split_fill_lines: render presence compares the joined paragraphs, charPr verification checks every non-empty paragraph, and exact ROW,COL keys are scoped to that seat. Regressions pin array/newline inheritance and a changed-charPr multi-paragraph HARD.
  • T45 — task intent no longer requires forbidden rendered evidence. G1 asked for a 기안 초안 and asserted auto document.state == "draft"; auto state uses the bottom 비고 block as its draft marker, while the visual rubric correctly HARDs that out-of-form instruction as guide_text_visible. The task could therefore be machine-green or visually acceptable, never both. G1 now passes the checker's existing --mode draft, asserts document.state_used, and independently requires the 비고 marker absent. The generic checker and the visual severity are unchanged.
  • T46 — PowerShell audits capture the native checker exit. The Codex desktop shell can display a generic outer exit 1 for a bare native non-zero command even when $LASTEXITCODE is the checker's documented 2 or 3. The installed recipe now captures $LASTEXITCODE immediately, prints DIRECT_EXIT, and propagates it with exit $native; a clean-room install regression pins that exact buyer-facing pattern. T36's product exit matrix remains unchanged and green.

Changed

  • engine/scripts/charpr_script.py gains the seat layer: iter_seat_runs, iter_seat_empty_runs, seat_addresses, seat_label_runs. iter_runs now delegates to iter_seat_runs and drops the seat, so the seat-aware and seat-blind readings of a document cannot report different runs, text or order. Seat resolution takes two passes on purpose: OWPML puts <hp:cellAddr> at the END of <hp:tc>, after the <hp:subList> holding the paragraphs, so a single forward scan reaches every run in a cell before it learns the cell's address.

Autonomous verification — the machine judges the render

  • #57 — visual_verify, the render-judge loop, and a closed rubric vocabulary. skill/references/visual-rubric.md is the defect-class vocabulary an agent applies when READING a rendered page PNG: 12 classes, each with what it looks like, what it is NOT (the false-positive guard), and which deterministic check already covers it (FULL / PARTIAL / NONE). §4 records the rubric's own gaps (colour fidelity, font substitution, equation-scale overprint) rather than pretending to cover them. pipeline/scripts/visual_verify.py is the loop driver: it renders pages (fitz 130 dpi; hwpx goes through ONE serial com_backend convert, never --kill-stale) and merges every deterministic backstop into a single findings list — hwpx section/header XML validity (T23), zero-text document and zero-content page (T25), stored PrintMethod plus pages_document/pages_pdf parity (W6.2), declared page budget / base_pt / line spacing / margins / fill map / forbidden text, layout_qa mapped onto rubric classes, check_residue and check_density delegates, and a --baseline pixel diff reporting changed-region bboxes. It never calls a model: it prepares the vision task (vision_required: page, PNG, reasons, rubric pointer) and consumes the handback through --vision-verdict, validating every class against the rubric vocabulary — an unknown class is a usage error, not a finding. No vision verdict means verdict vision_pending; --deterministic-only can exit 0 but sets acceptance: false; --max-fix-attempts N + --attempt M adds a HARD loop_exhausted so a caller escalates instead of grinding. The ship gate is rubric calibration: synthetic reproductions of all four historical incidents with false-positive guards, and INCIDENT_MATRIX pins the deterministic-vs-vision attribution so the rubric document and RUBRIC_CLASSES cannot drift apart.
  • #61 — three defects that were invisible from inside the repo. V1/T29: the shipped skill pointed at docs/research/visual-rubric.md, which was in no bundle — the MANDATORY vision half reached a buyer with no class definitions, and both clean-room agents recovered the vocabulary by reading RUBRIC_CLASSES out of source. The rubric now has ONE home inside the shipped surface, and the packaging guard is generalized rather than another filename: package_module extracts every doc path named by every shipped surface document and refuses the build (exit 3) unless it resolves inside the staged bundle. Four further dangling references it immediately found are now named in prose instead of as paths a buyer cannot open. V2: --form-profile could not forward a keep list, so on a form fill every surviving legitimate anchor read as residue and the delegate could never return pass — added --keep, --keep-pattern and --fill-map (which derives the standard form-fill keep list), auditable under deterministic.residue_keep. V3/T30: a filled value inheriting a charPr identical to body text except for a trailing <hh:supscript/> kept its nominal 10pt height, so charpr_check and style_diff both passed it while Hancom rendered it at ~6.35pt raised. visual_verify now compares the script/scale/offset profile of every FILL-MODIFIED run against the document's body-baseline charPr and HARDs on a difference (fill_charpr_script_mismatch); scope is the false-positive guard, so an intentionally superscripted footnote marker is never compared.
  • #64 — T31: the keep list treats a prefix-preserving fill as consumed. A CORRECT form fill could not pass the residue gate through --fill-map alone. The derivation computed "consumed" as "the mapping named this key" and then relied on the key TEXT HAVING VANISHED — which is not what a correct fill does. Filling a labeled field semantically KEEPS the label as a prefix (" http://" → " http://host"; a zip field keeps its " 우( - )" skeleton and appends the address), so the key survives inside the value by construction. Now: a key is CONSUMED when its mapped VALUE is present (whitespace-normalized, through check_residue's own normalization and text extractor so the derivation and the gate cannot disagree); a key whose value is absent while the key text is still there is UNFILLED and still HARDs, named in residue_keep.unfilled; and surviving key text inside a value is attributed to that value's SPAN, per occurrence, not suppressed document-wide (occurrences, attributed, at_offsets, context, plus fill_attribution on the verdict). Guide text is never attributable, for the same reason it is never keepable.
  • #75 — T36: acceptance now requires the safety set, and no path exits 1. Two P0 correctness-of-VERDICT defects found by the independent Codex clean-room harness. First, acceptance: true while safety checks sat in skipped[]: the luna tier supplied a CLI --fill-map and still got empty_cell_expected_fill, fill_charpr_script_mismatch AND page parity into deterministic.skipped[], then exit 0 with acceptance: true, because acceptance was computed as "no HARD finding" and never read the skip list. visual_verify.SAFETY_CHECKS now names in ONE place the five checks whose absence invalidates acceptance (page_parity, xml_wellformedness, check_residue, empty_cell_expected_fill, fill_charpr_script_mismatch); _skipped() returns {check, reason} records so a rule can match on them; and a skipped safety check makes the verdict safety_incomplete with a HARD acceptance_safety_skipped naming which and why, exit 3. --accept-without CHECK (repeatable, closed vocabulary) is the only way past it, recorded as acceptance_waivers — per check, never a blanket switch, and the skip is still reported. The pixel diff stays OUT of the set (T35: a renderer-less machine loses one check, not the run). Second, --fill-map and expectations.fill_map were two inputs, not one concept — the flag drove the residue keep derivation while the expectations member activated the declared-value presence check and the T30 post-flight, so the flag looked sufficient and was not. The CLI map now SEEDS expectations.fill_map (fill_map_source records which surface it arrived on); two DIFFERENT maps are a usage error rather than a silent precedence rule. Third, pages_document is no longer the caller's to remember: parity takes the first of conversion → expectations → the artifact's own <hp:lineseg vertpos> layout cache (derive_pages_document, excluding cell-relative linesegs inside hp:tc/hp:subList), records pages_document_source, and skips only when all three fail. Fourth, the exit-code contract, all six rows: sol and terra both saw exit 1 for vision_pending where the contract says 3. 1 was not a code at all but an unhandled path — emit_verdict sat outside every guard in main, so an unwritable --out escaped as a traceback after a perfectly good verdict. --out is validated before the run and the emission is wrapped, so no path exits 1; test_exit_code_matrix pins one row per terminal state (pass 0, deterministic_pass 0, vision_pending 3, fail 3, safety_incomplete 3, usage_error 2) and the docs table is asserted against the code.
  • #76 — empty_cell_expected_fill stops firing on correct runs. Every accepted tier emitted the same two warns for by-design-blank or unsupplied cells, with a page y-coordinate as the only evidence — a warning every correct run emits trains people to ignore warnings. layout_qa now emits one finding per empty header cell carrying its column, its header row and a label, plus spacer_pattern for the two by-design shapes; visual_verify suppresses those and any seat named in declared_blank (in expectations or in the wrapper-shaped fill map; intentionally_blank is an accepted alias folded into one list), recording every suppression under deterministic.layout_qa.empty_cell_suppressed and the declaration under deterministic.declared_blank / declared_blank_source.

Clean-room validation — does the product work for someone who is not us

  • #58 — evals/, the clean-room harness. evals/cleanroom.py installs rigorloom the way a buyer would: dist zips only, into a fresh temp root outside the checkout; modules enabled through the shipped registry CLI; the skill installed through the shipped installer. It self-checks (per-bundle --verify run by the packaged verifier, capability probe cross-checked against the registry, --help smoke over core plus module-registered CLIs) and then asserts containment on five independent axes — static path scan of every sandbox text file, reported-path resolution, runtime import origin and sys.path of a sandbox subprocess, environment scrub, and symlink escape. Any finding is exit 3, and verify-containment re-runs the same assertions after an agent has been in the sandbox. There is deliberately no code path that copies product files out of the checkout — a surface missing from the bundles is a gap recorded at HARD severity, and --allow-gap acknowledges it without hiding it. evals/tasks/*.yaml ships task definitions derived from docs/research/form-eval-scenarios.md, one per corpus-backed family, referencing corpus forms by path so the eval tree embeds no binaries; run_record.schema.json + score.py join a launcher's run record with the machine-check results into a scorecard and fold several scorecards into a cross-tier table. The model-invocation layer is a documented seam, not a hardcoded launcher.
  • #59 — the first thing it found: the core bundle shipped no skill surface. rigorloom-core-0.16.0.zip carried the document engine and no skill/SKILL.md, no skill/references/, no scripts/sync_local.py installer — a buyer had no way to install the router skill an agent loads, and the skill: fragments the report and style modules declare had nothing to merge into. The repo suite could not see it: it runs against the checkout, where those files simply exist. _CORE_COMPONENTS now includes the skill surface and the installer, and two staged-tree assertions (both exit 3) stop the gap returning through an edit to the component list. Recorded in full, with the corrected v0.16.0 inventory, under "Post-release fix" in docs/release-v0.16.0.md.
  • #63, #72 — cross-model measurement and a shipped routing table. skill/references/model-routing.md ships with the product so a buyer can run the cheap tier by default and escalate only where a measurement says to. Three rounds of two Claude tiers each, every run built from bundles alone with containment verified afterwards. Round 1 measured defect-workaround cost, not tiers — both tiers completed only by working around five product defects. Round 2 (after #59–#62) measures tiers: identical machine verdicts, within 6% on tokens, so Sonnet wins decisively on price for inspect/fill/verify. Round 3 ran the same task against the full product with all six modules enabled, and produced the result that changed the table: the charPr pre-flight removed the one quality difference that had separated the tiers, so both tiers now avoid the superscript trap on the first attempt without knowing it exists — the fill class is Sonnet-sufficient by mechanism rather than by luck. Opus's measured advantage is diagnosis (it root-caused the charPr trap and found the shipped cp949 --help crash that Sonnet reported only as friction). assemble and prose/humanize are explicitly unmeasured, no claim. The document's own limits section names the confounds: one task, one form family, one machine, two tiers, our own harness, and — added in #72 — that every measured run is a Claude agent. At release preparation that last limit was corrected rather than left standing: the non-Claude axis now has exactly one data point (the independent Codex harness of #75), recorded in the document with what it does and does not support — luna produced an accepted document, so a second vendor can drive the shipped surface, but it needed more retries and an auditing harness to get there, and its numbers are not comparable with the table's.

Four new work-type modules — six modules, seven bundles

Each ships as its own installable bundle at the same version as core, and each was built with zero edits outside its own directory (plus evals/), which is the module contract's rule 4 exercised for real rather than asserted.

  • #65 — gongmun (공문/기안문, family ②). One deterministic checker (check_gongmun), the gongmun_org pack type its issuing-organization seats are filled from, and a skill fragment for the 공문 task flow; no requires_modules. The rules come from the 서식, not from a string list: 「행정업무의 운영 및 혁신에 관한 규정 시행규칙」별지 제1호·제2호서식 state their own rule in the 비고 block — the guide vocabulary must not be displayed, its content must be. The checker carries no Korean literal it matches on: the vocabulary is data and each form's own 비고 block is parsed at run time and unioned into the term list. Seat state (blank_by_design/filled/emptied/half_filled) is one mechanism applied to 두문 / 결재란 / 결문 / 발신명의; half-filled — not "empty" — is the failure mode a 결재란 row must never ship as. The 직인 slot is a placement, never a fill target, and border colours are read only from borders whose type is not NONE (the corpus 발신명의 box declares #FF0000 on an undrawn border, and a naive colour scan calls it a seal). A blank form is not a failed 공문: document state is classified from the form's own evidence, so both corpus 기안문 forms pass untouched and report the unfilled shape. Rules that cannot be decided from the inputs given are listed under skipped with a reason — never silently passed.
  • #68 — minwon (민원·신고 서식, family ①). The highest-prevalence HWP work type, and the one the fixed-grid table-fill capability was built for. Its rules are the INVERSE of gongmun's: a 기안문's 비고 declares that its guide vocabulary must be replaced by content, while a 민원 서식 declares the opposite — its printed 유의사항 / 수수료 / 제출서류 / 동의 text is part of the document the applicant submits. So the headline rule is guide_block_lost and there is no residue class at all. Thirteen structural rules in seven groups, every one derived from what the four corpus forms themselves declare. Two mechanisms carried the design: shading only means "staff-only" where the form SAYS so (정보공개 청구서 paints its 접수번호/접수일/처리기간 #B2B2B2 and prints the declaration; 주민등록 등초본 신청서 paints cells the same colour, one of which is an instruction block carrying the [ ] boxes the applicant must mark), and an identity seat is a label, not prose (no checkbox glyph, at most 40 squeezed characters). R6, the privacy rule, is deliberately NOT gated behind --baseline: a 주민등록번호-shaped value the operator did not declare in --fill-map is HARD on its own evidence. No pack_types, and that is a finding rather than an omission — everything the applicant supplies is per-document personal data, so a pack here would create the very store of personal data the identity rules exist to prevent.
  • #69 — hr (계약·인사 서식, family ⑦). Chosen third for the one thing no other family offers: the corpus holds a versioned pair of the same instrument (고용노동부 표준근로계약서 2013 and its 2025 revision). Every rule was verified against BOTH baselines before it was written, and candidates the corpus does not support were dropped rather than shipped half-applicable. This is also the one work type whose document IS the legal instrument — a 표준근로계약서 is numbered clause prose carrying the 근로기준법 제17조 서면 명시 의무 in its own words — so the twenty rules in eight groups are preservation rules over PROSE. The corpus forced the design: the '______' underline-blank premise does not hold (the 2013 pack has exactly one underscore run, 2025 has none; the family's blanks are runs of spaces and 년 월 일 skeletons); the stencil rule splits on colons as well as blank runs because this family letter-spaces its labels; state classification needs a NARROW mark class (the broad option-slot class matches 32 printed parentheticals on the pristine 2013 pack and 66 on 2025, so every blank form read as a draft); and clause_renumbered reads its inventory from the baseline, never 1..N, because the 2013 단시간 sheet legitimately runs 1,2,3,4,5,6,8,9 on the PRISTINE form. The 2013 → 2025 drift table is re-derived by a test so it cannot rot. No pack_types, and again that is a finding: a repository store of one party's 사업체명 · 대표자 · 사업자등록번호 would be a standing supply of exactly the half-filled contract party_half_filled exists to catch.
  • #70 — grant (지원사업 신청, family ⑥). The last of the planned work-type set, and the one whose distinguishing property breaks an assumption the other three share: a 지원사업 submission is an application PACKET, not a document — one file carries a 신청서 grid, a flowing 사업계획서, 붙임/별첨 parts cited by number, per-programme budget tables and standalone 동의서 sheets, and the applicant is supposed to change its shape. Seventeen rules in nine groups, six declaring wants: [baseline]. Two make this module different: the extendable-table geometry rule compares COLUMN structure and the header row, never a cell count (adding rows is what this family's applicant does — the form says 견적서 1개 초과시 표 추가), so a moved row count is reported as an extension while a changed column count is HARD; and packet integrity needs no baseline, because whether a marker class is INTERNAL is read off the document (a class with at least one 【… N】 header is internal and every citation of it must resolve). budget_total_mismatch is this family's one genuinely numeric invariant — each 합계 equals the sum of its column, verified 8 times over on the pristine kstartup form, whose totals are Hancom =SUM() fields, which is exactly why an XML edit that skips recalculation leaves a stale printed total. Four candidates were dropped, each recorded as a corpus assertion rather than prose. length_budget_unverified is a declared dependency, not a check: it reports not_declared / needs_render / needs_section_scoping and names visual_verify as the owner of a page count instead of guessing one.

Engine — the offline fill path becomes complete

  • #60 — T26/T27/T28, the fill defects both round-1 clean-room agents hit. T26: preedit replace double-applied a value containing its own key — tier B (raw substring) ran over the span tier A (whole-run) had just rewritten. Measured with operations.md's OWN documented example: {" http://": " http://example.kr"} produced " http://example.krexample.kr" with hits: 2, so following the shipped docs corrupted the cell. Replacement is now single-pass: every span a tier writes is protected for the rest of the call, which also restores re-run idempotence and stops a later key rewriting an earlier key's value. T27: new preedit fill-cells, the offline path to a genuinely empty cell — a form's empty cell is <hp:run charPrIDRef="N"/> with no <hp:t> at all (19 of 19 empty cells on the PPS 협업승인신청서), so the text-keyed replace could never reach it even though the skill routed form-filling there. fill-cells addresses cells by the cellAddr that form_inspect's table_map reports, creates the <hp:t> inside the empty run preserving its charPr, refuses a non-empty target unless --overwrite, strips the modified paragraph's stale linesegarray (T24) and validates well-formedness before writing. Table scanning moved to a shared tag-stack scanner (engine/scripts/hwpx_tables.py) so --table N and table_map[N] are the same table: the old non-greedy <hp:tbl>(.*?)</hp:tbl> mis-paired nested tables and got table/cell counts wrong on 6 of the 12 corpus forms. T28: com_backend set_cell addressed cells by keypress count — TableRightCell wraps across rows and TableLowerCell jumps over rowSpans, so on any form with a rowspan label column (the norm in government forms) it wrote to the wrong cell; targeting cellAddr (2,3) on the PPS form landed on (2,6), the 법인등록번호 label. addr: [row, col] now means cellAddr and is translated by a wrapping TableRightCell walk that verifies get_cell_addr() after every move and aborts without writing on any mismatch; the legacy keypress mode survives only behind an explicit raw_traversal: true.
  • #62 — the 12-form recognition table re-derived after the scanner fix. 7 of 12 forms had reported low table/cell counts, worst case gianmun-byeolji-1ho (2 tables / 5 cells for a document carrying 3 / 34). Anchors and guide_text were unaffected — the defect was purely structural. Superseded values are retained per form under superseded_pre_pr60, the bench doc carries an explicit correction block, and the donguiseo floor in the shipped forms.md moved 3/16 → 4/17.
  • #66 — T30 becomes preventable (charPr pre-flight), T32, and cp949-safe --help everywhere. T30 was detectable but not avoidable: fill-cells "preserves the run's charPr" is documented as the safe behavior, and finding the right --charpr id meant reading header.xml by hand — exactly the contact the shipped "structure only, never dump body" contract discourages. Now form_inspect reports body_baseline_charpr once and, on every fill_target cell, the charPr the fill would inherit, a script_anomaly flag and charpr_suggested; fill-cells refuses an anomalous target given no explicit id (exit 3, fill_charpr_script_anomaly, naming the cell, the anomalous charPr, the suggested id and the exact flag to pass) instead of silently producing the 6pt fill. The comparison itself moved to engine/scripts/charpr_script.py and is imported by BOTH the pre-flight and visual_verify, so the two halves cannot disagree. Corpus calibration is pinned by tests, not folklore: 6 of the 10 converted corpus forms carry at least one anomalous target and jeongbo-gonggae-cheongguseo carries 18 of 19. T32: --charpr is batch-wide, an undocumented constraint the T30 pre-flight breaks, so --charpr-per-cell ROW,COL=ID sets one target's id and wins over --charpr. And com_backend.py --help died with UnicodeEncodeError on a Korean-locale Windows console — the platform the COM path exists for — because an em-dash sat in the top-level parser description, and only the top-level --help prints it. The UTF-8 stdio guard now runs at entry in every shipped CLI (12 in engine/scripts via the new engine/scripts/cli_io.py, and in pipeline/scripts via checker_base._utf8_stdio, including inside checker_base.cli_main so every checker routed through it is covered by construction). 11 CLIs were broken and 8 more were latently unguarded; the real deliverable is tests/test_cli_cp949_help.py, which DISCOVERS every argparse entry point in both shipped trees and runs --help under PYTHONIOENCODING=cp949, so the whole class cannot be reintroduced by the next docstring.
  • #74 — T34: address-keyed replace closes the seat-text gap. Round 3 measured the already-fixed product and both tiers, independently, hit the same wall: a form's printed seat (a skeleton the form typeset for a value — " 우( - )", " http://", "20 . . . ~ 20 . . . ( 개월)") could only be edited with a replace key reproducing the run's exact internal whitespace, and nothing shipped yielded that string. So both agents read Contents/section0.xml by hand — precisely the contact the shipped skill forbids. Fixed in three layers. preedit replace --at-cell ROW,COL[#RUN]=TEXT and --at-cell-append (both repeatable, plus --at-cell-map JSON) remove the need for the exact string entirely; the two modes are explicit, never inferred. A cell holding more than one text run refuses (exit 2, at_cell_run_ambiguous) and the refusal lists every run index with its exact text, so neither "first run wins" nor "flatten the cell" can silently destroy content — PPS (15,0) carries the regulation sentence, the 신청일 line, 신청인, (서명 또는 인) and 조달청장 귀하 as separate runs. A cell with no text run at all routes to fill-cells, so the two operations partition "already prints something" vs "genuinely empty" (T27). Every guard is shared with the rest of the engine (T24 stale-lineseg strip, well-formedness before write, the T30 pre-flight, the T22 dangling-charPr assertion), and --at-cell-expect ROW,COL[#RUN]=SUBSTRING compares with all whitespace removed on both sides so an operator asserts 우(-) without counting spaces. Also: table_map[].text_preview now reports truncated — the failure was not that the preview is short but that nothing said there was more, which is why a competent agent concluded the 협업기간 skeleton ended at the 30-character cut and lost a second replace pass; and form_inspect --full-text [TABLE:]ROW,COL is the documented, per-cell opt-in escape from the structure-only contract, emitting exact run text for the cells you name and no others, whose runs[].index IS --at-cell's #RUN.
  • #73 — T35: one --fill-map loader for every consumer, and --baseline takes the blank form. --fill-map was one flag name with two incompatible payloads: each consumer had grown its own loader, so visual_verify documented the wrapper shape while the module checkers and check_residue wanted a bare {key: value} map, and each refusal named only its own shape — the caller learned one shape per retry. check_residue now hosts THE shape rule (load_fill_map, normalize_fill_map, and FILL_MAP_SHAPES appended to every shape error, naming BOTH shapes); visual_verify.load_fill_map IS that function object, asserted, so the rule cannot fork again. A wrapper whose fill_map member is not an object is now a usage error instead of being read as a bare map. Second nit: --baseline reads as "the blank form" but refused an .hwpx, so the round-3 agent dropped pixel-diff rather than converting — it now routes an .hwpx/.hwp through the artifact's own convert_to_pdf, and with no renderer it is a skip-with-reason (one check lost, not the run, and never a crash).
  • #76 — form_inspect: classification: spacer. Six cells on the PPS form were reported as fill_target when nothing is ever written in them, so the Codex harness and the round-3 Opus run each reasoned them away by hand — classification was pushing its own job onto the reader. A spacer is empty, has no label neighbour, and has one of two filler geometries derived from the table itself: full_width_band (spans every column AND is shorter than the shortest cell in that table that prints text) or stub_head (the corner where a header row crosses a label column). No addresses, no absolute heights, no tuned ratios. Excluded from the new fill_target_count, reported under spacer_cells. PPS: 19 empty cells → 13 + 6. A corpus sweep over all 12 forms reclassifies only separator bands and matrix stub heads.

Module contract — the three gaps gongmun exposed

Shipping the first module nobody had planned for disproved one of the four contract rules and left two harness gaps (#67). All three are closed.

  • Rule 4 was false for the test harness. "Adding a module later requires no core change" held for the registry and not for the suite: pyproject's testpaths and CI's py_compile invocation were both hardcoded per-module lists. testpaths is now one glob (modules/*/tests), and the compile step is scripts/py_compile_sweep.py, whose pattern set includes modules/*/scripts/*.py and names no module (it exits 2 rather than passing vacuously when nothing matches). The acceptance test now proves the property instead of the mechanism: a brand-new module dropped into a synthetic checkout carrying the repo's real pytest ini block verbatim has its tests collected and its scripts compiled, with pyproject.toml as the only file outside modules/ — plus a negative control and guards against either configuration naming a module again.
  • Eval machine checks gained a per-module gate. machine_checks[] accepts requires_module: NAME; where the sandbox's enabled set lacks it, the check is skipped with a recorded reason instead of failing, with blocked_on's semantics exactly (counted in counts.skipped, never in counts.pass, so neither check's exit code nor score.py can read a skip as a pass). The enabled set is asked of the sandbox's own shipped registry CLI. Before this, a core-only sandbox failed G1's two gongmun checks — a red finding about a configuration the contract explicitly supports.
  • A checker can declare that it needs the blank baseline. provides.checkers[].wants: [baseline] (closed vocabulary; schema, README, validator and an enabled_checkers() accessor) says out loud what gongmun's preservation rules only implied. The clean-room harness is the wired consumer: a task declares baseline: <input basename> and check appends --baseline <path> for a declaring checker. A baseline already in the argv is left alone (a document is never its own baseline); a declaring checker in a task with no baseline is skipped with a reason rather than run for a silent pass.

Test harness — an inventory pin is a defect class, not a nit (T33)

#71. Three v0.17 modules were blocked by one bug shape: a core test asserting == N on something the repo GROWS, so shipping a module, an eval task or a gated check turns a working product red. #68 was the per-module testpaths/py_compile lists; #26 was len(tasks) == 7, which meant shipping an eval task required editing a core test; #27 was tests/test_cleanroom_evals.py pinning eval task A1's skipped-check count at 1 in two places — every requires_module check skips by design in a core-only sandbox, so the grant module could not put its A1 checks on A1 and wired them onto A2/A3 instead. A module reshaping its payload to satisfy an integer in core is contract rule 4 inverted. Fixed by deriving: declared_skips(task, enabled_modules) mirrors the two declared gates and both sites take the count from len(), and A1 gained the gated check the grant module wanted there (verified to PASS with the grant bundle installed and SKIP with a reason without it, taking A1's core-only skip count to 2 — which the old == 1 could not survive). A class sweep derived three more inventory-coupled pins and commented the genuinely fixed-arity ones with why they are not inventory. The durable guard is tests/test_no_inventory_pins.py, which walks the syntax tree of every core test file and fails on == <int> against a check tally, a len()/count() over an inventory identifier or a discovery call, or a subscript on an inventory key. >= floors are never flagged and modules/*/tests is out of scope; fixed arity is admitted only as a REASONED allowlist row, with meta-tests refusing a thin reason, a stale row, or a row the guard would not have flagged. Also shipped in the eval harness: the task inventory became a property rather than a count (#26 — every shipped definition validates against the schema, every corpus-backed family has at least one task with the family list DERIVED from the corpus manifest, plus a non-vacuity floor), with a negative control that plants a corpus family with no task.

Skill surface — the product says out loud what it already knew

  • #76 — skill/references/fill-recipe.md, one canonical fill. Three harnesses filling the same PPS 협업승인신청서 picked three different strategies for the same 협업기간 cell, one built three separate maps, and operations.md never gave the com_backend.py convert --file … --to … syntax at all. The product knew the answer; nothing said it, so every reader re-derived it differently. The recipe states the branch-per-cell decision rule first (empty run → fill-cells; skeleton to keep → --at-cell-append; template to replace wholly → --at-cell; multi-run → the #RUN the refusal hands you; spacer → do not write there), works 협업기간 as the example because it is the field that fractured, names the four artifacts and the exact flag that eats each, gives the literal sequence including the tasklist check before COM, and closes with what an accepted verdict looks like versus each partial. It was worked end to end on the real form and replayed verbatim to acceptance: true. Linked one level deep from SKILL.md's routing table; the superseded "which one fills a form" table in operations.md §3 is now a pointer, not a second account. Also: ragged shipped tables fail the build — in GFM a raw | splits a cell even inside a code span, so com_backend.py inspect|edit gave SKILL.md's routing table one four-cell row among three-cell rows, in the first table a router reads. Escaped, and package_module now asserts every table in every shipped surface document is rectangular. --charpr-per-cell is documented in the fill section of operations.md and in the SKILL.md routing row, not only inside the T30/T32 prose.
  • #77 — an unsupported habit flag explains itself. A clean-room agent tried form_inspect --pretty from habit, and the habit has an in-repo source: probe.py is the ONLY script whose default output is compact single-line, because SKILL.md injects it inline. Probe's flag is a justified exception, not an inconsistency to remove; what was missing was an error message saying so. form_inspect now answers --pretty/--indent/--json with what to use instead and states its output contract in the help epilog, and probe's --pretty help explains why it is the exception.

Packaging — bundle builds are reproducible

  • Same tree in, same bytes out. Found while preparing the tag: building core twice from an unchanged tree gave two different zip sha256 values, because ZipFile.write stamps each member with the staging file's mtime and st_mode — so a published hash table was invalidated by any rebuild, no-op included, and a hash a reader cannot re-derive is not evidence. scripts/package_module.py now pins everything a member records besides its name and content: timestamps to a fixed 1980-01-01 (a constant on purpose — a commit-derived stamp is unreproducible for a reader who has the tree but not the history), permissions to 0o644, create_system to Unix, deflate level 9, and member order sorted by path. MANIFEST.json was audited for the same failure and its files list is sorted by path. --verify is unaffected: it hashes member content, not the container. TestBundlesAreReproducible builds every bundle twice per run and asserts byte-identity, including after an mtime-only change to the payload.

Trouble table

Rows T26–T46 added, each with the run class that surfaced it: T26–T30 the first clean-room cross-model round, T31–T32 the second, T33 the module-wiring class, T34–T35 the third, T36 the independent Codex harness across three model tiers, and T37–T46 the work-type family runs and fresh-root G1 acceptance chain.

unified core and modules

The whole v0.16 program (docs/archive/plans/v0.16-unified-core-and-modules.md): rigorloom becomes a general HWP/HWPX document engine — one core, with the report, style, and personalization capability split behind a distribution- module contract and shipped as separately installable bundles (rigorloom-core, rigorloom-report, rigorloom-style) built by scripts/package_module.py at this same version. Everything below landed on main between v0.15.0-alpha and this tag.

v0.16.0 세부 변경 내역7개 분류 · 31건

Wave 1 — converge (field guards, audit verdicts, packs)

  • #29 (v0.15 follow-up: feature-classification fixes + v0.16 master plan) — the first real corpus run surfaced five section-level rendering element names (pageBorderFill, visibility, startNum, grid, lineNumberShape) that a blanket-benign classification would have made fail-open in feature_extract.py; they now emit attribute- and whole-subtree-fingerprinted feature classes (sec-config:<tag>:<fp>), so a document certifies only under the exact section configuration the corpus measured. Also added the v0.16 master plan and its companions.
  • Lane F field guards (branch lane-f-guards) — T16 (header-height double-count), T18 (guide-text deletion must protect table/secPr/ctrl paragraphs), T21 (per-machine lock; refuse a name-scoped Hwp.exe kill while another owner's instance is live), and T22 (charPr id guards must match <hh:charPr\b[^>]*\bid="34", not a substring) landed as testable primitives, each with a failing-before/passing-after test.
  • #30 (docs: audit performance metrics + Phase 0 judgment verdicts) — variant-audit metrics section as the Lane V exit criterion; recorded the extension-packs ABSORB verdict (v0.13.1 conditions).
  • #31 (research: variant-audit decision matrix (Phase 0.C complete)) — docs/research/variant-audit.md: five differential benches over existing artifacts (zero pipeline reruns). Headline findings: all five audited variants' recorded state diverged from reality; score_ai_tells showed zero discrimination on a 25%-changed section. Verdicts: hybrid gate architecture with form-scan auto-derived residue lists, two run modes plus a mandatory provenance floor, H2 advisory-only, and five shared-miss mechanisms.
  • #32 (packs: land v013 extension packs with v0.13.1 policy conditions) — landed the data-only extension-pack system (scripts/extension_pack.py, docs/extensions.md) with constants_allowlist excluded from DATA_EXTENSION_PACK_TYPES (a confirmed relaxation vector for check_numbers' deterministic numeric checker), and fixed the merge_pack/_stable_union regression where a global gloss_allowlist pack erased the 14 W5b neutral defaults.
  • Lane V engine ops (branch lane-v-engine-ops) — audited, idempotent preedit/postedit XML operations adopted per the audit's form-preprocessing matrix row.
  • #33 (gates: residue auto-derivation, H5 density, canonical binding, verdict contradiction) — four shared-miss checkers: check_residue.py (the form scan's anchor/guide-text inventory auto-derives the artifact's forbidden list; a missing pinned target is HARD), check_density.py (H5 bold-subhead density per 10k bytes, WARN >= 3.0 / HARD >= 4.5), check_canonical.py (declared canonical/FINAL pointer must resolve), and verdict_schema.py (rejects converged: true + status: escalate_human, wired into submission_preflight).
  • #34 (gates: malformed artifact XML is HARD in check_residue) — check_residue.py XML-parses every hwpx section/header member before scanning; a parse failure is a HARD artifact_malformed finding. Found live: a corrupt section0.xml passed the prior regex scan while Hancom rendered the document blank (T23).
  • Engine XML hardening from live form work (direct merges): fixed self-closed <hp:t/> corruption in tier-A replacement and added a post-op well-formedness invariant to every preedit chain; stale linesegarray is stripped from exactly the paragraphs whose text was modified (Hancom otherwise draws the old cached layout over the new text); paragraph-scoped charPr repoint for split-run recolor, with the forensic finding that Hancom resolves charPrIDRef by array position — clones are now appended at the end of charProperties (never mid-array) and an id_position_mismatch diagnostic is reported.
  • Verdict-writer consistency fix (shared-miss #5, direct merge): a proof- phase escalation now demotes converged to false (preserving phase1_converged), so the writer can no longer emit the contradictory pair verdict_schema.py rejects.
  • #35 (docs: reopen/amend transition design) — append-only amendments, receipt-signed reopen/amend-close, and the unrecorded_edit HARD backstop on canonical-hash mismatch with no open amendment.
  • #36 (gates: declared-values runner with canonical binding and holdout enforcement) — the hybrid gate architecture's composition point: a declarative per-workspace gate runner (audit winner semantics) where a missing pinned target is HARD target_missing, each gate records mtime+sha256 staleness, workspace_slug holdout refusal is enforced, and the residue/density/canonical kinds delegate to registry mechanisms.
  • #37 (docs: version reality sync) — README/SUMMARY/CHANGELOG aligned with the v0.15.0-alpha tag and post-tag merges (Lane F item F3).
  • #38 (humanize: tone-rulepack mechanism, H2 advisory-only, measurement roles doc) — deterministic tone-rulepack regression check (check_tone_rules.py: hedge-on-measured-value and conclusion-pivot-density rule kinds, WARN-only by default), tone_rules as a first-class pack type with a neutral default (the corpus-derived rulepack stays a private profile pack), and a regression test pinning that no code path gates on detector scores (H2 advisory-only).
  • #39 (docs: CHANGELOG backfill v0.11.4–v0.15.0-alpha) — six missing release entries reconstructed and verified against tags.

Wave 2 — absorb hwp-master

  • #40 (W2: absorb hwp-master as engine/ (history-preserving) + seam collapse) with #43 (restore subtree ancestry) — the hwp-master repo (COM backend, COM-free XML assembly engine, form inspection, fill, tidy, layout QA, eqn converter, render calibration; its own v0.1–v0.3 history and 246 tests) is merged into this repo at engine/, with the full 29-commit engine history restored as ancestry after a squash flattened it. The seam is gone: the HWP_MASTER_SCRIPTS delegate indirection collapsed into direct paths (kept only as an optional override), the pointer SKILL file was deleted, and hwp-master's version line ends — everything ships on rigorloom's single version from v0.16.
  • #41 (ci: guard optional deps (PIL/fitz) in engine tests) — engine runtime deps (pillow) joined CI installs and an engine extra was added to pyproject.toml.
  • T25 (engine: open_hwp fails loudly on missing input) — a missing input path is an immediate error, not a silent empty document.
  • #42 (pipeline: reopen/amend transitions) — the #35 design implemented: append-only amendment records, receipt-signed reopen/amend-close, amending stage status with done_at preserved, canonical invalidation marker, and guards (double-open, unknown id, non-done reopen).

Wave 3 — the distribution-module contract

  • #44 (W3-S1: distribution-module contract, registry, core-only CI guard) — modules/<name>/module.yaml + module.schema.json + pipeline/scripts/module_registry.py: a module declares checkers, CLI commands, pack types, run modes, gate kinds, studio panels, preflight contributions, and a skill fragment; core never imports a module; the CI matrix gained the core-only / all-modules points before anything moved, and a throwaway module proves zero-core-change extension. Project version moved to 0.16.0.dev0 (the registry's version gate reads pyproject.toml).
  • #45 (W3-S2a) + #48 (W3-S2b) — everything report-shaped moved into modules/report/: the seven cleanly-severable report checkers + source_fetch, then the stage machine as one unit (pipeline_ctl, compose, workflow_lint, stages*.yaml, aliases.yaml, the stage-contract catalog modules.yaml, all 24 playbooks) plus the workspace-bound checkers and the claims/sources chain. submission_preflight split: core keeps the artifact/proof half and gained a generic preflight: composition hook; the report module contributes P0/P4/check_saeteuk through it. Core resolves the stage- machine CLI only through the registry; on a core-only install every report entry point is a loud, named refusal — never a silent pass.
  • #49 (W3-S3: registry-driven studio panels + per-module packaging + gate-kind registration) — studio stays the core base surface and enabled modules extend it declaratively (GET /api/panels; the report module's content-audit action moved into its own panel); gate kinds are registry-declared (provides.gate_kinds, params validated against the delegate's signature at declaration time); and scripts/package_module.py builds standalone bundles — --module <name> for module payloads, --module core for the engine + pipeline + studio + contract, with MANIFEST.json (per-file sha256), INSTALL.md, privacy_scan over the staging dir (any HARD refuses the build), and --verify tamper detection against the manifest.

Wave 4 — style and personalization as modules

  • #50 (W4.2: style module + requires_modules contract key) — the humanization stack (humanization_ctl, prose_fidelity, check_style) consolidated into modules/style/ with the boundary stated in its README: translationese removal, voice consistency, form-rule compliance — not AI-detection evasion; rules come from packs. The contract gained requires_modules (inter-module dependencies enforced at enablement; report declares requires_modules: [style] because content_audit composes check_style through the registry).
  • #51 (personalization: general/report pack split, store portability, schema rename w/ compat) — core personalization_ctl declares only general pack types (prose_rules, figure_style, backends, policy_floors); the report-flavored five (saeteuk, report_structure, gloss_allowlist, constants_allowlist, tone_rules) are report-module payload, with PACK_TYPES / DATA_EXTENSION_PACK_TYPES computed from core built-ins + ModuleRegistry.enabled_pack_types() and the trust-sensitive set (backends, policy_floors, constants_allowlist, tone_rules) never extension-installable, re-enforced at resolve. Store schema renamed report-pipeline/personalization-v1 → rigorloom/personalization-v1 (legacy accepted on read, warned once). New export/import CLI: manifest+sha256 zip of the profile root that never includes the privacy denylist; import verifies byte-for-byte and refuses tamper and non-empty targets. privacy_scan gained the profile-store leak marker classes (profile_store_content / profile_store_path, both HARD), so packaging refuses any bundle staging store content.

Wave 5 — landscape, evals, skill surface

  • #47 (research: HWP usage landscape (W5.1)) — docs/research/hwp-usage-landscape.md: seven form families with capability priorities. Headline: 행안부 mandates HWPX-only attachments on government systems since 2026-05-18, making hwp→hwpx conversion fidelity capability priority #2.
  • #52 (W5.2: blank-form corpus + eval scenarios + pinned privacy allowlist) — tests/corpus/forms/: 12 blank official templates across 5 families, sha256/source/license manifest, 5 recorded skips (school family = corpus gap; corp family = documented no-official-source boundary); docs/research/form-eval-scenarios.md with 10 open→recognize→fill→verify scenarios. privacy_scan gained --binary-allowlist (sha256-pinned, auto-detected at the corpus manifest): unlisted binaries and hash drift stay HARD, allowlisted files are still content-scanned (binary_pii_rrn / binary_pii_phone + the existing nets over extracted hwpx XML or a UTF-16 harvest of binary hwp), and bundles never apply the allowlist — a regression test asserts no corpus member lands in any bundle.
  • #53 (W5.3: skill surface) — skill/SKILL.md: a 98-line-body router (paths-gated frontmatter, task routing table, freedom map, one-level-deep references: operations.md / forms.md / troubleshooting.md); engine/scripts/probe.py — one compact-JSON capability probe merging render_probe + module registry summary + optional backend precheck, never raises; report/style modules declare provides.skill fragments and sync_local.py merges them at install (a core-only buyer never sees report vocabulary); A1/A2 machine-check evals executed against the corpus (all pass, non-vacuous negative control; agent-in-the-loop half is operator-run). Suite hygiene: the test suite no longer writes the repo profile store (session-scoped guard asserts it).

Wave 6 — prove, bound, release

  • #54 (W6.1: XC-1 conversion bench) — all 10 .hwp corpus members converted to .hwpx via the COM backend (Hancom 13.0.0.2986), strictly serial: 10/10 OK, zero hangs/retries; form_inspect recognition table now covers 12/12 corpus members; converted hwpx + rendered PDFs folded into the pinned manifest. Full writeup with honest limitations in docs/research/xc1-conversion-bench.md.
  • #55 (fix-or-bound: XC-1 findings) — every XC-1 open finding fixed with a regression test or documented as a capability bound (bench doc §9): guide-text detection generalized to mechanism-level pattern classes (note-prefix / example-mark / instructional verbs; 11/12 forms now detect, and admrul's 0 is locked as a correct zero by a bound test); COM inspect no longer counts every gso drawing control as a picture (UserDesc-classified, new shapes field); the nrf PDF page drop was root-caused to the document's own stored 2-up print imposition (PrintMethod=4) — convert now stages a print-normalized copy and always reports pages_document vs pages_pdf with a loud WARN on mismatch; check_convert_parity gained a guarded .hwp source leg (structural counts HARD, text advisory).

Migration

  • From a standalone hwp-master install: the engine is bundled at engine/ — point automation at engine/scripts/ (same script names); HWP_MASTER_SCRIPTS still works as an override but is no longer required. The hwp-master repo is absorbed; its tags end at v0.3.0.
  • From pre-module rigorloom (≤ v0.15.0-alpha): report-pipeline scripts moved from pipeline/scripts/ to modules/report/scripts/ (stage machine, compose, report checkers) and the humanization stack to modules/style/scripts/; enable modules with python pipeline/scripts/module_registry.py write-enabled --all (an absent modules/enabled.yaml means core-only, where report entry points refuse loudly by design). Personalization stores using the old report-pipeline/personalization-v1 schema strings are accepted on read and rewritten on the next lock update.

Suite at release: core-only 866 passed / 565 skipped; all-modules 1293 passed / 138 skipped; repo-wide privacy_scan HARD 0. Bundle inventory and verification evidence: docs/release-v0.16.0.md.

이전 릴리스 태그

초기 릴리스의 전체 기록은 각 GitHub 태그에서 확인할 수 있습니다.

태그요약저장소
renderer certification harnesstree/v0.15.0-alpha
#v0.12.4 (v0.12-W5)
gate recalibration from the real-report campaigntree/v0.12.4
#v0.12.3 (v0.12-W4)
transform modules: extraction, form conversion, taste miningtree/v0.12.3
#v0.12.2 (v0.12-W3)
claim ledger + write-through source cachetree/v0.12.2
#v0.12.1 (v0.12-W2)
checker_base refactortree/v0.12.1
#v0.12.0 (v0.12-W1)
composable module contracts + resolvertree/v0.12.0
Linux equation-render parity P0 (experimental) + release consolidationtree/v0.11.4
#v0.11.3 (v0.11-Z5)
anti-fabrication frontiertree/v0.11.3
#v0.11.2 (v0.11-Z4)
figure/form integrity batchtree/v0.11.2
#v0.11.1 (v0.11-Z3)
numbering lint, snapshots, sync stamptree/v0.11.1
#v0.11.0 (v0.11-Z2)
format gate, fabrication checks, delivery integritytree/v0.11.0
typeset parity without Hancom, Studio/Linux integrationtree/v0.10.0
Hancom-free document stack (hwpx tier)tree/v0.9.0
gate integrity convergencetree/v0.7.0