@mailwoman/core 7.8.1 → 8.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.
- package/coarse-placer/coarse-placer.ts +14 -2
- package/out/coarse-placer/coarse-placer.d.ts +14 -2
- package/out/coarse-placer/coarse-placer.d.ts.map +1 -1
- package/out/coarse-placer/coarse-placer.js.map +1 -1
- package/out/pipeline/index.d.ts +1 -1
- package/out/pipeline/index.d.ts.map +1 -1
- package/out/pipeline/runtime-pipeline.d.ts +4 -0
- package/out/pipeline/runtime-pipeline.d.ts.map +1 -1
- package/out/pipeline/runtime-pipeline.js +58 -13
- package/out/pipeline/runtime-pipeline.js.map +1 -1
- package/out/pipeline/types.d.ts +46 -6
- package/out/pipeline/types.d.ts.map +1 -1
- package/out/pipeline/types.js.map +1 -1
- package/out/resolver/index.d.ts +2 -2
- package/out/resolver/index.d.ts.map +1 -1
- package/out/resolver/index.js +1 -1
- package/out/resolver/index.js.map +1 -1
- package/out/resolver/types.d.ts +90 -7
- package/out/resolver/types.d.ts.map +1 -1
- package/out/resolver/types.js +10 -0
- package/out/resolver/types.js.map +1 -1
- package/package.json +3 -3
- package/pipeline/index.ts +1 -0
- package/pipeline/runtime-pipeline.ts +76 -13
- package/pipeline/types.ts +44 -6
- package/resolver/index.ts +10 -1
- package/resolver/types.ts +104 -7
|
@@ -15,12 +15,24 @@ import { COARSE_CLASSES, FEATURE_DIM, featurize } from "./featurize.ts"
|
|
|
15
15
|
|
|
16
16
|
/** Serialized model: metadata in JSON, the dense `weights` (row-major [class][feature]) alongside. */
|
|
17
17
|
export interface CoarsePlacerArtifact {
|
|
18
|
+
/**
|
|
19
|
+
* The coarse placer's classes (the country/region codes it routes to).
|
|
20
|
+
*/
|
|
18
21
|
classes: readonly string[]
|
|
19
22
|
featureDim: number
|
|
20
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Temperature for confidence calibration (logits are divided by this before softmax).
|
|
25
|
+
*/
|
|
21
26
|
temperature: number
|
|
27
|
+
/**
|
|
28
|
+
* Bias vector. The bias is the log-prior of each class (the model's belief before seeing any input). The bias is
|
|
29
|
+
* learned during training, and the temperature is fit on the validation set to calibrate the confidence. The bias is
|
|
30
|
+
* added to the weighted sum of features for each class before applying the softmax.
|
|
31
|
+
*/
|
|
22
32
|
bias: number[]
|
|
23
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Flat row-major weight matrix, length `classes.length * featureDim`.
|
|
35
|
+
*/
|
|
24
36
|
weights: Float32Array
|
|
25
37
|
}
|
|
26
38
|
|
|
@@ -12,12 +12,24 @@
|
|
|
12
12
|
import { COARSE_CLASSES, FEATURE_DIM, featurize } from "./featurize.ts";
|
|
13
13
|
/** Serialized model: metadata in JSON, the dense `weights` (row-major [class][feature]) alongside. */
|
|
14
14
|
export interface CoarsePlacerArtifact {
|
|
15
|
+
/**
|
|
16
|
+
* The coarse placer's classes (the country/region codes it routes to).
|
|
17
|
+
*/
|
|
15
18
|
classes: readonly string[];
|
|
16
19
|
featureDim: number;
|
|
17
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Temperature for confidence calibration (logits are divided by this before softmax).
|
|
22
|
+
*/
|
|
18
23
|
temperature: number;
|
|
24
|
+
/**
|
|
25
|
+
* Bias vector. The bias is the log-prior of each class (the model's belief before seeing any input). The bias is
|
|
26
|
+
* learned during training, and the temperature is fit on the validation set to calibrate the confidence. The bias is
|
|
27
|
+
* added to the weighted sum of features for each class before applying the softmax.
|
|
28
|
+
*/
|
|
19
29
|
bias: number[];
|
|
20
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Flat row-major weight matrix, length `classes.length * featureDim`.
|
|
32
|
+
*/
|
|
21
33
|
weights: Float32Array;
|
|
22
34
|
}
|
|
23
35
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coarse-placer.d.ts","sourceRoot":"","sources":["../../coarse-placer/coarse-placer.ts"],"names":[],"mappings":"AAAA;;;;;;;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EAAE,CAAC;QACzC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,UAAU,CAAA;IACtD,CAAC;IAED,OAAO,SAAS,CAAA;AACjB,CAAC;AAED,2FAA2F;AAC3F,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACrC,QAAwF,EACxF,OAAqB,EACrB,IAAuB;IAEvB,OAAO,IAAI,YAAY,CAAC,EAAE,GAAG,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,CAAA;AACxD,CAAC;AAED,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,CAAA"}
|
package/out/pipeline/index.d.ts
CHANGED
|
@@ -13,5 +13,5 @@ export type { SpanBounds, TokenPiece } from "./span-logit-aggregation.ts";
|
|
|
13
13
|
export { EMPTY_SPAN_PROPOSER_LEXICON, proposeSpans } from "./span-proposer.ts";
|
|
14
14
|
export type { ProposedSpan, ProposedSpanKind, SpanProposerLexicon } from "./span-proposer.ts";
|
|
15
15
|
export { WORD_CONSISTENCY_SHIP_DEFAULT } from "./types.ts";
|
|
16
|
-
export type { AddressClassifier, ClassifierOpts, FSTMatcherLike, LocaleHint, LocaleTag, NormalizedInputLite, PhraseGrouper, PhraseKind, PhraseProposal, PipelineOpts, PipelineResult, PipelineTiming, POIIntent, POIIntentOutcome, POIResult, QueryKind, QueryKindResult, QueryShapeLite, RuntimePipelineStages, UserLocation, } from "./types.ts";
|
|
16
|
+
export type { AddressClassifier, ClassifierOpts, FSTMatcherLike, LocaleHint, LocaleTag, NormalizedInputLite, PhraseGrouper, PhraseKind, PhraseProposal, PipelineOpts, PipelineResult, PipelineTiming, PlacetypePairPassthrough, POIIntent, POIIntentOutcome, POIResult, QueryKind, QueryKindResult, QueryShapeLite, RuntimePipelineStages, UserLocation, } from "./types.ts";
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../pipeline/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,YAAY,EACX,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,aAAa,EACb,wBAAwB,EACxB,cAAc,GACd,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,2BAA2B,EAAE,cAAc,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACpH,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACzE,OAAO,EAAE,2BAA2B,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC9E,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7F,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAC1D,YAAY,EACX,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,aAAa,EACb,UAAU,EACV,cAAc,EACd,YAAY,EACZ,cAAc,EACd,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,YAAY,GACZ,MAAM,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../pipeline/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,YAAY,EACX,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,aAAa,EACb,wBAAwB,EACxB,cAAc,GACd,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,2BAA2B,EAAE,cAAc,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACpH,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACjE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AACzE,OAAO,EAAE,2BAA2B,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC9E,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7F,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAC1D,YAAY,EACX,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,aAAa,EACb,UAAU,EACV,cAAc,EACd,YAAY,EACZ,cAAc,EACd,cAAc,EACd,wBAAwB,EACxB,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,YAAY,GACZ,MAAM,YAAY,CAAA"}
|
|
@@ -31,6 +31,10 @@ export declare function isBareLocalityTree(tree: AddressTree): boolean;
|
|
|
31
31
|
* apply the SAME three gates and can't drift: confidence ≥ {@link HARD_PLACE_COUNTRY_MIN_CONF}, country in the safelist
|
|
32
32
|
* (override or the default {@link HARD_PLACE_COUNTRY_SAFELIST}), and no caller-set hard/default country to respect.
|
|
33
33
|
* Returns the country to hard-filter, or `undefined` to stay on the soft prior.
|
|
34
|
+
*
|
|
35
|
+
* `safelist` precedence is the CALLER's job: pass `perCallOverride ?? resolver.artifactCoverage?.hardCountrySafelist`
|
|
36
|
+
* (the eval instrument first, then the loaded artifact's own manifest) and this gate falls back to the code constant
|
|
37
|
+
* only when both are absent — byte-identical to the pre-manifest behavior.
|
|
34
38
|
*/
|
|
35
39
|
export declare function hardCountryFor(placedCountry: string, placedConfidence: number, existing: {
|
|
36
40
|
hardCountry?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-pipeline.d.ts","sourceRoot":"","sources":["../../pipeline/runtime-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAIzD,OAAO,KAAK,EAOX,cAAc,EACd,YAAY,EACZ,cAAc,
|
|
1
|
+
{"version":3,"file":"runtime-pipeline.d.ts","sourceRoot":"","sources":["../../pipeline/runtime-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAGnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAIzD,OAAO,KAAK,EAOX,cAAc,EACd,YAAY,EACZ,cAAc,EAId,qBAAqB,EACrB,MAAM,YAAY,CAAA;AAqDnB,eAAO,MAAM,2BAA2B,EAAE,WAAW,CAAC,MAAM,CAY1D,CAAA;AAEF;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAc7D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC7B,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,QAAQ,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3D,gBAAgB,EAAE,OAAO,GAAG,SAAS,EACrC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,GACvC,MAAM,GAAG,SAAS,CAUpB;AAiHD;;;;;;;;;;;;GAYG;AACH,wBAAsB,WAAW,CAChC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,qBAAqB,EAC7B,IAAI,CAAC,EAAE,YAAY,GACjB,OAAO,CAAC,cAAc,CAAC,CAuRzB;AA2GD;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAC3B,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,cAAc,EAAE,EAC3B,IAAI,EAAE,MAAM,EACZ,cAAc,CAAC,EAAE,mBAAmB,EAAE,GACpC,WAAW,CA8Fb"}
|
|
@@ -48,12 +48,20 @@ const HARD_PLACE_COUNTRY_MIN_CONF = 0.9;
|
|
|
48
48
|
// "miss → unresolved" is rare and almost always a genuine non-match, not a coverage gap. A confident
|
|
49
49
|
// placement OUTSIDE this set stays on the SOFT prior, so the low-coverage tail (FI/PL/…) keeps its
|
|
50
50
|
// recall until its gazetteer is filled (#193) — the win for covered countries, no recall regression
|
|
51
|
-
// for the rest (DeepSeek-advised, 2026-06-22).
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
//
|
|
56
|
-
//
|
|
51
|
+
// for the rest (DeepSeek-advised, 2026-06-22).
|
|
52
|
+
//
|
|
53
|
+
// FALLBACK ROLE (survey candidate #2, 2026-07-26): this set is now the FALLBACK for gazetteer
|
|
54
|
+
// artifacts that predate the coverage manifest. Facts about the artifact live IN the artifact — the
|
|
55
|
+
// candidate gazetteer's `country_coverage` table carries the per-country promote-gate verdicts + the
|
|
56
|
+
// measured rates (the numbers that used to be trivia in this comment), and a loaded artifact's
|
|
57
|
+
// derived safelist (`resolver.artifactCoverage.hardCountrySafelist`) takes precedence over this
|
|
58
|
+
// constant. The measured record lives in `mailwoman/gazetteer-pipeline/coverage-manifest.ts`
|
|
59
|
+
// (MEASURED_COUNTRY_COVERAGE — grow THAT at promotes; it updates the artifact at rebuild). Precedence:
|
|
60
|
+
// per-call `PipelineOpts.hardCountrySafelist` (the eval's instrument, measures ungated to grow the
|
|
61
|
+
// list) → the loaded artifact's manifest → this constant.
|
|
62
|
+
// Historical receipts now recorded structurally in MEASURED_COUNTRY_COVERAGE: US/FR/DE 100, ES 99.8,
|
|
63
|
+
// NL 97.3, IT 96.8 (in); FI 69.5, PL 77.8 (measured, out); GB + CA at the #928 promote (2026-07-06,
|
|
64
|
+
// OSM panels, night 34); AU with the #244 placer class (2026-07-06).
|
|
57
65
|
export const HARD_PLACE_COUNTRY_SAFELIST = new Set([
|
|
58
66
|
"US",
|
|
59
67
|
"ES",
|
|
@@ -96,6 +104,10 @@ export function isBareLocalityTree(tree) {
|
|
|
96
104
|
* apply the SAME three gates and can't drift: confidence ≥ {@link HARD_PLACE_COUNTRY_MIN_CONF}, country in the safelist
|
|
97
105
|
* (override or the default {@link HARD_PLACE_COUNTRY_SAFELIST}), and no caller-set hard/default country to respect.
|
|
98
106
|
* Returns the country to hard-filter, or `undefined` to stay on the soft prior.
|
|
107
|
+
*
|
|
108
|
+
* `safelist` precedence is the CALLER's job: pass `perCallOverride ?? resolver.artifactCoverage?.hardCountrySafelist`
|
|
109
|
+
* (the eval instrument first, then the loaded artifact's own manifest) and this gate falls back to the code constant
|
|
110
|
+
* only when both are absent — byte-identical to the pre-manifest behavior.
|
|
99
111
|
*/
|
|
100
112
|
export function hardCountryFor(placedCountry, placedConfidence, existing, hardPlaceCountry, safelist) {
|
|
101
113
|
if (!hardPlaceCountry)
|
|
@@ -240,9 +252,10 @@ export async function runPipeline(raw, stages, opts) {
|
|
|
240
252
|
// even when FI is pinned); the hard filter does. Three gates: confidence (ambiguous DK↔NO stay
|
|
241
253
|
// soft), the safelist (only well-covered countries — where a miss is a genuine non-match, not a
|
|
242
254
|
// coverage gap — hard-filter; the low-coverage tail keeps its recall on the soft path), and the
|
|
243
|
-
// caller's own hardCountry/defaultCountry is never overwritten.
|
|
244
|
-
// override
|
|
245
|
-
|
|
255
|
+
// caller's own hardCountry/defaultCountry is never overwritten. Safelist precedence: the per-call
|
|
256
|
+
// `hardCountrySafelist` override (the eval measures ungated to grow it) → the loaded gazetteer
|
|
257
|
+
// artifact's own coverage manifest → the code-constant fallback inside hardCountryFor.
|
|
258
|
+
const hardCountry = hardCountryFor(placed.country, placed.confidence, opts?.resolveOpts ?? {}, opts?.hardPlaceCountry, opts?.hardCountrySafelist ?? stages.resolver?.artifactCoverage?.hardCountrySafelist);
|
|
246
259
|
placerAnchorApplied = true;
|
|
247
260
|
effectiveOpts = {
|
|
248
261
|
...opts,
|
|
@@ -348,13 +361,17 @@ export async function runPipeline(raw, stages, opts) {
|
|
|
348
361
|
// the tracked issue); until that's fixed, argmax is the correct default. Set `jointReconcile: true`
|
|
349
362
|
// to opt back into reconcile (the A/B harnesses do). Report:
|
|
350
363
|
// docs/articles/evals/experiments/2026-06-14-reconcile-retirement.md.
|
|
351
|
-
const jointEnabled = opts?.jointReconcile ??
|
|
364
|
+
const jointEnabled = opts?.jointReconcile ?? false;
|
|
352
365
|
const useJointReconcile = jointEnabled && phraseProposals.length > 0 && stages.classifier && "parseWithLogits" in stages.classifier;
|
|
353
366
|
if (useJointReconcile) {
|
|
354
367
|
const classifierWithLogits = stages.classifier;
|
|
355
368
|
throwIfAborted(opts);
|
|
356
369
|
const tClassify = performance.now();
|
|
357
|
-
const { tree: argmaxTree, logits, pieces, } = await classifierWithLogits.parseWithLogits(normalized.normalized, {
|
|
370
|
+
const { tree: argmaxTree, logits, pieces, } = await classifierWithLogits.parseWithLogits(normalized.normalized, {
|
|
371
|
+
queryShape,
|
|
372
|
+
fst: stages.fst,
|
|
373
|
+
...streetContextGateFor(stages),
|
|
374
|
+
});
|
|
358
375
|
timing["token-classify"] = performance.now() - tClassify;
|
|
359
376
|
throwIfAborted(opts);
|
|
360
377
|
const tReconcile = performance.now();
|
|
@@ -394,7 +411,7 @@ export async function runPipeline(raw, stages, opts) {
|
|
|
394
411
|
else if (stages.classifier) {
|
|
395
412
|
throwIfAborted(opts);
|
|
396
413
|
const tClassify = performance.now();
|
|
397
|
-
tree = await safeClassify(stages.classifier, normalized.normalized, queryShape, stages.fst, opts?.normalizeCase);
|
|
414
|
+
tree = await safeClassify(stages.classifier, normalized.normalized, queryShape, stages.fst, opts?.normalizeCase, opts?.placetypePair, stages.streetMorphology);
|
|
398
415
|
timing["token-classify"] = performance.now() - tClassify;
|
|
399
416
|
}
|
|
400
417
|
if (phraseProposals.length > 0 && tree.roots.length >= 0) {
|
|
@@ -438,25 +455,53 @@ function throwIfAborted(opts) {
|
|
|
438
455
|
}
|
|
439
456
|
}
|
|
440
457
|
/** Defensive wrapper: if the classifier throws, return an empty tree rather than abort the pipeline. */
|
|
441
|
-
async function safeClassify(classifier, text, queryShape, fst, normalizeCase) {
|
|
458
|
+
async function safeClassify(classifier, text, queryShape, fst, normalizeCase, placetypePair, streetMorphology) {
|
|
442
459
|
try {
|
|
443
460
|
// Postcode regex repair on by default (v0.7 #35, operator-signed). #690 normalizeCase forwards as-is —
|
|
444
461
|
// default-ON at the classifier since #895 (unset runs it; explicit false pins the raw-case parse).
|
|
445
462
|
// Word-consistency heal on by default (2026-07-15): arbitrates intra-word tag disagreement only, with the
|
|
446
463
|
// punctuation-separator + byte-fallback gates — clean win across golden us/fr/adversarial + parity floors.
|
|
447
464
|
// Semantics in neural/word-consistency.ts.
|
|
465
|
+
// placetypePair (#1278): an opaque per-parse prior handle forwarded verbatim — undefined omits it (byte-stable
|
|
466
|
+
// no-prior decode), so the classifier's `opts?.placetypePair ?? cfg.placetypePair` resolution is unchanged when absent.
|
|
448
467
|
return await classifier.parse(text, {
|
|
449
468
|
queryShape,
|
|
450
469
|
fst,
|
|
451
470
|
postcodeRepair: true,
|
|
452
471
|
normalizeCase,
|
|
453
472
|
enforceWordConsistency: WORD_CONSISTENCY_SHIP_DEFAULT,
|
|
473
|
+
...(placetypePair !== undefined ? { placetypePair } : {}),
|
|
474
|
+
...streetContextGateFor({ fst, streetMorphology }),
|
|
454
475
|
});
|
|
455
476
|
}
|
|
456
477
|
catch {
|
|
457
478
|
return { raw: text, roots: [] };
|
|
458
479
|
}
|
|
459
480
|
}
|
|
481
|
+
/**
|
|
482
|
+
* The street-context gate pair (#1315): when BOTH the gazetteer FST and the street-morphology matcher are wired, the
|
|
483
|
+
* classify call passes the matcher in with the morphology EMISSION prior zeroed — the gate alone (measured golden-flat,
|
|
484
|
+
* fragment-positive) without the emission prior (measured US-golden −48). Absent either matcher, the spread is `{}` and
|
|
485
|
+
* the decode is byte-stable.
|
|
486
|
+
*/
|
|
487
|
+
const ZEROED_MORPHOLOGY_OPTS = { biasScale: 0, dependentLocalityPenalty: 0 };
|
|
488
|
+
/**
|
|
489
|
+
* D2 remediation (#1320, ROAD_TO_MAILWOMAN_V8_1_0 §5.2): the pipeline ships the gate at FULL suppression (0.0), not the
|
|
490
|
+
* classifier's 0.25 default. Measured 2026-07-26 on v8.0.0-as-shipped (branch TS == origin/main, FST md5 == published):
|
|
491
|
+
* 0.0 puts FR admin-street-homonym at EXACT P0 parity (159/400 vs 157 at 0.25) with golden us/fr and every other
|
|
492
|
+
* fragment class byte-identical to 0.25 — the "some admin mass for the semi-markov decoder" rationale for 0.25 carried
|
|
493
|
+
* no measured benefit at the pipeline level. Satisfies the D-rule (iron rule 6) ≥P0 clause for #1318.
|
|
494
|
+
*/
|
|
495
|
+
const STREET_CONTEXT_POSITIVE_SCALE = 0;
|
|
496
|
+
function streetContextGateFor(stages) {
|
|
497
|
+
return stages.fst && stages.streetMorphology
|
|
498
|
+
? {
|
|
499
|
+
fstStreetMorphology: stages.streetMorphology,
|
|
500
|
+
fstStreetMorphologyOpts: { ...ZEROED_MORPHOLOGY_OPTS },
|
|
501
|
+
fstStreetContextPositiveScale: STREET_CONTEXT_POSITIVE_SCALE,
|
|
502
|
+
}
|
|
503
|
+
: {};
|
|
504
|
+
}
|
|
460
505
|
/** Defensive wrapper: a grouper failure returns an empty proposal list rather than abort. */
|
|
461
506
|
async function safeGroupPhrases(groupPhrases, normalized, shape, locale) {
|
|
462
507
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-pipeline.js","sourceRoot":"","sources":["../../pipeline/runtime-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,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AAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAA;IAEvC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,CAAA;AAChC,CAAC;AAED,+EAA+E;AAC/E,KAAK,UAAU,WAAW,CACzB,QAAwD,EACxD,IAAiB,EACjB,IAAmB;IAEnB,IAAI,CAAC;QACJ,OAAO,MAAM,QAAQ,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC,CAAA;IAC3D,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,IAAI,CAAA;IACZ,CAAC;AACF,CAAC"}
|
package/out/pipeline/types.d.ts
CHANGED
|
@@ -26,6 +26,14 @@ export type UserLocation = {
|
|
|
26
26
|
region: string;
|
|
27
27
|
country: string;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Opaque placetype-pair prior handle (placetype-pair-prior arc, #1278). `@mailwoman/core` carries no neural dependency,
|
|
31
|
+
* so this is a PURE PASSTHROUGH: core never constructs or inspects it — it threads the value verbatim from
|
|
32
|
+
* {@link PipelineOpts.placetypePair} into {@link ClassifierOpts.placetypePair}, and on into the neural classifier's
|
|
33
|
+
* `parse` opts, where it is typed concretely (`PlacetypePairPriorOpts | false`). The browser demo produces it via
|
|
34
|
+
* `neural-web`'s `LoadResult.selectPairIndexForText`. `undefined` (the default) is the byte-stable no-prior decode.
|
|
35
|
+
*/
|
|
36
|
+
export type PlacetypePairPassthrough = object | false;
|
|
29
37
|
/** Common opts threaded through every stage. */
|
|
30
38
|
export interface PipelineOpts {
|
|
31
39
|
locale?: LocaleTag;
|
|
@@ -49,8 +57,6 @@ export interface PipelineOpts {
|
|
|
49
57
|
* docs/articles/evals/experiments/2026-06-14-reconcile-retirement.md.
|
|
50
58
|
*/
|
|
51
59
|
jointReconcile?: boolean;
|
|
52
|
-
/** @deprecated Use {@link jointReconcile}. Retained as an explicit override for the A/B harnesses. */
|
|
53
|
-
forceJointReconcile?: boolean;
|
|
54
60
|
/** Hard cap on lookups the resolver may issue; passed through. */
|
|
55
61
|
resolveOpts?: ResolveOpts;
|
|
56
62
|
/**
|
|
@@ -61,6 +67,14 @@ export interface PipelineOpts {
|
|
|
61
67
|
* either way. Pass `false` to restore the raw-case parse.
|
|
62
68
|
*/
|
|
63
69
|
normalizeCase?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Placetype-pair prior (placetype-pair-prior arc, #1278) — an opaque, per-parse decode-channel handle threaded
|
|
72
|
+
* verbatim to `ClassifierOpts.placetypePair` (and on to the neural classifier's `parse`). The browser demo derives it
|
|
73
|
+
* per input via `neural-web`'s `LoadResult.selectPairIndexForText` (locale-gate over the text shape) so a GB/NZ input
|
|
74
|
+
* gets its dependent_locality-resurrecting prior while a US/FR input stays byte-stable. `undefined` (default) = no
|
|
75
|
+
* prior. See {@link PlacetypePairPassthrough}.
|
|
76
|
+
*/
|
|
77
|
+
placetypePair?: PlacetypePairPassthrough;
|
|
64
78
|
/**
|
|
65
79
|
* #743/#194: promote a CONFIDENT coarse-placer guess from the soft `anchorPosterior` boost to a HARD country filter
|
|
66
80
|
* (empty→unresolved) — see {@link ResolveOpts.hardCountry}. Gated three ways: the placer's confidence ≥
|
|
@@ -73,10 +87,11 @@ export interface PipelineOpts {
|
|
|
73
87
|
*/
|
|
74
88
|
hardPlaceCountry?: boolean;
|
|
75
89
|
/**
|
|
76
|
-
* #743/#194: override the coverage safelist that gates {@link hardPlaceCountry}. Undefined → the
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
90
|
+
* #743/#194: override the coverage safelist that gates {@link hardPlaceCountry}. Undefined → the loaded gazetteer
|
|
91
|
+
* artifact's own coverage manifest (`resolver.artifactCoverage.hardCountrySafelist`) when it carries one, else the
|
|
92
|
+
* built-in `HARD_PLACE_COUNTRY_SAFELIST` fallback (byte-identical for artifacts predating the manifest). Supply a set
|
|
93
|
+
* to test/measure a different coverage frontier — the resolver eval passes the full in-map country set to measure
|
|
94
|
+
* ungated hard-resolve-rates (which is how the production safelist is grown).
|
|
80
95
|
*/
|
|
81
96
|
hardCountrySafelist?: ReadonlySet<string>;
|
|
82
97
|
signal?: AbortSignal;
|
|
@@ -264,6 +279,18 @@ export interface ClassifierOpts {
|
|
|
264
279
|
queryShape?: QueryShapeLite;
|
|
265
280
|
fst?: FSTMatcherLike;
|
|
266
281
|
fstBiasScale?: number;
|
|
282
|
+
/**
|
|
283
|
+
* Street-morphology matcher. In the pipeline this is the signal source for the FST street-context GATE (#1315),
|
|
284
|
+
* always paired with zeroed `fstStreetMorphologyOpts` — the morphology EMISSION prior measured US-golden-negative
|
|
285
|
+
* (−48, 2026-07-25 decomposition) and stays off on the production paths; it remains reachable via direct
|
|
286
|
+
* `classifier.parse` for measured, opt-in use.
|
|
287
|
+
*/
|
|
288
|
+
fstStreetMorphology?: FSTMatcherLike;
|
|
289
|
+
/** Magnitude overrides for the morphology emission prior — the pipeline always passes the zeroed pair. */
|
|
290
|
+
fstStreetMorphologyOpts?: {
|
|
291
|
+
biasScale?: number;
|
|
292
|
+
dependentLocalityPenalty?: number;
|
|
293
|
+
};
|
|
267
294
|
/** Run the deterministic postcode regex repair pass (v0.7 #35) on the decoded labels. */
|
|
268
295
|
postcodeRepair?: boolean;
|
|
269
296
|
/**
|
|
@@ -282,6 +309,13 @@ export interface ClassifierOpts {
|
|
|
282
309
|
skipByteFallbackWords?: boolean;
|
|
283
310
|
splitOnPunctuation?: boolean;
|
|
284
311
|
};
|
|
312
|
+
/**
|
|
313
|
+
* Placetype-pair prior (placetype-pair-prior arc, #1278) — an opaque passthrough (see
|
|
314
|
+
* {@link PlacetypePairPassthrough}). `safeClassify` forwards `PipelineOpts.placetypePair` here, and the neural
|
|
315
|
+
* classifier's `parse` reads it as its own `PlacetypePairPriorOpts | false`. `@mailwoman/core` never inspects it;
|
|
316
|
+
* `undefined` is the byte-stable no-prior decode.
|
|
317
|
+
*/
|
|
318
|
+
placetypePair?: PlacetypePairPassthrough;
|
|
285
319
|
}
|
|
286
320
|
/**
|
|
287
321
|
* The word-consistency setting production parses ship with (2026-07-15): heal intra-word tag disagreement, with the
|
|
@@ -348,6 +382,12 @@ export interface RuntimePipelineStages {
|
|
|
348
382
|
* classification.
|
|
349
383
|
*/
|
|
350
384
|
fst?: FSTMatcherLike;
|
|
385
|
+
/**
|
|
386
|
+
* Street-morphology matcher — the signal source for the FST street-context gate (#1315). Consumed ONLY with the
|
|
387
|
+
* morphology emission prior zeroed at the classify call sites (the emission prior is US-golden-negative; the gate
|
|
388
|
+
* alone is golden-flat and fragment-positive). Effective only when `fst` is also present.
|
|
389
|
+
*/
|
|
390
|
+
streetMorphology?: FSTMatcherLike;
|
|
351
391
|
resolver?: Resolver;
|
|
352
392
|
/**
|
|
353
393
|
* The gazetteer BACKEND (lower-level than `resolver`), enabling the reconciler's concordance axes (#478): a bounded
|
|
@@ -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,kEAAkE;AAClE,MAAM,MAAM,YAAY,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAEnH,gDAAgD;AAChD,MAAM,WAAW,YAAY;IA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ACjC;AAED,MAAM,WAAW,cAAc;IAC9B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CACvB;AAED,wCAAwC;AACxC,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,mBAAmB,CAAA;IAC/B,UAAU,EAAE,cAAc,CAAA;IAC1B,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,eAAe,CAAA;IACrB;;;;OAIG;IACH,eAAe,EAAE,cAAc,EAAE,CAAA;IACjC,IAAI,EAAE,WAAW,CAAA;IACjB,mFAAmF;IACnF,SAAS,CAAC,EAAE,gBAAgB,CAAA;IAC5B,MAAM,EAAE,cAAc,CAAA;IACtB,yGAAyG;IACzG,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,KAAK,CAAA;CAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../pipeline/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../pipeline/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AA0RH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC5C,qBAAqB,EAAE,IAAI;IAC3B,kBAAkB,EAAE,IAAI;CACoC,CAAA"}
|
package/out/resolver/index.d.ts
CHANGED
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
* `@mailwoman/resolver` (#215), which depends on this + `@mailwoman/spatial` +
|
|
11
11
|
* `@mailwoman/codex`.
|
|
12
12
|
*/
|
|
13
|
-
export { DEFAULT_PLACETYPE_MAP, PLACETYPE_FILTER_GROUPS, expandPlacetypeFilter, isPlacetypeFallback } from "./types.ts";
|
|
14
|
-
export type { AddressPointHit, AddressPointLookup, Ancestor, CoincidentLocality, InterpolatedPointHit, InterpolationLookup, PlacetypeMap, ResolveOpts, ResolvedPlace, Resolver, ResolverBackend, StreetCentroidHit, StreetCentroidLookup, } from "./types.ts";
|
|
13
|
+
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";
|
|
15
15
|
//# 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,
|
|
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;AACnB,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"}
|
package/out/resolver/index.js
CHANGED
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
* `@mailwoman/resolver` (#215), which depends on this + `@mailwoman/spatial` +
|
|
11
11
|
* `@mailwoman/codex`.
|
|
12
12
|
*/
|
|
13
|
-
export { DEFAULT_PLACETYPE_MAP, PLACETYPE_FILTER_GROUPS, expandPlacetypeFilter, isPlacetypeFallback } from "./types.js";
|
|
13
|
+
export { DEFAULT_PLACETYPE_MAP, PLACETYPE_FILTER_GROUPS, expandPlacetypeFilter, hardCountrySafelistFromCoverage, isPlacetypeFallback, } from "./types.js";
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../resolver/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,
|
|
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"}
|
package/out/resolver/types.d.ts
CHANGED
|
@@ -80,6 +80,61 @@ export interface ResolvedPlace {
|
|
|
80
80
|
* Structurally compatible with `PlaceLookup` from `@mailwoman/core/resolver-wof-sqlite` so the latter satisfies this
|
|
81
81
|
* interface without an adapter shim.
|
|
82
82
|
*/
|
|
83
|
+
/**
|
|
84
|
+
* One country's measured hard-filter coverage fact, as recorded at a promote gate. Facts about the gazetteer artifact
|
|
85
|
+
* live IN the artifact (the `country_coverage` table the gazetteer build emits) — code constants are only the fallback
|
|
86
|
+
* for artifacts that predate the manifest.
|
|
87
|
+
*
|
|
88
|
+
* Meaning-of-zero discipline: a country ABSENT from the coverage map was never measured — never "measured and failed".
|
|
89
|
+
* A measured-and-failed country is PRESENT with `hardFilterSafe: false` (e.g. FI at 69.5% hard-resolve), so the
|
|
90
|
+
* negative result is a first-class record, distinguishable from ignorance.
|
|
91
|
+
*/
|
|
92
|
+
export interface CountryCoverageFact {
|
|
93
|
+
/** ISO 3166-1 alpha-2, uppercase. */
|
|
94
|
+
country: string;
|
|
95
|
+
/**
|
|
96
|
+
* The promote-gate VERDICT: hard-filtering this country is a pure win (a hard-filter miss is almost always a genuine
|
|
97
|
+
* non-match, not a coverage gap). Stored as a verdict — not re-derived from `hardResolveRate` at read time — because
|
|
98
|
+
* the gate is a judgment over a panel, not a pure rate function (CA cleared at the #928 promote on the
|
|
99
|
+
* postcode-format-prior rationale despite a sub-95% panel resolve rate).
|
|
100
|
+
*/
|
|
101
|
+
hardFilterSafe: boolean;
|
|
102
|
+
/** Measured hard-resolve rate (0..1) on the panel named in `source`, when the receipt recorded one. */
|
|
103
|
+
hardResolveRate?: number;
|
|
104
|
+
/** Panel size behind `hardResolveRate`, when recorded. */
|
|
105
|
+
sampleSize?: number;
|
|
106
|
+
/** ISO-8601 date of the measurement / promote gate. */
|
|
107
|
+
measuredAt: string;
|
|
108
|
+
/** The receipt: which panel/gate produced this row (issue + date, human-readable). */
|
|
109
|
+
source: string;
|
|
110
|
+
}
|
|
111
|
+
/** One country's coarse guard-B bounding box, as carried by the gazetteer artifact's `country_bbox` table. */
|
|
112
|
+
export interface CountryBBoxFact {
|
|
113
|
+
/** ISO 3166-1 alpha-2, uppercase. */
|
|
114
|
+
country: string;
|
|
115
|
+
latMin: number;
|
|
116
|
+
latMax: number;
|
|
117
|
+
lonMin: number;
|
|
118
|
+
lonMax: number;
|
|
119
|
+
/** Provenance of the box (harness + date). */
|
|
120
|
+
source: string;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Facts a loaded gazetteer artifact declares about itself — read from the artifact's own manifest tables at open time,
|
|
124
|
+
* carried on the {@link ResolverBackend}/{@link Resolver} handle so consumers read the facts from the artifact they are
|
|
125
|
+
* actually resolving against. `undefined` on the handle = the artifact predates the manifest → consumers fall back to
|
|
126
|
+
* the code constants (byte-identical legacy behavior).
|
|
127
|
+
*/
|
|
128
|
+
export interface GazetteerArtifactCoverage {
|
|
129
|
+
/** Country → measured coverage fact. ABSENCE = never measured (meaning-of-zero), never "failed". */
|
|
130
|
+
countryCoverage: ReadonlyMap<string, CountryCoverageFact>;
|
|
131
|
+
/** Country → guard-B bbox. ABSENCE = no box → the plausibility guard fails open for that country. */
|
|
132
|
+
countryBBoxes: ReadonlyMap<string, CountryBBoxFact>;
|
|
133
|
+
/** Derived at load: the countries whose fact says `hardFilterSafe` — the artifact's hard-country safelist. */
|
|
134
|
+
hardCountrySafelist: ReadonlySet<string>;
|
|
135
|
+
}
|
|
136
|
+
/** Derive the hard-country safelist from coverage facts — the ONE derivation both the reader and the build share. */
|
|
137
|
+
export declare function hardCountrySafelistFromCoverage(facts: Iterable<CountryCoverageFact>): ReadonlySet<string>;
|
|
83
138
|
export interface ResolverBackend {
|
|
84
139
|
findPlace(query: {
|
|
85
140
|
text: string;
|
|
@@ -114,6 +169,11 @@ export interface ResolverBackend {
|
|
|
114
169
|
* `ancestors` table.
|
|
115
170
|
*/
|
|
116
171
|
ancestors?(id: number | string): Ancestor[];
|
|
172
|
+
/**
|
|
173
|
+
* Facts the loaded gazetteer artifact declares about itself (its coverage-manifest tables, read at open). OPTIONAL —
|
|
174
|
+
* absent when the artifact predates the manifest, and consumers fall back to the code constants.
|
|
175
|
+
*/
|
|
176
|
+
artifactCoverage?: GazetteerArtifactCoverage;
|
|
117
177
|
}
|
|
118
178
|
/** One link in a resolved place's containment lineage ({@link ResolverBackend.ancestors}, #404). */
|
|
119
179
|
export interface Ancestor {
|
|
@@ -208,6 +268,17 @@ export interface InterpolationLookup {
|
|
|
208
268
|
number: string;
|
|
209
269
|
postcode?: string;
|
|
210
270
|
}): InterpolatedPointHit | null;
|
|
271
|
+
/**
|
|
272
|
+
* The ARTIFACT's own conformal radius multiplier for `uncertaintyM` (#374), read from the shard's
|
|
273
|
+
* `interp_calibration` metadata table at open time (the pair-index δ/transitionBeta header precedent): the multiplier
|
|
274
|
+
* is a property of the calibration set the artifact was built against, so it ships in the artifact, not in caller
|
|
275
|
+
* code. The resolver applies it as the DEFAULT whenever `ResolveOpts.interpolationRadiusCalibration` is absent.
|
|
276
|
+
* `undefined` (or an implementation without the property) = the artifact carries none — shards built before the
|
|
277
|
+
* metadata table existed; behavior is then exactly the pre-artifact ladder (caller-supplied factor or raw).
|
|
278
|
+
* Implementations must read this at OPEN time (constructor/factory), never per-lookup — `find()` is synchronous by
|
|
279
|
+
* design.
|
|
280
|
+
*/
|
|
281
|
+
readonly radiusCalibration?: number;
|
|
211
282
|
}
|
|
212
283
|
/**
|
|
213
284
|
* One street-CENTROID hit (#1042) — the street-level tier BELOW the exact address-point tier and ABOVE admin-centroid
|
|
@@ -359,14 +430,20 @@ export interface ResolveOpts {
|
|
|
359
430
|
*/
|
|
360
431
|
interpolation?: InterpolationLookup;
|
|
361
432
|
/**
|
|
362
|
-
* Conformal calibration multiplier for the interpolation tier's `uncertainty_m` (#374). The raw radius is
|
|
363
|
-
* matched TIGER segment length — an honest-but-TIGHT prior: a split-conformal calibration on 1562
|
|
364
|
-
* interp hits (2026-06-14) found it covers only ~72% of true errors, and that multiplying by **Q̂ ≈
|
|
365
|
-
* calibrated 90% bound (91.5% empirical). When
|
|
366
|
-
* and preserves the raw value under `uncertainty_raw_m`.
|
|
367
|
-
*
|
|
368
|
-
*
|
|
433
|
+
* Conformal calibration multiplier OVERRIDE for the interpolation tier's `uncertainty_m` (#374). The raw radius is
|
|
434
|
+
* half the matched TIGER segment length — an honest-but-TIGHT prior: a split-conformal calibration on 1562
|
|
435
|
+
* Travis-County interp hits (2026-06-14) found it covers only ~72% of true errors, and that multiplying by **Q̂ ≈
|
|
436
|
+
* 1.70** yields a calibrated 90% bound (91.5% empirical). When a factor applies, `applyInterpolation` reports
|
|
437
|
+
* `uncertainty_m = round(raw × factor)` and preserves the raw value under `uncertainty_raw_m`.
|
|
438
|
+
*
|
|
439
|
+
* The factor is a property of the CALIBRATION SET the artifact was built against, so it ships IN the artifact:
|
|
440
|
+
* {@link InterpolationLookup.radiusCalibration} (the shard's `interp_calibration` metadata table, read at open time)
|
|
441
|
+
* is the default whenever this option is absent. Absent + artifact-silent = raw heuristic (byte-stable — shards
|
|
442
|
+
* predating the metadata table; production callers fall back to their in-code per-region table for those). Report:
|
|
369
443
|
* docs/articles/evals/calibration/2026-06-14-interp-radius-calibration.md.
|
|
444
|
+
*
|
|
445
|
+
* @internal Instrument knob (D3) — measurement decomposition + legacy-shard fallback only; the artifact header IS
|
|
446
|
+
* the shipped calibration. Set it only to override the artifact's value.
|
|
370
447
|
*/
|
|
371
448
|
interpolationRadiusCalibration?: number;
|
|
372
449
|
/**
|
|
@@ -539,5 +616,11 @@ export declare function isPlacetypeFallback(requestedPlacetype: string, candidat
|
|
|
539
616
|
*/
|
|
540
617
|
export interface Resolver {
|
|
541
618
|
resolveTree(tree: AddressTree, opts?: ResolveOpts): Promise<AddressTree>;
|
|
619
|
+
/**
|
|
620
|
+
* Facts the loaded gazetteer artifact declares about itself, passed through from the {@link ResolverBackend} so
|
|
621
|
+
* pipeline-level consumers (the hard-country coverage gate, guard-B plausibility) read them from the handle they
|
|
622
|
+
* already hold. Absent = artifact predates the manifest → code-constant fallback.
|
|
623
|
+
*/
|
|
624
|
+
artifactCoverage?: GazetteerArtifactCoverage;
|
|
542
625
|
}
|
|
543
626
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../resolver/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAEpE;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC7B,wDAAwD;IACxD,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAA;IACZ,0FAA0F;IAC1F,SAAS,EAAE,MAAM,CAAA;IACjB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAA;IACf,mDAAmD;IACnD,GAAG,EAAE,MAAM,CAAA;IACX,oDAAoD;IACpD,GAAG,EAAE,MAAM,CAAA;IACX,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,GA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ACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAA;AAEhE,eAAO,MAAM,qBAAqB,EAAE,YAUnC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAI/E,CAAA;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;AAC7D,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAAA;AAC9E,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;AAyB5F;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,kBAAkB,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAQnG;AAED;;;;;;GAMG;AACH,MAAM,WAAW,QAAQ;IACxB,WAAW,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;IACxE;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,yBAAyB,CAAA;CAC5C"}
|
package/out/resolver/types.js
CHANGED
|
@@ -12,6 +12,16 @@
|
|
|
12
12
|
*
|
|
13
13
|
* See `docs/plan/phases/PHASE_4_3_resolver_integration.md` for the design intent.
|
|
14
14
|
*/
|
|
15
|
+
/** Derive the hard-country safelist from coverage facts — the ONE derivation both the reader and the build share. */
|
|
16
|
+
export function hardCountrySafelistFromCoverage(facts) {
|
|
17
|
+
const out = new Set();
|
|
18
|
+
for (const fact of facts) {
|
|
19
|
+
if (fact.hardFilterSafe) {
|
|
20
|
+
out.add(fact.country.toUpperCase());
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return out;
|
|
24
|
+
}
|
|
15
25
|
export const DEFAULT_PLACETYPE_MAP = {
|
|
16
26
|
country: "country",
|
|
17
27
|
region: "region",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../resolver/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../resolver/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAgIH,qHAAqH;AACrH,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;AAiaD,MAAM,CAAC,MAAM,qBAAqB,GAAiB;IAClD,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,kBAAkB,EAAE,UAAU;IAC9B,SAAS,EAAE,QAAQ;IACnB,0FAA0F;IAC1F,6FAA6F;IAC7F,2FAA2F;IAC3F,QAAQ,EAAE,YAAY;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAgD;IACnF,QAAQ,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC;IAC/C,MAAM,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC;IACjC,MAAM,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC;CACjC,CAAA;AASD,MAAM,UAAU,qBAAqB,CAAC,UAAoC;IACzE,IAAI,CAAC,UAAU;QAAE,OAAO,IAAI,CAAA;IAC5B,MAAM,GAAG,GAAa,EAAE,CAAA;IAExB,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACpC,KAAK,MAAM,QAAQ,IAAI,uBAAuB,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;YAC1E,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAC7B,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YACnB,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,GAAG,CAAA;AACX,CAAC;AAED;;;;;;GAMG;AACH,MAAM,yBAAyB,GAAwB,IAAI,GAAG,CAAC,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,CAAA;AAE9F;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,kBAA0B,EAAE,kBAA0B;IACzF,MAAM,KAAK,GAAG,uBAAuB,CAAC,kBAAkB,CAAC,CAAA;IAEzD,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAA;IAExB,IAAI,kBAAkB,KAAK,kBAAkB;QAAE,OAAO,KAAK,CAAA;IAE3D,OAAO,yBAAyB,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAA;AAC/F,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "Mailwoman core: tokenization, decoder, formatter, resources, filters, utils.",
|
|
5
5
|
"license": "AGPL-3.0-only OR LicenseRef-Commercial",
|
|
6
6
|
"repository": {
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
"dependencies": {
|
|
270
270
|
"async-init": "^1.0.0",
|
|
271
271
|
"axios": "^1.18.1",
|
|
272
|
-
"axios-cache-interceptor": "^1.12.
|
|
272
|
+
"axios-cache-interceptor": "^1.12.1",
|
|
273
273
|
"change-case": "^5.4.4",
|
|
274
274
|
"d3-color": "^3.1.0",
|
|
275
275
|
"d3-scale-chromatic": "^3.1.0",
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
},
|
|
289
289
|
"devDependencies": {
|
|
290
290
|
"@duckdb/node-api": "1.5.3-r.3",
|
|
291
|
-
"@mailwoman/codex": "
|
|
291
|
+
"@mailwoman/codex": "8.1.0",
|
|
292
292
|
"@types/d3-color": "^3.1.3",
|
|
293
293
|
"@types/d3-scale-chromatic": "^3.1.0"
|
|
294
294
|
}
|
package/pipeline/index.ts
CHANGED
|
@@ -29,6 +29,7 @@ import type {
|
|
|
29
29
|
PhraseProposal,
|
|
30
30
|
PipelineOpts,
|
|
31
31
|
PipelineResult,
|
|
32
|
+
PlacetypePairPassthrough,
|
|
32
33
|
QueryKindResult,
|
|
33
34
|
QueryShapeLite,
|
|
34
35
|
RuntimePipelineStages,
|
|
@@ -71,12 +72,20 @@ const HARD_PLACE_COUNTRY_MIN_CONF = 0.9
|
|
|
71
72
|
// "miss → unresolved" is rare and almost always a genuine non-match, not a coverage gap. A confident
|
|
72
73
|
// placement OUTSIDE this set stays on the SOFT prior, so the low-coverage tail (FI/PL/…) keeps its
|
|
73
74
|
// recall until its gazetteer is filled (#193) — the win for covered countries, no recall regression
|
|
74
|
-
// for the rest (DeepSeek-advised, 2026-06-22).
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
//
|
|
78
|
-
//
|
|
79
|
-
//
|
|
75
|
+
// for the rest (DeepSeek-advised, 2026-06-22).
|
|
76
|
+
//
|
|
77
|
+
// FALLBACK ROLE (survey candidate #2, 2026-07-26): this set is now the FALLBACK for gazetteer
|
|
78
|
+
// artifacts that predate the coverage manifest. Facts about the artifact live IN the artifact — the
|
|
79
|
+
// candidate gazetteer's `country_coverage` table carries the per-country promote-gate verdicts + the
|
|
80
|
+
// measured rates (the numbers that used to be trivia in this comment), and a loaded artifact's
|
|
81
|
+
// derived safelist (`resolver.artifactCoverage.hardCountrySafelist`) takes precedence over this
|
|
82
|
+
// constant. The measured record lives in `mailwoman/gazetteer-pipeline/coverage-manifest.ts`
|
|
83
|
+
// (MEASURED_COUNTRY_COVERAGE — grow THAT at promotes; it updates the artifact at rebuild). Precedence:
|
|
84
|
+
// per-call `PipelineOpts.hardCountrySafelist` (the eval's instrument, measures ungated to grow the
|
|
85
|
+
// list) → the loaded artifact's manifest → this constant.
|
|
86
|
+
// Historical receipts now recorded structurally in MEASURED_COUNTRY_COVERAGE: US/FR/DE 100, ES 99.8,
|
|
87
|
+
// NL 97.3, IT 96.8 (in); FI 69.5, PL 77.8 (measured, out); GB + CA at the #928 promote (2026-07-06,
|
|
88
|
+
// OSM panels, night 34); AU with the #244 placer class (2026-07-06).
|
|
80
89
|
export const HARD_PLACE_COUNTRY_SAFELIST: ReadonlySet<string> = new Set([
|
|
81
90
|
"US",
|
|
82
91
|
"ES",
|
|
@@ -122,6 +131,10 @@ export function isBareLocalityTree(tree: AddressTree): boolean {
|
|
|
122
131
|
* apply the SAME three gates and can't drift: confidence ≥ {@link HARD_PLACE_COUNTRY_MIN_CONF}, country in the safelist
|
|
123
132
|
* (override or the default {@link HARD_PLACE_COUNTRY_SAFELIST}), and no caller-set hard/default country to respect.
|
|
124
133
|
* Returns the country to hard-filter, or `undefined` to stay on the soft prior.
|
|
134
|
+
*
|
|
135
|
+
* `safelist` precedence is the CALLER's job: pass `perCallOverride ?? resolver.artifactCoverage?.hardCountrySafelist`
|
|
136
|
+
* (the eval instrument first, then the loaded artifact's own manifest) and this gate falls back to the code constant
|
|
137
|
+
* only when both are absent — byte-identical to the pre-manifest behavior.
|
|
125
138
|
*/
|
|
126
139
|
export function hardCountryFor(
|
|
127
140
|
placedCountry: string,
|
|
@@ -303,14 +316,15 @@ export async function runPipeline(
|
|
|
303
316
|
// even when FI is pinned); the hard filter does. Three gates: confidence (ambiguous DK↔NO stay
|
|
304
317
|
// soft), the safelist (only well-covered countries — where a miss is a genuine non-match, not a
|
|
305
318
|
// coverage gap — hard-filter; the low-coverage tail keeps its recall on the soft path), and the
|
|
306
|
-
// caller's own hardCountry/defaultCountry is never overwritten.
|
|
307
|
-
// override
|
|
319
|
+
// caller's own hardCountry/defaultCountry is never overwritten. Safelist precedence: the per-call
|
|
320
|
+
// `hardCountrySafelist` override (the eval measures ungated to grow it) → the loaded gazetteer
|
|
321
|
+
// artifact's own coverage manifest → the code-constant fallback inside hardCountryFor.
|
|
308
322
|
const hardCountry = hardCountryFor(
|
|
309
323
|
placed.country,
|
|
310
324
|
placed.confidence,
|
|
311
325
|
opts?.resolveOpts ?? {},
|
|
312
326
|
opts?.hardPlaceCountry,
|
|
313
|
-
opts?.hardCountrySafelist
|
|
327
|
+
opts?.hardCountrySafelist ?? stages.resolver?.artifactCoverage?.hardCountrySafelist
|
|
314
328
|
)
|
|
315
329
|
placerAnchorApplied = true
|
|
316
330
|
effectiveOpts = {
|
|
@@ -430,7 +444,7 @@ export async function runPipeline(
|
|
|
430
444
|
// the tracked issue); until that's fixed, argmax is the correct default. Set `jointReconcile: true`
|
|
431
445
|
// to opt back into reconcile (the A/B harnesses do). Report:
|
|
432
446
|
// docs/articles/evals/experiments/2026-06-14-reconcile-retirement.md.
|
|
433
|
-
const jointEnabled = opts?.jointReconcile ??
|
|
447
|
+
const jointEnabled = opts?.jointReconcile ?? false
|
|
434
448
|
const useJointReconcile =
|
|
435
449
|
jointEnabled && phraseProposals.length > 0 && stages.classifier && "parseWithLogits" in stages.classifier
|
|
436
450
|
|
|
@@ -448,7 +462,11 @@ export async function runPipeline(
|
|
|
448
462
|
tree: argmaxTree,
|
|
449
463
|
logits,
|
|
450
464
|
pieces,
|
|
451
|
-
} = await classifierWithLogits.parseWithLogits(normalized.normalized, {
|
|
465
|
+
} = await classifierWithLogits.parseWithLogits(normalized.normalized, {
|
|
466
|
+
queryShape,
|
|
467
|
+
fst: stages.fst,
|
|
468
|
+
...streetContextGateFor(stages),
|
|
469
|
+
})
|
|
452
470
|
timing["token-classify"] = performance.now() - tClassify
|
|
453
471
|
|
|
454
472
|
throwIfAborted(opts)
|
|
@@ -501,7 +519,15 @@ export async function runPipeline(
|
|
|
501
519
|
} else if (stages.classifier) {
|
|
502
520
|
throwIfAborted(opts)
|
|
503
521
|
const tClassify = performance.now()
|
|
504
|
-
tree = await safeClassify(
|
|
522
|
+
tree = await safeClassify(
|
|
523
|
+
stages.classifier,
|
|
524
|
+
normalized.normalized,
|
|
525
|
+
queryShape,
|
|
526
|
+
stages.fst,
|
|
527
|
+
opts?.normalizeCase,
|
|
528
|
+
opts?.placetypePair,
|
|
529
|
+
stages.streetMorphology
|
|
530
|
+
)
|
|
505
531
|
timing["token-classify"] = performance.now() - tClassify
|
|
506
532
|
}
|
|
507
533
|
|
|
@@ -556,7 +582,9 @@ async function safeClassify(
|
|
|
556
582
|
text: string,
|
|
557
583
|
queryShape: QueryShapeLite,
|
|
558
584
|
fst?: FSTMatcherLike,
|
|
559
|
-
normalizeCase?: boolean
|
|
585
|
+
normalizeCase?: boolean,
|
|
586
|
+
placetypePair?: PlacetypePairPassthrough,
|
|
587
|
+
streetMorphology?: FSTMatcherLike
|
|
560
588
|
): Promise<AddressTree> {
|
|
561
589
|
try {
|
|
562
590
|
// Postcode regex repair on by default (v0.7 #35, operator-signed). #690 normalizeCase forwards as-is —
|
|
@@ -564,18 +592,53 @@ async function safeClassify(
|
|
|
564
592
|
// Word-consistency heal on by default (2026-07-15): arbitrates intra-word tag disagreement only, with the
|
|
565
593
|
// punctuation-separator + byte-fallback gates — clean win across golden us/fr/adversarial + parity floors.
|
|
566
594
|
// Semantics in neural/word-consistency.ts.
|
|
595
|
+
// placetypePair (#1278): an opaque per-parse prior handle forwarded verbatim — undefined omits it (byte-stable
|
|
596
|
+
// no-prior decode), so the classifier's `opts?.placetypePair ?? cfg.placetypePair` resolution is unchanged when absent.
|
|
567
597
|
return await classifier.parse(text, {
|
|
568
598
|
queryShape,
|
|
569
599
|
fst,
|
|
570
600
|
postcodeRepair: true,
|
|
571
601
|
normalizeCase,
|
|
572
602
|
enforceWordConsistency: WORD_CONSISTENCY_SHIP_DEFAULT,
|
|
603
|
+
...(placetypePair !== undefined ? { placetypePair } : {}),
|
|
604
|
+
...streetContextGateFor({ fst, streetMorphology }),
|
|
573
605
|
})
|
|
574
606
|
} catch {
|
|
575
607
|
return { raw: text, roots: [] }
|
|
576
608
|
}
|
|
577
609
|
}
|
|
578
610
|
|
|
611
|
+
/**
|
|
612
|
+
* The street-context gate pair (#1315): when BOTH the gazetteer FST and the street-morphology matcher are wired, the
|
|
613
|
+
* classify call passes the matcher in with the morphology EMISSION prior zeroed — the gate alone (measured golden-flat,
|
|
614
|
+
* fragment-positive) without the emission prior (measured US-golden −48). Absent either matcher, the spread is `{}` and
|
|
615
|
+
* the decode is byte-stable.
|
|
616
|
+
*/
|
|
617
|
+
const ZEROED_MORPHOLOGY_OPTS = { biasScale: 0, dependentLocalityPenalty: 0 } as const
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* D2 remediation (#1320, ROAD_TO_MAILWOMAN_V8_1_0 §5.2): the pipeline ships the gate at FULL suppression (0.0), not the
|
|
621
|
+
* classifier's 0.25 default. Measured 2026-07-26 on v8.0.0-as-shipped (branch TS == origin/main, FST md5 == published):
|
|
622
|
+
* 0.0 puts FR admin-street-homonym at EXACT P0 parity (159/400 vs 157 at 0.25) with golden us/fr and every other
|
|
623
|
+
* fragment class byte-identical to 0.25 — the "some admin mass for the semi-markov decoder" rationale for 0.25 carried
|
|
624
|
+
* no measured benefit at the pipeline level. Satisfies the D-rule (iron rule 6) ≥P0 clause for #1318.
|
|
625
|
+
*/
|
|
626
|
+
const STREET_CONTEXT_POSITIVE_SCALE = 0
|
|
627
|
+
|
|
628
|
+
function streetContextGateFor(stages: { fst?: FSTMatcherLike; streetMorphology?: FSTMatcherLike }): {
|
|
629
|
+
fstStreetMorphology?: FSTMatcherLike
|
|
630
|
+
fstStreetMorphologyOpts?: { biasScale: number; dependentLocalityPenalty: number }
|
|
631
|
+
fstStreetContextPositiveScale?: number
|
|
632
|
+
} {
|
|
633
|
+
return stages.fst && stages.streetMorphology
|
|
634
|
+
? {
|
|
635
|
+
fstStreetMorphology: stages.streetMorphology,
|
|
636
|
+
fstStreetMorphologyOpts: { ...ZEROED_MORPHOLOGY_OPTS },
|
|
637
|
+
fstStreetContextPositiveScale: STREET_CONTEXT_POSITIVE_SCALE,
|
|
638
|
+
}
|
|
639
|
+
: {}
|
|
640
|
+
}
|
|
641
|
+
|
|
579
642
|
/** Defensive wrapper: a grouper failure returns an empty proposal list rather than abort. */
|
|
580
643
|
async function safeGroupPhrases(
|
|
581
644
|
groupPhrases: NonNullable<RuntimePipelineStages["groupPhrases"]>,
|
package/pipeline/types.ts
CHANGED
|
@@ -22,6 +22,15 @@ export type LocaleTag = string
|
|
|
22
22
|
/** Optional user-location signal for Stage 6 resolver scoring. */
|
|
23
23
|
export type UserLocation = { lat: number; lon: number } | { country: string } | { region: string; country: string }
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Opaque placetype-pair prior handle (placetype-pair-prior arc, #1278). `@mailwoman/core` carries no neural dependency,
|
|
27
|
+
* so this is a PURE PASSTHROUGH: core never constructs or inspects it — it threads the value verbatim from
|
|
28
|
+
* {@link PipelineOpts.placetypePair} into {@link ClassifierOpts.placetypePair}, and on into the neural classifier's
|
|
29
|
+
* `parse` opts, where it is typed concretely (`PlacetypePairPriorOpts | false`). The browser demo produces it via
|
|
30
|
+
* `neural-web`'s `LoadResult.selectPairIndexForText`. `undefined` (the default) is the byte-stable no-prior decode.
|
|
31
|
+
*/
|
|
32
|
+
export type PlacetypePairPassthrough = object | false
|
|
33
|
+
|
|
25
34
|
/** Common opts threaded through every stage. */
|
|
26
35
|
export interface PipelineOpts {
|
|
27
36
|
locale?: LocaleTag
|
|
@@ -45,8 +54,6 @@ export interface PipelineOpts {
|
|
|
45
54
|
* docs/articles/evals/experiments/2026-06-14-reconcile-retirement.md.
|
|
46
55
|
*/
|
|
47
56
|
jointReconcile?: boolean
|
|
48
|
-
/** @deprecated Use {@link jointReconcile}. Retained as an explicit override for the A/B harnesses. */
|
|
49
|
-
forceJointReconcile?: boolean
|
|
50
57
|
/** Hard cap on lookups the resolver may issue; passed through. */
|
|
51
58
|
resolveOpts?: ResolveOpts
|
|
52
59
|
/**
|
|
@@ -57,6 +64,14 @@ export interface PipelineOpts {
|
|
|
57
64
|
* either way. Pass `false` to restore the raw-case parse.
|
|
58
65
|
*/
|
|
59
66
|
normalizeCase?: boolean
|
|
67
|
+
/**
|
|
68
|
+
* Placetype-pair prior (placetype-pair-prior arc, #1278) — an opaque, per-parse decode-channel handle threaded
|
|
69
|
+
* verbatim to `ClassifierOpts.placetypePair` (and on to the neural classifier's `parse`). The browser demo derives it
|
|
70
|
+
* per input via `neural-web`'s `LoadResult.selectPairIndexForText` (locale-gate over the text shape) so a GB/NZ input
|
|
71
|
+
* gets its dependent_locality-resurrecting prior while a US/FR input stays byte-stable. `undefined` (default) = no
|
|
72
|
+
* prior. See {@link PlacetypePairPassthrough}.
|
|
73
|
+
*/
|
|
74
|
+
placetypePair?: PlacetypePairPassthrough
|
|
60
75
|
/**
|
|
61
76
|
* #743/#194: promote a CONFIDENT coarse-placer guess from the soft `anchorPosterior` boost to a HARD country filter
|
|
62
77
|
* (empty→unresolved) — see {@link ResolveOpts.hardCountry}. Gated three ways: the placer's confidence ≥
|
|
@@ -69,10 +84,11 @@ export interface PipelineOpts {
|
|
|
69
84
|
*/
|
|
70
85
|
hardPlaceCountry?: boolean
|
|
71
86
|
/**
|
|
72
|
-
* #743/#194: override the coverage safelist that gates {@link hardPlaceCountry}. Undefined → the
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
87
|
+
* #743/#194: override the coverage safelist that gates {@link hardPlaceCountry}. Undefined → the loaded gazetteer
|
|
88
|
+
* artifact's own coverage manifest (`resolver.artifactCoverage.hardCountrySafelist`) when it carries one, else the
|
|
89
|
+
* built-in `HARD_PLACE_COUNTRY_SAFELIST` fallback (byte-identical for artifacts predating the manifest). Supply a set
|
|
90
|
+
* to test/measure a different coverage frontier — the resolver eval passes the full in-map country set to measure
|
|
91
|
+
* ungated hard-resolve-rates (which is how the production safelist is grown).
|
|
76
92
|
*/
|
|
77
93
|
hardCountrySafelist?: ReadonlySet<string>
|
|
78
94
|
signal?: AbortSignal
|
|
@@ -243,6 +259,15 @@ export interface ClassifierOpts {
|
|
|
243
259
|
queryShape?: QueryShapeLite
|
|
244
260
|
fst?: FSTMatcherLike
|
|
245
261
|
fstBiasScale?: number
|
|
262
|
+
/**
|
|
263
|
+
* Street-morphology matcher. In the pipeline this is the signal source for the FST street-context GATE (#1315),
|
|
264
|
+
* always paired with zeroed `fstStreetMorphologyOpts` — the morphology EMISSION prior measured US-golden-negative
|
|
265
|
+
* (−48, 2026-07-25 decomposition) and stays off on the production paths; it remains reachable via direct
|
|
266
|
+
* `classifier.parse` for measured, opt-in use.
|
|
267
|
+
*/
|
|
268
|
+
fstStreetMorphology?: FSTMatcherLike
|
|
269
|
+
/** Magnitude overrides for the morphology emission prior — the pipeline always passes the zeroed pair. */
|
|
270
|
+
fstStreetMorphologyOpts?: { biasScale?: number; dependentLocalityPenalty?: number }
|
|
246
271
|
/** Run the deterministic postcode regex repair pass (v0.7 #35) on the decoded labels. */
|
|
247
272
|
postcodeRepair?: boolean
|
|
248
273
|
/**
|
|
@@ -259,6 +284,13 @@ export interface ClassifierOpts {
|
|
|
259
284
|
enforceWordConsistency?:
|
|
260
285
|
| boolean
|
|
261
286
|
| { minMeanConfidence?: number; skipByteFallbackWords?: boolean; splitOnPunctuation?: boolean }
|
|
287
|
+
/**
|
|
288
|
+
* Placetype-pair prior (placetype-pair-prior arc, #1278) — an opaque passthrough (see
|
|
289
|
+
* {@link PlacetypePairPassthrough}). `safeClassify` forwards `PipelineOpts.placetypePair` here, and the neural
|
|
290
|
+
* classifier's `parse` reads it as its own `PlacetypePairPriorOpts | false`. `@mailwoman/core` never inspects it;
|
|
291
|
+
* `undefined` is the byte-stable no-prior decode.
|
|
292
|
+
*/
|
|
293
|
+
placetypePair?: PlacetypePairPassthrough
|
|
262
294
|
}
|
|
263
295
|
|
|
264
296
|
/**
|
|
@@ -322,6 +354,12 @@ export interface RuntimePipelineStages {
|
|
|
322
354
|
* classification.
|
|
323
355
|
*/
|
|
324
356
|
fst?: FSTMatcherLike
|
|
357
|
+
/**
|
|
358
|
+
* Street-morphology matcher — the signal source for the FST street-context gate (#1315). Consumed ONLY with the
|
|
359
|
+
* morphology emission prior zeroed at the classify call sites (the emission prior is US-golden-negative; the gate
|
|
360
|
+
* alone is golden-flat and fragment-positive). Effective only when `fst` is also present.
|
|
361
|
+
*/
|
|
362
|
+
streetMorphology?: FSTMatcherLike
|
|
325
363
|
resolver?: Resolver
|
|
326
364
|
/**
|
|
327
365
|
* The gazetteer BACKEND (lower-level than `resolver`), enabling the reconciler's concordance axes (#478): a bounded
|
package/resolver/index.ts
CHANGED
|
@@ -11,12 +11,21 @@
|
|
|
11
11
|
* `@mailwoman/codex`.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
export {
|
|
14
|
+
export {
|
|
15
|
+
DEFAULT_PLACETYPE_MAP,
|
|
16
|
+
PLACETYPE_FILTER_GROUPS,
|
|
17
|
+
expandPlacetypeFilter,
|
|
18
|
+
hardCountrySafelistFromCoverage,
|
|
19
|
+
isPlacetypeFallback,
|
|
20
|
+
} from "./types.ts"
|
|
15
21
|
export type {
|
|
16
22
|
AddressPointHit,
|
|
17
23
|
AddressPointLookup,
|
|
18
24
|
Ancestor,
|
|
19
25
|
CoincidentLocality,
|
|
26
|
+
CountryBBoxFact,
|
|
27
|
+
CountryCoverageFact,
|
|
28
|
+
GazetteerArtifactCoverage,
|
|
20
29
|
InterpolatedPointHit,
|
|
21
30
|
InterpolationLookup,
|
|
22
31
|
PlacetypeMap,
|
package/resolver/types.ts
CHANGED
|
@@ -83,6 +83,75 @@ export interface ResolvedPlace {
|
|
|
83
83
|
* Structurally compatible with `PlaceLookup` from `@mailwoman/core/resolver-wof-sqlite` so the latter satisfies this
|
|
84
84
|
* interface without an adapter shim.
|
|
85
85
|
*/
|
|
86
|
+
/**
|
|
87
|
+
* One country's measured hard-filter coverage fact, as recorded at a promote gate. Facts about the gazetteer artifact
|
|
88
|
+
* live IN the artifact (the `country_coverage` table the gazetteer build emits) — code constants are only the fallback
|
|
89
|
+
* for artifacts that predate the manifest.
|
|
90
|
+
*
|
|
91
|
+
* Meaning-of-zero discipline: a country ABSENT from the coverage map was never measured — never "measured and failed".
|
|
92
|
+
* A measured-and-failed country is PRESENT with `hardFilterSafe: false` (e.g. FI at 69.5% hard-resolve), so the
|
|
93
|
+
* negative result is a first-class record, distinguishable from ignorance.
|
|
94
|
+
*/
|
|
95
|
+
export interface CountryCoverageFact {
|
|
96
|
+
/** ISO 3166-1 alpha-2, uppercase. */
|
|
97
|
+
country: string
|
|
98
|
+
/**
|
|
99
|
+
* The promote-gate VERDICT: hard-filtering this country is a pure win (a hard-filter miss is almost always a genuine
|
|
100
|
+
* non-match, not a coverage gap). Stored as a verdict — not re-derived from `hardResolveRate` at read time — because
|
|
101
|
+
* the gate is a judgment over a panel, not a pure rate function (CA cleared at the #928 promote on the
|
|
102
|
+
* postcode-format-prior rationale despite a sub-95% panel resolve rate).
|
|
103
|
+
*/
|
|
104
|
+
hardFilterSafe: boolean
|
|
105
|
+
/** Measured hard-resolve rate (0..1) on the panel named in `source`, when the receipt recorded one. */
|
|
106
|
+
hardResolveRate?: number
|
|
107
|
+
/** Panel size behind `hardResolveRate`, when recorded. */
|
|
108
|
+
sampleSize?: number
|
|
109
|
+
/** ISO-8601 date of the measurement / promote gate. */
|
|
110
|
+
measuredAt: string
|
|
111
|
+
/** The receipt: which panel/gate produced this row (issue + date, human-readable). */
|
|
112
|
+
source: string
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** One country's coarse guard-B bounding box, as carried by the gazetteer artifact's `country_bbox` table. */
|
|
116
|
+
export interface CountryBBoxFact {
|
|
117
|
+
/** ISO 3166-1 alpha-2, uppercase. */
|
|
118
|
+
country: string
|
|
119
|
+
latMin: number
|
|
120
|
+
latMax: number
|
|
121
|
+
lonMin: number
|
|
122
|
+
lonMax: number
|
|
123
|
+
/** Provenance of the box (harness + date). */
|
|
124
|
+
source: string
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Facts a loaded gazetteer artifact declares about itself — read from the artifact's own manifest tables at open time,
|
|
129
|
+
* carried on the {@link ResolverBackend}/{@link Resolver} handle so consumers read the facts from the artifact they are
|
|
130
|
+
* actually resolving against. `undefined` on the handle = the artifact predates the manifest → consumers fall back to
|
|
131
|
+
* the code constants (byte-identical legacy behavior).
|
|
132
|
+
*/
|
|
133
|
+
export interface GazetteerArtifactCoverage {
|
|
134
|
+
/** Country → measured coverage fact. ABSENCE = never measured (meaning-of-zero), never "failed". */
|
|
135
|
+
countryCoverage: ReadonlyMap<string, CountryCoverageFact>
|
|
136
|
+
/** Country → guard-B bbox. ABSENCE = no box → the plausibility guard fails open for that country. */
|
|
137
|
+
countryBBoxes: ReadonlyMap<string, CountryBBoxFact>
|
|
138
|
+
/** Derived at load: the countries whose fact says `hardFilterSafe` — the artifact's hard-country safelist. */
|
|
139
|
+
hardCountrySafelist: ReadonlySet<string>
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** Derive the hard-country safelist from coverage facts — the ONE derivation both the reader and the build share. */
|
|
143
|
+
export function hardCountrySafelistFromCoverage(facts: Iterable<CountryCoverageFact>): ReadonlySet<string> {
|
|
144
|
+
const out = new Set<string>()
|
|
145
|
+
|
|
146
|
+
for (const fact of facts) {
|
|
147
|
+
if (fact.hardFilterSafe) {
|
|
148
|
+
out.add(fact.country.toUpperCase())
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return out
|
|
153
|
+
}
|
|
154
|
+
|
|
86
155
|
export interface ResolverBackend {
|
|
87
156
|
findPlace(query: {
|
|
88
157
|
text: string
|
|
@@ -113,6 +182,11 @@ export interface ResolverBackend {
|
|
|
113
182
|
* `ancestors` table.
|
|
114
183
|
*/
|
|
115
184
|
ancestors?(id: number | string): Ancestor[]
|
|
185
|
+
/**
|
|
186
|
+
* Facts the loaded gazetteer artifact declares about itself (its coverage-manifest tables, read at open). OPTIONAL —
|
|
187
|
+
* absent when the artifact predates the manifest, and consumers fall back to the code constants.
|
|
188
|
+
*/
|
|
189
|
+
artifactCoverage?: GazetteerArtifactCoverage
|
|
116
190
|
}
|
|
117
191
|
|
|
118
192
|
/** One link in a resolved place's containment lineage ({@link ResolverBackend.ancestors}, #404). */
|
|
@@ -204,6 +278,17 @@ export interface InterpolatedPointHit {
|
|
|
204
278
|
*/
|
|
205
279
|
export interface InterpolationLookup {
|
|
206
280
|
find(query: { street: string; number: string; postcode?: string }): InterpolatedPointHit | null
|
|
281
|
+
/**
|
|
282
|
+
* The ARTIFACT's own conformal radius multiplier for `uncertaintyM` (#374), read from the shard's
|
|
283
|
+
* `interp_calibration` metadata table at open time (the pair-index δ/transitionBeta header precedent): the multiplier
|
|
284
|
+
* is a property of the calibration set the artifact was built against, so it ships in the artifact, not in caller
|
|
285
|
+
* code. The resolver applies it as the DEFAULT whenever `ResolveOpts.interpolationRadiusCalibration` is absent.
|
|
286
|
+
* `undefined` (or an implementation without the property) = the artifact carries none — shards built before the
|
|
287
|
+
* metadata table existed; behavior is then exactly the pre-artifact ladder (caller-supplied factor or raw).
|
|
288
|
+
* Implementations must read this at OPEN time (constructor/factory), never per-lookup — `find()` is synchronous by
|
|
289
|
+
* design.
|
|
290
|
+
*/
|
|
291
|
+
readonly radiusCalibration?: number
|
|
207
292
|
}
|
|
208
293
|
|
|
209
294
|
/**
|
|
@@ -350,14 +435,20 @@ export interface ResolveOpts {
|
|
|
350
435
|
*/
|
|
351
436
|
interpolation?: InterpolationLookup
|
|
352
437
|
/**
|
|
353
|
-
* Conformal calibration multiplier for the interpolation tier's `uncertainty_m` (#374). The raw radius is
|
|
354
|
-
* matched TIGER segment length — an honest-but-TIGHT prior: a split-conformal calibration on 1562
|
|
355
|
-
* interp hits (2026-06-14) found it covers only ~72% of true errors, and that multiplying by **Q̂ ≈
|
|
356
|
-
* calibrated 90% bound (91.5% empirical). When
|
|
357
|
-
* and preserves the raw value under `uncertainty_raw_m`.
|
|
358
|
-
*
|
|
359
|
-
*
|
|
438
|
+
* Conformal calibration multiplier OVERRIDE for the interpolation tier's `uncertainty_m` (#374). The raw radius is
|
|
439
|
+
* half the matched TIGER segment length — an honest-but-TIGHT prior: a split-conformal calibration on 1562
|
|
440
|
+
* Travis-County interp hits (2026-06-14) found it covers only ~72% of true errors, and that multiplying by **Q̂ ≈
|
|
441
|
+
* 1.70** yields a calibrated 90% bound (91.5% empirical). When a factor applies, `applyInterpolation` reports
|
|
442
|
+
* `uncertainty_m = round(raw × factor)` and preserves the raw value under `uncertainty_raw_m`.
|
|
443
|
+
*
|
|
444
|
+
* The factor is a property of the CALIBRATION SET the artifact was built against, so it ships IN the artifact:
|
|
445
|
+
* {@link InterpolationLookup.radiusCalibration} (the shard's `interp_calibration` metadata table, read at open time)
|
|
446
|
+
* is the default whenever this option is absent. Absent + artifact-silent = raw heuristic (byte-stable — shards
|
|
447
|
+
* predating the metadata table; production callers fall back to their in-code per-region table for those). Report:
|
|
360
448
|
* docs/articles/evals/calibration/2026-06-14-interp-radius-calibration.md.
|
|
449
|
+
*
|
|
450
|
+
* @internal Instrument knob (D3) — measurement decomposition + legacy-shard fallback only; the artifact header IS
|
|
451
|
+
* the shipped calibration. Set it only to override the artifact's value.
|
|
361
452
|
*/
|
|
362
453
|
interpolationRadiusCalibration?: number
|
|
363
454
|
/**
|
|
@@ -581,4 +672,10 @@ export function isPlacetypeFallback(requestedPlacetype: string, candidatePlacety
|
|
|
581
672
|
*/
|
|
582
673
|
export interface Resolver {
|
|
583
674
|
resolveTree(tree: AddressTree, opts?: ResolveOpts): Promise<AddressTree>
|
|
675
|
+
/**
|
|
676
|
+
* Facts the loaded gazetteer artifact declares about itself, passed through from the {@link ResolverBackend} so
|
|
677
|
+
* pipeline-level consumers (the hard-country coverage gate, guard-B plausibility) read them from the handle they
|
|
678
|
+
* already hold. Absent = artifact predates the manifest → code-constant fallback.
|
|
679
|
+
*/
|
|
680
|
+
artifactCoverage?: GazetteerArtifactCoverage
|
|
584
681
|
}
|