Honor cancellation after recording native evaluation evidence
This commit is contained in:
@@ -16,18 +16,25 @@ usability correction and test-oracle repair are present. No additional required
|
||||
architecture/documentation gap or inadvertently strengthened requirement was
|
||||
identified. Unrelated outstanding audit findings remain separate work.
|
||||
|
||||
One correctness regression needs remediation before closing this work set.
|
||||
The correctness regression below has been addressed. The review evidence is
|
||||
retained as the historical explanation of the fix.
|
||||
|
||||
## Finding 1 — Recheck Cancellation After Native Evaluation Evidence
|
||||
|
||||
**Status:** Resolved. Core rechecks caller cancellation after initial evaluation
|
||||
and deferred recording, retaining any concurrent capture failure. The focused
|
||||
`TestNativeProducerOperationCancellationDuringEvaluationCapture` regression
|
||||
covers both successful recording and recording failure, without cache writes,
|
||||
correction, fallback, or an accepted result. Both cases failed before the fix.
|
||||
|
||||
**Priority:** P2, correctness; a narrow capture-enabled cancellation edge case.
|
||||
|
||||
**Affected stages:** 4, 6, 21, and 24.
|
||||
|
||||
**Location:** [executeNative](../../internal/framework/pipeline/operation_native.go),
|
||||
particularly its deferred `captureEvaluation` call, the initial
|
||||
`evaluate(result)` return boundary (currently lines 191–196), and the accepted
|
||||
return (currently lines 277–284).
|
||||
`evaluate(result)` return boundary (lines 191–196 at the reviewed baseline), and
|
||||
the accepted return (lines 277–284 at that baseline).
|
||||
|
||||
### Defect And Evidence
|
||||
|
||||
@@ -102,3 +109,10 @@ cached results where applicable. The additional temporary cancellation regressio
|
||||
failed as described; it is diagnostic evidence, not a committed test or a code
|
||||
fix. No production inference or API credentials were used, and no application
|
||||
code was changed during this review.
|
||||
|
||||
## Remediation Validation
|
||||
|
||||
Both permanent regression cases failed before the fix and pass afterward. The
|
||||
focused operation/capture/cancellation tests, full offline test suite, vet,
|
||||
build, and focused race command above passed after the fix. `git diff --check`
|
||||
also passed. No production inference or API credentials were used.
|
||||
|
||||
Reference in New Issue
Block a user