Providers & Worker 1.4.0
Provider abstraction keeps optional local ranking replaceable without shipping model weights or enabling cloud access.
Providers
| Provider | Status | Purpose |
|---|---|---|
createUnavailableRanker() | unavailable | Default; policy-order fallback |
createDeterministicRanker() | deterministic | Offline tests and demos; not a neural model |
createModelRankerPlaceholder() | unavailable | Future local model hook; no weights |
createWorkerRanker(url?) | deterministic | Heuristic in a Worker when available |
Activation
startAdapt(document, {
ai: { enabled: true, ranker: 'deterministic' }
});Worker protocol
The optional Worker receives only the Semantic Snapshot and public candidates and returns ranking data. It has no DOM handle and must not fetch external AI, read cookies, or access storage.
Lifecycle
getAdaptAIStatus(root) reports enabled/provider state. stopAdapt(root) terminates Worker rankers where applicable.