fix(context): require referenced evidence before a retry decision #502

Merged
karsten merged 2 commits from fix/explicit-excerpt-next-action into main 2026-11-15 19:28:55 +00:00
Owner

Follow-up to #501 from a REAL DeepSeek protocol check, not an assumption that keyword tests prove behavior.

The model correctly returned false for replayOperation, openAllArtifacts, wholeBatchSucceeded and pollSameStatusAgain, but its proposed next action was ambiguous: verify_status_and_retry_grouped_error. The initial probe's boolean-only pass predicate was too weak. Preserve that original result; do not claim the whole procedure was validated.

Clarify the actual shared system contract: when a required status is omitted by an excerpt, FIRST read its referenced original range, not a new status request/operation. An isError receipt may include partial effects; never automatically retry a failed batch member. Add real-SDK injection assertions. A second isolated model probe uses a strengthened predicate requiring an actual referenced-evidence read and no retry; it is not yet claimed passed.

Typecheck/focused tests/review PASS. Full suite: 2639 passed, one existing optional skip, zero failures. Exact-head CI required. No new tool gate, approval condition, model switch or effect replay.

Follow-up to #501 from a REAL DeepSeek protocol check, not an assumption that keyword tests prove behavior. The model correctly returned false for replayOperation, openAllArtifacts, wholeBatchSucceeded and pollSameStatusAgain, but its proposed next action was ambiguous: verify_status_and_retry_grouped_error. The initial probe's boolean-only pass predicate was too weak. Preserve that original result; do not claim the whole procedure was validated. Clarify the actual shared system contract: when a required status is omitted by an excerpt, FIRST read its referenced original range, not a new status request/operation. An isError receipt may include partial effects; never automatically retry a failed batch member. Add real-SDK injection assertions. A second isolated model probe uses a strengthened predicate requiring an actual referenced-evidence read and no retry; it is not yet claimed passed. Typecheck/focused tests/review PASS. Full suite: 2639 passed, one existing optional skip, zero failures. Exact-head CI required. No new tool gate, approval condition, model switch or effect replay.
ci: validate context-only source and regression changes
All checks were successful
decision-interface-ci / full-validation (pull_request) Successful in 3m32s
c29eff8102
Author
Owner

PI-REVIEW-RECEIPT

State: PASS
Head: c29eff8102f5
Summary: PASS: No actionable findings identified in the supplied diff.
Findings: 0

<!-- PI-REVIEW-RECEIPT --> ## PI-REVIEW-RECEIPT State: **PASS** Head: `c29eff8102f5` Summary: PASS: No actionable findings identified in the supplied diff. Findings: 0
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
harness/core!502
No description provided.