변경 기록
태그가 붙은 정식 릴리스와 아직 릴리스에 들어가지 않은 main 브랜치 작업을 구분해 보여 줍니다. 모든 항목은 저장소의 CHANGELOG.md에서 직접 읽어 옵니다.
릴리스 본문과 세부 항목은 기술 용어와 검증 식별자가 어긋나지 않도록 저장소의 영문 원문 그대로 싣습니다.
main의 미출시 변경 사항
v0.18.0 이후 main 브랜치(69c1381)에 반영한 변경입니다. 정식 릴리스 태그에는 아직 들어가지 않았습니다.
Added
- T184:
rigorloom mcpserves the document tools to an agent over stdio (MCP 2025-06-18):open,read,find,edit,fill,new,preview,check,save,changesandguide, 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--allowline 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.saveover 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 indocs/mcp.md. - T179:
rigorloomhas document verbs for people and agents:open,read,find,edit,fill,new,preview,check,save,changes,undo,convertandguide. Edits go to a draft kept outside your folder, and the file changes only onsave.saveasks before it replaces a file it did not create (--forceanswers yes up front, except for content you already said no to for that file), keeps the replaced copy, andrigorloom undoputs it back; undo reverses only the save it showed you, and leaves the file alone if it changed meanwhile.-o OUTwrites a one-off result without touching the shared draft.--jsonprints 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.fillleaves 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 cleanremoves what has not been used for 30 days and never drops unsaved work unless you add--all.runtime/schemas/changeset.schema.jsonandevents.schema.jsondescribe 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--helpis 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 runsaveagain 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 answercapability_unavailableand 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,filland more) against the file's rev. An edit is refused asstalewhen the file changed, asexpect_mismatchwhen the text is not what the caller saw, and asambiguous_matchwhen a replacement would hit more than one place; the input is never overwritten unless asked. Without the engine,.hwpxfiles 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 markedsuperseded_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.pyfrom mechanical HWPX execution inengine/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 inengine/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 checkcan now add a rule pack for one kind of document with--pack gongmun,minwon,hrorgrant. 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--packnever changes the exit code; the only error is stillko.double-passivein the base set. Without--packthe 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 guardand the fact check inrigorloom checknow read a Korean amount with its magnitude and unit, so금500만원→금500원,2천만원→2백만원and3일→3개월are reported. The same amount written another way still compares equal:500만원and5,000,000원,1억 2천만원and120,000,000원,10㎡and10 m²,1달and1개월. In제1조, 조 is an article, not a trillion.m²andm³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, and7명/7인,36 m²/36 m2/36제곱미터,1.20%/1.2%and+3,000원/3,000원compare equal, while4%→4%p,45평→45제곱미터,4차→4분기and24인치→24명are reported. A unit is never the start of another word:제12차량,18 인원,38 평가and68 분기점hold no unit, and8차분and8 차분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 asswapped numbers, each value shown with the words that name it as that side writes them (in--json, anumberschange with"order": truewhosebeforeandafterare 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만원and5,000,000원, or43under운송비(천원)and43,000원, are kept. A digit right after a full-width Latin letter (v2) is left alone like one afterv. 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 with1차/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조의2against제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년against24개월, a date written another way (2026. 3. 1.and2026년 3월 1일), andv 5.2.1with a space. - T180:
rigorloom guardand the fact check inrigorloom checknow 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 (17and17), thousands commas (1,000and1000) and a space before the unit (20 ℃and20℃) 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.
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 uiopens a review workspace in a browser on your own machine, with the plan, diff and approval in one place.rigorloom guardreports when an edit changes a number, a date, a quotation, a negation or a direction word such as 증가 or 감소.rigorloom style checkflags 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 checkrules 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.imageUnexpectedEndOfFileError) 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 세부 변경 내역
Release
- T171: version 0.18.0. Two documentation fixes from the release review:
docs/pipeline-master-v0.6.mdnow points at the livemodules/report/references/workspace_layout.json, and the "Report workspace files" section ofdocs/architecture.mdis three plain sentences.tests/test_release_docs.pynow reads the release record named by the README's current-release line and checks it against thepyproject.tomlversion, 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 at127.0.0.1and 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 withstartswith("localhost")/startswith("127.0.0.1"), so a name likelocalhost.attacker.examplealso passed it, which made action POSTs reachable onceSTUDIO_ALLOW_ACTIONS=1was 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 thestudiooptional extra inpyproject.toml. Userigorloom 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 bymodules/report/scripts/pipeline_ctl.py:1150(verified end-to-end intests/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 (
guardwording and.pipeline/handoff.json/modules/report/references/workspace_layout.json), streamlined docs/demo-gongmun.md and documentedwarn=1(dumun_seat_unfilledon(경유)), replaced the Sejong address inexamples/gongmun/brief.jsonwith a fictional placeholder (우 00000,가상시 예시구 예시로 0) and regenerated the deterministic fixtures, documented theBlobexport flow and?token=controls in docs/web-ui.md, and refreshed README.md and docs/README.md (direction word,desktop/onmainvs. pre-alphadesktop/src-tauri/,runtime//agenthost//desktop/tree, docs/guard-block-diff.md, andarchive/). - 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_previewreplaces 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.pynow owns one APPROVALS.md codec (parse_gate_approvals,format_gate_decision_line,record_gate_decision_text,write_gate_decision), andrigorloom uiwrites gate decisions through it.- Behaviour change: for a
rejectedline, the recorded reason no longer includes a trailingat=..., and that timestamp is kept instead of being replaced with the current time (TestApprovalsMdCodec::test_parse_gate_approvals_precedence_and_timestamps).pipeline_ctl gateexit 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.pyreplays the inventory commands and their exit codes. The Studio row is retired because #375 removed Studio.
Added
T167:
rigorloom demo gongmun --out DIRfills the blank 기안문 form (gianmun-byeolji-1ho.hwpx) fromexamples/gongmun/brief.jsonwithout Hancom Office or the HWP engine, checks it withcheck_residueandcheck_gongmun, and writesfilled.hwpx,plan.json,verdict.jsonandapproval.jsononly when every check passes (exit 3 otherwise, with nothing published).--deterministicreproduces the committedexamples/gongmun/expected/files byte for byte. See docs/demo-gongmun.md.T166:
rigorloom uiserves the desktop review workspace in a browser from127.0.0.1, with no Node.js needed at runtime (the bundle ships inruntime/scripts/ui_dist/, and CI checks it rebuilds byte for byte fromdesktop/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; earlierAPPROVALS.mdlines for a gate are kept as# supersededcomments. The token model and its limits are in docs/web-ui.md.T164:
rigorloom style check FILElists Korean phrasing worth a second look in.txt,.mdand.hwpxfiles, asfile: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-typeso 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-diffprints 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, andexamples/guard/block-diff.txtis regenerated byte for byte by the tests.T163: an optional adapter for a separately installed HWP engine (
runtime/scripts/rt_kit.py). SetRIGORLOOM_HWP_ENGINEto the directory holding itskit_api.py;rigorloom enginereports whether it is there, andrigorloom capabilitiescarries the same answer underhwpEngine. 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 (seehumanization_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
supportedwith its own evidence, and generation rebinding, ownership-aware rollback across parent-swap races and post-key manifest ordering stayunknown, 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, plusevals/records/README.mddescribing 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, andtasks_with_a_deliverable: 0because 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 arecord: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 - asupportedrow 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 byscripts/support_matrix.pyfrompipeline/references/support-claims.yaml, classifying each capability supported / partially supported / unsupported / unknown with an evidence pointer on every row.docs/capability-matrix.mdanswers a different question (alias to OS ceiling); this one is the per-capability classification. The value is in the refusals: asupportedrow with no resolving pointer is rejected, a pointer that does not resolve is rejected by name, anything notsupportedmust 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 keyrender_probeactually 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/v1receipt lane for one explicitly supplied, SHA-256-pinnedrhwp_pdfbinary. The runner owns the pre-createdoutput/proof/renderer-runtime-v2/<run-id>leaf, stages the source and binary, invokes only the fixed--versionandexport-pdfargv, 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 isunknown, comparison isunknown, render isnot_run, proof isnone, submission is false, and promotion isnot_run. This lane never feedsdoc_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/v2exact-document envelope. Operators issue it withissue PRIVATE_MANIFEST --out CERT, then useverify CERTorcheck DOCUMENT CERT; the private manifest is never serialized into the certificate. Canonical measurements contain only hashes, byte counts, opaque ids, and metric hashes, bound bycertificate_sha256andcertificate_hmac_sha256; no local paths, command streams, source text, private key material, PDF/corpus bytes, or generalized feature envelope is shipped. Its ceiling isruntime_binding: not_established,proof_grade: none,submission_grade: false, andpromotion: not_run. Legacy v1 certificate tooling remains quarantined; bothADVISORY_PROOF_RELEASE_ENABLEDandCERTIFIED_PROOF_RELEASE_ENABLEDstay false, with no runtime integration, auto-route, or PDF promotion.T152: added the diagnostic-only
rigorloom/renderer-certificate-composite/v1receipt.check WORKSPACEjoins the T150 runtime receipt with the T151 exact-document certificate and publishes only underoutput/proof/renderer-certificate-composite/<run-id>/receipt.json;verify WORKSPACEre-runs both underlying verifiers and the exact source check. The join isbinding_scope: captured_snapshot_onlywith evidence ceilingruntime_input_exact_document_certificate_binding_only; it keepsdependency_closure: unknown,comparison: unknown,render: not_run, proofnone, submissionfalse, and promotionnot_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/v1diagnostic. The CLI inspects one HWPX snapshot and emits only the selected definition/reference graph's closed counts and canonicalgraph_sha256; ZIP order and compression do not alter the digest.status: analyzedis 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 remainscomparison: {state: unknown},render: {state: not_run},proof_grade: none,submission_grade: false, andpromotion: 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 usesposix_process_group_v1.execution.descendant_containmentandexecution.evidence_authenticationremainnot_established: ordinary descendants that stay in the Job/process group are cleaned, but a POSIXsetsid()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 remainsnone, submissionfalse, and promotionnot_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; certificateverify/checkreportscertificate_invalid_json, while an outer CLI operation that cannot parse its input remainsoperation_failed. This adds no authentication, automatic route, or promotion; the legacy v1 workflow remains quarantined and diagnostic-only withproof_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-Infinityrecursively in generic document-evidence and T150 receipt input, withreceipt_nonfinite_value; receipt writers useallow_nan=Falseand render-certificate thresholds must be finite. Legacy v1 external certificate JSON still reportscertificate_invalid_json, while an outer CLI parse failure remainsoperation_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_certificatereturns onlyok,reason_code,reason, andreason_codes;check_documentand thecheckCLI add onlyeligible. Public summaries omit raw errors, local paths, argv, feature maps, certificate payloads, and renderer streams. The CLI hasmeasure,certify, andcheckonly; there is noverifysubcommand (the Python verification API remains available to quarantined consumers). Successfulmeasure/certifyfiles remain private operator artifacts and may retain pathful v1 fields; they are never public receipts.render_probepublishes onlyrender_certificate_configuredand a closedrender_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 --outnow 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 frommainremains the pathlessoperation_failedresult. Genericwrite_json,check, anddoc_backendreceipt 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_certificaterevalidates 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 publicverify_certificateremains exactly four fields (ok,reason_code,reason,reason_codes) andcheckadds onlyeligible. Genericwrite_json/doc_backendbehavior 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_documentinput 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 closedcertificate_changed,manifest_changed,renderer_binary_changed, ordocument_changedreasons. Historical measurement document/reference/candidate paths are not reread and are not public dependencies. Publicverify_certificateremains exactly four fields andcheck_documentadds onlyeligible; 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_unboundrelease gate; legacy certificate measure/certify/check and the Python verify API are diagnostic-only and derive proof gradenone.T92: tightened the shared
rigorloom/hwpeqn/v1equation lane with a closed LaTeX/HwpEqn XOR envelope, static case-folded origin-refusal vocabulary, bounded lexical/argument/control checks, exact matrix row separators, shared deterministicbase_ptquantization, 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/v1receipt-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 collapsingsin xandsinx, 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/v1receipt-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 stayunknown, render isnot_run, proof isnone, and submission is false. The tool publishes only a one-link receipt below the pre-createdhwp-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/v1receipt-only source inventory. It captures bounded HWP bytes once, reuses the T85 FileHeader/CFB preflight, scans only directBodyText/Section0..Nstreams, 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-createdhwp-source-coverage/<run-id>leaf. The owner-token commit remains authoritative if only post-commit scratch cleanup fails, andnew_reportreserves 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
rhwpcandidate 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 onlyrigorloom/hwp-semantic-oracle/v1agreement receipts. Comparison remains diagnostic-only (source_fidelity: not_established), render isnot_run, proof isnone, submission is false, andnew_reporthas 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
hwp2hwpxfat-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 onlyrigorloom/hwp-java-diagnostic-candidate/v1belowwork/stage-0/scratch/hwp-java-diagnostic. Comparison remainsunknown, rendernot_run, proofnone, 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 bynew_report.T86: added the separate, strictly quarantined
rhwpdiagnostic-candidate runner. It accepts only an explicit binary plus mandatory SHA-256 pin, runsrhwp export-hwpx INPUT OUTPUT --verify --verify-pagesfrom immutable snapshots with bounded timeout/output, validates the candidate through T85, and publishes only an exclusiverigorloom/hwp-diagnostic-candidate/v1receipt and<run-id>/candidate.hwpxbelowwork/stage-0/scratch/hwp-diagnostic. Comparison remainsunknown/independent_oracle_not_run, render remainsnot_run, andproof_graderemainsnone; no Stage-0form_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 inspectroute validates closed CFB v3 FAT, mini-FAT, directory and stream allocation; direct-root DocInfo and BodyText/Section structure; and its unique 256-byteFileHeader, exactHWP Document Filesignature, 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. Theverifyroute closes receipt keys, types and terminal state and rebinds the exact HWPX bytes/counts;new_report --ingress-receiptverifies 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 separaterigorloom/hwp-ingress/v1receipt is conversion-only and always hasproof_grade: none; it is never native-render evidence. Missing Hancom, protected input, unavailable parity, or any mismatch exits 3. No LibreOffice orrhwpresult may become the canonical form.T79: added the read-only
story_graph.pyHWPX inventory. It follows the OPFcontent.hpfmanifest/spine plus actual section roots, inventories the boundedheader/footer/footNote/endNoteparagraph-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 flags0or public-corpus-proven DEFLATE fast flag0x0004); 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.pyparagraph-only structural editor. It accepts one private exact source SHA and one canonicalsection/container/story/paragraphselector, requires exactly one direct text-bearing run with one directhp: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 remainsnot_run.T81: corrected PKWARE DEFLATE flag
0x0004handling to fast level 1, skipped processing instructions through exact?>, and refused DTD/entity declarations in the bounded editor lexer.T82: added a closed
visual_verifyoperation_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-pagerequired_text/full-stringforbidden_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 underdeterministic.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 remainsunknown/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, andendNotedonor 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 remainedunknown/unsupported_graphics_state. The note controls were XML-assembled, not Hancom-authored anchors, so native note insertion, numbering, and continuation remain explicitly unproved.form_inspectnow emits additive, backward-compatibleanchor_records(legacypara_idxplus the preedit-alignedat_parawhen 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-textasserts 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, whilevisual_verify --expectationscan 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, orsplit_across_runswhen the string is in the document but not as one literal. The verdict labels its ownevidence_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 fiverun_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 namedHANG_TIMEOUT = 120.0and 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.mdclosed 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.pydoes 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 openingskill/SKILL.mdis 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 thatsync_local.pyreally is the composer rather than trusting the sentence.T132:
operations.mdstated the form-fill keep-list derivation twice and differently. The section documenting the standalonecheck_residuecall said to derive it fromprofile anchors minus the keys your fill consumed; thevisual_verifysection 283 lines later gave(anchors ∪ placeholders)minus the consumed entries. Anchors alone is not enough and the gap is reachable:_profile_inventoryputsplaceholder-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 workedfill.jsonaddress 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 forat_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-runsaddressing 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.pyreads 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-patternand--keephelp, which described themselves as anchor-only whilederive_forbiddenapplies both to every inventory row — anchor, guide text and placeholder alike.T129:
_parse_constraintswas handedguide_textonly, 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 underanchorsand never underguide_text; the regexes were already correct and yield 15 and 12 when run against it. The profile publishedconstraintsall-null anyway, which downstream is the difference between a checked length budget andlength_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 statedbase_pt: 12andmin_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-textrun record. T127 reached table cells only:_fill_preflighthas one call site, inside the table walk, so a form whose seats are top-level paragraphs profiles asfill_target_count: 0and received no pre-flight at all — and the writers for those seats check nothing, becauseset-runsdeliberately 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_defsitself, 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_scriptdoes 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_anomalynow carries the same three-state contract, decided by the predicate that classifiesguide_text reason: "colored"so the two halves ofform_inspectcannot 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_suggestedis 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_charprapplies 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_charpris 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 reportedscript_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.hwphad 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_reasonreads the first eight bytes and names the problem; the container signatures are measured against this repo's corpus (10/10.hwpare OLE compound files, 12/12.hwpxare 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 onesource_not_a_documenttoken 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 answeredsource_not_a_documenton a Windows bench with Hancom andinspect_failedon 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.parseraised on aprintstatement, 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 frompytestconfig.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 insideast.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.pyholds a floor derived from it. Mutation testing then found the real hole:inspect --privacy-saferefuses 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_taskrefuses a key the check's kind never reads, so an assertion cannot be silently dead. Astrings:list under afilecheck 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_fileandassert_jsonstay 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 omittedexpect_exitfrom theresiduekind 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_hrandcheck_minwonpublish the same rule-outcome map, H1 and P2 assert outcomes, and T118'sKNOWN_NAME_SEARCH_DEBTis now empty — no shipped task searches for a rule name in a verdict any more.rule_stateslives inpipeline/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 measuredcleanon their pristine forms first. The inventory guard deliberately asserts onlyemitted <= declared:check_grantemits 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.mddocumented "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 permanentskippedrow with a reason. A3's check asserted thirteen names absent and could never pass — not on a perfect fill, and not on the pristine formcheck_grantgradespass, sincebudget_total_mismatchis a permanent skip (no_addends).check_grantnow publishesrules, mapping every rule tohard/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 aRULEStuple — two more in H1 and P2. Four tasks, six checks, three modules. The remaining four needcheck_hrandcheck_minwonto publish the same map, so they are pinned inKNOWN_NAME_SEARCH_DEBTand 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_grantreport a table as deleted.grid_tablesderives a table's identity from the first row carrying at leastheader_min_labelsnon-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 movedheader_row1 → 0, left the two signatures disjoint, and producedtable_structure_lost— which made A3'sgrant_structurecheck unsatisfiable by any fill that does what the task asks.match_gridnow 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, socheck_residueexited 2 withargument --keep: expected one argumentandvisual_verify's own residue leg HARDed withcheck_residue_error. The shell is irrelevant — it reproduces through the internalsubprocesslist, which is the path the product takes. Nothing an operator does causes it: the keep list is derived from the form's own inventory, andkstartup-jiwon-sincheongseoprints--twice as a schedule placeholder in the untouched original. Every emitter now passes one token,--keep=VALUE, andcheck_residue --helpstates 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 movefill-cellsmade for empty cells. It writes one run's text at(at_para, run)and never rewrites the run's opener, so itscharPrIDRefsurvives and a value written into a ruled blank sits on the rule (T112). The address is exactly whatform_inspect --full-textalready reports, withruns[].rulednaming which run. This closes the limit T112 had to state: a ruled blank of nothing but spaces givesreplaceno 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 tofill-cells. Only the edited paragraph's ownlinesegarrayis 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, socheck_residueheld 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_verifyforwards the declaration and records it asdeterministic.residue_keep.module_protected_keep, apart from the operator'sexplicit_keep, because "I hand-wrote this keep" and "the module says this is statutory" are different claims. Declaring one string in bothprotected_textandforbidden_textis refused rather than resolved, andstory_editscope 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 actualremoval_targets, which after T110 is exactly the three notices. Caller constraint: module expectations are payload the caller passes, so mergemodules/<family>/references/visual_expectations/<family>.jsoninto your--expectationsfile; an emptymodule_protected_keepon 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_presentcheck listing the literal strings its prompt supplies, andtests/test_prompt_values_are_accounted.pyparses the prompt and fails on any value that is neither asserted nor listed in the newunasserted_prompt_valuesblock 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 reachverdict: pass. The capability was not missing —text_presentexisted 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-textrun records now carryruled: truewhen the run's charPr has a non-NONEunderline(present only when true, so the record shape stays as pinned), andfill-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 asalignment_driftwarnand named the mechanism exactly, but a warn does not block, so the run finishedacceptance: truewith no blockers. The fix is to stop creating the finding. While correcting that,alignment_drift's per-class entry still readDeterministic: NONEalthough T102 had corrected the class table toPARTIAL— 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 withunderlineat offset 462, past the 400-char window the neighbouringfontReflookup 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, becausepreedit replacerefuses 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 everyanswer_slotentry in a profile carriesat_para— resolved by the same_resolve_at_parathe anchors use, and omitted rather than guessed when the binding is unprovable. Previously the legacypara_idx→ editableat_parabridge existed only onanchor_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:Ntakesat_paraand echoes the number under both key names, so retyping apara_idxthere 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, soconsent_unmarkedskips withno_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_inspectno 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 fromremoval_targetson content, with the reason exposed asguide_text[].answer_slot—interrogative_enumeration(a question mark plus a parenthesized pair of short alternatives,동의하십니까? (예, 아니오)) ormultiple_mark_slots(two or more empty[ ]/□ slots, the 주민등록 등초본 선택 필드). Previously the two legally identical PPS consent questions received opposite verdicts becauseparaPrIDRef18 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_residuetreatsremoval_targetsas 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_targets79 → 76,guide_textunchanged 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-
nonelegacy 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
--assemblemode 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_evidencehelper alongside the pipeline scripts, with an installed--helpimport 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_implpackage required bydoc_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_missingreasons. 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 remainunknown(inspectable Type3 is covered by T72). Stage 6 reruns the checker and requiresconverged: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 definitivefailed/missing_hangul_glyphscase. 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 terminalnoneuntil the independent visual contract is released, including for forged receipts.T66: public renderer decisions no longer expose an internal
proof_gradecandidate. The boundedcandidate_proof_gradefield is informational; the top-level terminal grade remains authoritative.T67: native Hancom provenance remains
hancomwhen the bounded glyph checker isunknown/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_implalongside the dispatcher scripts. A clean extracted bundle can run bothdoc_backend.py --helpandsubmission_preflight.py --helpunder CP949 without an import failure; corpus and private payload exclusions remain enforced.T69: generated core
INSTALL.mdmanifests now sync the siblingpipeline/adapters_implpackage 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-
nonereceipt contract is not weakened.T71:
missing_glyphsis 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;
ActualTextalone cannot pass. Identity collapse and missing geometry fail closed, while Do/XObject, unsupported graphics state, malformed, oversized, duplicate, or otherwise uninspectable mappings remainunknown. 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
Tfresources 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
cmor polygon clips now require bounded PyMuPDFPage.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 stayunknown; this is a glyph-visibility guard, not full layout certification.T78: conflicting Hangul claims in a rawdict span's
charsandtext/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 isunknown/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:Nuses preedit's global depth-firstat_paraorder and own-run text, while retaining the table-address syntax; its optionalpara_idxfield is only an alias for that address, not the legacy profile index.T51: anchor records preserve the legacy profile
para_idxfor T47 residue identity and add a start/identity-bound preeditat_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 세부 변경 내역
Added
preedit fill-cellswrites multiple paragraphs into one cell (T39). A fill value is now a list of paragraphs: a--mapJSON 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 stalelinesegarray. The T30 pre-flight now covers every paragraph a call will write.--parapr-per-cell ROW,COL=IDrepoints theparaPrIDRefof 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 byguards.assert_no_dangling_parapr, the T22 assertion's sister.fill-cellscell reports gainparagraphs,paragraphs_reused,paragraphs_createdandparapr.
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 anyscript_anomalyread as a defect and pastingsuggested_flagsunread would silently reformat the 본문.fill-recipe.md§1.2, the gongmun fragment andgongmun_flow.mdcarry 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 reachverdict: passby any shipped path.com_backend.py convertalready neutralises the stored n-up print imposition beforeSaveAs(PDF), but only reported it on stdout — and the canonical recipe converts in one process and verifies in another, sovisual_verifysaw no evidence, HARDedimposition_mismatch, and could not be waived (that class is deliberately outsideSAFETY_CHECKS). A gate cannot tell "did not happen" from "was not told".convertnow writes arigorloom/conversion-record/v1sidecar at<--to>.conversion.jsonby default (--record PATH,--no-record), carrying what the conversion did plus the sha256 of both the source and the output PDF;visual_verifyauto-discovers it beside--pdf(or takes--conversion-record PATH) and rebuilds the sameconversiondict 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 andPrintMethod != 0the 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: truewas two unwaivablefill_charpr_script_mismatchHARDs on the 수신/제목 seats of a demonstrably correct 기안문 별지 fill. Both saiddiffering: ["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-appendfill 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 oncellAddrbecause 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 → WARNfill_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.hwpxbaseline, or a.pdf/image-directory one → HARD and the finding says the inheritance question was not checked.fill_charpr_script_mismatchstays inSAFETY_CHECKSand--accept-withoutwas not widened. - T41 — an ambiguous text match refuses instead of choosing. The HR module's documented
preedit replace --mappath 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 asreplace_key_ambiguous, naming eachat_paraplus 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 untilother_occurrences: form_text|seatsstates which semantics apply. Scoped maps work from either--fill-mapor 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 exactROW,COLkeys, 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 isratio; 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 remainunfilledand 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_verifynow reusespreedit.split_fill_lines: render presence compares the joined paragraphs, charPr verification checks every non-empty paragraph, and exactROW,COLkeys 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 asguide_text_visible. The task could therefore be machine-green or visually acceptable, never both. G1 now passes the checker's existing--mode draft, assertsdocument.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
$LASTEXITCODEis the checker's documented 2 or 3. The installed recipe now captures$LASTEXITCODEimmediately, printsDIRECT_EXIT, and propagates it withexit $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.pygains the seat layer:iter_seat_runs,iter_seat_empty_runs,seat_addresses,seat_label_runs.iter_runsnow delegates toiter_seat_runsand 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.mdis 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.pyis the loop driver: it renders pages (fitz 130 dpi; hwpx goes through ONE serialcom_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), storedPrintMethodpluspages_document/pages_pdfparity (W6.2), declared page budget / base_pt / line spacing / margins / fill map / forbidden text,layout_qamapped onto rubric classes,check_residueandcheck_densitydelegates, and a--baselinepixel 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 verdictvision_pending;--deterministic-onlycan exit 0 but setsacceptance: false;--max-fix-attempts N+--attempt Madds a HARDloop_exhaustedso a caller escalates instead of grinding. The ship gate is rubric calibration: synthetic reproductions of all four historical incidents with false-positive guards, andINCIDENT_MATRIXpins the deterministic-vs-vision attribution so the rubric document andRUBRIC_CLASSEScannot 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 readingRUBRIC_CLASSESout of source. The rubric now has ONE home inside the shipped surface, and the packaging guard is generalized rather than another filename:package_moduleextracts 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-profilecould 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-patternand--fill-map(which derives the standard form-fill keep list), auditable underdeterministic.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, socharpr_checkandstyle_diffboth passed it while Hancom rendered it at ~6.35pt raised.visual_verifynow 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-mapalone. 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, throughcheck_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 inresidue_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, plusfill_attributionon 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: truewhile safety checks sat inskipped[]: the luna tier supplied a CLI--fill-mapand still gotempty_cell_expected_fill,fill_charpr_script_mismatchAND page parity intodeterministic.skipped[], then exit 0 withacceptance: true, because acceptance was computed as "no HARD finding" and never read the skip list.visual_verify.SAFETY_CHECKSnow 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 verdictsafety_incompletewith a HARDacceptance_safety_skippednaming which and why, exit 3.--accept-without CHECK(repeatable, closed vocabulary) is the only way past it, recorded asacceptance_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-mapandexpectations.fill_mapwere 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 SEEDSexpectations.fill_map(fill_map_sourcerecords which surface it arrived on); two DIFFERENT maps are a usage error rather than a silent precedence rule. Third,pages_documentis 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 insidehp:tc/hp:subList), recordspages_document_source, and skips only when all three fail. Fourth, the exit-code contract, all six rows: sol and terra both saw exit 1 forvision_pendingwhere the contract says 3. 1 was not a code at all but an unhandled path —emit_verdictsat outside every guard inmain, so an unwritable--outescaped as a traceback after a perfectly good verdict.--outis validated before the run and the emission is wrapped, so no path exits 1;test_exit_code_matrixpins one row per terminal state (pass0,deterministic_pass0,vision_pending3,fail3,safety_incomplete3,usage_error2) and the docs table is asserted against the code. - #76 —
empty_cell_expected_fillstops 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_qanow emits one finding per empty header cell carrying its column, its header row and alabel, plusspacer_patternfor the two by-design shapes;visual_verifysuppresses those and any seat named indeclared_blank(in expectations or in the wrapper-shaped fill map;intentionally_blankis an accepted alias folded into one list), recording every suppression underdeterministic.layout_qa.empty_cell_suppressedand the declaration underdeterministic.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.pyinstalls 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--verifyrun by the packaged verifier, capability probe cross-checked against the registry,--helpsmoke 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 andsys.pathof a sandbox subprocess, environment scrub, and symlink escape. Any finding is exit 3, andverify-containmentre-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 agaprecorded at HARD severity, and--allow-gapacknowledges it without hiding it.evals/tasks/*.yamlships task definitions derived fromdocs/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.pyjoin 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.zipcarried the document engine and noskill/SKILL.md, noskill/references/, noscripts/sync_local.pyinstaller — a buyer had no way to install the router skill an agent loads, and theskill: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_COMPONENTSnow 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" indocs/release-v0.16.0.md. - #63, #72 — cross-model measurement and a shipped routing table.
skill/references/model-routing.mdships 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--helpcrash that Sonnet reported only as friction).assembleandprose/humanizeare 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), thegongmun_orgpack type its issuing-organization seats are filled from, and a skill fragment for the 공문 task flow; norequires_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 whosetypeis notNONE(the corpus 발신명의 box declares#FF0000on 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 underskippedwith 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 isguide_block_lostand 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 접수번호/접수일/처리기간#B2B2B2and 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-mapis HARD on its own evidence. Nopack_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); andclause_renumberedreads its inventory from the baseline, never1..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. Nopack_types, and again that is a finding: a repository store of one party's 사업체명 · 대표자 · 사업자등록번호 would be a standing supply of exactly the half-filled contractparty_half_filledexists 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 declaringwants: [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_mismatchis 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_unverifiedis a declared dependency, not a check: it reportsnot_declared/needs_render/needs_section_scopingand namesvisual_verifyas 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 replacedouble-applied a value containing its own key — tier B (raw substring) ran over the span tier A (whole-run) had just rewritten. Measured withoperations.md's OWN documented example:{" http://": " http://example.kr"}produced" http://example.krexample.kr"withhits: 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: newpreedit 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-keyedreplacecould never reach it even though the skill routed form-filling there.fill-cellsaddresses cells by thecellAddrthatform_inspect'stable_mapreports, 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 Nandtable_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_celladdressed cells by keypress count —TableRightCellwraps across rows andTableLowerCelljumps 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 wrappingTableRightCellwalk that verifiesget_cell_addr()after every move and aborts without writing on any mismatch; the legacy keypress mode survives only behind an explicitraw_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 undersuperseded_pre_pr60, the bench doc carries an explicit correction block, and thedonguiseofloor in the shippedforms.mdmoved 3/16 → 4/17. - #66 — T30 becomes preventable (charPr pre-flight), T32, and cp949-safe
--helpeverywhere. T30 was detectable but not avoidable:fill-cells"preserves the run's charPr" is documented as the safe behavior, and finding the right--charprid meant readingheader.xmlby hand — exactly the contact the shipped "structure only, never dump body" contract discourages. Nowform_inspectreportsbody_baseline_charpronce and, on everyfill_targetcell, the charPr the fill would inherit, ascript_anomalyflag andcharpr_suggested;fill-cellsrefuses 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 toengine/scripts/charpr_script.pyand is imported by BOTH the pre-flight andvisual_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 andjeongbo-gonggae-cheongguseocarries 18 of 19. T32:--charpris batch-wide, an undocumented constraint the T30 pre-flight breaks, so--charpr-per-cell ROW,COL=IDsets one target's id and wins over--charpr. Andcom_backend.py --helpdied withUnicodeEncodeErroron 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--helpprints it. The UTF-8 stdio guard now runs at entry in every shipped CLI (12 inengine/scriptsvia the newengine/scripts/cli_io.py, and inpipeline/scriptsviachecker_base._utf8_stdio, including insidechecker_base.cli_mainso every checker routed through it is covered by construction). 11 CLIs were broken and 8 more were latently unguarded; the real deliverable istests/test_cli_cp949_help.py, which DISCOVERS every argparse entry point in both shipped trees and runs--helpunderPYTHONIOENCODING=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 areplacekey reproducing the run's exact internal whitespace, and nothing shipped yielded that string. So both agents readContents/section0.xmlby hand — precisely the contact the shipped skill forbids. Fixed in three layers.preedit replace --at-cell ROW,COL[#RUN]=TEXTand--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 tofill-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]=SUBSTRINGcompares with all whitespace removed on both sides so an operator asserts우(-)without counting spaces. Also:table_map[].text_previewnow reportstruncated— 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; andform_inspect --full-text [TABLE:]ROW,COLis the documented, per-cell opt-in escape from the structure-only contract, emitting exact run text for the cells you name and no others, whoseruns[].indexIS--at-cell's#RUN. - #73 — T35: one
--fill-maploader for every consumer, and--baselinetakes the blank form.--fill-mapwas one flag name with two incompatible payloads: each consumer had grown its own loader, sovisual_verifydocumented the wrapper shape while the module checkers andcheck_residuewanted a bare{key: value}map, and each refusal named only its own shape — the caller learned one shape per retry.check_residuenow hosts THE shape rule (load_fill_map,normalize_fill_map, andFILL_MAP_SHAPESappended to every shape error, naming BOTH shapes);visual_verify.load_fill_mapIS that function object, asserted, so the rule cannot fork again. A wrapper whosefill_mapmember is not an object is now a usage error instead of being read as a bare map. Second nit:--baselinereads as "the blank form" but refused an.hwpx, so the round-3 agent dropped pixel-diff rather than converting — it now routes an.hwpx/.hwpthrough the artifact's ownconvert_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 asfill_targetwhen 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) orstub_head(the corner where a header row crosses a label column). No addresses, no absolute heights, no tuned ratios. Excluded from the newfill_target_count, reported underspacer_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
testpathsand CI'spy_compileinvocation were both hardcoded per-module lists.testpathsis now one glob (modules/*/tests), and the compile step isscripts/py_compile_sweep.py, whose pattern set includesmodules/*/scripts/*.pyand 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, withpyproject.tomlas the only file outsidemodules/— plus a negative control and guards against either configuration naming a module again. - Eval machine checks gained a per-module gate.
machine_checks[]acceptsrequires_module: NAME; where the sandbox's enabled set lacks it, the check is skipped with a recorded reason instead of failing, withblocked_on's semantics exactly (counted incounts.skipped, never incounts.pass, so neithercheck's exit code norscore.pycan 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 anenabled_checkers()accessor) says out loud what gongmun's preservation rules only implied. The clean-room harness is the wired consumer: a task declaresbaseline: <input basename>andcheckappends--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, andoperations.mdnever gave thecom_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#RUNthe 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 thetasklistcheck 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 toacceptance: true. Linked one level deep from SKILL.md's routing table; the superseded "which one fills a form" table inoperations.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, socom_backend.py inspect|editgave SKILL.md's routing table one four-cell row among three-cell rows, in the first table a router reads. Escaped, andpackage_modulenow asserts every table in every shipped surface document is rectangular.--charpr-per-cellis documented in the fill section ofoperations.mdand 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 --prettyfrom habit, and the habit has an in-repo source:probe.pyis 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_inspectnow answers--pretty/--indent/--jsonwith what to use instead and states its output contract in the help epilog, and probe's--prettyhelp explains why it is the exception.
Packaging — bundle builds are reproducible
- Same tree in, same bytes out. Found while preparing the tag: building
coretwice from an unchanged tree gave two different zip sha256 values, becauseZipFile.writestamps 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.pynow 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_systemto Unix, deflate level 9, and member order sorted by path.MANIFEST.jsonwas audited for the same failure and itsfileslist is sorted by path.--verifyis unaffected: it hashes member content, not the container.TestBundlesAreReproduciblebuilds 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 세부 변경 내역
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 infeature_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-scopedHwp.exekill 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_tellsshowed 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) withconstants_allowlistexcluded fromDATA_EXTENSION_PACK_TYPES(a confirmed relaxation vector forcheck_numbers' deterministic numeric checker), and fixed themerge_pack/_stable_unionregression where a globalgloss_allowlistpack 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/FINALpointer must resolve), andverdict_schema.py(rejectsconverged: true+status: escalate_human, wired intosubmission_preflight). - #34 (
gates: malformed artifact XML is HARD in check_residue) —check_residue.pyXML-parses every hwpx section/header member before scanning; a parse failure is a HARDartifact_malformedfinding. Found live: a corruptsection0.xmlpassed 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; stalelinesegarrayis 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 resolvescharPrIDRefby array position — clones are now appended at the end ofcharProperties(never mid-array) and anid_position_mismatchdiagnostic is reported. - Verdict-writer consistency fix (shared-miss #5, direct merge): a proof- phase escalation now demotes
convergedtofalse(preservingphase1_converged), so the writer can no longer emit the contradictory pairverdict_schema.pyrejects. - #35 (
docs: reopen/amend transition design) — append-only amendments, receipt-signed reopen/amend-close, and theunrecorded_editHARD 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 HARDtarget_missing, each gate records mtime+sha256 staleness,workspace_slugholdout 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_rulesas 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 atengine/, with the full 29-commit engine history restored as ancestry after a squash flattened it. The seam is gone: theHWP_MASTER_SCRIPTSdelegate 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 anengineextra was added topyproject.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 withdone_atpreserved, 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 to0.16.0.dev0(the registry's version gate readspyproject.toml). - #45 (
W3-S2a) + #48 (W3-S2b) — everything report-shaped moved intomodules/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 catalogmodules.yaml, all 24 playbooks) plus the workspace-bound checkers and the claims/sources chain.submission_preflightsplit: core keeps the artifact/proof half and gained a genericpreflight: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); andscripts/package_module.pybuilds standalone bundles —--module <name>for module payloads,--module corefor the engine + pipeline + studio + contract, withMANIFEST.json(per-file sha256),INSTALL.md,privacy_scanover the staging dir (any HARD refuses the build), and--verifytamper 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 intomodules/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 gainedrequires_modules(inter-module dependencies enforced at enablement;reportdeclaresrequires_modules: [style]becausecontent_auditcomposescheck_stylethrough the registry). - #51 (
personalization: general/report pack split, store portability, schema rename w/ compat) — corepersonalization_ctldeclares 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, withPACK_TYPES/DATA_EXTENSION_PACK_TYPEScomputed 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 renamedreport-pipeline/personalization-v1→rigorloom/personalization-v1(legacy accepted on read, warned once). Newexport/importCLI: 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_scangained 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.mdwith 10 open→recognize→fill→verify scenarios.privacy_scangained--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 mergingrender_probe+ module registry summary + optional backend precheck, never raises; report/style modules declareprovides.skillfragments andsync_local.pymerges 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.hwpcorpus members converted to.hwpxvia the COM backend (Hancom 13.0.0.2986), strictly serial: 10/10 OK, zero hangs/retries;form_inspectrecognition table now covers 12/12 corpus members; converted hwpx + rendered PDFs folded into the pinned manifest. Full writeup with honest limitations indocs/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 everygsodrawing control as a picture (UserDesc-classified, newshapesfield); 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 reportspages_documentvspages_pdfwith a loud WARN on mismatch;check_convert_paritygained a guarded.hwpsource leg (structural counts HARD, text advisory).
Migration
- From a standalone hwp-master install: the engine is bundled at
engine/— point automation atengine/scripts/(same script names);HWP_MASTER_SCRIPTSstill 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/tomodules/report/scripts/(stage machine, compose, report checkers) and the humanization stack tomodules/style/scripts/; enable modules withpython pipeline/scripts/module_registry.py write-enabled --all(an absentmodules/enabled.yamlmeans core-only, where report entry points refuse loudly by design). Personalization stores using the oldreport-pipeline/personalization-v1schema 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 harness | tree/v0.15.0-alpha | |
| gate recalibration from the real-report campaign | tree/v0.12.4 | |
| transform modules: extraction, form conversion, taste mining | tree/v0.12.3 | |
| claim ledger + write-through source cache | tree/v0.12.2 | |
| checker_base refactor | tree/v0.12.1 | |
| composable module contracts + resolver | tree/v0.12.0 | |
| Linux equation-render parity P0 (experimental) + release consolidation | tree/v0.11.4 | |
| anti-fabrication frontier | tree/v0.11.3 | |
| figure/form integrity batch | tree/v0.11.2 | |
| numbering lint, snapshots, sync stamp | tree/v0.11.1 | |
| format gate, fabrication checks, delivery integrity | tree/v0.11.0 | |
| typeset parity without Hancom, Studio/Linux integration | tree/v0.10.0 | |
| Hancom-free document stack (hwpx tier) | tree/v0.9.0 | |
| gate integrity convergence | tree/v0.7.0 |