Repository navigation
Inside The pull request on the board
The pull request carries the same story on the board. Step 3 opens it as a
draft, and sclaude assigns it to its author and puts it in the milestone of the
issues it closes. An issue with no milestone has no say. If two issues are in
different milestones, sclaude asks which one to use (pr_setup, pr_milestone).
It stays a draft until QA has moved every issue it closes to Done. Then
pr_qa_handoff marks it ready, moves it to Backlog, clears its assignees and
posts a <!-- sclaude:merge-ready --> summary. The summary holds what the merger
needs without opening the issue: the preview, QA's verdict, how often the work
came back, the acceptance criteria, how many review findings were found and how
many are still open, whether the review finished on this head (zero findings
mean nothing if it did not), the checks and the regressions. This happens once
per head; a later accepted head rewrites the summary in place. After the merge
the pull request goes to Done (pr_board_set). With merge set to auto
there is no merger to hand it to: the PR is marked ready and summarised, but
stays in its column and assigned to its author, because sclaude merges it next.
Where that merge does not go through, the PR is the author's to finish. The
line remind_prod opens with says who makes the merge by the same setting.
The hand-off does not need anybody at a terminal. sclaude runs it while it
waits for QA. The QA timer runs it too, through sclaude _handoff <feature> in
the project, whenever it finds the issue in Done. It keeps trying on every
sweep until the hand-off succeeds, because a PR that closes two issues becomes
ready when the second issue reaches Done, and that issue is not the one the
timer watches. It stops trying once the PR is merged, closed or gone. A
lock on the feature keeps the two from handing over the same PR twice. The
timer acts on the hand-off's exit code, not on its wording. Telegram reports the
outcome: the PR is ready, it is still waiting on a named issue, or a step
failed and will be retried. A hand-off that fails partway records nothing, so
the next try repeats every step; each step is safe to repeat. This is the one thing the timer changes; everything
else it only reports. An issue that a running sclaude moved to Done itself —
qa auto accepts it in the run, which goes on to the hand-off and the merge —
is told by that run: it records its pid in the watch (watch_run_mark), and
while that sclaude lives the timer does not announce the move — no merge "on
the next run" the same run makes a minute later. It still records it and tries
the hand-off on every sweep, which the run, waiting for the merge, does not ask
for again, and tells what that hand-off comes to — half done at once, ready
when it finishes on a later sweep — naming the running sclaude, not a
next run, as the one that takes it from here, and asking nobody to start it. A refused acceptance and a re-armed watch take the mark off. Under qa auto the line about arming the watch is printed only where a
person's wait for QA on the board begins: the automatic acceptance refused, or
never tried.
Ctrl-C leaves either wait and loses nothing: sclaude <feature> comes back to
the same place, and the QA watch keeps looking in the meantime.
The clean-up is last, and it moved there deliberately: it removes the worktree,
and everything above it may still need one. A red production regression opens a
fixing session in that tree; a rollback records the failing log inside it; the
section written into the issue is assembled from state.json, which lives
there. So the tree survives until there is nothing left that could want it — and
even then the script does not advise the clean-up but asks, because the worktree
and the branches disappear irreversibly.
Generated from docs/sclaude.md; edit it there, then rebuild with wiki/build.py.
SClaude is open source under MIT · Repository · Landing page · Contact
Why
How it works
- The cycle
- Big features in parts
- Limits in code
- Fewer tokens
- Feedback loops
- Metrics and the replay
- For a team
- Working from the phone
- Stack and costs
- Privacy
Guide
- Getting started
- Setting up
- Using sclaude
- The config, key by key
- When something goes wrong
- Glossary
- Gates and rules
- Team setup
- Privacy in full
- The tools
- Decks and the map
- Contributing
Inside
Links