Skip to content

fix: bound model requests and propagate generation and repair failures - #11

Merged
cppbear merged 1 commit into
mainfrom
fix/model-request-boundaries
Oct 8, 2026
Merged

cppbear merged 1 commit into
mainfrom
fix/model-request-boundaries

Conversation

@cppbear

@cppbear cppbear commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Model responses without usage previously panicked, request retry loops could multiply across layers, and oracle/repair request failures could be swallowed. This change gives generation and repair one HTTP retry owner (at most three attempts), a configurable 180-second per-attempt timeout, explicit response validation, and propagated failures. Missing usage preserves valid answers and marks the invocation token summary incomplete.

Validation: workspace build and tests passed (38 tests; one credentialed live test intentionally ignored), along with the real-Cargo minimal pipeline and task-scheduling regressions. Local HTTP fixtures cover permanent/transient failures, exhausted retries, dropped connections and delayed bodies. CLI regressions cover oracle errors, source restoration, retained repair backups, and cached zero-request summaries. No real model service was called.

Cargo subprocess deadlines and run/resume redesign remain outside this change.

@cppbear
cppbear marked this pull request as ready for review October 8, 2026 05:26
@cppbear
cppbear merged commit d5dd98a into main Oct 8, 2026
2 checks passed
@cppbear
cppbear deleted the fix/model-request-boundaries branch October 11, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant