@mailwoman/corpus 11.5.0 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/data/address-source-register.json +545 -11
  2. package/data/builds/v0.8.22-wofrank-overlay/OVERLAY_PLAN.json +51 -0
  3. package/data/builds/v0.8.24-everyplace/inputs.json +35 -0
  4. package/data/license-decisions.json +440 -9
  5. package/data/licenses/PROVENANCE.md +27 -18
  6. package/data/licenses/at-bev-adressregister-cc-by-4.0.md +25 -0
  7. package/data/licenses/br-ibge-cnefe-open-data.md +21 -0
  8. package/data/licenses/ca-qc-mrnf-cc-by-4.0.md +29 -0
  9. package/data/licenses/ca-statcan-open-licence.md +41 -0
  10. package/data/licenses/ca-yukon-ogl-2.0.md +19 -0
  11. package/data/licenses/dk-dmikg-cc-by-4.0.md +43 -0
  12. package/data/licenses/jp-mlit-isj-pdl-1.0.md +35 -0
  13. package/data/source-additions.json +90 -0
  14. package/data/source-resolutions.json +3 -2
  15. package/data/training-configs/v8.17.0-stage1-gazetteer-v0822-s42.yaml +557 -0
  16. package/data/training-configs/v8.17.0-stage2-corpus-v0822-s42.yaml +1008 -0
  17. package/data/training-configs/v8.18.0-gazetteer-then-mixture-v0822-s42.yaml +1225 -0
  18. package/data/training-configs/v8.20.0-wofrank-v0822-s42.yaml +863 -0
  19. package/data/training-configs/v8.21.0-outcomes-v0822-s42.yaml +873 -0
  20. package/data/training-configs/v8.22.0-stage1-everyplace-v0824-s42.yaml +374 -0
  21. package/data/training-configs/v8.22.0-stage2-corpus-v0824-s42.yaml +808 -0
  22. package/data/training-configs/v8.22.1-stage1-everyplace-v0824-s42.yaml +376 -0
  23. package/data/training-configs/v8.22.1-stage2-corpus-v0824-s42.yaml +793 -0
  24. package/data/training-configs/v9.0.0-bytestem-v090-s42.yaml +665 -0
  25. package/data/training-configs/v9.1.0-bytestem-global-v091-s42.yaml +710 -0
  26. package/data/training-configs/v9.2.0-bytestem-global-v092-s42.yaml +714 -0
  27. package/data/training-manifests/v0.8.22-wofrank-overlay.json +9000 -0
  28. package/data/training-manifests/v0.8.24-everyplace-overlay.json +9000 -0
  29. package/data/training-manifests/v0.9.0-compact.effective.json +2556 -0
  30. package/data/training-manifests/v0.9.0-compact.json +9000 -0
  31. package/data/training-manifests/v0.9.1-compact.json +9660 -0
  32. package/data/training-manifests/v0.9.2-compact.effective.json +2670 -0
  33. package/data/training-manifests/v0.9.2-compact.json +9660 -0
  34. package/lib/adapters/geonames/features/adapter.ts +29 -11
  35. package/lib/adapters/overture/adapter.ts +26 -6
  36. package/lib/adapters/street/line.ts +6 -5
  37. package/lib/adapters/street/unit.ts +7 -0
  38. package/lib/adapters/wof/admin/json/adapter.ts +38 -3
  39. package/lib/adapters/wof/json-rows.ts +84 -5
  40. package/lib/adapters/wof/sample.ts +42 -6
  41. package/lib/au/adapters/gnaf/source.ts +12 -0
  42. package/lib/build/code-hash.ts +1 -1
  43. package/lib/cjk/foreign-places.ts +1 -1
  44. package/lib/fr/adapters/ban/adapter.ts +57 -8
  45. package/lib/fr/recipes/admin-split.ts +14 -2
  46. package/lib/fr/recipes/lieudit.ts +1 -1
  47. package/lib/fr/recipes/order.ts +14 -5
  48. package/lib/international/recipes/locale.ts +1 -1
  49. package/lib/kr/adapters/localdata/permit-rows.ts +1 -1
  50. package/lib/parquet/schema.ts +7 -0
  51. package/lib/recipes/po/box/cedex/recipe.ts +1 -1
  52. package/lib/recipes/po/box/cedex/vocabulary.ts +4 -4
  53. package/lib/recipes/trailing-region.ts +147 -17
  54. package/lib/synthesizers/po-box.ts +51 -12
  55. package/lib/test-kit/corpus-recipe.ts +3 -0
  56. package/lib/tools/anthropic/batches.ts +221 -0
  57. package/lib/tools/anthropic/labeling.ts +263 -0
  58. package/lib/tools/compact-v9.ts +890 -0
  59. package/lib/tools/fetch/wikidata/vital-places/entities.ts +20 -2
  60. package/lib/tools/fetch/wikidata/vital-places/qrank.ts +5 -4
  61. package/lib/tools/fragment-assay.run.ts +2 -1
  62. package/lib/tools/name-roles/name-roles.run.ts +296 -0
  63. package/lib/tools/name-roles/prompt.ts +253 -0
  64. package/lib/tools/overlay/deletions.ts +1 -1
  65. package/lib/tools/overlay/draw-weight.ts +275 -0
  66. package/lib/tools/place-twins/place-twins.run.ts +528 -0
  67. package/lib/tools/place-twins/prompt.ts +276 -0
  68. package/lib/tools/prominent-shapes/prominent-shapes.run.ts +420 -0
  69. package/lib/tools/prominent-shapes/prompt.ts +189 -0
  70. package/lib/tools/prominent-shapes/read-seeds.ts +286 -0
  71. package/lib/tools/prominent-shapes/seeds.ts +281 -0
  72. package/lib/tools/prominent-shapes/validate.ts +563 -0
  73. package/lib/tools/source-register/build.ts +1 -0
  74. package/lib/training/config/admission.ts +9 -2
  75. package/lib/training/config/schema.ts +68 -1
  76. package/lib/types.ts +23 -0
  77. package/lib/us/adapters/usgov/usgs-structures/adapter.ts +103 -6
  78. package/lib/utils/split.ts +1 -1
  79. package/out/adapters/geonames/features/adapter.d.ts +2 -2
  80. package/out/adapters/geonames/features/adapter.d.ts.map +1 -1
  81. package/out/adapters/geonames/features/adapter.js +25 -11
  82. package/out/adapters/geonames/features/adapter.js.map +1 -1
  83. package/out/adapters/overture/adapter.d.ts.map +1 -1
  84. package/out/adapters/overture/adapter.js +21 -5
  85. package/out/adapters/overture/adapter.js.map +1 -1
  86. package/out/adapters/street/line.d.ts +4 -4
  87. package/out/adapters/street/line.d.ts.map +1 -1
  88. package/out/adapters/street/line.js +5 -5
  89. package/out/adapters/street/line.js.map +1 -1
  90. package/out/adapters/street/unit.d.ts +4 -0
  91. package/out/adapters/street/unit.d.ts.map +1 -1
  92. package/out/adapters/street/unit.js +3 -0
  93. package/out/adapters/street/unit.js.map +1 -1
  94. package/out/adapters/wof/admin/json/adapter.d.ts +7 -0
  95. package/out/adapters/wof/admin/json/adapter.d.ts.map +1 -1
  96. package/out/adapters/wof/admin/json/adapter.js +28 -3
  97. package/out/adapters/wof/admin/json/adapter.js.map +1 -1
  98. package/out/adapters/wof/json-rows.d.ts +8 -0
  99. package/out/adapters/wof/json-rows.d.ts.map +1 -1
  100. package/out/adapters/wof/json-rows.js +56 -4
  101. package/out/adapters/wof/json-rows.js.map +1 -1
  102. package/out/adapters/wof/sample.d.ts +12 -0
  103. package/out/adapters/wof/sample.d.ts.map +1 -1
  104. package/out/adapters/wof/sample.js +37 -6
  105. package/out/adapters/wof/sample.js.map +1 -1
  106. package/out/au/adapters/gnaf/source.d.ts +9 -0
  107. package/out/au/adapters/gnaf/source.d.ts.map +1 -1
  108. package/out/au/adapters/gnaf/source.js +9 -0
  109. package/out/au/adapters/gnaf/source.js.map +1 -1
  110. package/out/build/code-hash.js +1 -1
  111. package/out/build/code-hash.js.map +1 -1
  112. package/out/cjk/foreign-places.js +1 -1
  113. package/out/cjk/foreign-places.js.map +1 -1
  114. package/out/fr/adapters/ban/adapter.d.ts.map +1 -1
  115. package/out/fr/adapters/ban/adapter.js +49 -7
  116. package/out/fr/adapters/ban/adapter.js.map +1 -1
  117. package/out/fr/recipes/admin-split.d.ts.map +1 -1
  118. package/out/fr/recipes/admin-split.js +15 -2
  119. package/out/fr/recipes/admin-split.js.map +1 -1
  120. package/out/fr/recipes/lieudit.js +1 -1
  121. package/out/fr/recipes/lieudit.js.map +1 -1
  122. package/out/fr/recipes/order.d.ts.map +1 -1
  123. package/out/fr/recipes/order.js +16 -5
  124. package/out/fr/recipes/order.js.map +1 -1
  125. package/out/international/recipes/locale.js +1 -1
  126. package/out/international/recipes/locale.js.map +1 -1
  127. package/out/kr/adapters/localdata/permit-rows.js +1 -1
  128. package/out/kr/adapters/localdata/permit-rows.js.map +1 -1
  129. package/out/parquet/schema.d.ts +6 -0
  130. package/out/parquet/schema.d.ts.map +1 -1
  131. package/out/parquet/schema.js +6 -0
  132. package/out/parquet/schema.js.map +1 -1
  133. package/out/recipes/po/box/cedex/recipe.js +1 -1
  134. package/out/recipes/po/box/cedex/recipe.js.map +1 -1
  135. package/out/recipes/po/box/cedex/vocabulary.d.ts +1 -1
  136. package/out/recipes/po/box/cedex/vocabulary.d.ts.map +1 -1
  137. package/out/recipes/po/box/cedex/vocabulary.js +4 -4
  138. package/out/recipes/po/box/cedex/vocabulary.js.map +1 -1
  139. package/out/recipes/trailing-region.d.ts.map +1 -1
  140. package/out/recipes/trailing-region.js +122 -17
  141. package/out/recipes/trailing-region.js.map +1 -1
  142. package/out/synthesizers/po-box.d.ts +7 -0
  143. package/out/synthesizers/po-box.d.ts.map +1 -1
  144. package/out/synthesizers/po-box.js +36 -12
  145. package/out/synthesizers/po-box.js.map +1 -1
  146. package/out/test-kit/corpus-recipe.d.ts +3 -0
  147. package/out/test-kit/corpus-recipe.d.ts.map +1 -1
  148. package/out/test-kit/corpus-recipe.js.map +1 -1
  149. package/out/tools/anthropic/batches.d.ts +117 -0
  150. package/out/tools/anthropic/batches.d.ts.map +1 -0
  151. package/out/tools/anthropic/batches.js +141 -0
  152. package/out/tools/anthropic/batches.js.map +1 -0
  153. package/out/tools/anthropic/labeling.d.ts +97 -0
  154. package/out/tools/anthropic/labeling.d.ts.map +1 -0
  155. package/out/tools/anthropic/labeling.js +146 -0
  156. package/out/tools/anthropic/labeling.js.map +1 -0
  157. package/out/tools/compact-v9.d.ts +124 -0
  158. package/out/tools/compact-v9.d.ts.map +1 -0
  159. package/out/tools/compact-v9.js +507 -0
  160. package/out/tools/compact-v9.js.map +1 -0
  161. package/out/tools/fetch/wikidata/vital-places/entities.d.ts +3 -0
  162. package/out/tools/fetch/wikidata/vital-places/entities.d.ts.map +1 -1
  163. package/out/tools/fetch/wikidata/vital-places/entities.js +19 -1
  164. package/out/tools/fetch/wikidata/vital-places/entities.js.map +1 -1
  165. package/out/tools/fetch/wikidata/vital-places/qrank.d.ts.map +1 -1
  166. package/out/tools/fetch/wikidata/vital-places/qrank.js +4 -4
  167. package/out/tools/fetch/wikidata/vital-places/qrank.js.map +1 -1
  168. package/out/tools/fragment-assay.run.js +1 -1
  169. package/out/tools/fragment-assay.run.js.map +1 -1
  170. package/out/tools/name-roles/name-roles.run.d.ts +2 -0
  171. package/out/tools/name-roles/name-roles.run.d.ts.map +1 -0
  172. package/out/tools/name-roles/name-roles.run.js +230 -0
  173. package/out/tools/name-roles/name-roles.run.js.map +1 -0
  174. package/out/tools/name-roles/prompt.d.ts +166 -0
  175. package/out/tools/name-roles/prompt.d.ts.map +1 -0
  176. package/out/tools/name-roles/prompt.js +176 -0
  177. package/out/tools/name-roles/prompt.js.map +1 -0
  178. package/out/tools/overlay/deletions.js +1 -1
  179. package/out/tools/overlay/deletions.js.map +1 -1
  180. package/out/tools/overlay/draw-weight.d.ts +86 -0
  181. package/out/tools/overlay/draw-weight.d.ts.map +1 -0
  182. package/out/tools/overlay/draw-weight.js +131 -0
  183. package/out/tools/overlay/draw-weight.js.map +1 -0
  184. package/out/tools/place-twins/place-twins.run.d.ts +2 -0
  185. package/out/tools/place-twins/place-twins.run.d.ts.map +1 -0
  186. package/out/tools/place-twins/place-twins.run.js +385 -0
  187. package/out/tools/place-twins/place-twins.run.js.map +1 -0
  188. package/out/tools/place-twins/prompt.d.ts +169 -0
  189. package/out/tools/place-twins/prompt.d.ts.map +1 -0
  190. package/out/tools/place-twins/prompt.js +183 -0
  191. package/out/tools/place-twins/prompt.js.map +1 -0
  192. package/out/tools/prominent-shapes/prominent-shapes.run.d.ts +2 -0
  193. package/out/tools/prominent-shapes/prominent-shapes.run.d.ts.map +1 -0
  194. package/out/tools/prominent-shapes/prominent-shapes.run.js +302 -0
  195. package/out/tools/prominent-shapes/prominent-shapes.run.js.map +1 -0
  196. package/out/tools/prominent-shapes/prompt.d.ts +74 -0
  197. package/out/tools/prominent-shapes/prompt.d.ts.map +1 -0
  198. package/out/tools/prominent-shapes/prompt.js +156 -0
  199. package/out/tools/prominent-shapes/prompt.js.map +1 -0
  200. package/out/tools/prominent-shapes/read-seeds.d.ts +23 -0
  201. package/out/tools/prominent-shapes/read-seeds.d.ts.map +1 -0
  202. package/out/tools/prominent-shapes/read-seeds.js +219 -0
  203. package/out/tools/prominent-shapes/read-seeds.js.map +1 -0
  204. package/out/tools/prominent-shapes/seeds.d.ts +132 -0
  205. package/out/tools/prominent-shapes/seeds.d.ts.map +1 -0
  206. package/out/tools/prominent-shapes/seeds.js +178 -0
  207. package/out/tools/prominent-shapes/seeds.js.map +1 -0
  208. package/out/tools/prominent-shapes/validate.d.ts +152 -0
  209. package/out/tools/prominent-shapes/validate.d.ts.map +1 -0
  210. package/out/tools/prominent-shapes/validate.js +389 -0
  211. package/out/tools/prominent-shapes/validate.js.map +1 -0
  212. package/out/tools/source-register/build.d.ts.map +1 -1
  213. package/out/tools/source-register/build.js +1 -0
  214. package/out/tools/source-register/build.js.map +1 -1
  215. package/out/training/config/admission.d.ts +2 -1
  216. package/out/training/config/admission.d.ts.map +1 -1
  217. package/out/training/config/admission.js +9 -2
  218. package/out/training/config/admission.js.map +1 -1
  219. package/out/training/config/schema.d.ts +276 -1
  220. package/out/training/config/schema.d.ts.map +1 -1
  221. package/out/training/config/schema.js +64 -1
  222. package/out/training/config/schema.js.map +1 -1
  223. package/out/types.d.ts +21 -0
  224. package/out/types.d.ts.map +1 -1
  225. package/out/types.js +13 -0
  226. package/out/types.js.map +1 -1
  227. package/out/us/adapters/usgov/usgs-structures/adapter.d.ts.map +1 -1
  228. package/out/us/adapters/usgov/usgs-structures/adapter.js +78 -4
  229. package/out/us/adapters/usgov/usgs-structures/adapter.js.map +1 -1
  230. package/out/utils/split.js +1 -1
  231. package/out/utils/split.js.map +1 -1
  232. package/package.json +24 -24
