.claude/ds-config.jsonThis page describes the repository contract for plugin v3.45.0. The file lives in the consuming repository, and its values override the plugin’s inline fallbacks.
The easiest way to create it is:
/devstride:setup
Every setting is optional at runtime, but setup writes explicit values so important behavior is visible and reviewable. Re-run /devstride:setup validate after a hand edit.
From 3.19.0 every key and every hook the skills read is listed once in the plugin's seam registry (schemas/seam-registry.json), with its shape, its default and the skill steps that call it; the JSON Schema (schemas/ds-config.schema.json) and the readable table (skills/setup/references/seam-registry.md) are generated from it. Point your editor at the schema for completion and inline errors with a top-level key, pinned to the release you run:
{
"$schema": "https://raw.githubusercontent.com/devstride/claude-plugin/devstride--v3.45.0/schemas/ds-config.schema.json"
}
An unknown key used to be silently ignored, which quietly switched off whatever it was meant to turn on. Now a wrong shape is an error and an unknown key a warning that suggests the key you probably meant. Keys your own repository's tools read, and the plugin never does, go in repoLocalKeys:
| Key | Shape | Default | Purpose |
|---|---|---|---|
$schema | URL string | absent | Editor completion and validation against a published schema. The plugin ignores it. |
repoLocalKeys | array of key prefixes, e.g. ["mergeGuard", "deploy.notes"] | [] | From 3.19.0: keys (and everything under them) the check leaves alone because your own tools read them. |
any key starting with _ | anything, e.g. "_comment": "why this is set" | absent | A note for the people who read the file. The schema accepts it at any level, in any block, and the plugin never reads it. |
plan reads profile and profileOverrides for story grain and spec depth, and may use hierarchyRoles.releaseUnit to resolve an ambiguous release boundary and the release branch/deploy settings to shape production-safe release units. insert-story and insert-defect take hierarchyRoles and the branch settings from it. rationalize-gantt finds the plan's deferred container by defects.deferredContainerTitle and its legacy titles, to date that work after the plan. comprehend-plan reads none of it. Delivery uses the rest.| Key | Shape | Setup value or absent behavior | Purpose |
|---|---|---|---|
profile | "prototype", "standard" or "extended" ("enterprise" is retired since 3.12.0 and is read as standard, said out loud) | Setup asks; absent means extended from 3.49.0 (standard before), and /devstride:doctor reports it as key absent, shipped default | The repository’s default delivery profile. "extended" (from 3.6.0) is standard with fewer, larger leaves: only leaf size, spec depth, understand readers and review breadth move; every safety knob and floor is standard’s. A plan root’s Delivery profile: marker overrides it for that plan, and a bare profile word in a skill’s arguments overrides both. |
profileOverrides | object of knob → value | absent | Pins individual profile knobs for every profile, for example {"maxLocalReviewRounds": 2, "reviewBreadthCeiling": "HIGH-RISK"}. Keys are the knob names from the profile contract and values use its vocabulary. The knobs you can pin are grain and specDepth (each takes another profile's name, so "specDepth": "extended" slices at your profile but writes extended-depth specs), understandReaders (0 to 6), reviewBreadthCeiling, verificationDefault, verificationGrouping, fixFloor (p1-security, likely-important or all-confirmed), localCliEngine, maxLocalReviewRounds (capped by the two-cycle review target, and never a limit on the extra cycles a serious finding opens), storyVerify (touched or full), perStoryPullRequest, releaseCiOrdering, reviewerRegistrationWindowMinutes, pollTimeoutMinutes and autoRelease. A dedicated key elsewhere in this file (epicIntegrationBranches.autoRelease, epicIntegrationBranches.fastStoryMerges.enabled, review.pollTimeoutMinutes) beats an override of the same knob. fixFloor, storyVerify and understandReaders carry the rigor of the retired enterprise profile: on top of extended, {"fixFloor": "all-confirmed", "storyVerify": "full", "maxLocalReviewRounds": 2, "understandReaders": 6} with review.pollTimeoutMinutes: 20 reproduces every former enterprise knob except its grain. verificationGrouping accepts "per-file" (the default everywhere) or "per-finding", which restores one verifier per finding at the widest review breadth; the default groups findings one verifier per file-group, and a security finding is always verified singly either way. An override cannot go below a floor; targetAdversarialCycles is a fixed two-cycle floor rather than an override key, and an attempt to set it is reported and ignored, as is an unknown knob name. |
Four profile knobs also exist as keys of their own elsewhere in this file. A key that is present is the operator’s decision and always wins; the profile fills in only when the key is absent, and setup writes each key consistent with the profile it was told so a fresh config and its profile agree.
epicIntegrationBranches.autoRelease — when absent, prototype supplies true and the other profiles false; setup writes the same.epicIntegrationBranches.fastStoryMerges.enabled — when absent or true, prototype runs fast mode whenever an integration branch exists; a present false wins and is reported. The other profiles follow the key.review.pollTimeoutMinutes — when absent, the profile supplies 5 minutes (prototype) or 10 (standard and extended); setup writes the same.review.openPullRequestsAsDraft, review.readyForReviewReleasesCi, review.ciHeldUntilReviewSettled — these describe what your workflows support, not what a profile does with it. Review first and CI last is a floor under every profile, prototype included; setup writes all three as detected facts.review.localCommand is different: it names the local CLI reviewer, it does not schedule it. A present command puts the engine on the roster, and it reviews every release pull request and every pull-request-path item under every profile — never a fast-merged item with no pull request. The profile decides only how many rounds it gets at those boundaries: one under prototype, standard and extended; profileOverrides.maxLocalReviewRounds raises it. null removes the engine everywhere.
/devstride:doctor reports the effective profile, its source, and any key that contradicts it — for example a prototype profile beside autoRelease: false, which is honored as configured and reported.
| Key | Shape | Setup value or absent behavior | Purpose |
|---|---|---|---|
baseBranch | string | "develop" fallback | Normal feature base and merge target. |
hotfixBaseBranch | string | "master" fallback | Fresh base for production hotfixes. |
protectedBranches | string | ['develop', 'master'] fallback | Heads the loop must not rebase, force-push, delete, or write lessons onto. Setup includes the base, release source, and production branch. From 3.8.0 an entry may be a pattern such as "release/*" — see Branch patterns. |
integrationBranch | string or null | null | Explicit working-base override. Non-null takes precedence over per-release-unit derivation. |
branchNaming.pattern | string | "<prefix>/<MM-DD-YY>/<slug>" | Feature branch shape. |
branchNaming.prefixSource | string | "git user.name first name, lowercased; ask if empty or ambiguous" | How the prefix is chosen. |
branchNaming.dateFormat | string | "MM-DD-YY" | Branch date format. From 3.6.0 both branch-feature and branch-hotfix take their date from it; branch-hotfix previously always used MM-DD-YY. |
develop and master are deterministic runtime fallbacks for a repository with no config. They are not claims that every repository uses those names, and /devstride:setup does not copy them when it can inspect origin.
Setup enumerates actual remote branches and uses exact common names as role candidates:
| Role | Candidate names |
|---|---|
| Normal development and release source | develop, development, staging, stage, canary, test, testing, qa |
| Production and hotfix base | main, master, production, prod |
| Possible single trunk | trunk |
Exactly one development candidate and one production candidate produce a proposed four-key mapping. Multiple matches remain a question; setup never picks whichever name happens to appear first. A development candidate without a production candidate can suggest baseBranch and release.releaseSource, but it cannot establish the production or hotfix branch.
The detector considers only branches that exist on origin, matches whole names rather than substrings, and treats origin/HEAD as evidence for the ordinary pull-request base rather than proof of production. Existing explicit config always wins.
/devstride:doctor config resolves the configured values or inline fallbacks and checks them against the remote. If an effective fallback does not exist, doctor prints the concrete candidates and the mapping setup would propose. Doctor never writes the file.
From 3.8.0 one anchored matching rule is used for protectedBranches entries, release.releaseBranchPattern and release.releaseBranchFixExclusions: * matches one or more characters within one path segment, ** one or more across segments, a date token such as <YY-MM-DD> matches a date, a trailing [-n] allows an optional -2, -3 … suffix, and everything else is literal. A name is tested against the whole pattern, never as a substring, so release/* does not match foo/release/x and stacks/** does not match docs/stacks/x. Why: an unanchored match fails silently — it either protects nothing or refuses a harmless fix. A release branch and the release train are protected by their own keys, whether or not protectedBranches lists them.
| Key | Shape | Setup value or absent behavior | Purpose |
|---|---|---|---|
epicIntegrationBranches.enabled | boolean | true | Give each release unit its own integration branch. false sends planned items to baseBranch. |
epicIntegrationBranches.pattern | string | "<prefix>/<MM-DD-YY>/<epic-number>-<epic-title-slug>" | Integration branch pattern. The date is the branch’s creation date. An existing integration branch is found by matching this pattern, anchored, so a marker such as epic-<epic-number>-… still resolves (from 3.8.0). A branch found only under an older naming makes the loop stop and ask rather than cut a second one for the same epic (from 3.9.0, which also catches dated older names). |
epicIntegrationBranches.slugRule | string | Kebab-case, lower-case, [a-z0-9-], strip [N], about six words | Deterministic release-unit slug rule. |
epicIntegrationBranches.releaseTarget | string | "baseBranch" | Base of the completed release-unit pull request. The literal baseBranch resolves to the configured branch. Naming the release train's branch (releaseTrain.branch) makes a finished release unit join the train through its reviewed release pull request, so every release carries release units and one-offs to the base branch together, with one CI run. |
epicIntegrationBranches.autoRelease | boolean or "ask" | false for standard and extended; true for prototype, which setup says out loud | When true, the loop cuts and merges the release-unit pull request after the final leaf. false stops at release-ready. "ask" (from 3.5.0) asks the owner once per completed release unit before cutting and merging its pull request; when nobody can answer (an unattended run) it behaves as false and says so. No profile writes "ask"; it is set by hand or in setup's interview. A present value wins over the profile. |
epicIntegrationBranches.deleteBranchAfterRelease | boolean | true | Delete the release-unit branch after a successful release. Set false to retain it. |
epicIntegrationBranches.mergedStatusName | string or null | "Review" | The status a leaf moves to when it lands somewhere that is not yet its final destination: its release unit's integration branch, a plan integration branch, or (from 3.32.0) the release train for a one-off. It has landed but is not Done until it reaches its release target; only an item whose own pull request merges into the base branch goes straight to Done. Matched by name in the item's work type's statuses, so one value works in any organization. null, or an organization with no status of that name, keeps the leaf's status; the comment and the git history still record the merge. From 3.10.0. |
epicIntegrationBranches.fastStoryMerges.enabled | boolean | Setup writes the value consistent with the chosen profile; runtime fallback is enabled | With an integration working base, locally review and merge the leaf with no item pull request. For prototype setup writes true whenever verify.typecheck is set, since Claude’s pass is the local engine and the story gate is type-checks plus the touched suites; for standard and extended it writes true when both verify.test and verify.typecheck are set, and otherwise false, naming the missing command. A local CLI engine is not a precondition under any profile. A present value wins over the profile. |
epicIntegrationBranches.fastStoryMerges.requireLocalVerifyGreen | boolean | true | Require the configured local checks before a fast merge. |
epicIntegrationBranches.fastStoryMerges.epicReleaseIsFirstCloudPass | boolean | true | Tell the release review that it must inspect the full accumulated diff. |
If the repository is public and you would rather no tracker numbers reach branch names, use an integration-branch pattern without <epic-number>, such as "<prefix>/<MM-DD-YY>/<epic-title-slug>"; the key already tolerates it.
| Key | Shape | Absent behavior | Purpose |
|---|---|---|---|
planIntegrationBranches.pattern | string with <prefix>, the date token, <plan-number> and <plan-title-slug>, e.g. "<prefix>/<MM-DD-YY>/plan-<plan-number>-<plan-title-slug>" | absent: no plan can release as one unit | From 3.30.0: the branch a plan releases its epics onto when its root's description carries the line Release scope: plan. Each finished epic's release pull request merges onto this branch instead of epicIntegrationBranches.releaseTarget; a blocker in a sibling epic of the same plan counts once it has landed there; and when nothing outside the plan's deferred container remains, one pull request takes the whole plan to the release target. The slug follows epicIntegrationBranches.slugRule. The branch is cut at the plan's first epic release and is merge-only, like an epic branch. A plan that carries the line while this key is unset stops with a config gap. |
planIntegrationBranches.example | string | absent | Descriptive only: a sample branch name. Nothing reads it. |
Plan scope is opt-in per plan: setup never writes the key unasked, plan adds the marker line only when you ask for it, and plans without the line behave exactly as before. It suits a deliberate build whose epics depend on each other. It is not a way to keep unfinished features from customers; a stored product setting does that. The contract is skills/build-item/references/plan-scope.md in the plugin repository.
| Key | Shape | Absent behavior | Purpose |
|---|---|---|---|
releaseTrain.branch | branch name, e.g. "train/release" | One-offs use baseBranch | From 3.8.0: one long-lived branch that one-off items — those with no release unit above them — land on instead of the base branch. It is created off the base branch on first use. From 3.31.0, when the configured branch is not on origin but exactly one other train/* branch is, the loop uses that one and names the rename, with the commands that perform it, instead of creating a second, empty train; with several other train/* branches it asks which one is live. |
releaseTrain.fastMerges | boolean | false: a one-off on the train takes the full pull-request path, into the train | With true, a one-off merges onto the train after the local risk check and local gate, with no pull request of its own, exactly as a fast-merged story does on an epic branch. From 3.32.0 the one-off then moves to epicIntegrationBranches.mergedStatusName (Review by default) and becomes Done only when a release ships it. |
releaseTrain.smallFixes | { "maxFiles": 5, "maxChangedLines": 500 } | absent: every fast one-off gets its own local review pass, and no landing gate applies | From 3.23.0: a fast one-off within both limits (maxFiles changed files; maxChangedLines lines added plus removed), with no binary file, nothing on the high-risk list (release.productionReview.highRiskPaths plus release.releaseBranchFixExclusions) and nothing found by its risk check, is a small fix: it skips its separate local review pass, keeps its risk check and local gate, and the train's pull request is its full review. From 3.34.0 a one-off that is not a small fix gets its full review before it lands, on your machine: review runs in LOCAL-FULL mode (Claude plus the configured local CLI engine at merge-boundary depth, the full suite as its gate, no pull request and no CI run), and the merge commit records the cycles and every finding's disposition. From 3.35.0 the landing is checked by a review receipt recorded at exactly the branch's head, so any new commit, including one that resolves a conflict with the train, needs the review again; run it yourself with /devstride:review local-full <base>. |
releaseTrain.lateArrivals | "offer" or "restart" | "offer" | From 3.23.0: what happens to a one-off that lands while the train's pull request is under review. "offer" freezes the release at its cut: the late one-off joins it only when the owner says so, and otherwise ships with the next release. "restart" absorbs it and runs the review again over the whole snapshot, until the first ready-flip or three restarts. |
Until 3.22.0 this block was called supportTrain (the support train, usually train/support). The old name, with all four keys under it, is still read when releaseTrain is absent, and /devstride:doctor notes it; a file carrying both is a config error. Train snapshots are named release-train-<date> and their pull requests are titled Release train:, so a repository whose merge rules admit only */*/support-train-* must add */*/release-train-* before updating.
The train ships only when release.mergeTrainBeforeCut is true: before each cut, release opens the train's pull request into the release source, runs the full review, the pre-ship checks and CI once, merges it, and marks every one-off it carried Done. A train configured without that key would never ship, so the loop bypasses it and routes one-offs to the base branch, saying why. A one-off whose change touches release.releaseBranchFixExclusions never rides the train either. A reviewed release unit may carry those paths onto the train (from 3.22.0): the release's exclusion check covers only work no pull request reviewed — fast-merged one-offs, direct commits and fixes on the snapshot. From 3.39.0 the review must be proven, not inferred from a branch name: a settled review posts a devstride/reviewed commit status on the final reviewed head, and the check accepts a release unit only when its merged head carries that status for that same pull request, posted by an account with admin permission on the repository. A unit without that proof is checked file by file like any other commit; units merged before 2026-11-10 00:00 UTC keep the older branch-name rule. Before any one-off merges onto the train, and before an epic releases, the loop also checks for a release hold on the item and its ancestors. Why: every merge into the base branch costs its own CI run and often a deploy; batching one-offs gives them one full review and one CI pass per release. The train is protected by this key alone — never rebased, amended or force-pushed — and release moves it forward after every release, by fast-forward or by merging the source into it.
Two optional sibling keys found in established configs are descriptive only: epicIntegrationBranches.example shows a sample branch name, and epicIntegrationBranches.fastStoryMerges.localEngines documents the expected local roster. The skills resolve actual behavior from the active settings and probes.
| Key | Shape | Default | Purpose |
|---|---|---|---|
verify.typecheck | string | none | Commands run in order during builds and before push or merge. This is the preferred form. |
verify.typecheckCombined | string | none | One equivalent fallback command, used only when verify.typecheck is absent. |
verify.test | string | none | Standard local suite. Required for setup to enable fast item merges. |
verify.testSingle | string | none | Single-spec command containing a <path/to/test> placeholder, replaced with the file to run. The story gate uses it for the touched suites. |
verify.lint | string | none | Lint command, used when the changed paths are in its scope. |
verify.testDir | string | none | Test directory used to place new specs. |
verify.skipDuringStoryBuilds | array | [] | Slow suites that run as conditional cloud CI jobs. Every entry must match a real workflow job. |
With no typecheck command, push asks instead of guessing. With no test command, setup disables fast merges; if fast merges were enabled manually anyway, the item would have review but no local test gate.
{
"name": "e2e-matrix",
"alwaysRunWhenBase": ["productionBranch"],
"manualTriggerLabel": "run-e2e",
"runWhenChangedPaths": ["apps/web/**", "packages/e2e/**"],
"ciChecksByBase": {
"baseBranch": ["E2E (PR gate)"],
"productionBranch": ["E2E (full matrix)"]
}
}
| Field | Meaning |
|---|---|
name | Display name. |
alwaysRunWhenBase | Branch roles where the suite is always required, regardless of paths. |
manualTriggerLabel | Label the loop adds when the suite is requested manually. |
runWhenChangedPaths | Globs matched against the complete final diff, including both sides of renames. |
ciChecksByBase | Required check names for each branch role. No mapping means no requirement on that base. |
An empty verify.skipDuringStoryBuilds means no slow cloud gate exists and no absent check should be awaited.
preShipChecks is an array of suites that run locally at a pull-request or production-release boundary and never appear in CI:
{
"name": "integration-suite",
"pathGlobs": ["packages/api/**", "migrations/**"],
"command": "pnpm test:integration",
"when": "perPr",
"timeoutNote": "About 25 minutes; do not run beside another test process."
}
| Field | Meaning |
|---|---|
name | Display name. |
pathGlobs | Per-PR changed-path selector. Empty means every PR. Ignored for releaseOnly, unless the entry also sets onlyWhenTouched. |
onlyWhenTouched | From 3.13.0, releaseOnly entries only: true runs the check only when the release diff touches its pathGlobs, and the release reports the skip with its reason. Absent means the check runs at every release. |
command | Command to run. |
when | perPr, releaseOnly, or always. An entry without it is never selected. |
runAt | From 3.28.0, releaseOnly entries only: "train" runs the check on the release-train snapshot before the train merges into the release source (outside release clearance when release.clearance.scope is "cut-to-deploy"), and the release does not repeat it before the production merge when it passed there on the same snapshot. Combining it with onlyWhenTouched, or setting it on any other when, is a config error. Absent, a releaseOnly check runs at the release as before. |
timeoutNote | Duration and environment guidance shown before the run. |
Entries run sequentially in array order. A red per-PR check blocks the pull request. A release check can be waived only by the owner, with the waiver recorded. Re-run them by hand with /devstride:pre-ship: --only <names> re-runs just the failed or affected checks after a fix, and --skip <name> is the owner's explicit waiver, reported as WAIVED.
Keep a suite in exactly one place: verify.skipDuringStoryBuilds for cloud CI, or preShipChecks for a local ship-boundary run.
preCommitWiringChecks is a string array of repository-specific wiring checks the build loop expects before commits. Setup leaves it [] because only the repository can name these checks.
localEnvironment describes how the repository stands up an isolated local instance, if it can. The delivery skills read it; they never guess it.
{
"localEnvironment": {
"create": "git worktree add ../<name> -b <branch> <base> && docker compose -p <name> up -d",
"recreate": "pnpm db:reset",
"recreateMode": "inPlace",
"instanceName": "cat .instance-name",
"seed": "pnpm db:seed",
"migrate": "pnpm db:migrate",
"teardown": "docker compose -p <name> down -v",
"instanceBoundTo": "directory",
"fetchOnSessionStart": false
}
}
| Field | Meaning |
|---|---|
create / seed / migrate / teardown | A command, or null when the repository has no such step. <name> (the instance), <base> (the ref to branch from) and <branch> (the new branch, in your repository's naming convention) are placeholders the tooling may need — a tool that defaults the branch to the instance name mints a nonconforming one. |
recreate | A command that genuinely returns an instance to <base>'s schema, or null. |
recreateMode | "inPlace" or "newInstance" — which of the two shapes recreate is. Required whenever recreate carries <name>. |
instanceName | A command whose output names the instance this checkout belongs to. Needed to resolve <name> in an in-place recreate; null otherwise. |
instanceBoundTo | What an instance is keyed on: directory (a second checkout gets its own database and ports, and checking out another branch inside it keeps them), branch, or none. |
fetchOnSessionStart | false by default. From 3.3.0, true has the session-start hook run a bounded, prompt-free git fetch --prune origin for the repository root and print one line only when the current branch is behind its upstream. It never blocks a session — a hung fetch is killed at its deadline and every failure stays silent — and it runs whether or not the plugin update check is enabled. Setup does not write it; turn it on by hand. It shortens the window a stale checkout can open, but the loop still fetches for itself at the start of every iteration. |
recreate is the way back, and /devstride:branch-hotfix uses it, says which path it took, and stops to ask rather than guessing when there is no safe command and the schema has diverged.recreateMode cannot be inferred from the command text — a wrapper script is opaque, and each wrong guess fails in its own way: an in-place command treated as a second instance leaves the session on the old database, while the reverse resets an instance somebody is using. instanceName matters for the same reason: nothing else in the block identifies the current instance, and guessing from a directory name resets a different one, which on a shared machine destroys someone else's data silently.
The shipped default is every command null and instanceBoundTo: "none". With that default, branch-hotfix asks before touching a database and build-item treats the current checkout as the only environment. Setup gathers candidates from compose files, devcontainers, Nix files and package scripts and asks — it never reports a command as detected, because a compose file proves a stack exists, not how your team starts it; and instanceBoundTo is always asked, because no file says whether a second checkout gets its own database.
This block tells the loop what exists — declaring an environment never makes the loop run builds concurrently. Whether two checkouts can be tested at the same time is a property of the repository, not of this block: where the test infrastructure is shared across checkouts, test execution stays serial regardless of what is configured here.
stage describes the cloud environment this checkout deploys to. The loop only ever reads it — it never creates, changes, or tears a stage down.
{
"stage": {
"resolve": "cat .sst/stage",
"productionStages": ["prod"]
}
}
| Key | Shape | Default | Purpose |
|---|---|---|---|
stage.resolve | string or null | null | A command run from the repository root whose stdout is the stage this checkout deploys to. It must print one line, and print nothing (or exit non-zero) when there is no stage; every consumer reads empty as "no stage", never as an error. Keep it cheap — it runs on a timer. |
stage.productionStages | string | [] | The stage names that are production. No name is universal — one organization's is prod, another's is live — so listing a stage here is a claim that deploying to it affects real users. |
Most repositories have no stage, and null is the honest answer rather than a gap: doctor reports the block as not applicable rather than missing, and resolve: null records that somebody looked. Setup proposes a command from the shapes it finds — an SST, Serverless, Pulumi, or Terraform layout, or a *_STAGE variable — but never reports one as detected, because finding the tooling does not tell it how your checkout picks its stage.
Three consumers use it: /devstride:release names the stage at the production gate, so the owner approves a specific consequence; /devstride:branch-hotfix says which stage the checkout points at before touching a database and stops to ask when that stage is production; and the status line renders it, in red for a production name.
localEnvironment names the local instance — this checkout's database, tables, and ports — and the loop owns its lifecycle. stage names the cloud stack this checkout deploys to; several worktrees legitimately share one, and the repository's own deploy tooling owns it.Whether the repository has a status line is not a config key: the presence of .claude/statusline.sh and a statusLine entry in .claude/settings.json is the whole state. /devstride:setup offers to write both. The optional statusLine block covers two other things.
| Key | Shape | Default | Purpose |
|---|---|---|---|
statusLine.hiddenSegments | string | [] | Segments this repository has confirmed do not apply. Use it to record a deliberate absence — not to hide a segment whose value is merely missing, which the script already omits on its own. |
statusLine.autoUpdate | boolean | true | Whether the session-start hook may refresh a copied script that still carries its managed marker. It keeps the previous copy as devstride/statusline.bak in the repository's git directory, never in the work tree. From 3.18.0 a committed copy that is only behind is left alone when the branch's upstream (or origin/<baseBranch>) already carries the newer one — the hook says to pull instead — and on a detached checkout or a base, production or protected branch; on a feature branch it is refreshed and you commit it. |
From 3.26.0 the status line is two lines, each segment led by a symbol. Line 1 says where you are: ◆ model, ↯ effort, ▣ repository, ⑂ checkout, ⎇ branch. Line 2 says what is in flight, and prints only when it has something on it: ⊞ the plugin version this session runs (dim while current, coloured with the fix when a newer copy is installed or published), ▲ stage, ⇄ pull request, ⚑ release (only while a release clearance is held, or while this machine still owes close-out work). The keys statusLine.hiddenSegments takes are model, effort, repo, checkout, branch, plugin, stage, pr and release. A segment with no value is not drawn at all, symbol included, so a repository with no stage never shows a dangling ▲. Setup writes "refreshInterval": 30 in the statusLine setting so the line redraws every 30 seconds, and doctor reports a shared setting without it. The script is repo-agnostic and identical everywhere, reading your config at runtime, so re-copying it is always safe. The script's second line carries a # ds-statusline: managed v<x.y.z> marker; deleting that line is the supported way to take the file over, and nothing replaces it afterwards.
Because a shared project setting outranks a personal one, a repository status line wins over a statusLine in your own ~/.claude/settings.json. Override it for yourself alone in .claude/settings.local.json.
| Key | Shape | Default | Purpose |
|---|---|---|---|
generated.regenCommand | string | none | Regenerate API or other derived output after relevant source changes. |
generated.paths | string | none | Generated files excluded from hand-written-code review. |
generated.toleratedTypeErrors | {file, pattern}[] | none | Narrow generated-file errors that may be tolerated. Anything else stops the build. |
Generated files are regenerated and committed separately; they are never fixed by hand.
| Key | Shape | Default | Purpose |
|---|---|---|---|
review.localCommand | string or null | null | Optional second local review engine. null means the built-in Claude pass is the only local reviewer. Naming it does not schedule it; see Delivery profile for where and how often it runs. The template may carry <context> (the skill substitutes - and sends the scope plus the cumulative ledger on stdin) or the older <base> placeholder (the ref the engine diffs against). A template with neither keeps working — --base is appended. |
review.localAssistCommand | string or null | null | A read-only second opinion the build engine may consult once for an ambiguous design, a critical contract, or a stubborn diagnosis. It is support, not a review round: it never writes, never satisfies the merge review, and never runs on routine work. |
review.adaptiveReviewerWait | boolean | absent means true | Stop waiting on a registered cloud reviewer once the wait passes that reviewer's learned latency — its 95th percentile plus a margin, learned per machine from GitHub's own timestamps — bounded below by the registration window and above by pollTimeoutMinutes, and the full timeout while the cache is cold. false pins the fixed bound. The cache is advisory, lives under ~/.cache/devstride-plugin/, and can be deleted to start cold. Setup never writes this key. |
review.localReReviewScope | "delta" or "full" | absent means delta unless the scope rule decides otherwise | The scope every follow-up cycle reviews — Claude, local CLI, and cloud alike, despite the key's local-sounding name. A follow-up reads only the changes since the previous cycle, falling back to the whole diff by a computed rule: a file the earlier cycle never touched, more than half of its lines rewritten, or a rebase. "full" pins them all to the whole diff. Setup never writes this key. |
review.localEffort | { "initial", "followUp", "safety" }, each a tier your CLI accepts, e.g. { "initial": "max", "followUp": "xhigh", "safety": "max" } | absent: <effort> follows the task and risk route | From 3.14.0: the reasoning tier the local engine's <effort> placeholder receives for each kind of round. initial is the first full round and any other full-diff run; followUp is an ordinary follow-up that reads only the fixes and the ledger; safety is a round checking the fix for a verified P1 or serious P2 (absent, it takes initial). A missing field falls back to the route. Values pass through verbatim, and each run records the tier and the field that chose it in the review ledger. Setup never writes it. |
review.localReviewerName | string | "Codex" | The name findings are attributed to in the roster and reports. Set it to whichever engine you configured. |
review.automatedReviewers | array | [] | Cloud reviewers to request. how: "requested_reviewer" (a bot requested through GraphQL by its node id) is the one request mechanism the review flow implements. Empty means no cloud wave and nothing to wait for. Each entry may be scoped to base branches and to a request policy — see Cloud reviewer entry. |
review.openPullRequestsAsDraft | boolean | true | Open pull requests as drafts in a draft-held repository. |
review.readyForReviewReleasesCi | boolean | true | Treat the ready flip as the action that releases CI. |
review.ciHeldUntilReviewSettled | boolean | true | Hold CI until review settles. All three ordering flags false means CI runs alongside review. |
review.pollTimeoutMinutes | number | Per profile: 5 (prototype) or 10 (standard, extended); setup writes the profile’s value | Bound on waiting for a cloud reviewer whose request has been proven registered (a review_requested timeline event). It does not cover the two-minute registration window — after which an unregistered reviewer is dropped for the run and reported — or the CI wait. |
review.resolveAddressedThreads | boolean | true | Reply to and resolve fixed, dismissed, or captured review threads. |
review.notifyWhenSettled | boolean | absent means off | Notify after a standalone settled review. Driven review never notifies. |
review.mandatoryLenses | {name, paths, question}[] | absent or [] means none | From 3.4.0: review lenses the repository forces on its own risk surface. A matched entry adds one focused finder to the story risk check and to the merge-boundary review, on the same footing as the forced security lens. See Mandatory review lenses. Setup never writes entries. |
Mixed draft-ordering booleans are unsupported but safe: the skills use the strictest behavior and report the mix.
The adversarial fan-out ships five generic lenses and forces exactly one of them, security, on any diff touching the authentication boundary. Every repository has at least one more surface where the same reasoning holds — transactions and durable events under a rolling deploy, money-moving code, a permissions matrix — and the plugin cannot know which. From 3.4.0, review.mandatoryLenses lets the repository name that surface and the question a finder must answer over it.
{
"review": {
"mandatoryLenses": [
{
"name": "concurrency-and-rolling-deploy",
"paths": ["backend/src/**/*transaction*", "backend/src/**/events/**", "backend/migrations/**"],
"question": "For every changed hunk: what ordering or isolation assumption does it make; what happens under READ COMMITTED; what happens while old and new revisions run side by side during a rolling deploy; which claim in the change summary cannot be proven from test or command output?"
}
]
}
}
| Field | Meaning |
|---|---|
name | Kebab-case lens name. It labels the finder, its findings, and the report line. |
paths | Non-empty array of globs matched against repo-relative paths of the hand-written files in the diff under review. Globs are anchored path patterns, never bare substrings: **/events/** matches an events directory anywhere, while events alone matches nothing. |
question | What the finder must answer for every changed hunk in the matched files. It is the finder's base question, not a hint. |
When a file in the diff matches an entry, ultracode-build's story risk check and the merge-boundary adversarial review each add one focused finder for it, carrying the entry's name as its lens and its question as its base question. It sits on the same footing as the forced security lens: the breadth ceiling and the delivery profile clamp generic finder breadth and never remove it. Findings are verified like any other — a mandatory-lens finding is not automatically P1; severity comes from the verdict. When review.localCommand uses the <context> substitution, the local engine receives each matched question as an additional hypothesis, never as a finding. Each matched entry is reported as mandatory lens <name>: ran (N findings); an entry that matched nothing is not mentioned, because "did not apply" is a different fact from "ran and found nothing". A malformed entry — missing name, paths, or question, or a non-array paths — is named once and ignored. /devstride:doctor validates entry shape and warns on a glob that would match every file. Setup mentions the key and never writes entries: only the repository knows its own risk surface, and the example above is a shape, not a recommendation. The contract is skills/ultracode-build/references/mandatory-lenses.md in the plugin repository.
The local reviewer is not tied to any vendor or model. review.localCommand is a command line, and an engine qualifies when four things hold:
PATH;<context> (preferred: every cycle receives the exact scope plus the cumulative ledger) or against a diff base via <base>;Grok, Gemini, DeepSeek, and open-weight models served locally through a runner such as Ollama are all capable of this role, as is anything reachable through an OpenAI-compatible endpoint. Name your CLI when /devstride:setup asks and it is probed, validated against the contract above, and recorded for your repository. /devstride:doctor then holds it to the same contract — it never reports an engine as wrong merely for being one it does not recognize.
The engine's result must be its findings or an explicit no-findings verdict. From 3.38.0 a crash, a kill, a timeout, a non-zero exit, or empty or unreadable output counts as a failed engine, never as "no findings", and a round in which no engine returned a result is never settled or merged. From 3.44.1 every launch has its standard input redirected (from the prompt file or /dev/null), so an engine can no longer hang waiting for input.
Two rules apply whatever the engine. Disable any agent tooling the CLI loads by default, the DevStride MCP above all: a reviewer that can reach live project data can wedge mid-review and return a clean, empty result that reads exactly like "no findings". And leave model choice to your own policy where the CLI supports it, rather than hardcoding one.
Codex is what setup offers when nothing else is chosen — a leading model whose template is verified — as a default, not a requirement:
{
"review": {
"localReviewerName": "Codex",
"localCommand": "codex exec --ephemeral --sandbox read-only -c model_reasoning_effort=\"<effort>\" -c mcp_servers.devstride.enabled=false <context>",
"localAssistCommand": "codex exec --ephemeral --sandbox read-only -c model_reasoning_effort=\"<effort>\" -c mcp_servers.devstride.enabled=false <context>"
}
}
<context> is replaced with -, and the skill sends the exact review scope plus the cumulative ledger of prior findings on stdin — which is what lets a follow-up cycle check whether a fix held instead of starting cold. <effort> is routed per task, or per kind of round when review.localEffort is set; the template deliberately omits --model, leaving model choice to your own policy. Read-only sandboxing and the disabled DevStride MCP are both load-bearing: leaving the MCP enabled can wedge the review and look like a clean, empty result.
For structured Codex review output, the catalogue also supports base mode:
"localCommand": "codex review --base <base> -c sandbox_mode=read-only -c model_reasoning_effort=\"<effort>\" -c mcp_servers.devstride.enabled=false"
<base> receives the pull request's actual base, and a template with no placeholder gets --base <value> appended. Base mode can run the first cycle, but it has no way to receive the prior cycle's dispositions: a follow-up under the codex review --base form runs against the base without the ledger and is reported as degraded, and an older base-only template skips the follow-up rather than run it blind, with Claude's contextual check in its place. Either way the review points you to /devstride:setup review.
Setup and Doctor check both local command templates against the plugin's review-engine catalogue. A known engine missing its read-only flag fails with the required correction; a command that disables or widens the sandbox fails too. An unknown engine is reported as UNVERIFIABLE, not certified read-only. The codex review form uses -c sandbox_mode=read-only; it does not accept the codex exec flags --sandbox or --ephemeral after the subcommand. Base mode has no stdin context or cumulative ledger. Setup explains that tradeoff before proposing migration and does not propose it when only one local review round is configured.
{
"name": "Copilot",
"bot": "copilot-pull-request-reviewer[bot]",
"how": "requested_reviewer",
"value": "copilot-pull-request-reviewer[bot]",
"graphqlBotId": "BOT_kgDOCnlnWA"
}
Each reviewer needs the identifiers required by its how mechanism. The skills iterate the full array. An incomplete entry can fail silently because GitHub may accept a request without registering a review event.
Two optional fields decide when a reviewer is asked. Both exist because a cloud reviewer is often billed per review, and requesting it on every round of every pull request is what drives that bill.
| Field | Absent behavior | Purpose |
|---|---|---|
baseBranches | Requested on every pull request | From 3.7.0: a list of exact branch names. The reviewer is requested only on a pull request whose base, re-read from GitHub on every review run, is one of them — ["main"] keeps it on production releases and hotfixes while the local engines cover everything else. A reviewer left out is announced as not requested, never waited on, and never counted as a failed engine. If the local engine then fails on such a pull request, no independent engine has reviewed it, so review stops for a human review. A value that is not a list of names is treated as absent, and /devstride:doctor warns about an empty list. |
requestPolicy | "every-round": requested when the pull request opens and on every follow-up cycle | From 3.8.0: "final-head" requests the reviewer once, when every other finding is settled, on the head about to release CI — and once more only after a fix commit that answered one of its own findings. A verified P1 or serious P2 still keeps opening cycles. |
| Key | Shape | Setup value or default | Purpose |
|---|---|---|---|
prBodyTemplate.sections | {heading, guidance}[] | Four standard sections | Ordered, closed set of pull-request sections. Setup adopts an existing GitHub template when you confirm it. |
prBodyTemplate.noAiAttribution | boolean | true | Suppress AI attribution in pull-request bodies. false permits it. |
commitConventions.messageFormat | string | "<type>(<scope>): <summary> <itemTag>" | Ordinary commit subject shape. |
commitConventions.reviewFixFormat | string | "fix(<scope>): <summary> [<itemNumber> review]" | Review-fix commit shape. |
commitConventions.epicMergeFormat | string | "merge: <itemNumber> [<N>] <short scope> into <epic-slug> integration" | Fast item merge subject. |
itemTagFormat | string | "[I#####]" | Item tag shape. Added only when the commit has a verified item. |
conventionsDoc | string | "AGENTS.md" fallback | Human-owned coding rules read by the build and review skills. |
lessonsDoc | string | ".claude/ds-lessons.md" | Small review-lessons store. review is the only writer; absence is valid until the first qualifying lesson. |
The lessons file is repository data. If it is created, make sure its path is not ignored.
If the repository is public and you would rather no tracker numbers reach its commit history, set itemTagFormat to ""; no item tag is then added to any commit subject, and the key already tolerates the empty value.
| Key | Shape | Default | Purpose |
|---|---|---|---|
hierarchyRoles.releaseUnit | string or null | Resolved at runtime | Parent-item type whose completion cuts a release. |
hierarchyRoles.leaf | string or null | Resolved at runtime | Executable one-day item types. |
Setup reads the real work-type hierarchy and asks you to confirm these roles. A configured type that no longer exists stops delivery; silently falling back could route planned work directly to the base branch.
| Key | Shape | Setup value | Purpose |
|---|---|---|---|
ci.workflowGlobs | string | ['.github/workflows/*.yaml', '.github/workflows/*.yml'] | Workflows inspected for draft gating. |
ci.draftGateCondition | string | "github.event.pull_request.draft == false" | Describes the condition used in your workflows; it does not install the condition. |
ci.gateJobName | string or null | null unless detected or supplied | Cheap, path-independent job used to prove the ready flip released CI. With null, the skills look for a new run at the head commit. |
ci.freezeBaseWhileReleasePrReady | boolean | ignored | Ignored from 3.8.0, whatever its value. It used to freeze the release source while a release pull request was ready. The freeze is gone: set release.releaseBranchPattern instead, so merges into the source never touch the release under review. release mentions the key when it is still present, and setup no longer writes it. |
ci.expectedRunsPerPullRequest | integer | 1 | Executed CI runs expected per workflow on a pull request. review reports one line per workflow that executed and names a second run of the same workflow, with its cause. A full-stack pull request that runs five workflows once each is correct, not an excess. |
For draft-held ordering, workflows must also subscribe to opened, synchronize, reopened, and ready_for_review.
The draft hold makes CI run once per pull request; the rest of a CI bill comes from superseded runs, production-branch pushes re-testing a tree the base branch just tested, and release pull requests re-run by a moving base. /devstride:setup ci applies the four workflow mechanics that remove those (the draft gate, per-pull-request concurrency with cancel-in-progress, a tree-identical skip on production-branch pushes, and a draft-convention check for humans) as reviewed diffs, and /devstride:ci-audit measures the result — executed runs and minutes, never raw run counts.
| Key | Shape | Default | Purpose |
|---|---|---|---|
release.productionBranch | string | "master" | Production pull-request base. |
release.releaseSource | string | "develop" | Branch promoted to production. |
release.autoDeployOnMerge | string | none; setup asks | Plain-English description quoted at the owner merge gate. |
release.releaseBranchPattern | pattern, e.g. "release/<YY-MM-DD>[-n]" | absent: the release pull request's head is release.releaseSource | From 3.8.0: cut each production release as its own protected branch from the release source (-2, -3 … on a re-cut) and open the release pull request from it, so the source keeps receiving merges while the release is reviewed; those ship in the next release. Fixes are new commits — never a rebase, amend or force-push — and a hotfix that reaches production meanwhile is merged in and re-reviewed. After the release, release syncs the production branch back into the source by pull request and deletes the release branch once both contain it. Add a matching protectedBranches entry; doctor warns when none matches. |
release.releaseBranchFixExclusions | array of path patterns, e.g. ["infra/**", "db/migrations/**"] | absent: nothing is refused | Paths a fix commit on a release branch may not touch — deploy configuration and migrations. Such a fix is refused: merge it to the source by a normal pull request, abandon the release branch and re-cut. The same list keeps one-offs that touch those paths off the release train. |
release.mergeTrainBeforeCut | boolean | false: nothing is merged into the source before the cut | With releaseTrain.branch set, every release first merges a snapshot of the train into the source through its own fully reviewed pull request. See Release train. |
release.migrationRenumber | { "sqlGlobs": [...], "metaGlobs": [...] } | absent: a renumber is refused like any other migration change | From 3.22.0: merging the source into the train snapshot can force a reviewed migration to take a new number. With this key set, a commit whose only excluded-path changes are that migration file deleted and re-added under a new name with byte-identical content (sqlGlobs), plus migration metadata files (metaGlobs), is allowed, and the release pull request reports it. |
release.holdTimeZone | IANA time-zone name, e.g. "America/Chicago" | "UTC" | From 3.36.0: the zone a Release hold: not before <date> line is read in, so every machine lifts a hold at the same moment. See Release holds. |
release.productionReview | { "reviewIdenticalTree": false, "highRiskPaths": [...], "highRiskEngine": "codex" } | absent: every engine reviews the production pull request | From 3.13.0, review once. A release whose tree equals the one fully reviewed on its way into the release source gets no second review. The exception is one pass of highRiskEngine over the files it changes under highRiskPaths. A tree changed by a fix or a hotfix merge gets a follow-up review of that difference. With the release train as epicIntegrationBranches.releaseTarget, the train's pull request then reviews only the one-offs no pull request reviewed. |
release.syncWorkflow | a workflow file, e.g. "sync-master-into-develop.yaml" | absent: the close-out opens its own sync pull request | From 3.13.0: a workflow that merges the production branch back into the source after every push to production. The close-out waits for it instead of opening a second one, and stops with its link if it is left open. |
release.deployApproval | string or null | null | Optional command for a production deploy that waits for an approval (a protected environment or a manual gate). Your yes to the release is also the approval of its deploy, so the release skill runs it right after the merge, with the merge commit in RELEASE_COMMIT: exit 0 means approved and read back, 2 means the deploy is not waiting yet (it tries again, a bounded number of times), anything else stops the release. You are never sent to the provider's page to approve. When null, the deploy runs on its own. Set it by hand; setup does not ask for it. Since 3.15.0. |
release.deployVerification | string or null | null | Optional command that exits 0 only when production serves the merge commit in RELEASE_COMMIT. The release skill runs it before writing a release note; when null, it asks the owner to confirm the deploy. |
release.devDeployVerification | string or null | null: the release does not wait for a development deploy | From 3.22.0: an optional command shaped like deployVerification, run with RELEASE_COMMIT set to the head the release merges from the release source. Exit 0 means that commit is deployed to your development environment, 2 not deployed yet, 1 the development deploy failed. When the release touches a release.releaseBranchFixExclusions path, the release runs it after your yes and before the production merge, polling every 60 seconds for up to 45 minutes on exit 2; exit 1 or the time limit stops the release, so production is never merged over a failed development deploy. With a standing yes configured, the wait runs before the standing-yes check whatever the release touches. |
release.postDeployCheckSkill | string or null | null | From 3.3.0: the name of a local skill (.claude/skills/<name>/) that checks production health once the deploy is confirmed. null means no check is registered and the close-out reports post-deploy health: not configured. Setup does not write it. Re-run it alone with /devstride:post-deploy. |
release.classifySkill | string or null | null: every release is FULL | From 3.20.0: a local skill that says whether a release is light or full. Called with classify and { "productionBranch", "releaseSource", "head" } at the start of the release and again right before its pre-ship checks, at the head they test. Its first line must be exactly RELEASE CLASS: LIGHT or RELEASE CLASS: FULL, then a reason; anything else, a failing run or a missing skill is FULL. The class prints in the release summary and reaches every pre-ship command as RELEASE_CLASS=light|full. What a light release may skip is your repository's own rule. Step: /devstride:classify-release. |
release.preMergeSkill | string or null | null: the summary says pre-merge production check: not configured | From 3.20.0: a local, read-only skill that says whether production needs anything before the release merges — a migration checkpoint, a backfill, a setting. Called with check and { "productionBranch", "releaseSource", "head", "pullRequest": { "number", "url" } } once the release pull request is green and before you are asked for the go-ahead. First line PRE-MERGE: CLEAR, PRE-MERGE: HOLD (the release stops and names the action) or PRE-MERGE: NOT RUN (reported, and you are asked whether to proceed; never a pass). Step: /devstride:pre-merge-check. |
release.clearance | null, { "provider": "github" } (optional ref, staleMinutes, waitMinutes, and from 3.16.0 phaseBudgetMinutes), from 3.21.0 { "provider": "devstride" } (optional credentialsFile, staleMinutes, waitMinutes, phaseBudgetMinutes), or { "commands": { … } } (optional phaseBudgetMinutes from 3.27.0); every form takes an optional scope from 3.27.0 | absent: nothing is claimed | From 3.11.0: one production release at a time, for every machine and account that releases the repository. scope is "release" (the default) or "cut-to-deploy". See Release clearance. Setup does not write it. |
release.autoStart.enabled | boolean | false: a release starts only when someone runs /devstride:release | From 3.29.0: releases start themselves. A one-off landing on the release train, a release unit's release merging onto it, and a release finishing its close-out each check whether the train holds work the release source does not, and if so claim the one-winner release-train claim and run release in that session. A session that loses the claim carries on with its own work. There is never a second release in flight and no batching timer. Needs a claims block; without one /devstride:doctor reports an error and nothing starts. See Releases that start themselves. |
release.backstop | { "mode", "maxWaitMinutes" } | absent, or mode "off": no backstop check runs | From 3.45.0: a check run on a schedule (/devstride:release backstop) starts a release when work has waited on the release train too long and nothing is releasing it. mode is "off" (the default), "shadow" (records in the claims store what it would have started and changes nothing) or "live" (starts the release). maxWaitMinutes is a whole number of minutes from 15 to 1440, default 120: how long the oldest landing on the train may wait, counted from when it was merged onto the train. No other keys apart from _ notes. Needs a claims block, and with a claims block of your own commands, claims.commands.get; /devstride:doctor reports either gap as an error, and warns when there is no release train. See Release backstop. |
release.lightRelease.standingYes | boolean | false: every release waits for the owner's go-ahead | From 3.29.0: the owner's standing yes for light releases; needs release.classifySkill. A release the classify skill calls light, whose tree is identical to the reviewed train, merges and has its deploy approved without an in-the-moment yes when every condition holds (below). A full release, a changed tree or any failed condition waits for the owner as before, unless release.fullRelease (from 3.37.0) covers it. |
release.fullRelease | { "standingYes", "ownerDecision", "migrationGlobs", "approvedMigrations" } | absent: a release that is not light waits for the owner's go-ahead | From 3.37.0: the owner's written standing yes for releases of any class; needs release.clearance, since without it no release is ever on final and the route always asks. standingYes turns it on (default false); ownerDecision is the date the owner wrote it (YYYY-MM-DD), quoted on every merge it makes; migrationGlobs lists the paths that count as migrations (patterns as in branch matching: * within one path segment, ** across segments); approvedMigrations lists the migration contents the owner approved, each { "blob", "path", "item", "approved" }, where blob is the file's git blob id. An absent or invalid ownerDecision, or an absent or empty migrationGlobs, makes the route ask. /devstride:doctor warns when the yes cannot take effect and refuses a malformed approval. See Releases that start themselves. |
releaseTower | { "overrideLabel": "release-tower-override", "hotfixPattern": "*/hotfix/**" } | those two defaults | From 3.11.0: read by the release-tower GitHub check and by the clearance status. overrideLabel passes a pull request into the production branch that an owner approved by hand; hotfixPattern names the heads that are never held. |
The plugin does not know what "healthy" means for your production system — alarms, dead-letter queues, error rates, a synthetic transaction — so, exactly as with the documentation hooks below, it holds one fact: the name of a local skill that does. The release skill invokes that skill once, after the production deploy is confirmed and before documentation, release notes, and the close-out (with release.clearance.scope: "cut-to-deploy", after the clearance is handed back, as the first owed item, posting its verdict as the release/post-deploy commit status), as check followed by a fenced JSON payload of productionBranch, mergeCommit, and deployConfirmedAt.
The skill's first line must be exactly POST-DEPLOY HEALTH: PASS, POST-DEPLOY HEALTH: FAIL, or POST-DEPLOY HEALTH: NOT RUN, followed by evidence lines that each name the command that produced them. PASS continues and carries the evidence into the close-out. FAIL stops the release and asks the owner for a rollback decision — it never continues to documentation or notes on its own. NOT RUN (missing credentials, an unreachable endpoint) is reported as this-run degradation and the owner is asked whether to proceed; it is never a substitute for FAIL. /devstride:doctor checks that a configured name resolves to an existing skill. The full contract is skills/release/references/post-deploy-check.md in the plugin repository.
When more than one machine, person or agent releases the same repository, set release.clearance so only one release is in flight at a time. /devstride:release then claims clearance before it touches the release train or cuts anything (with scope: "cut-to-deploy", just before it cuts; see below). A second release that asks is told who holds it, on which machine and in which phase, and waits; because a release ships everything on the release source at the cut, the next one carries its work. The holder records each phase as it goes. From 3.16.0 it hands clearance back as soon as the next release could safely start: once the post-deploy check has passed, the production branch is synced back into the release source, the release branch is deleted and the release train is level. Documentation, owed customer replies, local teardown and any release note then run in the same session after the hand-back, and status lists them as Close-out owed on that machine until each is done; before 3.16.0 the hand-back was the last act of the close-out. A failed check keeps the clearance. Nothing ever holds up a hotfix.
Holding it only from the cut to the deploy (scope: "cut-to-deploy", from 3.27.0). The release merges the release train into the source — its review and its one CI run — without clearance, claims clearance just before it cuts the release branch, and hands it back as soon as the deploy is confirmed, the production branch is synced back, the release branch is deleted and the train is level. The post-deploy check then runs after the hand-back, as the first owed item, and posts its result as the release/post-deploy commit status on the production merge commit, which every machine can read. The next release may cut, review and test meanwhile, but it does not merge into the production branch until that status is success, unless the owner overrides it in words recorded on the pull request. A session that stopped after the hand-back leaves the status pending; any session finishes it with /devstride:release post-deploy only. Hotfixes are never held by it. The default, "release", keeps the older order: claim before the train, hand back after the post-deploy check, and no status is posted.
github provider keeps the clearance on GitHub, in a git reference that is neither a branch nor a tag, so every machine with gh signed in and push access sees the same one. Every change to it is a compare-and-swap, so two machines can never both win it. A claim starts a small background keeper that renews the clearance for as long as the claiming session is running.devstride provider (from 3.21.0) keeps the clearance in DevStride instead, as an agent claim of kind release-tower keyed by the repository, which lapses at staleMinutes if its keeper stops. It behaves exactly like github: the same verbs, verdict lines, exit codes and status --json, and it still reads pull-request facts through gh. It signs in with a DevStride API key whose user holds the MANAGE_AGENT_CLAIMS permission (API Keys group of its role), taken from DEVSTRIDE_API_KEY, DEVSTRIDE_API_SECRET, DEVSTRIDE_ORG_ID (and optionally DEVSTRIDE_ORG_SLUG, DEVSTRIDE_BASE_URL) in the environment, or from a KEY=VALUE file named by credentialsFile. That file must be your own regular file with no group or other access (chmod 600); any other is refused. The key, the secret and the session's identity are never printed.staleMinutes, default 20 — is taken over by the next release when its pull request was never opened or was closed unmerged. When its pull request is still open, or merged but never closed out, the release asks you before adopting it and resuming where it stopped; it is never deleted silently.phaseBudgetMinutes (defaults: pre-ship 120, deploy 60, close-out 45 minutes; 0 or null switches a phase's alarm off, and a phase not named has none — review and train wait on people and CI, and from 3.33.0 final, the wait for the owner's go-ahead, is recorded as its own phase so it no longer counts against pre-ship). status, every BUSY line and the status line show it as STUCK, naming the holder's session and machine. It is an alarm, never a takeover: a stuck clearance is adopted only on the owner's yes and their word that the original session has stopped (adopt --yes --original-stopped). A release waiting with claim --wait stops once (exit 5) when it finds the holder stuck, so it can tell you, and then waits on with claim --wait --ignore-stuck.CLEARANCE_HOLDER_TOKEN when set (from 3.20.0; the older DEVSTRIDE_LEASE_TOKEN is still read when it is unset), else the agent's own session id. A plain terminal with neither gets a one-time token printed to export as CLEARANCE_HOLDER_TOKEN. The identity command prints this session's holder, so any tooling of your own that asks "does this session hold clearance?" (a merge guard, for example) should use it, or read CLEARANCE_HOLDER_TOKEN first by the same rule.provider, give five shell commands under commands — claim, status, heartbeat, release and adopt — that follow the same contract, and optionally a sixth, owed (from 3.16.0); without it the release names its owed close-out work in its recap instead. A block with both provider and commands, or a provider other than github or devstride, is a config error that /devstride:doctor reports.⚑ release segment — the release branch, who holds it and its phase, with STALE past the stale threshold and STUCK past the phase budget — while a clearance is held; with nothing held it shows close-out owed while this machine still owes close-out work, and nothing otherwise./devstride:setup ci offers the release-tower check. On every pull request into the production branch it passes a hotfix and the oldest open release pull request, holds a later release with "… is on final; this release waits" until the first merges or closes, and tells any other branch to retarget. It runs from the repository's default branch, so a pull request cannot edit its own gate. Make it a required check on the production branch's ruleset once it has posted green on one real release — then not even an administrator can land a second release beside the first.The full contract is skills/release/references/clearance.md in the plugin repository.
From 3.29.0, with a claims block configured, every release — started by hand or not — first claims the release-train claim (kind release-train, keyed by the repository, claims.expiryMinutes["release-train"], default 30 minutes), before it opens or adopts the train's pull request and before it claims clearance, and keeps it alive through every wait. It hands the claim on once the release branch is cut under clearance, so the next release's train phase can run while this one deploys. A claims outage never lets a release carry on without it: an automatic start does nothing, and a hand-started one stops and names the outage.
release.autoStart.enabled adds the three triggers in the table above. A release that started itself and cannot merge on the standing yes stops at the owner's go-ahead, holding clearance, and sends one notification naming the release, why it is waiting and its pull request.release.lightRelease.standingYes merges a light release without asking only when all of these hold: a classify skill is configured and calls it light; its tree is identical to the latest reviewed train merged into it; every required check is green; no review thread is unresolved; every pre-ship check passed and none was waived; the pre-merge check is clear; the development deploy check, when configured, has passed; the previous release's post-deploy check is green; and the release is on final in the tower. The release then records one comment on its pull request saying it merged on the standing yes.release.fullRelease.standingYes (from 3.37.0) merges a release of any class without asking when the same conditions hold, with one difference and one addition: its head must be exactly the reviewed head (or review's same-tree re-trigger commit) rather than identical to the train, and every file the release adds or changes under migrationGlobs must have its exact content listed in approvedMigrations. Add an approval only on the owner's own words, in a commit of its own; renaming or renumbering a file keeps its approval, any edit to its content needs a new one. A new, edited or deleted migration without an approval, a waived pre-ship check, a pre-merge hold or any other failed condition waits for the owner.The full contract is skills/release/references/auto-start.md in the plugin repository.
From 3.45.0, release.backstop makes sure work that landed on the release train never waits indefinitely because no session noticed it. It does not delay, cap or replace the releases above: those still start whenever work is ready. The backstop is a check you run on a schedule, by hand or from a scheduled session (for example /loop 10m /devstride:release backstop); a dispatcher can run skills/release/scripts/backstop.py due directly.
Each check acts (starts a release in live, records one in shadow) only when all of these hold:
mode is shadow or live, a claims block is configured, and the train holds work the release source does not.maxWaitMinutes. The wait is counted from the time git records for that landing's merge, so every machine computes the same wait.release.clearance is set, clearance reads free. If it cannot read the pull request list or the clearance status, it skips.Otherwise it does nothing and says why. Machines checking the same waiting work at the same time compete for one claim in the claims store, keyed by the oldest waiting landing, so only one of them acts. That claim is never renewed: it lapses after maxWaitMinutes, so each piece of waiting work gets at most one start per window. If the release it started stops early (a hold, a red check, your no), the backstop tries again at most once per maxWaitMinutes while the work still waits and nothing else is releasing it.
shadow records what the check would have started, in the claims store, and changes nothing: no train claim, no clearance, no branch, no pull request. List the release-train claims whose key starts with <owner>/<repo>@ to read the records. Nothing is written to your repository.live starts the release through the same path as an automatic start, so the unattended stop and the standing yes above apply. Switch it on only after you have checked the shadow records over a representative period: one record for each piece of waiting work, at the right wait, and none while a release was in progress.off, the default, is also the way back. The full contract is skills/release/references/backstop.md in the plugin repository.
From 3.36.0 a hold is data on the item, never a message or someone's memory. One line in an item's DevStride description, usually the epic's, keeps that work off the release path:
Release hold: not before 2026-11-09 lifts at midnight that day in release.holdTimeZone (UTC when unset).Release hold: not before 2026-11-11T08:00-06:00 lifts at that instant.Release hold: after I20101 is live lifts once I20101 is deployed and checked: with release.clearance.scope: "cut-to-deploy", its production merge (or a later one) carries a successful release/post-deploy status; other scopes count the merge and say so.A line that does not parse holds, naming the item and the line. Remove the line to lift a hold early; that edit is the owner's record. The loop reads the item and every ancestor. build-item checks before a one-off merges onto the release train or the base branch, and before an epic releases; held work waits on its own branch. release checks every item before the train snapshot and before the cut, and stops naming the held item; taking work back off the train is the owner's call. The contract is skills/build-item/references/release-holds.md in the plugin repository.
| Key | Shape | Default | Purpose |
|---|---|---|---|
docs.updateSkill | string or null | null | Name of a local skill (.claude/skills/<name>/) that updates your documentation for a shipped delta. null means no documentation system; the docs phase reports itself skipped. |
docs.releaseNotesSkill | string or null | null | Name of a local skill that writes and publishes a release note. Used only when you pass --release-notes to the release skill. |
docs.knowledgeBaseSyncSkill | string or null | null | From 3.20.0: a local skill that refreshes a knowledge base (a help centre's copy of your docs) after the documentation was published live. Called with sync and { "docsOutcome", "live" } right after the docs update and only when it published; owed as knowledge-base at the release's hand-back until it runs. First line KNOWLEDGE BASE SYNC: DONE, CURRENT or FAILED; a failure never undoes the documentation push. A bare run is the read-only check. Step: /devstride:sync-knowledge-base. |
docs.updateOnEpicRelease | boolean | false | Also run the docs skill when a release-unit pull request merges, not only at the production cut. |
The plugin never edits documentation itself. /devstride:setup asks where your documentation lives, how it is updated, and how release notes are pushed, then scaffolds the two local skills from its templates and writes only their names here. Each skill accepts update (docs) or publish / draft (notes) with a structured delta payload, and a read-only check mode that setup and doctor run. Core documentation is updated by default on every production release (no docs suppresses it); release notes are written only when you pass --release-notes, and only after the production merge is confirmed and the deploy verified — nothing in the loop decides that a release deserves a note. From 3.20.0 the docs step reports what really happened: CURRENT when nothing needed to change, PUBLISHED only on evidence the docs are live, and STAGED for a draft or a docs pull request waiting on the owner, which the recap names as an owner action. A failed docs, knowledge-base or release-notes run stays owed until it succeeds, and each step can be re-run by name (/devstride:update-docs, /devstride:sync-knowledge-base, /devstride:write-release-notes).
release.docsRepo (versions before 1.0.0) is deprecated: the release skill reports it and runs without docs; /devstride:setup docs migrates it into a local skill.
From 3.41.0 build-item tells an item's author when a change could cost money, cut someone off or break a caller. Once per item, on the final reviewed diff and just before the merge, it checks for four consequences: new billable infrastructure, removing something callers still use, removing someone's access, and a change that could break a published interface (an API, webhook, tool, command or documented URL). Each finding names its category, the file and the changed lines, and one plain sentence on who or what is affected. When there is one, the loop posts an internal DevStride comment on the item that @-mentions the item's creator, and adds a line to the run's recap. It is a notice, never a gate: the build, review, merge and release carry on. The same notice is never posted twice, and an earlier notice the final change no longer supports is withdrawn. An epic's release checks the release unit too, and the production release repeats every notice it carries in the recap you see before your yes, after checking each one still holds.
| Key | Shape | Default | Purpose |
|---|---|---|---|
consequenceNotices.enabled | boolean | true | false turns the whole check off: no notice is posted and none is repeated. |
consequenceNotices.notify | string of DevStride users (name, username or email) | [] | People mentioned on every notice beside the item's author. One that does not resolve is left out and named in the recap. |
consequenceNotices.categories | { "id", "title", "means" }[] | [] | Your repository's own categories, added to the four defaults. id is lower-case words joined by hyphens, unique, and never a default's id; title is the notice's one-line heading (at most 80 characters); means says in plain words what counts, and the agent judges the diff against it. |
An absent block means on, with the four default categories, notifying the item's author. /devstride:doctor checks the block. The contract is skills/build-item/references/consequence-notices.md in the plugin repository.
From 3.21.0, build-item can claim each story before it starts it, so two agents on two machines never build the same one. Claims live in DevStride or behind your own commands. Without a claims block nothing is claimed and nothing changes.
| Key | Value | Default | What it does |
|---|---|---|---|
claims | null, { "provider": "devstride" }, or { "commands": { "claim", "heartbeat", "release", "get"?, "list"? } }; both forms take an optional expiryMinutes | absent: no claims | provider: "devstride" uses the agent's own DevStride MCP connection; its user needs the MANAGE_AGENT_CLAIMS permission (API Keys group of its role). commands runs your own claim store: each command gets <kind> <key> and its options (claim: --purpose, --phase, --expiry, --takeover; heartbeat: --phase; release: --outcome; list: --kind), the session's identity in CLAIM_HOLDER (never on the command line), and answers with a verdict on stdout's first line (WON, LOST, OK, NOT HOLDER, ABSENT, FORBIDDEN, UNREACHABLE, ERROR) and exit 0 won or ok, 2 lost, 4 not the holder, 1 anything else. Giving both forms, an unknown provider or a missing command is a config error. |
claims.expiryMinutes | { "<kind>": minutes }, e.g. { "story": 240 } | story 240, release-train 30; any other kind, the server's default | How long a claim lives without a heartbeat. A value outside 1 to 1440 is a warning and the default stands. The release permit's own claim is not set here: it lasts release.clearance.staleMinutes. |
How the loop uses them:
/clear) counts as another holder: wait out the expiry, or the owner releases the claim.done. A stop releases nothing itself: the claim expires, or a presence command releases it when the session ends, so a person can resume the story without a takeover.DEVSTRIDE_MACHINE_NAME when your machine setup sets it, else the host name without .local, lower-cased with other characters turned to hyphens; the session name is Claude Code's own name for the session, else DEVSTRIDE_SESSION. Release clearance and session presence use the same machine name.The full contract is skills/build-item/references/story-claims.md in the plugin repository.
From 3.42.0 every running session can report itself, not only the ones holding a claim, so a view of who is working shows a session that is reviewing, waiting on tests or waiting for its person. The plugin contacts no tracker for this: it runs one command your repository names, and what a report means, where it is stored and when it expires are up to that command.
| Key | Shape | Default | Purpose |
|---|---|---|---|
presence.command | string | absent: nothing runs | Your repository's own command, run from the repository root through the shell for at most 20 seconds, never on the hook's own clock. An absent or null block, or a blank command, runs nothing and writes nothing. |
presence.intervalMinutes | integer, 1 to 60 | 5 | How often a small per-session keeper reports while the session's Claude Code process lives. A value out of range reads as 5, and doctor warns. |
The command runs at session start (PRESENCE_EVENT=start, state starting); on a prompt (beat, working, when a minute or more has passed since the last report; start when the session has not reported yet or has ended); on a tool use while the session is starting or waiting (beat, working); when a turn finishes and Claude waits for its person (beat, waiting); from the keeper every interval (beat, the latest state); and at session end (end, ended, with PRESENCE_END_REASON such as clear). When the keeper finds the session's process gone it reports end with reason gone. A state change within 30 seconds of the last report is held and carried by the next one. The command receives PRESENCE_EVENT, PRESENCE_STATE, PRESENCE_SESSION_ID, PRESENCE_MACHINE, PRESENCE_CHECKOUT, PRESENCE_BRANCH, PRESENCE_ITEM (an item number the branch name carries as its own segment, else empty), PRESENCE_PLUGIN_VERSION, PRESENCE_INTERVAL_MINUTES, PRESENCE_END_REASON (on end only), PRESENCE_AT (when the report was queued, epoch milliseconds), PRESENCE_ACTIVE_AT (from 3.44.0, the session's last activity, epoch milliseconds), CLAUDE_CODE_SESSION_ID and CLAUDE_PID.
Rules your implementation should keep:
end, so a report not renewed within a few intervals means the session is gone.working report whose PRESENCE_ACTIVE_AT is long past is hung, or in one long command, because activity is stamped after a tool use, not before.Presence is separate from activeAgents, which marks plan roots during build runs only. The contract is skills/setup/references/session-presence.md in the plugin repository.
From 3.25.0 the build loop can put the plan root it is working under on a shared board and run your own start and end commands, so the team sees which plans agents are working on. Only /devstride:setup agents writes this block, and it is the one setup mode that writes to DevStride: it reads first, shows every change, waits for a typed yes, then creates or adopts the board, the tag, the tag's place in every plan-root type's tag group and a shared table view. /devstride:doctor agents checks it read-only.
| Key | Shape | Default | Purpose |
|---|---|---|---|
activeAgents.boardId | string or null | null | The board plan roots are placed on. null means not adopted yet: the loop places no root until setup agents sets it, but the commands still run. |
activeAgents.tagName | string | "agent active" | The tag that marks a root an agent is working under, allowed on every plan-root type. |
activeAgents.tagColor | string | "green" | The tag's colour. |
activeAgents.staleMinutes | positive integer | 20 | Minutes without a heartbeat after which your presence implementation treats a session as gone; exported to both commands. |
activeAgents.commands.start | command containing <root> | none | Run once per build run, right after the root is placed. <root> is replaced only with an item number. |
activeAgents.commands.end | command, <root> optional | none | Run at every terminal exit: plan complete, no buildable story left, an explicit stop, an unrecoverable error. A crash runs no end; your own expiry covers it. |
Both commands receive ACTIVE_AGENTS_ROOT, ACTIVE_AGENTS_TAG and ACTIVE_AGENTS_STALE_MINUTES, run from the repository root with a 10-second limit, and fail open: a failure is one line in the progress table and never blocks a story. Only the plan root is ever moved onto the board, once per run, with a comment naming the board it came from; never a story. A one-off has no plan root and does nothing here. An absent or null block writes nothing to DevStride for this feature and runs nothing. The contract is skills/setup/references/agents-mode.md and skills/build-item/references/active-agents.md in the plugin repository.
| Key | Shape | Default | Purpose |
|---|---|---|---|
pool.checkout | command with <member> and <purpose>, e.g. "ds pool checkout <member> --purpose <purpose>" | null | From 3.20.0: your repository's own command for leasing one of a fixed pool of checkouts. Exit 0 means this session now holds it, exit 2 that another session does, anything else an error. build-item leases once per run and keeps the checkout across items. Step: /devstride:lease-checkout. |
pool.checkin | command with <member>, e.g. "ds pool checkin <member>" | null | From 3.20.0: returns the checkout. Exit 0 means returned; anything else is a refusal that is quoted and never retried blindly. Step: /devstride:return-checkout. |
Set both or neither: one alone would take a lease nothing returns, so the validator and /devstride:doctor report it as an error and both steps refuse to run. With neither set, build-item keeps its generic lease rule. The contract is skills/build-item/references/checkout-pool-commands.md in the plugin repository.
plugin controls the session-start version check.
| Key | Shape | Default | Purpose |
|---|---|---|---|
plugin.updateCheck | boolean | true | Compare the version this session is running against the newest release at every session start. Silent when current or offline; one line with the exact update commands when behind. |
plugin.autoUpdate | boolean | Setup writes true; an absent plugin block means false | Apply a newer release on disk at session start. Session start is the only moment an automatic update is applied — a mid-loop update would change skill behaviour between build steps — and it only ever touches an install scoped to this repository. A shared user-scope copy is handed to /devstride:update, an administrator-managed one is left alone, and an ambiguous one goes to doctor. |
plugin.pin | string or null | null | Hold a version deliberately. The check reports "pinned at X, newest is Y" once and never nags. |
The check reads the version the running session loaded, not the version on disk, so it reports exactly the drift claude plugin list cannot see. It never blocks a session and never fails one. To update on demand, run /devstride:update, which resolves the exact installation that loaded it and verifies the result. After a verified change, /reload-plugins is usually enough; restart only if reload is unavailable or fails. From 3.26.0 a running session also hears about a newer plugin: every prompt refreshes the newest-release record in the background when it is more than 30 minutes old, and when the session runs an older plugin than it could, Claude tells you once per session for each version (a newer copy is installed: type /reload-plugins) or asks you (a newer release is published: on yes it runs /devstride:update). It never does this on a /loop or autonomous wakeup, and in a repository with plugin.pin it never offers an update, only a reload onto the pinned version. It changes nothing on its own; automatic updates still happen only at session start. Set plugin.updateCheck: false or the environment variable DEVSTRIDE_PLUGIN_UPDATE_CHECK=0 to disable both, for CI or headless runs. /devstride:doctor reports when it last ran and what it found.
After editing:
/devstride:setup validate
/devstride:doctor
Setup validates the config’s commands, branches, tools, engines, roles, lessons path, and CI consistency. Doctor checks the surrounding installation and reports exact fixes without changing anything.
Both run the config against the published schema (from 3.19.0). To run the same check yourself, from a clone of the plugin at the release you use:
python3 skills/doctor/scripts/validate-config.py /path/to/your/repo/.claude/ds-config.json \
--schema schemas/ds-config.schema.json
It prints each error (a wrong shape, pool.checkout without pool.checkin) and each warning (an unknown key, with the key you probably meant), and exits non-zero on an error. From 3.20.0 doctor also checks every skill-shaped hook in one pass: unset is not applicable, a named skill must exist, and only the read-only check of the documentation and knowledge-base skills is run.
| Key | Type | Default | Behavior |
|---|---|---|---|
session.jobClassGate | boolean | true | Keeps authoring commands (setup, plan, ci-audit, rebalance, rationalize-gantt, comprehend-plan) separate from execution commands (build-item, pr, review, release, push, create-story, create-defect, insert-story, insert-defect) in a Claude Code session. Run /clear when switching classes. From 3.18.0 doctor and update are neutral: they never arm or trip the gate, so running Doctor first never blocks the build that follows. |
defects.deferredContainerTitle | string | "Deferred" (it was "Deferred defects" before 3.24.0) | Names the one container directly under the plan root that holds deliberately postponed work worth filing: a bug through create-defect deferred <item#>, and from 3.24.0 any other follow-up (tech debt, a clean-up, hardening, a dated after-deploy step) through create-story deferred <item#>. A review finding below the bar (not a P1, not a security finding, not both likely to happen and material) is dismissed with its reason, never filed (from 3.10.0). |
defects.deferredContainerLegacyTitles | string | ["Deferred defects"] | From 3.24.0: earlier titles that still identify the container, so renaming the title never creates a second one. The built-in Deferred defects is always matched; a configured list only adds to it. Titles match after trimming, collapsing whitespace and ignoring case. An older plugin ignores this key and looks only for its own default, so a repository that sets either key, or relies on the new default, needs 3.24.0 or later. |
The session gate allows one build loop to work through multiple stories. For an intentional exception, pass --same-session, set session.jobClassGate: false, or set DEVSTRIDE_SESSION_GATE=0. The hook fails open on errors.
Deferred items link back to the reviewed item with a related-to relationship. They have no execution-order prefix, dependency-chain splice or delivery phase; the loop neither selects them automatically nor treats their container as a release unit, though an item there that you name by number is still built, as a one-off. rationalize-gantt dates each open one after the plan's last value leaf, and when a plan reaches zero remaining stories build-item's closing report lists what is still open in the container. If two containers match, the lowest-numbered one is used and the others are reported; a closed container is reopened and reused rather than duplicated. Newly discovered scope that belongs in the active plan still goes through insert-story.