Commit 678372a
docs(readme): Claude Code Routines comparison section (#27)
* chore: add canonical SECURITY.md
Adds the standardized Stackbilt-dev security reporting template to this
repository. The template is the canonical per-repo security file rolled
out across the entire Stackbilt-dev organization as part of the outbound
disclosure policy (Stackbilt-dev/docs#15).
Key points:
- Primary reporting channel: admin@stackbilt.dev
- GitHub Security Advisory link scoped to this repo
- Response target matrix (critical 24h ack / 7d fix, high 48h / 14d)
- Full policy link at https://docs.stackbilt.dev/security/
- Explicit "do not open public GH issues for vulns" rule
This replaces the implicit policy that existed via the Stackbilt-dev
organization profile with an explicit per-repo file, so the GitHub
security tab surfaces it and external researchers have a clear
reporting path.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(taskrunner): ratchet mode — measure-before-after validation
Closes #16. Adds an opt-in guard that captures a baseline snapshot of
typecheck + test state on main BEFORE the task branch is created,
re-runs the same checks on the branch AFTER the task commits, and
automatically reverts the branch (delete locally, skip push/PR, mark
failed) when any check transitioned pass→fail.
Opt-in paths
- Per-task: `"ratchet": true` in the task JSON
- Category default: `refactor` and `bugfix` tasks ratchet automatically
- Environment: `CC_RATCHET=1` force-enables for every task
Never ratcheted
- `docs`, `tests`, `research`, `deploy` categories (no regression surface
or outcomes aren't code-level)
Decision rule
Only pass→fail transitions revert. fail→fail (unchanged broken surface)
and skip→fail (first-time check on a pre-existing breakage) are both
`keep`. fail→pass is `keep`. The goal is to gate regressions, not
punish tasks for inheriting broken state.
Snapshot surface
- `npm run typecheck` exit code → pass/fail/skip
- `npm test` exit code → pass/fail/skip
- Each check is independent and degrades to `skip` when the repo has
no corresponding script in `package.json`. Zero new dependencies.
Integration points
- Baseline captured right after `git pull --ff-only`, before the task
branch is checked out (so we measure true main state).
- Post-validation runs after commits but BEFORE push, so a regressed
branch never reaches origin and never opens a PR.
- Ratchet state is local to each execute_task() call — initialized up
front so operator-authority tasks (which skip branch creation) don't
trip unbound-variable errors under set -u.
Applied symmetrically to taskrunner.sh and plugin/taskrunner.sh.
Smoke-tested ratchet_decision() against 5 transition cases:
- skip→skip: keep ✓
- pass→pass: keep ✓
- pass→fail: revert (rc=1) ✓
- fail→fail: keep (no regression) ✓
- skip→fail: keep (first-time surface) ✓
Env knobs
- CC_RATCHET=1|0 force-enable/disable, overrides task fields
- CC_RATCHET_TIMEOUT=<seconds> per-check timeout (default: 180)
- CC_DISABLE_RATCHET=1 legacy alias for CC_RATCHET=0
Closes #16
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs(changelog): 1.6.0 ratchet mode entry
Should've been in the prior commit but Edit bailed on an unread file.
Squash candidate on merge.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use .git/info/exclude instead of .gitignore for worktree protection (#25)
The worktree-protection pattern (C:* glob for Windows-path pollution,
added in #6) was being appended to .gitignore and staged, causing every
auto-generated PR to include unsolicited .gitignore modifications.
Move the exclusion to .git/info/exclude, which provides identical git
ignore behavior but is local to the repository and never committed.
Closes #25
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs(readme): add Claude Code Routines comparison section
Anthropic shipped Claude Code Routines (research preview) in April 2026 —
saved Claude Code configurations that run on Anthropic's cloud on a
schedule, via API trigger, or on GitHub repository events. Routines and
cc-taskrunner solve overlapping problems differently. New users
evaluating the taskrunner deserve to know the alternative exists and
when each substrate is the right fit.
New "cc-taskrunner vs. Claude Code Routines" section between "Why This
Exists" and "Quick Start" includes:
- 12-row capability comparison table (where it runs, cost model, trigger
types, cadence floor, local FS access, runs-while-laptop-closed, queue
management, branch isolation, safety hooks, blast radius, GitHub event
triggers, setup overhead)
- Explicit "when cc-taskrunner is right" decision rubric (queue management,
local FS access, sub-hour cadence, blast-radius enforcement, hook-level
safety)
- Explicit "when Claude Code Routines are right" decision rubric (single
repeatable task, GitHub-event-driven, runs while laptop off, MCP-only
mutations)
- Honest disclosure that Stackbilt itself runs the taskrunner in paused
mode and uses Routines for several scheduled workloads — complementary
not competitive
Framing throughout: pick the substrate that fits the work, neither
obsoletes the other in a real ecosystem.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Codebeast <codebeast@stackbilt.dev>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e99a650 commit 678372a
4 files changed
+358
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
7 | 30 | | |
8 | 31 | | |
9 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
40 | 81 | | |
41 | 82 | | |
42 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
146 | 217 | | |
147 | 218 | | |
148 | 219 | | |
| |||
375 | 446 | | |
376 | 447 | | |
377 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
378 | 453 | | |
379 | 454 | | |
380 | 455 | | |
| |||
407 | 482 | | |
408 | 483 | | |
409 | 484 | | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
410 | 493 | | |
411 | 494 | | |
412 | 495 | | |
| |||
543 | 626 | | |
544 | 627 | | |
545 | 628 | | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
546 | 659 | | |
547 | 660 | | |
548 | 661 | | |
| |||
0 commit comments