plumbbob 0.6.6 → 0.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/.claude-plugin/plugin.json +2 -2
  2. package/README.md +24 -7
  3. package/dist/cli-core.js +7 -2
  4. package/dist/lib/buildlog.js +5 -2
  5. package/dist/lib/check.js +33 -1
  6. package/dist/lib/git.js +17 -0
  7. package/dist/lib/latch.js +97 -0
  8. package/dist/lib/orient.js +24 -0
  9. package/dist/lib/settings.js +3 -9
  10. package/dist/lib/sidecar.js +169 -18
  11. package/dist/verbs/build.js +5 -1
  12. package/dist/verbs/checkpoint.js +51 -2
  13. package/dist/verbs/doctor.js +40 -5
  14. package/dist/verbs/finish.js +61 -11
  15. package/dist/verbs/revert.js +19 -1
  16. package/dist/verbs/start.js +38 -7
  17. package/dist/verbs/status.js +10 -3
  18. package/dist/verbs/turn.js +106 -0
  19. package/dist/verbs/use.js +4 -5
  20. package/hooks/hooks.json +15 -0
  21. package/hooks/post-edit.sh +7 -7
  22. package/hooks/pre-bash-commit.sh +68 -0
  23. package/node_modules/checkride/CHANGELOG.md +111 -0
  24. package/node_modules/checkride/README.md +185 -20
  25. package/node_modules/checkride/dist/adapters.d.ts +9 -4
  26. package/node_modules/checkride/dist/adapters.d.ts.map +1 -1
  27. package/node_modules/checkride/dist/adapters.js +62 -2
  28. package/node_modules/checkride/dist/adapters.js.map +1 -1
  29. package/node_modules/checkride/dist/agent-setup/hook.d.ts +63 -0
  30. package/node_modules/checkride/dist/agent-setup/hook.d.ts.map +1 -0
  31. package/node_modules/checkride/dist/agent-setup/hook.js +92 -0
  32. package/node_modules/checkride/dist/agent-setup/hook.js.map +1 -0
  33. package/node_modules/checkride/dist/agent-setup/index.d.ts +8 -0
  34. package/node_modules/checkride/dist/agent-setup/index.d.ts.map +1 -0
  35. package/node_modules/checkride/dist/agent-setup/index.js +7 -0
  36. package/node_modules/checkride/dist/agent-setup/index.js.map +1 -0
  37. package/node_modules/checkride/dist/atomic.d.ts +13 -0
  38. package/node_modules/checkride/dist/atomic.d.ts.map +1 -0
  39. package/node_modules/checkride/dist/atomic.js +24 -0
  40. package/node_modules/checkride/dist/atomic.js.map +1 -0
  41. package/node_modules/checkride/dist/baseline/command.d.ts +42 -0
  42. package/node_modules/checkride/dist/baseline/command.d.ts.map +1 -0
  43. package/node_modules/checkride/dist/baseline/command.js +58 -0
  44. package/node_modules/checkride/dist/baseline/command.js.map +1 -0
  45. package/node_modules/checkride/dist/baseline/fingerprint.d.ts +41 -0
  46. package/node_modules/checkride/dist/baseline/fingerprint.d.ts.map +1 -0
  47. package/node_modules/checkride/dist/baseline/fingerprint.js +119 -0
  48. package/node_modules/checkride/dist/baseline/fingerprint.js.map +1 -0
  49. package/node_modules/checkride/dist/baseline/index.d.ts +13 -0
  50. package/node_modules/checkride/dist/baseline/index.d.ts.map +1 -0
  51. package/node_modules/checkride/dist/baseline/index.js +10 -0
  52. package/node_modules/checkride/dist/baseline/index.js.map +1 -0
  53. package/node_modules/checkride/dist/baseline/store.d.ts +67 -0
  54. package/node_modules/checkride/dist/baseline/store.d.ts.map +1 -0
  55. package/node_modules/checkride/dist/baseline/store.js +110 -0
  56. package/node_modules/checkride/dist/baseline/store.js.map +1 -0
  57. package/node_modules/checkride/dist/cli.d.ts.map +1 -1
  58. package/node_modules/checkride/dist/cli.js +37 -3
  59. package/node_modules/checkride/dist/cli.js.map +1 -1
  60. package/node_modules/checkride/dist/config.d.ts +43 -3
  61. package/node_modules/checkride/dist/config.d.ts.map +1 -1
  62. package/node_modules/checkride/dist/config.js +95 -22
  63. package/node_modules/checkride/dist/config.js.map +1 -1
  64. package/node_modules/checkride/dist/digest/digest.d.ts +52 -0
  65. package/node_modules/checkride/dist/digest/digest.d.ts.map +1 -0
  66. package/node_modules/checkride/dist/digest/digest.js +147 -0
  67. package/node_modules/checkride/dist/digest/digest.js.map +1 -0
  68. package/node_modules/checkride/dist/digest/index.d.ts +8 -0
  69. package/node_modules/checkride/dist/digest/index.d.ts.map +1 -0
  70. package/node_modules/checkride/dist/digest/index.js +7 -0
  71. package/node_modules/checkride/dist/digest/index.js.map +1 -0
  72. package/node_modules/checkride/dist/doctor.d.ts +4 -0
  73. package/node_modules/checkride/dist/doctor.d.ts.map +1 -1
  74. package/node_modules/checkride/dist/doctor.js +33 -10
  75. package/node_modules/checkride/dist/doctor.js.map +1 -1
  76. package/node_modules/checkride/dist/index.d.ts +1 -1
  77. package/node_modules/checkride/dist/index.d.ts.map +1 -1
  78. package/node_modules/checkride/dist/index.js +1 -1
  79. package/node_modules/checkride/dist/index.js.map +1 -1
  80. package/node_modules/checkride/dist/init.d.ts +38 -0
  81. package/node_modules/checkride/dist/init.d.ts.map +1 -1
  82. package/node_modules/checkride/dist/init.js +97 -8
  83. package/node_modules/checkride/dist/init.js.map +1 -1
  84. package/node_modules/checkride/dist/orchestrator.d.ts +58 -1
  85. package/node_modules/checkride/dist/orchestrator.d.ts.map +1 -1
  86. package/node_modules/checkride/dist/orchestrator.js +155 -27
  87. package/node_modules/checkride/dist/orchestrator.js.map +1 -1
  88. package/node_modules/checkride/dist/pm/detect.d.ts +21 -0
  89. package/node_modules/checkride/dist/pm/detect.d.ts.map +1 -0
  90. package/node_modules/checkride/dist/pm/detect.js +60 -0
  91. package/node_modules/checkride/dist/pm/detect.js.map +1 -0
  92. package/node_modules/checkride/dist/pm/index.d.ts +10 -0
  93. package/node_modules/checkride/dist/pm/index.d.ts.map +1 -0
  94. package/node_modules/checkride/dist/pm/index.js +9 -0
  95. package/node_modules/checkride/dist/pm/index.js.map +1 -0
  96. package/node_modules/checkride/dist/pm/translate.d.ts +28 -0
  97. package/node_modules/checkride/dist/pm/translate.d.ts.map +1 -0
  98. package/node_modules/checkride/dist/pm/translate.js +40 -0
  99. package/node_modules/checkride/dist/pm/translate.js.map +1 -0
  100. package/node_modules/checkride/package.json +20 -17
  101. package/node_modules/checkride/schema/checkride.config.schema.json +97 -0
  102. package/node_modules/checkride/schema/checkride.summary.schema.json +57 -0
  103. package/node_modules/checkride/templates/shared/cspell.json +1 -0
  104. package/node_modules/checkride/templates/shared/prettierrc.json +6 -0
  105. package/package.json +8 -4
  106. package/skills/pb-build/SKILL.md +31 -1
  107. package/skills/pb-finish/SKILL.md +2 -1
  108. package/skills/pb-plan/SKILL.md +17 -0
  109. package/skills/pb-verify/SKILL.md +32 -0
