Repository navigation
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
Conversation
…reements, localized checklists, expected redlines (bounty AI-WorkDeck#1939)
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
.docxfixture, 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.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):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.