Skip to content

docs + run: phase agents look for production credentials wherever the repo's docs name them; document it, and offer a deny list #1641

Open

Description

@admarble

What happens

On a repo whose scripts and docs name .env.local, vercel env and a Supabase project, sequant's spec, exec and qa agents (running, as sequant runs them, with permissions skipped) try to use those credentials to do the work the issue describes: run the audit script against the live database, check production's environment variables, verify a change on the live site. They look in the worktree, in the main checkout, in the parent directory, in the user's home, and in the Vercel CLI's token store. Nothing in sequant stops them; in our replay a sandbox-exec profile and the absence of the files did.

Evidence (sequant 2.20.0 at 31c6f8bd, 15 F runs on a private mirror of a repo that reaches production, 2026-11-02 to 2026-11-03)

A scan of every Bash call in the phase transcripts, with the call's result:

The native comparison arm on the same issues (a claude -p build session plus /code-review --fix, also with permissions skipped, given the same issue and the same Evidence lines) ran an ls .env.local-style existence check in 4 of 15 runs and nothing else on this list: no --env-file command, no live query, no Vercel call, nothing outside its worktree, no fetch of the site. The difference is the phase prompts: sequant's qa asks for each AC's Evidence to be run, and the Evidence lines name --env-file=.env.local and live checks.

Ask

  1. In the README's security section (release+docs(trust): provenance decision applied; Security-model section in README and marketplace copy, banned-phrase gated (#980 P2) #1028): say that phase agents run with permissions skipped and will use any credential the repo's own scripts name, including files outside the worktree and CLIs logged in on the host, and that a replay, a benchmark or a borrowed machine needs an OS-level sandbox.
  2. A run.denyPaths setting (or --deny-path, repeatable) that sequant turns into the driver's sandbox configuration where the driver has one, and that the qa and exec prompts receive as "do not read" so the agent does not spend turns trying. Default empty; the docs give ~/.claude/secrets.env and the main checkout's .env.local as the first entries.
  3. Smaller: the exec and qa skills could treat an Evidence command that names --env-file or a vercel/supabase CLI as "needs a human", the way qa already treats CI (qa: verdict lands as NEEDS_VERIFICATION with 'CI pending' as the only gap because /qa runs before the PR's checks finish #1630), instead of attempting it.

Why it matters

Sequant's pitch includes unattended runs. On a repo with production reach, an unattended run today is one that will try the production credentials if the issue's Evidence tells it to. In our replay every attempt was stopped by things sequant does not provide.


From a private replay study of sequant on our own repos; raw runs are not public. Filed by the owner.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions