@mailwoman/core 9.0.0 → 9.2.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 (380) hide show
  1. package/README.md +1 -1
  2. package/api/responses.ts +12 -0
  3. package/coarse-placer/featurize.ts +0 -2
  4. package/coarse-placer/tools/build-dataset.ts +2 -2
  5. package/coarse-placer/tools/build-outlier-exposure.ts +2 -2
  6. package/coarse-placer/tools/build-outlier-latin.ts +14 -8
  7. package/coarse-placer/tools/build-outlier-oa.ts +12 -6
  8. package/coarse-placer/tools/eval-latin-offmap.ts +3 -4
  9. package/coarse-placer/tools/eval-openset.ts +3 -3
  10. package/coarse-placer/tools/eval-quant-compare.ts +3 -3
  11. package/coarse-placer/tools/eval.ts +3 -3
  12. package/coarse-placer/tools/fnv-hash.ts +1 -6
  13. package/coarse-placer/tools/index.ts +1 -1
  14. package/coarse-placer/tools/probe-frontier.ts +3 -4
  15. package/coarse-placer/tools/quantize.ts +3 -2
  16. package/coarse-placer/tools/train.ts +2 -2
  17. package/crypto/node.ts +3 -1
  18. package/data/internal/dictionaries/languages.csv +184 -184
  19. package/data/libpostal/README.md +8 -2
  20. package/db/schema.ts +12 -3
  21. package/decoder/build-tree.ts +19 -0
  22. package/decoder/containment.ts +5 -1
  23. package/decoder/index.ts +1 -0
  24. package/decoder/parse-diff.ts +347 -0
  25. package/decoder/proposals-to-tree.ts +1 -1
  26. package/decoder/serialize-json.ts +51 -7
  27. package/decoder/serialize-tuples.ts +7 -1
  28. package/decoder/serialize-xml.ts +1 -1
  29. package/decoder/tree-shape.ts +144 -0
  30. package/decoder/types.ts +8 -0
  31. package/decoder/validate-tree.ts +15 -3
  32. package/env/index.ts +3 -1
  33. package/env/paths.ts +21 -33
  34. package/env/schema.ts +35 -3
  35. package/fs/utils/formatters.ts +107 -0
  36. package/fs/utils/index.ts +7 -0
  37. package/fs/zip.ts +297 -0
  38. package/layers/manifest.ts +56 -15
  39. package/layers/schema.ts +54 -2
  40. package/locale/locale.ts +1 -1
  41. package/locale/registry.ts +1 -1
  42. package/objects.ts +20 -8
  43. package/out/api/responses.d.ts +9 -0
  44. package/out/api/responses.d.ts.map +1 -1
  45. package/out/api/responses.js +11 -0
  46. package/out/api/responses.js.map +1 -1
  47. package/out/coarse-placer/featurize.d.ts +0 -1
  48. package/out/coarse-placer/featurize.d.ts.map +1 -1
  49. package/out/coarse-placer/featurize.js.map +1 -1
  50. package/out/coarse-placer/tools/build-dataset.js +1 -2
  51. package/out/coarse-placer/tools/build-dataset.js.map +1 -1
  52. package/out/coarse-placer/tools/build-outlier-exposure.js +1 -2
  53. package/out/coarse-placer/tools/build-outlier-exposure.js.map +1 -1
  54. package/out/coarse-placer/tools/build-outlier-latin.d.ts.map +1 -1
  55. package/out/coarse-placer/tools/build-outlier-latin.js +12 -8
  56. package/out/coarse-placer/tools/build-outlier-latin.js.map +1 -1
  57. package/out/coarse-placer/tools/build-outlier-oa.d.ts.map +1 -1
  58. package/out/coarse-placer/tools/build-outlier-oa.js +10 -6
  59. package/out/coarse-placer/tools/build-outlier-oa.js.map +1 -1
  60. package/out/coarse-placer/tools/eval-latin-offmap.d.ts.map +1 -1
  61. package/out/coarse-placer/tools/eval-latin-offmap.js +2 -4
  62. package/out/coarse-placer/tools/eval-latin-offmap.js.map +1 -1
  63. package/out/coarse-placer/tools/eval-openset.js +2 -3
  64. package/out/coarse-placer/tools/eval-openset.js.map +1 -1
  65. package/out/coarse-placer/tools/eval-quant-compare.js +2 -3
  66. package/out/coarse-placer/tools/eval-quant-compare.js.map +1 -1
  67. package/out/coarse-placer/tools/eval.js +2 -3
  68. package/out/coarse-placer/tools/eval.js.map +1 -1
  69. package/out/coarse-placer/tools/fnv-hash.d.ts +1 -6
  70. package/out/coarse-placer/tools/fnv-hash.d.ts.map +1 -1
  71. package/out/coarse-placer/tools/fnv-hash.js +1 -6
  72. package/out/coarse-placer/tools/fnv-hash.js.map +1 -1
  73. package/out/coarse-placer/tools/index.d.ts +1 -1
  74. package/out/coarse-placer/tools/index.js +1 -1
  75. package/out/coarse-placer/tools/probe-frontier.d.ts.map +1 -1
  76. package/out/coarse-placer/tools/probe-frontier.js +2 -4
  77. package/out/coarse-placer/tools/probe-frontier.js.map +1 -1
  78. package/out/coarse-placer/tools/quantize.d.ts.map +1 -1
  79. package/out/coarse-placer/tools/quantize.js +2 -2
  80. package/out/coarse-placer/tools/quantize.js.map +1 -1
  81. package/out/coarse-placer/tools/train.js +1 -2
  82. package/out/coarse-placer/tools/train.js.map +1 -1
  83. package/out/crypto/node.d.ts.map +1 -1
  84. package/out/crypto/node.js +2 -1
  85. package/out/crypto/node.js.map +1 -1
  86. package/out/db/schema.d.ts +12 -3
  87. package/out/db/schema.d.ts.map +1 -1
  88. package/out/db/schema.js +6 -0
  89. package/out/db/schema.js.map +1 -1
  90. package/out/decoder/build-tree.d.ts.map +1 -1
  91. package/out/decoder/build-tree.js +17 -0
  92. package/out/decoder/build-tree.js.map +1 -1
  93. package/out/decoder/containment.d.ts.map +1 -1
  94. package/out/decoder/containment.js +5 -1
  95. package/out/decoder/containment.js.map +1 -1
  96. package/out/decoder/index.d.ts +1 -0
  97. package/out/decoder/index.d.ts.map +1 -1
  98. package/out/decoder/index.js +1 -0
  99. package/out/decoder/index.js.map +1 -1
  100. package/out/decoder/parse-diff.d.ts +125 -0
  101. package/out/decoder/parse-diff.d.ts.map +1 -0
  102. package/out/decoder/parse-diff.js +219 -0
  103. package/out/decoder/parse-diff.js.map +1 -0
  104. package/out/decoder/proposals-to-tree.js.map +1 -1
  105. package/out/decoder/serialize-json.d.ts +29 -0
  106. package/out/decoder/serialize-json.d.ts.map +1 -1
  107. package/out/decoder/serialize-json.js +20 -4
  108. package/out/decoder/serialize-json.js.map +1 -1
  109. package/out/decoder/serialize-tuples.d.ts +8 -1
  110. package/out/decoder/serialize-tuples.d.ts.map +1 -1
  111. package/out/decoder/serialize-tuples.js +7 -1
  112. package/out/decoder/serialize-tuples.js.map +1 -1
  113. package/out/decoder/serialize-xml.js +1 -1
  114. package/out/decoder/serialize-xml.js.map +1 -1
  115. package/out/decoder/tree-shape.d.ts +84 -0
  116. package/out/decoder/tree-shape.d.ts.map +1 -0
  117. package/out/decoder/tree-shape.js +98 -0
  118. package/out/decoder/tree-shape.js.map +1 -0
  119. package/out/decoder/types.d.ts +11 -0
  120. package/out/decoder/types.d.ts.map +1 -1
  121. package/out/decoder/validate-tree.d.ts +8 -0
  122. package/out/decoder/validate-tree.d.ts.map +1 -1
  123. package/out/decoder/validate-tree.js +4 -3
  124. package/out/decoder/validate-tree.js.map +1 -1
  125. package/out/env/index.d.ts +13 -1
  126. package/out/env/index.d.ts.map +1 -1
  127. package/out/env/index.js +2 -1
  128. package/out/env/index.js.map +1 -1
  129. package/out/env/paths.d.ts +15 -8
  130. package/out/env/paths.d.ts.map +1 -1
  131. package/out/env/paths.js +19 -29
  132. package/out/env/paths.js.map +1 -1
  133. package/out/env/schema.d.ts +12 -1
  134. package/out/env/schema.d.ts.map +1 -1
  135. package/out/env/schema.js +33 -3
  136. package/out/env/schema.js.map +1 -1
  137. package/out/fs/utils/formatters.d.ts +57 -0
  138. package/out/fs/utils/formatters.d.ts.map +1 -0
  139. package/out/fs/utils/formatters.js +79 -0
  140. package/out/fs/utils/formatters.js.map +1 -0
  141. package/out/fs/utils/index.d.ts +7 -0
  142. package/out/fs/utils/index.d.ts.map +1 -0
  143. package/out/fs/utils/index.js +7 -0
  144. package/out/fs/utils/index.js.map +1 -0
  145. package/out/fs/zip.d.ts +116 -0
  146. package/out/fs/zip.d.ts.map +1 -0
  147. package/out/fs/zip.js +216 -0
  148. package/out/fs/zip.js.map +1 -0
  149. package/out/layers/manifest.d.ts +32 -7
  150. package/out/layers/manifest.d.ts.map +1 -1
  151. package/out/layers/manifest.js +31 -6
  152. package/out/layers/manifest.js.map +1 -1
  153. package/out/layers/schema.d.ts +48 -2
  154. package/out/layers/schema.d.ts.map +1 -1
  155. package/out/layers/schema.js +32 -0
  156. package/out/layers/schema.js.map +1 -1
  157. package/out/locale/locale.d.ts +1 -1
  158. package/out/locale/locale.d.ts.map +1 -1
  159. package/out/locale/registry.js +1 -1
  160. package/out/locale/registry.js.map +1 -1
  161. package/out/objects.d.ts +12 -6
  162. package/out/objects.d.ts.map +1 -1
  163. package/out/objects.js +4 -1
  164. package/out/objects.js.map +1 -1
  165. package/out/pipeline/index.d.ts +3 -7
  166. package/out/pipeline/index.d.ts.map +1 -1
  167. package/out/pipeline/index.js +2 -4
  168. package/out/pipeline/index.js.map +1 -1
  169. package/out/pipeline/runtime-pipeline.d.ts +51 -9
  170. package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
  171. package/out/pipeline/runtime-pipeline.js +46 -133
  172. package/out/pipeline/runtime-pipeline.js.map +1 -1
  173. package/out/pipeline/span-proposer.js +1 -1
  174. package/out/pipeline/span-proposer.js.map +1 -1
  175. package/out/pipeline/types.d.ts +137 -16
  176. package/out/pipeline/types.d.ts.map +1 -1
  177. package/out/pipeline/types.js +30 -0
  178. package/out/pipeline/types.js.map +1 -1
  179. package/out/policy/defaults.d.ts +1 -1
  180. package/out/policy/defaults.d.ts.map +1 -1
  181. package/out/policy/defaults.js +1 -1
  182. package/out/policy/defaults.js.map +1 -1
  183. package/out/policy/policy.d.ts +1 -1
  184. package/out/policy/policy.d.ts.map +1 -1
  185. package/out/policy/registry.d.ts +1 -1
  186. package/out/policy/registry.d.ts.map +1 -1
  187. package/out/resolver/coverage-facts.d.ts +89 -0
  188. package/out/resolver/coverage-facts.d.ts.map +1 -0
  189. package/out/resolver/coverage-facts.js +22 -0
  190. package/out/resolver/coverage-facts.js.map +1 -0
  191. package/out/resolver/index.d.ts +4 -1
  192. package/out/resolver/index.d.ts.map +1 -1
  193. package/out/resolver/index.js +2 -0
  194. package/out/resolver/index.js.map +1 -1
  195. package/out/resolver/lookup-types.d.ts +178 -0
  196. package/out/resolver/lookup-types.d.ts.map +1 -0
  197. package/out/resolver/lookup-types.js +11 -0
  198. package/out/resolver/lookup-types.js.map +1 -0
  199. package/out/resolver/placetype-map.d.ts +71 -0
  200. package/out/resolver/placetype-map.d.ts.map +1 -0
  201. package/out/resolver/placetype-map.js +98 -0
  202. package/out/resolver/placetype-map.js.map +1 -0
  203. package/out/resolver/postcode-format.d.ts +38 -0
  204. package/out/resolver/postcode-format.d.ts.map +1 -0
  205. package/out/resolver/postcode-format.js +83 -0
  206. package/out/resolver/postcode-format.js.map +1 -0
  207. package/out/resolver/referential.d.ts +73 -0
  208. package/out/resolver/referential.d.ts.map +1 -0
  209. package/out/resolver/referential.js +71 -0
  210. package/out/resolver/referential.js.map +1 -0
  211. package/out/resolver/types.d.ts +401 -264
  212. package/out/resolver/types.d.ts.map +1 -1
  213. package/out/resolver/types.js +4 -97
  214. package/out/resolver/types.js.map +1 -1
  215. package/out/resources/git.d.ts +8 -1
  216. package/out/resources/git.d.ts.map +1 -1
  217. package/out/resources/git.js +4 -3
  218. package/out/resources/git.js.map +1 -1
  219. package/out/resources/languages/types.gen.d.ts +1 -1
  220. package/out/resources/languages/types.gen.d.ts.map +1 -1
  221. package/out/resources/languages/types.gen.js +40 -0
  222. package/out/resources/languages/types.gen.js.map +1 -1
  223. package/out/resources/libpostal.d.ts +2 -2
  224. package/out/resources/libpostal.d.ts.map +1 -1
  225. package/out/resources/libpostal.js +2 -2
  226. package/out/resources/libpostal.js.map +1 -1
  227. package/out/resources/whosonfirst/DataSourceCache.d.ts.map +1 -1
  228. package/out/resources/whosonfirst/DataSourceCache.js.map +1 -1
  229. package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +2 -2
  230. package/out/resources/whosonfirst/PlacetypeDataSource.d.ts.map +1 -1
  231. package/out/resources/whosonfirst/PlacetypeDataSource.js +28 -3
  232. package/out/resources/whosonfirst/PlacetypeDataSource.js.map +1 -1
  233. package/out/resources/whosonfirst/loader.d.ts +2 -2
  234. package/out/resources/whosonfirst/loader.d.ts.map +1 -1
  235. package/out/resources/whosonfirst/loader.js.map +1 -1
  236. package/out/resources/whosonfirst/placetypes/Placetype.d.ts.map +1 -1
  237. package/out/resources/whosonfirst/placetypes/Placetype.js +1 -1
  238. package/out/resources/whosonfirst/placetypes/Placetype.js.map +1 -1
  239. package/out/resources/whosonfirst/placetypes/admin.d.ts +9 -1
  240. package/out/resources/whosonfirst/placetypes/admin.d.ts.map +1 -1
  241. package/out/resources/whosonfirst/placetypes/admin.js +1 -1
  242. package/out/resources/whosonfirst/placetypes/admin.js.map +1 -1
  243. package/out/resources/whosonfirst/placetypes/definition.d.ts.map +1 -1
  244. package/out/resources/whosonfirst/placetypes/definition.js +1 -1
  245. package/out/resources/whosonfirst/placetypes/definition.js.map +1 -1
  246. package/out/resources/whosonfirst/placetypes/index.d.ts +1 -0
  247. package/out/resources/whosonfirst/placetypes/index.d.ts.map +1 -1
  248. package/out/resources/whosonfirst/placetypes/index.js +1 -0
  249. package/out/resources/whosonfirst/placetypes/index.js.map +1 -1
  250. package/out/resources/whosonfirst/placetypes/specificity.d.ts +65 -0
  251. package/out/resources/whosonfirst/placetypes/specificity.d.ts.map +1 -0
  252. package/out/resources/whosonfirst/placetypes/specificity.js +101 -0
  253. package/out/resources/whosonfirst/placetypes/specificity.js.map +1 -0
  254. package/out/resources/whosonfirst/sharded-repo.d.ts +28 -0
  255. package/out/resources/whosonfirst/sharded-repo.d.ts.map +1 -1
  256. package/out/resources/whosonfirst/sharded-repo.js +46 -2
  257. package/out/resources/whosonfirst/sharded-repo.js.map +1 -1
  258. package/out/scripting/arguments.d.ts +27 -0
  259. package/out/scripting/arguments.d.ts.map +1 -0
  260. package/out/scripting/arguments.js +32 -0
  261. package/out/scripting/arguments.js.map +1 -0
  262. package/out/scripting/command.d.ts +28 -0
  263. package/out/scripting/command.d.ts.map +1 -0
  264. package/out/scripting/command.js +47 -0
  265. package/out/scripting/command.js.map +1 -0
  266. package/out/scripting/index.js +3 -3
  267. package/out/scripting/index.js.map +1 -1
  268. package/out/scripting/utils/index.d.ts +1 -12
  269. package/out/scripting/utils/index.d.ts.map +1 -1
  270. package/out/scripting/utils/index.js +4 -21
  271. package/out/scripting/utils/index.js.map +1 -1
  272. package/out/tools/download-libpostal-resources.d.ts.map +1 -1
  273. package/out/tools/download-libpostal-resources.js +4 -7
  274. package/out/tools/download-libpostal-resources.js.map +1 -1
  275. package/out/tools/download-ssl-address.d.ts +3 -3
  276. package/out/tools/download-ssl-address.d.ts.map +1 -1
  277. package/out/tools/download-ssl-address.js +26 -13
  278. package/out/tools/download-ssl-address.js.map +1 -1
  279. package/out/tools/generate-language-types.d.ts +16 -1
  280. package/out/tools/generate-language-types.d.ts.map +1 -1
  281. package/out/tools/generate-language-types.js +38 -5
  282. package/out/tools/generate-language-types.js.map +1 -1
  283. package/out/tools/index.d.ts +1 -2
  284. package/out/tools/index.d.ts.map +1 -1
  285. package/out/tools/index.js +1 -2
  286. package/out/tools/index.js.map +1 -1
  287. package/out/utils/data-root.d.ts +27 -7
  288. package/out/utils/data-root.d.ts.map +1 -1
  289. package/out/utils/data-root.js +36 -13
  290. package/out/utils/data-root.js.map +1 -1
  291. package/out/utils/hash.d.ts +2 -3
  292. package/out/utils/hash.d.ts.map +1 -1
  293. package/out/utils/hash.js +3 -3
  294. package/out/utils/hash.js.map +1 -1
  295. package/out/utils/index.d.ts +1 -0
  296. package/out/utils/index.d.ts.map +1 -1
  297. package/out/utils/index.js +1 -0
  298. package/out/utils/index.js.map +1 -1
  299. package/out/utils/jsonl.js +1 -1
  300. package/out/utils/jsonl.js.map +1 -1
  301. package/out/utils/repo.d.ts +8 -0
  302. package/out/utils/repo.d.ts.map +1 -1
  303. package/out/utils/repo.js +10 -1
  304. package/out/utils/repo.js.map +1 -1
  305. package/out/utils/sealed-db.d.ts +11 -0
  306. package/out/utils/sealed-db.d.ts.map +1 -1
  307. package/out/utils/sealed-db.js +28 -1
  308. package/out/utils/sealed-db.js.map +1 -1
  309. package/out/utils/sqlite-rows.d.ts +34 -0
  310. package/out/utils/sqlite-rows.d.ts.map +1 -0
  311. package/out/utils/sqlite-rows.js +37 -0
  312. package/out/utils/sqlite-rows.js.map +1 -0
  313. package/out/utils/stats.d.ts +1 -6
  314. package/out/utils/stats.d.ts.map +1 -1
  315. package/out/utils/stats.js +1 -6
  316. package/out/utils/stats.js.map +1 -1
  317. package/package.json +488 -8
  318. package/pipeline/index.ts +14 -15
  319. package/pipeline/runtime-pipeline.ts +48 -184
  320. package/pipeline/span-proposer.ts +1 -1
  321. package/pipeline/types.ts +143 -16
  322. package/policy/defaults.ts +1 -1
  323. package/policy/policy.ts +1 -1
  324. package/policy/registry.ts +1 -1
  325. package/resolver/coverage-facts.ts +102 -0
  326. package/resolver/index.ts +18 -0
  327. package/resolver/lookup-types.ts +174 -0
  328. package/resolver/placetype-map.ts +122 -0
  329. package/resolver/postcode-format.ts +89 -0
  330. package/resolver/referential.ts +84 -0
  331. package/resolver/types.ts +423 -315
  332. package/resources/git.ts +18 -4
  333. package/resources/languages/types.gen.ts +60 -0
  334. package/resources/libpostal.ts +4 -3
  335. package/resources/whosonfirst/DataSourceCache.ts +2 -1
  336. package/resources/whosonfirst/PlacetypeDataSource.ts +36 -11
  337. package/resources/whosonfirst/loader.ts +3 -2
  338. package/resources/whosonfirst/placetypes/Placetype.ts +2 -1
  339. package/resources/whosonfirst/placetypes/admin.ts +11 -2
  340. package/resources/whosonfirst/placetypes/definition.ts +4 -3
  341. package/resources/whosonfirst/placetypes/index.ts +1 -0
  342. package/resources/whosonfirst/placetypes/specificity.ts +114 -0
  343. package/resources/whosonfirst/sharded-repo.ts +55 -2
  344. package/scripting/arguments.ts +38 -0
  345. package/scripting/command.ts +55 -0
  346. package/scripting/index.ts +3 -3
  347. package/scripting/utils/index.ts +5 -23
  348. package/tools/download-libpostal-resources.ts +4 -7
  349. package/tools/download-ssl-address.ts +28 -12
  350. package/tools/generate-language-types.ts +39 -5
  351. package/tools/index.ts +1 -2
  352. package/utils/data-root.ts +40 -14
  353. package/utils/hash.ts +5 -4
  354. package/utils/index.ts +1 -0
  355. package/utils/jsonl.ts +1 -1
  356. package/utils/repo.ts +12 -1
  357. package/utils/sealed-db.ts +30 -1
  358. package/utils/sqlite-rows.ts +40 -0
  359. package/utils/stats.ts +1 -6
  360. package/data/libpostal/dictionaries/all/chains.txt +0 -504
  361. package/kysley/adapter.ts +0 -29
  362. package/out/kysley/adapter.d.ts +0 -13
  363. package/out/kysley/adapter.d.ts.map +0 -1
  364. package/out/kysley/adapter.js +0 -25
  365. package/out/kysley/adapter.js.map +0 -1
  366. package/out/pipeline/reconcile-lookups.d.ts +0 -39
  367. package/out/pipeline/reconcile-lookups.d.ts.map +0 -1
  368. package/out/pipeline/reconcile-lookups.js +0 -88
  369. package/out/pipeline/reconcile-lookups.js.map +0 -1
  370. package/out/pipeline/reconcile.d.ts +0 -153
  371. package/out/pipeline/reconcile.d.ts.map +0 -1
  372. package/out/pipeline/reconcile.js +0 -388
  373. package/out/pipeline/reconcile.js.map +0 -1
  374. package/out/pipeline/span-logit-aggregation.d.ts +0 -58
  375. package/out/pipeline/span-logit-aggregation.d.ts.map +0 -1
  376. package/out/pipeline/span-logit-aggregation.js +0 -117
  377. package/out/pipeline/span-logit-aggregation.js.map +0 -1
  378. package/pipeline/reconcile-lookups.ts +0 -111
  379. package/pipeline/reconcile.ts +0 -583
  380. package/pipeline/span-logit-aggregation.ts +0 -156
