context(slice): out-of-range model selector is terminal instead of a recoverable per-call fault #381
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/prolog-rlm#381
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
A model-issued
context(slice)request with a start index beyond the current payload length fails the entire run withcontext_operation_failed, instead of being surfaced as a recoverable per-call fault (the way malformed native tool-call arguments already are). The model cannot correct course after one bad slice guess.Reproduction (live run, 2026-09-06)
Auto-Dig Prolog actor, native direct mode, pinned ref
39b278589dae8518e583778cd6671a6cb1e026c7(with the Auto-Dig hotfix set applied). The model (z-ai/glm-5.3-flash via OpenRouter) had already made 6 model calls / 8 context calls when it requested:Outcome error (
rlm-result.json):The run terminated with exit 1 (
phase=context kind=context_operation_failed). No retry, no repair attempt, no clamp.Why this matters for Auto-Dig
svc-20260906T235450Z(full success, no bad slices), runsvc-20260906T235839Z(this failure), runsvc-20260906T235958Z(full success again) — so it is model-behavior variance, not a deterministic request property.Requested behavior
context(slice)selectors (and equivalent peek/search selectors) should be recoverable per-call faults: return a structured error the loop can feed back to the model (e.g. "payload length is N; valid range 0..N"), allow one bounded repair retry, and only fail the run if the model repeats the same invalid selector.Environment
39b278589dae8518e583778cd6671a6cb1e026c7+scripts/apply_prolog_rlm_hotfix.pypatch set from starintel-gpt-auto-dig.agents/auto_dig_rlm_runner.pl(context optionsmax_bytes(262144), time_limit(5.0)).