Repository navigation
fix(plugins): keep the release-only runtime-llm ownership and isolated-reasoning tests green - #156565
Conversation
…d-reasoning tests green Operator authority currency no longer folds the caller's own abort signal into assertCurrent, so a caller-aborted direct completion settles through the provider result again instead of rejecting after the stream ended (regressed in #156346). The isolated reasoning validation fixture uses max, which stays unsupported for the host-resolved model now that Ultra is a harness mode on every runtime (#155393).
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 23, 2026, 10:30 AM ET / 14:30 UTC. ClawSweeper reviewWhat this changesRestores aborted results for plugin-requested cancellation of direct model completions and updates the isolated-reasoning rejection fixture. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 1 item remains The repair remains necessary on current main. No introduced correctness or security defects were found; the patch preserves operator revocation while restoring caller-cancellation behavior. Priority: P2 Review scores
Verification
How this fits togetherThe plugin completion runtime turns plugin prompts into provider requests or isolated agent runs. It carries caller cancellation separately from the operator authority that controls model access. flowchart TD
A[Plugin completion request] --> B[Operator authority checks]
B --> C[Model selection and preparation]
C --> D[Provider or isolated runtime]
E[Caller cancellation] --> D
B --> F[Result authorization check]
D --> F
F --> G[Completion result and cleanup]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests 0. Total 0 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep provider cancellation settlement separate from operator revocation, using the existing completion and cleanup owners. Do we have a high-confidence way to reproduce the issue? Yes, from source: aborting a dispatched completion makes current main's post-result assertion throw; the existing transport suite exercises that trigger. Tests were not executed during this read-only review. Is this the best way to solve the issue? Yes. Removing caller cancellation from authority currency restores the existing result contract while preserving dispatch cancellation, model-policy checks, and cleanup ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 318fc3c41f71. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…d-reasoning tests green (openclaw#156565) Operator authority currency no longer folds the caller's own abort signal into assertCurrent, so a caller-aborted direct completion settles through the provider result again instead of rejecting after the stream ended (regressed in openclaw#156346). The isolated reasoning validation fixture uses max, which stays unsupported for the host-resolved model now that Ultra is a harness mode on every runtime (openclaw#155393). Co-authored-by: Peter Steinberger <[email protected]>
Related: #156346, #155393
What Problem This Solves
Fixes: the release-only plugin shard (
checks-node-agentic-plugins, Full Release Validation childplugin-prerelease-independent) fails deterministically on main, blocking the 2026.9.6 stable release. A pluginruntime.llm.completecall that the caller aborts after the provider request was dispatched now rejects with a rawAbortError(or the caller's own abort reason) instead of settling through the provider's aborted result, and the isolated-reasoning validation fixture asks for a thinking level that is now legitimately supported.User Impact
User impact: a plugin that cancels its own in-flight direct completion gets the aborted provider result back again (empty text, no usage), matching the plugin SDK
completeWithPreparedSimpleCompletionModelpath, instead of an untyped rejection. Operator-role model limits (#156346) keep revoking in-flight work exactly as before. No change for callers that never abort.Why This Change Was Made
#156346 folded the caller's own
params.signalinto the operator-currencyassertCurrentthat also runs after the provider stream has settled, so a caller abort flipped from "resolve with the aborted message" to "reject after the fact". Operator revocation is already enforced byoperatorAuthority.assertCurrent()(which checks the operator's own signal) andmodelExecution.assertCurrent(), so the caller-signal check is dropped fromassertCurrent; the caller signal still reaches the provider throughoptions.signaland still prevents dispatch when already aborted.#155393 made
ultraa harness mode on every runtime, soreasoning: "ultra"is valid foropenai/gpt-5.5by design. The isolated-reasoning validation fixture now requestsmax, which stays unsupported for the host-resolved model on every runtime, so the test keeps proving that isolated reasoning is validated against the host-resolved profile.Evidence
9db35b75146withnode node_modules/vitest/vitest.mjs run --config test/vitest/vitest.plugins.config.ts src/plugins/runtime/runtime-llm-isolated.runtime.test.ts src/plugins/runtime/runtime-llm.prepared-owner.test.ts:abort,callback-drain,anthropic-read-cancelreject withAbortError/foreign cancellation;validates isolated reasoning against the host-resolved model and runtimeresolves instead of rejecting.src/plugins/runtime/directory undertest/vitest/vitest.plugins.config.tspasses 23 files / 303 tests; the PR-CIruntime-llm.operator-model-policy.test.tsandruntime-llm-diagnostics.runtime.test.tspass 35/35 (operator revocation, "cannot use this model", and "requester retired" rejections are unchanged).pnpm check:changedrun locally.af7420cc367a(git apply --checkagainst that tree).