@@ -16,6 +16,13 @@ import type { AddressTree } from "../decoder/types.ts";
16
16
  import type { ResolveOpts, Resolver, ResolverBackend } from "../resolver/types.ts";
17
17
  import type { Section } from "../types/classifier.ts";
18
18
  export type LocaleTag = string;
19
+ /**
20
+ * Independent host/browser preferences. A timezone is evidence, never a locale conversion.
21
+ */
22
+ export interface MachinePreferences {
23
+ locale?: LocaleTag;
24
+ timeZone?: string;
25
+ }
19
26
  /**
20
27
  * Optional user-location signal for Stage 6 resolver scoring.
21
28
  */
@@ -54,19 +61,6 @@ export interface PipelineOpts {
54
61
  * still takes the poi branch regardless of this flag.
55
62
  */
56
63
  forceFullPipeline?: boolean;
57
- /**
58
- * The joint-reconcile path (Stage 5 beam search). Promoted to default by Route A Phase II (#427), then RETIRED AS
59
- * DEFAULT 2026-06-14: a reconcile-vs-raw-neural audit found it breaks the street+house_number geocode precondition on
60
- * 77-84% of clean US addresses (golden v0.1.2 US+FR, n=4507: street -25.6pp, house_number -23.1pp; worse-or-flat on
61
- * every tag, venue included). The phrase grouper bundles the house number into the STREET_PHRASE and reconcileSpans
62
- * fuses the span. The #427 "DE +25pp" gains were loose street-string recall on OOD inputs, not the geocode
63
- * precondition. Default (unset) is now `false` (argmax). It still requires a phrase grouper + a classifier exposing
64
- * `parseWithLogits`; when either is absent the pipeline uses argmax regardless.
65
- *
66
- * Set `jointReconcile: true` to opt back into reconcile (the A/B harnesses do). Report:
67
- * docs/articles/evals/experiments/2026-06-14-reconcile-retirement.md.
68
- */
69
- jointReconcile?: boolean;
70
64
  /**
71
65
  * Hard cap on lookups the resolver may issue; passed through.
72
66
  */
@@ -145,12 +139,113 @@ export interface LocaleHint {
145
139
  locale: LocaleTag;
146
140
  confidence: number;
147
141
  }>;
148
- source: "caller" | "detected" | "ensemble";
142
+ source: "caller" | "environment" | "machine" | "detected" | "ensemble";
143
+ /**
144
+ * Diagnostic provenance for inferred preferences. Locale and timezone remain independent signals.
145
+ */
146
+ evidence?: {
147
+ intlLocale?: string;
148
+ timeZone?: string;
149
+ environmentLocale?: string;
150
+ };
149
151
  }
