Skip to content

test(fixtures): JA/DE/FR contract review corpus - supply agreements, localized checklists, expected redlines (bounty #1939) - #1961

Open
dankezo wants to merge 1 commit into
AI-WorkDeck:masterfrom
dankezo:bounty/1939-i18n-corpus
Open

dankezo wants to merge 1 commit into
AI-WorkDeck:masterfrom
dankezo:bounty/1939-i18n-corpus

Conversation

@dankezo

@dankezo dankezo commented Dec 5, 2026

Copy link
Copy Markdown

Closes #1939 (bounty ¥1,500) - all three languages (JA / DE / FR), so the full bounty.

What this adds (fixtures/contracts/i18n/)

Per language: one synthetic commercial supply agreement as a clean .docx fixture, the same agreement with the expected review applied as tracked changes, a localized Skill checklist written in the language, and expected review notes that pin the exact character-level redlines. One generator (generate_corpus.py, stdlib zip only, deterministic) builds both .docx files per language from a single segment source - the clean file is the reject-all view, the redlined file the marked view - so the pair can never drift apart.

Lang Fixture Planted defects (all found + redlined)
JA 物品供給基本契約書 (13 articles, 条・項 numbering, 金1,250,000円, 令和8年 dates) 5 payment-term contradiction inside Art. 5 (月末締め翌月末払い vs 納入後30日以内); defined-term drift (本製品 → 当該納入物) in the warranty clause; liability cap set in Art. 9(1) then negated in Art. 9(2); cross-reference to a non-existent Art. 15; Japanese law but exclusive venue at the Singapore International Commercial Court
DE Rahmenliefervertrag (13 sections, § numbering, 1.250.000,00 EUR) 4 (5 edits) § 4 payment contradiction (30 days vs sofort fällig); § 7 liability cap silently lifted for lost profits; Munich arbitration clause coexisting with a Geneva court-venue sentence; defined-term drift (Ware → Liefergegenstand) + reference to a non-existent § 14
FR Contrat-cadre de fourniture (11 articles, 1 250 000 € with espace fine insécable) 4 payment contradiction (30 jours fin de mois vs à réception); the mandatory late-payment mentions of C. com. art. L. 441-10 missing entirely (fixed by pure insertion: 3x legal interest rate penalties + 40 € recovery indemnity); French law + two French parties but exclusive venue in Bruxelles plus a conflicting Paris arbitration sentence; defined-term drift (Marchandises → Produits)

Redlines change only the defective words: native punctuation and typography (、。「」, „..." quotes and ß, guillemets « » with espaces insécables, U+202F thousand separators) sit in untouched runs. Each language has clean control clauses that a review must NOT flag; the expected notes say so explicitly.

Verification (criterion 3, real LOWA engine)

The three redlined fixtures were registered temporarily in the repo's own revision round-trip guard (frontend/tests/lowa-e2e/revision-roundtrip.mjs) and run against the real engine (TZ=Asia/Shanghai, headless Chromium):

PASS corpus ja redlined (10 revisions, 0 comments)
PASS corpus de redlined (9 revisions, 0 comments)
PASS corpus fr redlined (8 revisions, 0 comments)
PASS corpus ja clean (0 revisions, 0 comments)
PASS corpus de clean (0 revisions, 0 comments)
PASS corpus fr clean (0 revisions, 0 comments)
all fixtures round-trip

Every tracked change (kind, author, date, text, order) and the accept-all / reject-all text parity survived the round trip with zero losses; the clean fixtures open and export as zero-revision documents. The temporary registration was reverted - this PR does not touch the guard itself. Rows C5-C7 were added to fixtures/contracts/README.md.

CLA: happy to sign via the CLA Assistant bot on this PR.

…reements, localized checklists, expected redlines (bounty AI-WorkDeck#1939)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Withdrawn] Moved to internal backlog (#1939)

1 participant