sclaude — the process

The feature cycle as BPMN: who does what, in which order, and every way back. Drawn from sclaude/lib/flow/process.py, which tests check against the code; a feature's own copy, with where it stands lit and its actions, is at http://localhost:3000/__sclaude/flow?f=<feature>.

Point at a block, an arrow or a command to see what it is and what it touches; click to keep it lit, Ctrl-click to add more, Esc to clear.

1. The cycle at a glance

You and QA sclaude Claude session GitHub corrections approved yes no findings push nothing open, tests green green red, or the deploy failed red; green after red back Done the branch moved the branch moved red, rolled back; or the ship failed green, red, or not shipped it fixed code sclaude new an issue or a name 1 · plan plan and acceptance criteria F — what the safety rules refused the plan's session is reviewed once it ends.F S — main is merged into the branch before the plan's session opens; a conflict goes to the sync first.S Approve the plan and its criteria 2 · code build, check, commit F — what the safety rules refused step 2's session is reviewed once it ends.F R — after your yes the local suite runs against this feature's server; red opens a fixing session, two at most.R S — main is merged in before step 2's session opens; a conflict goes to the sync first.S Works? your yes 3 · pr manuals, draft PR F — what the safety rules refused step 3's session is reviewed once it ends.F S — main is merged in before step 3, so the pull request carries what will merge.S 4 · review round after round F — what the safety rules refused a review round is reviewed when the round goes to a fresh session.F R — step 4's suites: the local one its gate runs before it closes, a red preview or production fixed here.R S — main is merged in before each review round.S Automatic review findings on the PR Preview deployed and tested R — the preview suite runs against this deployment; green sends the issue to QA, red back to step 4.R S — the branch must merge with main before its preview is deployed.S QA Done or back S — once QA accepted, main is checked before the hand-over; a conflict goes to the sync, and the run to the preview and QA again, as do commits that reached the branch from elsewhere.S Merge yours, or auto S — while the merge waits, main is checked every 2 min; a conflict goes to the sync, the PR back to a draft, and the run to the preview again.S Production shipped on your yes, tested; red, not rolled back: held here R — production's suite runs after the ship; red is rolled back first, then fixed from step 4 — or held.R 6 · epilogue the status: red, or green after red 6 · epilogue status up the issue chain 7 · retro lessons, sclaude's fixes W — the retrospective may fix what it found in sclaude, in the workshop; its approved plan is the yes.W Clean-up

2. The whole process

Every lane, every check and every way back.

Recommended: A4 landscape at 100% — the text is as large as on screen and the sheet is cut between lanes, so each lane stays whole on one sheet; A3 landscape, if a printer takes it, or 70% on A4 need fewer sheets (the count is beside the button), 70% with smaller text. Choose the paper and the scale here: the page names its paper, so the browser's dialog has no Layout or Paper size, and its own Scale (under More settings) would only shrink each sheet without making fewer of them. Leave the dialog's margins at Default.

