Repository navigation
Description
Epic: graph-2026-10-freeze-b Tier: mechanical Execution: sequant_run
Problem
Phase agents do not run the user's installed claude CLI. They run through the Agent SDK query() in src/lib/workflow/drivers/claude-code.ts:130-158. package-lock.json pins @anthropic-ai/claude-agent-sdk 0.3.289, which bundles Claude Code 2.1.289 (its manifest.json version). package.json:99 declares ^0.3.289.
So none of the Claude Code fixes from 2.1.290 through 2.1.296 reach Sequant's own phase runs, whatever version the user has installed. The README's recommended Claude Code version (≥ 2.1.288) does not govern phase agents at all. Fresh npm installs of Sequant already resolve a newer 0.3.29x, so CI and users may run a different bundled CLI than this repo's lockfile.
Fixes in the gap that touch phase agents (from the 2026-10-13 upstream triage):
- remote MCP reconnect backoff (v2.1.295), which matters for
mcpAllowlistservers; .mcp.jsonservers switched off for a folder no longer started in headless runs (v2.1.296);rate_limit_eventsaying whether extra usage is on (v2.1.295), parsed inclaude-code.ts;- file-read-state fixes (v2.1.295);
disableClaudeAiConnectors/allowedMcpServersapplying to more MCP entries (v2.1.290). (Measured 2026-10-16: fix(mcp): phase agents receive the user's claude.ai connectors (Gmail, Docs) outside the #936 allowlist #1396's lever already works on 2.1.289, so fix(mcp): phase agents receive the user's claude.ai connectors (Gmail, Docs) outside the #936 allowlist #1396 does not wait on this issue; graph doc D-4.)
Plan-time probe (2026-10-16): Dependabot PR #1445 moves the lockfile to 0.3.296 (bundled CC 2.1.296). On its tree npm ci and npx tsc --noEmit both exit 0. #1445 merges first (the runner, with owner consent, before this issue launches; graph doc D-2). This issue then raises the package.json floor and adds the doc line.
Acceptance Criteria
- AC-1:
package-lock.jsonresolves@anthropic-ai/claude-agent-sdkto 0.3.296 or later, and thepackage.jsonrange floor is the same version (for example^0.3.296). Evidence:npm ls @anthropic-ai/claude-agent-sdkandnode -p "require('./package.json').dependencies['@anthropic-ai/claude-agent-sdk']"output in the PR body. - AC-2: The full test suite passes on the bumped SDK. Evidence: the PR's green
testandcanaryCI checks (phases don't run the full suite, graph doc I-5; a real phase run on the bump is smoke(graph-2026-10-freeze-b): amainbuild's phase agent has no claude.ai connectors, runs CC ≥ 2.1.296, and starts a fresh-clone worktree from the PR branch #1451's job, I-6). - AC-3: The docs say that phase agents run the SDK-bundled Claude Code, which can differ from the recommended interactive CLI version. Evidence:
grep -n "bundled Claude Code" README.mdmatches next to the recommended Claude Code version line.
Prior fixes / producers
Isolated: one producer of the phase CLI version (the lockfile's SDK entry). No prior fix on this artifact.
May touch
package.json, package-lock.json (only as npm install rewrites it for the floor change), README.md, CHANGELOG.md.
Non-Goals
- Adopting any new SDK option. This is a version refresh only (fix(mcp): phase agents receive the user's claude.ai connectors (Gmail, Docs) outside the #936 allowlist #1396 adopts its own).
- The
@hono/node-serverandzodbumps: chore(deps): bump the production-dependencies group across 1 directory with 3 updates #1445 carries them; this issue doesn't touch them. - Any edit under
plugin/,.claude/skills/ortemplates/skills/(plugin freeze).
Activity
admarble commentedon Oct 16, 2026
Runner context (graph-2026-10-freeze-b, tracker #1452), for the exec and qa phases:
npm test/npx vitest runwith no file filter). Six phase agents run at once and the MCP phase wall is 30 minutes (graph doc I-5). Full-suite evidence comes from CI. Run only the targeted test files, in the foreground, undertimeout 600, after a WIP commit. Do not userun_in_backgroundor Monitor.plugin/,.claude/skills/ortemplates/skills/(plugin freeze, I-1).package-lock.jsononmainalready resolves@anthropic-ai/claude-agent-sdk0.3.296. Check that withnpm ls @anthropic-ai/claude-agent-sdkbefore regenerating anything.admarble commentedon Oct 16, 2026
Complexity: Simple (3 ACs, 2 directories)
AC Quality Check
Evidence:already passes onmain(npm ls @anthropic-ai/claude-agent-sdkprints 0.3.296 since chore(deps): bump the production-dependencies group across 1 directory with 3 updates #1445, 14a49cd). Thepackage.jsonhalf fails today (^0.3.289), so the AC as a whole still gates the work. ✅test+canary). Not a gate test; no mutation record needed.grep -n "bundled Claude Code" README.mdreturns nothing today, so it fails now and passes only after the edit. ✅Scope Assessment
Non-Goals: present in the issue (no new SDK options, no
@hono/node-server/zodbumps, nothing underplugin/,.claude/skills/,templates/skills/).Verdict: ✅ SCOPE_OK
Acceptance Criteria
AC-1: lockfile resolves SDK ≥ 0.3.296 and the
package.jsonfloor matchesVerification: Integration Test (CLI output)
Scenario: Given
mainafter #1445 → Whenpackage.jsonis changed to^0.3.296andnpm install --package-lock-onlyruns → Thennpm lsshows 0.3.296+ andrequire('./package.json').dependencies['@anthropic-ai/claude-agent-sdk']is^0.3.296.Assumptions: lockfile already at 0.3.296 (verified now);
npm installmust not rewrite unrelated lockfile entries (including thelibcdiff noise).AC-2: full suite passes on the bumped SDK
Verification: Integration Test (CI)
Scenario: Given the PR → When CI runs → Then
testandcanaryare green.Assumptions: exec/qa do not run the full suite (runner comment); #1445's probe already showed
npm ciandtsc --noEmitpass on 0.3.296.AC-3: docs say phase agents run the SDK-bundled Claude Code
Verification: Manual Test (grep)
Scenario: Given README Prerequisites (line 33 recommends CC ≥ 2.1.288, line 38 explains why) → When a "bundled Claude Code" sentence is added next to it → Then
grep -n "bundled Claude Code" README.mdmatches within a few lines of that version line.Implementation Plan
Phase 1: Floor bump
package.json:99:^0.3.289→^0.3.296.npm install --package-lock-only; checkgit diff package-lock.jsontouches only the rootpackages[""]range for the SDK. Discard unrelated hunks (libc).Phase 2: Docs
README.md, in the Prerequisites note after line 38: add one sentence. Phase agents run through the Agent SDKquery()and use the Claude Code bundled with@anthropic-ai/claude-agent-sdk(2.1.296 at 0.3.296), which can differ from the interactive CLI you installed. The recommended version above applies to your interactive CLI and hooks.CHANGELOG.mdunder[Unreleased]→### Changed(add the heading if absent): floor raised, with the reasons listed in the issue (chore(deps): phase agents run the SDK-bundled Claude Code 2.1.289 — bump @anthropic-ai/claude-agent-sdk to ≥ 0.3.296 #1440).Phase 3: Verify
npx tsc --noEmit. Paste the AC-1 output in the PR body. Leave the full suite to CI.Design Review
package.jsonrange plus the README Prerequisites note. No code change.git log -S'claude-agent-sdk' -- package.jsonshows routine bumps, no recurrent bug fix on this artifact (the issue states the same). No stop.Feature Quality Planning
All standard checks pass. Notable:
plugin/,.claude/skills/,templates/skills/.Open Questions
Recommended Workflow
Phases: exec → qa
Quality Loop: disabled
Reasoning: mechanical dependency floor plus docs; no Unit/Integration test ACs needing testgen, no UI. exec and qa must not run the full suite (runner comment).
Label Review
Current: enhancement, graph-2026-10-freeze-b
Recommended: keep, add
plannedReason: no change in scope.
Quality Loop: won't auto-enable (SCOPE_OK).
admarble commentedon Oct 16, 2026
QA Verdict: NEEDS_VERIFICATION
AC coverage: 2/3 met
Gaps:
Suggestions:
manifest.json".Pending ACs:
Needs human review:
docs(#1440): CHANGELOG entry under [Unreleased]; README says where a …
chore(#1440): raise the claude-agent-sdk floor to ^0.3.296 (#1463)