150
152
  /**
151
153
  * Kind classifier output.
152
154
  */
153
- export type QueryKind = "postcode_only" | "locality_only" | "structured_address" | "intersection" | "po_box" | "landmark" | "poi_query" | "vague";
155
+ export type QueryKind = "postcode_only" | "locality_only" | "structured_address" | "intersection" | "po_box" | "landmark" | "poi_query" | "vague"
156
+ /**
157
+ * ROAD_TO_V9 §4 — the query-INTENT vocabulary. Four kinds that describe what the user is ASKING FOR rather than what
158
+ * their string is shaped like. They are ordinary members of this union (intent is vocabulary of the existing Stage
159
+ * 2.5, never a new stage), and each one, when it fires, attaches a {@link QueryIntentMarker} to the result.
160
+ *
161
+ * Two of the four are deliberately RANKED BELOW their structural incumbent and therefore surface in
162
+ * {@link QueryKindResult.alternatives} rather than as the top kind — see the individual docstrings in
163
+ * `@mailwoman/kind-classifier`'s `intent-rules.ts`. That is the D-rule discharge: the top kind is the only thing the
164
+ * coordinator routes on (`deriveInputMode`, `canShortCircuit`, the POI branch), so leaving it untouched is what makes
165
+ * the addition provably answer-neutral on the populations those incumbents already own.
166
+ */
167
+ /**
168
+ * A single coherent place-name carrying no address grammar — no house number, no postcode, no street-type word. A
169
+ * strict REFINEMENT of `locality_only` (which also admits an admin tail: `Paris, FR`), scored just below it so the
170
+ * top kind never moves. Feeds the declared-ambiguity path: a bare toponym whose resolved candidates are not DECISIVE
171
+ * gets a `declared_ambiguity` marker at geocode time.
172
+ */
173
+ | "bare_toponym"
174
+ /**
175
+ * Two coherent toponyms with no address grammar between them — `Paris London`. Classification plus a DECLARED FORK,
176
+ * never a router (ROAD_TO_V9 §4.3): structure alone cannot separate a route pair from a comma-free locality+region
177
+ * fragment (`Moscow Idaho`), so both interpretations are named in the marker and neither wins.
178
+ */
179
+ | "route_pair"
180
+ /**
181
+ * Preposition/deictic locator with no anchor — `gas station near me`, `restaurants nearby`. The query names a
182
+ * category and a relation to the ASKER, and the asker's position is not in the string. Classification only in v9: the
183
+ * marker states that a focus point is required and absent.
184
+ */
185
+ | "near_me"
186
+ /**
187
+ * A bare POI category with nowhere to search — `tacos`, `grocery store`. The anchorless subset of `poi_query`,
188
+ * carrying the resolved `@mailwoman/poi-taxonomy` category id on its marker. Routes exactly as `poi_query` does (the
189
+ * coordinator's POI branch accepts both); resolution against `poi.db` is out of scope.
190
+ */
191
+ | "poi_category";
192
+ /**
193
+ * The advisory codes an intent kind can raise. Named per the suggestion-layer plan's rules
194
+ * (`docs/superpowers/plans/2026-08-05-suggestion-layer.md` § Naming): never `*Coherence` (that vocabulary belongs to
195
+ * the passes that decide what the answer IS), and never `correction`/`validation`. This surface only ever REPORTS.
196
+ */
197
+ export declare const QueryIntentCode: {
198
+ /**
199
+ * The query named a place, and the gazetteer's answer for that name is not decisive. Raised at RESOLVE time (the
200
+ * margin is a property of the candidate list, not of the string), so the classifier never emits it.
201
+ */
202
+ readonly DeclaredAmbiguity: "declared_ambiguity";
203
+ /**
204
+ * The query admits two whole readings and the pipeline is not choosing between them. `evidence.interpretations` names
205
+ * both.
206
+ */
207
+ readonly DeclaredFork: "declared_fork";
208
+ /**
209
+ * The query is relative to the asker and no focus point was supplied. `evidence.parameter` names the seam that would
210
+ * carry one.
211
+ */
212
+ readonly FocusPointRequired: "focus_point_required";
213
+ /**
214
+ * The query resolved to a POI taxonomy category. `evidence.categoryID` carries it.
215
+ */
216
+ readonly POICategory: "poi_category";
217
+ };
218
+ export type QueryIntentCode = (typeof QueryIntentCode)[keyof typeof QueryIntentCode];
219
+ /**
220
+ * One advisory the intent vocabulary raised about a query.
221
+ *
222
+ * Shaped after {@link PipelineFault} on purpose, and for the same reason: the caller needs to tell "the pipeline
223
+ * considered this and had something to say" apart from "the pipeline said nothing". A marker NEVER changes which answer
224
+ * wins — it is additive, attributed, and always accompanied by the ordinary result. `mechanism` follows the
225
+ * `family:rule` convention `PhraseProposal.source` established (`core/pipeline/span-proposer.ts`), so every marker
226
+ * names the rule that produced it rather than asserting itself.
227
+ */
228
+ export interface QueryIntentMarker {
229
+ /**
230
+ * The intent kind that raised this marker. Present in {@link QueryKindResult} as either the top `kind` or an entry in
231
+ * `alternatives` — a marker whose kind appears in neither is a bug in the producer.
232
+ */
233
+ kind: QueryKind;
234
+ code: QueryIntentCode;
235
+ /**
236
+ * `family:rule` — `kind:bare_toponym`, `kind:route_pair`, `resolver:dominance_margin`. Never `"unknown"`.
237
+ */
238
+ mechanism: string;
239
+ /**
240
+ * Human-readable, for a surface that shows it. Not machine-stable; branch on `code`.
241
+ */
242
+ message: string;
243
+ /**
244
+ * The measurement behind the marker, so it is auditable rather than assertive. Absent when the rule that fired had
245
+ * nothing to measure (meaning-of-zero: absent, never an empty object).
246
+ */
247
+ evidence?: Record<string, unknown>;
248
+ }
154
249
  export interface QueryKindResult {
155
250
  kind: QueryKind;
156
251
  confidence: number;
@@ -158,6 +253,12 @@ export interface QueryKindResult {
158
253
  kind: QueryKind;
159
254
  confidence: number;
160
255
  }>;
256
+ /**
257
+ * Advisories raised by the intent vocabulary (ROAD_TO_V9 §4). Optional on this interface — a pre-intent classifier
258
+ * (including `runtime-pipeline.ts`'s built-in default) simply doesn't set it — but `PipelineResult.intentMarkers` is
259
+ * always an array, so a consumer reading the RESULT never has to distinguish "absent" from "empty".
260
+ */
261
+ intentMarkers?: ReadonlyArray<QueryIntentMarker>;
161
262
  }