You QA sclaude Claude session GitHub corrections approved, or [n] not found — sent back (≤2) yes remarks — what is wrong accept, or [n] no — sent back (≤2) the review runs again: here, on GitHub once Claude's limit reset or after it did not finish, here for the files a run on GitHub did not open, or the next review block the review answered, or the gate took it on open — a session, unasked; held if you left it, [g] off; threads left at night, at your yes; nothing left — one polish round (simplify: on) the session ended: the review reads its push nothing open — step 4 closes green red, or the deploy failed: fixed from step 4 hand-back: their words open step 4 Done (main checked again) Done, but the code moved: QA again yes not now merged on GitHub the branch moved the branch moved red; green after red yes no; no answer; main not ready — the status, then asked again green; red, not rolled back; no suite run red: rolled back, or held; the ship failed yes — step 3 again no yes no sclaude new choose an issue, or type a name Prepare the feature worktree from origin/main, branch feat/<slug>, its own dev server and database Issue taken Backlog → In progress, Start date 1 · plan the issue, its parents and the manuals; scope first, then a plan with acceptance criteria F — what the safety rules refused the plan's session is reviewed once it ends.F S — main is merged into the branch before the plan's session opens; a conflict goes to the sync first.S Correct and approve the scope, then the plan with its criteria Approved plan found? the approved text found in the transcript Criteria on the issue a comment of their own, AC1, AC2, … 2 · code builds it, checks it in Chrome, commits with Requirement: ACn, records a demo F — what the safety rules refused step 2's session is reviewed once it ends.F R — after your yes the local suite runs against this feature's server; red opens a fixing session, two at most.R S — main is merged in before step 2's session opens; a conflict goes to the sync first.S Accept the work? the demo's link, then Accept in the session's dialog, or remarks to it 3 · pr manuals updated, a draft PR by the pr skill, the criteria for QA F — what the safety rules refused step 3's session is reviewed once it ends.F S — main is merged in before step 3, so the pull request carries what will merge.S PR ready? a pull request on GitHub carrying every commit Review reads the pull request and posts its findings as threads on it Anything left open? on the way in and after each session: threads, red or running checks; then the local … R — the local suite runs again before step 4 closes; red opens a fixing session, two at most.R 4 · fix-review fixes the findings through subagents, pushes, one round, stops F — what the safety rules refused a review round is reviewed when the round goes to a fresh session.F R — step 4's suites: the local one its gate runs before it closes, a red preview or production fixed here.R S — main is merged in before each review round.S Preview deployed (three tries), the preview regression run against it R — the preview suite runs against this deployment; green sends the issue to QA, red back to step 4.R S — the branch must merge with main before its preview is deployed.S Issue → In QA the preview is what QA looks at; a timer watches the column QA checks the criteria on the preview, ticking them in the issue Done, or back? Done — on to the merge; In progress — a hand-back PR handed over ready for review, Backlog, a summary for whoever merges S — before the hand-over main is checked; a conflict goes to the sync, and the run to the preview and QA again, as do commits that reached the branch from elsewhere.S Merge? offered here once QA passed, or merge it on GitHub Waiting for the merge polls every 30 s; main checked every 2 min S — every 2 min the wait checks whether main moved into a conflict, and a later run checks main before the hand-over; a conflict goes to the sync, commits from elsewhere take the hand-off back, and the run goes to the preview again.S Merged Target date; PR → Done; the issue held open to the end Ship to production? asked after the merge Production the promote of migrations, vercel --prod, the production regression R — production's suite runs after the ship; red is rolled back first, then fixed from step 4 — or held.R 6 · epilogue the status: preview red, or green after red 6 · epilogue Current status on the issue and every parent; deployed-* labels sclaude done called by the run after the epilogue; by hand later Friction check always: every friction review still owed runs here F — the friction reviews still owed run here, one after another, before the retrospective.F 7 · retro what was missed, what could work better, what sclaude could do better W — the retrospective may fix what it found in sclaude, in the workshop; its approved plan is the yes.W Code changed by the retro? yes — its commits go out from step 3 F — when sclaude's live checkout moved during a retrospective that ran to its end, the fresh run that follows runs the friction check again before this question.F Clean up? remove the worktree, branches, database; the record stays Done Kept later: sclaude done <name>

3. How a session changes sclaude

Any session marked W may take this way: it changes sclaude in its tree's workshop, and sclaude publishes the change once the session ends.

