Mods.RogueTrader.Brevity/SPEC
Mods.RogueTrader.Brevity — Product specification
The complete product, written down before it is built (owner, 2026-11-30, MAT-T360). Every epic, feature and story the finished product will have is listed here, built or not. The ticket tree mirrors this file one to one: every ID below is a ticket. Nothing gets built unless it is here, and anything taken out of here is closed wont-do in the tree.
docs/RELEASE.mdsays which part of this the current milestone delivers.
1. Product definition
In docs/ECOSYSTEM.md (the workspace's source), this repo is a product in the Mods family, a Rogue Trader mod whose common build code comes from Mods.RogueTrader.Shared; its two dialogue tools install like every MindAttic app.
Brevity makes Warhammer 40,000: Rogue Trader's dialogue shorter. A pipeline exports every dialogue line, an LLM shortens it while keeping meaning, voice and markup, and a Unity Mod Manager mod swaps the shorter English text in at runtime without touching the game's files. It is for players who find the game's dialogue too long. The finished product is the 3.0.0 text for the base game and its three story DLCs, live on Nexus Mods mod 651 with a page that shows the text players actually get, and the pipeline tools deployed on R:.
2. Scope boundary
2.1 In the product
- Dialogue export, LLM simplify with validation and an append-only cache, the runtime overlay mod.
- Released text (1.0.0, 2.0.0, 3.0.0) with a change list per release.
- Nexus packaging and publishing; before/after screenshot tools; the tools deployed to
R:\MindAttic\Apps.
2.2 Never in the product
- Translation into other languages: English only (BIBLE §3).
- Story, blueprint or save changes (BIBLE §3), and voice-over editing.
- Modifying
enGB.jsonon disk (RTB-LAW-1). - Automatic re-runs of the whole simplify pass or a speculative 4.0.0 polish: a player report of broken lines is a fix ticket, not a new release cycle.
- Open-ended "exhaustive bughunt" passes (RTB-T272, wont-do).
3. Users and roles
- Player: installs the mod (Vortex or by hand) and reads shorter dialogue; turns it off to see the original.
- Owner: runs the export and simplify tools, releases on Nexus, retakes page screenshots.
4. Requirements
Status is built (closed ticket, with evidence) or MS-74: the milestone in §7 that delivers it.
E1. Dialogue pipeline — RTB-T284 — built
F1.1 Dialogue export — RTB-T285 — built
- S1.1.1 Export every line — RTB-T3 — built As the owner, I want every cue and answer of the base game and DLCs exported as one JSONL row each, so that the simplify step sees the whole game. Acceptance: Given the modding template and
enGB.json, when DialogueExport runs, thendialogue.jsonlholds one row per cue or answer with its speaker and string key. - S1.1.2 Skill-check labels — RTB-T261 — built Acceptance: Then a check's outcome label carries to the first lines it leads to, and an answer's own check wins.
F1.2 LLM simplify — RTB-T286 — built
- S1.2.1 Shorten with Claude — RTB-T4 — built As the owner, I want each conversation shortened by Claude with markup validated and results cached, so that reruns only send changed lines. Acceptance: Given a line whose markup tokens differ from the original, then it is rejected (RTB-LAW-2); given an unchanged line and prompt version, then it is not sent again (RTB-LAW-3).
- S1.2.2 DialogueSimplify through Legion (debt) — RTB-T294 — waits on Legion's proposed M.LEGN-T145 (owner). The tool keeps its own Anthropic client and reads
ANTHROPIC_API_KEY; ECOSYSTEM gives model calls to Legion and keys to Vault, as §5 already says.
F1.3 Runtime overlay — RTB-T287 — built
- S1.3.1 Overlay in memory — RTB-T7 — built As a player, I want the shorter text swapped in at runtime and the original back when I turn the mod off, so that nothing on disk changes. Acceptance: Given the mod on, then dialogue shows the shortened text; when I turn it off mid-conversation, then the original text returns at once.
E2. Releases on Nexus — RTB-T288 — built
F2.1 Nexus package and publish — RTB-T289 — built
- S2.1.1 Vortex-ready package — RTB-T238 — built
- S2.1.2 Publish workflow — RTB-T263 — built
- S2.1.3 Vortex staging refresh — RTB-T256 — built Acceptance: Given a Vortex deploy, then the latest built mod is what runs, not an older Nexus file.
F2.2 Polished text releases — RTB-T290 — built
- S2.2.1 3.0.0 polish — RTB-T250 — built: 5,633 stilted lines restored to fluent, still-short English (c0cbbbd).
- S2.2.2 Change list per release — RTB-T254 — built:
docs/dialogue-polish-changes-v1..v3.md.
F2.3 Screenshot capture tools — RTB-T291 — built
tools/capture_dialogue.pyandtools/pair_screenshots.pymake before/after pairs under the Media root (340d690, 58d340f).- Drop the old capture root (debt) — RTB-T295 — built. Evidence: 9b8e1d4.
E3. Nexus page refresh (polish and release) — RTB-T277 — MS-74
F3.1 Before/after screenshots — RTB-T278 — MS-74
- T3.1.1 Retake the pairs — RTB-T255 — MS-74 Acceptance: Then each before/after pair shows the 3.0.0 polished text, not the old stilted lines.
F3.2 Live page images — RTB-T279 — MS-74
- T3.2.1 Swap the page images — RTB-T280 — MS-74 Acceptance: Then Nexus mod 651 shows the retaken pairs and
docs/NEXUS_PAGE.mdlists them. - Membrane: the page shows what 3.0.0 says — RTB-T296 — MS-74. The retaken pairs are the live gallery, in the order and with the captions the page lists (owner: game and Nexus account).
E4. Dialogue tools in the standard install — RTB-T292 — built
F4.1 Tool deploy — RTB-T293 — built
- T4.1.1 Deploy the tools — RTB-T276 — built (part of the Agency rollout MAT-T318, linked related) Acceptance: Then DialogueExport and DialogueSimplify exist and start in
R:\MindAttic\Apps\Mods.RogueTrader.Brevity\{Debug,Release}; BrevityMod stays on the Nexus flow. Evidence: c53991c (run menu,.agent/publish.json);run.ps1 -Redeployon 2026-12-01 wrote both folders (Release: self-contained win-x64 single-file, 71 and 81 MB); each exe started from both folders and reached its own input check. The first Release publish on a machine restores the net9.0 win-x64 runtime packs intoNUGET_PACKAGES, which is slow when that drive is busy; later publishes reuse them.
5. Non-functional requirements
- Platform: Rogue Trader on Windows with Unity Mod Manager (Ctrl+F10); tools on .NET; English only.
- The cache is append-only and keyed by text hash plus prompt version; the Claude key comes from the Vault, never the repo.
- Every release has its changed-lines list (RTB-LAW-4).
6. Interfaces and dependencies
- Platform (per
docs/ECOSYSTEM.md): common code: Mods.RogueTrader.Shared; shipping: the shared run menu for the tools (RTB-T292) and Nexus for the mod; the plan: MindAttic.Tickets. - Mods.RogueTrader.Shared: props,
LocalizationOverlay,BlueprintArchive. - Claude API (Batches or sync) through DialogueSimplify, its own client until RTB-T294 moves it onto MindAttic.Legion.
- Nexus Mods mod 651 through
.github/workflows/publish.yml. - MindAttic.Media.Capture for screenshots; MindAttic.Agency run menu and R: deploy (MAT-T318).
7. Release sequence
- MS-74 "Brevity 3.0.0 on Nexus, working, page current" (active,
docs/RELEASE.md): epics RTB-T277 (900) and RTB-T292 (800). This is the finished product: the text is complete at 3.0.0, so no later milestone follows.
8. Change log
| Date | Change to scope | Ticket |
|---|---|---|
| 2026-11-30 | Specification written from overview, BIBLE, RELEASE, the code and the ticket history; built work filed as epics RTB-T284, T288; the tools-on-R: deploy (RTB-T276) moved into MS-74 under new epic RTB-T292 | MAT-T388 |
| 2026-11-30 | MAT-T462 single-source pass: 2 renamed (RTB-T255, RTB-T292), 0 buckets dissolved, 0 requires added, 0 platform re-points | MAT-T474 |
| 2026-11-30 | Build-up comb (MAT-T484): debt RTB-T294 (DialogueSimplify's own model client; requires Legion's proposed M.LEGN-T145) and RTB-T295 (dead capture-root fallback); capture tools reassigned to F2.3 (R12); membrane RTB-T296 for E3 | RTB-T294 |
| 2026-12-01 | E4 built: both tools deploy to R: Debug and Release through the shared run menu; run.ps1 seated in the ledger (7 of 7)
|
RTB-T276 |