Localize: Localization and Translation Review
0. One-Sentence Positioning
Localization is not swapping Language A for Language B; it's first reducing A to meaning, then rewriting it in B. This skill's value lies not in "producing fluent translations" (the model already does that), but in catching sentences that are fluent but wrong, and consolidating each judgment into reusable glossaries, style sheets, and open-questions lists.
"Live-tested" cases in this document are from real projects, anonymized: projects and products are unnamed; quotes, vote counts, and statistics are original records; token examples labeled "illustrative" are replaced, not original.
1. Hard Rules (Applicable to All Entry Points)
- Do not modify the user's source or translation files. All output goes into the working directory (see §3). Review output is a findings list; the user applies changes only after checking them off.
- If the original meaning is unclear, do not guess. Log it in the open-questions list. In the translate entry, for questions affecting multiple locations, ask the user first before proceeding; for single-location issues, mark the adjacent translation as "speculative."
- The model must not claim "the source." Any judgment that "this term is used this way in the target market" must either be supported by the pair/locale package, or by finding real examples in comparable target-language materials via WebSearch, or be marked "unverified."
- Keep generation and review in separate contexts. Review is performed by an independent sub-agent; the generation context cannot review its own output.
- Delegate factual matters to scripts. Numbers, dates, currencies, URLs, units, and character conventions are first run through
scripts/; the model only handles semantic issues the scripts cannot detect. The model has a high false-positive rate for symbol/unit-level errors; do not let it judge locale errors by feel. - Each finding must carry a severity, and distinguish "error" from "preference." See §6.
- Review in segments, not the entire document at once. Each segment is approximately 1500 source characters; the longer the text, the fewer errors the model will find.
- Rewording can change phrasing, but not reference. You may change sentence structures, word choices, and reorder information (even completely rewrite brand copy), but you must not change what the source is referring to—purpose, object, quantity, subject. If you find an issue with the source text (non-existent product, inconsistent numbers, contradictions), log it in the open-questions list for the author to decide; do not fix it for them. Changing what is referenced also creates new contradictions.
- The translation column should only contain strings that can go live. Placeholders, alternative options (Plan A/Plan B), internal pointers ("see below…"), width annotations, and processing notes must go into a separate column or separate list. Do not create a row in the translation table for non-translation units—for example, "this label is code-generated, no i18n key" or "this number is questionable"—move the entire entry to the open-questions list. Before delivery, run
scripts/deliverable_check.py; whenchar_lint.pychecks the bilingual table, you must use--tgt-col, otherwise source-column characters will be flagged as errors in the translation. - When this project's kickoff file conflicts with the core rules, first record it, then decide which to follow based on the direction of the conflict. The compliance table, style sheet, and glossary written at kickoff are judgments made at that time; the core rules are cross-project judgments. Conflicts are inevitable (e.g., a compliance table requires softening an entire paragraph, while
diagnostics.md§10 requires affirmative wording for functional descriptions). First, identify the direction of the conflict, then decide which to follow:- If the kickoff file is stricter than the core rules (disallowed words, mandatory disclaimers, more conservative expression intensity) → Follow the kickoff file and await adjudication. Compliance usually has its reasons, and errors on the lenient side have a higher cost.
- If the kickoff file's facts are outdated or it is more lenient than the core rules (specs changed, restrictions were lifted, it omits a required processing step from the core rules) → Follow the core rules and update the kickoff file. In both cases: ① Log it in the open-questions list, explicitly noting it as an internal rule conflict, not a source text issue; ② In the report, state which rule was followed and why. Do not silently choose one—the independent review pass will not be aware of your trade-off and will re-flag it as a violation.
2. Input Contract
Collect the following before starting. For missing items, follow the "if missing" column and note it in the report header.
| Input | Required | If Missing |
|---|---|---|
| Source text (file path or pasted) | Required for review/translate | No source → go to §5.3 degraded flow |
| Translation | Required for review | — |
| Source locale / Target locale | Required | Auto-detect from text; annotate report as "auto-detected" |
Material type (see references/material-types.md) | Required | Ask once; if not answered, infer from text characteristics and note it |
| One-sentence scenario: who, in what context, reads this material, to make what decision | Required | Ask once; if not answered, use default based on material type and mark the report header as "scenario unconfirmed" |
| Existing glossary / style sheet | Optional | Start a new one from templates/ |
| Format constraints (max character count, box width, whether it's software strings) | Optional | Skip G7 format gate; note in report |
| Samples of comparable target-language materials (strongly recommended for translate) | Optional | Note in report: "no sample reference for scenario reconstruction" |
| Translation source (human / machine / AI / previous version) | Recommended for review | Mark as "unknown" |
| Target language author/source (native speaker / non-native speaker / unknown) | Must ask when there is no source | If unknown, degrade and note it |
| Input tier (see §8) | Optional | Default to "full tier" |
3. Working Directory and Artifacts
Default: create <source-filename-without-extension>.l10n/ in the same directory as the source file. Use user-specified path if provided.
⚠ Final report writing responsibility rests with the main conversation; sub-agents return text.
Live test: some runtimes intercept sub-agent writes to findings.md/report/summary-type files by filename,
while the same skill in another session can write the same filename without issues—interception varies across sessions; assume neither.
→ Sub-agents produce content as text; the main conversation writes it to disk and verifies (ls -lT + item count).
If write fails, sub-agents must not rename or work around via Bash—that would defeat the just-enforced block.
Intermediate artifacts (list-a.md, scripts-report.md, open-questions.md, etc.) have been observed to be unrestricted and can be written directly.
Attribution discipline: Before asserting "the environment blocked me," run an isolation experiment (different name, different directory, different size, once each). If there is a counterexample (another file was written) during the same run, you cannot attribute the failure to the environment. Live test: the main conversation asserted "no block, you just didn't write," and the sub-agent proved the main conversation wrong with three probes. The one who runs the experiment is right.
| File | Content |
|---|---|
00-brief.md | One-sentence scenario, material type, language pair and locale, shortcut for this run, tier, space strategy switches, input gaps |
glossary.md | Glossary (template templates/glossary.md), including rejection reasons and status |
style-sheet.md | Style sheet (template templates/style-sheet.md), starting from locale package defaults |
open-questions.md | Open questions list (template templates/open-questions.md) |
scripts-report.md | Output from R1 scripts |
findings.md | Review findings list (template templates/findings-report.md). Writing responsibility lies with the main conversation, not the sub-agent, see below |
draft.<locale>.md | Final translation for the translate entry (including "speculative" markers) |
decisions.md | Record of document-wide decisions (terminology, symbols, register, key trade-offs) |
4. Four Prerequisites Before Starting + Load Rule Packages
Proceed in order, write into 00-brief.md:
-
One-sentence scenario (§2), then immediately expand it into a set of criteria that can "fail".
Live lesson: a one-sentence scenario alone is not enough. In one commercial proposal, the scenario was very specific (reader identity, reading time, decision to be made), and was written verbatim into the terminology decision agent's prompt, yet several key terms were still rejected by native speakers; afterward, out of 60 glossary entries, only 9 had their rationale mention "who is reading." The scenario became a motto, never making it into any single "does this pass?" criterion.
Therefore, the scenario must be decomposed into the table below, written into
00-brief.md, and every subsequent decision must be evaluated against it:Decision Type How to Evaluate with the Scenario (must be able to say "fail") Word choice When searching, decompose the scenario into qualifiers and search with the word (material type + reader identity). If no example found after restricting = unverified, do not switch to a broader search to cheat. See diagnostics.md§7, first gateNumbers, units, currencies "Would this reader, within this time constraint, scanning this quickly, immediately have a sense of magnitude?" — Live failure: scenario read "read in tens of minutes," yet we decided not to convert yen. Three native speakers said verbatim: "having to calculate each time would make me stop reading." Register "Does this word appear in this reader's daily documents (due diligence reports, specifications, internal approval memos)?" If it feels out of place, replace with a synonym of the same register, but do not downgrade the meaning. See diagnostics.md§10bStructure, order "To make that decision within that time, what order does he need the information in?" If it differs from the source order, log it in the open-questions list Keep untranslated "For this reader, seeing the original form (English subtitle, foreign currency, model name)—is it expertise or foreignness?" Live test: one retained English subtitle was judged as giving the "impression of just using an overseas template." Criteria must be falsifiable to be criteria. A line that cannot answer "what does failure look like" is not a test.
-
Write down this project's "cheap correspondence" shortcut. Every language pair has a deceptively legal shortcut: a shallow layer that looks one-to-one (morphology/orthography/word order), while the real differences live deeper (senses/regional vocabulary/syntax). The more usable the mapping table, the more dangerous it is. Copy from the first section of the pair package, or (if no pair package) have the model write a hypothetical shortcut first.
-
Load rule packages:
| Package | Path | If Missing |
|---|---|---|
| Language pair package (direction-specific) | references/pairs/<src>-<tgt>.md, e.g., zh-ja.md | Model writes its own shortcut hypothesis; G3/G6 confidence degraded; report header marked "no pair package" |
| Target locale package | references/locales/<locale>.md, e.g., ja-JP.md | Style sheet starts from empty template; G5 confidence degraded; report marked "no locale package" |
| Material type rules | references/material-types.md | — |
Existing packages: pairs = zh-ja (complete), ja-zh, en-ja, ja-en, zh-en, en-zh (seeds); locales = ja-JP (complete), zh-CN, zh-TW, en-US, en-GB (seeds). Seed packages only contain attested content; gaps are explicitly noted.
4. Initialize the glossary, style sheet, and open-questions list. The glossary grows as you work, one entry per term decision; the style sheet starts from locale package defaults then is modified per project; start the open-questions list from the very first sentence.
5. Three Entry Points
5.1 review: Review Existing Translations (Source + Translation Present)
This is the most error-prone form, with the temptation to "just read the translation and find awkward spots." Empirical conclusion: monolingual pass alone is the worst; a bilingual comparison pass is mandatory; start from the translation; the order of the two passes is free.
R0 Collect input (including target language author/source) → write 00-brief.md → load rule packages → initialize three lists
R1 Run scripts (§7): fact_check / char_lint / length_estimate / term_coverage / **distribution_check** → scripts-report.md
**`distribution_check` must be run before the monolingual pass**: it reports document-wide distribution, while the monolingual pass looks at individual items;
having distribution data first tells the monolingual pass where to focus.
R2 Segment: align source and translation into paragraphs, each paragraph ≤ ~1500 source characters, numbered S01, S02…
R3 Monolingual pass (independent sub-agent, given only translation + locale package + scenario):
Mark positions that "don't read like a native speaker wrote it," four trigger hits, register breaks
→ **Write directly into `review/list-a.md`** (not a summary, the original list)
→ **Main conversation verifies file exists and line count ≥ candidate count**; if not, re-run R3; do not proceed with a summary
R4 Bilingual pass (independent sub-agent, given source + translation + pair package + matched glossary entries per segment):
Five types of errors only detectable with comparison + model-specific failures (omissions, additions, over-polishing) + information granularity counting
→ Output list-B
R5 Merge and deduplicate, classify by severity per §6, write suggested action in the three-option format per §6
**After merging, must report one line: list-A had N items, of which M entered the final list.**
If the monolingual pass's findings are entirely filtered out, that is a process failure, not "they were unimportant" — see §5.5.
R6 Skeptic review (independent sub-agent, **must have Read/grep capability**): review each critical/major item one by one,
default to downgrade if uncertain; rewrite once per suggested action; if rewrite shows no clear improvement, downgrade to neutral;
empirical experience: about half of critical/major items get downgraded, and some items' evidence is directly refuted by grep
**The skeptic only downgrades; it does not catch missed items.** A minor it doesn't review is not automatically handled, see §5.5.
R7 Write findings.md; update glossary.md / open-questions.md / decisions.md
R8 Present to user: first list document-wide decisions for user approval, then item-by-item list for checkbox; apply only after user check-off
Sub-agent prompt templates for R3/R4/R6 are in references/subagent-prompts.md and must be self-contained (include file paths, scenario, shortcut; do not rely on inherited context).
This skill's absolute path is ${CLAUDE_SKILL_DIR}. Before dispatching, replace every {{skill_dir}} in the template with it, otherwise sub-agents cannot read pair/locale packages.
(If the above still shows the literal ${CLAUDE_SKILL_DIR}, not replaced with a path—e.g., in Codex or other tools—use the absolute path of the directory containing this SKILL.md; all other ${CLAUDE_SKILL_DIR} references in this file follow suit.)
5.5 Monolingual Pass Findings Must Not Evaporate During Merging
This is a pitfall from live testing, not a theoretical concern. In one SaaS landing page project, 8 out of 10 native-speaker feedback items had already been reported by our monolingual pass, and 6 of them never made it to the skeptic review—because the merge started from the bilingual pass's findings (missing translation, reference issues, terminology) and the monolingual pass's readability findings were batch-filtered out. The monolingual pass's sole reason for existence is catching "reads like a translation"; its output was discarded before it reached review.
The root cause is structural, from three overlapping factors: ① The monolingual pass's findings are almost all minor (that's the definition of minor); ② The skeptic by design only reviews critical/major, so minor never enters review; ③ The severity table judges each item individually, so "doesn't affect understanding" per item, but multiple piled into the same sentence makes it "read like a translation"—no step ever adds them up.
Four mandatory actions (in process order):
- A. list-A must be written to disk, and verified by the main conversation. A summary is not a substitute—the cross-reference in §9.1 is item-by-item comparison against list-A; with only a summary, the chain is broken, and you can never go back and check "did we report this before or not." Writing the rule "must be on disk" is not enough: in that live test, it wasn't on disk because the sub-agent's API 400'd during write; the rule can't stop network errors. So this is the main conversation's own action—after R3, the main conversation must itself run
wc -lto confirm the file exists and the line count matches, only then proceed to R5. (The agent says it's done; the main conversation must verify.) - B. Density escalation. If the same string is reported ≥3 times by the monolingual pass, regardless of individual severity, the entire string enters T5 rewrite candidates. Rationale: three separate problems in one sentence; fixing them one by one is futile; rewriting is faster.
- C. The monolingual pass's "rewrite faster" and "unreadable" are hard signals. When the monolingual pass says a segment is "個別修正より書き直しが早い" or "completely unreadable," send it directly to T5, bypassing severity filtering. This is the only strong judgment it can offer from a native-speaker perspective; do not treat it as a minor.
- D. Report survival rate at merge. R5 output must include a line "list-A had N items → final list M items." If M/N is notably low, go back and check if you again only picked findings from the bilingual pass.
Why not have the skeptic also review minors? It would dilute its role. Its task is downgrading (preventing over-classification), not catching missed items. Missed items must be handled by the four actions above at the disk-writing and merging stages; do not rely on the review step to catch them.
5.6 Group-Level Findings: Must Not Be "Fixed" by Modifying a Single Member
Live-tested, and resulted in a negative outcome. In one real project, a group of four options each had a description label. The monolingual pass reported "the four option descriptions are misaligned"—each was about a different thing (purpose, recommendation, quality, and spec). This was a finding about these four as a group. The handling at the time was to rewrite only the most glaring one. Result: the axis was still misaligned (the other three were untouched), and the rewritten option was later unanimously rated the worst among three versions in a blind test by three people, worse than even my original version before the rewrite. Fixing one member neither solved the group problem nor fixed the individual problem—it created a new one.
Criterion: If the finding's description contains "misaligned," "not uniform," "not parallel," "style inconsistency," "among these items"—the subject is plural, then it is a group-level finding.
Two legitimate actions, no third option:
- Rewrite the entire group together, then verify the entire group together (format, width, axis, register, all at the group level).
- Leave the entire group untouched, log this finding in the open-questions list, stating "requires a group-level rewrite, not done in this round."
Do not pick the most glaring member, fix it, and call it resolved. The correct deliverable for a group-level finding is a replacement proposal for the entire group, not one item.
5.6a After Full Group Rewrite, Must Re-Check Against the Style Sheet: Group-Level Fixes Must Not Violate Existing Constraints
§5.6 says "fix the whole group," but it only says half. Live test: following §5.6, we rewrote the entire group of labels. The axis was unified, the width converged (from 3.00× to 1.43×), yet the native-speaker blind test lost to "only fix the named item"—two people rejected it, citing that "nouns ending in the 体言止め form, short and tidy, are the Japanese UI standard", and this rule was already in the project's own style sheet. The axis was fixed, but the register rule was broken. Root cause was not the rule, but the prompt reciting constraints from memory, not copying the style sheet verbatim.
Mandatory action: Before rewriting any strings that have already been finalized, first ask "which decisions already govern this string?" and copy the exact wording of those entries into the prompt—do not rely on memory. At minimum, copy these four types:
| What to Copy | From Where |
|---|---|
| Matched glossary entries | glossary.md |
| Applicable style sheet rows (register, ending, punctuation, spaces, width hard constraints) | style-sheet.md ← This is the most commonly overlooked type |
| The parallel group's established axis (from the style sheet) | style-sheet.md "parallel group's axis" row |
| The one-sentence scenario and this run's shortcut | 00-brief.md |
T3 already has this requirement (§5.2: "each segment with glossary hits + style-sheet + scenario + shortcut"). The trap was ad-hoc rewriting tasks outside the T3 process—fixing native-speaker feedback, creating a fusion version, filling in a missing translation. These tasks don't follow T3 numbering and are easily treated as "just a quick edit" without carrying the payload. They need the same payload as T3.
When the parallel group's axis collides with "what is being referred to," reference takes precedence—break the axis, do not alter meaning.
Live test: three cells in the source were A + B, one cell was A / B (or). The style sheet standardized the connector for this group to 「+」.
The generation side followed the axis, changing that cell's "or" to "and"—altering the source's meaning for formatting consistency, exactly what Hard Rule 8 forbids.
The axis is at the phrasing layer; reference is at the factual layer. When they collide, let that cell break the axis (use 「/」) and state why in the report.
Formatting consistency cannot override what is being referred to—this must also be added as a check item on the review side, because it reads completely fluently and only becomes visible when compared against the source.
Review action: After the full group rewrite, go through the new group checking each item against the style sheet, then confirm the new group has not introduced problems the old group didn't have (width, register, punctuation, consistency with adjacent groups).
length_estimate.py --siblings can only check width; register must be checked by a human.
Byproduct: within-group dispersion is machine-checkable. For parallel groups (where the key differs by only one token, e.g., plan_lite_/standard_/pro_/max_description, illustrative), length_estimate.py --siblings will report the width range. In one real project, among 6 parallel groups, 5 had a range ≤1.67×; only the one that had been incorrectly modified had a 3.00× range. The script only lists, it does not judge—there is no cross-project basis for setting a specific threshold; do not invent one.
5.2 translate: Translation from Scratch (Source Only)
T0 Collect input (strongly request target-language comparable material samples) → 00-brief.md → load rule packages
T1 Full-document pre-analysis, no writing: read entire document → extract candidate terms → create open-questions list
Questions affecting multiple locations → ask user first; single-location → mark as "speculative" and continue
T2 Terminology decisions (three gates: existing term? collision? fits format?) → glossary.md
**Words like "certainty scale" or "status badge" that form a self-contained system must use established terms from comparable target-market materials.**
Live test: the process designed four levels of certainty to prevent over-scaling, setting the strongest as `検証済み`—**the design was right, the word choice was wrong.**
Three native speakers unanimously pointed out that the standard for the traction badge in investment materials is `実績`, and `検証済み` would make people think of third-party verification.
**A self-consistent scale is not the same as the scale used in the target market.**
**The source of terminology must record "for whom that material was written" along with it—the existence of a word in the target language ≠ the target reader understands it at a glance.**
Live test **four times of the same type**: four words were each treated as "verified," based on another company's product page, a general dictionary, a self-designed scale, and a vendor's technical blog—
result: one was something another company's product could do but this material's product could not; one in Japanese is only used in another domain;
one was an overstatement in the target reader's materials; one was common among technical readers but almost unused by business readers.
**Common root cause**: the audience of the source was not the same group as the audience of the material.
→ The source column must be written as `source (reader profile)`: `某厂商技术博客 (reader = エンジニア)` vs.
`面向投资方的事业计划书 (reader = 投資担当)` **are two different things and cannot substitute for each other**.
When validating, prioritize finding **materials aimed at the same type of reader**.
**Term selection must not be based only on "this word looks difficult"; frequency must be run first**:
`term_coverage.py cover` lists high-frequency content words from the source that are not in the glossary. **High-frequency words that repeatedly appear in parallel positions must have an entry**,
even if they don't look difficult—if you decide not to include one, write a line in the glossary "no need to unify; reason: …" so the next person can see it.
Live miss: `团队` (9 occurrences) and `企业` (10 occurrences) didn't make the list because they "didn't look difficult," and the translation had two different translations for each,
while **words with entries had 100% consistency**. No entry → machine-consistency list doesn't cover → pre-delivery grep gate doesn't catch →
bilingual pass has no table to check for "did you follow the table." **One layer missed, four layers empty.**
Style sheet starts from locale package defaults → style-sheet.md
**Before finishing, run consistency reconciliation across decision files**: the same term must be written identically in glossary / style-sheet / decisions.
Live miss: glossary set `一括エクスポート`,
but the same parallel group in style-sheet had `まとめて書き出し` (words are illustrative). The generation side could only pick one, and whichever it chose would cause the review side to flag an error. **Two decision files fighting, downstream has no solution.**
Machine check: grep the glossary's "target language term" column against the other two files; if different forms exist, stop to unify them.
T3 Generate in segments (each segment with the same glossary hits + style-sheet + scenario + shortcut):
① Intent extraction: what is this sentence really trying to say (beyond the literal words)
② Scenario reconstruction: how would someone in the target market write this in that scenario (with samples, compare sentence patterns and register)
③ Linguistic refinement: register, length, document-wide consistency
Constantly ask yourself: am I choosing this word because the source has this form (translation), or because this type of material is written this way (localization)?
→ draft.<locale>.md
T4 Run R1–R7 from §5.1 on (source, draft) (independent context)
T5 Revise the draft based on findings; run consistency scan (actual usage of each glossary term across the entire text);
**Run `distribution_check` once more**—individual fixes change document-wide distribution; you must re-check distribution after revisions
T6 Deliver: draft + glossary + style-sheet + open-questions + decisions (+ length report)
5.2b adapt: Authorized Structural/Genre Restructuring (MVP)
The translate entry already allows changing sentence structures and rearranging wording; the difference with adapt is advance authorization + auditable structural/genre changes. When the user says "translate/localize," still go to translate; go to adapt only when they say "restructure for the Japanese market/rewrite in the style of a Japanese company/restructure the proposal" and explicitly grant authorization.
Prerequisites before starting: target-reader-matched comparable material samples, author authorization table, and success criteria. If any is missing, stop adapt or fall back to translate; do not rely on the model to self-judge.
Can be restructured: title and information hierarchy, paragraph/step order, merging/splitting expression units, target-market display layers, authorized industry/generic expressions, presentation form (prose ↔ tables/numbered steps, AUTH-08)—this item is listed separately because converting prose to a table splits one sentence into several cells, and conditions and negations are most easily dropped during the split. Can never be changed: numbers, dates, subject, object, quantity, time, functions, prices, free/paid conditions, strength of effects, legal implications, negations and restrictions.
Process: A0 Input/authorization → A1 Target-market conventions → A2 Fact ledger → A3 At most two structural options and wait for author approval → A4 Segment-by-segment restructuring → A5 Independent review of facts/reference and naturalness → A6 Author acceptance. Cannot generate without author approval for the structural plan; cannot be called complete without author acceptance.
Artifacts: authorization.md, market-conventions.md, fact-ledger.md, structure-options.md, adapt-map.md, decisions.md, open-questions.md, final draft; adapt-map supports one source unit mapping to multiple target units and multiple source units merging into one target unit. N≠M does not necessarily mean a missed translation; must be verified through the map and fact ledger.
Operational materials also require task-test.md: key task success rate must not be lower than translate; if more natural but makes user operation more likely to fail, adapt is judged a failure.
Two machine-checkable gates (do not proceed without running them):
# A3→A4: Do not generate without a real author approval event
python3 ${CLAUDE_SKILL_DIR}/scripts/adapt_check.py gate \
--authorization <authorization table> --structure <structural plan> --conventions <market conventions> [--map <adapt-map>]
# A4→A5: Landing each item from the many-to-many map and fact granularity
python3 ${CLAUDE_SKILL_DIR}/scripts/adapt_check.py map \
--source <source> --ledger <fact ledger> --map <adapt-map> --draft <target draft> \
--authorization <authorization table> --glossary <glossary>
Both source and target draft must have unit anchors (<!-- SRC-001 --> / <!-- TGT-001 -->), otherwise unit-level checking is impossible.
gate exit code 2 = do not generate. It blocks: AUTH-07 being unlocked, items marked "authorized" but with no author confirmation event,
approved plan still being a placeholder like A / B / not approved, no verified sample matching the reader, the map referencing an unauthorized AUTH.
"The model itself filled in 'approved' in the table" is exactly what this gate is designed to block.
map exit code 1 = blocking. It blocks: the ledger hash doesn't match the source (ledger modified after generation), source/target units unmapped or have no source,
ledger items with no row in the landing table (mapping gap), the landing table rewriting the ledger's source value,
the declared target implementation string not found in the specified target unit (granularity lost during merge),
the target implementation of the subject not matching the glossary's fixed translation (beneficiary swapped),
numbers/dates/URLs present on only one side (losing or adding facts).
What these two gates can and cannot prove must be stated together: the script only verifies "does the declared string appear verbatim in the specified unit,"
it does not judge whether that string semantically expresses that granularity—if you delete a negation and also modify the landing table to contain an actually existing but irrelevant string, the machine check will pass.
Another hole is target-side coverage only goes to the unit level: it guarantees each target unit has a source, but it does not guarantee each sentence within a unit has a source,
so a fabricated sentence can be inserted into an already-mapped unit and the script won't see it (only the numbers/dates/URL layer catches some).
→ Countermeasure: in the adapt-map, you must manually create a table of "added text" — list headings, footnote marks, road-sign sentences, subheadings, anything that is a non-source assertion — and submit it for independent review.
Whether the semantics are preserved goes to independent review (template F); whether the genre is appropriate goes to author acceptance. Script passes ≠ adapt passes.
See templates/authorization.md, templates/adapt-map.md, and references/subagent-prompts.md templates E/F for details and prompts.
Current validation status: The authorization gate and fact-mapping contract have 32 automated positive/negative regression tests (evals/test_adapt_checks.py, samples in evals/smoke/adapt/),
including "2→1 merge preserving all conditions should pass / deleting one negation must fail / swapping beneficiary must fail / unapproved must not generate." Real material (Joplin help docs en→ja, Evernote section 15 units → 9 units) successfully passed A0–A4:
both gate and map ran with zero blockages, and all five adversarial tampering attempts were blocked (including beneficiary swap by simultaneously modifying both draft and report).
A5 independent review done (trap round + clean round); A6 author acceptance, target-user task testing, native-speaker read-through not yet done — adapt cannot be claimed as passed until these three are completed.
Live lesson: the 5 issues found during the first run on real material were all defects in the gates/templates themselves
(plan names limited to a single letter, two-table format in conventions file, English spelled-out numbers, gate blocking its own authorized "prose → numbered steps" conversion,
rows with no structural change forced to reference authorization). When the gate first encounters real material and flags an error, suspect the gate first.
5.3 No Source Text (Translation Only)
Without source text, false translation, reference drift, number mismatch, and similar substantive translation errors cannot be checked; you can check fluency, internal consistency, and orthographic conventions.
Run char_lint / term_coverage / distribution_check (transcription rate not applicable) and R3, and list what cannot be determined in open-questions.
But the language tagged by sourceLanguage ≠ the text's author being a native speaker of that language. When starting without source, must ask:
"Who wrote this target language text?"
- Native speaker of the target language wrote it → above limitations apply; cannot frame readability issues as translation errors.
- Non-native speaker wrote it directly (independent developers, overseas teams self-writing copy) → the author's native language is the "invisible source";
load the corresponding
pairs/<author-native>-<target>.md, scan for L1 interference using the bilingual pass method; you can find false friends, residual L1 words, and inconsistent unified concepts, but the report must clearly state this is "L1 interference," not a source–translation comparison conclusion. - Author unknown → do not guess the author's L1; only report issues verifiable within the target language, and mark "author source unconfirmed."
Live test (one App, target language copy directly written by a non-native author): the monolingual pass found several instances of residual L1 words; in other strings of the same App, the same concept had already been expressed natively, so these were internally verifiable L1 interference. This is normal in independent developer/overseas team contexts, not an exception.
5.4 Multilingual Parallel / Continuous Updates (Brief)
Multilingual parallel: first establish a source of truth; add a column to the glossary (concept | language A | language B…); cross-check numbers and facts across all versions (fact_check.py pairwise); preserve and note "intentionally different."
Continuous updates: the glossary and style sheet are long-term assets, stored in the user's project, not in the .l10n/ temporary directory; new content only goes through R1–R4.
6. Severity, Finding Format, Three Options
…
[truncated for translation]