You sclaude Claude session GitHub approved ended before core-ready yes; or opened again, or core-send, with nothing asked no; main out of reach or in conflict red — same conversation, twice at most no yes send checked again: a send, or the tree opened on an open question reopen — same conversation drop yes no the push or the pull request failed A fix for sclaude found by the retro or a review The plan you approve the retro's or a review's, the change in it sclaude core-open opens the tree's workshop for this session Commit and review in the workshop; sreview for a maintainer sclaude core-ready the head marked ready to publish The session ends publishing begins Committed, reviewed, marked ready? short of any of them, nothing is published Product details names, numbers, paths of the product, looked for The tests it touches a clean environment, no terminal Anything to ask? a hit, red tests, sclaude.contribute not send Send, reopen or drop? what stopped it shown; unanswered, asked at the next opening Made by a maintainer? MAINTAINERS Pushed to main one squashed commit A pull request from dev/<name>-<time>, one per tree Published the workshop empty again Dropped the workshop empty again; kept under refs/sclaude/dropped

4. The friction review

Every session marked F leads here once it ends: what the safety rules refused it is read by a session of its own, which lifts a rule, leaves it, puts it off a month, or fixes sclaude.

Step session sclaude Friction review You Feature's branch Put off the session ends empty entries yes no no, [g] in step 4 the box off, or before the retro cut off friction approved a bug as intended in the way unsure its rows nothing to push once a month A refusal a hook, a rule, the classifier — or the session's own note Friction log each refusal a paragraph; the classifier's gathered after the session Anything logged? after every step, round, sync and fix session No review the ordinary case Only rules proposed? rules for the project's CLAUDE.md, nothing else Matched, no session a small model names each one's class Friction review reads the log and the transcript, plans a change for each entry W — a bug in sclaude the review finds it fixes in the workshop; its approved plan is the yes.W Kept for you [g] ticked: read before the retro at the latest Held an open review holds the next step Approve its plan which file each change goes to Each entry: which kind? in the way, as intended, unsure, or a bug A bug in sclaude the review fixes it in the workshop Left as it is explained; a recurring one gets a deny entry The product's rules policy allow or deny, CLAUDE.md, a step's prompt A deferred row in the feature's own file, sent to main Verdict recorded lifted, deliberate or mixed — in the issue Pushed with the feature's PR; after the merge, a PR of its own The next session the next step, round or fix Monthly review sclaude deferred: every feature's rows, by class W — the monthly review makes a change to sclaude it decides on in the workshop; its approved plan is the yes.W

5. A stage's regression

Every block marked R runs a stage's suite here: the local one closes steps 2 and 4, the preview's comes before QA, production's after the ship. Red goes to a fixing session, at most two, or back to step 4; production is rolled back first.

You sclaude Claude session red again red after two sclaude regression green red green red red, not rolled back failed rollback regression prod: green, or no suite return green Local suite after step 2's yes, and as step 4 closes Local tests passed? the project's suite against the feature's server Fix after regression makes the red tests green — two sessions at most, then it stops for you F — a friction review follows the sessionF Stopped for you two fixing sessions and still red Preview suite against the preview, before QA Preview tests passed? red — the fix goes on from step 4 Fix after preview makes the preview's tests green, from step 4 F — a friction review follows the sessionF Production suite the product's smoke set, against production, after the Production tests passed? red — rolled back before anything is fixed, or held Rollback the previous deployment, the down blocks, a check, the incident on the issue Held production red and not rolled back: regression <name> prod · rollback · return Fix after production told what failed and that production runs the old release F — a friction review follows the sessionF Step 4 reopened the fix goes the whole way round The cycle goes on

6. Main and the branch

Every block marked S checks main here: it is merged in without asking, and a conflict goes to the sync session.

sclaude Claude session clean conflict settled not settled Main checked before each step and the preview, after QA, every 2 min Main merges cleanly? git merge-tree, no session; before the preview, after QA, while waiting Main merged in at a step's start, without asking; elsewhere a clean check changes nothing The run stops not settled: sclaude <feature> takes it up 5 · sync merges origin/main in, resolves the conflicts, checks, pushes F — what got in the sync session's way is reviewed once it ends, as after a step's session.F The cycle goes on

7. A feature built in parts