162
263
  /**
163
264
  * The input register (operator Decision A, 2026-07-28 — the Option-A evidence-bundle verdict): `fragmented` is the
@@ -174,6 +275,10 @@ export type InputMode = "fragmented" | "formatted";
174
275
  * (`structured_address`/`po_box`/`intersection`) are the formatted register; single-thing lookups (postcode, locality,
175
276
  * landmark, POI, vague) are fragments. NEVER keyed on case — lowercase is the primary user register (operator
176
277
  * doctrine).
278
+ *
279
+ * The four ROAD_TO_V9 §4 intent kinds are all fragments and all reach the register through the `default` arm, which is
280
+ * why adding them changed no case in this switch: a bare toponym, a route pair, a `near me` and a bare POI category are
281
+ * each a person typing one thing into a search box, never a form submitting a postal record.
177
282
  */
178
283
  export declare function deriveInputMode(kind: QueryKind): InputMode;
179
284
  /**
@@ -196,6 +301,10 @@ export interface POIIntent {
196
301
  kind: "name";
197
302
  text: string;
198
303
  };
304
+ /**
305
+ * The relation crossing from the recognized subject span to the anchor span.
306
+ */
307
+ relation?: "comma" | "near" | "in" | "at" | "around" | "to";
199
308
  /**
200
309
  * Spatial anchor: the split-off remainder text and its parse, when the query carried one.
201
310
  */
