Cache final typed producer artifacts under the initial native request hash

This commit is contained in:
2026-11-22 02:10:05 +00:00
parent 3ef55b1cf0
commit 36906cb3d1
15 changed files with 878 additions and 15 deletions

View File

@@ -1227,6 +1227,35 @@ ordinary creation permissions. Reuse existing safety coverage where applicable.
## Stage 27: Cache Final Typed Producer Artifacts Under The Initial Request
**Status:** Complete. Eligible producer operations now prepare the initial native
request once, retain its detached details and opaque MessageContentHash, and
execute that same handle on a miss. Auto hits decode the expected durable artifact
with ordinary source-addressing checks and return without interpretation,
assessment, execution events, historical usage, or exchange replay. Prepared
handles are discarded on every unused exit. Only final ordinary acceptance writes
the applied typed value under the initial key, including after correction;
refresh skips lookup and failed refresh preserves previous acceptance. Bypass,
fallback, cancellation, and incoming ineligibility perform no cache writes, with
bypass/ineligibility using ordinary native execution without cache preparation.
Bound typed codecs and optional exact-type evidence projections through runner
extraction/merge/normalization and registry specialization. Cache failures produce
scoped process warnings without failing successful work; artifact encoding and
capture failures remain ordinary errors. Transient scoped cache observations retain
prepared evidence on hits without establishing a persisted cache/report contract.
Real native fake-provider/filesystem tests cover corrected applied output, fixed
initial keys, settings/session reuse versus content misses, frozen prepared
execution, no reassessment/execution on hits, unusable data, source/type checks,
all terminal exclusions, failed refresh, cancellation during hit delivery,
best-effort warning publication, merge/normalization reuse, and predecessor reuse
after downstream failure. Focused pipeline tests/vet/repeated race checks, cache/
contracts/generic/Seriatim/reconciliation tests, selected vet/race checks, production
framework builds, and `git diff --check` pass. Full pipeline tests still encounter
retired fixtures such as NormalizeRetry/runProducerAttempts; CLI/module integration
still stops at old ConfigKit's removed YAML `plugin/limit` import. Those full
suites are not claimed passing. Chunk-plan cache integration and legacy checkpoint
execution removal remain the next stage; physical CLI runtime wiring retains its
assigned later scope.
**Goal:** integrate caching into the same native producer helper.
**Inspect/change:** the helper, typed artifact codecs, operation eligibility,