Repository navigation
fix(042): a panicking decision task answers internal_error - #466
Conversation
AI review (no-findings)Looking at the four changed files: service.rs
handlers.rs
spec.md
No concrete defects found. {"head": "4846be9e681e17181bd405ca7b8eb63abf991cea", "verdict": "no-findings", "findings": []}Subject: 3dca8fd...4846be9, diff digest e5603e0956b419028e2d7913c8874642799230873dc91a43eebd69c0dde332c8, 1 call(s). An AI comment is not an approval. |
Spec 010's record left this open against 042: a decision task that panicked ended its stream without final, the non-streaming call answered an empty HTTP 500, and the service began shutting down. The task's failure now answers internal_error (500, INTERNAL, no detail) as the response or the stream's final event, is counted in rustev_decision_task_panics_total, releases the retained entry, and the service keeps serving. 3.7.2, the internal_error row and section 5 are amended; no contract type changes.
4846be9 to
957fa52
Compare
AI review (no-findings)Looking through the four changed files, I'm checking for bugs, security issues, and spec inconsistencies.
The The The metric key
The Test The test registers a plan, then issues two panicking requests and asserts: HTTP 500, No concrete defects found. {"head": "957fa52248295fea95a650a29fe5290eaa355b81", "verdict": "no-findings", "findings": []}Subject: 1485f17...957fa52, diff digest 0e26c3e54fcc08103eb12a6e44074985257d5cf9811016bf6301300d6fdb9cd4, 1 call(s). An AI comment is not an approval. |
Closes the item spec 010's record left open against 042: a decision task that panics now ends with an answer.
Before
finalevent, against 3.7.2's "finalis never dropped".After (owner decision, 2026-11-03: reuse
internal_error, no new refusal code)internal_error(HTTP 500, gRPCINTERNAL, no detail), as the response or as the stream's onefinalevent. This is the same answer as a runtime invariant failure (spec 037 3.12.6).rustev_decision_task_panics_total.decision_in_progress.Spec
042 3.7.2, the
internal_errorrow of 3.5, a section 5 row and a record paragraph. 042 staysin-progress. Its completion PR follows once #459 lands and 031 closes.Tests
integrations/rustev-serve/tests/handlers.rs:panicking_decision_task_answers_internal_error_and_keeps_serving, which uses a SYNTHETIC context source that panics. It checks the handler, a resubmission, the metric, an HTTP stream's singlefinal, and a normal decision afterwards. COVERAGE.md gains the row.Merge order
This PR and #459 both add a record paragraph to 042, so this one lands after #459 and is restacked then.
Locally: the new test, clippy
-D warningson rustev-serve,make gateand the authored-content check pass.