@sassywares/skills 0.12.0 → 0.12.1
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 +4 -4
- package/README.md +9 -9
- 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-plan/SKILL.md +5 -5
- package/skills/sassy-plan/references/plan-format.md +34 -6
- package/skills/sassy-setup/references/branching.md +7 -3
- package/skills/sassy-setup/references/config.md +6 -7
- package/skills/sassy-ship/SKILL.md +1 -1
- package/skills/sassy-work/SKILL.md +1 -1
package/CONCEPTS.md
CHANGED
|
@@ -115,16 +115,16 @@ Three shared mode tokens: `mode:manual` (default) asks at the skill's gate; `mod
|
|
|
115
115
|
|
|
116
116
|
Everything else is decided by the artifact, not a mode:
|
|
117
117
|
|
|
118
|
-
- A plan document under `docs/plans/` drives phased execution and carries QA tables whose rows are `Auto` or `Manual`.
|
|
118
|
+
- 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
119
|
- An in-context brief drives one cycle and has no plan file and no QA tables.
|
|
120
120
|
|
|
121
121
|
## Plan
|
|
122
122
|
|
|
123
|
-
A durable document under `docs/plans
|
|
123
|
+
A durable document under `docs/plans/<type>-<slug>.md` with frontmatter, intent, decisions, constraints, phase tracking, and per-phase QA tables.
|
|
124
124
|
|
|
125
125
|
## Goal
|
|
126
126
|
|
|
127
|
-
Work too big for one plan — a migration, an epic — run by `sassy-goal` as a folder under `artifacts.plans
|
|
127
|
+
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
128
|
|
|
129
129
|
## Slice
|
|
130
130
|
|
|
@@ -136,7 +136,7 @@ The append-only section of `goal.md` that `mode:check` adds to once per slice: w
|
|
|
136
136
|
|
|
137
137
|
## Goal hook
|
|
138
138
|
|
|
139
|
-
A project skill run at a goal's boundaries, declared under `hooks.goal` and keyed by the goal
|
|
139
|
+
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
140
|
|
|
141
141
|
## Brief
|
|
142
142
|
|
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:
|
|
@@ -314,7 +314,7 @@ flowchart LR
|
|
|
314
314
|
A[Idea] --> B[sassy-plan]
|
|
315
315
|
B --> C[Discussion]
|
|
316
316
|
C --> D{3-option picker}
|
|
317
|
-
D -->|1. plan document| E[docs/plans
|
|
317
|
+
D -->|1. plan document| E["docs/plans/<type>-<slug>.md"]
|
|
318
318
|
D -->|2. start working| F[sassy-work]
|
|
319
319
|
D -->|3. implement and ship| G[sassy-lfg]
|
|
320
320
|
E -->|then: start working| F
|
|
@@ -354,12 +354,12 @@ flowchart LR
|
|
|
354
354
|
G --> H[sassy-goal check]
|
|
355
355
|
H -->|more slices, after merge| D
|
|
356
356
|
H -->|last slice| I[sassy-goal close]
|
|
357
|
-
I --> J[Goal
|
|
357
|
+
I --> J[Goal done, rides the last PR]
|
|
358
358
|
```
|
|
359
359
|
|
|
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.
|
|
360
|
+
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
361
|
|
|
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 `
|
|
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 `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
363
|
|
|
364
364
|
### From bug to ship
|
|
365
365
|
|
|
@@ -403,7 +403,7 @@ The fix gate offers four options:
|
|
|
403
403
|
| 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
404
|
| Ship review | On in `mode:manual` (default), skipped by `mode:auto`. |
|
|
405
405
|
|
|
406
|
-
The artifact decides QA: a plan document carries QA tables that gate phase completion
|
|
406
|
+
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
407
|
|
|
408
408
|
## Branching
|
|
409
409
|
|
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
|
|
|
@@ -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.
|
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
Read this before writing the plan file.
|
|
4
4
|
|
|
5
|
+
## The file name
|
|
6
|
+
|
|
7
|
+
The filename is the plan's identity: `<artifacts.plans>/<type>-<slug>.md` for a standalone plan, whose `<type>-` prefix matches the frontmatter `type`; a goal slice is `<NN>-<slice-slug>.md`, and its slug carries no type.
|
|
8
|
+
|
|
9
|
+
- **`type`** is one of `feat fix chore refactor docs test perf ci build` — the Conventional Commit type the work will ship as — and a standalone plan's filename prefix must equal the frontmatter `type`.
|
|
10
|
+
- **`slug`** is lowercase ASCII kebab, 2–3 words (ceiling 5), naming the thing that changes, never the activity: `worktree-cut`, not `cutting-the-worktree-half`.
|
|
11
|
+
- **No date, no `-plan` suffix, no phase numbers.** The date is frontmatter, because a filename must survive a revision, and a rename breaks every reference to it (`sassy-work <plan>`, hook briefs, `goal.md`'s Plan links).
|
|
12
|
+
- **Never overwrite another plan.** Two concurrent plans on the same object take a qualifier (`-phase-two`), never a timestamp.
|
|
13
|
+
- **A caller passing `out:<path>` owns the name.** Slice plans stay `NN-<slice-slug>.md`, and the caller's path wins over every rule here.
|
|
14
|
+
|
|
15
|
+
## The frontmatter
|
|
16
|
+
|
|
17
|
+
Keys, in this order: `type`, `created`, and `updated` are required; `qa` is optional.
|
|
18
|
+
|
|
19
|
+
- **`type`** — matches the filename prefix and names the commit type the work will ship as. For a standalone plan the prefix must equal it; for a slice plan it equals the parent `goal.md`'s `type`, which the caller passes.
|
|
20
|
+
- **`created`** — `YYYY-MM-DD`, the day the plan was first written; never changes.
|
|
21
|
+
- **`updated`** — `YYYY-MM-DD`; a revision sets it to today in the same edit, and every executor that writes a phase status or a QA row result bumps it too.
|
|
22
|
+
|
|
23
|
+
**`qa`** is a gate switch, not a record of mode. Write `qa: off` only when the user asked for a plan with no QA gates at all, which also means no QA tables anywhere in the file; omit the key otherwise, and the QA gate is on. Never write `on`, `auto`, or `manual`. A check's mode lives only in the row `Mode` column, where rows freely mix `Auto` and `Manual`.
|
|
24
|
+
|
|
25
|
+
Slice plans add `goal` (relative path to the parent `goal.md`) and `slice` (the slice ID, e.g. `S1`).
|
|
26
|
+
|
|
27
|
+
The H1 title stays: frontmatter does not render on GitHub, so the heading is what a reader sees.
|
|
28
|
+
|
|
5
29
|
## No open questions
|
|
6
30
|
|
|
7
31
|
The plan has no open-questions section. Every branch the interview found is a decision, a deferred item, or an assumption — copy the ledger as it stood at the confirmed read-back. If you find an open branch while writing, stop and ask it before the file lands.
|
|
@@ -48,16 +72,18 @@ On doubt, `Manual`. A false `Auto` pass is unrecoverable; a `Manual` row is mere
|
|
|
48
72
|
|
|
49
73
|
QA is a completion gate, not a separate track: a phase turns `Done` only when the code is approved and every QA row for that phase passes. `Manual` rows belong to the user, and the agent records what it hears. `Auto` rows are settled by a `sassy-dogfood` run and its report, never by an opinion.
|
|
50
74
|
|
|
51
|
-
The user may ask in plain language
|
|
75
|
+
The user may ask in plain language for a plan with no QA gates, in which case omit every `#### QA — P<NN>` subsection and set `qa: off` in the frontmatter. An executor runs a QA gate unless that key says `off`.
|
|
52
76
|
|
|
53
77
|
## Plan file format
|
|
54
78
|
|
|
55
79
|
```markdown
|
|
56
|
-
|
|
80
|
+
---
|
|
81
|
+
type: feat
|
|
82
|
+
created: YYYY-MM-DD
|
|
83
|
+
updated: YYYY-MM-DD
|
|
84
|
+
---
|
|
57
85
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
(`auto` when at least one row in the plan is `Auto`, `manual` when none is. It is the source of truth for executors, so it never disagrees with the tables.)
|
|
86
|
+
# <Plan title>
|
|
61
87
|
|
|
62
88
|
## Intent
|
|
63
89
|
One short paragraph: what we are building and why.
|
|
@@ -124,4 +150,6 @@ Omit empty layers. Do not put the next goal's work here. The `**Review:**` line
|
|
|
124
150
|
…
|
|
125
151
|
```
|
|
126
152
|
|
|
127
|
-
|
|
153
|
+
`qa: off` is added to the frontmatter only for a gate-free plan.
|
|
154
|
+
|
|
155
|
+
Every phase has at least one QA row. Status values there are `Pending` | `Done` | `Blocked`: a `Manual` row is `Done` once the user ran that check and confirmed it passed, an `Auto` row is `Done` once a dogfood run passed and its run id is in `Notes`, `Blocked` carries a note saying what failed, and anything unreported stays `Pending`. The frontmatter's `qa: off` is the only thing that removes the gate for executors; its absence leaves the gate on.
|
|
@@ -69,9 +69,13 @@ ask at step 6, never a token of its own. There is no `worktree:ask`.
|
|
|
69
69
|
exactly that. Name the count, the branch, and the choice.
|
|
70
70
|
3. Name it `<type>/<slug>` from the plan path or the topic, deterministically,
|
|
71
71
|
so a retried run converges on the same name instead of forking `-2`. The slug
|
|
72
|
-
is the plan's path relative to `artifacts.plans`, without `.md
|
|
73
|
-
plan
|
|
74
|
-
|
|
72
|
+
is the plan's path relative to `artifacts.plans`, without `.md`, and without a
|
|
73
|
+
standalone plan's `<type>-` filename prefix: `feat-worktree-cut.md` names
|
|
74
|
+
`feat/worktree-cut`. A goal slice nests as `<type>/<goal>/<NN-slice>`, where
|
|
75
|
+
`<goal>` is the goal's folder minus its `<type>-` prefix (`feat-powersync/`
|
|
76
|
+
names `feat/powersync/02-offline-reads`), and `<type>` comes from the slice
|
|
77
|
+
plan's frontmatter because its `NN-<slice-slug>.md` filename carries none. A
|
|
78
|
+
`feat/*`-style `base_map` or
|
|
75
79
|
`hooks.pr` family still matches the nested name by prefix.
|
|
76
80
|
4. Re-run with `--name <name>` and take `pr-base` from that answer: a name like
|
|
77
81
|
`release/1.2` or `hotfix/x` matches a `base_map` family and retargets the PR,
|
|
@@ -104,7 +104,7 @@ down: just down
|
|
|
104
104
|
|
|
105
105
|
| Key | Default | Meaning |
|
|
106
106
|
|-----|---------|---------|
|
|
107
|
-
| `artifacts.plans` | `docs/plans` | Where `sassy-plan` writes plans, and where `sassy-goal` keeps goal folders (`<slug>/goal.md` plus slice plans) |
|
|
107
|
+
| `artifacts.plans` | `docs/plans` | Where `sassy-plan` writes plans, and where `sassy-goal` keeps goal folders (`<type>-<slug>/goal.md` plus slice plans) |
|
|
108
108
|
| `artifacts.solutions` | `docs/solutions` | Where `sassy-compound` writes learnings |
|
|
109
109
|
| `artifacts.handbooks` | `docs/handbooks` | Where `sassy-handbook` writes handbooks |
|
|
110
110
|
| `artifacts.concepts` | `CONCEPTS.md` | The glossary file compound maintains |
|
|
@@ -394,10 +394,9 @@ in review, and commented when it is deliberate.
|
|
|
394
394
|
|
|
395
395
|
### Goal hooks
|
|
396
396
|
|
|
397
|
-
`hooks.goal` keys on the **goal slug
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
`sassy-goal` owns both.
|
|
397
|
+
`hooks.goal` keys on the **goal folder's name**, the `<type>-<slug>` folder under `artifacts.plans`, prefix included (`hooks.goal.feat-powersync`; the slug alone is the part after the `<type>-`), and resolves exactly like `hooks.pr`: exact slug, the longest matching family, then `"*"`. Its two points are in the table above; `sassy-goal` owns both.
|
|
398
|
+
|
|
399
|
+
A goal folder renamed to the `<type>-<slug>/` shape takes its `hooks.goal` keys with it: existing folders keep working under their old key until renamed.
|
|
401
400
|
|
|
402
401
|
- **Early stop**: neither fires when that mode stops early — an unmerged PR,
|
|
403
402
|
nothing eligible, or a failed persist. A stale base does not stop
|
|
@@ -412,8 +411,8 @@ longest matching family, then `"*"`. Its two points are in the table above;
|
|
|
412
411
|
unpushed on a base is a stop, not a slice's starting point. Entries must be
|
|
413
412
|
idempotent: a resumed `mode:next` re-fires `before_slice`, and a close-out
|
|
414
413
|
can be re-run.
|
|
415
|
-
- **Both outcomes**: `after_close` fires for
|
|
416
|
-
left `
|
|
414
|
+
- **Both outcomes**: `after_close` fires for `status: done` and for a goal
|
|
415
|
+
left `active` because a gap went to a new slice. The brief carries
|
|
417
416
|
`goal_status` so the hook can tell them apart.
|
|
418
417
|
- **Not PR-keyed**: `commit.branch: current` does not suppress these, so the
|
|
419
418
|
`pr.*`, babysit, and merge rules that ignore `hooks.pr` under `current` do not
|
|
@@ -48,7 +48,7 @@ argument-hint: "<plan path or topic> [steps:compound,handbook,commit,pr,babysit]
|
|
|
48
48
|
|
|
49
49
|
**One PR per run.** Babysitting a workspace fan-out means one `sassy-babysit` run per PR, and a fan-out is never auto-merged: `pr.merge` and `pr.merge:on` apply to a single-PR run only. A multi-repo merge needs an explicit per-PR say-so.
|
|
50
50
|
|
|
51
|
-
**Goal slices.** A plan
|
|
51
|
+
**Goal slices.** A `sassy-goal` slice is a plan whose frontmatter `slice` key names the slice ID and whose `goal` key names the parent `goal.md`, with the directory convention (a plan sitting next to a `goal.md`) as the fallback when those keys are absent. The step 4 commit worker sets that slice `Shipped` in `goal.md`'s slice table and names `goal.md` in the commit, since `sassy-commit` stages named files only. Step 6 babysits the PR **without merging** — forward `merge:off` whatever `pr.merge` or the caller says — because `sassy-goal` `mode:check` must run on the open PR first. End the final report with the `sassy-goal <goal path> mode:check` command in the harness's syntax.
|
|
52
52
|
|
|
53
53
|
## Rules
|
|
54
54
|
|
|
@@ -35,7 +35,7 @@ A phase's `**Review:**` line names its change tier — `logic`, `surface`, or `n
|
|
|
35
35
|
|
|
36
36
|
## QA gate
|
|
37
37
|
|
|
38
|
-
Read the plan's
|
|
38
|
+
Read the plan's frontmatter `qa` key and its per-phase QA table: `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 phase gate, not a separate track: a phase turns `Done` only when the code is approved **and** every QA row for that phase has passed. When you mark a phase or write a QA row result, a plan edited in place gets `updated` set to today.
|
|
39
39
|
|
|
40
40
|
Rows split by `Mode`, and the split decides who can settle them:
|
|
41
41
|
|