Repository navigation
Raise the MCP plan issue cap from 20 to 50 - #3541
Conversation
create_plan, update_plan and publish_plan accepted at most 20 plan issues and implement_plan at most 20 issues per call, while Studio has no such limit. Raise the three MCP limits to 50 so MCP clients can manage larger plans. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Keep the plan dependency and graph scheduling changes from main and re-apply the 50-issue cap to the plan, publication and implement_plan schemas. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
CI failed: Full Test Suite Shard 2/4 Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Run Full Test Suite Please investigate and fix this CI failure.
Failure evidence
|
Full Test Suite ResultsValidation failed during: Test shard (shard 2).
View shard 2/4 outputDetails truncated; see the uploaded artifacts for complete failure rows and logs. |
A 50-issue plan whose items each name 20 prerequisites holds 1,376 elements, over the tenth of the budget the headroom guard allows. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within scope. The PR consistently raises MCP plan limits to 50 and adjusts the argument budget to preserve the existing headroom invariant. ✅ Consistent limits — Creation and updates share the 50-item schema; publication validation and implementation selection independently use the same limit. ✅ Boundary protection retained — Tests cover accepting 50 issues, rejecting 51 without creating a draft, and rejecting oversized arguments before tool execution. The 1 MiB request limit remains unchanged. ✅ Current validation passes — All 19 current-head checks passed, including all four test shards; the earlier failure is stale. This review is based on static analysis of the supplied diff and context. No commands or tests were run. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Extend lifecycle boundary coverageConsider adding mocked 50/51-item boundary tests for ScoreThe changes meet the stated objective, preserve the existing request protections, and have passing current-head validation. No merge-blocking regression was identified. 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
… **Added** section of `CHANGELOG.md`, placed just before the related "Local MCP servers from npm packages" entry. I only edited the changelog, and `npm run release:verify` still passes ("Release metadata is consistent for v0.9.2").
I've added the missing extension library entry to the 0.9.2 **Added** section of `CHANGELOG.md`, placed just before the related "Local MCP servers from npm packages" entry. I only edited the changelog, and `npm run release:verify` still passes ("Release metadata is consistent for v0.9.2").
The wording comes from `docs/docs/features/agent-extensions.md`. It includes everything you listed: the single library with per-item limits and **Apply automatically**, which runs it applies to, the three opt-out labels, the **Run without extensions** switch, the flat Settings lists with enable checkboxes, automation items, and OAuth with tokens held and refreshed by Core. The upgrade note is in the same entry, ends with the line that extension profiles can no longer be selected on New Task, and links to the docs page.
The docs gave a few more precise points than your comment, so the entry uses those:
- **Upgrade:** the docs add that queued New Task submissions keep their profile selection for their first task, so the entry says that too.
- **Opt-out labels:** they apply to issue tasks and pull request follow-ups only, never add items, and don't affect automation runs. The switch works by adding `disable-extensions` to the issue it creates.
- **Automation items:** automations can also add items that have **Apply automatically** off.
From the epic merge #3520, I also added these, since the 0.9.2 section had none of them:
- A run carries at most 8 MCP servers and 8 skill bundles.
- Write servers reach only automation action phases and the first task of a New Task submission that opts in.
- A Codex run with a custom operator config or a workspace `.codex/config.toml` launches without its auto-applied items instead of failing.
- New Task shows, read-only, which items will apply.
- OAuth servers that aren't connected are skipped, and a refused token refresh moves the server to **Needs sign-in** with one Inbox notification.
- Each run records its items in an `extensions.resolved` task event.
I didn't add anything for #3541 or the rest of the epic, because the section already covers them: the plan issue cap of 50 and the 15,000-element argument budget (#3541), Local package servers (#3537), and the `hono` advisory bump.
PR: #3683
Comment by: @integry (ID: 6965476127)
Model: Claude Opus 5.5
What
create_plan,update_planandpublish_planaccepted at most 20 plan issues, andimplement_planat most 20 issues per call. Studio and the planner routes have no such limit, so a plan made or split in Studio could not be updated, published or started through MCP once it passed 20 issues.This raises the three MCP limits to 50.
Changes
packages/api/mcp/toolsPlanning.ts: plan array limit forcreate_plan/update_planand forpublish_planvalidation, 20 → 50.packages/api/mcp/tools.ts:implement_planissues, 20 → 50.docs/mcp.md,CHANGELOG.md: state the limit.packages/api/test/mcpRequestBounds.test.ts: a 51-issue plan is refused by the schema and writes nothing; a 50-issue plan is saved.Unchanged: the
todoIdslimit oncreate_plan, the 1 MiB request body bound and the 10,000-element tool input budget. A 50-issue plan is well inside both bounds.Verification
npm run typecheckmcpRequestBounds,mcpDocs,mcpToolInputBudget,mcpObservableSurface,mcpWorkflows,mcpPublishPlan,mcpIntegrationpass locallyNot tested: publishing or starting a real 50-issue plan against GitHub.
Tool argument budget
After the merge with
main, each plan issue can also name up to 20 prerequisites (dependsOn), so a 50-issue plan can hold 1,376 array elements and object keys.mcpToolInputBudget.test.tsrequires every bounded tool input to stay within a tenth of the MCP tool argument budget, so this PR raises that budget from 10,000 to 15,000 elements (MCP_MAX_TOOL_INPUT_ELEMENTS). The 1 MiB request body limit is unchanged. The alternative would be to lower thedependsOnlimit to 12 per issue and leave the budget alone.🤖 Generated with Claude Code