Skip to content

feat(config): cascade context-split + EN-only tasks (max-context approach) - #371

Merged
jsboige merged 1 commit into
masterfrom
infra/cascade-context-split
May 28, 2026
Merged

feat(config): cascade context-split + EN-only tasks (max-context approach)#371
jsboige merged 1 commit into
masterfrom
infra/cascade-context-split

Conversation

@jsboige

@jsboige jsboige commented May 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Refactor cascade drift tasks to give maximum hierarchical context to the LLM while narrowing edits — implementation of jsboige's directive: "include FR (clean) + EN (clean) as readonly anchors when editing the other 6 languages".

What changed

4 existing cascades renamed to multi-lang variant (Rules / Virtues / Scenarii / Fallacies):

  • Move text_en/desc_en/example_en (or equivalent) from FieldsToUpdate to readonly context
  • LLM now sees FR (clean source) + EN (clean) as anchors for the 6 other langs
  • Editable: RU/PT/ES/AR/FA/ZH only
  • ChunkSize bumps: Rules 4→8, Virtues 4→6 (richer hierarchical "grappes")
  • Bug fix: Scenarii cascade had suggestion (FR field) duplicated in EN row; corrected to suggestion_en per Scenario.cs:30/83 mapping

4 NEW EN-only cascades:

  • Context: FR fields only (clean source)
  • Editable: EN fields only
  • Smallest-context, fastest-converging variant for calibration smoke tests
  • Same prompts as multi-lang (the "max 1 cell per node per pass" rule generalises)

Total cascade tasks after PR: 8 (4 multi-lang + 4 EN-only).
All Enabled = false — smoke-test on demand, $8/PR budget guard-rail.

Test plan

  • dotnet build "Argumentum Converters.sln" → 0 errors, 20 warnings (all pre-existing)
  • dotnet test → 120 pass / 0 fail / 5 skip (GDrive/GUI), unchanged from master
  • Diff reviewed cell-by-cell, no field-name typos
  • Post-merge smoke test: enable Rules cascade EN-only, TakeChunkNb=1 (~8 rules), validate API + LLM behavior
  • Iterate cascade smoke tests across other datasets if API quota allows

Why max-context matters

With FR + EN both visible in the prompt, the LLM has two anchors of "what the cell should mean" before deciding whether each translation has drifted. Solo-FR-anchor (the prior approach) gives less leverage for arbitrating between candidate edits.

🤖 Generated with Claude Code

…oach)

Refactor cascade drift tasks to give max hierarchical context to LLM while
narrowing edits:

**Existing cascades — renamed to multi-lang variant:**
- Move EN fields from FieldsToUpdate to readonly context
- Now LLM sees FR (source clean) + EN (clean) as anchors for the 6 other langs
- Editable: RU/PT/ES/AR/FA/ZH only
- ChunkSize bumps: Rules 4->8, Virtues 4->6 (richer hierarchical grappes)
- Fix pre-existing typo: Scenarii cascade had `suggestion` (FR) duplicated
  in EN row; corrected to `suggestion_en` per Scenario.cs:30/83 mapping

**New EN-only cascades (4 tasks):**
- Rules/Virtues/Scenarii/Fallacies cascade EN-only
- Context: FR fields only (clean source)
- Editable: EN fields only
- Smallest-context, fastest-converging variant for calibration smoke tests

**Rationale (jsboige directive):** Give max context to LLM (FR clean + EN
clean), keep only target languages editable. Larger ChunkSize for richer
hierarchical grappes lets the model arbitrate between siblings.

**Total cascade tasks now: 8** (4 multi-lang + 4 EN-only)
**All Enabled = false** (smoke-test on demand, $8/PR budget guard-rail)
**Tests:** 120 pass / 0 fail / 5 skip (GDrive/GUI), build 0 errors

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jsboige
jsboige merged commit 6afb08c into master May 28, 2026
3 checks passed
@jsboige
jsboige deleted the infra/cascade-context-split branch May 28, 2026 21:30
jsboige added a commit that referenced this pull request May 28, 2026
…ules) (#372)

Smoke test of "Rules cascade EN-only gpt-5.5" task introduced in PR #371,
validating the max-context narrow-edit approach (FR readonly anchor,
EN editable target).

ChunkSize=8, TakeChunkNb=1 → processed rules 1-8, LLM made 7 surgical edits
on rule "L'École des Menteurs" (rule 1 of the deck), aligning EN to the
refined FR (PR #366):

- Components/Game overview/Setup/Round sequence/The count: section headers
  rephrased to match FR clarity (was: Game material/Game summary/Installation/
  Course of a round/The points count)
- "smooth talker" → "embromador" (proper game term, consistent with FR)
- Added missing emoji codes in win/tie conditions (🥇👇 🥈👇 ✅🎭 etc.)
- Filled in 8 missing "Draws" subsection bullets (winner draws 0, jurors
  draw 1, embromador's-card-finders draw 1 extra...)
- Filled in 6 missing variant bullets (skit interventions, drawer-as-winner,
  multi-card embromador, final-scenario rule)
- Title alignment: "The school of liars" → "Argumentative mixology bingo"
  (matches FR "Le Bingo mixologie argumentative" — was a leftover from a
  prior rule variant)

API cost: ~$0.50, duration 36s, 0 errors, 0 quota issues.
Validates EN-only cascade pattern for follow-up smoke tests on Scenarii/
Virtues/Fallacies.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant