You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
investigation(drivers): run spec and qa phases under Claude Code's auto permission mode instead of bypassPermissions #1191
Follow-up from #1135 (upstream gap review, 2026-09-24). Claude Code shipped a classifier-backed auto permission mode (--permission-mode auto) somewhere in v2.1.43–v2.1.281. Every sequant phase agent currently runs with permissionMode: "bypassPermissions" (src/lib/workflow/drivers/claude-code.ts:137), and so do the sequant-implementer and sequant-qa-checker subagent definitions (.claude/agents/*.md). spec and qa are read-heavy phases. They could run under a narrower mode, if auto mode doesn't stall unattended runs on prompts.
Question to answer first (measure, don't assume)
Does auto mode ever block or prompt in a headless Agent-SDK phase? A prompt with no TTY to answer it is a hang, which is worse than bypass. Run one real spec phase and one real qa phase under auto, and record: any denied or prompted tool calls, wall-clock time against the matcha baseline (spec 169 s, qa 281 s), and the verdict.
Acceptance criteria
AC-1: a probe report under docs/investigations/ records the two real phase runs under auto (the tool calls it denied or prompted, the wall-clock time, and the verdict) — Evidence: ls docs/investigations/auto-permission-mode-probe-*.md
AC-2: if the probe shows no stalls, spec and qa phases in the claude-code driver use auto behind a run.phases.<phase>.permissionMode setting that defaults to the current behavior; if it shows stalls, the report says so and this issue closes with no code change — Evidence: npx vitest run src/lib/workflow/drivers/claude-code.test.ts
Activity