YN quality checks
中文 · Project · Project examples
YN combines structural checks, independent AI review and editable line inspection. This page links the checks and their reproduction commands.
Check coverage
| Failure | Reproducible source | Scope |
|---|---|---|
| Damaged placeholders, tags, control codes or row counts | Translation validator tests | Declared row and token structure |
| Proofreading suggestions breaking preservation | Replacement validator | Physical-line, placeholder and preservation checks at submission |
| Preserved text colliding with residue/terminology checks | Matcher parity tests | Exclude actual preserved positions; still check prose |
| False untranslated findings blocking valid candidates | Parent decisions · Native review | Exact row/text/reason decisions across formats; other structure remains enforced |
| Bibliography translated accidentally | Reference workflow regression | Host-owned rows, existing HTML rebinding and original exported glyph pixels |
| PDF visual wraps fragmenting prose | Paragraph boundaries, Host/HTML/export regression | First/hanging indentation, narrow prose, native paragraph/table ownership, inline formulas and ordered flow areas |
| Academic PDF names, acronyms and numbering reported as untranslated | Prescan and native Pi regression | Source-evidenced row scopes shared by translation, review and import; prose still checked, without extra model requests |
| Interrupted drafts and stale scope/review proof | Recovery preflight tests | Verify old proof, retain unchanged rows and compensate failed commits |
| Omitted or rewritten PDF code/math | Child-write regression · PDF protection tests | Host skeleton, prose-only writes, no translation requests for all-protected chunks |
| Exit after file replacement but before checkpoint | Cold PDF recovery | Isolated process exits at the commit window; a new Host verifies its write-ahead receipt |
| Long history and shutdown persistence | Stop/storage test · Session storage | Native history retained; derived indexes do not replace proof |
| Large-candidate validation, import and cancellation | Responsiveness test · Cancellation test | Background validation, cancellation and transactional commits |
Reproduce
Use Node.js 22.19 or newer and the repository lock:
npm ci
npm test
Run the cold PDF recovery regression alone:
node --experimental-strip-types tests/pdf-protected-recovery.test.mjs
Desktop, LAN, API and package check commands are listed in development and validation. Dependency versions are defined by package.json and the lockfile.
Review and recovery
Structural checks inspect rows, control tokens, write scope and evidence bindings. Independent AI review checks meaning and terminology using source text and context. Split proofreading covers its assigned rows; Monte Carlo uses stratified samples. Findings are available in the review page for editing and acceptance.
Missing required files, internal errors and stalled repairs stop the task while retaining drafts and diagnostics. Recovery verifies the saved content and evidence before resuming. PDF input requirements and asset handling are described in the PDF guide.