@@ -317,7 +426,7 @@ export interface FSTMatcherLike {
317
426
  accepting(stateID: number): Array<{
318
427
  wofID: number;
319
428
  placetype: string;
320
- importance: number;
429
+ referential: number;
321
430
  }>;
322
431
  }
323
432
  export interface ClassifierOpts {
@@ -398,6 +507,8 @@ export interface RuntimePipelineStages {
398
507
  }) => QueryShapeLite;
399
508
  detectLocale?: (input: NormalizedInputLite, shape: QueryShapeLite, opts?: {
400
509
  hint?: LocaleTag;
510
+ machinePreferences?: MachinePreferences;
511
+ environmentLocale?: LocaleTag;
401
512
  }) => Promise<LocaleHint>;
402
513
  classifyKind?: (input: NormalizedInputLite, shape: QueryShapeLite, locale: LocaleHint) => Promise<QueryKindResult>;
403
514
  /**
@@ -511,6 +622,16 @@ export interface PipelineResult {
511
622
  * Non-empty means the tree you are holding was produced with at least one stage down; see {@link PipelineFault}.
512
623
  */
513
624
  faults: PipelineFault[];
625
+ /**
626
+ * Query-intent advisories (ROAD_TO_V9 §4), lifted from the kind classifier's verdict. **Always present** — an empty
627
+ * array is the coordinator stating that the intent vocabulary examined this query and had nothing to say, which is a
628
+ * different claim from a missing field (the {@link faults} discipline, same reasoning).
629
+ *
630
+ * Nothing here changed which answer won. The markers are advisory by construction: the two intent kinds that could
631
+ * have displaced a structural incumbent are scored below it, and the two that do win the top slot (`near_me`,
632
+ * `poi_category`) route exactly as their incumbents did.
633
+ */
634
+ intentMarkers: QueryIntentMarker[];
514
635
  /**
515
636
  * Which path the coordinator took. `"fast-path"` skipped stages 3-5; `"poi"` took the intent branch.
516
637
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../pipeline/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAClF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAErD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAA;AAE9B;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,GAAG,EAAE,MAAM,CAA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AM,EAAE,aAAa,EAAE,CAAA;IACvB;;;;;;;;OAQG;IACH,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC;;OAEG;IACH,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,KAAK,CAAA;CAClC"}
@@ -12,11 +12,41 @@
12
12
  *
13
13
  * See `docs/engineering/reference/STAGES.md` for the full contract this implements.
14
14
  */
