Skip to content

Releases

v3.0.0 - Breaking Changes

Choose a tag to compare

@admarble admarble released this 18 Nov 03:06
63d74cb

What's Changed

Sequant 3.0 removes run surfaces nobody used and makes the run loop stop where it used to escalate. It's published to the next dist-tag first; latest follows after a soak.

Breaking Changes

  • Removed run flags. These now error as unknown options:
  • Removed settings. A settings file that still sets one of run.modelLadder, run.effortEscalation or run.fullQa loads with one warning naming the removal. The MCP sequant_run tool ignores a fullQa argument.
  • Migration:
    • Drop those flags and keys.
    • sequant ready still forces full-weight QA.
    • --chain still rebases each successor onto its predecessor.
    • For the old label-driven UI test phase, name it (--phases spec,exec,test,qa) or use run.autoDetectPhases.
  • No label adds the test phase to a phase list you chose (#1631, #857).

Features

  • The quality loop halts on a second consecutive AC_NOT_MET (#1646). It no longer climbs a model ladder.
  • Evidence that reaches outside the worktree is handed to a person (#1652, #1681, #1688). That's an env file, a production CLI or a live URL. Spec, exec, qa and loop are told not to run it, and the run summary prints AC-N needs a person: `<command>` .
  • --chain and multi-issue runs print an "experimental" warning with their measured success rates (#1651).

Bug Fixes

  • A spec's SPEC_DIVERGENCE marker now stops the run. It was dropped because it carried no timestamp (#1691).
  • The ready gate's docs no longer claim a second-look catch rate (#1650), and the marketplace README links the renamed section (#1680).

See CHANGELOG.md for the full list.

Full Changelog: v2.20.0...v3.0.0

v2.20.0 - Honest PRs, skills-only installs stay skills-only

Choose a tag to compare

@admarble admarble released this 19 Oct 01:38
12aa658

Added

  • sequant merge --check warns about open PRs outside the batch that touch the batch's files (#1454). A new external-pr-overlap check lists each open PR on origin whose changed files intersect the batch's, as one warning naming the PR number, head branch and shared paths. PRs whose head branch is in the batch are excluded. The warnings never change the batch verdict or the exit code. When gh is unavailable or the PR list call fails, the report shows one Open-PR overlap check skipped: <reason> line. The file lists come from a new GitHubProvider.listOpenPRFilesSync, and assess-collision-detect.ts gains formatOpenPrCollisionWarnings, which /assess will call once the plugin freeze lifts. See ADR-0016.
  • Standalone sequant ready records its run to .sequant/metrics.json (#929). One MetricRun per gate pass with source: "ready", the policy in flags, success/failed from the gate result, qaIterations, tokensUsed and the effort/model escalations. Recording is best-effort: a write failure warns on stderr and leaves the exit code and --json stdout alone. sequant stats reports bySource counts, and headline averages cover run records only. Records with no source read as run; no migration.
  • The main ruleset payload uses a merge queue instead of strict up-to-date (#1350). scripts/ruleset-main.sh --print now drops strict_required_status_checks_policy, adds a squash merge_queue rule and lists canary beside test (the live ruleset already required both). ci.yml runs on merge_group so queued PRs get their checks. The live ruleset is unchanged: applying the queue waits on #1368, where /release learns to wait for a queued merge before tagging.
  • /exec and /qa run the tests a branch affects instead of the full suite (#1349). npx vitest run --changed origin/main (jest: --changedSince), plus AC Evidence: test files, changed test files and tests that mention a changed file. Stacks with no affected mode keep the full command (resolveAffectedTestCommand). CI still runs everything.
  • gitleaks scans every PR for the leak classes generic scanners miss (#1352). .github/workflows/gitleaks.yml runs a pinned, checksum-verified gitleaks with .gitleaks.toml on pull_request and merge_group, and fails when an entire/* ref exists on origin. Project rules flag real home paths (/Users/<name>/, /home/<name>/) and Claude session links and ids; placeholder names are allowlisted by name. scripts/gitleaks-precommit.sh is an optional local gate that also loads an untracked .gitleaks.local.toml. GitHub secret scanning, push protection and Dependabot security updates are now enabled on the repo. The committed eval results and two test files no longer carry a real home path or session id. See docs/reference/secret-scanning.md.
  • /qa enforces a follow-up ledger, and the PR body lists QA's follow-ups (#1249). Every item an earlier phase deferred (spec's Open Questions and out-of-scope notes, exec's PR-body follow-ups, QA's own document findings) must end filed #N, fixed in this PR or dropped: <reason>. An unresolved item caps the verdict at AC_MET_BUT_NOT_A_PLUS through a new §7 gate, followup_ledger_status, in both Standard and Simple Fix mode. QA writes each document finding's resolution as a suffix on its description, and sequant run's PR body renders the latest QA pass's document findings as a ## Follow-ups checklist; a finding with no resolution reads unresolved. The sibling-site scan now names the defect class it searched (e.g. "every git call without -C <target>") rather than searching for the changed code, and an AC that promises end-to-end delivery (e.g. "surfaces in the PR body") can no longer be marked MET with that path under "Not tested": QA runs it or marks the AC PENDING. qa/SKILL.md did not grow. See ADR-0007.
  • A PR from a sequant run that QA has not reviewed says so (#1246). The automated PR body carries one line, > **QA has not run** — phases run: spec, exec. …, until QA has reviewed the latest exec: a qa pass after the run's last exec, or, in a run with no exec, a qa an earlier run completed (--resume past qa). The post-QA update replaces it with the verdict note, or drops it for READY_FOR_MERGE, and a later qa-only run on the same PR removes it too. A run that skips qa (--phases exec, MCP phases: "spec,exec") or stops before it keeps the line. No draft PRs; the PR-creation gate is unchanged. The MCP sequant_run phases description no longer offers 'spec,exec' as a way to "skip QA".

Changed

  • update refuses on a skills-only install (#1482). It read no install scope, so it wrote hooks, agents and settings.json over an install that chose skills only. On a partial scope it now writes nothing, exits non-zero and names sequant sync --only skills. Full installs are unchanged. ADR-0015 amended.
  • The @anthropic-ai/claude-agent-sdk floor is ^0.3.296 (#1440). Phase agents run the Claude Code bundled with the SDK (2.1.296 at 0.3.296), not the installed claude, so a fresh install can no longer resolve a bundle older than the 2.1.290–2.1.296 fixes (remote MCP reconnect backoff, .mcp.json servers switched off for a folder, rate_limit_event extra-usage flag, file-read-state, disableClaudeAiConnectors / allowedMcpServers coverage). The README Prerequisites note says which Claude Code a phase agent runs.

Removed

  • Dead src/lib/plugin-version-sync.ts module and its test (#1325). Nothing in production called checkVersionSync; CI's Check version sync step does the check. docs/internal/plugin-updates.md now names that step.

Fixed

  • sequant_run no longer reports another run's issues and verdict when its own run log is missing (#1515). A runId lookup miss fell back to the newest log in the time window, so parallel runs whose log was never written showed a sibling run's result. resolveRunLog now retries the exact runId lookup (3 × 200 ms) and returns null on a miss; the response carries runLogMissing, requestedIssues and a note saying the result is not a parsed log. The no-runId path is unchanged.
  • new-feature.sh reuses the issue's local branch when no worktree has it (#1491). It printed advice (one option was git branch -D) and exited 1, while ensureWorktree checks the branch out as is. It now runs git worktree add <path> <branch> with no fetch or reset, like the TS side, and keeps a recorded sequantBase. The existing-worktree lookup matches the branch exactly, so feature/7-x no longer matches feature/7-xy.
  • doctor Skills Version check warns on content drift (#1490). At a matching version it always passed with Up to date, while the pre-flight banner in the same run reported differing files. It now warns with the file count and the banner's remedy, which both read from one function.
  • doctor no longer sends a skills-only install to init --force (#1489). A missing AGENTS.md raised a warning naming sequant init --force, which installs hooks, agents and settings the install skipped. On a partial scope the check now passes and says AGENTS.md is outside the install. Full installs keep the warning.
  • sequant merge --check works on a repo whose default branch is not main (#1484). The combined-branch test, each branch's filesModified diff, overlap detection and the residual pattern scan all hard-coded origin/main. On a master repo the diffs failed, their callers read the empty output as "no changes", and the overlap checks (including #1454's external-PR overlap) reported clean. runMergeChecks now resolves origin/<default branch> once and passes it to all four. A failed filesModified diff is no longer an empty list: the report carries an error finding for that branch naming the git command, and the batch is BLOCKED. The worktree path of resolveBranches also uses the resolved base instead of main.
  • Plain sync and doctor no longer steer a skills-only install into a full one (#1485). A plain sync on a manifest with groups: ["skills"] keeps that scope: it counts drift and writes only .claude/skills/, and widening is sequant init. doctor's Skills Version check names sync --only skills, and doctor advises the "groups": ["skills"] hand edit for a legacy manifest with no hooks, settings or agents. See ADR-0015.
  • sequant run reuses an issue's existing branch whatever the issue's title (#1487). The branch was looked up by a name rebuilt from the title. A failed gh issue view (title Issue #N) or a retitled issue therefore cut a second branch, feature/N-issue-n, from the base, and QA reviewed the base instead of the PR. ensureWorktree now finds the issue's branch by number: a local feature/N-* (which covers worktrees) or origin/feature/N-*. One match is reused. With several matches, the one the title names is used. Otherwise no worktree is created and every candidate is listed. When the title could not be read, a non-dry run now prints a warning that names the issue and the gh error.
  • new-feature.sh starts from origin/<branch> when the remote already has the issue's branch (#1486). It always cut the worktree from origin/<base>, so a pushed PR branch lost its commits and a push from the new worktree diverged. The script now ports resolveBranchStartRef: it uses origin/<branch> unless that branch is merged into the base (merge commit or squash), and --print-start-ref <branch> <base-ref> exposes the result for the parity test.
  • An issue whose worktree could not be created fails, and no longer runs its phases in the main checkout (#1469). When git worktree add failed, sequant run dropped the issue from the worktree map and ran spec, exec and QA in the main checkout on whatever branch was checked out there. Under worktree isolation the issue now fails before any phase runs, and its abortReason and ...
Read more

v2.19.0 - Slim plugin install, working install docs

Choose a tag to compare

@admarble admarble released this 02 Oct 03:13
f41af73

Added

  • /spec stops on recurrence and lists producers; spec can halt the run before exec (#1250). Design Review Q3 now counts prior fixes (git log -S plus an issue search): ≥2 is a stop, not a precedent, and the plan either fixes the class or records deliberately local, reason: …, class tracked in #N. The Simple tier keeps this count. A new Q5 (Standard/Complex) lists every producer and consumer of the artifact; with ≥2 producers the plan collapses them or adds a parity test on every field. When Q3 or Q5 contradicts the issue's prescribed lever, spec emits SPEC_DIVERGENCE in its SEQUANT_PHASE marker, and sequant run now halts before exec with the same evidence bundle the phase loop prints (#995) — previously the spec path never read the field. memory/constitution.md §3 adds "one producer per artifact". See ADR-0005.
  • Configurable worktree root (#1199). run.worktreeRoot in .sequant/settings.json, or the SEQUANT_WORKTREE_ROOT env var (which wins), sets where issue worktrees are created, for both sequant run and scripts/new-feature.sh. A relative value resolves against the main repo root; the default stays ../worktrees. new-feature.sh reads the setting with a JSONC-tolerant text match (a //-commented key is ignored), and its SEQUANT_NPM_CACHE directory follows the root. The pre-tool.sh commit warning and quality-checks.sh's build comparison now detect a worktree with git rev-parse --git-dir vs --git-common-dir instead of matching worktrees/ in the path; the hook also checks the command's directory rather than its own.
  • The run log records which model and which sequant produced each verdict (#1198). Each phase entry now has model, the model the phase actually ran on (from the driver's modelUsage). For a phase with a role: policy it also has requestedModel, the role: string as configured. The run log's top level has sequantVersion and driver. The top-level model in metrics.json now comes from the first phase that reported a resolved model; it falls back to ANTHROPIC_MODEL ?? "opus" only when no phase reported one. All the new fields are optional, so older logs still parse.
  • sequant init --manifest-only and sequant sync --only skills (#1209). init --manifest-only writes just .sequant-manifest.json and exits — no directories, templates, or settings — for the case where sequant run's only real requirement is that one file; a second run leaves an existing manifest untouched. sync --only skills restricts both the apply and the --dry-run preview to .claude/skills/** plus the manifest, skipping the .mcp.json pin, AGENTS.md, the opencode shim, scripts/dev, and .claude/settings.json/agents/hooks/memory entirely. run's manifest-missing message now prints the minimal manifest shape (version, stack, installedAt, files: {}) and names init --manifest-only instead of sending the user through the full init flow. The skills pre-flight's remedy and run-orchestrator's main-checkout message both now recommend sequant sync --only skills, replacing the wider (and, for this case, inaccurate) sequant sync recommendation from #1201.
  • sequant_run's per-issue result carries the qa phase's summary (#1200). Each issue in the structured response now includes acMet, acTotal, gaps and findings from the qa phase's condensed summary, for every verdict — not just on success. findings and gaps are each capped at 10 entries, and each gap and each finding's description/evidence at 300 characters. gaps repeats the findings' descriptions, so it needs the same caps. If a many-issue run is still over the 64KB MCP limit, findings and then gaps are dropped from the last issue backward; acMet, acTotal and the verdict always stay. Any cap or drop sets truncated: true. An MCP caller that gets NEEDS_VERIFICATION or AC_NOT_MET no longer needs a second tool call to learn why.
  • Opt out of a PR auto-closing its issue (#1197). run.prIssueLink (default "closes") controls whether sequant run's automated PR path emits Fixes #N or Refs #N; an issue carrying the configurable run.prNoCloseLabel (default no-autoclose) always gets Refs #N regardless of the setting. In refs mode the PR body is scrubbed for any other <closing verb> #N (or owner/repo#N) reference to the same issue, tables included, since GitHub parses a closing keyword anywhere in the body. /exec's manual PR template and /merger//fullsolve's pre-merge checks (query closingIssuesReferences, halt naming the issue) follow the same rule.
  • Native engineering rubrics as skill references (#1135). /qa §2 points to qa/references/review-dimensions.md for the security and performance items §2e does not pattern-match (XSS, CSRF, command injection, authn/authz, insecure deserialization, path traversal, SSRF; allocations, hot-path complexity, missing indexes, unbounded queries/loops, non-timer resource leaks). /improve ranks candidates with improve/references/tech-debt-scoring.md, scored (Impact + Risk) × (6 − Effort). /testgen consults testgen/references/testing-pyramid.md when the spec names no test level. docs/adr/ adds an ADR convention, and /spec asks for an ADR in the exec PR when the plan chooses between designs. Plain markdown, portable to every driver; qa/SKILL.md and exec/SKILL.md did not grow.

Changed

  • /spec flags vacuous Evidence: (#1203). Spec now runs each command-shaped Evidence: against the base branch before accepting the AC. A check that already passes on unchanged code (a grep matching existing text, a test that exists today) gates nothing, so spec flags it and tightens it until it fails today. This is the AC-level form of the constitution's mutation-verification rule.
  • TodoWrite is gone from the exec, fullsolve, loop and test skills (#1135). Under the sonnet/opus pins, which resolve to Sonnet 5 and Opus 5.5, Claude Code no longer offers the tool, and CLAUDE_CODE_ENABLE_TODO_TOOLS=1 adds TaskCreate/TaskUpdate instead, not TodoWrite. /test's plan is now a markdown checklist.
  • /release pre-flight validates the plugin manifests (#1135). It runs claude plugin validate on .claude-plugin/plugin.json and .claude-plugin/marketplace.json separately, because claude plugin validate . checks only the marketplace manifest, and stops the release on an error. docs/reference/run-command.md lists what the opus/sonnet/haiku/fable aliases resolve to as of Claude Code 2.1.283.
  • /release recounts the "At a Glance" table and explains publish lag. Step 4.6 now carries the exact commands for each count (the table had drifted to 57 test files against 343), and Step 9 says a publish npm answered with 202 can take minutes to appear, how to read ~/.npm/_logs for the real argv, tag and PUT status, and how to poll the registry directly.
  • A bare npm publish now lands on the next dist-tag (#1184). package.json sets publishConfig.tag: next, so latest moves only through the deliberate /release --soaked promotion. A bare publish moved latest straight past the soak on both 2.17.0 and 2.18.0. An explicit --tag (e.g. --tag beta) still wins. Gate-tested by running the real npm publish against a local registry.

Fixed

  • Interactive sequant init no longer crashes with Prompt type "list" is not registered (#1256). inquirer 14 removed the list prompt; init's prompts now use select.
  • sequant doctor and sequant run --dry-run stop passing first runs that will fail (#1257). doctor fails, instead of passing, outside a git repository; subdirectories of a repository still pass. It also warns when the repository has no GitHub remote, and when .claude/skills/{spec,exec,qa} exist on disk but aren't committed, since phase worktrees are checked out from git and won't see them. run --dry-run reports issues as "planned · nothing executed" instead of "✔ passed", and on an issue number that doesn't exist it names the issue and exits 1 instead of planning it.
  • The CLI and docs no longer contradict each other on a first run. sync and update no longer claim that plugins auto-update; they show the two-step plugin install that works (/plugin marketplace add sequant-io/sequant, then /plugin install sequant@sequant). --help drops internal issue numbers. The README scopes "never merges" to sequant run (/fullsolve merges only with --auto-merge). The docs index gains a "Features: when to use what" section.
  • sequant run worktrees record their exact base ref, and the exec guard and the rebase before the PR read it (#1234). resolveBaseRef read branch.<b>.sequantBase, which only the legacy new-feature.sh writes, so for every sequant run worktree the exec guard compared against origin/main. When --base was ahead of main, the base's own commits counted as commits ahead, and the guard's none/uncommitted branches (#534/#879) never fired: exec phases that left their work uncommitted passed. Worktrees now record branch.<b>.sequantBaseRef, which is read first and must resolve to a commit. The legacy key and the origin/main fallback are unchanged.
  • The plugin marketplace now ships a slim plugin/ folder instead of the whole dev repo (#1265). .claude-plugin/marketplace.json's source was "./", so every install and update ran npm ci over this repo's full package.json/lockfile and wrote a ~700 MB node_modules that nothing in the plugin reads — the hooks are shell, the MCP server arrives through a pinned npx, and nothing references node_modules, dist/, scripts/, bin/ or package.json. source now points at ./plugin, a generated folder with no package.json holding only what loads at runtime: skills/, hooks/ (+ hooks.json), .mcp.json, memory/constitution.md, README.md and LICENSE. plugin/hooks/ and plugin/skills/ are generated f...
Read more

v2.18.0 - Per-phase agents and in-place checkout

Choose a tag to compare

@admarble admarble released this 26 Sep 18:20
4fc0fb3

What's Changed

Features

  • Per-phase agent selection — run.phases.<phase>.agent runs one phase on a different driver (e.g. codex for exec, Claude Code for qa); roles and ladder rungs resolve per phase, and doctor checks every driver the run uses (#1150)
  • In-place checkout mode — SEQUANT_CHECKOUT=in-place lets /exec, /qa, /loop and /testgen work on a branch in the current clone instead of a worktree; opt-in only (#1136)

Bug Fixes

  • Writers never follow a symlink: init/sync/update replace a link at a destination they write instead of overwriting its target, and a directory in a file's place is named and skipped instead of crashing (#1122), .mcp.json and client MCP configs included (#1160)
  • sync settles when node_modules holds an older sequant, and update no longer rewrites scripts/dev links every run — it tells you to run sequant sync instead (#1159)
  • new-feature.sh and sequant run derive the same branch name for long issue titles; --print-branch previews it (#1145)
  • sequant init --yes no longer replaces an unparseable .mcp.json (#1123)
  • role: references and ladder rungs resolve against the --agent driver when it overrides run.agent (#1150)
  • parseQaVerdict records the final verdict heading, not the first mention (#1119)
  • run.codex.networkAccess no longer warns as an unknown settings key

Skills

  • /spec states the AC rules the tooling enforces (one line, Evidence:, Non-Goals); /verify shows output before asking; /exec scopes formatting to your diff (#1165)
  • /exec warns that doc-gate tests are tautologies too (#1144)
  • /qa caps the full suite under the orchestrator; pre-tool.sh honors a leading cd in any command segment

Maintenance

  • Upstream-assessment workflow lands its report via a GitHub App PR, with label pre-flight, dedupe and a 50-release-window guard (#1153, #1179)
  • Unused release.yml workflow removed (#1162); test fixtures no longer write outside tmp (#1141); shallow-clone fixture_commit gate fix (#1140)
  • Dependencies: vitest 5, boxen 9, zod 4.6, claude-agent-sdk 0.3.280 and others — no change to the Node >=22.13.0 floor

Full Changelog: v2.17.0...v2.18.0

v2.17.0 - Merge gate on main, downstream canary, driver conformance, hook golden corpus

Choose a tag to compare

@admarble admarble released this 21 Sep 00:45
ad499b5

Fixed

  • sequant init on an initialized project no longer replaces a hand-written AGENTS.md (#1098). init wrote the generated file unconditionally, so init --agent codex --yes erased a user-owned AGENTS.md that sync would have preserved (#990). It now applies the same rule as sync — only an unmodified sequant-marked file is regenerated, anything else is reported preserved and replaced only by --force. Found by the new downstream canary; the writer-state matrix (#1097) had pinned the four cells as tracked defect #1123 and now expects them preserved.

  • Codex usage-limit turn.failed is now a typed error (#1087). CodexDriver classified every turn.failed as a generic SequantError, so a quota-exhausted phase looked like any other failure: the -Q quality loop re-ran into the same limit and --auto-wait could not engage. classifyCodexTurnFailure maps the usage-limit text to BillingError (reset beyond a fixed 7-day horizon, past, or unparseable; resetsAtText and resetsAt in metadata), to a RateLimitError with resetsAt when the reset is within the horizon, and throttle wording (rate limit exceeded, 429, too many requests) to a retryable RateLimitError. Anything else keeps SequantError with code turn-failed.

  • The pre-PR sync merges origin/main into a branch that is already pushed instead of rebasing it (#1069). Rebasing rewrote pushed SHAs and could only be landed by force-push. rebaseBeforePR now merges when the branch has an upstream other than the base ref (a fresh worktree add -b … origin/main branch tracks origin/main and still rebases), aborts the merge on conflict, and prints merged origin/main or rebased onto origin/main.

  • A failing QA verdict (AC_NOT_MET) is now posted to the issue (#1070). postQaVerdictComment was gated on result.success, but AC_NOT_MET is reported as a phase failure, so the one review that blocks a merge left no comment — its findings lived only in the rotating, gitignored .sequant/logs. The gate is now result.verdict alone: a verdict is only set once one parsed, so turn-capped and unparseable-verdict phases still post nothing (#964 AC-4). Each AC_NOT_MET round in a quality loop now posts its own comment.

  • parseQaSummary counts checklist- and bold-prefixed AC lines, and the QA verdict comment no longer prints AC coverage: 0/N met under a passing verdict (#1073, #1095). A checklist-shaped report (- [x] **AC-1**: …) matched no table row and parsed as 0/1 met under an AC_MET verdict. Checklist lines now count (checkbox = MET; a table row wins on a duplicate id), and buildQaVerdictComment omits the count line when the parser found no counts or acMet === 0 under READY_FOR_MERGE/AC_MET*.

Added

  • Golden corpus for pre-tool.sh (#1094). __tests__/fixtures/hook-corpus.jsonl records the exit code and block reason the hook gives every command form it has been asked to judge (the existing suite, the hook's own block log, and Claude Code transcripts, secrets and home paths redacted). __tests__/hook-corpus.integration.test.ts replays it through all three hook copies, so a changed verdict fails until the snapshot is updated in the same PR. npx tsx scripts/hook-corpus.ts --diff <ref> prints only the verdict changes against a ref; --harvest adds new commands. The exec skill now requires listing changed verdicts under Hook verdicts changed: when pre-tool.sh is edited.

  • CI canary job: a downstream fixture project on every PR (#1098). __tests__/canary/downstream.integration.test.ts does a real npm install of the previous minor release, runs its init, customizes the project the way real ones are (constitution, .claude/settings.local.json matcher group, hand-written AGENTS.md, tuned .sequant/settings.json, stale ^1.20.0 devDependency), then drives the PR's build through sync --dry-run, sync, init --agent codex --yes and update. It asserts dry-run decisions equal the files that changed, every customization survives byte-for-byte, no {{PLACEHOLDER}} lands under .claude/, doctor exits 0, and a real MCP initialize over stdio from the fixture's cwd — with the stale local node_modules/sequant present — reports the PR's version (the #1084 regression test). It runs in a new canary vitest project (npm run test:canary) that npm test excludes, so the required test check never depends on the npm registry.

  • /release publishes to the next dist-tag first and refuses latest without --soaked (#1098). Step 9 now runs npm publish --tag next; new Step 9b prints the soak checklist and only runs npm dist-tag add … latest when --soaked was passed. Pinned in all three skill copies by release-skill-soak.test.ts.

  • Driver conformance suite (#1096). src/lib/workflow/drivers/__tests__/driver-conformance.test.ts enumerates every registered driver from the registry (listDriverNames()) and checks six contract items per driver: commit inside the sandbox, network, typed error mapping, env injection, structured outcome, and skill loading. The Codex probes run the real codex sandbox with the driver's own writable roots. docs/guides/writing-an-agent-driver.md states the contract for new drivers. Gaps in the aider and opencode drivers are tracked in #1115.

  • Writer state-matrix tests (#1097). src/lib/__tests__/writer-state-matrix.test.ts runs init, sync and update (each with and without --force, plus --dry-run for the latter two) against nine destinations in seven starting states (absent, sequant-owned, user-modified, marker + changed body, local symlink, foreign symlink, directory) on a real temp project, and asserts every dry-run prints the decision its apply run acts on. It pins three writer defects instead of fixing them: symlink write-through (#1122), init replacing a user-modified AGENTS.md (#1123), and a raw EISDIR crash on a directory at a template path (#1124).

  • The ownership gate's side (b) now registers every writeFile( site individually (#1106). #1090's scan keyed sites by enclosing function and matched await writeFile( only, so a second write to a new destination inside an already-registered function, a void writeFile(...), or a writer declared as const foo = async () => {…} (which inherited the previous function's key) all passed silently. src/lib/ownership-gate.ts scans every writeFile( call, attributes it to its innermost named function by brace scope, and keys the registry by file#function#destination-expression; a test cross-checks the site count against a naive count so a scanner slip fails loudly. Test-only: the three real writers are unchanged.

  • Copy-mode sync now replaces an existing scripts/dev symlink instead of writing through it (#1053). With no local node_modules/sequant, sync left foreign links (an npx cache, a sibling checkout) in place and overwrote their targets. Symlinks are now unlinked and replaced by a copy; regular files are left alone without --force. sync --dry-run lists each replacement as old → (copy), and doctor names the fix that will actually change a machine-specific link.

  • The test suite is hermetic against the orchestrator's environment (#1086). vitest.global-setup.ts scrubs every SEQUANT_* variable by prefix before any worker starts, so a phase agent running a test file under sequant run sees the same result as a clean shell. Before this, SEQUANT_ORCHESTRATOR and SEQUANT_WORKTREE turned three unrelated files red inside every exec phase.

Changed

  • /release lands the release commit through a PR (#1131). The main ruleset (#1109) rejects direct pushes, so Step 6 now branches, opens the release PR, waits for test and canary, squash-merges, and Step 7 tags the merge on main.

  • A merge gate on main, and a mechanical proof for any "pre-existing failure" claim (#1093). The main ruleset enforced only deletion and non_fast_forward, and targeted no ref at all (conditions.ref_name.include: []), so a PR could merge with stale or red CI — which is how #1036, #1042 and #1048 each shipped with "3 pre-existing failures, unrelated to this diff" in the body a week before those failures (#1086) stopped a gate run. scripts/ruleset-main.sh --print now emits the corrected payload (~DEFAULT_BRANCH, the existing two rules, and a required_status_checks rule naming the test check with strict_required_status_checks_policy: true), documented field by field in docs/internal/graph-2026-09-guard/ruleset.md; the owner applies it by hand in #1109, and the script has --print as its only mode so no agent can. ci.yml's build job is renamed test and loses its single-entry matrix, because a matrixed job reports the context build (22.x) and a required context that never reports blocks every merge to main permanently. scripts/settle-against-base.sh <test-file> runs a named test at HEAD and again at the base commit in the same worktree with every SEQUANT_* var unset, prints both results as a ### Settled against base block for the PR body, and restores the branch and any uncommitted work on every exit path — it also distinguishes "the test file does not exist at base" from "the test failed at base", which is the difference between a new test and a pre-existing failure. /exec now calls it for every red test outside the diff; /qa §2a sets settle_evidence_status and §7 step 4 floors an unbacked claim at AC_MET_BUT_NOT_A_PLUS. CLAUDE.md gains a ## Red main rule — a failing push run on main is reverted first and debugged second, and the revert PR references the run — repeated in the release skill's pre-flight checks.

  • The exec skill and CLAUDE.md now state the SEQUANT_MUTATION marker contract (#1104). failedTest must start with the test file path (<file> > <describe> > <case>) and the payload must stay flat; /qa §6i already enforced both without tell...

Read more

v2.16.0 - Codex Agent Driver

Choose a tag to compare

@admarble admarble released this 20 Sep 04:52
e73d0c6

What's Changed

Features

  • Codex is a selectable agent driver: --agent codex / run.agent: "codex". CodexDriver runs codex exec --json as a subprocess with an SDK-typed event parser and a three-level outcome evaluator; new run.codex settings for model, sandbox mode, network access and extra args (#497, #1062)
  • sequant init --agent codex provisions the .agents/skills symlink, a .codex/config.toml hook wrapper around the existing guard hooks, and matching doctor checks (#497, #1066, #1072)
  • Codex phases can commit their own work and reach GitHub: the git dir is passed as a writable root and workspace-write phases get network access, with run.codex.networkAccess: false to seal them off (#1076, #1079)
  • /qa treats an unchecked PR test-plan box that names a command as unexecuted declared evidence (#1065)

Bug Fixes

  • One declared ownership rule (sequant-owned / user-owned / merge) now governs every file init, sync and update write, with a two-sided gate test; importing the settings module no longer reads package.json as a side effect (#1090)
  • The plugin's MCP server no longer dies with CONNECTION_CLOSED when the open project has an older sequant in node_modules; doctor gains a local-shadow check (#1084)
  • sequant init on an initialized repo preserves .sequant/settings.json, including its JSONC comments; --force remains the escape hatch (#1071, #1100)
  • doctor's codex/opencode CLI probes and gh auth status are bounded by timeouts and can no longer hang the command (#1075, #1099)
  • # characters in stdin-heredoc commit subjects survive conventional-commit validation (#1064)

Maintenance

  • The env-dump guard allows anchored env | grep; red tests outside the diff need an issue number (#1101)
  • Pinned doctor's latest-version lookup and moved two cold-import costs off the 5s unit budget (#1063)

Full Changelog: v2.15.1...v2.16.0

v2.15.1 - Documentation and hygiene

Choose a tag to compare

@admarble admarble released this 15 Sep 13:09

What's Changed

A documentation and hygiene release. No behavior changes.

Documentation

  • Agents are no longer told to run a timeout that stock macOS does not ship. The /exec §3 foreground rule, the /verify example, and the #1032 HOOK_BLOCKED message all prescribed timeout N … with no note, so an agent on a machine without GNU coreutils got command not found and either dropped the limit or looped. Every such site now names the coreutils install alongside the portable perl -e 'alarm N; exec @ARGV' fallback that the QA quality-checks script already used. (#1054, #1055)
  • The claude plugin eval early-access environment flag is no longer named in prose. Twenty references across the reference page, the phase-0 investigation, and the graph-2026-09 planning docs spelled out the variable that gates an unannounced feature — including copy-pasteable enable commands, on a docs page that syncs to the public site. The literal is replaced by a placeholder, explained where a reader meets it first. (#1061)

Maintenance

  • Per-stack AGENTS.md snapshots pin the package version, so a release no longer breaks them. (#1056)

Only the first item changes what users receive — it edits templates/skills/ and templates/hooks/, which ship in the package.

Full Changelog: v2.15.0...v2.15.1

v2.15.0 - Fresh-session QA, a security model you can read, and sync that keeps your files

Choose a tag to compare

@admarble admarble released this 11 Sep 06:49

What's Changed

Features

  • Fresh-session QA — the qa phase never resumes the implementer's session; a 27-transcript study found 44% of fresh second looks caught a would-ship bug the anchored reviewer missed, at roughly neutral cost. Opt into full-weight QA on every dispatch with --full-qa, run.fullQa: true, or the MCP fullQa param (#982, #1033)
  • Public trust contract — SECURITY.md and docs/THREAT-MODEL.md classify every defense as deterministic or model-dependent, map the OWASP Top 10 for Agentic Applications, and are CI-checked citation by citation (#980, #1035)
  • OpenSSF Scorecard workflow and README badge; initial score 5.8 with the top remediations recorded on #1025 (#1041)
  • Three injection-eval vectors — issue body, PR comment, and tool output, each with a recorded per-vector verdict (#1024, #1043)
  • /release moves the SECURITY.md supported-versions row with every minor (#1052)

Bug Fixes

  • sync never rewrites a user-owned AGENTS.md or writes a machine-specific scripts/dev symlink; doctor names the repair without --force (#990, #1036)
  • sync --dry-run lists exactly what sync writes; the opencode shim has one producer and is refreshed only when it drifted (#1030, #1042)
  • Phase agents can no longer park on a background task, and an exec that ends with uncommitted work gets a chore(#N): wip checkpoint commit before the failure is reported (#1032, #1034)
  • State reconcile no longer marks an open issue merged because an unrelated squash-commit title mentions (#N) (#1044, #1048)
  • sync's drift-fingerprint cache derives install paths from templateDestination (#1045, #1047)

Upgrade notes

  • Because qa no longer resumes exec's session, a quality-loop loop phase now resumes the exec session rather than the former exec+qa one; it still receives the verdict via SEQUANT_LAST_VERDICT / SEQUANT_FAILED_ACS. run.fullQa stays off by default.
  • Under sequant run, the pre-tool hook refuses Monitor and Bash run_in_background; run long commands in the foreground with a timeout.
  • Dependencies: @anthropic-ai/claude-agent-sdk 0.3.263, zod 4.5, inquirer 14.2 (#1023); dev tooling and GitHub Actions bumped (#983, #1037–#1040).

Documentation

  • README "What's new in 2.15" with scenarios, orchestrator-only guards in docs/reference/permissions.md, security docs linked from the docs index (#1051); /exec runs the full suite exactly once per phase (#1050); wave-2 plan and execution records under docs/internal/ (#1029, #1031, #1046)

Full Changelog: v2.14.0...v2.15.0

v2.14.0 - Model escalation ladder, working cost metrics, skill evals

Choose a tag to compare

@admarble admarble released this 09 Sep 14:12
7081592

What's Changed

Features

  • Model escalation ladder, and the halts that keep it honest — run.modelLadder / --model-ladder sonnet,opus escalates a churning phase one model rung at a time, but only on capability-bound churn. A new diff every iteration that QA keeps rejecting is spec-bound instead, where a stronger model only rediscovers the contradiction more expensively, so the ladder refuses to climb and halts. Three halts (SPEC_DIVERGENCE, DIVERGENCE_SUSPECT, TOP_OF_LADDER) each print an evidence bundle. Off unless configured (#971, #995)
  • Token and cost accounting that works — tokensUsed was 0 on every recorded run. Per-phase usage now comes from the SDK's modelUsage map, metrics.phaseUsage[] carries input, output and cache tokens plus an SDK cost estimate per phase execution, and sequant stats prints a phase × model table (#986)
  • opencode agent driver — experimental — --agent opencode dispatches every phase through the same .claude/skills/ tree Claude Code reads, via generated .opencode/ command wrappers and a fail-closed hook shim. Not a supported backend yet: its promotion gate (#997) is deferred, and the README lists the known limitations (#862, #996)
  • Regression evals for the skills themselves — four claude plugin eval cases graded only on surfaces the real skill emits unprompted, a null-run canary and a stub-skill canary that must both fail, and a fixture_commit provenance gate. A manual-dispatch CI workflow runs the suite under a budget cap (#993, #994)

Bug Fixes

  • The ready gate runs on the driver you configured — with run.agent set, the post-QA gate silently ran its phases on claude-code. ExecutionConfig has a single producer again, and a parity test fails if the two drift (#863)
  • Skills pre-flight validates each worktree, not the main checkout — an untracked .claude/skills/ passed the check while every worktree the phase agents actually run in had none (#933)
  • Signal shutdown preserves dirty worktrees — an externally terminated run no longer deletes the worktree its own failure text points at (#935)
  • Commit-message validation is scoped to the git commit segment — the hook no longer reads text outside it, closing several fail-open shapes and false positives (#981)
  • pnpm/yarn/bun worktrees no longer install with npm ci — a literal "npm" fallback short-circuited lockfile detection (#932)
  • Tautology detector no longer flags subprocess-driven tests — __dirname-built spawn paths evaded the build-output heuristic (#956)

Security

  • fast-uri advisory resolved (high) — pulled transitively by the MCP SDK's schema validator; resolved in range to 3.1.7 with no declared dependency change

Full Changelog: v2.13.1...v2.14.0

v2.13.1 - sequant no longer rewrites project files on startup

Choose a tag to compare

@admarble admarble released this 07 Sep 03:42

What's Changed

Bug Fixes

  • sequant no longer rewrites project files on startup. The per-command skills pre-flight is warn-only for a version-marker mismatch, as it already was for content drift: it prints "Skills are outdated (x → y)" and names sequant update. Until now a mismatch ran a silent forced copy over .claude/skills/, .claude/hooks/, .claude/agents/, AGENTS.md, scripts/dev/* and the manifest — and because the plugin's MCP server (npx sequant@latest serve) starts with cwd = the open project, every post-release Claude Code session rewrote those files in the working tree with no output. (#988, #989)
  • The plugin's shipped .mcp.json is now pinned to the release version. marketplace.json uses source: "./", so plugin users were receiving the repo-root sequant@latest config while #793's pin only ever landed in a dist/ copy the marketplace never installs. (#988, regression of #793)

Added

  • sequant serve reports install status instead of acting on it: one stderr line at startup ("… No files were modified. Run: sequant update") and a new sequant://install MCP resource — always an object, filesModified: false as the report-only contract. sequant://config is unchanged: the settings file, verbatim. (#988)

If you customized a managed hook in place (e.g. .claude/hooks/pre-tool.sh): this release stops the silent overwrite, but explicit sequant update/sync still refresh managed trees. Move customizations to .claude/.local/hooks/ and register them in .claude/settings.json (see docs/guides/customization.md).

Full Changelog: v2.13.0...v2.13.1