@mailwoman/resolver 9.0.0 → 9.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.
@@ -0,0 +1,113 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * Postcode-shape coherence (#31, Mechanism 1) — shape as CONFIDENCE and EXCLUSION, downstream of the
7
+ * siblings. The fifth member of the joint-consistency coherence family (after `applyAdminCoherence`
8
+ * #263, `applyExplicitCountryCoherence` #822, `applyRegionCountryCoherence`, and
9
+ * `findPostcodeCountryScope` #42/#1477), and the only one that is pure-sync and backend-free:
10
+ * everything it needs is `candidateSystemsForPostcode` plus the tree.
11
+ *
12
+ * The defect (M-1, `docs/superpowers/plans/2026-08-05-postcode-structure-arc.md`): the decoder
13
+ * sometimes tags a HOUSE NUMBER as `postcode` when its digits form a foreign postcode shape —
14
+ * "1200" in "Twin Peaks Golf Course, 1200 Cornell Dr, Longmont, CO 80503" is accepted only by the
15
+ * AU/NZ 4-digit shape, while every sibling placetype says US. The shape alone cannot say a code is
16
+ * foreign (49/100 Gauntlet codes are accepted by more than one system, 10 by none), so this pass
17
+ * never reads the shape as country evidence by itself — it INTERSECTS each span's candidate systems
18
+ * with the systems the SIBLINGS already assert, and only a confident sibling set can demote.
19
+ *
20
+ * ## The rule (three outcomes, per span)
21
+ *
22
+ * 1. **Intersection non-empty → CONFIRMED.** Stamp `postcode_shape_systems` (the narrowed
23
+ * intersection, upper-case). Additive metadata only — resolution is byte-identical (B1-1). The
24
+ * same intersection narrows `findPostcodeCountryScope`'s candidate list when the caller threads
25
+ * it (a pure subset of codex's shape candidates — safe by construction).
26
+ * 2. **Intersection empty + confident siblings → EXCLUDED.** A digit-only span is demoted to
27
+ * `house_number` (the correct sibling tag — B1-2's "correct sibling tag surviving"); a
28
+ * letter-bearing span keeps its tag and gets `postcode_shape_excluded: true` instead (the
29
+ * compound-split corner — "15 07691" — is #942 postal-compound-recovery territory, out of
30
+ * scope). Either way the span's contribution to the resolve is stripped: `firstPostcodeValue`,
31
+ * the walk's postcode lookup, and the post-walk postcode passes all skip excluded spans.
32
+ * 3. **No confident siblings → ABSTAIN** (the `postcode-country-coherence.ts:269` posture
33
+ * verbatim). A shape no codex system recognizes (the 10/110 slice-less codes) also abstains —
34
+ * an empty candidate set is no evidence either way.
35
+ *
36
+ * ## What counts as a sibling signal
37
+ *
38
+ * - The **country node**, via `matchCountry`, territory-mapped: PR/VI/GU/MP/AS are USPS
39
+ * abbreviations (`codex/us/state.ts`), so a "Puerto Rico" token speaks for `us` — the mapping
40
+ * that protects the true postcode in "Ponce, 00716, Puerto Rico".
41
+ * - The **region node**, via `matchSubdivision` (US states + CA provinces; the US-first tiebreak
42
+ * that makes "CA" mean California is `matchSubdivision`'s own), plus the region's
43
+ * `country_hint` metadata stamp (`mailwoman/region-recognition.ts` writes it on 2-letter US
44
+ * state abbreviations).
45
+ * - Signals are filtered to the codex SystemCode universe BEFORE the intersection test. A country
46
+ * with no codex slice (ES, MX, IE, …) can never appear in any candidate set, so an unfiltered
47
+ * signal would make every intersection empty and every span "foreign" — the slice-less filter
48
+ * is the whole reason the JP-shaped "15 07691" span in the ES Portopetro row ABSTAINS rather
49
+ * than false-excludes.
50
+ *
51
+ * Deliberately NOT a signal: a second postcode span. The census's "cross-span" idea fails on the
52
+ * symmetric case — "2000 Sydney NSW, SW1A 2AA London" would exclude BOTH true codes (their systems
53
+ * are disjoint), a regression worse than the defect. Cross-country multi-postcode strings are
54
+ * pathological, and every M-1 span carries a country/region/`country_hint` signal instead.
55
+ *
56
+ * `defaultCountry` is never a signal: it is a LOCALE DEFAULT, not knowledge. B1-3's confound —
57
+ * "Sydney NSW 2000, Australia" reached with a US default must not have its 2000 excluded, and "10
58
+ * Downing Street, London SW1A 2AA" under a US default must not either. Those rows are exactly what
59
+ * `findPostcodeCountryScope` exists to rescue, and an exclusion pass that trusted the default
60
+ * would delete the evidence the country pass needs.
61
+ *
62
+ * ## Evidence posture
63
+ *
64
+ * M-1's six Gauntlet exclusion spans grade 4 exclusions (US "1600"/"3080"/"1200" via their region,
65
+ * PR "3499" via the territory-mapped country) + 2 documented abstentions (MX "2000" — no country
66
+ * token, "Tabasco" is not a `matchSubdivision` key; ES "15 07691" — no ES slice). Within-country,
67
+ * the exclusion problem is close to empty on the curated board, and a 5-digit house number in a
68
+ * DE/FR address is shape-native — the shape cannot exclude it (M-1 finding #1), so the mechanism
69
+ * CONFIRMS it instead.
70
+ *
71
+ * **D-rule: opt-in behind `ResolveOpts.postcodeShapeCoherence`, default-OFF.** Demotion is the
72
+ * failure mode with teeth, so a default-on promotion needs the full pre-registered gate (B1-1
73
+ * byte-stability, B1-2 exclusion ≥90% with the correct sibling tag surviving, B1-3 confound ≤2%
74
+ * false exclusions; kill on any B1-3 δ).
75
+ */
76
+ import type { AddressNode } from "@mailwoman/core/decoder";
77
+ /**
78
+ * The pass's per-tree verdict — the caller (and the B1 board tests) can see exactly which spans were confirmed,
79
+ * excluded, or abstained, and which confirmed span's narrowed systems should bound the country-scope pass.
80
+ */
81
+ export interface PostcodeShapeVerdict {
82
+ /**
83
+ * The narrowed candidate systems (upper-case) of the FIRST confirmed postcode node — the one `firstPostcodeValue`
84
+ * will pick — to thread into `findPostcodeCountryScope` as its candidate list. Undefined when no postcode node was
85
+ * confirmed.
86
+ */
87
+ narrowing?: string[];
88
+ /**
89
+ * The postcode strings the mechanism confirmed (shape ∩ confident siblings ≠ ∅).
90
+ */
91
+ confirmed: string[];
92
+ /**
93
+ * The postcode strings the mechanism excluded (shape ∩ confident siblings = ∅).
94
+ */
95
+ excluded: string[];
96
+ /**
97
+ * The postcode strings the mechanism abstained on (no confident siblings, or no codex shape).
98
+ */
99
+ abstained: string[];
100
+ }
101
+ /**
102
+ * Run the shape-coherence verdict over every `postcode` span in the tree, mutating the EXCLUDED spans in place (the
103
+ * retag / exclusion stamp) and stamping CONFIRMED spans' narrowed systems. Pure-sync: no backend, no queries. See the
104
+ * header for the full rule.
105
+ */
106
+ export declare function applyPostcodeShapeCoherence(roots: readonly AddressNode[]): PostcodeShapeVerdict;
107
+ /**
108
+ * True when a node is a postcode span this pass excluded but could not retag (the letter-bearing compound corner). The
109
+ * resolve's postcode consumers (`firstPostcodeValue`, the walk's postcode lookup, the post-walk postcode passes) all
110
+ * skip these, which is what "strip the postcode tag's contribution" means for a span that keeps its tag.
111
+ */
112
+ export declare function isShapeExcludedPostcode(node: AddressNode): boolean;
113
+ //# sourceMappingURL=postcode-shape-coherence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postcode-shape-coherence.d.ts","sourceRoot":"","sources":["../postcode-shape-coherence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAU1D;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACpC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB;;OAEG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAA;CACnB;AAmDD;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,GAAG,oBAAoB,CAsE/F;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAElE"}
@@ -0,0 +1,193 @@
1
+ /**
2
+ * @copyright Sister Software
3
+ * @license AGPL-3.0
4
+ * @author Teffen Ellis, et al.
5
+ *
6
+ * Postcode-shape coherence (#31, Mechanism 1) — shape as CONFIDENCE and EXCLUSION, downstream of the
7
+ * siblings. The fifth member of the joint-consistency coherence family (after `applyAdminCoherence`
8
+ * #263, `applyExplicitCountryCoherence` #822, `applyRegionCountryCoherence`, and
9
+ * `findPostcodeCountryScope` #42/#1477), and the only one that is pure-sync and backend-free:
10
+ * everything it needs is `candidateSystemsForPostcode` plus the tree.
11
+ *
12
+ * The defect (M-1, `docs/superpowers/plans/2026-08-05-postcode-structure-arc.md`): the decoder
13
+ * sometimes tags a HOUSE NUMBER as `postcode` when its digits form a foreign postcode shape —
14
+ * "1200" in "Twin Peaks Golf Course, 1200 Cornell Dr, Longmont, CO 80503" is accepted only by the
15
+ * AU/NZ 4-digit shape, while every sibling placetype says US. The shape alone cannot say a code is
16
+ * foreign (49/100 Gauntlet codes are accepted by more than one system, 10 by none), so this pass
17
+ * never reads the shape as country evidence by itself — it INTERSECTS each span's candidate systems
18
+ * with the systems the SIBLINGS already assert, and only a confident sibling set can demote.
19
+ *
20
+ * ## The rule (three outcomes, per span)
21
+ *
22
+ * 1. **Intersection non-empty → CONFIRMED.** Stamp `postcode_shape_systems` (the narrowed
23
+ * intersection, upper-case). Additive metadata only — resolution is byte-identical (B1-1). The
24
+ * same intersection narrows `findPostcodeCountryScope`'s candidate list when the caller threads
25
+ * it (a pure subset of codex's shape candidates — safe by construction).
26
+ * 2. **Intersection empty + confident siblings → EXCLUDED.** A digit-only span is demoted to
27
+ * `house_number` (the correct sibling tag — B1-2's "correct sibling tag surviving"); a
28
+ * letter-bearing span keeps its tag and gets `postcode_shape_excluded: true` instead (the
29
+ * compound-split corner — "15 07691" — is #942 postal-compound-recovery territory, out of
30
+ * scope). Either way the span's contribution to the resolve is stripped: `firstPostcodeValue`,
31
+ * the walk's postcode lookup, and the post-walk postcode passes all skip excluded spans.
32
+ * 3. **No confident siblings → ABSTAIN** (the `postcode-country-coherence.ts:269` posture
33
+ * verbatim). A shape no codex system recognizes (the 10/110 slice-less codes) also abstains —
34
+ * an empty candidate set is no evidence either way.
35
+ *
36
+ * ## What counts as a sibling signal
37
+ *
38
+ * - The **country node**, via `matchCountry`, territory-mapped: PR/VI/GU/MP/AS are USPS
39
+ * abbreviations (`codex/us/state.ts`), so a "Puerto Rico" token speaks for `us` — the mapping
40
+ * that protects the true postcode in "Ponce, 00716, Puerto Rico".
41
+ * - The **region node**, via `matchSubdivision` (US states + CA provinces; the US-first tiebreak
42
+ * that makes "CA" mean California is `matchSubdivision`'s own), plus the region's
43
+ * `country_hint` metadata stamp (`mailwoman/region-recognition.ts` writes it on 2-letter US
44
+ * state abbreviations).
45
+ * - Signals are filtered to the codex SystemCode universe BEFORE the intersection test. A country
46
+ * with no codex slice (ES, MX, IE, …) can never appear in any candidate set, so an unfiltered
47
+ * signal would make every intersection empty and every span "foreign" — the slice-less filter
48
+ * is the whole reason the JP-shaped "15 07691" span in the ES Portopetro row ABSTAINS rather
49
+ * than false-excludes.
50
+ *
51
+ * Deliberately NOT a signal: a second postcode span. The census's "cross-span" idea fails on the
52
+ * symmetric case — "2000 Sydney NSW, SW1A 2AA London" would exclude BOTH true codes (their systems
53
+ * are disjoint), a regression worse than the defect. Cross-country multi-postcode strings are
54
+ * pathological, and every M-1 span carries a country/region/`country_hint` signal instead.
55
+ *
56
+ * `defaultCountry` is never a signal: it is a LOCALE DEFAULT, not knowledge. B1-3's confound —
57
+ * "Sydney NSW 2000, Australia" reached with a US default must not have its 2000 excluded, and "10
58
+ * Downing Street, London SW1A 2AA" under a US default must not either. Those rows are exactly what
59
+ * `findPostcodeCountryScope` exists to rescue, and an exclusion pass that trusted the default
60
+ * would delete the evidence the country pass needs.
61
+ *
62
+ * ## Evidence posture
63
+ *
64
+ * M-1's six Gauntlet exclusion spans grade 4 exclusions (US "1600"/"3080"/"1200" via their region,
65
+ * PR "3499" via the territory-mapped country) + 2 documented abstentions (MX "2000" — no country
66
+ * token, "Tabasco" is not a `matchSubdivision` key; ES "15 07691" — no ES slice). Within-country,
67
+ * the exclusion problem is close to empty on the curated board, and a 5-digit house number in a
68
+ * DE/FR address is shape-native — the shape cannot exclude it (M-1 finding #1), so the mechanism
69
+ * CONFIRMS it instead.
70
+ *
71
+ * **D-rule: opt-in behind `ResolveOpts.postcodeShapeCoherence`, default-OFF.** Demotion is the
72
+ * failure mode with teeth, so a default-on promotion needs the full pre-registered gate (B1-1
73
+ * byte-stability, B1-2 exclusion ≥90% with the correct sibling tag surviving, B1-3 confound ≤2%
74
+ * false exclusions; kill on any B1-3 δ).
75
+ */
76
+ import { candidateSystemsForPostcode } from "@mailwoman/codex";
77
+ import { matchCountry, matchSubdivision } from "@mailwoman/codex/country";
78
+ import { isUSStateAbbreviation } from "@mailwoman/codex/us";
79
+ /**
80
+ * The codex address systems a sibling signal can speak for — the universe `candidateSystemsForPostcode` can return, in
81
+ * the upper-case ISO form this module's signals are emitted in (`SystemCode` itself is lower-case). Signals from
82
+ * countries with no codex slice are filtered out BEFORE the intersection test, so a slice-less country can never
83
+ * manufacture an empty intersection (the false-exclusion trap; see the header).
84
+ */
85
+ const SYSTEM_UNIVERSE = new Set(["US", "DE", "FR", "CA", "GB", "JP", "AU", "NZ"]);
86
+ /**
87
+ * Collect the sibling country signals: the country node (territory-mapped), the region node (`matchSubdivision` +
88
+ * `country_hint`), each filtered to the codex SystemCode universe. The tree is walked once for ALL postcode spans —
89
+ * sibling evidence is tree-level, not per-span.
90
+ */
91
+ function collectSiblingSystems(roots) {
92
+ const out = new Set();
93
+ const stack = [...roots];
94
+ while (stack.length) {
95
+ const n = stack.pop();
96
+ stack.push(...n.children);
97
+ if (n.tag === "country") {
98
+ const matched = matchCountry(n.value);
99
+ if (!matched)
100
+ continue;
101
+ // Territory map: PR/VI/GU/MP/AS are USPS state-or-territory abbreviations (codex/us/state.ts),
102
+ // so a US-territory country token ("Puerto Rico", "Guam") is a US-system signal.
103
+ const system = isUSStateAbbreviation(matched.iso2) ? "US" : matched.iso2.toUpperCase();
104
+ if (SYSTEM_UNIVERSE.has(system)) {
105
+ out.add(system);
106
+ }
107
+ continue;
108
+ }
109
+ if (n.tag === "region") {
110
+ // (a) The region's value as a subdivision ("CA" → US, "ON" → CA — the US-wins tiebreak for
111
+ // "CA" is matchSubdivision's own). (b) The `country_hint` stamp annotateUSRegions writes on
112
+ // 2-letter US state abbreviations — the same evidence via the pipeline's other seam.
113
+ const sub = matchSubdivision(n.value);
114
+ if (sub && SYSTEM_UNIVERSE.has(sub.country.toUpperCase())) {
115
+ out.add(sub.country.toUpperCase());
116
+ }
117
+ const hint = n.metadata?.["country_hint"];
118
+ if (typeof hint === "string" && SYSTEM_UNIVERSE.has(hint.toUpperCase())) {
119
+ out.add(hint.toUpperCase());
120
+ }
121
+ }
122
+ }
123
+ return out;
124
+ }
125
+ /**
126
+ * Run the shape-coherence verdict over every `postcode` span in the tree, mutating the EXCLUDED spans in place (the
127
+ * retag / exclusion stamp) and stamping CONFIRMED spans' narrowed systems. Pure-sync: no backend, no queries. See the
128
+ * header for the full rule.
129
+ */
130
+ export function applyPostcodeShapeCoherence(roots) {
131
+ const verdict = { confirmed: [], excluded: [], abstained: [] };
132
+ // The postcode spans in tree order — the same DFS `firstPostcodeValue` uses, so the verdict's
133
+ // "first confirmed" is the node `state.postcode` will read.
134
+ const postcodes = [];
135
+ const stack = [...roots];
136
+ while (stack.length) {
137
+ const n = stack.pop();
138
+ if (n.tag === "postcode" && n.value.trim().length) {
139
+ postcodes.push(n);
140
+ }
141
+ stack.push(...n.children);
142
+ }
143
+ if (!postcodes.length)
144
+ return verdict;
145
+ const siblingSystems = collectSiblingSystems(roots);
146
+ for (const node of postcodes) {
147
+ const code = node.value.trim();
148
+ const systems = candidateSystemsForPostcode(code);
149
+ // A shape no codex system recognizes is no evidence either way — abstain (the 10/110
150
+ // slice-less Gauntlet codes: IE Eircode, SI, IM, …).
151
+ if (!systems.length) {
152
+ verdict.abstained.push(code);
153
+ continue;
154
+ }
155
+ const intersection = systems.map((system) => system.toUpperCase()).filter((system) => siblingSystems.has(system));
156
+ if (intersection.length) {
157
+ verdict.confirmed.push(code);
158
+ // Additive only — resolution stays byte-identical (B1-1). The narrowed intersection is the
159
+ // candidate set the country-scope pass should bound itself to.
160
+ node.metadata = { ...node.metadata, postcode_shape_systems: intersection };
161
+ if (verdict.narrowing === undefined) {
162
+ verdict.narrowing = intersection;
163
+ }
164
+ continue;
165
+ }
166
+ if (siblingSystems.size) {
167
+ // Confident siblings, empty intersection → EXCLUDED. A digit-only span is demoted to its
168
+ // correct sibling tag (B1-2); a letter-bearing span (the "15 07691" compound corner) keeps
169
+ // its tag and is stamped instead — either way every resolve consumer skips it.
170
+ verdict.excluded.push(code);
171
+ if (/^\d+$/.test(code)) {
172
+ node.tag = "house_number";
173
+ }
174
+ else {
175
+ node.metadata = { ...node.metadata, postcode_shape_excluded: true };
176
+ }
177
+ continue;
178
+ }
179
+ // No confident siblings — the same abstention posture postcode-country-coherence.ts:269 takes
180
+ // on zero-or-two coherent countries. Never guess with the shape alone.
181
+ verdict.abstained.push(code);
182
+ }
183
+ return verdict;
184
+ }
185
+ /**
186
+ * True when a node is a postcode span this pass excluded but could not retag (the letter-bearing compound corner). The
187
+ * resolve's postcode consumers (`firstPostcodeValue`, the walk's postcode lookup, the post-walk postcode passes) all
188
+ * skip these, which is what "strip the postcode tag's contribution" means for a span that keeps its tag.
189
+ */
190
+ export function isShapeExcludedPostcode(node) {
191
+ return node.tag === "postcode" && node.metadata?.["postcode_shape_excluded"] === true;
192
+ }
193
+ //# sourceMappingURL=postcode-shape-coherence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postcode-shape-coherence.js","sourceRoot":"","sources":["../postcode-shape-coherence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AAEH,OAAO,EAAE,2BAA2B,EAAmB,MAAM,kBAAkB,CAAA;AAC/E,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAq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AI,EAAE,CAAA;YACpE,CAAC;YAED,SAAQ;QACT,CAAC;QAED,8FAA8F;QAC9F,uEAAuE;QACvE,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC7B,CAAC;IAED,OAAO,OAAO,CAAA;AACf,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAAiB;IACxD,OAAO,IAAI,CAAC,GAAG,KAAK,UAAU,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC,yBAAyB,CAAC,KAAK,IAAI,CAAA;AACtF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,EASN,KAAK,QAAQ,EACb,KAAK,eAAe,EAEpB,MAAM,0BAA0B,CAAA;AAYjC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,eAAe,GAAG,QAAQ,CAEpE"}
1
+ {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,EAYN,KAAK,QAAQ,EACb,KAAK,eAAe,EAEpB,MAAM,0BAA0B,CAAA;AAejC;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,eAAe,GAAG,QAAQ,CAEpE"}