15
+ /**
16
+ * The advisory codes an intent kind can raise. Named per the suggestion-layer plan's rules
17
+ * (`docs/superpowers/plans/2026-08-05-suggestion-layer.md` § Naming): never `*Coherence` (that vocabulary belongs to
18
+ * the passes that decide what the answer IS), and never `correction`/`validation`. This surface only ever REPORTS.
19
+ */
20
+ export const QueryIntentCode = {
21
+ /**
22
+ * The query named a place, and the gazetteer's answer for that name is not decisive. Raised at RESOLVE time (the
23
+ * margin is a property of the candidate list, not of the string), so the classifier never emits it.
24
+ */
25
+ DeclaredAmbiguity: "declared_ambiguity",
26
+ /**
27
+ * The query admits two whole readings and the pipeline is not choosing between them. `evidence.interpretations` names
28
+ * both.
29
+ */
30
+ DeclaredFork: "declared_fork",
31
+ /**
32
+ * The query is relative to the asker and no focus point was supplied. `evidence.parameter` names the seam that would
33
+ * carry one.
34
+ */
35
+ FocusPointRequired: "focus_point_required",
36
+ /**
37
+ * The query resolved to a POI taxonomy category. `evidence.categoryID` carries it.
38
+ */
39
+ POICategory: "poi_category",
40
+ };
15
41
  /**
16
42
  * Map a {@link QueryKind} to its {@link InputMode} register. Multi-component postal specifications
17
43
  * (`structured_address`/`po_box`/`intersection`) are the formatted register; single-thing lookups (postcode, locality,
18
44
  * landmark, POI, vague) are fragments. NEVER keyed on case — lowercase is the primary user register (operator
19
45
  * doctrine).
46
+ *
47
+ * The four ROAD_TO_V9 §4 intent kinds are all fragments and all reach the register through the `default` arm, which is
48
+ * why adding them changed no case in this switch: a bare toponym, a route pair, a `near me` and a bare POI category are
49
+ * each a person typing one thing into a search box, never a form submitting a postal record.
20
50
  */
