Files
jobtrackingapp/docs/i18n/00/BACKEND_MESSAGE_CENSUS_B02.md
T

7.4 KiB
Raw Blame History

B02: upstream reasons, usage limits and notification producers

17 November 2026. Bounded I18N-00 research on codex/i18n-message-census, following accepted B01 5d8d5d6ff7467de11ba2ca9526f87bca196a1b4b. All application evidence is read from immutable A3 07fbd5f72c3605d6b2b5b31332ba5786f9446309, not mutable working files. The inventory adds 23 source loci: 20 controlled-message loci and three forwarding boundaries. Fifteen source blobs support the seven prose-producing owners, two DTO boundary owners and additional caller/type evidence. Ten named source traces contain 64 evidence-line occurrences; repeated trace lines are not additional messages.

The European target remains EU24 plus wider European language/script/market coverage. B02 supplies actual upstream source contracts left open by B01; it does not translate or publish a locale, change source values, accept a surface or close I18N-00.

Producer and consumer evidence

Owner Loci Confirmed source-level consumers or boundary
RulesEngine.Evaluate 4 FollowUpDecision.Reason enters reminder BuildReminderReason and JobApplicationsController.BuildJobApplicationDto; scheduled-date and workflow overrides can take precedence
AiUsageMeter.EnsureWithinLimit 2 EnsureCanReserveAsync/ReserveAsync, queued admission rethrow, synchronous metering and workspace429 paths
MeteredSummarizerService.MeterAsync 1 Throws AiUsageLimitException; inspected exception handler forwards message and code in429 ProblemDetails
UserOperationStore.CreateTerminalNotification 3 Success/failure/cancellation/recovery callers persist generic title/message, then notification store/API DTO expose them
EmailSendAttemptStore.ReconcileAbandonedAsync 3 Persists stopped/uncertain notification title/message and fixed correspondence route; no private email content is inserted here
SavedJobSearchAlertHostedService.ProcessOwnerAsync 6 Existing EN/Bokmal singular/plural title/message frames persisted with private saved-search name/count; store/API forwards them
AiUsageLimitExceptionHandler.TryHandleAsync 1 Fixed ProblemDetails title plus separately forwarded limit.Message and limit.Code
JobApplicationsController.BuildJobApplicationDto 1 Reason/override forwarding boundary
NotificationsController.ToDto 2 Persisted Title and Message forwarding boundaries
Total 23 Source contracts; no runtime execution

sourceLiteralSegments are raw lexical captures. Every record partitions them into candidate/non-translatable/unresolved arrays: 32 occurrences = 26 candidate prose/template segments + six invariant code/kind segments + zero unresolved captured segments. Candidates include existing EN and NB source text; they are not fresh translations or linguistic approvals. Zero unresolved captures does not mean upstream value domains or caller coverage are complete. The three forwarding records capture no literal and explicitly retain unresolved upstream/existing-data domains. Trace-only route, locale and status literals are evidence of control flow, not translator candidates.

Parameterized rule-day thresholds are int; entitlement call limit is int and token limit is long, bound to model declarations in the type trace. Saved-search count/name types are described from their expressions; their producer/model declarations were not qualified in this batch. Actual search names, job/CV/ad text, account identifiers, persisted message rows, trace identifiers and provider payloads were never loaded or exported. Message placeholders/proper names remain unchanged. Lexical segment capture retains source escapes and is not a language parser; the exact expression/hash remains authoritative, and later nested/interpolated cases must be marked unresolved rather than guessed.

Source findings

ID Evidence Remaining contract
B02-F01 RulesEngine L75/L83/L92/L100; reminder L70/L86/L103; job DTO L441 Four controlled English reasons use numeric d suffixes. Define whole-sentence/plural day formatting and separate invariant status conditions. DTO override and other workflow reason producers remain outside the bounded engine domain.
B02-F02 AiUsageMeter L124/L126; MeteredSummarizer L73; usage handler L16–21; workspace L79–81; queued admission L76/L80 Fixed English limit prose travels through multiple response shapes. Preserve stable codes and numeric allowances while qualifying recipient-aware plural/number formatting (N0 currently has no explicit culture here). Queued endpoint conversion and final frontend rendering remain untraced.
B02-F03 UserOperationStore L559–570 and callers L269/L325/L354/L391/L503 Terminal notifications persist generic title/message strings independently of kind; no locale identity is selected by this constructor. Do not translate stored kind/status identifiers or treat old persisted rows as newly qualified translated content.
B02-F04 EmailSendAttemptStore L98/L100/L116–121 Failed-before-delivery and uncertain delivery are distinct events with distinct safety instructions. Preserve draft review and the explicit prohibition on automatic resend for uncertain delivery. This is message classification, not email-delivery qualification.
B02-F05 SavedJobSearchAlertHostedService L47–50/L69–78; notification DTO L117/L118 Existing locale branch compares exact nb; EN/NB frames use singular versus other counts. Verify alias/canonical-preference behavior separately before implementation; this census neither changes aliases nor asserts a runtime defect. Keep search name private and source advertisements unchanged. Native review, additional European plural cases and stored-message locale policy remain open.

Validation and remaining scope

Root independently repeated all102 source/file/trace bindings and23 segment partitions; the validation receipt retains the32/26/6/0 occurrence accounting and explicitly grants no locale acceptance. B01, application, catalogue and schema diffs remain empty. No product/runtime/native tests were run for this research increment.

An inline Python standard-library check re-read the 15 exact Git blobs and verified raw-byte SHA256, line count, 23 record expression/line hashes and 64 trace-line expression/hashes: 102 binding checks passed (15 + 23 + 64). Twenty-three partition/subset/disjointness checks passed; record IDs/source loci are unique, all referenced trace IDs exist, category totals and 32/26/6/0 segment totals reconcile. JSON parsed. No runner/dependency was added; temporary preparation lives outside the repository on E:.

This does not enumerate every caller or notification construction pattern: exact named calls and literal constructors were inspected, while aliases/factories/reflection/previous database rows remain outside the claim. Frontend rendering, JobApplications workflow overrides, full Identity error domains, other AI failure providers and complete backend/public/frontend census remain open. B01's eight findings/110 loci are retained independently; B02's five findings/23 loci are not additional runtime passes and the historical 188 frontend review is not repeated. Native/legal/device/AT/model/provider/runtime tests were not run. No network, build, parser, model, database or service was invoked. Formal stages01–08 and locale-publication gates remain unchanged; Production NO-GO.