Repository navigation
Releases
v0.7.1
Upgrading from 0.6.1: see
docs/migrations/v0.6.1-to-v0.7.1.md.
There is no 0.7.0 release. The v0.7.0 tag was pushed, its check failed on Windows before
anything was built, and a tag here cannot be moved, so these changes are first released as 0.7.1.
Added
- The loop decides implementation questions itself and stops only for product ones.
docs/the-loop.mdsays which is which.sdlc deciderecords an implementation decision as a
decisionevent in the gate record and in the story'sDECISIONS.md, which only the tool
writes, and refuses a malformed call with the newSDLC-E0094.sdlc loglists decisions,
sdlc ackcovers them,sdlc trace --allcounts them per story, andsdlc escalatetakes
product_decision. A reviewer that blocks for themax_rounds-th time sends the gate to its
arbiter,<role>-arbiter, staffed one step up, whose review stands for the role until a person
answers. Breaking:sdlc status --jsongainsdecisions_unread,sdlc review add --jsongains
arbiter, and a reviewer at its limit no longer hands the story to a person while its arbiter
has not ruled. - Tests are reviewed before they are frozen. A new
sdlc:test-revieweragent, the thirteenth,
reads the test files at Gate 3, and its approval is tied to their names and content, so a change
to either makes it stale. At its limit the tests gate goes totest-reviewer-arbiter. Breaking:
sdlc freezewaits for a current review from it wherever it is enabled, withSDLC-E0029or
SDLC-E0030, anSDLC-E0030for a gate that has gone to its arbiter names the arbiter, and
sdlc review list --jsongainsgone_to. An extending freeze after a test was renamed only by
case, on macOS or Windows, no longer locks up. - A story pauses before its commit for the paths it touches, not only for its tier.
human_gates.pre_commit_pause_pathslists globs, and the commit gate, the hook and the landing
pause where a changed, moved, deleted or untracked file matches one, reading the main
checkout's, the story checkout's and the base commit's configuration together so that no copy
can narrow a pause. A pass with no pause recordslanded_without_pause, whichsdlc logshows
andsdlc ackmarks read. Breaking: theSDLC-E0037andSDLC-E0075texts name a path as well
as the tier,sdlc status --jsongainspre_commit_pause, andsdlc initwrites the key.
Changed
- Breaking: the tests and checks run once per tree, at Gate 5.
sdlc gate implementation pass
runs the configured commands itself, under a run lock, and records the result against the tree
hash, the commands and the thresholds; a failed run is refused with the newSDLC-E0095, which
names its log. The verifier cites the recorded result,sdlc statusshows it, and the landing
reuses it where the tree is the one measured, so a story no longer runs its suite up to four
times.sdlc freezerunscommands.test_filesover the new and changed tests only, naming them
inSDLC_TEST_FILES, and proves they fail against the code as it is; withtest_filesempty it
runscommands.test. Because the recorded result stands in for a run, a new shell rule refuses
a line that changes the environment beforesdlc freezeorsdlc gate implementation pass;
what it does not hold is listed indocs/enforcement.md. - Each command and hook call keeps git's answers and the files it read for as long as it runs. A
story's walk runs about half the git processes it did, and the hook's events allocate about
half as much on a first call.
Fixed
- A person's
/sdlc:approve,/sdlc:unfreeze,/sdlc:ack,/sdlc:remap,/sdlc:releaseand
/sdlc:assign, typed in Claude Desktop's Code tab, run again. Claude Code 2.1.312 sets
AI_AGENTin every hook, and the hook took each of them for a model's. It now tells them
apart by four variables of its own environment and refuses if any is absent or different.
Breaking: the refusal names each variable that failed,enforcement-stays-onprotects six names
rather than one, andstory-stays-in-its-sessionreads more ways of starting a nested session. - Two bare
sdlc starts in two checkouts at once no longer leave one refused withSDLC-E0050
for the story the other has just claimed; the one that waited passes it over and takes the
next. - On Windows, a quick command at the landing, the implementation gate or the freeze is no longer
refused as one that could not be run. The command was started and then put in its job object,
and one that had already ended, having printed what it should and exited 0, was refused with
"Access is denied". A command is now started suspended and let run only once it is in its job,
so a child it starts can no longer outlive a stop either.
Install
curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/bbsnly/sdlc/v0.7.1/install.sh | shWindows PowerShell:
irm https://raw.githubusercontent.com/bbsnly/sdlc/v0.7.1/install.ps1 | iexThen, in Claude Code:
/plugin marketplace add bbsnly/sdlc
/plugin install sdlc@sdlc
Those URLs are pinned to this tag, so they are the scripts this release was
published with. Both are attached below and listed in checksums.txt,
along with every archive, and the install scripts verify against it before
putting anything on your PATH.
v0.6.1
Upgrading from 0.5.0: see
docs/migrations/v0.5.0-to-v0.6.1.md.
There is no 0.6.0 release. The v0.6.0 tag was pushed, its check failed before anything was
built, and a tag here cannot be moved, so these changes are first released as 0.6.1.
Added
- A person can see where a story's time and money went. The hook now appends each tool call,
agent start and stop, and refusal to the story'strace.jsonl, andsdlc trace <ID>reads
them back by gate and by agent, with--jsonfor a script and--allfor every story side by
side. Recording never changes a decision: a failed write leaves the hook's answer as it was.
The trace stops at 4 MiB and says so, and it is refused if its name is a symbolic link, a hard
link or a FIFO. The shell rules protect the file as they protect the freeze, so a model cannot
forge or remove it; the forms of a command they still do not follow are listed under "Not held"
indocs/enforcement.md. - A person is told when a gate has taken too long.
budget.gate_hoursgives a gate key a number
of hours, and once the agents' time charged to that gate, assdlc tracecounts it, is past the
number,sdlc gate,sdlc review addandsdlc statuseach print one line on stderr for
it. Nothing they decide, print on stdout or exit with changes. The firstsdlc gateor
sdlc review addthat saves records abudgetevent, andsdlc tracemarks the gate. A bad
value or a key that is not a gate key is refused withSDLC-E0045. Breaking:sdlc doctor's
configuration detail ends with the code,(SDLC-E0045), for everySDLC-E0045cause. - A test is checked before it is frozen.
commands.freeze_checkis a commandsdlc freezeruns
first, withSDLC_FREEZE_FILESnaming the new or changed test files, one per line. A check
that fails, or that changes a test file, takes no freeze and is refused with the new
SDLC-E0085, so the test author corrects the file while it can still be edited, and no
unfreeze is needed. It is empty until a project chooses one. Breaking:sdlc initwrites the
key into a new config, andsdlc doctorprints afreeze checkline and no longer reports a
shell builtin such ascontinue,localorwaitin a configured command as a program that
is not installed, so it exits 0 where it exited 1. - A reviewer that is asked to look again reads only what changed.
sdlc artifact write plankeeps
each plan under the story'splans/<sha256>.md, andsdlc artifact diff plan --since <role>
prints a unified diff from the revision that role's latest design review was stamped with to
the currentPLAN.md. A revision that does not match its name is refused with the new
SDLC-E0084, and the reviewer then reads the whole plan. Breaking:sdlc review listnames the
revision on the stale line of a design review, and--jsongives it asreviewed_subject. - Every reviewer reads one review policy.
REVIEW.md, or the path inreviews.policy, says which
passes to make, what counts as important, what is a nit and what not to review.sdlc init
writes it,sdlc doctorreports it,sdlc review listnames it, and the file and shell rules
hold it from every agent. The landing refuses a story that changes it. Breaking:sdlc review addtakes--importantand--nits, and ablockwith no--important, or 0, is refused
with the newSDLC-E0086; a review with only nits is anapprovewith the nits listed. - A review finding is recorded and has to be answered.
sdlc review addtakes--finding "<important|nit> <path>: <text>"once for each finding, numberedF-1onwards on the review,
and the counts must agree with the findings listed (SDLC-E0089).sdlc finding close <gate> <role> F-nrecords each as--fixed,--declined --reason "<why>"or--referred --reason "<why>"with the time and the session (SDLC-E0090for a closing with no reason), and a
referral of a file the story changed is refused (SDLC-E0091).sdlc statusandsdlc log
show the ledger. Breaking: the verification and commit gates refuse withSDLC-E0092while a
design or code review finding is open, and withSDLC-E0093for a record whose findings an
oldersdlcdropped. - One
teamsection configures every agent.team.retries,team.modelsandteam.effortshold
what all agents share, andteam.agents.<agent>holdsenabled,instances,lowest,
bring_backand, for a reviewer,can_block.docs/configuration.mdshows every option under
"Every setting at once".sdlc statuslists the agents the team disables and each reviewer
whosecan_blockis false,--jsongainsdisabled, andsdlc team failureandsdlc status
say how many failures an agent has had at a gate and when a person is asked. Breaking: the
staffingsection and"reviews": {"gate7_advisory": true}are refused by every command that
loads the file with the newSDLC-E0087, which names each old key and its replacement, a team
that cannot be used (an agent named twice among them) is refused withSDLC-E0088, and the
project manager now staffs every story unlessteam.agents.project-manager.enabledis false.
"gate7_advisory": falseis a leftover that loads;sdlc doctorreports it. The hook still
reads a file refused only asSDLC-E0087orSDLC-E0088, so its rules still apply while a
person fixes it. sdlc statusandsdlc stopend with one line onceconsolidate.nudge_afterstories (3 by
default, 0 turns it off) have finished since the date in the newest
.sdlc/consolidation-<date>.md, saying it is time to run/sdlc:consolidate;sdlc status --jsoncarries aconsolidatefield. Below the threshold both print what they always did. The
skill now writes its dated file even when it finds nothing, reads each story's review files as
evidence, proposes cuts when the contract section passes 150 lines, and does not propose again
what a person declined unless a newer story adds evidence.- For contributors,
./task migration-guide -- <from> <to>writes
docs/migrations/<from>-to-<to>.mdwith one section per breaking commit between two tags. It
refuses a file that already exists and a word that is not an exact tag.
Changed
- Breaking: a bare
sdlc starttakesreadystories only. A project that leaves every story
todonow getsSDLC-E0010and exit 1, which says how many stories it passed over and names up
to five, andsdlc statusandsdlc story listname no next story, until a story is marked
readyor named withsdlc start <ID>. Naming atodostory still starts it, and resuming is
unchanged. Atodostory that another checkout holds, or that waits on an unfinished
dependency, is not counted. - Every agent follows one contract.
docs/the-agents.mddefines the frontmatter that declares an
agent's kind, gates and team defaults, eight sections in a fixed order, a hand-back that is one
JSON object, and one review document shape that allowsapproveorblockonly. All twelve
agents are moved onto it with their instructions kept, tests ininternal/pluginrefuse an
agent that does not conform, and the runbook counts a message that is not the contract's JSON as
a run that returned nothing usable. The Gate 4 runbook resumes the reviewer that recorded the
latest review with the plan diff, and starts a fresh one only where the diff is refused. - Getting started, Installation and both READMEs tell a Claude Desktop user to add the marketplace
and installsdlcfrom the plugin browser, because typing the/plugincommands in the Code
tab opens a window that does not add the plugin, and name/sdlc:initand/sdlc:doctorbeside
the terminal commands.
Removed
- Breaking:
sdlc parallelis gone, with its configuration section, its hook rule
parallel-is-a-human-decisionand--maxfrom the flags that take a value. It was the only
place the loop handed tools to a session nobody was watching. To work several stories at once,
start each withsdlc start <ID>and open a session in its worktree, asdocs/the-loop.md
says. Aparallelkey left in.sdlc/config.jsonchanges nothing, andsdlc doctorreports it
as any other setting it does not know and exits 1.SDLC-E0057toSDLC-E0066are retired,
each with a section indocs/troubleshooting.mdsaying what it refused. Updatesdlcin a
terminal along with the plugin: an older binary still runs the command.
Security
- Breaking: the shell rules read more of a command before they decide. A line is read both ways
where zsh and bash disagree and refused if either reading refuses; options a wrapper or tracer
takes,evaland its leading--, zsh's short forms, here-documents, arrays and substitutions
are followed;zsh set -Awrites are read as code;find -execwith a made program word is
refused underassignment-is-a-human-decision; a redirect with no command, thevifamily of
editors, a target assigned on the same line, and a comment that ends in a backslash with more
after it are refused or read; scripts nested past four levels are refused as too deep to read.
sdlc review addis refused to the code reviewer, and a command that was let through before
can now be refused. The spellings still not held are listed indocs/enforcement.md.
Install
curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/bbsnly/sdlc/v0.6.1/install.sh | shWindows PowerShell:
irm https://raw.githubusercontent.com/bbsnly/sdlc/v0.6.1/install.ps1 | iexThen, in Claude Code:
/plugin marketplace add bbsnly/sdlc
/plugin install sdlc@sdlc
Those URLs are pinned to this tag, so they are the scripts this release was
published with. Both are attached below and listed in checksums.txt,
along with every archive, and the install scripts verify against it before
putti...
v0.5.0
Added
- A person can run the whole loop from Claude Desktop's Code tab, which has no terminal. The
plugin ships/sdlc:approve,/sdlc:unfreeze,/sdlc:ack,/sdlc:remap,/sdlc:releaseand
/sdlc:assign(forsdlc staffing assign), with/sdlc:doctorand/sdlc:initbeside them. The
hook runs a slash command when the person types it and refuses it when another Claude Code
session typed it.docs/claude-desktop.mdsays how to set it up. Breaking:approve,
unfreeze,ack,remap,release,parallelandstaffing assignnow refuse with the new
SDLC-E0079when run inside a Claude Code session, whether from a!line or the model's
shell, and every refusal that sent a person to a terminal now names the slash command first. - A project that keeps its instructions in
AGENTS.mdcan run the loop without aCLAUDE.md.
sdlc initappends the contract toAGENTS.mdwhere that is the only instruction file, and
sdlc doctornames the file that holds the contract and reports a layout Claude Code would not
read: aCLAUDE.mdorCLAUDE.local.mdthat does not import anAGENTS.md-only contract, or
project instructions turned off in the person's settings. Breaking:AGENTS.mdand
CLAUDE.local.mdare now held likeCLAUDE.md, in any case and at any depth, from the file
tools and the shell, and so is aCLAUDE.mdbelow the project root. A.agentsdirectory and
~/.agentsare held like.claudeand~/.claude. A write to.agents,~/.agentsor a whole
home that holds no checkout is refused asagents-config-is-the-persons, and a shell write to
an instruction file in a directory above the project asinstructions-above-the-project; some
refusals that were released change rule id.docs/agents.mdis nowdocs/the-agents.md. - A story's change to
CODEMAP.mdno longer collides with another story's. The bookkeeper stores
its change as whole named sections withsdlc codemap write, andsdlc stopapplies them to
CODEMAP.mdas the landing left it on trunk, in a commit of its own that the gate record names
(codemap_commit). A map step that cannot be made leaves the landing standing: the stop exits 0
with the warningSDLC-E0076, the change is kept under the git directory, and later commands
say so until a person runssdlc remap <ID> [--replace | --drop].SDLC-E0077refuses a remap
for a story with nothing waiting, andSDLC-E0078refuses a set of sections that was not sent as
asked.sdlc statusnames each landed story whose change is waiting. Breaking: whatsdlc stop
prints changes (a map commit line or theSDLC-E0076warning, andcodemap_commitor
codemap_keptin its--json), and the bookkeeper no longer commitsCODEMAP.mdon the
story's branch. sdlc stoplands a finished story on a trunk that has moved, without a rebase by hand. It puts
the story onto trunk itself, by a rebase that runs nothing the repository configures, behind one
landing lock for the project, and runs the project's commands on the new tree before trunk
moves. A test file that is byte for byte trunk's, where trunk changed it since the story's cut,
no longer counts against the freeze. Reviews and the approval stand for the tip the stop's own
replay made, where the change is the same line for line. A conflict isSDLC-E0075and a
person's, with the worktree left as it was. Breaking:sdlc stopno longer answers
SDLC-E0054for a trunk that only moved forward, and the gate record gainstrunk_testsand
replay.- A story whose commits add an unresolved conflict's markers is refused.
sdlc stopand the
commit gate scan the story's net change and refuse withSDLC-E0080when it adds a whole set of
markers at column 0, naming each file and the line of each marker.
paths.conflict_markers_intendedlists the paths where markers are meant to be, andsdlc doctorprints that list, ornone, on its configuration check. Breaking:sdlc doctoroutput
gains that line, and a stop or commit gate that passed such a story before now exits 1. sdlc initexplains every setting in theconfig.jsonit writes: a comment block above each
of the twelve top-level settings, as a key named_plus the setting's name, saying what it
controls, what changing it costs and wheredocs/configuration.mddescribes it. Values are
unchanged. The_commandsblock replaces_commands_doc.sdlc doctorreports a configured command the hook may refuse, by putting each one to the
hook's own classifier, naming the command's key and the rule and pointing at the rule's section
of the enforcement guide. Breaking:sdlc doctorexits 1 on such a command, andsdlc initnow
writes coverage commands for Go and Python that keep the profile in a temporary file removed
when the shell exits, instead of under.sdlc/stateor as.coveragein the working
directory.sdlc statusnames the story that is landing, since when and its process, and each stop waiting
to land;--jsongainslandingandwaiting_to_land. Breaking:sdlc statusoutput changes.sdlc gatesays which later gates a recorded gate reopened, as areopenedline and a
reopenedarray in--json, the keysdlc unfreezealready uses. Output is unchanged when
nothing is reopened. Breaking: the new line and key.
Changed
- Breaking: a stop and a commit gate hold a story to the commits the commit gate recorded. In a
tier that waits for a person, a commit reworded, squashed or reordered after the commit gate,
with the approved tree, now exits 1 withSDLC-E0037where it landed before.sdlc approve
records the story branch's tip on the answer and prints it, so a person's answer clears the
refusal for the commits as they stand.gate-record.jsongains an optionalcommiton an
approval and acommit_recordedevent. - Breaking: a failure that reaches
loop.max_rework_roundsorloop.max_review_rounds, from
sdlc gate <gate> failorsdlc review add <gate> <role> block, is handed over all or nothing.
If the hand-over cannot be made, the failure is no longer recorded, the refusal adds to its
whyandfixthat running the same command again is safe, and retries no longer count one
failure two or three times. Exit codes,SDLC-Ecodes and on-disk formats are unchanged. A
review file that exists but cannot be read is refused withSDLC-E0005. If a write cannot be
put back, the refusal says the story is only partly handed over and not to run the command again
untilsdlc statushas been read.sdlc escalategets the same guarantee. - Breaking: the story's record gains a top-level
forkskey, a list of the story's own commits,
so that trunk pointed at one of the story's commits no longer makes a test file added after the
freeze count as trunk's. A record without a usable list takes no test file as trunk's: a story
in flight is refused withSDLC-E0043orSDLC-E0025where trunk added or changed a test file
since its cut, until a person unfreezes and freezes again. - Breaking:
trunk_testsin a story's record is filled at the first gate that accepts a test
file as trunk's, not only once the commit gate has passed, andsdlc unfreezeand a reopened
commit gate empty it. The record holds fewertrunk_testsevents, and within one command the
event followsgates_reopened. - Breaking: once trunk has moved, the commit gate measures from the trunk commit the story sits
on, so the range it prints and records,committed on story/<ID> in <start>..<end>, holds only
the story's own commits, and the loop-files warning names a file only when one of them changes
it. The refusal texts ofSDLC-E0054, ofSDLC-E0006while a landing is in progress, and of a
stop that finds trunk moved under its landing now say to stop again up to three times before
escalating. A story brought onto trunk by hand from a later commit is no longer recorded as
landed with nothing run:sdlc stopruns the configured commands first, and a failure there is
SDLC-E0055. - Breaking:
sdlc stopsays when a dead stop's landing lock is taken. A stop killed while it
landed no longer leaves a story that needs lock directories deleted by hand: the waiting line
says the holder is not running on this machine and when its lock can be taken (two minutes after
its last refresh), the story's own landing lock left by a process that is not running is taken
at once while a stop holds the landing lock, and a running holder is never taken from. The fixes
ofSDLC-E0006and the landing lock's refusals no longer send anyone to delete a lock whose
holder runs, andsdlc remaplabels the landing lock as a remap. The fix ofSDLC-E0037says
what a person types and, after it, what an assistant does. Refusal text andsdlc statusoutput
change. - Breaking: the stop names the driver key it refuses. A merge or diff driver whose name holds an
equals sign,{sdlc-private}or a byte that is not UTF-8 is refused underSDLC-E0055in one
wording that names the keys and says to rename or remove the driver. A stop now refuses a
repository whose diff driver has such a name, where it landed before. The text of this
SDLC-E0055refusal changes. - Breaking: the
whyofSDLC-E0021when git gives no error message, and ofSDLC-E0005for a
story's plan or gate record, has new wording that names the git subcommand or the file that
failed. The codes, and when either failure happens, are unchanged. - Breaking: the hook lets through commands that only name a protected path, and says more where it
cannot place one. A message, note, reason or reject text handed tosdlc, an exclusion pathspec
undergit diff,log,show,status,ls-files,grep,diff-tree,diff-indexor
diff-files, and a request forsdlchelp are no longer refused for naming one. Where the hook
is not sure, the refusa...
v0.4.0
Added
- A story no longer has to get every reviewer. With
staffing.enabledon, a new agent,
sdlc:project-manager, records a staffing after the story is ready and before the analysis:
which agents the story needs and what model and effort each is asked for, each with a reason
drawn from what the change is. The analysis gate does not pass until one is recorded, and the
reviewed gates then wait only for the reviewers the staffing needs.sdlc staffing showprints
it,setrecords it andamendchanges it with a reason;sdlc staffing assignis a person's
command, and what a person assigns is not the project manager's to change. Whoever does a gate's
work, the verifier, the code reviewer, and security once the story is recorded as
security-sensitive can never be left out. Models and efforts are held to the lists in the
configuration, with a lowest per agent, and a change under a path listed instaffing.bring_back
brings a left-out reviewer back at code review. The tool records what was asked for, never what
ran.status,review listandlogshow the staffing and every change to it. New codes
SDLC-E0067toSDLC-E0074. The staffing is off unless a project turns it on, and with it off
command output and the story's record are unchanged. sdlc parallel <ID>...works several stories at once: it starts one headless Claude Code
session per story, each running/sdlc:next <ID>, and prints one status view with everything
that waits on a person gathered at the end.--maxcaps how many run at once (default 2). The
sessions run on the headless default permissions;--unattendedgrants a built-in allowlist that
parallel.allowin the configuration can narrow and never widen. It is a person's command: the
hook refuses it from a model-driven session, and the binary refuses a process that carries a
session id. A story that is unknown, not runnable, named twice, held elsewhere, waiting on a
person or finished is refused before anything starts. Closing the terminal ends the sessions as
an interrupt does. New codesSDLC-E0057toSDLC-E0066./sdlc:next <ID>works the story it names; the bare form still takes the next runnable one.
Changed
- The hook refuses more in every project, whether or not the staffing is on. An
sdlccommand
whose subcommand is not written out as a literal word, or is fed to it on standard input, is
refused as unread, and the refusal says to write the subcommand out. Only the project manager
records a staffing, the project manager runs no othersdlccommand that writes, and
sdlc staffing assignis refused to every session. - A
findthat changes files is now judged by what its whole expression picks: the hook reads
negation, alternation and grouping between the tests, in a string given to a shell or toeval
as well. Where it cannot follow the expression, thefindis refused if it starts where loop
state or a frozen test is or could be, and the refusal says what to do instead. Somefind
commands that were allowed are now refused;docs/enforcement.mdsays what is read. - A session that ends its turn to wait for a background subagent is no longer sent back and
counted towards a stalled story. The stop is let through uncounted while Claude Code reports a
background subagent, for at most 30 minutes at the same recorded progress; after that, or where
no such report is sent, a stop counts as before. The stop state on disk gainswaiting_since.
Fixed
- A
findglob that opens a bracket class with]was misread, so a frozen test or a loop-state
file could be reached through it. The glob is now read the wayfindmatches names, and one that
cannot be read is refused wherefindstarts from a directory that holds or could hold a
protected file. - On macOS, stopping a command the tool runs in a group — a landing's test and quality commands,
the trunk check — could leave one of its children running, where that child was being started as
the stop arrived. The stop now goes on until nothing is left in the group, for at most a second. - Three sentences in the documentation said the wrong thing about which gates refuse a changed
frozen test, whatSDLC_TRACE=1times, and what the frozen-test guide's narrower rules cover.
Install
curl -fsSL https://raw.githubusercontent.com/bbsnly/sdlc/v0.4.0/install.sh | shWindows PowerShell:
irm https://raw.githubusercontent.com/bbsnly/sdlc/v0.4.0/install.ps1 | iexThen, in Claude Code:
/plugin marketplace add bbsnly/sdlc
/plugin install sdlc@sdlc
Those URLs are pinned to this tag, so they are the scripts this release was
published with. Both are attached below and listed in checksums.txt,
along with every archive, and the install scripts verify against it before
putting anything on your PATH.
v0.3.0
Added
- A repository with more than one checkout — a worktree linked to the main one — now keeps the
backlog, the story records and the claim on who is working a story in the main checkout alone,
found from git's own files rather than guessed from wherever a command happens to run. Two
checkouts of one repository can no longer each start the same story, andstatus,story list,
loganddoctorreport for the whole repository, naming the checkout that holds a story where
more than one exists. A plainsdlc startpasses over a story another checkout holds; naming the
story refuses it instead, pointing at the checkout that holds it (SDLC-E0050). When the holding
checkout no longer exists,sdlc startandsdlc approverefuse withSDLC-E0051and point at
the newsdlc release <ID> --reason "...", which the hook refuses from a tool call so only a
person runs it. A bare repository refuses every command that needs the backlog (SDLC-E0052). A
worktree made before this release keeps its own, now-diverged, copy of the backlog and the story
records until someone reconciles them by hand. sdlc starton a new story no longer works it in the checkout you already have open: it cuts a
branch from trunk, makes a worktree for it under.sdlc/worktrees/<ID>, runs the project's smoke
check there, and claims the story for that worktree.start's--jsongainsworktree,branch
andmain, and its text output a line saying where the session carries on. Setting
git.worktreestofalsekeeps the single-checkout behaviour of 0.2.0. A start that cannot make
its worktree is refused withSDLC-E0053, taking back whatever it made and naming what stands in
the way; where a worktree in the way holds commits trunk lacks, the refusal says how to look at
them and how to keep them on a branch, rather than suggesting they be thrown away. The shell
policy now also refusesgit worktreecommands and worktree-related git settings run outside the
tool, a git command whose subcommand it cannot read, and the removal of a checkout or of a
directory holding one; it reads more kinds of quoting, more wrappers and more ways of setting
git's working directory than it did in 0.2.0, so a command that went unread before may now be
refused.sdlc doctoralso reports git older than 2.17, a trunk with no committed configuration,
and a story worktree that no checkout holds.sdlc stop, run in a finished story's own worktree, now lands it on trunk instead of leaving its
commits on the story branch for someone to merge by hand. It fast-forwards trunk to the reviewed
commits, refusing rather than writing anything if trunk has moved since the story's worktree was
cut (SDLC-E0054) or if the project's test and quality commands fail on the landed tree after a
rebase or a change to the reviewed work (SDLC-E0055), and it updates every other checkout that
has trunk checked out. A landed range may not touch.sdlc/, the backlog file, or anything under
the rootCODEMAP.mdbesides a plain file of that name, and uncommitted work in a checkout the
landing has to write to is refused rather than overwritten (SDLC-E0056). A landed story's
worktree, branch and claim are removed; a worktree still holding uncommitted work is kept and
named instead. The story's record gainscut,change,change_baseandlanding, and
sdlc logreports the range that reached trunk. Once a story is held, only a plain rebase onto
trunk, and its abort, pass through the shell policy after the commit gate; moving a branch is
refused. Commands the landing runs are grouped so that stopping the landing stops them too (a job
object on Windows).sdlc doctoralso warns when trunk itself tracks the loop's own state.
Changed
- The example story
sdlc initwrites now carries every field the schema allows — a criterion's
EARS pattern, a decision, andcreated/updatedtimestamps — rather than leaving someone
learning the backlog format to find them in the schema or the guides. - On Windows, a message that names a file or directory now writes the path with forward slashes
and each separator once, as every other platform already did; quoting the path used to double
every backslash. A path's own quotes and newlines are still escaped. Anything that matches the
old Windows text of a message needs updating.
Removed
- The limit on how large a change could be (
thresholds.diff_size_cap) before implementation,
verification or code review would refuse it is gone outright, not merely switched off: the
setting, the check,SDLC-E0042and the hand-over it drove are deleted, along with their tests
and every place the docs and the runbook described them. It never caught a problem worth its
cost, counted frozen acceptance tests as part of a change before any code existed, and pushed
towards splitting work that needed to stay whole. Nobody should expect anything to replace it as
a backstop against an oversized change. A configuration written by an older release still loads;
sdlc doctornamesthresholds.diff_size_capamong the settings it no longer recognises until
the line is deleted. TheSDLC-E0042heading in the troubleshooting page stays, marked retired,
and its number is never reused.
Fixed
- The commit gate recorded a story's range of landed commits as running from
HEADat its first
code-review pass toHEADat its lastcommitpass, so a commit a person made on trunk in
between, or straight after, was credited to the story, andsdlc logand trunk review read that
range as the story's own work. The hook now writes downHEADfor every allowed command that
commits in this project's repository, and the commit gate takes a range only when the commits it
watched are exactly the commits between the oldest one's parent and the newest; otherwise it
records no range (range_unknown) rather than naming commits that are not the story's, and a
HEADthat has since moved past the range's end is recorded ashead_past_commit. An observation
is written only when a command's own words place it in this repository; acd, aGIT_DIR
assignment, or a repository the words do not identify as this one writes nothing, rather than
credit the wrong checkout.sdlc gate commit pass --notenow refuses a note naming a commit the
range does not hold (SDLC-E0049). The range a story with watched commits gets now differs from
what 0.2.0 recorded, and the record, the gate's JSON andsdlc log --jsongainrange_unknown
andhead_past_commit; with nothing watched, output is unchanged. - A command could wrap a commit, an approval, an unfreeze, or a write to the frozen tests in a
PowerShell here-string and have the shell policy strip it out before reading what the command
actually ran, because it read a here-string the same way regardless of which shell was going to
run it. Every command is now read twice — once as the released tool reads it and once as the
shell that will run it would — and a refusal from either reading refuses the command, so nothing
the shell policy allowed before this release becomes newly allowed. awk,gawkandsedwrite a file from inside their own program text, so handing them their
program somewhere other than their first argument could carry a write to a frozen test past the
check that catches in-place editing. They are now refused when a command names a frozen test and
was handed its program anywhere other than its first argument; the scan reads every word after
the tool's name rather than stopping at the first one, so a field separator or a variable
assignment can no longer carry the program argument past it unseen. Naming a frozen test plainly
as the file one of these tools is told to read is still allowed.- On Windows, a path that went through a link and then
..could reach the loop's own files or
the frozen tests without the hook seeing it, because the hook followed the link first, the way
Git Bash does, while Windows takes the..first. The hook now reads such a path both ways and
refuses the write when either reading lands somewhere protected. It follows at most 64 links in
one path, more than any of the operating systems it runs on follows in one lookup, and reads the
rest of the path by name. sdlc logandsdlc doctorrefuse a file where the.sdlc/storiesdirectory should be with
SDLC-E0005on every platform, saying the entry is not a directory and what to move aside; on
Windows they read it as no stories at all.sdlc startrefuses a directory at
.sdlc/worktrees/.gitignorewithSDLC-E0053, saying it is not a file, where on Windows the
refusal said only that the file could not be written.
Install
curl -fsSL https://raw.githubusercontent.com/bbsnly/sdlc/v0.3.0/install.sh | shWindows PowerShell:
irm https://raw.githubusercontent.com/bbsnly/sdlc/v0.3.0/install.ps1 | iexThen, in Claude Code:
/plugin marketplace add bbsnly/sdlc
/plugin install sdlc@sdlc
Those URLs are pinned to this tag, so they are the scripts this release was
published with. Both are attached below and listed in checksums.txt,
along with every archive, and the install scripts verify against it before
putting anything on your PATH.
v0.2.0
Added
- A story's record names the commits it landed in, as a range. The first
code_reviewpass records HEAD ascommit_base, and eachcommitpass
records HEAD ascommit, which holds all of the reviewed work. The range
runs from HEAD when code review first passed to HEAD when the commit gate
last passed. It holds every commit the story made, and can hold commits
somebody else made in that window: ones that together left the reviewed code
as it was, such as commits touching only.sdlc/or a story'sstatusand
updated, or ones made before a later review. A finished story reopened
later keeps its start, so its range spans everything that landed on trunk in
between.sdlc gate commit passreports the range as
landed in <start>..<end>, or in full with--json.commitis forgotten
when the commit gate is later recorded as failed, or reopened by a gate
before it, until it passes again. A start that is not known, because the
repository had no commits yet or an oldersdlcpassed the code review, is
left out rather than guessed, and so is one an oldersdlcdropped when it
rewrote the record. The runbook no longer asks for a hash in the commit
gate's note. sdlc loglists the stories committed to trunk, oldest first: the commits
each one landed in, the review rounds per gate, the blocks, and what is worth
a second look — a freeze lifted, gates reopened, an escalation, the spend. It
starts after the commit.sdlc/state/acknowledgednames, when there is one;
--sincestarts after another commit, and--alllists every story. A story
whose record names no commit is found by the commit messages that name it,
and says the range was inferred; one no message names is listed with its
range unknown. It changes nothing. An acknowledged commit git does not have
is refused withSDLC-E0047.sdlc ack --through <commit>marks the log read up to a commit on this
branch, andsdlc logstarts after it from then on. It names the commit
acknowledged before, and says so when the new one comes before it, because
the log then lists the stories in between again. The hook refuses it from a
tool call underacknowledgement-is-a-human-decision, andsdlc doctor
names an acknowledged commit git does not have./sdlc:trunk-reviewgoes through whatsdlc loglists with you: the commits
each story landed in, read against its acceptance criteria and its retro, with
what looks right, what is worth a second look, and follow-ups. It proposes
follow-ups as backlog stories, and adds only the ones you confirm, and only
while no story is being worked on. It never reverts a commit and never runs
sdlc ack. Only a person starts it: the skill carries
disable-model-invocation./sdlc:consolidatereads the retros andsdlc log --allacross finished
stories and proposes changes from what more than one story shows: a sentence
in the## SDLC Contractsection, a key in.sdlc/config.json, issue text for
the plugin, or something for you to do differently. It writes the proposals
to.sdlc/consolidation-<date>.md, applies only the contract and configuration
changes you confirm, one at a time, and writes nothing while a story is being
worked on. A proposal that loosens a check says so. It never edits the plugin
or its cache, and never proposes pinning a model. Only a person starts it.
Changed
- In Claude Code, only a person starts the loop.
/sdlc:nextcarries
disable-model-invocation, so the model no longer starts it when asked to
pick up work, and its description is no longer in the session. Every agent's
description says it works only within a story a person started with
/sdlc:nextand is not for general review, security, performance, testing,
planning, analysis or retro requests, and its first step is to stop on a
brief the runbook did not write; the runbook begins each brief with the story.
The agents are told this, and nothing enforces it. - The runbook is shorter, so all of it survives when Claude Code compacts a long
conversation, and handing a decision to a person and what to do when a
command fails now come before the gates. If its last section is gone anyway,
it and theStophook tell the assistant to ask the person to type
/sdlc:nextagain. sdlc init,status,doctorandapprove, the fixes forSDLC-E0002and
SDLC-E0011, the contract section, the configuration and the example story
say that a person starts a story, withsdlc startor by typing
/sdlc:next, and that setting sdlc up in a repository is the person's choice.- Every agent is told it runs unattended: it finishes what it says it will do
or says what it is blocked on, checks each claim against a tool result, and
summarises command output rather than pasting it. Every reviewer is told not
to inflate a finding to be heard or soften one to be agreeable. The test
author is told not to skip a test, mock the unit a criterion is about or
catch the error a test should see, and the implementer not to swallow that
error or add a flag only a test sets.
Removed
- The plugin's agents as a review kit of their own. Asked for a code review, a
design review or an analysis outside a story a person started with
/sdlc:next, an agent is told to say it only works sdlc gates and stop, with
or without the binary.
Fixed
- The hook found no binary in a desktop app such as Claude Desktop, which keeps
thePATHit was started with (on macOS, one never has the shell's), and
said nothing was being enforced whilesdlc doctorpassed in a terminal.
The launchers now also look where the installers put the binary, after
PATH: the shell launcher in~/.local/bin/sdlc, and both the shell
launcher under Git Bash and the Windows launcher in
%LOCALAPPDATA%\Programs\sdlc\bin\sdlc.exe.sdlc doctorlooks in the same
places. The not-found message says a desktop app has to be quit and reopened
afterPATHchanges, orSDLC_BINset. - The plugin stays out of every session that did not start the story in front
of it. The hook runs in every session the plugin is installed for, and
sessions that never asked for sdlc heard from it: without the binary, every
session in a project with.sdlc/config.jsonwas told on every tool call that
nothing was enforced; with it, a story started from a terminal, or a
.sdlc/state/sessionthat did not read, held every session in the
repository to the story, refusing edits and commits and sending each back at
the end of its turn; and a spoiled.sdlc/state/active, a call that did not
parse, or a crash in the hook was reported to every session. Now a story holds
only the session.sdlc/state/sessionnames, and only when the call names that
session. Anywhere else the hook, and both launchers without the binary, print
nothing, refuse nothing but a person's decisions, never hold a turn open, run
no formatter and write nothing. A story started from a terminal holds no
session until/sdlc:nextpicks it up, andsdlc statusandsdlc doctor
say so.sdlc status --jsonreports the working session assession. A
story resumed where no session can be told, from a terminal or a surface that
does not setCLAUDE_CODE_SESSION_ID, keeps the session already recorded
rather than lose it.sdlc start --jsonreports the session it recorded as
session, and/sdlc:nextstops and says so when it is empty, rather than
work a story nothing enforces. sdlc approve,sdlc unfreezeand a command nested too deep to read were
refused from a tool call in every session in a project with
.sdlc/config.json, and in any session whose command named a path into one,
with no story under way and none waiting for a person. Nowsdlc approveand
sdlc unfreezeare refused outside the session working a story only while
the project has a story a person could decide on: one under way, whoever
holds it, or one handed to a person that nobody has answered, in a project
the call reaches or the one the command moves to withcd. After a move the
hook cannot follow, such ascd "$OLDPWD", they are refused as if a story
waited there.sdlc ack, and a command nested too deep to read, are still
refused in any session in a project that uses sdlc, and a command is read to
its end:sdlc approve A-1; sdlc ack --through HEADis refused for its
sdlc ack.- A Claude Code session that was not working the story could still change it
throughsdlc:sdlc artifact write,review add,gateand the other
commands that change a story wrote into one another session held. They now
refuse to run, withSDLC-E0048, whenCLAUDE_CODE_SESSION_IDnames a
session other than the one.sdlc/state/sessionrecords, and change nothing.
A terminal is not refused, and neither is a session whose id is missing or
invalid, nor anything while no session is recorded;sdlc startstill moves
the story to the session it runs in. This keeps a session'ssdlccommands
out of a story another session is working, and is not a barrier against a
model set on getting round it.
Install
curl -fsSL https://raw.githubusercontent.com/bbsnly/sdlc/v0.2.0/install.sh | shWindows PowerShell:
irm https://raw.githubusercontent.com/bbsnly/sdlc/v0.2.0/install.ps1 | iexThen, in Claude Code:
/plugin marketplace add bbsnly/sdlc
/plugin install sdlc@sdlc
Those URLs are pinned to this tag, so they are the scripts this release was
published with. Both are attached below and listed in checksums.txt,
along with every archive, and the install scripts verify against it before
putting anything on your PATH.
v0.1.1
Changed
- A story is held only in the Claude Code session working it. While a story
was under way, every session opened in the repository was held to it:
somebody doing ordinary work there could not write code, commit, or end a
turn.sdlc startnow records the session it runs in, in
.sdlc/state/session, and the hook holds that session and its agents to the
story and leaves every other session alone./sdlc:nextin another session
picks the story up there.sdlc approveandsdlc unfreezestay a person's
in every session. Run outside Claude Code,sdlc startrecords no session,
and the story holds every session until one picks it up. The session working
a story cannot pass it on from inside: settingCLAUDE_CODE_SESSION_ID, and
startingclaudefrom its shell, are refused. - The plugin is documented as usable on its own. The installation guide said
the binary and the plugin are both needed, which is true of the loop but not
of the agents: without the binary they still review, nothing is stored or
enforced, and/sdlc:nextoffers the install and waits.
Fixed
- Installing the plugin without the binary no longer makes every session
complain. The plugin's hook runs in every session, and when it could not
findsdlcit said "the sdlc binary was not found, so nothing is being
enforced" on every tool call, in every project — including the ones that
have never used sdlc. It now says so only in a session started inside a
project with.sdlc/config.json. Every other session hears nothing,
including one started in a directory above such a project, where the
binary, once installed, does enforce.
Install
curl -fsSL https://raw.githubusercontent.com/bbsnly/sdlc/v0.1.1/install.sh | shWindows PowerShell:
irm https://raw.githubusercontent.com/bbsnly/sdlc/v0.1.1/install.ps1 | iexThen, in Claude Code:
/plugin marketplace add bbsnly/sdlc
/plugin install sdlc@sdlc
Those URLs are pinned to this tag, so they are the scripts this release was
published with. Both are attached below and listed in checksums.txt,
along with every archive, and the install scripts verify against it before
putting anything on your PATH.
v0.1.0
The first release: the whole loop, end to end, on macOS, Linux and Windows.
The loop
- Nine gates, worked one story at a time: definition of ready, analysis,
frozen tests, plan, design review, implementation, verification, code
review, and the commit. A gate cannot be recorded before the gates in
front of it, and every gate that produces a document refuses to pass
without it. - Acceptance tests are frozen by content before a line of implementation is
written.sdlc freezerecords a hash per test file; after that the
implementer cannot edit a test, cannot add a test, and cannot pass the
verification gate on tests that changed. The implementer writes no test
file at all, before the freeze or after it, through the file tools or
through the shell. A test file the freeze does not hold stops
tests_frozen,plan,implementation,verificationandcommit; with
freeze.allow_new_test_fileson, the test author can add one and
sdlc freezeadds it to the freeze.sdlc unfreeze --reasonis the way
out: it is on the record, and it sends the story back to Gate 3. The freeze
belongs to the iteration: it
survivessdlc stopand a new session, and is lifted when the story
finishes, so the next story freezes its own tests. - A question the loop should not answer for itself goes to a person.
sdlc escalateputs it on the story's record and ends the iteration, and
sdlc startrefuses the story until somebody answers withsdlc approve,
or sends the work back with--reject. The hook refusessdlc approvefrom
a tool call, because an agent that could run it would be approving its own
work. A story in a risk tierhuman_gates.pre_commit_pause_tiersnames —
high, by default — cannot be committed until a person has approved the
work as it stands; a change made after the approval needs approving again. human_gates.dor_advocate_checkhas the human advocate read the story at
Gate 1, andsdlc gate dor passwaits for its review. It is advisory there
as everywhere, and it goes stale if the story changes after it.- A session cannot quietly end its turn mid-story. A
Stophook sends the stop
back with what to do instead, and afterloop.max_stop_blocksstops in a row
with nothing recorded, hands the story to a person. A count in
.sdlc/state/stop-blocks.jsonbelow zero starts again rather than putting
the hand-over off indefinitely. commands.fmt_fileruns on each file a tool writes while a story is being
worked on, and a formatter that fails is reported to the session. The
commandssdlc initwrites for it name the files their formatter
understands.- A new story starts only from a healthy trunk.
sdlc startrefuses another
branch, uncommitted work that belongs to no story, a trunk behindorigin
whengit.remoteis on, and a trunk that failscommands.smoke. A story
picked up again is not held to it. - A change bigger than
thresholds.diff_size_capcannot pass implementation,
verification or code review. Lines are counted the waygit diff --numstat
counts them, and the loop's own files and the backlog are not counted. - A block from perf stops the gate, as its role always said it would when a
change breaks a stated performance budget. It still never has to approve,
andsdlc review listshows it ason budget. - A gate that keeps failing and a reviewer that keeps blocking go to a person.
Afterloop.max_rework_roundsfailures of one gate, or
loop.max_review_roundsblocks from one reviewer, the command that recorded
the last one hands the story over, counting again once the person answers. sdlc costkeeps what a story spent beside everything else it did.
sdlc cost add --usdrecords an amount,--storynames the story once a
headless session is over,sdlc statusreports the running total, and
crossing one ofbudget.alert_fractionssays so once, on standard error, as
does using up the budget. Nothing blocks: a story stopped between gates
costs more than the overspend. This is whatbudget.per_story_usdwas for -- it was
written into every project's configuration and read by nothing.- The freeze holds against shell commands. Every rule protecting it applied to
the file-writing tools only, soWriteto a frozen test was refused and
echo cheat > x_test.gowas not. Reading one is still never refused. - The freeze covers what a test depends on, not only the test file. A golden
file, a jest snapshot, a mock and theconftest.pythat decides what a
pytest fixture returns each change whether a test passes without the test
being touched, and each was outside the freeze.sdlc initnow names the
usual ones per stack, and a bare directory name inpaths.tests.dirs
matches such a directory at any depth rather than only at the root. - The commit gate asks the verifier and the code reviewer about the tree as
it is now. Their approvals were checked when their own gates were recorded
and never again, so code added after the review and then committed reached
trunk unreviewed. - Enforcement holds from anywhere in the repository. A session started in a
subdirectory reports that directory, and the hook looked for the project's
configuration only there -- socd backend && claudeturned every rule off
without saying so.
A session opened above the repository is held too: a command names what it
acts on, and the hook looks for the project there, so
rm repo/internal/invoice_test.go,git -C repo commitand
cd repo && sdlc unfreezeare refused from above it as they are from inside.
sdlcstops looking for the repository whereGIT_CEILING_DIRECTORIESsays,
as git does, instead of finding one above it that git would not use, and
the hook stops looking for the project there too. - Path rules match the way the filesystem does. macOS and Windows are
case-insensitive, and.SDLC/state/active,.sdlc/Config.jsonand
claude.mdwere writable while the identically-named files were refused.
The test freeze held only the exact spelling, so a capital letter took it
off the file it was protecting. - Commands that change loop state take the project's lock first, so that the
reviewers a gate runs in parallel all land. Without it, five reviewers
approving at once left one verdict in the record and the other four
reported success and were discarded. - A lock is broken open only once the process holding it has stopped, not
merely because it is old, so a slow command keeps it. The stop guard takes
it too, and decides from what is recorded once it has it. A command killed
part-way through a write no longer leaves a temporary file that the commit
gate refuses as uncommitted work: the next command clears it.
On Windows, a holder that has exited counts as stopped even while another
program, such as a virus scan, still has it open.
The loop's own state is never written through a link that leads out of the
repository: with.sdlc/statecommitted as one, a clone had the stop hook
write its count into whatever directory the link named.
A reason a person gave for sending work back is quoted when the commit gate
reads it back to the assistant, so a committed one cannot end the refusal
and add a route that reads as sdlc's own.
A control character in a title, message, reason or name that sdlc prints is
written out as text instead of reaching the terminal, where an escape
sequence from a cloned backlog could retitle the window or rewrite what
was already shown.
A story id, status or name quoted in an error is escaped as well, so a quote
or a line break in one cannot end the quotation early.
A line break in text read back from the backlog or the loop's files -- a
title, a gate's status or note, a review's verdict, a question waiting for
a person, the freeze -- is written out too, so it cannot start a line that
reads as sdlc's own. - Reviews are recorded against the thing they reviewed. A design review is
stamped with the hash of the plan it read and a code review with the hash
of the tree it read, so a review of an older version of the work shows as
stale instead of counting. - A gate's documents are written through
sdlc artifact write, by the agent
whose gate it is. Nobody edits them in place, including the conversation
running the loop — which is what keeps each gate reviewing work it did not
shape. - Passing the last gate finishes the story: it becomes
doneand leaves the
backlog, so the nextsdlc starttakes the next story instead of reopening
it. That is read from the gate record rather than from the gate's name, so
recording a gate as failed afterwards puts the story back toin_progress
— which is the only way back into finished work, and says on the record why
it came back. - The retro agent writes the retro and the codebase map, and nothing else. It
has file-writing tools and had no write scope, so it could edit production
code while writing up what the story did. The seven reviewing roles are held
to their story directory as well, as a backstop: they are given no
file-writing tools, and a shell command is outside these rules, which
docs/enforcement.md now says instead of leaving it implied. - A story's record, reviews and documents go through the tool for every story
in the backlog, not only the one being worked on. While a story was open,
any agent — the implementer included — could rewrite a finished story's gate
record, its plan and its code review, and nothing refused it. The history
the loop keeps is only evidence if a later story cannot edit it. - Picking a story up again changes nothing.
sdlc starton a story already
under way stamped a fresh timestamp into the backlog, which is a tracked
file and therefore part of the tree the verifier and the Gate 7 reviewers
are stamped against — so resuming in a new session, which is how the loop
is meant to be ...