21
51
  export function deriveInputMode(kind) {
22
52
  switch (kind) {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../pipeline/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AA8JH;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,IAAe;IAC9C,QAAQ,IAAI,EAAE,CAAC;QACd,KAAK,oBAAoB,CAAC;QAC1B,KAAK,QAAQ,CAAC;QACd,KAAK,cAAc;YAClB,OAAO,WAAW,CAAA;QACnB;YACC,OAAO,YAAY,CAAA;IACrB,CAAC;AACF,CAAC;AA8KD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC5C,qBAAqB,EAAE,IAAI;IAC3B,kBAAkB,EAAE,IAAI;CACoC,CAAA;AAqE7D;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,UAAU,EAAE,YAAY;IACxB,aAAa,EAAE,gBAAgB;IAC/B,QAAQ,EAAE,UAAU;CACX,CAAA"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../pipeline/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAoLH;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B;;;OAGG;IACH,iBAAiB,EAAE,oBAAoB;IACvC;;;OAGG;IACH,YAAY,EAAE,eAAe;IAC7B;;;OAGG;IACH,kBAAkB,EAAE,sBAAsB;IAC1C;;OAEG;IACH,WAAW,EAAE,cAAc;CAClB,CAAA;AA0DV;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,IAAe;IAC9C,QAAQ,IAAI,EAAE,CAAC;QACd,KAAK,oBAAoB,CAAC;QAC1B,KAAK,QAAQ,CAAC;QACd,KAAK,cAAc;YAClB,OAAO,WAAW,CAAA;QACnB;YACC,OAAO,YAAY,CAAA;IACrB,CAAC;AACF,CAAC;AAkLD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC5C,qBAAqB,EAAE,IAAI;IAC3B,kBAAkB,EAAE,IAAI;CACoC,CAAA;AAyE7D;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IACjC,UAAU,EAAE,YAAY;IACxB,aAAa,EAAE,gBAAgB;IAC/B,QAAQ,EAAE,UAAU;CACX,CAAA"}
@@ -7,7 +7,7 @@
7
7
  * migration. This file is the canonical place to record such migrations; each Phase 2+ rollout
8
8
  * edits one entry here with a commit-message rationale.
9
9
  */
10
- import { type ComponentTag } from "@mailwoman/core/types";
10
+ import { type ComponentTag } from "#types";
11
11
  import type { ClassifierPolicy, PolicyMode } from "./policy.ts";
12
12
  /**
13
13
  * Build a fresh array of policies — one per `ComponentTag`, all in `mode`. Returns a new array on each call; callers
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../policy/defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE/D;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,GAAE,UAAwB,GAAG,gBAAgB,EAAE,CAKvF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,YAAY,EAAE,IAAI,GAAE,UAAwB,GAAG,gBAAgB,CAE1G"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../../policy/defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAA;AAE1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE/D;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,GAAE,UAAwB,GAAG,gBAAgB,EAAE,CAKvF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,YAAY,EAAE,IAAI,GAAE,UAAwB,GAAG,gBAAgB,CAE1G"}
@@ -7,7 +7,7 @@
7
7
  * migration. This file is the canonical place to record such migrations; each Phase 2+ rollout
8
8
  * edits one entry here with a commit-message rationale.
9
9
  */
10
- import { COMPONENT_TAGS } from "@mailwoman/core/types";
10
+ import { COMPONENT_TAGS } from "#types";
11
11
  /**
12
12
  * Build a fresh array of policies — one per `ComponentTag`, all in `mode`. Returns a new array on each call; callers
13
13
  * may mutate it freely.
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../policy/defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAqB,MAAM,uBAAuB,CAAA;AAIzE;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAmB,WAAW;IAClE,OAAO,cAAc,CAAC,GAAG,CAAmB,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QAC3D,SAAS;QACT,IAAI;KACJ,CAAC,CAAC,CAAA;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAuB,EAAE,OAAmB,WAAW;IACvF,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAA;AAC3B,CAAC"}
1
+ {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../policy/defaults.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAqB,MAAM,QAAQ,CAAA;AAI1D;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAmB,WAAW;IAClE,OAAO,cAAc,CAAC,GAAG,CAAmB,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QAC3D,SAAS;QACT,IAAI;KACJ,CAAC,CAAC,CAAA;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,SAAuB,EAAE,OAAmB,WAAW;IACvF,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAA;AAC3B,CAAC"}
@@ -8,7 +8,7 @@
8
8
  * locale. The default table starts every component in `rule_only` mode; migrations to
9
9
  * neural-backed modes happen one component at a time, gated on golden-set metrics.
10
10
  */
11
- import type { ClassificationProposal, ComponentTag } from "@mailwoman/core/types";
11
+ import type { ClassificationProposal, ComponentTag } from "#types";
12
12
  /**
13
13
  * How a component is sourced.
14
14
  *
@@ -1 +1 @@
1
- {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../policy/policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEjF;;;;;;;;;GASG;AACH,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,MAAM,GAAG,kBAAkB,GAAG,gBAAgB,CAAA;AAErG;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAChC,SAAS,EAAE,YAAY,CAAA;IACvB,IAAI,EAAE,UAAU,CAAA;IAEhB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;;OAGG;IACH,MAAM,CAAC,SAAS,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;IAElE;;OAEG;IACH,KAAK,CAAC,SAAS,EAAE,SAAS,sBAAsB,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,sBAAsB,EAAE,CAAA;CAC9F"}
1
+ {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../policy/policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAElE;;;;;;;;;GASG;AACH,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,MAAM,GAAG,kBAAkB,GAAG,gBAAgB,CAAA;AAErG;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAChC,SAAS,EAAE,YAAY,CAAA;IACvB,IAAI,EAAE,UAAU,CAAA;IAEhB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;;OAGG;IACH,MAAM,CAAC,SAAS,EAAE,YAAY,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;IAElE;;OAEG;IACH,KAAK,CAAC,SAAS,EAAE,SAAS,sBAAsB,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,sBAAsB,EAAE,CAAA;CAC9F"}
@@ -9,7 +9,7 @@
9
9
  * Mutation API (`set`, `remove`) lives here so that locale profiles (#6 §LocaleProfile) can install
10
10
  * per-locale overrides at startup. Look-up and `apply` are pure.
11
11
  */
12
- import type { ClassificationProposal, ComponentTag } from "@mailwoman/core/types";
12
+ import type { ClassificationProposal, ComponentTag } from "#types";
13
13
  import type { ClassifierPolicy, PolicyMode, PolicyRegistry } from "./policy.ts";
14
14
  /**
15
15
  * Concrete registry implementation. Construct empty with `new InMemoryPolicyRegistry()` and load entries via `set()`,
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../policy/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAQ/E;;;GAGG;AACH,qBAAa,sBAAuB,YAAW,cAAc;;IAG5D;;;OAGG;IACH,MAA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
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * What a loaded gazetteer artifact declares about its own country coverage, and the one derivation the
7
+ * reader and the build share. A country ABSENT from a coverage map was never measured — never measured and
8
+ * failed; the failed case is present with `hardFilterSafe: false`.
9
+ */
10
+ /**
11
+ * One country's measured hard-filter coverage fact, as recorded at a promote gate. Facts about the gazetteer artifact
12
+ * live IN the artifact (the `country_coverage` table the gazetteer build emits) — code constants are only the fallback
13
+ * for artifacts that predate the manifest.
14
+ *
15
+ * Meaning-of-zero discipline: a country ABSENT from the coverage map was never measured — never "measured and failed".
16
+ * A measured-and-failed country is PRESENT with `hardFilterSafe: false` (e.g. FI at 69.5% hard-resolve), so the
17
+ * negative result is a first-class record, distinguishable from ignorance.
18
+ */
19
+ export interface CountryCoverageFact {
20
+ /**
21
+ * ISO 3166-1 alpha-2, uppercase.
22
+ */
23
+ country: string;
24
+ /**
25
+ * The promote-gate VERDICT: hard-filtering this country is a pure win (a hard-filter miss is almost always a genuine
26
+ * non-match, not a coverage gap). Stored as a verdict — not re-derived from `hardResolveRate` at read time — because
27
+ * the gate is a judgment over a panel, not a pure rate function (CA cleared at the #928 promote on the
28
+ * postcode-format-prior rationale despite a sub-95% panel resolve rate).
29
+ */
30
+ hardFilterSafe: boolean;
31
+ /**
32
+ * Measured hard-resolve rate (0..1) on the panel named in `source`, when the receipt recorded one.
33
+ */
34
+ hardResolveRate?: number;
35
+ /**
36
+ * Panel size behind `hardResolveRate`, when recorded.
37
+ */
38
+ sampleSize?: number;
39
+ /**
40
+ * ISO-8601 date of the measurement / promote gate.
41
+ */
42
+ measuredAt: string;
43
+ /**
44
+ * The receipt: which panel/gate produced this row (issue + date, human-readable).
45
+ */
46
+ source: string;
47
+ }
48
+ /**
49
+ * One country's coarse guard-B bounding box, as carried by the gazetteer artifact's `country_bbox` table.
50
+ */
51
+ export interface CountryBBoxFact {
52
+ /**
53
+ * ISO 3166-1 alpha-2, uppercase.
54
+ */
55
+ country: string;
56
+ latMin: number;
57
+ latMax: number;
58
+ lonMin: number;
59
+ lonMax: number;
60
+ /**
61
+ * Provenance of the box (harness + date).
62
+ */
63
+ source: string;
64
+ }
65
+ /**
66
+ * Facts a loaded gazetteer artifact declares about itself — read from the artifact's own manifest tables at open time,
67
+ * carried on the {@link ResolverBackend}/{@link Resolver} handle so consumers read the facts from the artifact they are
68
+ * actually resolving against. `undefined` on the handle = the artifact predates the manifest → consumers fall back to
69
+ * the code constants (byte-identical legacy behavior).
70
+ */
71
+ export interface GazetteerArtifactCoverage {
72
+ /**
73
+ * Country → measured coverage fact. ABSENCE = never measured (meaning-of-zero), never "failed".
74
+ */
75
+ countryCoverage: ReadonlyMap<string, CountryCoverageFact>;
76
+ /**
77
+ * Country → guard-B bbox. ABSENCE = no box → the plausibility guard fails open for that country.
78
+ */
79
+ countryBBoxes: ReadonlyMap<string, CountryBBoxFact>;
80
+ /**
81
+ * Derived at load: the countries whose fact says `hardFilterSafe` — the artifact's hard-country safelist.
82
+ */
83
+ hardCountrySafelist: ReadonlySet<string>;
84
+ }
85
+ /**
86
+ * Derive the hard-country safelist from coverage facts — the ONE derivation both the reader and the build share.
87
+ */
88
+ export declare function hardCountrySafelistFromCoverage(facts: Iterable<CountryCoverageFact>): ReadonlySet<string>;
89
+ //# sourceMappingURL=coverage-facts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coverage-facts.d.ts","sourceRoot":"","sources":["../../resolver/coverage-facts.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AACH,MAAM,WAAW,mBAAmB;IACnC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;;;OAKG;IACH,cAAc,EAAE,OAAO,CAAA;IACvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACzC;;OAEG;IACH,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;IACzD;;OAEG;IACH,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;IACnD;;OAEG;IACH,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACxC;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,QAAQ,CAAC,mBAAmB,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAUzG"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * What a loaded gazetteer artifact declares about its own country coverage, and the one derivation the
7
+ * reader and the build share. A country ABSENT from a coverage map was never measured — never measured and
8
+ * failed; the failed case is present with `hardFilterSafe: false`.
9
+ */
10
+ /**
11
+ * Derive the hard-country safelist from coverage facts — the ONE derivation both the reader and the build share.
12
+ */
13
+ export function hardCountrySafelistFromCoverage(facts) {
14
+ const out = new Set();
15
+ for (const fact of facts) {
16
+ if (fact.hardFilterSafe) {
17
+ out.add(fact.country.toUpperCase());
18
+ }
19
+ }
20
+ return out;
21
+ }
22
+ //# sourceMappingURL=coverage-facts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coverage-facts.js","sourceRoot":"","sources":["../../resolver/coverage-facts.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAgFH;;GAEG;AACH,MAAM,UAAU,+BAA+B,CAAC,KAAoC;IACnF,MAAM,GAAG,GAAG,IAAI,GAAG,EAAU,CAAA;IAE7B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QAC1B,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACzB,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;QACpC,CAAC;IACF,CAAC;IAED,OAAO,GAAG,CAAA;AACX,CAAC"}
@@ -10,6 +10,9 @@
10
10
  * `@mailwoman/resolver` (#215), which depends on this + `@mailwoman/spatial` +
11
11
  * `@mailwoman/codex`.
12
12
  */
13
+ export { compareReferential, REFERENTIAL_LOG2_SCALE, REFERENTIAL_POPULATION_DIVISOR, REFERENTIAL_SATURATION_POPULATION, referentialFromPopulation, } from "./referential.ts";
14
+ export type { ReferentiallyRankable } from "./referential.ts";
15
+ export { countriesFromPostcodeFormat, countryFromPostcodeFormat, POSTCODE_FORMAT_COUNTRY } from "./postcode-format.ts";
13
16
  export { DEFAULT_PLACETYPE_MAP, PLACETYPE_FILTER_GROUPS, expandPlacetypeFilter, hardCountrySafelistFromCoverage, isPlacetypeFallback, } from "./types.ts";
14
- export type { AddressPointHit, AddressPointLookup, Ancestor, CoincidentLocality, CountryBBoxFact, CountryCoverageFact, GazetteerArtifactCoverage, InterpolatedPointHit, InterpolationLookup, PlacetypeMap, ResolveOpts, ResolvedPlace, Resolver, ResolverBackend, StreetCentroidHit, StreetCentroidLookup, } from "./types.ts";
17
+ export type { AddressPointHit, AddressPointLookup, Ancestor, BackendCapabilityGap, CoincidentLocality, CountryBBoxFact, CountryCoverageFact, GazetteerArtifactCoverage, InterpolatedPointHit, InterpolationLookup, PlacetypeMap, PostcodePrefixAncestor, PostcodePrefixIndexLike, PostcodePrefixNode, ResolveCandidateTrace, ResolveNodeTrace, ResolveOpts, ResolvedPlace, Resolver, ResolverBackend, StreetCentroidHit, StreetCentroidLookup, } from "./types.ts";
15
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../resolver/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACN,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,+BAA+B,EAC/B,mBAAmB,GACnB,MAAM,YAAY,CAAA;AAEnB,YAAY,EACX,eAAe,EACf,kBAAkB,EAClB,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,oBAAoB,GACpB,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../resolver/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,8BAA8B,EAC9B,iCAAiC,EACjC,yBAAyB,GACzB,MAAM,kBAAkB,CAAA;AAEzB,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AAE7D,OAAO,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEtH,OAAO,EACN,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,+BAA+B,EAC/B,mBAAmB,GACnB,MAAM,YAAY,CAAA;AAEnB,YAAY,EACX,eAAe,EACf,kBAAkB,EAClB,QAAQ,EACR,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,oBAAoB,GACpB,MAAM,YAAY,CAAA"}
@@ -10,5 +10,7 @@
10
10
  * `@mailwoman/resolver` (#215), which depends on this + `@mailwoman/spatial` +
11
11
  * `@mailwoman/codex`.
12
12
  */
13
+ export { compareReferential, REFERENTIAL_LOG2_SCALE, REFERENTIAL_POPULATION_DIVISOR, REFERENTIAL_SATURATION_POPULATION, referentialFromPopulation, } from "./referential.js";
14
+ export { countriesFromPostcodeFormat, countryFromPostcodeFormat, POSTCODE_FORMAT_COUNTRY } from "./postcode-format.js";
13
15
  export { DEFAULT_PLACETYPE_MAP, PLACETYPE_FILTER_GROUPS, expandPlacetypeFilter, hardCountrySafelistFromCoverage, isPlacetypeFallback, } from "./types.js";
14
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../resolver/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACN,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,+BAA+B,EAC/B,mBAAmB,GACnB,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../resolver/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACN,kBAAkB,EAClB,sBAAsB,EACtB,8BAA8B,EAC9B,iCAAiC,EACjC,yBAAyB,GACzB,MAAM,kBAAkB,CAAA;AAIzB,OAAO,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAEtH,OAAO,EACN,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,+BAA+B,EAC/B,mBAAmB,GACnB,MAAM,YAAY,CAAA"}