Repository navigation
Releases
v3.0.0 - Breaking Changes
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.effortEscalationorrun.fullQaloads with one warning naming the removal. The MCPsequant_runtool ignores afullQaargument. - Migration:
- Drop those flags and keys.
sequant readystill forces full-weight QA.--chainstill rebases each successor onto its predecessor.- For the old label-driven UI test phase, name it (
--phases spec,exec,test,qa) or userun.autoDetectPhases.
- No label adds the
testphase 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>`. --chainand multi-issue runs print an "experimental" warning with their measured success rates (#1651).
Bug Fixes
- A spec's
SPEC_DIVERGENCEmarker 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
Added
sequant merge --checkwarns about open PRs outside the batch that touch the batch's files (#1454). A newexternal-pr-overlapcheck 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. Whenghis unavailable or the PR list call fails, the report shows oneOpen-PR overlap check skipped: <reason>line. The file lists come from a newGitHubProvider.listOpenPRFilesSync, andassess-collision-detect.tsgainsformatOpenPrCollisionWarnings, which/assesswill call once the plugin freeze lifts. See ADR-0016.- Standalone
sequant readyrecords its run to.sequant/metrics.json(#929). OneMetricRunper gate pass withsource: "ready", the policy inflags,success/failedfrom the gate result,qaIterations,tokensUsedand the effort/model escalations. Recording is best-effort: a write failure warns on stderr and leaves the exit code and--jsonstdout alone.sequant statsreportsbySourcecounts, and headline averages coverrunrecords only. Records with nosourceread asrun; no migration. - The
mainruleset payload uses a merge queue instead of strict up-to-date (#1350).scripts/ruleset-main.sh --printnow dropsstrict_required_status_checks_policy, adds a squashmerge_queuerule and listscanarybesidetest(the live ruleset already required both).ci.ymlruns onmerge_groupso queued PRs get their checks. The live ruleset is unchanged: applying the queue waits on #1368, where/releaselearns to wait for a queued merge before tagging. /execand/qarun the tests a branch affects instead of the full suite (#1349).npx vitest run --changed origin/main(jest:--changedSince), plus ACEvidence: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.ymlruns a pinned, checksum-verified gitleaks with.gitleaks.tomlonpull_requestandmerge_group, and fails when anentire/*ref exists onorigin. 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.shis 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. Seedocs/reference/secret-scanning.md. /qaenforces 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 owndocumentfindings) must endfiled #N,fixed in this PRordropped: <reason>. An unresolved item caps the verdict atAC_MET_BUT_NOT_A_PLUSthrough a new §7 gate,followup_ledger_status, in both Standard and Simple Fix mode. QA writes eachdocumentfinding's resolution as a suffix on its description, andsequant run's PR body renders the latest QA pass'sdocumentfindings as a## Follow-upschecklist; a finding with no resolution readsunresolved. 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.mddid not grow. See ADR-0007.- A PR from a
sequant runthat 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 (--resumepast qa). The post-QA update replaces it with the verdict note, or drops it forREADY_FOR_MERGE, and a later qa-only run on the same PR removes it too. A run that skips qa (--phases exec, MCPphases: "spec,exec") or stops before it keeps the line. No draft PRs; the PR-creation gate is unchanged. The MCPsequant_runphasesdescription no longer offers'spec,exec'as a way to "skip QA".
Changed
updaterefuses on a skills-only install (#1482). It read no install scope, so it wrote hooks, agents andsettings.jsonover an install that chose skills only. On a partial scope it now writes nothing, exits non-zero and namessequant sync --only skills. Full installs are unchanged. ADR-0015 amended.- The
@anthropic-ai/claude-agent-sdkfloor is^0.3.296(#1440). Phase agents run the Claude Code bundled with the SDK (2.1.296 at 0.3.296), not the installedclaude, 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.jsonservers switched off for a folder,rate_limit_eventextra-usage flag, file-read-state,disableClaudeAiConnectors/allowedMcpServerscoverage). The README Prerequisites note says which Claude Code a phase agent runs.
Removed
- Dead
src/lib/plugin-version-sync.tsmodule and its test (#1325). Nothing in production calledcheckVersionSync; CI'sCheck version syncstep does the check.docs/internal/plugin-updates.mdnow names that step.
Fixed
sequant_runno 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.resolveRunLognow retries the exact runId lookup (3 × 200 ms) and returnsnullon a miss; the response carriesrunLogMissing,requestedIssuesand anotesaying the result is not a parsed log. The no-runId path is unchanged.new-feature.shreuses the issue's local branch when no worktree has it (#1491). It printed advice (one option wasgit branch -D) and exited 1, whileensureWorktreechecks the branch out as is. It now runsgit worktree add <path> <branch>with no fetch or reset, like the TS side, and keeps a recordedsequantBase. The existing-worktree lookup matches the branch exactly, sofeature/7-xno longer matchesfeature/7-xy.doctorSkills Version check warns on content drift (#1490). At a matching version it always passed withUp 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.doctorno longer sends a skills-only install toinit --force(#1489). A missingAGENTS.mdraised a warning namingsequant init --force, which installs hooks, agents and settings the install skipped. On a partial scope the check now passes and saysAGENTS.mdis outside the install. Full installs keep the warning.sequant merge --checkworks on a repo whose default branch is notmain(#1484). The combined-branch test, each branch'sfilesModifieddiff, overlap detection and the residual pattern scan all hard-codedorigin/main. On amasterrepo the diffs failed, their callers read the empty output as "no changes", and the overlap checks (including #1454's external-PR overlap) reported clean.runMergeChecksnow resolvesorigin/<default branch>once and passes it to all four. A failedfilesModifieddiff is no longer an empty list: the report carries an error finding for that branch naming the git command, and the batch isBLOCKED. The worktree path ofresolveBranchesalso uses the resolved base instead ofmain.- Plain
syncanddoctorno longer steer a skills-only install into a full one (#1485). A plainsyncon a manifest withgroups: ["skills"]keeps that scope: it counts drift and writes only.claude/skills/, and widening issequant init.doctor's Skills Version check namessync --only skills, anddoctoradvises the"groups": ["skills"]hand edit for a legacy manifest with no hooks, settings or agents. See ADR-0015. sequant runreuses an issue's existing branch whatever the issue's title (#1487). The branch was looked up by a name rebuilt from the title. A failedgh issue view(titleIssue #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.ensureWorktreenow finds the issue's branch by number: a localfeature/N-*(which covers worktrees) ororigin/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 thegherror.new-feature.shstarts fromorigin/<branch>when the remote already has the issue's branch (#1486). It always cut the worktree fromorigin/<base>, so a pushed PR branch lost its commits and a push from the new worktree diverged. The script now portsresolveBranchStartRef: it usesorigin/<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 addfailed,sequant rundropped 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 itsabortReasonand ...
v2.19.0 - Slim plugin install, working install docs
Added
/specstops on recurrence and lists producers; spec can halt the run before exec (#1250). Design Review Q3 now counts prior fixes (git log -Splus an issue search): ≥2 is a stop, not a precedent, and the plan either fixes the class or recordsdeliberately 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 emitsSPEC_DIVERGENCEin itsSEQUANT_PHASEmarker, andsequant runnow 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.worktreeRootin.sequant/settings.json, or theSEQUANT_WORKTREE_ROOTenv var (which wins), sets where issue worktrees are created, for bothsequant runandscripts/new-feature.sh. A relative value resolves against the main repo root; the default stays../worktrees.new-feature.shreads the setting with a JSONC-tolerant text match (a//-commented key is ignored), and itsSEQUANT_NPM_CACHEdirectory follows the root. Thepre-tool.shcommit warning andquality-checks.sh's build comparison now detect a worktree withgit rev-parse --git-dirvs--git-common-dirinstead of matchingworktrees/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'smodelUsage). For a phase with arole:policy it also hasrequestedModel, therole:string as configured. The run log's top level hassequantVersionanddriver. The top-levelmodelinmetrics.jsonnow comes from the first phase that reported a resolved model; it falls back toANTHROPIC_MODEL ?? "opus"only when no phase reported one. All the new fields are optional, so older logs still parse. sequant init --manifest-onlyandsequant sync --only skills(#1209).init --manifest-onlywrites just.sequant-manifest.jsonand exits — no directories, templates, or settings — for the case wheresequant run's only real requirement is that one file; a second run leaves an existing manifest untouched.sync --only skillsrestricts both the apply and the--dry-runpreview to.claude/skills/**plus the manifest, skipping the.mcp.jsonpin, AGENTS.md, the opencode shim,scripts/dev, and.claude/settings.json/agents/hooks/memoryentirely.run's manifest-missing message now prints the minimal manifest shape (version,stack,installedAt,files: {}) and namesinit --manifest-onlyinstead of sending the user through the fullinitflow. The skills pre-flight's remedy andrun-orchestrator's main-checkout message both now recommendsequant sync --only skills, replacing the wider (and, for this case, inaccurate)sequant syncrecommendation from #1201.sequant_run's per-issue result carries the qa phase's summary (#1200). Each issue in the structured response now includesacMet,acTotal,gapsandfindingsfrom the qa phase's condensed summary, for every verdict — not just on success.findingsandgapsare each capped at 10 entries, and each gap and each finding'sdescription/evidenceat 300 characters.gapsrepeats 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,acTotaland the verdict always stay. Any cap or drop setstruncated: true. An MCP caller that getsNEEDS_VERIFICATIONorAC_NOT_METno longer needs a second tool call to learn why.- Opt out of a PR auto-closing its issue (#1197).
run.prIssueLink(default"closes") controls whethersequant run's automated PR path emitsFixes #NorRefs #N; an issue carrying the configurablerun.prNoCloseLabel(defaultno-autoclose) always getsRefs #Nregardless of the setting. Inrefsmode the PR body is scrubbed for any other<closing verb> #N(orowner/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 (queryclosingIssuesReferences, halt naming the issue) follow the same rule. - Native engineering rubrics as skill references (#1135).
/qa§2 points toqa/references/review-dimensions.mdfor 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)./improveranks candidates withimprove/references/tech-debt-scoring.md, scored(Impact + Risk) × (6 − Effort)./testgenconsultstestgen/references/testing-pyramid.mdwhen the spec names no test level.docs/adr/adds an ADR convention, and/specasks for an ADR in the exec PR when the plan chooses between designs. Plain markdown, portable to every driver;qa/SKILL.mdandexec/SKILL.mddid not grow.
Changed
/specflags vacuousEvidence:(#1203). Spec now runs each command-shapedEvidence:against the base branch before accepting the AC. A check that already passes on unchanged code (agrepmatching 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.TodoWriteis gone from the exec, fullsolve, loop and test skills (#1135). Under thesonnet/opuspins, which resolve to Sonnet 5 and Opus 5.5, Claude Code no longer offers the tool, andCLAUDE_CODE_ENABLE_TODO_TOOLS=1addsTaskCreate/TaskUpdateinstead, notTodoWrite./test's plan is now a markdown checklist./releasepre-flight validates the plugin manifests (#1135). It runsclaude plugin validateon.claude-plugin/plugin.jsonand.claude-plugin/marketplace.jsonseparately, becauseclaude plugin validate .checks only the marketplace manifest, and stops the release on an error.docs/reference/run-command.mdlists what theopus/sonnet/haiku/fablealiases resolve to as of Claude Code 2.1.283./releaserecounts 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 with202can take minutes to appear, how to read~/.npm/_logsfor the realargv, tag andPUTstatus, and how to poll the registry directly.- A bare
npm publishnow lands on thenextdist-tag (#1184).package.jsonsetspublishConfig.tag: next, solatestmoves only through the deliberate/release --soakedpromotion. A bare publish movedlateststraight 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 realnpm publishagainst a local registry.
Fixed
- Interactive
sequant initno longer crashes withPrompt type "list" is not registered(#1256). inquirer 14 removed thelistprompt; init's prompts now useselect. sequant doctorandsequant run --dry-runstop passing first runs that will fail (#1257).doctorfails, 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-runreports 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.
syncandupdateno 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).--helpdrops internal issue numbers. The README scopes "never merges" tosequant run(/fullsolvemerges only with--auto-merge). The docs index gains a "Features: when to use what" section. sequant runworktrees record their exact base ref, and the exec guard and the rebase before the PR read it (#1234).resolveBaseRefreadbranch.<b>.sequantBase, which only the legacynew-feature.shwrites, so for everysequant runworktree the exec guard compared againstorigin/main. When--basewas ahead of main, the base's own commits counted as commits ahead, and the guard'snone/uncommittedbranches (#534/#879) never fired: exec phases that left their work uncommitted passed. Worktrees now recordbranch.<b>.sequantBaseRef, which is read first and must resolve to a commit. The legacy key and theorigin/mainfallback are unchanged.- The plugin marketplace now ships a slim
plugin/folder instead of the whole dev repo (#1265)..claude-plugin/marketplace.json'ssourcewas"./", so every install and update rannpm ciover this repo's fullpackage.json/lockfile and wrote a ~700 MBnode_modulesthat nothing in the plugin reads — the hooks are shell, the MCP server arrives through a pinnednpx, and nothing referencesnode_modules,dist/,scripts/,bin/orpackage.json.sourcenow points at./plugin, a generated folder with nopackage.jsonholding only what loads at runtime:skills/,hooks/(+hooks.json),.mcp.json,memory/constitution.md,README.mdandLICENSE.plugin/hooks/andplugin/skills/are generated f...
v2.18.0 - Per-phase agents and in-place checkout
What's Changed
Features
- Per-phase agent selection —
run.phases.<phase>.agentruns one phase on a different driver (e.g. codex forexec, Claude Code forqa); roles and ladder rungs resolve per phase, anddoctorchecks every driver the run uses (#1150) - In-place checkout mode —
SEQUANT_CHECKOUT=in-placelets/exec,/qa,/loopand/testgenwork on a branch in the current clone instead of a worktree; opt-in only (#1136)
Bug Fixes
- Writers never follow a symlink:
init/sync/updatereplace 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.jsonand client MCP configs included (#1160) syncsettles whennode_modulesholds an older sequant, andupdateno longer rewritesscripts/devlinks every run — it tells you to runsequant syncinstead (#1159)new-feature.shandsequant runderive the same branch name for long issue titles;--print-branchpreviews it (#1145)sequant init --yesno longer replaces an unparseable.mcp.json(#1123)role:references and ladder rungs resolve against the--agentdriver when it overridesrun.agent(#1150)parseQaVerdictrecords the final verdict heading, not the first mention (#1119)run.codex.networkAccessno longer warns as an unknown settings key
Skills
/specstates the AC rules the tooling enforces (one line,Evidence:, Non-Goals);/verifyshows output before asking;/execscopes formatting to your diff (#1165)/execwarns that doc-gate tests are tautologies too (#1144)/qacaps the full suite under the orchestrator;pre-tool.shhonors a leadingcdin 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.ymlworkflow removed (#1162); test fixtures no longer write outside tmp (#1141); shallow-clonefixture_commitgate 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.0floor
Full Changelog: v2.17.0...v2.18.0
v2.17.0 - Merge gate on main, downstream canary, driver conformance, hook golden corpus
Fixed
-
sequant initon an initialized project no longer replaces a hand-writtenAGENTS.md(#1098).initwrote the generated file unconditionally, soinit --agent codex --yeserased a user-ownedAGENTS.mdthatsyncwould have preserved (#990). It now applies the same rule assync— only an unmodified sequant-marked file is regenerated, anything else is reportedpreservedand 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.failedis now a typed error (#1087).CodexDriverclassified everyturn.failedas a genericSequantError, so a quota-exhausted phase looked like any other failure: the-Qquality loop re-ran into the same limit and--auto-waitcould not engage.classifyCodexTurnFailuremaps the usage-limit text toBillingError(reset beyond a fixed 7-day horizon, past, or unparseable;resetsAtTextandresetsAtin metadata), to aRateLimitErrorwithresetsAtwhen the reset is within the horizon, and throttle wording (rate limit exceeded,429,too many requests) to a retryableRateLimitError. Anything else keepsSequantErrorwith codeturn-failed. -
The pre-PR sync merges
origin/maininto a branch that is already pushed instead of rebasing it (#1069). Rebasing rewrote pushed SHAs and could only be landed by force-push.rebaseBeforePRnow merges when the branch has an upstream other than the base ref (a freshworktree add -b … origin/mainbranch tracksorigin/mainand still rebases), aborts the merge on conflict, and printsmerged origin/mainorrebased onto origin/main. -
A failing QA verdict (
AC_NOT_MET) is now posted to the issue (#1070).postQaVerdictCommentwas gated onresult.success, butAC_NOT_METis 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 nowresult.verdictalone: a verdict is only set once one parsed, so turn-capped and unparseable-verdict phases still post nothing (#964 AC-4). EachAC_NOT_METround in a quality loop now posts its own comment. -
parseQaSummarycounts checklist- and bold-prefixed AC lines, and the QA verdict comment no longer printsAC coverage: 0/N metunder a passing verdict (#1073, #1095). A checklist-shaped report (- [x] **AC-1**: …) matched no table row and parsed as0/1 metunder anAC_METverdict. Checklist lines now count (checkbox = MET; a table row wins on a duplicate id), andbuildQaVerdictCommentomits the count line when the parser found no counts oracMet === 0underREADY_FOR_MERGE/AC_MET*.
Added
-
Golden corpus for
pre-tool.sh(#1094).__tests__/fixtures/hook-corpus.jsonlrecords 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.tsreplays 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;--harvestadds new commands. The exec skill now requires listing changed verdicts underHook verdicts changed:whenpre-tool.shis edited. -
CI
canaryjob: a downstream fixture project on every PR (#1098).__tests__/canary/downstream.integration.test.tsdoes a realnpm installof the previous minor release, runs itsinit, customizes the project the way real ones are (constitution,.claude/settings.local.jsonmatcher group, hand-writtenAGENTS.md, tuned.sequant/settings.json, stale^1.20.0devDependency), then drives the PR's build throughsync --dry-run,sync,init --agent codex --yesandupdate. It asserts dry-run decisions equal the files that changed, every customization survives byte-for-byte, no{{PLACEHOLDER}}lands under.claude/,doctorexits 0, and a real MCPinitializeover stdio from the fixture's cwd — with the stale localnode_modules/sequantpresent — reports the PR's version (the #1084 regression test). It runs in a newcanaryvitest project (npm run test:canary) thatnpm testexcludes, so the requiredtestcheck never depends on the npm registry. -
/releasepublishes to thenextdist-tag first and refuseslatestwithout--soaked(#1098). Step 9 now runsnpm publish --tag next; new Step 9b prints the soak checklist and only runsnpm dist-tag add … latestwhen--soakedwas passed. Pinned in all three skill copies byrelease-skill-soak.test.ts. -
Driver conformance suite (#1096).
src/lib/workflow/drivers/__tests__/driver-conformance.test.tsenumerates 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 realcodex sandboxwith the driver's own writable roots.docs/guides/writing-an-agent-driver.mdstates 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.tsrunsinit,syncandupdate(each with and without--force, plus--dry-runfor 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),initreplacing a user-modifiedAGENTS.md(#1123), and a rawEISDIRcrash 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 matchedawait writeFile(only, so a second write to a new destination inside an already-registered function, avoid writeFile(...), or a writer declared asconst foo = async () => {…}(which inherited the previous function's key) all passed silently.src/lib/ownership-gate.tsscans everywriteFile(call, attributes it to its innermost named function by brace scope, and keys the registry byfile#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
syncnow replaces an existingscripts/devsymlink instead of writing through it (#1053). With no localnode_modules/sequant,syncleft 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-runlists each replacement asold → (copy), anddoctornames the fix that will actually change a machine-specific link. -
The test suite is hermetic against the orchestrator's environment (#1086).
vitest.global-setup.tsscrubs everySEQUANT_*variable by prefix before any worker starts, so a phase agent running a test file undersequant runsees the same result as a clean shell. Before this,SEQUANT_ORCHESTRATORandSEQUANT_WORKTREEturned three unrelated files red inside every exec phase.
Changed
-
/releaselands the release commit through a PR (#1131). Themainruleset (#1109) rejects direct pushes, so Step 6 now branches, opens the release PR, waits fortestandcanary, squash-merges, and Step 7 tags the merge onmain. -
A merge gate on
main, and a mechanical proof for any "pre-existing failure" claim (#1093). Themainruleset enforced onlydeletionandnon_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 --printnow emits the corrected payload (~DEFAULT_BRANCH, the existing two rules, and arequired_status_checksrule naming thetestcheck withstrict_required_status_checks_policy: true), documented field by field indocs/internal/graph-2026-09-guard/ruleset.md; the owner applies it by hand in #1109, and the script has--printas its only mode so no agent can.ci.yml'sbuildjob is renamedtestand loses its single-entry matrix, because a matrixed job reports the contextbuild (22.x)and a required context that never reports blocks every merge tomainpermanently.scripts/settle-against-base.sh <test-file>runs a named test at HEAD and again at the base commit in the same worktree with everySEQUANT_*var unset, prints both results as a### Settled against baseblock 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./execnow calls it for every red test outside the diff;/qa§2a setssettle_evidence_statusand §7 step 4 floors an unbacked claim atAC_MET_BUT_NOT_A_PLUS.CLAUDE.mdgains a## Red mainrule — a failingpushrun onmainis 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.mdnow state theSEQUANT_MUTATIONmarker contract (#1104).failedTestmust start with the test file path (<file> > <describe> > <case>) and the payload must stay flat;/qa§6i already enforced both without tell...
v2.16.0 - Codex Agent Driver
What's Changed
Features
- Codex is a selectable agent driver:
--agent codex/run.agent: "codex".CodexDriverrunscodex exec --jsonas a subprocess with an SDK-typed event parser and a three-level outcome evaluator; newrun.codexsettings for model, sandbox mode, network access and extra args (#497, #1062) sequant init --agent codexprovisions the.agents/skillssymlink, a.codex/config.tomlhook wrapper around the existing guard hooks, and matchingdoctorchecks (#497, #1066, #1072)- Codex phases can commit their own work and reach GitHub: the git dir is passed as a writable root and
workspace-writephases get network access, withrun.codex.networkAccess: falseto seal them off (#1076, #1079) /qatreats 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 fileinit,syncandupdatewrite, with a two-sided gate test; importing the settings module no longer readspackage.jsonas a side effect (#1090) - The plugin's MCP server no longer dies with
CONNECTION_CLOSEDwhen the open project has an oldersequantinnode_modules;doctorgains a local-shadow check (#1084) sequant initon an initialized repo preserves.sequant/settings.json, including its JSONC comments;--forceremains the escape hatch (#1071, #1100)doctor's codex/opencode CLI probes andgh auth statusare 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
What's Changed
A documentation and hygiene release. No behavior changes.
Documentation
- Agents are no longer told to run a
timeoutthat stock macOS does not ship. The/exec§3 foreground rule, the/verifyexample, and the #1032HOOK_BLOCKEDmessage all prescribedtimeout N …with no note, so an agent on a machine without GNU coreutils gotcommand not foundand either dropped the limit or looped. Every such site now names the coreutils install alongside the portableperl -e 'alarm N; exec @ARGV'fallback that the QA quality-checks script already used. (#1054, #1055) - The
claude plugin evalearly-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.mdsnapshots 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
What's Changed
Features
- Fresh-session QA — the
qaphase 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 MCPfullQaparam (#982, #1033) - Public trust contract —
SECURITY.mdanddocs/THREAT-MODEL.mdclassify 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)
/releasemoves the SECURITY.md supported-versions row with every minor (#1052)
Bug Fixes
syncnever rewrites a user-ownedAGENTS.mdor writes a machine-specificscripts/devsymlink;doctornames the repair without--force(#990, #1036)sync --dry-runlists exactly whatsyncwrites; 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 checkpointcommit 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 fromtemplateDestination(#1045, #1047)
Upgrade notes
- Because
qano longer resumes exec's session, a quality-looploopphase now resumes the exec session rather than the former exec+qa one; it still receives the verdict viaSEQUANT_LAST_VERDICT/SEQUANT_FAILED_ACS.run.fullQastays off by default. - Under
sequant run, the pre-tool hook refusesMonitorand Bashrun_in_background; run long commands in the foreground with a timeout. - Dependencies:
@anthropic-ai/claude-agent-sdk0.3.263,zod4.5,inquirer14.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);/execruns the full suite exactly once per phase (#1050); wave-2 plan and execution records underdocs/internal/(#1029, #1031, #1046)
Full Changelog: v2.14.0...v2.15.0
v2.14.0 - Model escalation ladder, working cost metrics, skill evals
What's Changed
Features
- Model escalation ladder, and the halts that keep it honest —
run.modelLadder/--model-ladder sonnet,opusescalates 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 —
tokensUsedwas 0 on every recorded run. Per-phase usage now comes from the SDK'smodelUsagemap,metrics.phaseUsage[]carries input, output and cache tokens plus an SDK cost estimate per phase execution, andsequant statsprints a phase × model table (#986) - opencode agent driver — experimental —
--agent opencodedispatches 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 evalcases graded only on surfaces the real skill emits unprompted, a null-run canary and a stub-skill canary that must both fail, and afixture_commitprovenance 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.agentset, the post-QA gate silently ran its phases on claude-code.ExecutionConfighas 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 commitsegment — 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-uriadvisory 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
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.jsonis now pinned to the release version.marketplace.jsonusessource: "./", so plugin users were receiving the repo-rootsequant@latestconfig while #793's pin only ever landed in adist/copy the marketplace never installs. (#988, regression of #793)
Added
sequant servereports install status instead of acting on it: one stderr line at startup ("… No files were modified. Run: sequant update") and a newsequant://installMCP resource — always an object,filesModified: falseas the report-only contract.sequant://configis 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