@@ -0,0 +1,97 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://raw.githubusercontent.com/robmclarty/checkride/main/schema/checkride.config.schema.json",
4
+ "title": "checkride configuration",
5
+ "description": "Schema for checkride.config.json — add it only to deviate from the zero-config defaults.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "properties": {
9
+ "$schema": {
10
+ "type": "string",
11
+ "description": "URL of this JSON Schema, for editor validation and autocompletion."
12
+ },
13
+ "extends": {
14
+ "description": "Preset(s) to inherit — a file path (./base.json) or package specifier (@acme/preset), or an array of them. Bases merge left-to-right and the local config wins over all; objects deep-merge, arrays and scalars replace (arrays are not concatenated).",
15
+ "oneOf": [
16
+ { "type": "string" },
17
+ { "type": "array", "items": { "type": "string" } }
18
+ ]
19
+ },
20
+ "timeout": {
21
+ "type": "number",
22
+ "minimum": 0,
23
+ "description": "Default per-check timeout in seconds. Unset, checks fall back to the built-in 600s cap; 0 here or on a check disables the cap."
24
+ },
25
+ "checks": {
26
+ "type": "object",
27
+ "description": "Per-slot configuration. A key that matches a catalogue slot (types, format, lint, struct, dead, test, docs, links, spell, mutation, security, publint, attw) configures that slot; any other key is a custom check that runs alongside the catalogue. Naming an opt-in slot (format, mutation, security, publint, attw) here also opts it into the default run.",
28
+ "additionalProperties": {
29
+ "$ref": "#/definitions/slotConfig"
30
+ }
31
+ }
32
+ },
33
+ "definitions": {
34
+ "slotConfig": {
35
+ "description": "How to fill a slot: an adapter name, false to disable it, an adapter with overrides, or a custom check.",
36
+ "oneOf": [
37
+ {
38
+ "type": "string",
39
+ "description": "Adapter name that fills this slot, beating detection."
40
+ },
41
+ {
42
+ "const": false,
43
+ "description": "Disable this slot (skipped, not failed)."
44
+ },
45
+ { "$ref": "#/definitions/useConfig" },
46
+ { "$ref": "#/definitions/customCheck" }
47
+ ]
48
+ },
49
+ "useConfig": {
50
+ "type": "object",
51
+ "description": "Pick an adapter by name and override individual fields.",
52
+ "required": ["use"],
53
+ "additionalProperties": false,
54
+ "properties": {
55
+ "use": {
56
+ "type": "string",
57
+ "description": "Adapter name to select from the registry."
58
+ },
59
+ "command": { "type": "string" },
60
+ "args": { "type": "array", "items": { "type": "string" } },
61
+ "description": { "type": "string" },
62
+ "outputFile": { "type": ["string", "null"] },
63
+ "changedArgs": { "type": "array", "items": { "type": "string" } },
64
+ "fixArgs": { "type": "array", "items": { "type": "string" } },
65
+ "timeout": { "type": "number", "minimum": 0 }
66
+ }
67
+ },
68
+ "customCheck": {
69
+ "type": "object",
70
+ "description": "A bare command that needs no adapter.",
71
+ "required": ["command"],
72
+ "additionalProperties": false,
73
+ "properties": {
74
+ "command": {
75
+ "type": "string",
76
+ "description": "Executable to spawn."
77
+ },
78
+ "args": { "type": "array", "items": { "type": "string" } },
79
+ "description": { "type": "string" },
80
+ "outputFile": { "type": ["string", "null"] },
81
+ "changedArgs": { "type": "array", "items": { "type": "string" } },
82
+ "fixArgs": { "type": "array", "items": { "type": "string" } },
83
+ "timeout": { "type": "number", "minimum": 0 },
84
+ "name": { "type": "string" },
85
+ "detect": {
86
+ "type": "array",
87
+ "items": { "type": "string" },
88
+ "description": "Marker files that gate a non-catalogue custom check: it runs only when at least one listed file exists, and is skipped otherwise. Ignored on an entry that fills a catalogue slot."
89
+ },
90
+ "order": {
91
+ "enum": ["first", "last"],
92
+ "description": "Where a non-catalogue custom check runs relative to the catalogue. Default 'last'."
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://raw.githubusercontent.com/robmclarty/checkride/main/schema/checkride.summary.schema.json",
4
+ "title": "checkride run summary",
5
+ "description": "Schema for .check/summary.json — the aggregate report every run writes. A public API for agents and gate consumers. Fields are additive under schema_version 1: they are added (in lockstep with this schema), never renamed, removed, or retyped without a version bump. See docs/contract.md.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["schema_version", "timestamp", "ok", "checks_run", "total_duration_ms", "checks"],
9
+ "properties": {
10
+ "schema_version": {
11
+ "const": 1,
12
+ "description": "Version of this report shape. Bumped only for a breaking (non-additive) change."
13
+ },
14
+ "timestamp": {
15
+ "type": "string",
16
+ "description": "ISO 8601 time the report was written."
17
+ },
18
+ "ok": {
19
+ "type": "boolean",
20
+ "description": "True when every check passed (skipped checks count as ok). Can be vacuous — see checks_run."
21
+ },
22
+ "checks_run": {
23
+ "type": "integer",
24
+ "minimum": 0,
25
+ "description": "Count of checks that actually executed (skipped entries excluded). ok=true with checks_run=0 is a vacuous green: nothing was verified. Gate consumers should treat it as a failure (or run with --strict, which exits 2)."
26
+ },
27
+ "total_duration_ms": {
28
+ "type": "number",
29
+ "minimum": 0,
30
+ "description": "Sum of all check durations in milliseconds."
31
+ },
32
+ "checks": {
33
+ "type": "array",
34
+ "items": { "$ref": "#/definitions/check" },
35
+ "description": "One entry per selected slot, in pipeline order."
36
+ }
37
+ },
38
+ "definitions": {
39
+ "check": {
40
+ "type": "object",
41
+ "additionalProperties": false,
42
+ "required": ["name", "adapter", "description", "ok", "exit_code", "duration_ms", "output_file"],
43
+ "properties": {
44
+ "name": { "type": "string", "description": "Slot name (e.g. lint), or a custom check's key." },
45
+ "adapter": { "type": ["string", "null"], "description": "Adapter that ran (e.g. oxlint), or null when the slot resolved to nothing." },
46
+ "description": { "type": "string", "description": "Human description of the check." },
47
+ "ok": { "type": "boolean", "description": "Pass/fail after any baseline masking; skipped checks are ok." },
48
+ "skipped": { "type": "boolean", "description": "Present (true) when the check did not execute; see reason." },
49
+ "reason": { "type": "string", "description": "Why a skipped check sat out (no tool detected, disabled in config, unavailable under this package manager, ...)." },
50
+ "exit_code": { "type": ["integer", "null"], "description": "The tool's exit code; -1 for spawn failure or timeout; null when skipped." },
51
+ "duration_ms": { "type": "number", "description": "Wall-clock duration in milliseconds (0 when skipped)." },
52
+ "output_file": { "type": ["string", "null"], "description": "The .check/ file holding the tool's raw JSON output, when it emits JSON on stdout." },
53
+ "baselined": { "type": "integer", "minimum": 1, "description": "Present only when a committed baseline masked diagnostics: how many current findings are grandfathered." }
54
+ }
55
+ }
56
+ }
57
+ }
@@ -12,6 +12,7 @@
12
12
  ],
13
13
  "words": [
14
14
  "checkride",
15
+ "baselined",
15
16
  "biome",
16
17
  "cspell",
17
18
  "devDeps",
@@ -0,0 +1,6 @@
1
+ {
2
+ "printWidth": 100,
3
+ "singleQuote": true,
4
+ "trailingComma": "all",
5
+ "semi": true
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "plumbbob",
3
- "version": "0.6.6",
4
- "description": "Attention-first build process: 12 skills + a CLI that keep you the decider — guidance, not enforcement.",
3
+ "version": "0.8.3",
4
+ "description": "Attention-first build process: 12 skills + a CLI that keep you the decider — guidance on the work, a latch on the record.",
5
5
  "keywords": [
6
6
  "claude-code",
7
7
  "claude",
@@ -48,13 +48,14 @@
48
48
  "@types/node": "^24.0.0",
49
49
  "@vitest/coverage-v8": "^4.1.9",
50
50
  "fallow": "^2.103.0",
51
+ "fascicle": "0.8.16",
51
52
  "markdownlint-cli2": "^0.22.1",
52
53
  "oxlint": "^1.69.0",
53
54
  "typescript": "^6.0.3",
54
55
  "vitest": "^4.1.8"
55
56
  },
56
57
  "dependencies": {
57
- "checkride": "0.1.6"
58
+ "checkride": "0.3.0"
58
59
  },
59
60
  "bundleDependencies": [
60
61
  "checkride"
@@ -63,6 +64,9 @@
63
64
  "clean": "rm -rf dist",
64
65
  "build": "tsc -p tsconfig.build.json",
65
66
  "check": "checkride",
66
- "test": "vitest run"
67
+ "test": "vitest run",
68
+ "eval:baseline": "pnpm build && node test/evals/run.ts --sweep baseline",
69
+ "eval:latched": "pnpm build && node test/evals/run.ts --sweep latched",
70
+ "eval:report": "node test/evals/run.ts --report"
67
71
  }
68
72
  }
@@ -83,6 +83,24 @@ differs from the model you're running as, say so before implementing — the hum
83
83
  `--body` for the deterministic done-when + seam + diffstat fallback). Do **not** bump
84
84
  the version or changelog — that is the human's `/version` call.
85
85
 
86
+ **The latch makes this pause real.** On the default (non-`--auto`) path you
87
+ build the step and reach the pause *in one turn* — so under plumbbob's turn hook the
88
+ checkpoint at the end of that turn is **refused** ("no human turn since this step
89
+ began"), and that refusal **is** the pause working as designed. Do exactly what the
90
+ pause already asks: present the diff and the self-review, **end the turn**, and the
91
+ human's next message is the tick that lands the checkpoint when you re-fire. **Never
92
+ route around a refusal with a raw `git commit`** — the work plane stays free,
93
+ but the *record* is latched on purpose.
94
+
95
+ **Then hand off with the next model.** Once the checkpoint lands on re-fire, close the
96
+ turn by citing where the loop now stands: the step you just completed and the next
97
+ undone step. If that next step carries a `- model:` recommendation (the plan's
98
+ smallest-model-that-fits call, echoed on `plumbbob status`'s `▸ next` line), **name
99
+ it** so the human knows which `/model` to select before firing `/pb-build` again — it
100
+ is what carries the plan's suggestion across a fresh context window, which inherits the
101
+ session model, not the plan's. No `- model:` line means any model will do. Guidance,
102
+ never a gate.
103
+
86
104
  ## `--auto` — let the agent be the clock (opt-in)
87
105
 
88
106
  `/pb-build --auto` is the explicit escape hatch when the human wants unattended
@@ -99,7 +117,10 @@ and approves in the human's place**, and it **chains**:
99
117
  the self-review finds a mismatch (surface exactly what, and do not checkpoint it), a
100
118
  bound agent returns `blocked` or `drift` (unblock-and-re-run, or `/pb-refine` — an
101
119
  agent cannot advance the loop), a new decision is needed, no planned steps
102
- remain, or the top of a requested range is reached.
120
+ remain, or the top of a requested range is reached. **When `--auto` halts back to the
121
+ human, give the same hand-off the default pause does** — the step just completed, the
122
+ next undone step, and that next step's `- model:` recommendation if it has one, so a
123
+ fresh context window knows which `/model` to select.
103
124
 
104
125
  `--auto` and a step range are the only paths that checkpoint without a human pause, and
105
126
  only because the human asked for it by name; a range re-imposes the pause at its top.
@@ -141,3 +162,12 @@ just the one more entry already in the halt list above.
141
162
  `build` writes the diff, `after` is advisory — none can checkpoint, flip a step, or
142
163
  chain. `blocked` → unblock and re-run; `drift` → `/pb-refine`. You are still the one
143
164
  who verifies and (bar `--auto`) the human is still the clock.
165
+ - **A refused checkpoint is the pause, not an error.** Under plumbbob's turn
166
+ hook a same-turn `checkpoint` is refused by design — present the diff, **end the
167
+ turn**, and the human's next message is the tick that lands it on re-fire. Never route
168
+ around it with a raw `git commit`; `--auto`, a typed range, or `auto: true` are the
169
+ only self-approvals.
170
+ - **Close with the next model.** When a step lands, cite the completed step and the next
171
+ undone step, and name that next step's `- model:` recommendation if it has one — it's
172
+ what a fresh context window needs to pick the right `/model` before re-firing.
173
+ Guidance, never a gate.
@@ -31,7 +31,8 @@ record.
31
31
  2. **Finish.** Run `plumbbob finish`, which appends the checkpoint SHAs to the
32
32
  report and makes the final commit — subject `plumbbob: finish — <title>`,
33
33
  with an optional proportional body via `--body` (the stdin heredoc) — then
34
- clears the control state (markers, the `activeBuild` cursor, STATE last). The
34
+ clears the control state (the in-flight markers, then `STATE` last — one delete
35
+ drops both the session sentinel and the active-build cursor it carries). The
35
36
  build folder stays in place, committed, and rides the branch into the PR.
36
37
  3. **Point at the next goal** — `/pb-plan` to frame the next one.
37
38
 
@@ -45,6 +45,10 @@ an agent can follow with `/pb-build`. The argument only seeds how you get there.
45
45
  1. **Scaffold.** If there is no active session, run `plumbbob start "<title>"`
46
46
  to create `.plumbbob/` (baseline recorded, session opened). If a session already
47
47
  exists, say so and edit the existing `intent.md` rather than starting over.
48
+ - **If `start` warns that the gate sees no code checks**, surface that to the
49
+ human now — while they're still deciding, not at the first refused
50
+ checkpoint — and offer to set the `check` key in `.plumbbob/settings.json`
51
+ (e.g. `"check": "npm test"`) before any step is built.
48
52
  2. **Frame** (`.plumbbob/intent.md`), with the human: the **Problem** in plain words,
49
53
  the **smallest thing** that solves it, what **done looks like**, and what you are
50
54
  **explicitly NOT doing**. This is the human's convergence — propose wording, but
@@ -103,6 +107,19 @@ an agent can follow with `/pb-build`. The argument only seeds how you get there.
103
107
  baseline → plan → steps. Pass a proportional `--body` (the single-quoted stdin
104
108
  heredoc) when the rationale is worth carrying; skip it for a small plan. Do this
105
109
  only on the human's approval — the plan is their convergence.
110
+ - **The plan commit is latched too.** Once the turn ledger exists, `checkpoint
111
+ --plan` refuses to land in the same turn `start` stamped it: present the plan,
112
+ **end the turn**, and the human's approving message is the tick that lets it
113
+ commit on re-fire — the refusal *is* the plan pause. Never route around it with a
114
+ raw `git commit`. (One documented seam: the very first plan of a brand-new
115
+ session runs `start` *before* the turn hook has ever ticked, so that single
116
+ commit predates the ledger and stays guidance-governed — it lands without a
117
+ refusal.)
118
+ - **Say what the commit publishes.** The close-out line names the tracked folder:
119
+ `.plumbbob/builds/<slug>/` now rides this branch into the PR, so teammates will
120
+ see the plan and build record in review. In the same breath, offer the way out:
121
+ a repo that won't track a tool folder can restart with `plumbbob start --local`
122
+ (a fully untracked sidecar) before any steps are built.
106
123
  7. **Offer to stress-test it.** Suggest `/pb-refine` to attack the frame for holes (or
107
124
  to repair the plan as it drifts). Optional, the human's call.
108
125
 
@@ -62,6 +62,30 @@ this skill verifies it the same way: **it reads the diff, not the author**.
62
62
  write in one breath. Omit `--body` entirely and the CLI writes a deterministic body
63
63
  (done-when + seam + diffstat) on its own. Either way, do **not** bump the version or
64
64
  touch the changelog — that is the human's `/version` call.
65
+ 7. **Hand off with the next model** *(once the checkpoint lands)*. `plumbbob checkpoint`
66
+ prints `step N checkpointed … Back at the boundary` and returns to DESIGN. Close the
67
+ turn by citing where the loop now stands: the step you just completed and the **next
68
+ undone step** — its title and done-when. If that next step carries a `- model:`
69
+ recommendation (the plan's smallest-model-that-fits call, which `plumbbob status`
70
+ echoes on the `▸ next` line), **name it in the hand-off** so the human knows which
71
+ `/model` to select before firing `/pb-build` again. This matters most across a context
72
+ boundary: a fresh window inherits the *session's* model, not the plan's suggestion, so
73
+ this line is what carries the recommendation over. No `- model:` line means any model
74
+ will do — say nothing about it. Guidance, never a gate.
75
+
76
+ ## The latch makes the pause real
77
+
78
+ When this session runs under plumbbob's turn hook, `plumbbob checkpoint` **refuses to
79
+ land a step in the same turn it was entered** — and that refusal **is** this pause, not
80
+ an error to route around. If the checkpoint prints *"checkpoint refused — no human turn
81
+ since this step began,"* you have reached the pause the hard way: present the diff and
82
+ the self-review, **end the turn**, and the human's next message is the tick that lets
83
+ the checkpoint land when you re-fire. **Never reach for a raw `git commit` to force the
84
+ land** — that forges the very record the latch exists to keep honest, and the
85
+ commit-ask hook asks the human about it anyway. The refusal is a healthy latch doing its
86
+ job on the *record* while the *work* plane stays free; a `/pb-build --auto` or
87
+ a typed step range in the human's own prompt is the only self-approval, and `auto: true`
88
+ in settings is the standing one.
65
89
 
66
90
  ## The hard contracts
67
91
 
@@ -76,3 +100,11 @@ this skill verifies it the same way: **it reads the diff, not the author**.
76
100
  - **`after`-agents advise; they never gate**. Their output feeds the
77
101
  self-review — checkride gates, the human approves. `blocked` → unblock and re-run;
78
102
  `drift` → `/pb-refine` before checkpointing. No code path makes them blocking.
103
+ - **A refused checkpoint is the pause, never a workaround.** Under the turn
104
+ hook a same-turn checkpoint is refused *by design* — present the diff, **end the
105
+ turn**, and let the human's next message re-tick it. Never route around it with a raw
106
+ `git commit`; the latch guards the record, not the work.
107
+ - **Close with the next model.** After the checkpoint lands, cite the completed step
108
+ and the next undone step, and surface that next step's `- model:` recommendation when
109
+ it has one — it is the plan's smallest-model-that-fits call, and it's what a fresh
110
+ context window needs to pick the right `/model`. Guidance, never a gate.