Skip to content

smoke(graph-2026-10-freeze-b): a main build's phase agent has no claude.ai connectors, runs CC ≥ 2.1.296, and starts a fresh-clone worktree from the PR branch #1451

Closed

Description

@admarble

Epic: graph-2026-10-freeze-b Tier: judgment Execution: runner session (graph doc I-6)

Problem

MCP sequant_run phases run the npm-pinned server (2.19.0, SDK 0.3.289), so no phase in this graph can observe its own fix (graph doc I-6). #1396's AC-1 and #1440's real-phase check need a phase run from a build of main after the merges. #1405's fresh-machine path needs a clone with no local branch.

Procedure

  1. After chore(deps): phase agents run the SDK-bundled Claude Code 2.1.289 — bump @anthropic-ai/claude-agent-sdk to ≥ 0.3.296 #1440, fix(mcp): phase agents receive the user's claude.ai connectors (Gmail, Docs) outside the #936 allowlist #1396 and fix(worktree): first creation on a fresh machine ignores origin/<branch>, and a recreated PR worktree is recreated again on every run (#1380 follow-up) #1405 merge: on a scratch branch off main, apply a local, uncommitted observability patch to drivers/claude-code.ts that writes each system/init message's mcp_servers and claude_code_version to a file (the investigation(run): load phase skills from the installed package via the SDK plugins option, so adopters stop committing ~20k lines of skills #1388 spike's method; nothing in main logs them). Then npm run build && npm pack (no prepack script; build first). Record the main commit and the patch diff in the report. The patch is never pushed or merged.
  2. Install the tarball into the private fixture repo used by investigation(run): load phase skills from the installed package via the SDK plugins option, so adopters stop committing ~20k lines of skills #1388 and smoke(graph-2026-10-freeze): re-run the stranger smoke test on a main build after #1386, #1380 and #1387 #1389 (named by issue number only, I-7).
  3. On an account with claude.ai connectors, run one phase (sequant run <fixture issue> --phases spec) launched via launchctl (I-2).
  4. On a fresh clone of the fixture repo (no local branches), with an open PR branch pushed from elsewhere, run sequant run <that issue> --phases qa.

Acceptance Criteria

  • AC-1: The phase's system/init lists no mcp_servers entry with source: "claudeai", and the sequant server is listed. Evidence: the init server list from the patch's dump file, pasted in the report comment on this issue with the main commit, the patch diff and the tarball name.
  • AC-2: The same init message has claude_code_version 2.1.296 or later. Evidence: the field quoted in the report.
  • AC-3: On the fresh clone, the worktree's HEAD equals origin/<branch> before the phase starts. Evidence: git -C <worktree> rev-parse HEAD origin/<branch> output in the report, both lines equal.

Non-Goals

Activity

  1. added
    graph-2026-10-freeze-b
    on Oct 16, 2026
  2. admarble commented on Oct 16, 2026

    @admarble
    ContributorAuthor

    #1451 smoke report: main build after #1440, #1396 and #1405

    Build: main @ 9f1fb3fdc9e5174cc92da5b099e046c65678adba, plus the local, uncommitted observability patch below. npm run build && npm pack produced sequant-2.19.0.tgz (the version string is unchanged; the tarball is this main build). The patch was never committed or pushed, and the scratch worktree is removed.

    Patch diff (uncommitted)
    diff --git a/src/lib/workflow/drivers/claude-code.ts b/src/lib/workflow/drivers/claude-code.ts
    index 9beb9f25b..281a7c9d9 100644
    --- a/src/lib/workflow/drivers/claude-code.ts
    +++ b/src/lib/workflow/drivers/claude-code.ts
    @@ -167,6 +167,20 @@ export class ClaudeCodeDriver implements AgentDriver {
           for await (const message of queryInstance) {
             if (message.type === "system" && message.subtype === "init") {
               resultSessionId = message.session_id;
    +          // #1451 smoke only (uncommitted): dump the init message.
    +          if (process.env.SEQUANT_INIT_DUMP) {
    +            const m = message as unknown as Record<string, unknown>;
    +            (await import("node:fs")).appendFileSync(
    +              process.env.SEQUANT_INIT_DUMP,
    +              JSON.stringify({
    +                at: new Date().toISOString(),
    +                cwd: process.cwd(),
    +                claude_code_version: m.claude_code_version,
    +                model: m.model,
    +                mcp_servers: m.mcp_servers,
    +              }) + "\n",
    +            );
    +          }
             }
     
             // Capture structured rate-limit info (#732). Only retain

    Fixture: fresh clones of the #1388 fixture repo. I installed the tarball with npm install --no-save and ran the CLI as node node_modules/sequant/dist/bin/cli.js. Inside the fixture, @anthropic-ai/claude-agent-sdk resolved to 0.3.302, the newest version in the ^0.3.296 range. Each run was launched by a one-shot LaunchAgent (launchctl bootstrap, RunAtLoad true, KeepAlive false, booted out after it exited), outside any Claude session (I-2). The account has claude.ai connectors: run C in #1388 listed claude.ai Gmail and claude.ai Claude Docs in this same init list.

    AC-1: no claude.ai connectors; sequant server present: Met

    sequant run <fixture issue> --phases spec exited 0 (spec passed). This is the init dump's server list, verbatim:

    [{"name":"sequant","status":"connected","source":"dynamic"}]

    The list has no entry with source: "claudeai", and sequant is connected. The qa run in AC-3 printed the same list: [{"name":"sequant","status":"connected","source":"dynamic"}].

    AC-2: claude_code_version ≥ 2.1.296: Met

    claude_code_version: 2.1.302
    

    The version is 2.1.302, from the SDK the ^0.3.296 floor resolved to. The qa run's init gave the same value.

    AC-3: on a fresh clone, the worktree HEAD equals origin/<branch> before the phase starts: Met

    The PR branch feature/<n>-… was committed and pushed from a different clone, and a throwaway fixture PR was opened for it. On a new clone, git branch --list showed only main. Then sequant run <that issue> --phases qa ran. I captured this right after sequant created the worktree, before the phase's init message was written:

    $ git -C <worktree> rev-parse HEAD origin/<branch>
    0d6ff6ec9e9dcf34800631a9ac39e092395c1bb7
    0d6ff6ec9e9dcf34800631a9ac39e092395c1bb7
    

    origin/main on that clone is d58649b13a31e7bd1a398ac7646ba60dbabdb192, so the worktree started from the PR branch, not from the base. The qa phase passed (exit 0).

    Observed on the way (not in AC scope)

    • The qa-only run printed PR body for #<n>: exec output (0 chars) has no Summary or mutation markers; using placeholder, but the fixture PR's existing body was left unchanged when I checked afterwards. The warning's wording is misleading for a qa-only run on an existing PR; it doesn't affect any AC.
  3. admarble commented on Oct 16, 2026

    @admarble
    ContributorAuthor

    All three ACs met; see the smoke report above (#1451 (comment)). Closed with owner consent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    graph-2026-10-freeze-b

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions