Retain captured PromptKit evidence after cancellation

This commit is contained in:
2026-11-07 12:03:23 +00:00
parent c61e125649
commit 07e1634e79
3 changed files with 90 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
# Shared reporting and PromptKit adoption remediation
Status: six open findings; R1 complete. R1–R3 are from the architectural review of
Status: five open findings; R1–R2 complete. R1–R3 are from the architectural review of
`f83866e44a8a9066db52cbd2aa5cccde0d69a839`. R4–R7 are from the algorithmic
audit of `f5b2d1f80c4720b762f3301c29d5050710c210d0`; R4 is a correctness
issue and R5–R7 are efficiency opportunities for consideration.
@@ -73,6 +73,12 @@ Do not freeze incidental text layout.
## R2 — P2: PromptKit configuration cancellation discards captured evidence
**Complete.** The loader handoff now explicitly distinguishes an unavailable
inspection from a captured one and retains the latter on cancellation. ConfigScope
exposes only its sources and findings on failure. Native-evidence, source-report,
reached-scope validation, cancellation, and separate delivery-failure checks pass,
as does the independent ckprompt suite with Go 1.27.0.
**Location:** [adapters.go](../../integrations/ckprompt/adapters.go),
loadPromptKitEngine lines 487–495 and ConfigScope.Acquire lines 276–287.