document-archive: OCR languages become an operator-facing in-app choice (default English-only — Ben 2026-09-07, revising #1146) #1286

Open
opened 2026-09-07 04:29:33 +00:00 by ben · 1 comment
Owner

Why

Ben's ruling, 2026-09-07 (in-session, revising #1146's "OCR languages must include English + te reo Māori"): te reo must not ride every install — not every community using IDSS is Māori. The OCR language set is an operator-facing choice. The default flipped to English-only in the same session's commit (see defaultPaperlessOCRLanguage, internal/clan/paperless.go); this ticket is the CHOOSER.

What to build

An operator-facing OCR-language choice for the Document archive, inside the app, post-install — ruled viable because the set is just part of the rendered closure: changing it is a re-render + redeploy, the DDR 0225 rebuild class ("one apply semantic"), so no pre-install moment is needed and the P4 install flow stays unburdened. The render carrier already exists and is pinned: PaperlessConfig.OCRLanguage / PaperlessLiveSet.OCRLanguage render a carried set verbatim (TestRenderPaperless_OCRDefaultsEnglishCarriesTheChoice); nothing feeds it yet.

Design questions (why needs-design)

  1. Where does it live? There is no per-service settings surface today — this would be the first. Candidates: the service's S5 card growing a settings affordance, or a DS-tier surface. Whichever is chosen becomes the pattern for future per-service settings, so it deserves a wireframe + flow, not an ad-hoc field.
  2. Vocabulary: tesseract pack codes (mri, eng, …) must never be operator-facing — the choice should speak language names (te reo Māori, English, …). Which languages are offered (full tesseract list vs a curated set)?
  3. Honest cost copy: adding a language triggers a ONE-TIME tesseract source rebuild on the gateway (configure-time enableLanguages, measured 45+ min on a 2-vCPU box, #1285) — the apply flow should say so before the deploy, the way Review impact speaks honestly elsewhere.
  4. Retroactivity: Paperless OCRs at consume time — documents scanned BEFORE a language change keep their old OCR. The setting's copy must say this (and whether a re-process affordance is in or out of scope).
  5. Does the same pattern generalise to other language-bearing ports later (LimeSurvey UI language etc.)? Out of scope to build, in scope to not paint into a corner.

Out of scope

  • Building any of it before the design pass.
  • Fleet-wide binary-cache/pre-build stories (separate infra concern).

Parent

#1073 catalogue feature; revises #1146's OCR clause. Context: #1285 (the measurement that surfaced the cost), DDR 0225 (the rebuild-class apply semantic this rides).

## Why Ben's ruling, 2026-09-07 (in-session, revising #1146's "OCR languages must include English + te reo Māori"): **te reo must not ride every install — not every community using IDSS is Māori. The OCR language set is an operator-facing choice.** The default flipped to English-only in the same session's commit (see `defaultPaperlessOCRLanguage`, internal/clan/paperless.go); this ticket is the CHOOSER. ## What to build An operator-facing OCR-language choice for the Document archive, **inside the app, post-install** — ruled viable because the set is just part of the rendered closure: changing it is a re-render + redeploy, the DDR 0225 rebuild class ("one apply semantic"), so no pre-install moment is needed and the P4 install flow stays unburdened. The render carrier already exists and is pinned: `PaperlessConfig.OCRLanguage` / `PaperlessLiveSet.OCRLanguage` render a carried set verbatim (`TestRenderPaperless_OCRDefaultsEnglishCarriesTheChoice`); nothing feeds it yet. ## Design questions (why needs-design) 1. **Where does it live?** There is no per-service settings surface today — this would be the first. Candidates: the service's S5 card growing a settings affordance, or a DS-tier surface. Whichever is chosen becomes the pattern for future per-service settings, so it deserves a wireframe + flow, not an ad-hoc field. 2. **Vocabulary**: tesseract pack codes (`mri`, `eng`, …) must never be operator-facing — the choice should speak language names (te reo Māori, English, …). Which languages are offered (full tesseract list vs a curated set)? 3. **Honest cost copy**: adding a language triggers a ONE-TIME tesseract source rebuild on the gateway (configure-time `enableLanguages`, measured 45+ min on a 2-vCPU box, #1285) — the apply flow should say so before the deploy, the way Review impact speaks honestly elsewhere. 4. **Retroactivity**: Paperless OCRs at consume time — documents scanned BEFORE a language change keep their old OCR. The setting's copy must say this (and whether a re-process affordance is in or out of scope). 5. Does the same pattern generalise to other language-bearing ports later (LimeSurvey UI language etc.)? Out of scope to build, in scope to not paint into a corner. ## Out of scope - Building any of it before the design pass. - Fleet-wide binary-cache/pre-build stories (separate infra concern). ## Parent #1073 catalogue feature; revises #1146's OCR clause. Context: #1285 (the measurement that surfaced the cost), DDR 0225 (the rebuild-class apply semantic this rides).
Author
Owner

This was generated by AI during triage.

Triage ruling — add enhancement category (state needs-design unchanged)

Ruled by agent under ADR 0174 — veto anytime.

Ruling: apply the enhancement category label. This issue already carries the correct state role needs-design (it references a per-service settings wireframe + flow that do not exist yet, and design questions 1–5 are open), but it was missing a category — every triaged issue must carry exactly one category + one state role. It is a new operator-facing feature (an in-app OCR-language chooser), not a defect, so the category is enhancement.

Why a two-way door: a label add, reversible by removing it in one action; it widens nothing on the one-way-door list.

What proves it: the body describes building a new operator-facing surface ("What to build … An operator-facing OCR-language choice"), which is definitionally an enhancement, not a bug.

needs-design is left in place: this stays out of the swarm queue until grill-ux-with-docs / wireframe produce the settings-surface contract.

> *This was generated by AI during triage.* ## Triage ruling — add `enhancement` category (state `needs-design` unchanged) **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** apply the `enhancement` category label. This issue already carries the correct state role `needs-design` (it references a per-service settings wireframe + flow that do not exist yet, and design questions 1–5 are open), but it was missing a category — every triaged issue must carry exactly one category + one state role. It is a new operator-facing feature (an in-app OCR-language chooser), not a defect, so the category is `enhancement`. **Why a two-way door:** a label add, reversible by removing it in one action; it widens nothing on the one-way-door list. **What proves it:** the body describes building a new operator-facing surface ("What to build … An operator-facing OCR-language choice"), which is definitionally an enhancement, not a bug. `needs-design` is left in place: this stays out of the swarm queue until `grill-ux-with-docs` / `wireframe` produce the settings-surface contract.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#1286
No description provided.