diff options
| author | Christian Cleberg <[email protected]> | 2026-04-22 09:47:24 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-22 09:47:24 -0500 |
| commit | 7b41195620eadd54d25fa98dcd36735cba906ba3 (patch) | |
| tree | 929a791a4c2fd3278f98c17c0ae5476940a01312 /DomainDig/LookupRuntime.swift | |
| parent | 36ea668d7fc9070770973b0bc329f4319bf43cab (diff) | |
| download | domain-dig-7b41195620eadd54d25fa98dcd36735cba906ba3.tar.gz domain-dig-7b41195620eadd54d25fa98dcd36735cba906ba3.tar.bz2 domain-dig-7b41195620eadd54d25fa98dcd36735cba906ba3.zip | |
feat(v2.7.0): add provenance, confidence, and reproducibility metadata
* add result provenance across major sections
* introduce confidence levels for ambiguous outputs
* distinguish observed facts from inferred summaries
* expand snapshot metadata for reproducibility
* improve error classification and partial snapshot handling
* include provenance and confidence in export
* add local notes for tracked domains and history
Diffstat (limited to 'DomainDig/LookupRuntime.swift')
| -rw-r--r-- | DomainDig/LookupRuntime.swift | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/DomainDig/LookupRuntime.swift b/DomainDig/LookupRuntime.swift index 08ea122..5db3134 100644 --- a/DomainDig/LookupRuntime.swift +++ b/DomainDig/LookupRuntime.swift @@ -79,15 +79,9 @@ actor LookupRuntime { } func availability(domain: String) async -> CachedLookupResult<DomainAvailabilityResult> { - await execute( - key: .domain(domain, .availability), - extract: { payload in - guard case let .availability(result) = payload else { return nil } - return result - }, - operation: { - .availability(await DomainAvailabilityService.check(domain: domain)) - } + CachedLookupResult( + value: await DomainAvailabilityService.check(domain: domain), + source: .live ) } |
