Repository navigation
fix(decisions): allow OpenAI batches up to 400 questions - #180210
Conversation
OpenClaw-Publication: 81d9bb1c-6a16-4365-9d56-e191a3207bb8
|
🦞👀 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 maintainer review before merge. What this changesThis PR raises native OpenAI and ClawRouter Decisions V2 capacity to 400 questions while preserving V1’s 256-question ceiling. Example: Evaluate 400 Boolean questions using contractVersion 2 and openai/gpt-6-luna.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: current main still rejects supported larger Decisions batches, and this maintainer-authored PR provides a focused repair with no concrete introduced defect found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe decision tool and plugin API submit evidence and typed questions through shared validation, prepared provider execution, and the OpenAI-compatible transport, returning validated answers and usage. flowchart LR
A[Decision tool or plugin] --> B[Versioned host validation]
B --> C[Prepared provider execution]
C --> D[OpenAI or ClawRouter adapter]
D --> E[Shared Decisions transport]
E --> F[Typed answers and usage]
Technical reviewBest possible solution: Use the existing shared validator and executor with aligned provider declarations, preserving legacy limits and all other admission budgets. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically rejects 201–256 questions in the shared executor and 257–400 at V2 host admission; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch is the smallest complete repair: it updates the existing owners, both consumers’ declarations, diagnostic guidance, and distinct boundary regressions without adding machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2f17d4d533a8. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +51, Docs +3. Total +54 across 12 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 21, 2026, 11:16 PM ET / October 22, 2026, 03:16 UTC. |
…0210) Decisions: allow OpenAI batches up to 400 questions. - Shared V2 (contractVersion 2) validation ceiling raised from 256 to 400 questions; legacy input stays at 256. 401 is refused with a clear host-bound error before anything is sent. - OpenAI decision executor maxQuestions raised from 200 to 400; OpenAI and ClawRouter plugin manifests and docs updated. - Tool failure guidance states the 256 legacy / 400 V2 host bounds. Co-authored-by: Jason Sy <[email protected]>
Related: openclaw/clawrouter#277 (service-side Decisions support)
What Problem This Solves
Fixes: OpenAI Decisions batches containing 201–400 questions are rejected locally even though the current API accepts up to 400.
User Impact
User impact: OpenAI and ClawRouter native Decisions V2 callers can evaluate up to 400 questions without truncation. Legacy V1 remains capped at 256; use
contractVersion: 2for larger batches. No credential, deployment, or migration changes.Why This Change Was Made
Align the shared OpenAI executor and both capability manifests with the official Decisions reference, and raise the shared V2 host ceiling. The 255-choice bound, provider-specific admission, and other resource budgets are unchanged. OpenAI, ClawRouter, and shared-limit docs are updated, including the previously missed ClawRouter 200-question statement.
The single-inline-image/4 MiB and JSON budgets remain integration limits, not full vendor wire-option parity. ClawRouter needs service-side support and an eligible key; this PR does not deploy it.
Evidence
Published head:
41f478dc6e0dc0a7fa6945d5ceab8e541cbc91ef; tree:7f91509a01ffa129ffbc8afd1b6c323702957eaf; main base:c234ee3561a2ca46b6b847efbb129ffb1e8d46a9. The publisher's metadata commit has the identical full tree as tested local headbe2c046bd939f990d7f00e8a6b84c97c39d89081.261195c475024aa8ab381c345f7ffd5b54a4ebca.decisions,decisions-openai-runtime) against the actual base: no API changes, digestff7b090f. Prior export-sync/surface-budget checks passed. Full-repository API comparison previously exceeded its 15-minute budget and was not repeated.Exact-head CI and failure attribution
Initial CI run 39712989203 completed with 36 successful jobs, 28 skipped and two failures (extension-bundle plus aggregate gate). Security/dependency reviews, all six selected Security High checks, and all three selected Critical Quality checks passed.
Levanto: pre-existing deadline-sensitive fixture behavior, not a 400-question routing regression. The failed extension job had native-usage and prepared-prefix failures at 572/628ms against a 500ms fixture deadline. The initial repository helper classified them unknown; the following investigation supplies baseline evidence:
extensions/levanto/registration.test.ts10 times serially at head and 10 at the exact merge-base, alternating refs. Used the workflow'sscripts/ci-run-node-test-shard.mts,bun-allpolicy, pinned Bun1.4.4-canary.1+ef37c31de, same extension config and worker limits; only the include list was narrowed. Local host was macOS arm64, versus Linux x64 in CI.No production changes, timeout increases, assertion weakening, or retry-based test fixes were made. The temporary diagnostic was removed from both checkouts. These results establish inherited timing sensitivity; they do not repair it or identify the underlying scheduling stall.
Provider scaffold: validation job passed its generated build/test, then failed OpenClaw npm metadata lookup with HTTP 503 during npm's Degraded Package Install and Publishing incident.
The authorized failed-job retry is pending npm registry recovery. CI is not yet green; this PR remains unmerged.