@sassywares/skills 0.12.0 → 0.13.0
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.
- package/CONCEPTS.md +32 -19
- package/README.md +50 -43
- package/package.json +1 -1
- package/skills/sassy-goal/SKILL.md +5 -5
- package/skills/sassy-goal/references/close.md +4 -4
- package/skills/sassy-goal/references/goal-format.md +27 -4
- package/skills/sassy-goal/references/next.md +2 -1
- package/skills/sassy-goal/references/write.md +2 -2
- package/skills/sassy-lfg/SKILL.md +1 -1
- package/skills/sassy-overview/SKILL.md +2 -2
- package/skills/sassy-overview/references/identify.md +1 -1
- package/skills/sassy-plan/SKILL.md +5 -5
- package/skills/sassy-plan/references/plan-format.md +34 -6
- package/skills/sassy-setup/SKILL.md +6 -6
- package/skills/sassy-setup/assets/templates/worktrees-create +52 -0
- package/skills/sassy-setup/assets/templates/worktrees-remove +51 -0
- package/skills/sassy-setup/assets/worktree/_lib.sh +22 -55
- package/skills/sassy-setup/assets/worktree/create +21 -28
- package/skills/sassy-setup/assets/worktree/list +52 -11
- package/skills/sassy-setup/assets/worktree/remove +10 -83
- package/skills/sassy-setup/references/branching.md +9 -5
- package/skills/sassy-setup/references/check.md +23 -0
- package/skills/sassy-setup/references/config.md +68 -107
- package/skills/sassy-setup/references/dogfood.md +3 -3
- package/skills/sassy-setup/references/init.md +18 -16
- package/skills/sassy-setup/references/scaffold-header.md +63 -0
- package/skills/sassy-setup/references/worktree.md +135 -86
- package/skills/sassy-setup/scripts/detect.sh +127 -51
- package/skills/sassy-setup/scripts/worktree-check.mjs +32 -1
- package/skills/sassy-ship/SKILL.md +1 -1
- package/skills/sassy-work/SKILL.md +1 -1
- package/skills/sassy-worktree/SKILL.md +9 -12
- package/skills/sassy-worktree/references/create.md +10 -3
- package/skills/sassy-worktree/references/list.md +4 -2
- package/skills/sassy-worktree/references/remove.md +30 -6
- package/skills/sassy-setup/assets/lifecycle/down +0 -29
- package/skills/sassy-setup/assets/lifecycle/up +0 -34
- package/skills/sassy-setup/assets/worktree/prune +0 -93
- package/skills/sassy-worktree/references/prune.md +0 -13
package/CONCEPTS.md
CHANGED
|
@@ -8,6 +8,10 @@ The repo's `skills/` directory is the only copy of the skills. Consumers install
|
|
|
8
8
|
|
|
9
9
|
A directory containing `SKILL.md`, discovered by a harness from a project skills directory, a user skills directory, or an installed package. Skills are explicit workflows, not always-on instructions. The model may invoke any of them, and the user can invoke one directly through their harness (the `sassy-setup` skill's `references/harness.md` lists each harness's command).
|
|
10
10
|
|
|
11
|
+
## Write boundary
|
|
12
|
+
|
|
13
|
+
The exact set of paths a skill's run may create or edit, and so the exact set its commit step may stage — stated as a hard rule in the skill's `SKILL.md` and repeated as its commit file list. It names every surface the skill owns by name, which is why deleting a config key has to reach it: a body still naming a removed file is a boundary that commits or reports something no longer real.
|
|
14
|
+
|
|
11
15
|
## Agent
|
|
12
16
|
|
|
13
17
|
A specialized subagent from [sassy-agents](https://github.com/sassywares/sassy-agents), installed per harness (`~/.pi/agent/agents/`, `~/.claude/agents/`, or a project `.pi/agents/` / `.claude/agents/`) by `sassy-setup`. Skills delegate bounded work to agents such as `scout`, `worker`, `reviewer`, `simplifier`, and `validator`.
|
|
@@ -70,22 +74,31 @@ owns the workflow; the scripts in `.sassywares/worktree/` own the git.
|
|
|
70
74
|
names the directory the checkout lives in, and the handle `list --path` and
|
|
71
75
|
`remove` take — `remove` also accepts the branch.
|
|
72
76
|
- **Namespace** — the slug prefixed with the repo (`shop-feat-catalog`), and the
|
|
73
|
-
only name a
|
|
74
|
-
Derived once by `create`; never rebuilt by hand.
|
|
75
|
-
- **
|
|
76
|
-
`
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
only name a project script should use for a database, a compose project, or a
|
|
78
|
+
simulator. Derived once by `create`; never rebuilt by hand.
|
|
79
|
+
- **Identity block** — the four `WT_*` lines `create` mints and `list --env` hands
|
|
80
|
+
back: `WT_PATH`, `WT_BRANCH`, `WT_SLUG`, `WT_NAMESPACE`. The stream rule and the
|
|
81
|
+
unprepared case are the `sassy-setup` skill's `references/worktree.md`'s.
|
|
82
|
+
- **Project scripts** — the pair `<home>/worktrees/create` and
|
|
83
|
+
`<home>/worktrees/remove`, named by `worktrees.create` and `worktrees.remove`.
|
|
84
|
+
They are the lifecycle; the `sassy-setup` skill's `references/worktree.md` owns
|
|
85
|
+
their order, slots, and degrade rule, and `.sassywares/worktree/` ships only the
|
|
86
|
+
git mechanics. Addressing a checkout — a URL, a simulator, a window — is the
|
|
87
|
+
project's business too, and lives in those scripts.
|
|
88
|
+
- **Scaffold header** — the first line of a project-owned file setup plants,
|
|
89
|
+
`# sassywares:scaffold v1 skill=<name> version=<version> date=<YYYY-MM-DD>`.
|
|
90
|
+
The `sassy-setup` skill's `references/scaffold-header.md` owns its bytes and the
|
|
91
|
+
offer-only upgrade rule.
|
|
82
92
|
- **Managed checkout** — one under `worktrees.dir` that also carries
|
|
83
|
-
`.sassywares/config.yaml`. The tooling lists
|
|
84
|
-
|
|
93
|
+
`.sassywares/config.yaml`. The tooling lists and removes only those; anything
|
|
94
|
+
else belongs to another tool or predates the wiring.
|
|
95
|
+
- **State** — each managed checkout's `merged`, `gone`, or `unmerged`
|
|
96
|
+
classification, from the branch's upstream. The `sassy-setup` skill's
|
|
97
|
+
`references/worktree.md` owns the definitions; `list` is where it prints.
|
|
85
98
|
|
|
86
|
-
`create` and `remove` need an agent because
|
|
87
|
-
a
|
|
88
|
-
orchestration is
|
|
99
|
+
`create` and `remove` need an agent because the run has to ask permission before
|
|
100
|
+
taking a checkout, report each refusal verbatim, and confirm a set before removing
|
|
101
|
+
several. The orchestration is the skill's; the git is the toolbox's.
|
|
89
102
|
|
|
90
103
|
## Overview
|
|
91
104
|
|
|
@@ -105,7 +118,7 @@ owns it; its `identify.sh` is the query.
|
|
|
105
118
|
|
|
106
119
|
## Modes
|
|
107
120
|
|
|
108
|
-
Three shared mode tokens: `mode:manual` (default) asks at the skill's gate; `mode:auto` means pre-authorized, no review; `mode:return` reports and changes nothing. Some skills take their own modes instead: `sassy-goal`, `sassy-handoff` (`write`, `read`), `sassy-setup` (`init`, `check`), `sassy-overview` (`identify`), and `sassy-skill` (`create`, `retune`, `verify`).
|
|
121
|
+
Three shared mode tokens: `mode:manual` (default) asks at the skill's gate; `mode:auto` means pre-authorized, no review; `mode:return` reports and changes nothing. Some skills take their own modes instead: `sassy-goal`, `sassy-handoff` (`write`, `read`), `sassy-setup` (`init`, `check`), `sassy-overview` (`identify`), `sassy-worktree` (`list`, `create`, `remove`), and `sassy-skill` (`create`, `retune`, `verify`).
|
|
109
122
|
|
|
110
123
|
- `sassy-ship` and `sassy-compound` accept `manual` and `auto`. Ship reviews the whole close-out in `mode:manual` and forwards `mode:auto` to compound once its own gate is answered.
|
|
111
124
|
- `sassy-review`, `sassy-simplify`, and `sassy-validate` accept all three: `manual` asks which findings to fix, `auto` fixes them without asking, `return` hands the findings back to the caller.
|
|
@@ -115,16 +128,16 @@ Three shared mode tokens: `mode:manual` (default) asks at the skill's gate; `mod
|
|
|
115
128
|
|
|
116
129
|
Everything else is decided by the artifact, not a mode:
|
|
117
130
|
|
|
118
|
-
- A plan document under `docs/plans/` drives phased execution and carries QA tables whose rows are `Auto` or `Manual`.
|
|
131
|
+
- A plan document under `docs/plans/` — `<type>-<slug>.md`, with YAML frontmatter for `type`, `created`, `updated` (plus `qa: off` when the user asks for no QA gates) — drives phased execution and carries QA tables whose rows are `Auto` or `Manual`.
|
|
119
132
|
- An in-context brief drives one cycle and has no plan file and no QA tables.
|
|
120
133
|
|
|
121
134
|
## Plan
|
|
122
135
|
|
|
123
|
-
A durable document under `docs/plans
|
|
136
|
+
A durable document under `docs/plans/<type>-<slug>.md` with frontmatter, intent, decisions, constraints, phase tracking, and per-phase QA tables.
|
|
124
137
|
|
|
125
138
|
## Goal
|
|
126
139
|
|
|
127
|
-
Work too big for one plan — a migration, an epic — run by `sassy-goal` as a folder under `artifacts.plans
|
|
140
|
+
Work too big for one plan — a migration, an epic — run by `sassy-goal` as a folder under `artifacts.plans`, `<type>-<slug>/`: `goal.md` (intent, cross-slice decisions, landscape, coexistence, a slice table, carry-forward) plus one plan per started slice. It turns `done` when `mode:close` verifies its done-when against the whole tree.
|
|
128
141
|
|
|
129
142
|
## Slice
|
|
130
143
|
|
|
@@ -136,7 +149,7 @@ The append-only section of `goal.md` that `mode:check` adds to once per slice: w
|
|
|
136
149
|
|
|
137
150
|
## Goal hook
|
|
138
151
|
|
|
139
|
-
A project skill run at a goal's boundaries, declared under `hooks.goal` and keyed by the goal
|
|
152
|
+
A project skill run at a goal's boundaries, declared under `hooks.goal` and keyed by the goal's folder name under `artifacts.plans`, `<type>-<slug>` (prefix included). `before_slice` runs in `mode:next` after the previous slice's merge is confirmed and before the next slice is grilled; `after_close` runs in `mode:close` after the status is persisted, on `done` and on a goal left `active`. Neither may touch the goal itself (`goal.md`, the slice plan, the status); anything else — switching to the bases, pulling, rebasing, committing, pushing, migrating — is the project's call, provided every base ends level with its remote. `before_slice` fires before `mode:next` checks the base, so it can be what freshens it. Entries are idempotent, and both fail closed. They are not PR-keyed, so `commit.branch: current` does not suppress them, and since `sassy-goal` has no approval gate the mode's report names what ran, that none are declared, or where it stopped.
|
|
140
153
|
|
|
141
154
|
## Brief
|
|
142
155
|
|
package/README.md
CHANGED
|
@@ -50,21 +50,21 @@ That discussion settles the work, then offers a pick:
|
|
|
50
50
|
|
|
51
51
|
```text
|
|
52
52
|
Settled. Pick one:
|
|
53
|
-
1. Write the plan — docs/plans/<slug>.md
|
|
53
|
+
1. Write the plan — docs/plans/<type>-<slug>.md
|
|
54
54
|
2. Start working via /sassy-work
|
|
55
55
|
3. Implement and ship it via /sassy-lfg
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
Pick 1 to get a plan file. Plan then asks again with just the other two — start working on it, or implement and ship it — or you stop there and run it later, one phase at a time:
|
|
58
|
+
Pick 1 to get a plan file — YAML frontmatter (`type`, `created`, `updated`, plus `qa: off` when you ask for a plan with no QA gates) plus intent, decisions, and per-phase QA tables. Plan then asks again with just the other two — start working on it, or implement and ship it — or you stop there and run it later, one phase at a time:
|
|
59
59
|
|
|
60
60
|
```text
|
|
61
|
-
/sassy-work docs/plans/add-workspace-invitations.md
|
|
61
|
+
/sassy-work docs/plans/feat-add-workspace-invitations.md
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
Or the whole plan through one session:
|
|
65
65
|
|
|
66
66
|
```text
|
|
67
|
-
/sassy-lfg docs/plans/add-workspace-invitations.md
|
|
67
|
+
/sassy-lfg docs/plans/feat-add-workspace-invitations.md
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
For small work that does not need a plan document, choose 2 or 3 at the picker, or invoke the executor directly with the brief:
|
|
@@ -92,7 +92,7 @@ Debugging:
|
|
|
92
92
|
| **`sassy-overview`** | Answers what a project is and how it runs — stack, runner, install, up, down, test, compose, env, wired — by inspecting files, read-only and with the source file for every value. `unknown` when the project hasn't said, and exit `3` so a caller branches instead of guessing. |
|
|
93
93
|
| **`sassy-work`** | Executes exactly one plan phase, or one in-context brief, commits after code approval, then stops — the next phase is a run you start. A brief stops before ship. |
|
|
94
94
|
| **`sassy-lfg`** | Executes every phase of a plan, or one in-context brief, then closes out via `sassy-ship` after code approval. |
|
|
95
|
-
| **`sassy-worktree`** | One checkout per branch, each with its own derived namespace, so two agents can work in one repo — taken when you ask, never because the config allows it. `create`, `list`, `remove
|
|
95
|
+
| **`sassy-worktree`** | One checkout per branch, each with its own derived namespace, so two agents can work in one repo — taken when you ask, never because the config allows it. `create`, `list`, `remove`: cut a checkout, see what exists and what is safe to delete, or delete one. |
|
|
96
96
|
| **`sassy-cycle`** | Runs one unit of work through a tiered loop: implement → simplify + review + validate for `logic`, review for `surface`, nothing for mechanical → one fix pass. No verify. Also reworks finished work from failed QA rows and picked findings. |
|
|
97
97
|
| **`sassy-debug`** | Diagnoses a bug, gates the fix, fixes via `sassy-work` (cycle, code approval, commit), then ships. Debug takes no mode and always leaves ship's review gate in place unless you invoke ship yourself with `mode:auto`. |
|
|
98
98
|
| **`sassy-handoff`** | `mode:write` (default) writes a self-contained handoff file to `/tmp/sassywares/handoffs/` and gives you a `sassy-handoff mode:read <path>` command for a fresh session; `mode:read` explains what the handoff did, why, and where things stand now, then asks what to do next. Works in any harness. |
|
|
@@ -177,16 +177,11 @@ hooks:
|
|
|
177
177
|
push: # only under commit.branch: current
|
|
178
178
|
"*":
|
|
179
179
|
after_push: [] # right after the push succeeds
|
|
180
|
-
# worktree: # worktrees only; keyed by the checkout's branch
|
|
181
|
-
# "*":
|
|
182
|
-
# after_create: [] # derive .env, seed, copy the session in
|
|
183
|
-
# before_remove: [] # drop the database, shut the device
|
|
184
180
|
worktrees: # parallel checkouts of this repo
|
|
185
181
|
enabled: false # true = a run may offer its own checkout
|
|
186
182
|
dir: ~/.sassywares/worktrees # parent of the per-repo folder
|
|
187
|
-
|
|
188
|
-
#
|
|
189
|
-
# down: ./bin/down # absent = no lifecycle
|
|
183
|
+
create: scripts/worktrees/create # this project's prepare step; absent = built-in
|
|
184
|
+
remove: scripts/worktrees/remove # this project's teardown; absent = built-in
|
|
190
185
|
dogfood: # agent QA: a stored procedure that proves a change runs
|
|
191
186
|
enabled: false # true lets a plan write Mode: Auto QA rows
|
|
192
187
|
recipe: .sassywares/dogfood/recipe.md # the procedure; never commands here
|
|
@@ -205,7 +200,7 @@ directory, a namespace, a database. `worktrees:` turns that on:
|
|
|
205
200
|
└── feat-catalog-search/
|
|
206
201
|
```
|
|
207
202
|
|
|
208
|
-
Only checkouts this tooling manages are listed or
|
|
203
|
+
Only checkouts this tooling manages are listed or removed: one under `worktrees.dir`
|
|
209
204
|
that also carries `.sassywares/config.yaml`. Anything else — another tool's
|
|
210
205
|
worktree, or one cut from a ref that predates the wiring — is counted in a footer
|
|
211
206
|
and left alone.
|
|
@@ -215,16 +210,25 @@ takes one and otherwise works in the main checkout, because two runs only collid
|
|
|
215
210
|
when they are actually parallel. `sassy-worktree create` takes one whenever you
|
|
216
211
|
ask for it, and a run carrying `worktree:on` has already been told yes.
|
|
217
212
|
|
|
218
|
-
Setup installs the
|
|
219
|
-
`list`, `remove`, `
|
|
220
|
-
feat/catalog`.
|
|
221
|
-
|
|
222
|
-
and
|
|
223
|
-
|
|
213
|
+
Setup installs the git mechanics as three scripts plus a shared helper in
|
|
214
|
+
`.sassywares/worktree/` — `create`, `list`, `remove`, and `_lib.sh` — run by path,
|
|
215
|
+
`.sassywares/worktree/create feat/catalog`. It also scaffolds this project's own
|
|
216
|
+
pair at `<home>/worktrees/create` and `remove`, recording them as
|
|
217
|
+
`worktrees.create` and `worktrees.remove`. `<home>` is probed: the first existing
|
|
218
|
+
of `scripts/`, `bin/`, `tool/`, `tools/`, else `tool/` for a Dart/Flutter stack
|
|
219
|
+
and `scripts/` otherwise. `sassy-worktree` runs the project's pair; those call
|
|
220
|
+
the toolbox when they need git. An absent pair falls back to the built-in
|
|
221
|
+
silently; a declared file that is gone or not executable warns, naming the key
|
|
222
|
+
and the file, then falls back — never a silent success when a key declares one.
|
|
223
|
+
No command runner is required: if the project already has one that carries named
|
|
224
|
+
commands, setup offers to wire `worktree:<script>` aliases into it, and never
|
|
225
|
+
creates a manifest to hold them, so a Go, Python, or Dart project keeps its own
|
|
226
|
+
tooling file and nothing else.
|
|
224
227
|
|
|
225
228
|
`create` derives the identity from the branch and prints it — `WT_PATH`,
|
|
226
|
-
`WT_BRANCH`, `WT_SLUG`, `WT_NAMESPACE` — so
|
|
227
|
-
database name, or a simulator from one source instead of inventing its
|
|
229
|
+
`WT_BRANCH`, `WT_SLUG`, `WT_NAMESPACE` — so the project's create script derives
|
|
230
|
+
`.env`, a database name, or a simulator from one source instead of inventing its
|
|
231
|
+
own. `list --env <slug|branch>` hands the same four lines back for scripting.
|
|
228
232
|
|
|
229
233
|
A checkout's branch is cut **untracked**, and `create` prints the upstream it
|
|
230
234
|
found — `none` on a fresh branch, and a plain-English warning when an existing
|
|
@@ -233,27 +237,32 @@ DWIM would have made `staging` that branch's upstream, so the branch's own `git
|
|
|
233
237
|
push` would aim at the base: a run that looks healthy until it ships.
|
|
234
238
|
|
|
235
239
|
**A checkout's address and its stack are the project's own business.** The suite
|
|
236
|
-
derives no address and runs no app: how a checkout is looked at, and what
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
fixed port unless the project's
|
|
240
|
-
per-checkout value derives it
|
|
241
|
-
one, and a collision surfaces in the
|
|
240
|
+
derives no address and runs no app: how a checkout is looked at, and what brings
|
|
241
|
+
it up or tears it down, live in the project's `create` and `remove` scripts, whose
|
|
242
|
+
scaffold slots name where a project writes them. Two checkouts running the same
|
|
243
|
+
app collide on the same fixed port unless the project's script keeps them apart,
|
|
244
|
+
so a script that needs a per-checkout value derives it from `$WT_NAMESPACE` or
|
|
245
|
+
`$WT_SLUG`. Nothing here claims or tracks one, and a collision surfaces in the
|
|
246
|
+
project's own command.
|
|
247
|
+
|
|
248
|
+
A project's `remove` runs four steps in order: **identity** (`list --env`), **stop**
|
|
249
|
+
while the checkout still exists, **delete** through the toolbox, then **dispose**
|
|
250
|
+
after the tree is gone while `$WT_NAMESPACE` is still set.
|
|
242
251
|
|
|
243
252
|
It needs `commit.branch: new`: under `current` a run commits where it stands and
|
|
244
253
|
never cuts a branch, so nothing would create a checkout. `--check` says so rather
|
|
245
254
|
than leaving a switch that cannot fire.
|
|
246
255
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
usual answer is to copy or link the main checkout's session in the `after_create`
|
|
252
|
-
hook: a cookie is host-scoped, while a `localStorage` session is origin-scoped and
|
|
253
|
-
has to be injected per origin.
|
|
256
|
+
A worktree gets a fresh, empty `.sassywares/session/`, and most providers register
|
|
257
|
+
one callback URL, so the usual answer is to copy or link the main checkout's
|
|
258
|
+
session in the create script's after-the-checkout slot: a cookie is host-scoped,
|
|
259
|
+
while a `localStorage` session is origin-scoped and has to be injected per origin.
|
|
254
260
|
|
|
255
|
-
Nothing here keeps state: `list` reports branch, path, dirty,
|
|
256
|
-
`remove` refuses a dirty tree, unpushed
|
|
261
|
+
Nothing here keeps state: `list` reports branch, path, dirty, upstream, and a
|
|
262
|
+
state of `merged`, `gone`, or `unmerged`. `remove` refuses a dirty tree, unpushed
|
|
263
|
+
commits, or the main checkout, deletes the checkout, and leaves the branch so the
|
|
264
|
+
work stays reachable. There is no bulk sweep: removing several is `list`, one
|
|
265
|
+
confirmation, then one `remove <slug>` per checkout, sequentially.
|
|
257
266
|
|
|
258
267
|
### Extending the pipeline
|
|
259
268
|
|
|
@@ -266,8 +275,6 @@ A project adds its own steps by naming a skill that lives in its own `.agents/sk
|
|
|
266
275
|
| `before_merge` | this run is about to merge | a final approval gate |
|
|
267
276
|
| `after_merge` | this run observed the merge | sync a back-merge branch, tag, notify |
|
|
268
277
|
| `hooks.push` `after_push` | `commit.branch: current` only: after ship's push | notify, trigger a follow-up step |
|
|
269
|
-
| `hooks.worktree` `after_create` | just after a checkout exists | derive `.env`, seed the database, copy the session in |
|
|
270
|
-
| `hooks.worktree` `before_remove` | before the checkout is deleted | drop the derived database, shut the simulator |
|
|
271
278
|
| `hooks.goal` `before_slice` | `sassy-goal mode:next`: after the previous slice's merge is confirmed, before the slice is grilled | switch to the bases, pull, migrate, seed |
|
|
272
279
|
| `hooks.goal` `after_close` | `sassy-goal mode:close`: after the goal's status is persisted | post the goal summary, notify, tear down per-slice environments |
|
|
273
280
|
|
|
@@ -314,7 +321,7 @@ flowchart LR
|
|
|
314
321
|
A[Idea] --> B[sassy-plan]
|
|
315
322
|
B --> C[Discussion]
|
|
316
323
|
C --> D{3-option picker}
|
|
317
|
-
D -->|1. plan document| E[docs/plans
|
|
324
|
+
D -->|1. plan document| E["docs/plans/<type>-<slug>.md"]
|
|
318
325
|
D -->|2. start working| F[sassy-work]
|
|
319
326
|
D -->|3. implement and ship| G[sassy-lfg]
|
|
320
327
|
E -->|then: start working| F
|
|
@@ -354,12 +361,12 @@ flowchart LR
|
|
|
354
361
|
G --> H[sassy-goal check]
|
|
355
362
|
H -->|more slices, after merge| D
|
|
356
363
|
H -->|last slice| I[sassy-goal close]
|
|
357
|
-
I --> J[Goal
|
|
364
|
+
I --> J[Goal done, rides the last PR]
|
|
358
365
|
```
|
|
359
366
|
|
|
360
|
-
A goal is a folder under `artifacts.plans` holding `goal.md` and one plan per started slice (`01-<slice>.md`, `02-…`). `mode:write` grounds every affected domain once, grills only goal-level branches — slice boundaries and order, coexistence, the goal's done-when, non-goals — and pushes back on any slice that would leave a half-built layer. Each slice's plan is grilled only when `mode:next` starts it, with the goal's decisions and every carry-forward entry already settled; before that grill, and once the previous slice's merge is confirmed, `mode:next` runs the project's `before_slice` steps. The slice then runs the usual work or lfg → ship path on its own branch (`feat/<goal>/<NN-slice>`); ship marks it `Shipped` and babysits the PR without merging, so the check can still land in it.
|
|
367
|
+
A goal is a folder under `artifacts.plans` — `<type>-<slug>/` — holding `goal.md` and one plan per started slice (`01-<slice>.md`, `02-…`). `mode:write` grounds every affected domain once, grills only goal-level branches — slice boundaries and order, coexistence, the goal's done-when, non-goals — and pushes back on any slice that would leave a half-built layer. Each slice's plan is grilled only when `mode:next` starts it, with the goal's decisions and every carry-forward entry already settled; before that grill, and once the previous slice's merge is confirmed, `mode:next` runs the project's `before_slice` steps. The slice then runs the usual work or lfg → ship path on its own branch (`feat/<goal>/<NN-slice>`, with `<goal>` the goal folder minus its `<type>-` prefix — `feat-offline-reads/` → `feat/offline-reads/02-cached-list`); ship marks it `Shipped` and babysits the PR without merging, so the check can still land in it.
|
|
361
368
|
|
|
362
|
-
`mode:check` runs on the slice branch before the PR merges: it validates the whole slice plan against the branch's commits, and every gap is fixed now, deferred to a named later slice, or accepted with a reason. It appends the slice's carry-forward entry, marks it `Done` with its PR link, and pushes `goal.md` into the same PR. After the last slice, `mode:close` checks the goal's done-when against the whole tree and marks the goal `
|
|
369
|
+
`mode:check` runs on the slice branch before the PR merges: it validates the whole slice plan against the branch's commits, and every gap is fixed now, deferred to a named later slice, or accepted with a reason. It appends the slice's carry-forward entry, marks it `Done` with its PR link, and pushes `goal.md` into the same PR. After the last slice, `mode:close` checks the goal's done-when against the whole tree and marks the goal `done` in the last PR, then runs the project's `after_close` steps once the status is persisted. One slice is in flight at a time, and nothing chains on its own.
|
|
363
370
|
|
|
364
371
|
### From bug to ship
|
|
365
372
|
|
|
@@ -403,7 +410,7 @@ The fix gate offers four options:
|
|
|
403
410
|
| Dogfood | `Auto` rows only exist when `dogfood.enabled` is on and the row's recipe section has a `Prove it:` step. `sassy-ship` persists nothing behind an unproven row. |
|
|
404
411
|
| Ship review | On in `mode:manual` (default), skipped by `mode:auto`. |
|
|
405
412
|
|
|
406
|
-
The artifact decides QA: a plan document carries QA tables that gate phase completion
|
|
413
|
+
The artifact decides QA: a plan document carries QA tables that gate phase completion unless its frontmatter sets `qa: off`; an in-context brief has no QA tables at all. Gates are deliberate stops; the only way past one is the user's approval. `mode:auto` is accepted only by `sassy-ship` and `sassy-compound`.
|
|
407
414
|
|
|
408
415
|
## Branching
|
|
409
416
|
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ argument-hint: "<idea | goal path> [mode:write|next|check|close] [slice:<ID>]"
|
|
|
14
14
|
|
|
15
15
|
# Sassy Goal
|
|
16
16
|
|
|
17
|
-
**Outcome:** a goal folder whose `goal.md` holds the intent, the cross-slice decisions, and a slice table — then, one slice at a time, a slice plan written when that slice starts, shipped through the usual `sassy-work` / `sassy-lfg` → `sassy-ship` path, checked against its plan, and carried forward; finally the whole goal verified and marked `
|
|
17
|
+
**Outcome:** a goal folder whose `goal.md` holds the intent, the cross-slice decisions, and a slice table — then, one slice at a time, a slice plan written when that slice starts, shipped through the usual `sassy-work` / `sassy-lfg` → `sassy-ship` path, checked against its plan, and carried forward; finally the whole goal verified and marked `done`.
|
|
18
18
|
|
|
19
19
|
**One slice ships at a time, and every slice ships something complete.** A slice is its own plan → work or lfg → ship. It never leaves a half-built layer behind for a later slice to finish.
|
|
20
20
|
|
|
@@ -26,7 +26,7 @@ argument-hint: "<idea | goal path> [mode:write|next|check|close] [slice:<ID>]"
|
|
|
26
26
|
|
|
27
27
|
## The goal
|
|
28
28
|
|
|
29
|
-
A goal is the folder `<artifacts.plans>/<
|
|
29
|
+
A goal is the folder `<artifacts.plans>/<type>-<slug>/`: `goal.md` plus one plan per started slice, named `NN-<slice-slug>.md` where `NN` matches the slice ID (`S1` → `01-`). Slice plans are ordinary sassy plans. `references/goal-format.md` owns the `goal.md` format, the slice statuses, and the template — read it before writing or revising `goal.md`.
|
|
30
30
|
|
|
31
31
|
Slice statuses run `Pending` > `Planned` > `Shipped` > `Done`, plus `Blocked`. `mode:next` sets `Planned`, `sassy-ship` sets `Shipped` (and babysits the slice PR without merging), `mode:check` sets `Done` and records the PR link.
|
|
32
32
|
|
|
@@ -37,7 +37,7 @@ Slice statuses run `Pending` > `Planned` > `Shipped` > `Done`, plus `Blocked`. `
|
|
|
37
37
|
| `write` (default) | `references/write.md` | anytime | a new or revised `goal.md`, and the `mode:next` command |
|
|
38
38
|
| `next` | `references/next.md` | previous slice merged; on the base once `before_slice` has run | the `before_slice` hooks run, the slice's plan written, the slice `Planned`, and the work / lfg commands |
|
|
39
39
|
| `check` | `references/check.md` | on the slice branch after ship, before merge | the slice `Done`, carry-forward appended, pushed with the slice |
|
|
40
|
-
| `close` | `references/close.md` | on the last slice's branch after its check, before merge |
|
|
40
|
+
| `close` | `references/close.md` | on the last slice's branch after its check, before merge | `status: done` (or `active` with a slice to add), pushed with the last slice, then the `after_close` hooks run |
|
|
41
41
|
|
|
42
42
|
Resolve the mode: an explicit `mode:` token wins. With none, it is `write` — an idea creates a goal, a path to an existing goal folder or `goal.md` revises it. Read the one reference for that mode **and only that one**.
|
|
43
43
|
|
|
@@ -47,7 +47,7 @@ write → next → work/lfg → ship → check → next → … → ship → che
|
|
|
47
47
|
|
|
48
48
|
## Persisting
|
|
49
49
|
|
|
50
|
-
`check` and `close` commit on the slice branch so `goal.md` merges with the slice. Persist exactly like `sassy-ship` steps 4–5, per `git.repo`:
|
|
50
|
+
`check` and `close` commit on the slice branch so `goal.md` merges with the slice. Every mode that edits `goal.md` — `write`, `next`, `check`, `close` — sets its frontmatter `updated` to today in that same edit. Persist exactly like `sassy-ship` steps 4–5, per `git.repo`:
|
|
51
51
|
|
|
52
52
|
- **A remote** — dispatch a `worker`: *load the `sassy-commit-push-pr` skill and follow it with `branch:current` and `babysit:off`*, which commits, pushes, and updates the slice's open PR. Under `commit.branch: current` there is no PR: the worker loads `sassy-commit` with `branch:current`, then pushes the head to its upstream — never forced; a non-fast-forward rejection is a stop-and-report.
|
|
53
53
|
- **`workspace`** — commit each affected repo on the run's shared branch, run `.sassywares/workspace/snapshot` for `goal.md` and the docs at the root, then push each repo. A missing or outdated snapshot script is a blocker: say to run `sassy-setup`.
|
|
@@ -60,7 +60,7 @@ write → next → work/lfg → ship → check → next → … → ship → che
|
|
|
60
60
|
| Point | Owner | Fires |
|
|
61
61
|
|---|---|---|
|
|
62
62
|
| `before_slice` | `mode:next` | after the slice is picked, before the base check and the grill |
|
|
63
|
-
| `after_close` | `mode:close` | after the status is persisted, before the report — on `
|
|
63
|
+
| `after_close` | `mode:close` | after the status is persisted, before the report — on `done` and on a goal left `active` |
|
|
64
64
|
|
|
65
65
|
- **The goal is off-limits; bases end level.** A goal hook never edits `goal.md` or the slice plan, or changes the goal status, `mode`, or `branch`. Anything else is the project's call — switch to the bases, pull, rebase, commit, push, migrate a dev database, seed, notify — provided every base it touches ends level with its remote, which `mode:next` verifies right after `before_slice`. Entries are idempotent.
|
|
66
66
|
- **Not PR-keyed.** `commit.branch: current` does not suppress them; they fire in `remote`, `workspace` (once, at the workspace root), and `none`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Mode: close — verify the whole goal
|
|
2
2
|
|
|
3
|
-
Runs on the last slice's branch after its `mode:check`, before its PR merges, so
|
|
3
|
+
Runs on the last slice's branch after its `mode:check`, before its PR merges, so `status: done` rides in the last PR.
|
|
4
4
|
|
|
5
5
|
1. **Precondition.** Read `goal.md`. Every slice must be `Done`. Then dispatch a probe `worker` to return:
|
|
6
6
|
- the `sassy-setup` skill's `scripts/detect.sh --branch` (no `--policy`) `state` and `head`;
|
|
@@ -17,7 +17,7 @@ Runs on the last slice's branch after its `mode:check`, before its PR merges, so
|
|
|
17
17
|
- **Accept** — record it as a Decision with provenance: `D<n>: <gap> accepted unmet — <reason> (user-directed, over fixing)`. Never as an Assumption or a Carry-forward entry.
|
|
18
18
|
|
|
19
19
|
Nothing is left unchosen. With mixed choices, run the chosen fixes first.
|
|
20
|
-
4. **Mark it `Done`** — only when no gap was sent to a new slice: set
|
|
20
|
+
4. **Mark it `Done`** — only when no gap was sent to a new slice: set `status: done` in the frontmatter. If any was, the goal stays `active`.
|
|
21
21
|
5. **Persist** per the SKILL.md Persisting section, on this branch, so `goal.md` and any fixes merge with the last slice. Skip step 6 if this step failed.
|
|
22
|
-
6. **Run the `after_close` hooks.** No `hooks.goal.<slug>.after_close` entry resolves for this goal's slug → skip in one line. Otherwise resolve them per the `sassy-setup` skill's `references/config.md` and run each in declared order, one `worker` each. The status is already persisted, so a blocked hook cannot rewrite it. Brief them with the goal path and slug, `goal_status` (`
|
|
23
|
-
7. **Report** the goal path, each Done-when item with its result, the gaps fixed, accepted, or sent to a new slice, and the hook outcome — `ran: <names>`, `none declared`, or `stopped at <name>`. If the goal stayed `
|
|
22
|
+
6. **Run the `after_close` hooks.** No `hooks.goal.<slug>.after_close` entry resolves for this goal's slug → skip in one line. Otherwise resolve them per the `sassy-setup` skill's `references/config.md` and run each in declared order, one `worker` each. The status is already persisted, so a blocked hook cannot rewrite it. Brief them with the goal path and slug, `goal_status` (`done`, or `active` when a gap went to a new slice), every slice's ID, status, and PR link, and the commit hash the persist step wrote, where it wrote one (per repo in a workspace, absent under `none`). A missing skill or a `blocked` result → report `stopped at <name>`, keep everything already persisted, never retry on your own, and do not claim the close-out succeeded; the user re-runs the hook and continues. A `needs-decision` result goes to the user, and the run stops there too.
|
|
23
|
+
7. **Report** the goal path, each Done-when item with its result, the gaps fixed, accepted, or sent to a new slice, and the hook outcome — `ran: <names>`, `none declared`, or `stopped at <name>`. If the goal stayed `active`, give `/sassy-goal <goal path> mode:write` to add the slice, then `mode:next` once this PR merges. Otherwise the goal is closed when this PR merges. Persisting ran with `babysit:off`, so end with `/sassy-babysit <PR url>` in the harness's syntax.
|
|
@@ -7,13 +7,31 @@ Read this before writing or revising `goal.md`.
|
|
|
7
7
|
A goal is a folder under `artifacts.plans`:
|
|
8
8
|
|
|
9
9
|
```text
|
|
10
|
-
<artifacts.plans>/<
|
|
10
|
+
<artifacts.plans>/<type>-<slug>/
|
|
11
11
|
├── goal.md # this format
|
|
12
12
|
├── 01-<slice-slug>.md # S1's plan, written by sassy-plan when S1 starts
|
|
13
13
|
└── 02-<slice-slug>.md # S2's plan, written when S2 starts
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
The
|
|
16
|
+
The folder name is `<type>-<slug>`, and that whole name is the key `hooks.goal` uses in the project config — prefix included: `hooks.goal.feat-powersync`. The `slug` alone is the part after the `<type>-`.
|
|
17
|
+
|
|
18
|
+
- **`type`** is one of `feat fix chore refactor docs test perf ci build` — the Conventional Commit type the goal will ship as. `mode:next` passes it into each slice plan's frontmatter, and `branching.md` reads it there to name the slice branch, so the chain runs goal → slice plan → branch.
|
|
19
|
+
- **`slug`** is lowercase ASCII kebab, 2–3 words (ceiling 5), naming the thing that changes, never the activity. It is the folder name minus its `<type>-` prefix.
|
|
20
|
+
- **Unique.** Two goals on the same object take a qualifier (`-phase-two`), never a timestamp, because the folder name is the `hooks.goal` key.
|
|
21
|
+
- **Undated.** A date in the folder name would land in every `hooks.goal` entry and break when the goal is renamed.
|
|
22
|
+
|
|
23
|
+
Slice plans keep `NN-<slice-slug>.md` (written via `out:`). `NN` is the slice's order and matches its ID: `S1` → `01-`, `S2` → `02-`. A slice plan is an ordinary sassy plan, so `sassy-work`, `sassy-lfg`, `sassy-ship`, and `sassy-validate` run on it unchanged.
|
|
24
|
+
|
|
25
|
+
## Frontmatter
|
|
26
|
+
|
|
27
|
+
Required keys, in this order, and nothing else:
|
|
28
|
+
|
|
29
|
+
- **`type`** — one of the list above, matching the folder prefix.
|
|
30
|
+
- **`status`** — `active` | `done`.
|
|
31
|
+
- **`created`** — `YYYY-MM-DD`, the day the goal was first written; never changes.
|
|
32
|
+
- **`updated`** — `YYYY-MM-DD`; set to today on every material revision, in the same edit. `mode:write`, `mode:next`, `mode:check`, and `mode:close` all set it whenever they edit the file.
|
|
33
|
+
|
|
34
|
+
The H1 title stays: frontmatter does not render on GitHub, so the heading is what a reader sees.
|
|
17
35
|
|
|
18
36
|
## Rules
|
|
19
37
|
|
|
@@ -39,9 +57,14 @@ Order: `Pending` > `Planned` > `Shipped` > `Done`. Only one slice is ever `Plann
|
|
|
39
57
|
## Template
|
|
40
58
|
|
|
41
59
|
```markdown
|
|
42
|
-
|
|
60
|
+
---
|
|
61
|
+
type: feat
|
|
62
|
+
status: active
|
|
63
|
+
created: YYYY-MM-DD
|
|
64
|
+
updated: YYYY-MM-DD
|
|
65
|
+
---
|
|
43
66
|
|
|
44
|
-
|
|
67
|
+
# <Goal title>
|
|
45
68
|
|
|
46
69
|
## Intent
|
|
47
70
|
One paragraph: the outcome when the whole goal lands, and why it is worth a multi-slice effort.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**One slice in flight.** This mode starts exactly one slice by planning it. It never implements, never plans a second slice, and never runs work or lfg itself.
|
|
4
4
|
|
|
5
|
-
1. **Load the goal.** Read `goal.md`. If its status is `
|
|
5
|
+
1. **Load the goal.** Read `goal.md`. If its status is `done`, say so and stop. The run may still stand on the previous slice's branch here; step 6 settles the base.
|
|
6
6
|
2. **Nothing in flight.** If any slice is `Planned` or `Shipped`, stop and name what is due: a `Planned` slice needs `sassy-work` or `sassy-lfg` on its plan, a `Shipped` slice needs `mode:check`.
|
|
7
7
|
3. **Earlier slices merged.** Every `Done` slice's PR must be merged before the next slice starts, or the new slice is built on code that may still change. Dispatch a `worker` to check each PR with `gh pr view <url> --json state` and return the states. Under `commit.branch: current`, `git.repo: workspace`, or `git.repo: none` — or when a slice has no PR link — ask the user to confirm instead. Anything unmerged → stop and say which PR must merge first.
|
|
8
8
|
4. **Pick the slice.** The first `Pending` slice whose Depends are all `Done`. A `slice:<ID>` token overrides the pick, but its Depends must still be `Done`; a slice that is not `Pending` is a stop. No eligible slice → if every slice is `Done`, point at `mode:close`; otherwise report what blocks each `Pending` slice and stop.
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
- **settled** = the goal's Decisions and Constraints, and every Carry-forward entry — enter them in the ledger as settled with their provenance; never re-ask them
|
|
14
14
|
- **context** = the goal path, the goal's Landscape and Coexistence rows for this slice's domains, and the Deferred items addressed to this slice
|
|
15
15
|
- **`out:<goal folder>/NN-<slice-slug>.md`**, with `NN` from the slice ID
|
|
16
|
+
- **frontmatter** — `type:<the goal's type>`, `goal:<path to goal.md, relative to the slice plan>`, `slice:S<n>`; the slice plan's `type` is what names its branch prefix
|
|
16
17
|
|
|
17
18
|
`sassy-plan` grills the slice in full — this is where its detail gets decided — writes the plan to that path, skips its picker, and returns the path.
|
|
18
19
|
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
Anything a single slice can settle alone — UI states, a table's columns, a helper's shape — goes to Deferred as *to S<n>'s grill*, with the user's agreement. Run the coverage sweep only against these goal-level rows; the rest are N/A until their slice starts.
|
|
17
17
|
4. **Push back on incomplete slices.** Every slice must ship a working outcome on its own. A "schema first, API next, UI last" cut is the half-built layer this skill exists to prevent: challenge it with the evidence and offer a vertical re-cut (e.g. "one screen end to end on the new store"). Concede only to an argument or the user's explicit call, and record that call as `user-directed`.
|
|
18
18
|
5. **Read back.** The whole ledger — decisions, constraints, the slice list with Ships / Depends, deferred items, assumptions — with an empty Open bucket. A correction reopens that branch.
|
|
19
|
-
6. **Write.** Read `references/goal-format.md` and write `<artifacts.plans>/<
|
|
19
|
+
6. **Write.** Read `references/goal-format.md` and write `<artifacts.plans>/<type>-<slug>/goal.md` with `status: active`, every slice `Pending`, and an empty Carry-forward.
|
|
20
20
|
|
|
21
21
|
## Existing goal (the argument is a goal folder or `goal.md`)
|
|
22
22
|
|
|
23
|
-
1. Read `goal.md`. If its status is `
|
|
23
|
+
1. Read `goal.md`. If its status is `done`, say so and stop unless the user asks to reopen it.
|
|
24
24
|
2. Ask what changed, then grill **only the delta** with the same protocol: re-cut, add, drop, or reorder slices, or change a goal-level decision, Done-when item, or constraint. Everything else already in `goal.md` is settled ground.
|
|
25
25
|
3. Keep history intact. `Done` slices, their plans, and every Carry-forward entry stay exactly as written. A `Planned` or `Shipped` slice is in flight: changing it is a contradiction to raise with the user, never a silent edit. New slices take the next free ID, so existing plan filenames never move.
|
|
26
26
|
4. Apply the same pushback on incomplete slices, read back the delta, then update `goal.md` in place.
|
|
@@ -32,7 +32,7 @@ A phase's `**Review:**` line names its change tier — `logic`, `surface`, or `n
|
|
|
32
32
|
|
|
33
33
|
## QA gate
|
|
34
34
|
|
|
35
|
-
Read the plan's
|
|
35
|
+
Read the plan's frontmatter `qa` key and its per-phase QA tables: `qa: off` means no QA gate for that plan, and no `qa` key means every phase's QA table is part of the gate. QA is part of the completion gate: LFG builds every phase first, then presents one gate carrying code approval plus every phase's QA checklist. No phase turns `Done`, and nothing is committed or shipped, until both pass. When you mark a phase or write a QA row result, a plan edited in place gets `updated` set to today.
|
|
36
36
|
|
|
37
37
|
Rows split by `Mode`:
|
|
38
38
|
|
|
@@ -48,5 +48,5 @@ argument-hint: "[mode:identify] [key...]"
|
|
|
48
48
|
|
|
49
49
|
Any skill that needs project facts names it and runs the script; nothing copies its table.
|
|
50
50
|
|
|
51
|
-
- `sassy-setup` is the intended consumer: it probes with this script before
|
|
52
|
-
- Nobody else reads it yet. `sassy-worktree` must not:
|
|
51
|
+
- `sassy-setup` is the intended consumer: it probes with this script before scaffolding a project's `worktrees.create`/`worktrees.remove` pair, so a project that already declares how it starts and stops is pointed at its own command instead of being handed a stub. This script keeps reporting what a manifest declares, never the suite's config.
|
|
52
|
+
- Nobody else reads it yet. `sassy-worktree` must not: the project's create and remove scripts already carry whatever a checkout needs, so an overview there would re-create the seam this replaced.
|
|
@@ -46,7 +46,7 @@ Everything is file inspection: no network, no executing the project's tooling (n
|
|
|
46
46
|
| `env` | the env file in use | no env file |
|
|
47
47
|
| `wired` | the suite is set up here | never — the answer is `yes` or `no` |
|
|
48
48
|
|
|
49
|
-
`up` and `down` are the only keys a project might reasonably have and not declare, and this script reads only what a file declares: a `Makefile`/`justfile` target or a compose file. A project that
|
|
49
|
+
`up` and `down` are the only keys a project might reasonably have and not declare, and this script reads only what a file declares: a `Makefile`/`justfile` target or a compose file. A project that prepares and stops a checkout in its `worktrees.create`/`worktrees.remove` scripts is answering in code, not in a manifest — this script still reports `unknown` for them, because it never reads the suite's config or executes those scripts for a stack fact.
|
|
50
50
|
|
|
51
51
|
`wired` is the one key that always has an answer: `yes` with the nearest `.sassywares/config.yaml` as its source, otherwise `no` with `-`. The search walks up from `--root` the same way `sassy-setup`'s `detect.sh` resolves a config, so a repo nested inside a folder that owns one is `wired: yes`; the source is then that config's absolute path, since it sits outside the root.
|
|
52
52
|
|
|
@@ -42,7 +42,7 @@ argument-hint: "[feature description, requirements, or idea to scope] [out:<plan
|
|
|
42
42
|
|
|
43
43
|
## Caller-set output
|
|
44
44
|
|
|
45
|
-
A caller that owns where the plan goes — `sassy-goal` planning a slice, for one — passes `out:<path>`. Grill exactly as usual, then read `references/plan-format.md`, write the plan to exactly that path, skip the picker entirely, and return the path to the caller. Do not offer `sassy-work` or `sassy-lfg`; the caller hands those over. Anything the caller passes as settled enters the ledger as settled, with its provenance, and is never re-asked.
|
|
45
|
+
A caller that owns where the plan goes — `sassy-goal` planning a slice, for one — passes `out:<path>`. Grill exactly as usual, then read `references/plan-format.md`, write the plan to exactly that path, skip the picker entirely, and return the path to the caller. The caller owns the name and the frontmatter's `type`, `goal`, and `slice` keys; the path it passes wins over every naming rule in the format. Do not offer `sassy-work` or `sassy-lfg`; the caller hands those over. Anything the caller passes as settled enters the ledger as settled, with its provenance, and is never re-asked.
|
|
46
46
|
|
|
47
47
|
## The picker
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ Only when the read-back is confirmed with zero open items — and no `out:` was
|
|
|
50
50
|
|
|
51
51
|
```text
|
|
52
52
|
Settled. Pick one:
|
|
53
|
-
1. Write the plan — <artifacts.plans>/<slug>.md
|
|
53
|
+
1. Write the plan — <artifacts.plans>/<type>-<slug>.md
|
|
54
54
|
2. Start working via sassy-work
|
|
55
55
|
3. Implement and ship it via sassy-lfg
|
|
56
56
|
```
|
|
@@ -59,7 +59,7 @@ The user must pick explicitly. There is no default and no auto-selection. If no
|
|
|
59
59
|
|
|
60
60
|
### Option 1 — Write the plan
|
|
61
61
|
|
|
62
|
-
Read `references/plan-format.md` and write the plan
|
|
62
|
+
Read `references/plan-format.md` and write the plan — its frontmatter and the per-phase QA tables that format defines — with each row's `Mode` decided the way that format says. Then report the absolute path and offer the remaining two options, now run on the plan file:
|
|
63
63
|
|
|
64
64
|
```text
|
|
65
65
|
Plan written to <absolute path>. Pick one, or stop here:
|
|
@@ -83,7 +83,7 @@ The plan document carries QA tables per `references/plan-format.md`. Those rows
|
|
|
83
83
|
|
|
84
84
|
A row is `Auto` only when the project's `dogfood.enabled` is `true` **and** the row names a recipe section with a `Prove it:` step; otherwise it is `Manual`. That reference owns the list of checks that stay human — subjective, physical, irreversible, unobservable, unprovable — and on doubt the row is `Manual`. Never invent a section, a command, or a check to make a row look automatable: a false `Auto` pass is unrecoverable.
|
|
85
85
|
|
|
86
|
-
The in-context brief has no QA table, so its gate is code approval alone. Omit QA tables only when the user explicitly asks to skip QA in plain language.
|
|
86
|
+
The in-context brief has no QA table, so its gate is code approval alone. Omit QA tables only when the user explicitly asks to skip QA in plain language, and set `qa: off` in the plan's frontmatter when you write one.
|
|
87
87
|
|
|
88
88
|
## Review tier
|
|
89
89
|
|
|
@@ -91,6 +91,6 @@ Every phase also carries a `**Review:**` line — `logic`, `surface`, or `none`
|
|
|
91
91
|
|
|
92
92
|
## Resume
|
|
93
93
|
|
|
94
|
-
If the user points at an existing sassy plan, update phases and
|
|
94
|
+
If the user points at an existing sassy plan, update phases, tables, and `updated` in place (`created` never changes). If they point at a raw plan from elsewhere, reshape it into this format without discarding its settled decisions — but grill whatever it leaves open or merely asserts. An existing plan is already the document.
|
|
95
95
|
|
|
96
96
|
Decisions already settled earlier in the conversation, or passed in by a caller as settled, carry forward per `references/interview.md`; never re-ask them.
|