66 lines
12 KiB
Markdown
66 lines
12 KiB
Markdown
# B03: document, mail, discovery and operational message boundaries
|
||
|
||
18 November 2026. I18N-00 research only, branch `codex/i18n-message-census-b03`, research base `ea18422a3f94b6bf970cedace4f87d3f8f51eb0a`. Application evidence is pinned to **`1db5f488f6138e4f0f33749452b7d9f47658f4b0`**, read with `git show`, never substituted with the older research checkout or changing A3 files. The full frozen I18N master and I18N-00 prompt, B01/B02 inventories/reports, Q01 and handoff were read. I18N-00 permits inventory/documentation and schema research; it does not authorise runtime stages 01–08.
|
||
|
||
The [inventory](B03_CENSUS.json) adds **346 source loci in 28 named backend owners** and ten source-level producer/consumer associations. **38 raw Git blobs** bind the producer owners and additional transport/client evidence. Each locus retains the full expression, line, UTF-8 line hash, file hash, namespace, owner/declaration context, boundary-specific translator context, raw lexical segments, provisional classification, parameter expressions and sensitivity limits. Actual user/provider/account/document values were never loaded or exported.
|
||
|
||
## Scope and exact accounting
|
||
|
||
| Namespace | Source loci | Bounded owners |
|
||
| --- | ---: | --- |
|
||
| Documents | 183 | CV variant/preview, profile/import/pipeline, application assets, document index, public CV, Career Profile, attachments, letter renderer |
|
||
| Communications | 85 | Send/drafts/correspondence, Gmail/Graph/IMAP controllers and provider facades |
|
||
| Discovery | 5 | Existing discovery validation/provider-unavailable responses and import-result boundary |
|
||
| Operations | 16 | Processing metadata boundary, system/maintenance errors, audit Undo results |
|
||
| Account/billing | 57 | Account lifecycle, billing, two-factor and admin user/mail operations |
|
||
| **Total** | **346** | The JSON owner coverage table enumerates all 28 files, including two provider facades with zero selected prose/error loci |
|
||
|
||
The record unit is a selected source line, not a unique sentence or translation key. Sixteen owned-payload/empty-status loci and two private-content boundaries have no literal message. Duplicated validation sites remain separate source loci; trace lines are not extra messages. The source-level associations have **80 evidence-line occurrences**, bound independently to exact expressions/hashes. Repeated occurrences are not claimed as distinct files or unique lines.
|
||
|
||
Raw lexical captures partition exactly: **402 occurrences = 258 provisional prose/label segments + 61 invariant segments + 83 unresolved segments**. Diagnostic templates, synthetic preview facts and model-instruction frames remain unresolved rather than being exported as UI translations. The document filename is also unresolved. Candidate classification is deliberately provisional: C# lexical captures do not resolve nested interpolation, raw strings, external Identity/provider message domains, or actual display reachability. Protected code/property/proper-name tokens are retained separately inside candidate prose. Placeholder expressions are recorded, but their declared types still require focused declaration/caller review.
|
||
|
||
All selected loci under the versioned boundary predicate are accounted for. **708 other quote-bearing lines remain explicitly listed per owner** in `otherQuotedLinesNotClassified`. That frontier includes route/schema/format/CSS/prompt literals and additional context; it is not 708 known missing messages. The predicate plus reviewed explicit continuation lines is a reproducible scope definition, not an AST, a whole-file every-string inventory, or proof that all critical surfaces are complete. This batch must not close full I18N-00.
|
||
|
||
## Source findings and European expansion implications
|
||
|
||
| ID | Bound evidence | Implication for the gated implementation plan |
|
||
| --- | --- | --- |
|
||
| B03-F01 | `draft-validation-to-presenter`: draft validation L220/222/224 enters create/update L92/128; the inbox presenter uses `getApiErrorMessage` | Controlled recipient/subject/body validation can bypass translated fallback copy. Preserve numeric limits and field identities, then assign one deliberate server/client display owner; do not bulk-translate arbitrary exception text. |
|
||
| B03-F02 | `cv-revision-code-client-display`: variant response L140/202/212; editor code checks L227/315/548 | Stable `cv_revision_required`/`cv_revision_conflict` codes already drive client state. Translate display without changing revision/conflict meaning or relying on English text comparison. Other error paths use server-message presentation. |
|
||
| B03-F03 | `discovery-masks-provider-detail`: backend L46/76/125; frontend catch paths L121/140/156 | Existing Norway discovery deliberately renders local fallback keys rather than provider/validation details. Translating backend strings alone does not establish visible coverage. Source/job-ad content and the future GJ country/provider programme remain separate and gated. |
|
||
| B03-F04 | `processing-outcome-mail-and-history`: persisted exception/failure assignments L383/428/537/564/571, failure mail L655/659 and profile consumers L506/890/892 | Controlled outcomes and upstream exceptions share persisted string boundaries. Mail embeds run trigger/status/id, error and ISO completion time. Define locale-at-creation/live-display and private-parameter policy before expanding languages; do not translate original CV text or exception payloads as catalogue entries. |
|
||
| B03-F05 | `admin-security-mail-transport`: user-controller L237/238/263/265/273 and SMTP contract L8/22 | Security and test-mail frames lack a recipient-locale argument in the inspected transport contract. Token-bearing reset URL, supplied subject/body and runtime timestamp remain opaque/private parameters. Native security wording and recipient-language ownership require separate review. |
|
||
| B03-F06 | `imap-send-failure-boundary`: provider L61 and send controller L209/210 | The IMAP unsupported-send prose is an exception producer, while the controller returns its category in `SendResult`. Do not assume every exception string is displayed. Provider transport errors and private provider data need their own complete domain inventory. |
|
||
| B03-F07 | `admin-error-versus-diagnostic-display` and `processing-stable-code-and-private-labels` | Admin HTTP errors use server-message presentation; AI `lastError` is displayed separately. Processing task/state/failure labels are mapped through local keys while job/document names remain original data. Keep diagnostics, invariant codes and private labels distinct from translator-owned text. This is classification, not security acceptance. |
|
||
| B03-F08 | `letter-output-language-and-aria`: renderer L36/37/42/56/59, asset render calls L300/309 | Document settings own HTML language and physical-document ARIA labels. The current explicit Bokmål branch otherwise falls back to English. UI locale must not become the output owner; the fixed `cover-letter.pdf` filename needs a separate future policy. No PDF/font/native rendering was executed. |
|
||
| B03-F09 | `persisted-notification-client-boundary`: popover L204/206; earlier B02 producer contracts | The client displays persisted title/message strings. Changing interface locale does not itself translate existing rows. A persisted-message strategy is still needed; this batch does not replay notifications or retroactively refresh B02 semantic findings. |
|
||
| B03-F10 | Preview samples and profile rewrite frames remain unresolved in the segment partition | Sample engineering career facts and AI instruction frames are neither interface chrome nor real career facts to rewrite on a locale switch. European cross-occupation fixtures and independently owned output-language instructions need deliberate later qualification. |
|
||
|
||
The newer-source comparison is explicit in the inventory: **B01 7/7 source blobs are byte-identical** to its recorded `07fbd5f7` baseline; **B02 14/15 are identical**. `SavedJobSearchAlertHostedService.cs` has changed. Its older B02 evidence remains historical and is not promoted to current-source acceptance. Source equality alone also does not requalify changed external consumers, native language or runtime behaviour. B01/B02 records, decisions and counts were not modified or added to B03 totals.
|
||
|
||
## Locale scope, QA and reproduction
|
||
|
||
The target remains **all 24 EU official language groups and the unchanged 60 planned candidate tags**, including wider national/script/regional variants. They are candidate tags, not 60 distinct languages or shipped translations. B03 checks the exact catalogue/schema hashes retained by Q01, candidate count, EU language groups and planned surface statuses. The existing Q01 Ajv validator was also invoked directly: 60 candidates/24 groups passed, all surfaces planned; `cnr-ME` canonicalises to `sr-ME` observationally, with no identity or alias decision. No catalogue/schema was changed.
|
||
|
||
From repository root:
|
||
|
||
```powershell
|
||
rtk proxy python docs/i18n/00/B03_inventory.py
|
||
rtk proxy python docs/i18n/00/B03_tests.py -v
|
||
# Explicit research regeneration only; writes B03_CENSUS.json, not app/catalogue files:
|
||
rtk proxy python docs/i18n/00/B03_inventory.py --build
|
||
```
|
||
|
||
The validator requires the recorded Git objects locally and fails rather than fetching missing objects or reading mutable application files. No package installation is needed. It independently re-reads immutable Git blobs and recomputes the declared selector, contexts, raw segments, partitions, placeholders, counts, trace expressions and prior-batch source comparison. This checks faithful deterministic evidence reproduction, not semantic correctness of the selector/classifier. Review the source expression and complete containing declaration before creating translation keys.
|
||
|
||
- [Validation receipt](B03_VALIDATION.json): **384 file/record bindings + 80 trace-line occurrence bindings**, 346 segment partitions and owner/frontier/count reconciliation passed. These are integrity checks, not product tests.
|
||
- [Native Python runner receipt](B03_TEST_RESULTS.txt): **4/4 research-integrity methods passed**, including **15 rejected mutations inside one method**. Mutations cover omitted loci/owners/traces, duplicate loci, source expression/file/line hashes, line number, segments/placeholders, forged native/released status, prior-source equivalence and counts. Do not call this 19 separate tests or add overlapping runs.
|
||
- Positive evidence checks distinguish server fallback masking, stable revision categories, document-language/ARIA ownership and category-only IMAP result handling. They assert recorded source contracts, not executed application behaviour.
|
||
- CLI, Q01 direct catalogue validation and `git diff --check` passed. Source/tool/test/input hashes are retained in the receipt. Graph-first navigation used the existing A3 root graph; actual claims were checked against pinned Git lines. No application source changed, and no graph rebuild or heavy application lane ran for this documentation package.
|
||
|
||
## True remaining blockers
|
||
|
||
Full critical-surface/every-string inventory, translator context and declared parameter typing remain incomplete. The 708-line frontier, unselected controller/service/renderer/middleware surfaces, external Identity/provider domains, frontend JSX/ARIA/non-catalogue text, full prompt/formatter domains and broader Python-sidecar strings need further source review. A regex inventory must never be marketed as completed localisation. Country/legal relationships, reviewer/market priorities, native/device/AT/PDF/font and all per-locale acceptance also remain open.
|
||
|
||
No application/unit/browser/backend/database/model/provider/mail/queue/hosted/production or native-language test ran. No translation, locale release, catalogue status change or approval was made. Phase 10 D02, Product Review, accepted I18N-00 and explicit entry/publication decisions remain mandatory for formal stages 01–08. **I18N-00 remains partial; production NO-GO.** Root owns integration/publication and central records.
|