docs(i18n): complete frozen backend string frontier review

This commit is contained in:
cesnimda
2026-11-19 21:07:56 +01:00
parent 61dcb894f8
commit aaf66ca24a
3 changed files with 126 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
owner,role,lines
CvVariantController,route-policy,14 15 47 79 93 101 109 124 133 161 169 178 187 195 214 224 235 253 273
CvVariantController,stable-api-or-source,142 155 246 265 289
CvVariantController,generation-policy,291 292 295-309 311-316
CvVariantController,synthetic-theme-example,324 325 328-330
CvVariantController,user-content-composition,352
CvVariantController,render-fallback,356
ProfileCvController,route-policy,16 17 169 211 254 270 318 338 360 372 470 476 519 541 563
ProfileCvController,file-format,22-29 538
ProfileCvController,parser-heading-aliases,34-94
ProfileCvController,stable-api-or-source,99-101 186 199 203 223 237 298 306 328 356 368 389 444 450 493 507 556 571
ProfileCvController,user-content-composition,509 581 587 592 626 634 641 660
ProfileCvController,heading-matching,629 631
ProfileCvController,render-fallback,514 664
ProfileCvController.Import,route-policy,71 152 165 178
ProfileCvController.Import,file-format,87 114 131 173 174
ProfileCvController.Import,stable-api-or-source,15 30 36 39 41 43 51 52 64 65 91 93 161 162 197 199 217 227 232
ProfileCvController.Pipeline,user-content-composition,25 33 41
ProfileCvController.Pipeline,parser-or-extraction-metadata,77 87 100 109 118 120 162 163
ProfileCvController.Pipeline,file-format,184 203 214-221 226 241 242 508
ProfileCvController.Pipeline,processing-message,243 244 553 557
ProfileCvController.Pipeline,generation-policy,467 484
ProfileCvController.Pipeline,stable-api-or-source,265 322 382 418 419 427 431 437 443 448 458 463 480 497 498 536 562 563 570 584 598 607
AdminProcessingController,route-policy,15 16 20 113 121
AdminProcessingController,stable-api-or-source,43-46 52 55 61 62 68-70 79 92 93 102-108 110 137 142 152 158 173 187 211 212 213 218
AdminProcessingController,user-content-truncation,192 193 202 203
AdminSystemController,route-policy,11 12 102 103 110 123 131 147 150
AdminSystemController,configuration-or-format,60-65 67 68 70 134 135 160 171 172 237-239 255-257 291 340-342
AdminSystemController,admin-display,95 188 273 277 281 288
AdminAuditController,route-policy,11 12 117
AdminAuditController,stored-event-or-privacy,55 136 138 148 154 164 171 185
AdminAuditController,persisted-audit-message,188
AccountLifecycleController,route-policy,13 14 22 39 40 62 63
AccountLifecycleController,confirmation-contract,34 49
AccountLifecycleController,stable-api-or-source,72 80
BillingController,route-policy,12 42 43 58 59 104 105 132
BillingController,stable-api-or-source,15 47 65 76-78 111 121 147 204 228-230 232
TwoFactorController,route-policy,21 54-56 90-92 124-126 152 153 162-164 184 186 225 226 243 244 267 268
TwoFactorController,credential-wire-format,40 77-79 85 222 339
UsersController,route-policy,14 15 143 193 221 222 253 254
UsersController,stable-api-or-source,69 73 78 87 88 95 106 107 128 137 149 155 156 199 200 211 213 231 257 260
1 owner role lines
2 CvVariantController route-policy 14 15 47 79 93 101 109 124 133 161 169 178 187 195 214 224 235 253 273
3 CvVariantController stable-api-or-source 142 155 246 265 289
4 CvVariantController generation-policy 291 292 295-309 311-316
5 CvVariantController synthetic-theme-example 324 325 328-330
6 CvVariantController user-content-composition 352
7 CvVariantController render-fallback 356
8 ProfileCvController route-policy 16 17 169 211 254 270 318 338 360 372 470 476 519 541 563
9 ProfileCvController file-format 22-29 538
10 ProfileCvController parser-heading-aliases 34-94
11 ProfileCvController stable-api-or-source 99-101 186 199 203 223 237 298 306 328 356 368 389 444 450 493 507 556 571
12 ProfileCvController user-content-composition 509 581 587 592 626 634 641 660
13 ProfileCvController heading-matching 629 631
14 ProfileCvController render-fallback 514 664
15 ProfileCvController.Import route-policy 71 152 165 178
16 ProfileCvController.Import file-format 87 114 131 173 174
17 ProfileCvController.Import stable-api-or-source 15 30 36 39 41 43 51 52 64 65 91 93 161 162 197 199 217 227 232
18 ProfileCvController.Pipeline user-content-composition 25 33 41
19 ProfileCvController.Pipeline parser-or-extraction-metadata 77 87 100 109 118 120 162 163
20 ProfileCvController.Pipeline file-format 184 203 214-221 226 241 242 508
21 ProfileCvController.Pipeline processing-message 243 244 553 557
22 ProfileCvController.Pipeline generation-policy 467 484
23 ProfileCvController.Pipeline stable-api-or-source 265 322 382 418 419 427 431 437 443 448 458 463 480 497 498 536 562 563 570 584 598 607
24 AdminProcessingController route-policy 15 16 20 113 121
25 AdminProcessingController stable-api-or-source 43-46 52 55 61 62 68-70 79 92 93 102-108 110 137 142 152 158 173 187 211 212 213 218
26 AdminProcessingController user-content-truncation 192 193 202 203
27 AdminSystemController route-policy 11 12 102 103 110 123 131 147 150
28 AdminSystemController configuration-or-format 60-65 67 68 70 134 135 160 171 172 237-239 255-257 291 340-342
29 AdminSystemController admin-display 95 188 273 277 281 288
30 AdminAuditController route-policy 11 12 117
31 AdminAuditController stored-event-or-privacy 55 136 138 148 154 164 171 185
32 AdminAuditController persisted-audit-message 188
33 AccountLifecycleController route-policy 13 14 22 39 40 62 63
34 AccountLifecycleController confirmation-contract 34 49
35 AccountLifecycleController stable-api-or-source 72 80
36 BillingController route-policy 12 42 43 58 59 104 105 132
37 BillingController stable-api-or-source 15 47 65 76-78 111 121 147 204 228-230 232
38 TwoFactorController route-policy 21 54-56 90-92 124-126 152 153 162-164 184 186 225 226 243 244 267 268
39 TwoFactorController credential-wire-format 40 77-79 85 222 339
40 UsersController route-policy 14 15 143 193 221 222 253 254
41 UsersController stable-api-or-source 69 73 78 87 88 95 106 107 128 137 149 155 156 199 200 211 213 231 257 260
+16
View File
@@ -0,0 +1,16 @@
# B07 CV, administration and account language boundaries
The remaining 435 quoted lines from the frozen B03 inventory have a source-level disposition. B05 covers 149 mail lines, B06 covers 124 document and discovery lines, and B07 covers the remaining 435. A multiset comparison covers all 708 historical lines across the 28 owners exactly once. This closes that inventory queue. New code, quote-free text, downstream presenters, actual translations and native qualification are separate work.
## Findings for implementation
- **CV section editing.** The preview path matches section headings using an ASCII character range. A heading such as `Expérience` or one in Greek can fall outside that range. The parser alias table already includes Nordic names. Test selected-section replacement and preservation of adjacent text on the normal preview route before claiming multilingual editing works.
- **Generated content.** CV rewrite action names, structured output instructions and source-language preservation rules belong to the generation contract. A translated UI must preserve action identity, user facts, requested output language and consent. Theme example names, headlines and contact details are synthetic content. The fallback names “Your Name” and “General CV” require a document-language decision.
- **Operational copy.** Four reviewed extraction and retry lines contain English processing messages. Admin status contains database warnings, an exception-class parameter and a fallback suffix. The status of the call and its typed parameters should remain available separately from any localised display. Provider errors and sensitive configuration values must stay outside translation catalogues.
- **Persisted history.** The audit undo path stores a note combining an event ID, a type and a message. Preserve the historical record. Future presentation needs a structured event contract if it is to display newly generated notes in the viewer’s language.
- **Account confirmation and identity.** Deletion currently requires an exact confirmation composed from a fixed token and the user’s email. Instructions may be translated while the server’s challenge and comparison must agree. Billing callback values, roles, authentication identifiers and recovery-code formats similarly have protocol consumers.
- **Processing monitor.** Operation kinds, worker names, failure codes and lease states are stable values. Presenters can translate labels while retaining those identifiers for filtering and actions. Existing truncation of user names and email addresses is separate from UI copy.
The [source partition](B07_CV_ACCOUNT_FRONTIER.csv) uses inclusive line ranges on the B03 source. The integrated source at `245f2fea` is identical for ten of these owners. `UsersController` has a 13-line projection insertion. Every reviewed line maps byte-for-byte after that insertion. Neither the source register nor its tests read runtime credentials, contact data or identity storage.
`python -B docs/i18n/00/B07_frontier_tests.py` passed three tests for complete coverage, source alignment and the selected sensitive/display boundaries. The European programme continues to cover all 24 official EU languages and the wider 60 candidate locales. No application language was activated.
+69
View File
@@ -0,0 +1,69 @@
"""Verify the complete frozen B03 quoted-line frontier and the B07 application bindings."""
import difflib
import unittest
from collections import Counter
from pathlib import Path
from B05_mail_tests import B03_SHA, blob, research_json, rows
APPLICATION = '245f2feaa8bee2db8f5da0797b3e33f6ef8b056e'
def entries(filename):
for row in rows(filename):
for token in row['lines'].split():
first, _, end = token.partition('-')
for line in range(int(first), int(end or first) + 1):
yield row['owner'], line, row['role']
class CompleteFrontier(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.prior = research_json('B03_CENSUS.json', B03_SHA)
cls.owners = {Path(r['source']).stem: r for r in cls.prior['ownerCoverage']}
cls.review = list(entries('B07_CV_ACCOUNT_FRONTIER.csv'))
def test_each_original_line_was_reviewed_once(self):
expected = Counter((name, line) for name, row in self.owners.items()
for line in row['otherQuotedLinesNotClassified'])
self.assertEqual(len(expected), 708)
self.assertEqual(len(self.review), 435)
self.assertEqual(len({owner for owner, _, _ in self.review}), 11)
combined = self.review + list(entries('B06_DOCUMENT_DISCOVERY_FRONTIER.csv')) + list(entries('B05_MAIL_FRONTIER.csv'))
self.assertEqual(Counter((o, n) for o, n, _ in combined), expected)
def test_bound_source_and_current_line_identity(self):
for owner in {name for name, _, _ in self.review}:
path = self.owners[owner]['source']
earlier = blob(self.prior['sourceCommit'], path).decode('utf-8-sig').splitlines()
current = blob(APPLICATION, path).decode('utf-8-sig').splitlines()
if owner != 'UsersController':
self.assertEqual(earlier, current, owner)
continue
changes = [entry for entry in difflib.SequenceMatcher(None,earlier,current,autojunk=False).get_opcodes()
if entry[0] != 'equal']
self.assertEqual(len(changes),1)
kind, start, stop, new_start, new_stop = changes[0]
self.assertEqual((kind,start,stop,new_stop-new_start),('insert',57,57,13))
for name,line,_ in self.review:
if name==owner:
offset = 13 if line > start else 0
self.assertEqual(earlier[line-1],current[line+offset-1])
def test_sensitive_and_visible_boundaries(self):
def line(owner, n):
return blob(APPLICATION,self.owners[owner]['source']).decode('utf-8-sig').splitlines()[n-1]
self.assertIn('startswith',line('CvVariantController',311).lower())
self.assertIn('Preserve the source language',line('CvVariantController',315))
self.assertIn('"General CV"',line('ProfileCvController',514))
self.assertIn('[A-Z][A-Za-z &/]+',line('ProfileCvController',629))
self.assertIn('ErrorMessage',line('ProfileCvController.Pipeline',431))
self.assertIn('(fallback)',line('AdminSystemController',95))
self.assertIn('Undid event',line('AdminAuditController',188))
for n in [34,49]:
self.assertIn('DELETE {user.Email}',line('AccountLifecycleController',n))
if __name__ == '__main__':
unittest.main()