- Ports device-link-reconciler.ts's findBy*/applyLink/recordConflict/ pickBestCandidate shape to a single pg_trgm similarity() score - AUTO_LINK_THRESHOLD=0.90 (D-01), TIE_MARGIN=0.05 (D-02), CANDIDATE_FLOOR=0.3, exported and tunable - decide() implements D-01..D-04: auto-link only on unambiguous high-confidence match, review with top-3 candidates (or empty array when none clear the floor) - applyLink()/recordConflict() guard resolved_at IS NOT NULL and match_method IS DISTINCT FROM 'manual' (D-05/SC#4 idempotency) - matchPax8Companies() scans the re-scoring-eligible subset of pax8_companies and reports scanned/autoLinked/flaggedAmbiguous/ flaggedNoCandidate/durationMs |
||
|---|---|---|
| .. | ||
| hooks | ||
| services | ||
| types | ||
| utils | ||
| auth-client.ts | ||
| auth-utils.ts | ||
| auth.ts | ||
| bootstrap.ts | ||
| permissions.ts | ||
| status-registry.ts | ||
| utils.ts | ||