A feature split at step 1 stays one issue, one plan, one pull request and one QA, and builds its parts inside step 2, each shown as it is built. Accepted, the parts become one branch, and the feature goes on as any other: one pull request into main, reviewed — at that size, in review blocks.

sclaude Claude session yes — the next part no accepted a merge that did not settle A plan in parts the plan's ## Parts; each criterion names its part On the part's branch <branch>-<n> off the part before it 2 · code a part this part alone, read by a fresh subagent F — a friction review follows the sessionF R — a regression runs here: its own map shows the run and its fixesR Another part to build? yes: the part's demo first, remarks to the next part 2 · code the whole every part built: checked as one, the demo, Accept F — a friction review follows the sessionF R — a regression runs here: its own map shows the run and its fixesR Parts made one branch the feature's branch moved to the last part S — main is checked here: its own map shows the merge in and the syncS The parts wait the merge did not settle; what to do On to step 3 one pull request into main

8. Commands and where they lead

A feature's action list shows only those that apply to it now. A command lights the place it leads to; a block lights the commands open there.

CommandWhenWhat it doesLeads to
sclaudealwaysthe menu: features in progress
sclaude new [name]alwaysa new feature at step 1sclaude new
sclaude <name>alwayscontinue: the current step, or the end of the cyclewhere the feature stands
sclaude statusalwaysa table of every feature and its step
sclaude doctoralwayswhat this machine lacks, with the fix
sclaude configalwaysthe project's config, explained; the review mode
sclaude actions [name]alwaysthe action list of one feature
sclaude dev [name]alwaysstart the dev server (--stop stops it)Prepare the feature
sclaude sync <name>alwaysmerge origin/main in; a conflict opens the sync sessionMain merges cleanly?
sclaude replan <name>before the cycle endsback to step 1 in a new conversation; the code stays1 · plan
sclaude parts <name> stopbefore the cycle endsa feature built in parts ends with the parts built so far; the rest become an issue2 · code the whole
sclaude return <name> [reason]a finished featureback to step 4 with what was said since4 · fix-review
sclaude issue <name>alwayslink or create the feature's issuesclaude new
sclaude news <name>with a pull requestwhat moved on the PR since the last session4 · fix-review
sclaude preview <name>after step 1deploy a preview of the branchPreview
sclaude rollback <name>once production carried itthe previous release back; a red one sends the fix to step 4Rollback
sclaude regression <name>alwaysthe local regression, the one steps 2 and 4 close onLocal tests passed?
sclaude regression <name> prodproduction red and carrying itproduction's suite again; green, or no production suite, lifts the holdProduction tests passed?
sclaude friction <name>with friction loggedreview what the safety rules refusedFriction review
sclaude done <name>at step 4 or donethe retro, then the clean-up after the mergesclaude done
sclaude reset <name>before the cycle endsstart the step over, forgetting its conversationwhere the feature stands
sclaude drop <name>alwaysabandon the feature, each trace asked aboutClean up?, Done
sclaude epilogue [name]an epilogue broken offwrite the status into the issue6 · epilogue
sclaude deferredmonthly, offeredthe review of the friction put offMonthly review
sclaude review-statsalwayswhat review sessions cost in context4 · fix-review
sclaude review-report <name>with review roundsis the review still worth it4 · fix-review
sclaude checks [pr]in a sessionwait for the checks of the pushed headAnything left open?
sclaude core-openin a sessionlet the session write sclaude in its workshopsclaude core-open
sclaude core-readyin a sessionmark the workshop's change ready to publishsclaude core-ready
sclaude proposea developer's branchsend dev/<name>'s commits to sclaude as a PRA pull request
sclaude workshopalwaysa session that changes sclaude with you, in a worktree of its own
sclaude core-senda workshop change waitinganswer send to the question the tree's workshop change waits onSend, reopen or drop?
sclaude updatealwaystake sclaude's main now, whatever sclaude.update says