@@ -0,0 +1,1008 @@
1
+ # v8.17.0-stage2-corpus-v0822-s42 is one of the two stages of v8.17.0 (#3531), derived on 2026-11-27 from
2
+ # v8.16.0-base-c6-wofreps-positions-v0822-s42.yaml by scratchpad/2026/11/27/derive-v8170-stages.ts.
3
+ #
4
+ # Stage 2 starts from stage 1's final checkpoint, step-005409 (`train.init_from`; stage 1's stored-order files ended
5
+ # there, after 2,768,944 rows, short of its 5,431 max_steps), and trains every other source
6
+ # at v8.16.0's weights. `wof-admin` and `wof-postalcode` weigh 0.0 and leave `source_reps`, `source_emit_factors`
7
+ # and `required_corpus_receipts` (`wof-admin-exposure`). `wof-postalcode` is out of v8.17.0 by the operator's
8
+ # decision of 2026-11-27, so `wof-admin` is stage 1's only source. `max_steps` keeps each other source's v8.16.0
9
+ # draws: ceil((16,128,000 − 2,815,839 `wof-admin` − 1,151,454 `wof-postalcode`) / 512) = ceil(12,160,707 / 512)
10
+ # = 23,752.
11
+ # `train.cuda_graph` is false: its first capture failed on the A100 (2026-11-27, run 8758701bc86349c1) because
12
+ # `cross_entropy_loss` with label smoothing calls `masked_select`, whose `nonzero` syncs with the host (#3531).
13
+ # `prominent_place_coverage` is left out: its receipt counts a form covered only by a train row of a positively
14
+ # weighted source, and with `wof-admin` at 0.0 the launch preflight found 19,119 of 20,910 required forms present
15
+ # and 27 of 811 demand cells failing (AI, AQ, AW, AX, BH, BM, BQ, FO, GU, MP, MV, SH, TC, TV among them), forms
16
+ # that stage 1's `wof-admin` pass trains. `rendered-prominent-places` keeps its `source_reps` and its receipt.
17
+ #
18
+ # Both stages train at batch 512 (#3531). `learning_rate` is v8.16.0's 5.0e-4 times the square root of the batch
19
+ # ratio, 1.0e-3, and the step-counted keys keep v8.16.0's row counts: `warmup_steps` 1000 → 250, `eval_every_steps`
20
+ # 2000 → 500, `save_every_steps` 5000 → 1250, `log_every_steps` 100 → 25 and `fisher_capture_last_n_steps`
21
+ # 2000 → 500. `eval_batch_size` stays 128.
22
+ #
23
+ # The notes that follow are v8.16.0's.
24
+ #
25
+ # v8.16.0-base-c6-wofreps-positions-v0822-s42 is v8.15.0-base-c6-wofreps-cursor-emit-v0822-s42.yaml with its run
26
+ # renamed, drafted on 2026-11-27 (#3516). Every key below the notes is v8.15.0's but `train.output_dir` and
27
+ # `train.trackio_run_name`. The trainer image it launches on builds two changes:
28
+ #
29
+ # 1. The sampler starts each epoch's spread row group where the run's earlier epochs stopped reading it
30
+ # (b62c9b9abd). v8.15.0 placed epoch e at (e - 1) times the group's expected draws, and an epoch's emitted-row
31
+ # limit stops it short of them. `wof-admin` drew 2,815,421 times against 2,780,333 train rows, and 419,900 rows
32
+ # were never drawn, while 407,229 rows repeated four or more epochs after their first draw.
33
+ # 2. AdamW and the gradient clip run libtorch's multi-tensor kernels on CUDA (c322f4a89c). On the CPU the two
34
+ # kernels agree within 1e-6 after 20 steps. On CUDA the update rounds differently from the per-tensor kernel.
35
+ #
36
+ # v8.15.0 parsed 118,499 of the 131,823 development rows exactly, against the shipped 11.4.0's 118,368.
37
+ #
38
+ # The notes that follow are v8.15.0's.
39
+ #
40
+ # v8.15.0-base-c6-wofreps-cursor-emit-v0822-s42 is v8.14.0-base-c6-wofreps-cursor-v0822-s42.yaml with
41
+ # `data.source_emit_factors` and `train.max_steps` 126000, drafted on 2026-11-26 (#3516).
42
+ #
43
+ # A `source_reps` target counts emitted rows, and the emit step's augmented copies make some sources emit more rows
44
+ # per draw than others: in v8.14.0 `wof-admin` realized 2,277,277 rows against its derived 2,780,333 (0.82), and
45
+ # `usgov-usgs-structures` 333,089 against 231,284 (1.44). The sampler divides each target by its source's factor
46
+ # (`draws_per_row` in mtf-sampler/src/source_reps.rs). The factors are v8.14.0's epoch-mixture audit's
47
+ # `distortion_vs_draw_share`, written by `node packages/mailwoman/tools/training/draw/emit-factors.run.ts --config
48
+ # v8.14.0-base-c6-wofreps-cursor-v0822-s42.yaml --audit epoch-mixture-v8.14.0-base-c6-wofreps-cursor-v0822-s42.json`.
49
+ # A source the audit's epoch emitted fewer than 2,000 rows of reads 1 (115 sources). `max_steps` keeps every
50
+ # weighted source's draws at or above v8.10.0's. The draw report (in emitted rows) lists 22 `source_reps` sources
51
+ # below v8.10.0's run, each with a factor above 1 that over-delivered under the old arithmetic and now emits its
52
+ # declared target, such as `usgov-usgs-structures` (331,013 → 231,284 emitted rows).
53
+ #
54
+ # The notes that follow are v8.14.0's.
55
+ #
56
+ # v8.14.0-base-c6-wofreps-cursor-v0822-s42 is v8.13.0-base-c6-wofreps-v0822-s42.yaml with its run renamed, drafted on
57
+ # 2026-11-26 (#3516). The trainer image it launches on builds the sampler's epoch cursor (a7fb952de4): the epochs of a
58
+ # run read each spread source's row groups in turn, where each epoch formerly read a fresh random part of them. In
59
+ # v8.13.0, 1,211,010 of wof-admin's 2,780,333 train rows were never drawn under `source_reps: 1.0`. Every key below the
60
+ # notes is v8.13.0's but `train.output_dir` and `train.trackio_run_name`.
61
+ #
62
+ # The notes that follow are v8.13.0's.
63
+ #
64
+ # v8.13.0-base-c6-wofreps-v0822-s42 is v8.10.0-base-c6-90k-v0822-s42.yaml, the shipped 11.3.0 model's config, with
65
+ # v8.12.0's training draw reallocation as its one change, drafted on 2026-11-26 (#3516). Corpus v0.8.22 is unchanged.
66
+ #
67
+ # On the development collections (131,823 rows) the shipped model parsed 117,533 rows exactly, v8.11.0 (corpus v0.8.23,
68
+ # v8.10.0's draw) 115,031 and v8.12.0 (corpus v0.8.23, the reallocated draw) 115,686. The large country losses (CH, KZ,
69
+ # ID, IR, MX) sit in both v0.8.23 models, and the draw change gained 655 rows on one corpus. This run measures the draw
70
+ # change on the shipped model's own corpus.
71
+ #
72
+ # A. `wof-admin` and `wof-postalcode` leave `source_weights` (15.0 and 7.5) for `source_reps` 1.0: one expected
73
+ # draw per training row.
74
+ # B. `rendered-prominent-places` leaves `source_weights` (3.5) for `source_reps` 20, so prominent places keep
75
+ # their share of the short admin draws against the larger WOF draw.
76
+ # C. `train.max_steps` is 122000, so every source drawn in v8.10.0's run draws no fewer rows than it drew there.
77
+ # D. Every `required_corpus_receipts` entry on a `source_reps` source states `min_fraction_of_expected: 0.9`, because a
78
+ # reps source's draws per epoch move with `max_steps` while its run total stays fixed.
79
+ # E. `train.output_dir` and `train.trackio_run_name` name the run.
80
+ #
81
+ # The notes that follow are v8.10.0's.
82
+ #
83
+ # v8.10.0-base-c6-90k-v0822-s42 is v8.9.0-base-c6-90k-v0821-s42.yaml on corpus v0.8.22, drafted on 2026-11-20 before
84
+ # that corpus exists. Every key and value is that config's except these:
85
+ #
86
+ # 1. `data.corpus_dir` is corpus v0.8.22,
87
+ # /data/corpus/versioned/v0.8.22-retention-overlay/corpus-v0.8.22-retention-overlay, built on 2026-11-22 from the
88
+ # corpus fixes landed for this cycle:
89
+ # - `wof-admin` writes a dependent locality only beside its parent locality (#3156's label policy). On v0.8.21,
90
+ # 111,355 `wof-admin` train rows in 159 countries wrote one without a locality, 104,920 of them in short admin
91
+ # shapes of one to three spans (`dependent_locality|region|country` 27,370, `dependent_locality|region` 25,377,
92
+ # bare `dependent_locality` 18,098, `dependent_locality|country` 15,484). The fixed adapter writes none of them.
93
+ # - `rendered-prominent-places` (recipe `prominent-places`) writes each country's prominent places in their short
94
+ # query shapes at the row counts the prominent-places census sets against the v0.8.22 base build
95
+ # (`tools/dev-tools/corpus/prominent/places.run.ts places`, `scan --manifest <v0.8.22 base MANIFEST.json>`,
96
+ # `tuples --config <this file>`). The counts are set in this config's expected epoch draws (point 2). A
97
+ # sub-locality pair is written `locality | region` when the child is the postal place at its own location and the
98
+ # parent's name is also a first-level WOF region's (`Brooklyn, New York`, the board's key), and
99
+ # `dependent_locality | locality` otherwise (`Camden, London`). The rule moves 276 of the table's 127,698
100
+ # ranked pairs.
101
+ # - `rendered-former-divisions` (recipe `former-divisions`, #3200) writes a former administrative division beside a
102
+ # current WOF locality its containment evidence links it to, before the locality (Google's order,
103
+ # `Redland, Avon, Bristol`) or after it, tagged `subregion` at county level and `region` at the first level. Its
104
+ # tuples come from `packages/gazetteer/tools/former-divisions.run.ts --tuples`, capped at 1,500 rows a country
105
+ # and 300 a division. The table was rebuilt on 2026-11-21 after the forks restored the 628 ceased divisions the
106
+ # superseded rule keeps (#3205). GeoNames lists 49,122 historical divisions in 112 countries, and WOF 27,141
107
+ # ceased admin records. Containment evidence makes 685 links (GeoNames hierarchy 9, retired admin codes 53, WOF
108
+ # supersession 623), and 663 divisions in 37 countries are linked, every one with a tag: locality 523,
109
+ # region 105, subregion 34, country 1. The recipe writes the 139 tagged `region` or `subregion`, and 127 of them
110
+ # cover a current settlement. The tuples hold 16,024 rows in 31 countries: AT, DE, FR, GB, MA and NO 1,500
111
+ # each, IE 908, IT 900, CH 836, CI 600, PH 560, SI 328, BH 324, AM, AO, IQ, NA, PK and ZA 300 each, KE 260,
112
+ # IR 220, SD 100, GL 80, TD 64, LY 12, BS and UA 8, LA, MO, MR and PL 4. GB's 1,500 rows cover 15 divisions,
113
+ # Avon 100 of them. The census in #3200 gives the per-country counts.
114
+ # 2. `source_weights` gives `rendered-prominent-places` 3.5: 1.16% of the epoch, 11,649 of the 1,000,000 draws.
115
+ # The receipt's demand rule is measured in this config's expected epoch draws, and the census's `tuples` step sets
116
+ # the recipe's rows so those draws, spread over its rows alike, close each cell. The rows therefore follow from
117
+ # this weight: a lower weight takes more rows, and a weight whose draws fall at or below the cells' deficits takes
118
+ # no row count. Simulated from v0.8.21 (`/mnt/mw/audits/recipe-key-conflict/`), the deficits come to 5,714 draws,
119
+ # and the recipe writes 32,616 rows (18,298 presence rows and 14,318 demand rows, US 4,475 or 13.7%), each drawn 0.36
120
+ # times an epoch. A `wof-admin` row is drawn 0.018 times, so a prominent place's row takes about 20 times a
121
+ # `wof-admin` row's draws. At 15.0 the recipe wrote 19,115 rows drawn 2.48 times each, about 130 times.
122
+ # 3. `data.prominent_place_coverage` names the census's places table for candidate-global-2026-11-19, so the launch
123
+ # preflight runs the `prominent_place_coverage` receipt (#3156 rule (a)) and binds its `PLACES.json` into the
124
+ # receipt key. The receipt measures the demand share in this config's expected epoch draws: each row at its
125
+ # source's requested share over the source's admitted rows, times its country's admission chance. A place in a
126
+ # country `country_weights` leaves out isn't required. `country_weights` admits at 1.0, as it does every other
127
+ # country, the 35 countries v8.9.0 left out that hold selected places on the 2026-11-19 table (518 places, YE 124
128
+ # and BO 101 the largest): AQ, BO, CC, CM, CX, EH, FJ, GA, GQ, GS, GY, KI, KP, LY, MR, NF, NR, NU, PN, PS, PW, SJ,
129
+ # SL, SS, SY, TD, TF, TG, TL, TV, WS and YE. It doesn't list XK, XS or XX, the three of the 35 WOF records under
130
+ # a code outside ISO 3166-1: `weightedCountries` (`countriesDeclaredBy`) refuses such a key, so the validation
131
+ # quota and the launch refuse a config that lists one. The v0.8.22 recipe holds 66 rows of theirs (XK 24, XX 42),
132
+ # which the run draws none of. `prominent-places-exposure` floors the recipe's draws at 0.9 of expected.
133
+ # 4. `train.output_dir` and `train.trackio_run_name` name the run.
134
+ # 5. `source_reps` gives `rendered-former-divisions` 1.0, one pass over its rows across the run. By the exposure
135
+ # arithmetic of `exposure/shapes.ts` (`drawsPerAdmittedRow`, `countryAdmission`), with the 16,024 tuple rows in the
136
+ # `source_reps` derivation over v0.8.21's other rows, a row is drawn 0.087 times an epoch: 1,391 of the 1,000,000
137
+ # draws an epoch, and 16,024 over the run's 90,000 steps of 128 (11.52 epochs). Two passes over the earlier
138
+ # 1,888 rows drew 328 an epoch and 3,776 over the run. The rows hold 127 division names, about 126 rows each
139
+ # (median 100, from 4 to 300). On the table before the restore, two passes over 1,888 rows and 27 names drew about
140
+ # 140 rows a name over the run. One pass now reaches that exposure, so a second would repeat each row without
141
+ # widening what the model sees.
142
+ # `augment_exclude_sources` lists the source for the reason `rendered-prominent-places` is listed, and
143
+ # `former-divisions-exposure` floors its draws at 0.9 of expected.
144
+ # 6. `source_weights` gives `nz-charities-register` 0.0, so the run draws none of its rows, and the source leaves
145
+ # `source_reps` (0.2 in v8.9.0) and `required_corpus_receipts` (`nz-charities-register-exposure`). The model-release
146
+ # check of #3278 refuses its register row `nz-charity-nonprofit-1` (CC BY 3.0 NZ): clause 2.1 bars imposing terms
147
+ # on an Adaptation, and whether trained weights are one is unsettled. The corpus keeps the source's rows. The sampler
148
+ # refuses a train source that `source_weights` leaves out, so the source is listed at 0.0 rather than dropped.
149
+ #
150
+ # Every other receipt and floor is v8.9.0's and is re-derived on v0.8.22 before launch (HOLDOUT_AND_EVALUATION
151
+ # section 4.4 item 5). Before launch, on the admitted v0.8.22 manifest:
152
+ # - done 2026-11-23: the manifest is the third re-split of v0.8.22-prominent-overlay (MANIFEST.json sha256 aed71697…,
153
+ # v0.8.22-overlay with the re-sized recipe) under evaluation-groups.v0.8.23.json (sha256 cfaffa67…, 201,538 groups)
154
+ # and a validation quota of 15,300 groups (sha256 6e9ddd98…). It is MANIFEST.json sha256
155
+ # c01019fe088458f8e4950fc8245583083f7e230c3446b1bc4952947186f334fd: 1,104 files, train 889,226,116, val 23,330,
156
+ # test 381,056;
157
+ # - done 2026-11-23: `audits/label/support.run.ts` meets `required_validation_label_support` on that val draw, and
158
+ # `audits/validation/coverage.run.ts` finds all 21 `required_validation_coverage` floors met;
159
+ # - done 2026-11-23: the epoch-mixture audit (1,000,000 draws) meets all 71 receipts. `former-divisions-exposure`
160
+ # draws 1,441 against 1,240 (expected 1,378), and `prominent-places-exposure` 11,825 against 10,505 (expected 11,673);
161
+ # - done 2026-11-23: `places.run.ts tuples --config <this file>` against the scan of v0.8.22-overlay without the
162
+ # recipe, sized through the receipt's held-out reader: 32,378 rows for 16,421 places, every one in train after the
163
+ # re-split;
164
+ # - done 2026-11-23: `audits/prominent/coverage.run.ts` passes on this config re-rooted at /mnt/mw. Presence covers
165
+ # 20,910 of 20,910 required forms, 808 of 811 demand cells meet their targets and none fails (FJ and GD locality
166
+ # region and ID sub-locality parent are unwritable), and 0 short admin train rows write a dependent locality without
167
+ # a locality;
168
+ # - done: the places table `data.prominent_place_coverage` names is frozen on the host at
169
+ # /mnt/mw/audits/prominent-places/candidate-global-2026-11-19/ (`places.parquet` sha256 acfcd09a44b22622…, record
170
+ # version 3 with the `postal_pair` column). The version-2 table is kept beside it as `.v2-2026-11-20`. Only the
171
+ # host reads it: the preflight re-roots /data at MAILWOMAN_DATA_ROOT before the receipt and the receipt key read it,
172
+ # and of the volume's files the sandbox checks only the corpus MANIFEST. The volume copy keeps the mirror whole and starts no read. It is
173
+ # written from the host with the operator's launch go, as
174
+ # `modal volume put mailwoman-training /mnt/mw/audits/prominent-places/candidate-global-2026-11-19 audits/prominent-places/candidate-global-2026-11-19`.
175
+ # A mounted container doesn't see a `modal volume put` file, and none reads this one.
176
+ #
177
+ # Run shape: from scratch, as v8.9.0. Control: the v8.9.0 seed 42 run, the same recipe and seed on v0.8.21.
178
+ # Seed 42, as v8.9.0. The launch waits for the operator's go.
179
+
180
+ data:
181
+ corpus_dir: /data/corpus/versioned/v0.8.22-retention-overlay/corpus-v0.8.22-retention-overlay
182
+ tokenizer_dir: /data/models/tokenizer/v0.10.0-c6-isolated-punctuation
183
+ max_length: 128
184
+ # `NO` is quoted because YAML 1.1 reads a bare `NO` as false. A false key would match no Norwegian row.
185
+ country_weights:
186
+ {
187
+ AD: 1.0, AE: 1.0, AF: 1.0, AG: 1.0, AI: 1.0, AL: 1.0, AM: 1.0, AO: 1.0, AQ: 1.0, AR: 1.0, AS: 1.0, AT: 1.0,
188
+ AU: 1.0, AW: 1.0, AX: 1.0, AZ: 1.0, BA: 1.0, BB: 1.0, BD: 1.0, BE: 1.0, BF: 1.0, BG: 1.0, BH: 1.0, BI: 1.0,
189
+ BJ: 1.0, BL: 1.0, BM: 1.0, BN: 1.0, BO: 1.0, BQ: 1.0, BR: 1.0, BS: 1.0, BT: 1.0, BW: 1.0, BY: 1.0, BZ: 1.0,
190
+ CA: 1.0, CC: 1.0, CD: 1.0, CF: 1.0, CG: 1.0, CH: 1.0, CI: 1.0, CK: 1.0, CL: 1.0, CM: 1.0, CN: 1.0, CO: 1.0,
191
+ CR: 1.0, CU: 1.0, CV: 1.0, CW: 1.0, CX: 1.0, CY: 1.0, CZ: 1.0, DE: 1.0, DJ: 1.0, DK: 1.0, DM: 1.0, DO: 1.0,
192
+ DZ: 1.0, EC: 1.0, EE: 1.0, EG: 1.0, EH: 1.0, ER: 1.0, ES: 1.0, ET: 1.0, FI: 1.0, FJ: 1.0, FK: 1.0, FM: 1.0,
193
+ FO: 1.0, FR: 1.0, GA: 1.0, GB: 1.0, GD: 1.0, GE: 1.0, GF: 1.0, GG: 1.0, GH: 1.0, GI: 1.0, GL: 1.0, GM: 1.0,
194
+ GN: 1.0, GP: 1.0, GQ: 1.0, GR: 1.0, GS: 1.0, GT: 1.0, GU: 1.0, GW: 1.0, GY: 1.0, HK: 1.0, HN: 1.0, HR: 1.0,
195
+ HT: 1.0, HU: 1.0, ID: 1.0, IE: 1.0, IL: 1.0, IM: 1.0, IN: 1.0, IO: 1.0, IQ: 1.0, IR: 1.0, IS: 1.0, IT: 1.0,
196
+ JE: 1.0, JM: 1.0, JO: 1.0, JP: 1.0, KE: 1.0, KG: 1.0, KH: 1.0, KI: 1.0, KM: 1.0, KN: 1.0, KP: 1.0, KR: 1.0,
197
+ KW: 1.0, KY: 1.0, KZ: 1.0, LA: 1.0, LB: 1.0, LC: 1.0, LI: 1.0, LK: 1.0, LR: 1.0, LS: 1.0, LT: 1.0, LU: 1.0,
198
+ LV: 1.0, LY: 1.0, MA: 1.0, MC: 1.0, MD: 1.0, ME: 1.0, MF: 1.0, MG: 1.0, MH: 1.0, MK: 1.0, ML: 1.0, MM: 1.0,
199
+ MN: 1.0, MO: 1.0, MP: 1.0, MQ: 1.0, MR: 1.0, MS: 1.0, MT: 1.0, MU: 1.0, MV: 1.0, MW: 1.0, MX: 1.0, MY: 1.0,
200
+ MZ: 1.0, NA: 1.0, NC: 1.0, NE: 1.0, NF: 1.0, NG: 1.0, NI: 1.0, NL: 1.0, "NO": 1.0, NP: 1.0, NR: 1.0, NU: 1.0,
201
+ NZ: 1.0, OM: 1.0, PA: 1.0, PE: 1.0, PF: 1.0, PG: 1.0, PH: 1.0, PK: 1.0, PL: 1.0, PM: 1.0, PN: 1.0, PR: 1.0,
202
+ PS: 1.0, PT: 1.0, PW: 1.0, PY: 1.0, QA: 1.0, RE: 1.0, RO: 1.0, RS: 1.0, RU: 1.0, RW: 1.0, SA: 1.0, SB: 1.0,
203
+ SC: 1.0, SD: 1.0, SE: 1.0, SG: 1.0, SH: 1.0, SI: 1.0, SJ: 1.0, SK: 1.0, SL: 1.0, SM: 1.0, SN: 1.0, SO: 1.0,
204
+ SR: 1.0, SS: 1.0, ST: 1.0, SV: 1.0, SX: 1.0, SY: 1.0, SZ: 1.0, TC: 1.0, TD: 1.0, TF: 1.0, TG: 1.0, TH: 1.0,
205
+ TJ: 1.0, TK: 1.0, TL: 1.0, TM: 1.0, TN: 1.0, TO: 1.0, TR: 1.0, TT: 1.0, TV: 1.0, TW: 1.0, TZ: 1.0, UA: 1.0,
206
+ UG: 1.0, UM: 1.0, US: 1.0, UY: 1.0, UZ: 1.0, VA: 1.0, VC: 1.0, VE: 1.0, VG: 1.0, VI: 1.0, VN: 1.0, VU: 1.0,
207
+ WF: 1.0, WS: 1.0, YE: 1.0, YT: 1.0, ZA: 1.0, ZM: 1.0, ZW: 1.0,
208
+ }
209
+ source_weights:
210
+ invented-house-venue: 2.0
211
+ overture-latam: 6.0
212
+ # v8.6.2's header, point 1.
213
+ # This config's header, point 2.
214
+ # 3.3 rather than 3.0: at 3.0, with the WOF weights above, ban drew 9,989 of 1,000,000 audited rows on the
215
+ # v0.8.7-overlay, under the fr-native-postcode-locality floor of 10,000.
216
+ ban: 3.3
217
+ tiger: 4.0
218
+ usgov-nppes: 2.0
219
+ usgov-hrsa-fqhc: 2.0
220
+ usgov-nad: 1.0
221
+ # v7.2.0's weight. us-professional-licensing-3 is elected under the US factual-data reading.
222
+ state-tx-notaries: 1.5
223
+ state-ny-notaries: 2.0
224
+ state-ia-contractors: 0.0
225
+ usgov-imls-pls: 0.0
226
+ # This config's header, point 6 (#3278).
227
+ nz-charities-register: 0.0
228
+ deepseek-kryptonite: 3.0
229
+ invented-intersection: 1.0
230
+ rendered-de: 6.0
231
+ rendered-fr-order: 3.0
232
+ rendered-fr-admin-split: 6.0
233
+ spliced-unit: 0.0 # Replaced by spliced-unit-v30.
234
+ spliced-unit-v30: 1.5
235
+ invented-po-box-cedex: 1.5
236
+ invented-postal-guideline: 1.5
237
+ invented-postal-unit-guideline: 2.5
238
+ spliced-affix: 2.0
239
+ spliced-country: 2.0
240
+ overture: 3.0
241
+ gnaf: 6.0
242
+ invented-anchor-absorption: 6.0
243
+ fragment-fr-bare-street: 0.0 # Replaced by fragment-fr-bare-street-v22.
244
+ fragment-fr-bare-street-v22: 12.0
245
+ rendered-si-bare-village: 12.0
246
+ rendered-no-street-led: 0.0
247
+ rendered-cz-pcfirst-preposition: 0.0 # Replaced by rendered-cz-pcfirst-preposition-v21.
248
+ rendered-cz-pcfirst-preposition-v21: 12.0
249
+ rendered-nl-postcode: 6.0
250
+ fragment-assay: 6.0
251
+ fragment-fr: 12.0
252
+ fragment-no: 12.0
253
+ rendered-gb-os-open: 6.0
254
+ rendered-pt: 6.0
255
+ rendered-ch: 6.0
256
+ rendered-hr: 6.0
257
+ rendered-sk: 6.0
258
+ rendered-lu: 6.0
259
+ spliced-sub-venue: 12.0
260
+ spliced-suffix-boundary: 2.5
261
+ # Replaced by osm-pk, osm-vn and osm-bd, the 2026-10-02 refresh of the same extracts.
262
+ osm: 0.0
263
+ # Han-script rows for the CJK character family. v7.1.0's header, point 2, states why.
264
+ osm-cn: 0.0
265
+ wof-admin: 0.0
266
+ wof-postalcode: 0.0
267
+ source_emit_factors:
268
+ ads: 1.0835
269
+ au-acnc-register: 1.2481
270
+ cordis: 1.0581
271
+ geonames-features: 0.9337
272
+ gleif-lei: 1.1047
273
+ invented-po-box-military: 0.9930
274
+ lv-varis: 1.0661
275
+ osm-ar: 1.0624
276
+ osm-eg: 1.2270
277
+ osm-id: 1.0051
278
+ osm-in: 1.0910
279
+ osm-md: 1.0521
280
+ osm-pk: 1.1248
281
+ osm-rs: 1.0438
282
+ osm-ru: 1.0642
283
+ osm-vn: 0.9869
284
+ rendered-bd-register: 1.0627
285
+ rendered-pk-register: 1.0584
286
+ rendered-prominent-places: 0.8198
287
+ rendered-sg-register: 0.8852
288
+ rendered-us-city-county: 1.2887
289
+ rendered-us-city-state: 1.3069
290
+ rendered-us-county: 1.2206
291
+ ro-retea-scolara: 1.1151
292
+ spliced-trailing-region-ca-bare: 1.0251
293
+ spliced-trailing-region-es-v28: 1.0198
294
+ usgov-usgs-structures: 1.4312
295
+ wikidata-vital-places: 0.8002
296
+ source_reps:
297
+ rendered-prominent-places: 20
298
+ rendered-sg-register: 1.0
299
+ rendered-pk-register: 1.0
300
+ rendered-bd-register: 8.0
301
+ spliced-trailing-region-es-v28: 8.0
302
+ invented-po-box-military: 8.0
303
+ codex-bare-postcode: 1.0
304
+ spliced-trailing-region-us: 1.0
305
+ spliced-trailing-region-ca-bare: 4.0
306
+ osm-ru: 0.2
307
+ osm-in: 2.0
308
+ osm-id: 2.0
309
+ osm-ng: 4.0
310
+ osm-vn: 1.0
311
+ osm-pk: 1.0
312
+ osm-bd: 2.0
313
+ # v8.3.2's header, point 3.
314
+ ban-gp: 0.15
315
+ ban-mq: 0.15
316
+ ban-re: 0.08
317
+ ban-gf: 0.3
318
+ ban-yt: 0.3
319
+ ban-nc: 0.3
320
+ ban-pm: 2.0
321
+ ban-bl: 1.0
322
+ ban-mf: 1.0
323
+ ban-pf: 1.0
324
+ ro-retea-scolara: 2.0
325
+ lv-varis: 0.1
326
+ # v8.3.2's header, point 4.
327
+ cordis: 0.2
328
+ fr-finess-overseas: 4.0
329
+ fr-annuaire-education-overseas: 4.0
330
+ gleif-lei: 0.03
331
+ # v8.3.2's header, point 2, and v8.4.0's header, point 1, for the source's v0.8.12 rows.
332
+ geonames-features: 0.12
333
+ # v8.6.1's header, point 2.
334
+ wikidata-vital-places: 0.4
335
+ # v8.7.0's header, point 1.
336
+ usgov-usgs-structures: 0.075
337
+ # v8.7.0's header, point 3.
338
+ fr-laposte-poincont: 0.25
339
+ nc-opt-agences: 4.0
340
+ # v8.7.0's header, point 4.
341
+ es-sanidad-centros-ap: 0.2
342
+ it-miur-scuole: 0.2
343
+ au-acnc-register: 0.2
344
+ # v8.8.0's header, point 2.
345
+ rendered-us-county: 5.0
346
+ rendered-us-city-county: 0.55
347
+ rendered-us-city-state: 1.0
348
+ # This config's header, point 5.
349
+ rendered-former-divisions: 1.0
350
+ # The country-gap sources each take one pass over their rows.
351
+ adressur-fo: 1.0
352
+ ads: 1.0
353
+ bsp-gu: 1.0
354
+ gbpa-bs: 1.0
355
+ ide-uy: 1.0
356
+ landregistry-im: 1.0
357
+ llv-li: 1.0
358
+ opendata-az: 1.0
359
+ osm-ae: 1.0
360
+ osm-al: 1.0
361
+ osm-am: 1.0
362
+ osm-ao: 1.0
363
+ osm-ar: 1.0
364
+ osm-aw: 1.0
365
+ osm-az: 1.0
366
+ osm-ba: 1.0
367
+ osm-bb: 1.0
368
+ osm-bh: 1.0
369
+ osm-bm: 1.0
370
+ osm-bn: 1.0
371
+ osm-bs: 1.0
372
+ osm-bt: 1.0
373
+ osm-bw: 1.0
374
+ osm-by: 1.0
375
+ osm-bz: 1.0
376
+ osm-cd: 1.0
377
+ osm-ci: 1.0
378
+ osm-cl: 1.0
379
+ osm-co: 1.0
380
+ osm-cr: 1.0
381
+ osm-cu: 1.0
382
+ osm-cw: 1.0
383
+ osm-do: 1.0
384
+ osm-dz: 1.0
385
+ osm-ec: 1.0
386
+ osm-eg: 1.0
387
+ osm-ge: 1.0
388
+ osm-gg: 1.0
389
+ osm-gh: 1.0
390
+ osm-gl: 1.0
391
+ osm-gt: 1.0
392
+ osm-hk: 1.0
393
+ osm-ht: 1.0
394
+ osm-iq: 1.0
395
+ osm-ir: 1.0
396
+ osm-je: 1.0
397
+ osm-jm: 1.0
398
+ osm-jo: 1.0
399
+ osm-ke: 1.0
400
+ osm-kg: 1.0
401
+ osm-kh: 1.0
402
+ osm-kw: 1.0
403
+ osm-kz: 1.0
404
+ osm-lb: 1.0
405
+ osm-lk: 1.0
406
+ osm-lr: 1.0
407
+ osm-ma: 1.0
408
+ osm-md: 1.0
409
+ osm-me: 1.0
410
+ osm-mg: 1.0
411
+ osm-mk: 1.0
412
+ osm-mm: 1.0
413
+ osm-mn: 1.0
414
+ osm-mo: 1.0
415
+ osm-mt: 1.0
416
+ osm-mv: 1.0
417
+ osm-my: 1.0
418
+ osm-mz: 1.0
419
+ osm-na: 1.0
420
+ osm-np: 1.0
421
+ osm-om: 1.0
422
+ osm-pa: 1.0
423
+ osm-pe: 1.0
424
+ osm-pf: 1.0
425
+ osm-ph: 1.0
426
+ osm-pr: 1.0
427
+ osm-py: 1.0
428
+ osm-qa: 1.0
429
+ osm-rs: 1.0
430
+ osm-rw: 1.0
431
+ osm-sa: 1.0
432
+ osm-sm: 1.0
433
+ osm-sn: 1.0
434
+ osm-sr: 1.0
435
+ osm-sv: 1.0
436
+ osm-th: 1.0
437
+ osm-tj: 1.0
438
+ osm-tm: 1.0
439
+ osm-tn: 1.0
440
+ osm-tt: 1.0
441
+ osm-tz: 1.0
442
+ osm-ua: 1.0
443
+ osm-ug: 1.0
444
+ osm-uz: 1.0
445
+ osm-ve: 1.0
446
+ osm-vi: 1.0
447
+ osm-zm: 1.0
448
+ osm-zw: 1.0
449
+ ryhti-ax: 1.0
450
+ required_corpus_receipts:
451
+ # Each receipt stops the run when the epoch-mixture audit draws fewer matching rows than `min_draws`.
452
+ - name: us-city-state-postcode
453
+ min_fraction_of_expected: 0.9
454
+ source: spliced-trailing-region-us
455
+ country: US
456
+ component_sequence:
457
+ - locality
458
+ - region
459
+ - postcode
460
+ - name: ca-region-code-tail
461
+ min_fraction_of_expected: 0.9
462
+ source: spliced-trailing-region-ca-bare
463
+ country: CA
464
+ - name: us-secondary-unit-current-generation
465
+ min_draws: 1200
466
+ source: spliced-unit-v30
467
+ country: US
468
+ - name: bare-postcode-czech
469
+ min_fraction_of_expected: 0.9
470
+ source: codex-bare-postcode
471
+ country: CZ
472
+ - name: cz-postcode-first-current-generation
473
+ min_draws: 600
474
+ source: rendered-cz-pcfirst-preposition-v21
475
+ country: CZ
476
+ - name: fr-bare-street-current-generation
477
+ min_draws: 600
478
+ source: fragment-fr-bare-street-v22
479
+ country: FR
480
+ - name: sg-registers
481
+ min_fraction_of_expected: 0.9
482
+ source: rendered-sg-register
483
+ country: SG
484
+ - name: pk-house-line
485
+ min_fraction_of_expected: 0.9
486
+ source: rendered-pk-register
487
+ country: PK
488
+ - name: bd-trailing-postcode
489
+ min_fraction_of_expected: 0.9
490
+ source: rendered-bd-register
491
+ country: BD
492
+ - name: es-trailing-region-local-surfaces
493
+ min_fraction_of_expected: 0.9
494
+ source: spliced-trailing-region-es-v28
495
+ country: ES
496
+ - name: us-military-po-box
497
+ min_fraction_of_expected: 0.9
498
+ source: invented-po-box-military
499
+ country: US
500
+ # GB rows come from OS OpenData now. rendered-gb drew 24,314 of the 1,000,000 audited rows at weight 6.0, and this
501
+ # floor sits at the same 1,000 as the other rendered locales.
502
+ - name: gb-os-open-rows
503
+ min_draws: 600
504
+ source: rendered-gb-os-open
505
+ country: GB
506
+ - name: pt-native-order
507
+ min_draws: 600
508
+ source: rendered-pt
509
+ country: PT
510
+ - name: ch-native-order
511
+ min_draws: 600
512
+ source: rendered-ch
513
+ country: CH
514
+ - name: hr-native-order
515
+ min_draws: 600
516
+ source: rendered-hr
517
+ country: HR
518
+ - name: sk-native-order
519
+ min_draws: 600
520
+ source: rendered-sk
521
+ country: SK
522
+ - name: lu-native-order
523
+ min_draws: 600
524
+ source: rendered-lu
525
+ country: LU
526
+ - name: br-overture-rooftops
527
+ min_draws: 600
528
+ source: overture-latam
529
+ country: BR
530
+ - name: mx-overture-rooftops
531
+ min_draws: 600
532
+ source: overture-latam
533
+ country: MX
534
+ # The OSM receipts copied from v7.1.0.
535
+ - name: osm-ru-exposure
536
+ min_fraction_of_expected: 0.9
537
+ source: osm-ru
538
+ country: RU
539
+ - name: osm-in-exposure
540
+ min_fraction_of_expected: 0.9
541
+ source: osm-in
542
+ country: IN
543
+ - name: osm-id-exposure
544
+ min_fraction_of_expected: 0.9
545
+ source: osm-id
546
+ country: ID
547
+ - name: osm-ng-exposure
548
+ min_fraction_of_expected: 0.9
549
+ source: osm-ng
550
+ country: NG
551
+ - name: osm-vn-exposure
552
+ min_fraction_of_expected: 0.9
553
+ source: osm-vn
554
+ country: VN
555
+ - name: osm-pk-exposure
556
+ min_fraction_of_expected: 0.9
557
+ source: osm-pk
558
+ country: PK
559
+ - name: osm-bd-exposure
560
+ min_fraction_of_expected: 0.9
561
+ source: osm-bd
562
+ country: BD
563
+ # The address-system sources, each at 90% of its expected draws over the 1,000,000-row epoch, rounded down to
564
+ # a multiple of 10. The draws are the v0.8.2 epoch-mixture audit's, run locally on the re-rooted manifest.
565
+ - name: ban-gp-exposure
566
+ min_fraction_of_expected: 0.9
567
+ source: ban-gp
568
+ country: GP
569
+ - name: ban-mq-exposure
570
+ min_fraction_of_expected: 0.9
571
+ source: ban-mq
572
+ country: MQ
573
+ - name: ban-re-exposure
574
+ min_fraction_of_expected: 0.9
575
+ source: ban-re
576
+ country: RE
577
+ - name: ban-gf-exposure
578
+ min_fraction_of_expected: 0.9
579
+ source: ban-gf
580
+ country: GF
581
+ - name: ban-yt-exposure
582
+ min_fraction_of_expected: 0.9
583
+ source: ban-yt
584
+ country: YT
585
+ - name: ban-nc-exposure
586
+ min_fraction_of_expected: 0.9
587
+ source: ban-nc
588
+ country: NC
589
+ - name: ban-pm-exposure
590
+ min_fraction_of_expected: 0.9
591
+ source: ban-pm
592
+ country: PM
593
+ - name: ban-bl-exposure
594
+ min_fraction_of_expected: 0.9
595
+ source: ban-bl
596
+ country: BL
597
+ - name: ban-mf-exposure
598
+ min_fraction_of_expected: 0.9
599
+ source: ban-mf
600
+ country: MF
601
+ - name: ban-pf-exposure
602
+ min_fraction_of_expected: 0.9
603
+ source: ban-pf
604
+ country: PF
605
+ - name: ro-retea-scolara-exposure
606
+ min_fraction_of_expected: 0.9
607
+ source: ro-retea-scolara
608
+ country: RO
609
+ - name: lv-varis-exposure
610
+ min_fraction_of_expected: 0.9
611
+ source: lv-varis
612
+ country: LV
613
+ # v8.3.2's header, point 4.
614
+ - name: cordis-exposure
615
+ min_fraction_of_expected: 0.9
616
+ source: cordis
617
+ - name: fr-finess-overseas-exposure
618
+ min_fraction_of_expected: 0.9
619
+ source: fr-finess-overseas
620
+ - name: fr-annuaire-education-overseas-exposure
621
+ min_fraction_of_expected: 0.9
622
+ source: fr-annuaire-education-overseas
623
+ - name: gleif-lei-exposure
624
+ min_fraction_of_expected: 0.9
625
+ source: gleif-lei
626
+ # v8.4.0's header, point 2.
627
+ - name: geonames-features-exposure
628
+ min_fraction_of_expected: 0.9
629
+ source: geonames-features
630
+ component_sequence:
631
+ - venue
632
+ # v8.6.1's header, point 2: a presence floor under the expected draws.
633
+ - name: wikidata-vital-places-exposure
634
+ min_fraction_of_expected: 0.9
635
+ source: wikidata-vital-places
636
+ # v8.7.0's header, point 2.
637
+ - name: us-structures-exposure
638
+ min_fraction_of_expected: 0.9
639
+ source: usgov-usgs-structures
640
+ country: US
641
+ - name: us-structures-venue-street
642
+ min_fraction_of_expected: 0.9
643
+ source: usgov-usgs-structures
644
+ country: US
645
+ component_sequence:
646
+ - venue
647
+ - street
648
+ # v8.7.0's header, point 3.
649
+ - name: fr-laposte-counters-exposure
650
+ min_fraction_of_expected: 0.9
651
+ source: fr-laposte-poincont
652
+ - name: nc-opt-agencies-exposure
653
+ min_fraction_of_expected: 0.5
654
+ source: nc-opt-agences
655
+ country: NC
656
+ # v8.7.0's header, point 4.
657
+ - name: es-sanidad-centros-ap-exposure
658
+ min_fraction_of_expected: 0.9
659
+ source: es-sanidad-centros-ap
660
+ country: ES
661
+ - name: it-miur-scuole-exposure
662
+ min_fraction_of_expected: 0.9
663
+ source: it-miur-scuole
664
+ country: IT
665
+ - name: au-acnc-register-exposure
666
+ min_fraction_of_expected: 0.9
667
+ source: au-acnc-register
668
+ country: AU
669
+ # v8.8.0's header, point 4: the three county sources.
670
+ - name: us-county-exposure
671
+ min_fraction_of_expected: 0.9
672
+ source: rendered-us-county
673
+ country: US
674
+ component_sequence:
675
+ - subregion
676
+ - region
677
+ - name: us-city-county-exposure
678
+ min_fraction_of_expected: 0.9
679
+ source: rendered-us-city-county
680
+ country: US
681
+ component_sequence:
682
+ - locality
683
+ - subregion
684
+ - region
685
+ - name: us-city-state-exposure
686
+ min_fraction_of_expected: 0.9
687
+ source: rendered-us-city-state
688
+ country: US
689
+ component_sequence:
690
+ - locality
691
+ - region
692
+ # v8.8.0's header, point 4: the relabels. The NAD county relabel takes no receipt (that point states why).
693
+ - name: us-nppes-exposure
694
+ min_fraction_of_expected: 0.8
695
+ source: usgov-nppes
696
+ country: US
697
+ - name: us-nppes-po-box
698
+ min_draws: 1
699
+ source: usgov-nppes
700
+ country: US
701
+ component_sequence:
702
+ - po_box
703
+ - name: us-ny-notaries-po-box
704
+ min_fraction_of_expected: 0.5
705
+ source: state-ny-notaries
706
+ country: US
707
+ component_sequence:
708
+ - po_box
709
+ - name: us-kryptonite-retag
710
+ min_fraction_of_expected: 0.9
711
+ source: deepseek-kryptonite
712
+ country: US
713
+ # This config's header, point 3.
714
+ - name: prominent-places-exposure
715
+ min_fraction_of_expected: 0.9
716
+ source: rendered-prominent-places
717
+ # This config's header, point 5.
718
+ - name: former-divisions-exposure
719
+ min_fraction_of_expected: 0.9
720
+ source: rendered-former-divisions
721
+ # v8.8.0's header, point 4: the re-rendered recipe outputs.
722
+ - name: us-pmb-street-split
723
+ min_fraction_of_expected: 0.8
724
+ source: invented-po-box-cedex
725
+ country: US
726
+ component_sequence:
727
+ - street
728
+ - street_suffix
729
+ - po_box
730
+ - name: fr-residence-lotissement-venue
731
+ min_fraction_of_expected: 0.8
732
+ source: invented-postal-unit-guideline
733
+ country: FR
734
+ component_sequence:
735
+ - venue
736
+ - house_number
737
+ - street
738
+ - name: house-venue-exposure
739
+ min_fraction_of_expected: 0.9
740
+ source: invented-house-venue
741
+ # #2750. The move copies a train row whose postcode sits on its layout's native side of the locality-and-region
742
+ # block, so these four receipts floor that native population in the D-rule locales. They match the drawn row
743
+ # before augmentation, so they read the same in all three arms. Each floor is a presence floor, set well under the
744
+ # source's share of a 1,000,000-row epoch rather than fitted to an audit. A shortfall stops the run for a
745
+ # diagnosis, and the floor stays where it is.
746
+ - name: us-native-locality-region-postcode
747
+ min_draws: 6000
748
+ country: US
749
+ component_sequence:
750
+ - locality
751
+ - region
752
+ - postcode
753
+ - name: fr-native-postcode-locality
754
+ min_draws: 6000
755
+ source: ban
756
+ country: FR
757
+ component_sequence:
758
+ - postcode
759
+ - locality
760
+ - name: de-native-postcode-locality
761
+ min_draws: 600
762
+ source: rendered-de
763
+ country: DE
764
+ component_sequence:
765
+ - postcode
766
+ - locality
767
+ - name: gb-native-locality-postcode
768
+ min_draws: 300
769
+ source: rendered-gb-os-open
770
+ country: GB
771
+ component_sequence:
772
+ - locality
773
+ - postcode
774
+ # #2750 keeps the producers that write another form rather than mixing order: G-NAF's postcode before the street,
775
+ # fr-order variants A, B and D, and nl-postcode orders 1 and 2. The move skips gnaf and the CZ pcfirst sources.
776
+ # These floor their presence so a rebuild that dropped one is caught before a GPU is allocated.
777
+ - name: au-gnaf-rows
778
+ min_draws: 600
779
+ source: gnaf
780
+ country: AU
781
+ - name: fr-order-kept-variants
782
+ min_draws: 600
783
+ source: rendered-fr-order
784
+ country: FR
785
+ - name: nl-postcode-rows
786
+ min_draws: 600
787
+ source: rendered-nl-postcode
788
+ country: NL
789
+ required_validation_coverage:
790
+ - country: GB
791
+ min_rows: 1000
792
+ min_street_rows: 1000
793
+ - country: FR
794
+ min_rows: 1000
795
+ min_street_rows: 1000
796
+ - country: DE
797
+ min_rows: 1000
798
+ min_street_rows: 1000
799
+ - country: US
800
+ min_rows: 1000
801
+ min_street_rows: 1000
802
+ - country: RU
803
+ min_rows: 20
804
+ min_street_rows: 10
805
+ - country: CN
806
+ min_rows: 20
807
+ min_street_rows: 10
808
+ - country: IN
809
+ min_rows: 20
810
+ min_street_rows: 10
811
+ - country: ID
812
+ min_rows: 20
813
+ min_street_rows: 10
814
+ - country: NG
815
+ min_rows: 20
816
+ min_street_rows: 10
817
+ - country: PK
818
+ min_rows: 20
819
+ min_street_rows: 10
820
+ - country: BD
821
+ min_rows: 20
822
+ min_street_rows: 10
823
+ - country: VN
824
+ min_rows: 20
825
+ min_street_rows: 10
826
+ # Presence floors for the address-system sources' countries.
827
+ - country: RO
828
+ min_rows: 20
829
+ min_street_rows: 10
830
+ - country: LV
831
+ min_rows: 20
832
+ min_street_rows: 10
833
+ - country: GP
834
+ min_rows: 20
835
+ min_street_rows: 10
836
+ - country: MQ
837
+ min_rows: 20
838
+ min_street_rows: 10
839
+ - country: GF
840
+ min_rows: 20
841
+ min_street_rows: 10
842
+ - country: RE
843
+ min_rows: 20
844
+ min_street_rows: 10
845
+ - country: YT
846
+ min_rows: 20
847
+ min_street_rows: 10
848
+ - country: NC
849
+ min_rows: 20
850
+ min_street_rows: 10
851
+ - country: PF
852
+ min_rows: 20
853
+ min_street_rows: 10
854
+ # PM has no entry. The hashed place holdout (6ff893e25) leaves it no held-out place, so its val split held 1 row on
855
+ # v0.8.1, and a country with no held-out split gets no floor, as BL and MF got none in v7.2.0.
856
+ # Half of each label's rows in the 21,596-row val draw of v0.8.22-retention-overlay, rounded down, measured
857
+ # 2026-11-22 by audits/label/support.run.ts on this config re-rooted at /mnt/mw. Measured counts: locality 18,957,
858
+ # street 16,518, postcode 15,134, house_number 15,102, region 5,152, venue 4,075, street_prefix 2,583, country
859
+ # 2,520, street_suffix 1,769, unit 363. dependent_locality 1,345, subregion 383 and po_box 47 take no floor, as
860
+ # the v0.8.2 floors set none for them.
861
+ required_validation_label_support:
862
+ - {label: postcode, split: val, min_rows: 7567}
863
+ - {label: locality, split: val, min_rows: 9478}
864
+ - {label: street, split: val, min_rows: 8259}
865
+ - {label: house_number, split: val, min_rows: 7551}
866
+ - {label: region, split: val, min_rows: 2576}
867
+ - {label: street_suffix, split: val, min_rows: 884}
868
+ - {label: street_prefix, split: val, min_rows: 1291}
869
+ - {label: venue, split: val, min_rows: 2037}
870
+ - {label: unit, split: val, min_rows: 181}
871
+ - {label: country, split: val, min_rows: 1260}
872
+ augment_exclude_sources:
873
+ - spliced-suffix-boundary
874
+ # This source teaches a postcode with no other token, such as `119 00`, so augmentation would add tokens the row
875
+ # mustn't contain.
876
+ - codex-bare-postcode
877
+ # On WOF rows the region and directional rewrites expand a word inside a place name (`AL MANĀMAH` to
878
+ # `Alabama MANĀMAH`) under the original label, and the build already renders a `drop-commas` variant.
879
+ - wof-admin
880
+ - wof-postalcode
881
+ # The recipe writes WOF names in the same short shapes, so the same rewrites would expand them.
882
+ - rendered-prominent-places
883
+ # This config's header, point 5.
884
+ - rendered-former-divisions
885
+ # The same rewrites would expand a word inside a landmark's name under the `venue` label.
886
+ - wikidata-vital-places
887
+ train_rows_per_epoch: 1000000
888
+ # The validation draw is sized to hold the venue and country rows the label floors above require.
889
+ val_rows: 36864
890
+ coarse_filter: true
891
+ augment_directional_prob: 0.3
892
+ augment_region_prob: 0.3
893
+ augment_glue_prob: 0.25
894
+ augment_ordinal_prob: 0.3
895
+ augment_punct_drop_prob: 0.3
896
+ augment_postcode_move_prob: 0.0
897
+ anchor_lookup_path: /data/anchor/pilot-anchor-lookup-v2-2026-08-05.json
898
+ gazetteer_lexicon_path: /data/gazetteer/anchor-lexicon-v1.json
899
+ country_lexicon_path: /data/gazetteer/country-surface-lexicon-v1.json
900
+ gazetteer_choreography: true
901
+ affix_relabel_lexicon_path: /data/gazetteer/affix-relabel-lexicon-v2.json
902
+ anchor_paint_mode: postal
903
+ anchor_value_mode: posterior_latlon
904
+ street_type_lexicon_path: /data/gazetteer/street-type-lexicon-v3.json
905
+ locality_surface_lexicon_path: /data/gazetteer/locality-surface-lexicon-v7.json
906
+
907
+ model:
908
+ hidden_size: 384
909
+ use_span_boundary_head: true
910
+ span_boundary_loss_weight: 0.5
911
+ num_hidden_layers: 6
912
+ num_attention_heads: 6
913
+ intermediate_size: 1536
914
+ max_position_embeddings: 128
915
+ type_vocab_size: 1
916
+ hidden_dropout_prob: 0.1
917
+ attention_probs_dropout_prob: 0.1
918
+ use_crf: true
919
+ crf_loss_weight: 0.0
920
+ crf_normalization: per_sequence
921
+ label_smoothing: 0.1
922
+ use_locale_conditioning: true
923
+ locale_loss_weight: 0.3
924
+ use_address_system_head: true
925
+ address_system_loss_weight: 0.3
926
+ use_locale_hint: true
927
+ locale_hint_drop_prob: 0.5
928
+ locale_hint_noise_prob: 0.05
929
+ use_postcode_anchor: true
930
+ use_gazetteer_anchor: true
931
+ gazetteer_feature_dim: 5
932
+ use_country_anchor: true
933
+ country_feature_dim: 2
934
+ use_street_type_anchor: true
935
+ street_type_feature_dim: 1
936
+ use_locality_surface_anchor: true
937
+ locality_surface_feature_dim: 2
938
+ country_ambiguous_scale: 0.5
939
+ class_weights:
940
+ O: 0.5
941
+ B-country: 3.5
942
+ I-country: 3.5
943
+ B-region: 1.5
944
+ I-region: 1.5
945
+ B-locality: 2.0
946
+ I-locality: 2.0
947
+ B-dependent_locality: 1.0
948
+ I-dependent_locality: 1.0
949
+ B-postcode: 1.5
950
+ I-postcode: 1.5
951
+ # v8.8.0's header, point 3.
952
+ B-subregion: 1.0
953
+ I-subregion: 1.0
954
+ B-cedex: 1.0
955
+ I-cedex: 1.0
956
+ B-venue: 1.5
957
+ I-venue: 1.5
958
+ B-street: 2.0
959
+ I-street: 2.0
960
+ B-house_number: 1.5
961
+ I-house_number: 1.5
962
+ B-street_prefix: 1.5
963
+ I-street_prefix: 1.5
964
+ B-street_suffix: 1.5
965
+ I-street_suffix: 1.5
966
+ B-unit: 1.5
967
+ I-unit: 1.5
968
+ B-po_box: 1.5
969
+ I-po_box: 1.5
970
+ B-intersection_a: 1.0
971
+ I-intersection_a: 1.0
972
+ B-intersection_b: 1.0
973
+ I-intersection_b: 1.0
974
+ use_phrase_priors: true
975
+ phrase_feature_dim: 10
976
+
977
+ train:
978
+ output_dir: /data/output-v8170-stage2-corpus-v0822-s42/checkpoints
979
+ # Stage 1's final checkpoint.
980
+ init_from: /data/output-v8170-stage1-gazetteer-v0822-s42/checkpoints/step-005409
981
+ seed: 42
982
+ batch_size: 512
983
+ eval_batch_size: 128
984
+ grad_accum_steps: 1
985
+ learning_rate: 1.0e-3
986
+ weight_decay: 0.01
987
+ warmup_steps: 250
988
+ grad_clip_norm: 1.0
989
+ max_steps: 23752
990
+ eval_every_steps: 500
991
+ save_every_steps: 1250
992
+ log_every_steps: 25
993
+ precision: bf16
994
+ num_workers: 0
995
+ csv_log_path: "{output_dir}/../train_log.csv"
996
+ lr_schedule: cosine
997
+ gazetteer_curriculum: true
998
+ evidence_curriculum: true
999
+ evidence_noise_prob: 0.15
1000
+ fisher_capture: true
1001
+ fisher_capture_last_n_steps: 500
1002
+ cuda_graph: false
1003
+ trackio_project: mailwoman
1004
+ trackio_run_name: v8170-stage2-corpus-v0822-s42
1005
+
1006
+ eval:
1007
+ golden_dir: /data/eval/golden/v0.1.3
1008
+ val_jsonl: ""