@sassywares/skills 0.11.16 → 0.11.18
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 +5 -1
- package/README.md +12 -5
- package/package.json +1 -1
- package/skills/sassy-babysit/SKILL.md +1 -1
- package/skills/sassy-cycle/SKILL.md +61 -39
- package/skills/sassy-debug/SKILL.md +3 -3
- package/skills/sassy-goal/references/check.md +1 -1
- package/skills/sassy-lfg/SKILL.md +9 -13
- package/skills/sassy-plan/SKILL.md +4 -0
- package/skills/sassy-plan/references/plan-format.md +13 -1
- package/skills/sassy-review/SKILL.md +3 -3
- package/skills/sassy-setup/assets/worktree/_lib.sh +10 -4
- package/skills/sassy-setup/assets/worktree/create +13 -1
- package/skills/sassy-setup/references/worktree.md +14 -0
- package/skills/sassy-simplify/SKILL.md +2 -2
- package/skills/sassy-validate/SKILL.md +3 -3
- package/skills/sassy-work/SKILL.md +10 -5
- package/skills/sassy-worktree/references/create.md +1 -1
package/CONCEPTS.md
CHANGED
|
@@ -18,7 +18,11 @@ A skill that mostly coordinates. It reads compact results, writes briefs, and av
|
|
|
18
18
|
|
|
19
19
|
## Cycle
|
|
20
20
|
|
|
21
|
-
`sassy-cycle` runs one unit of work through
|
|
21
|
+
`sassy-cycle` runs one unit of work through a tiered loop: implement → quality by change tier → one fix pass → return. A `logic` unit runs the simplifier, reviewer, and validator in parallel; a `surface` unit runs the reviewer; a `none` unit runs neither. The fix pass applies every finding once, and the cycle never re-reviews it — findings the worker leaves open are reported, and simplifications never block. Reviewer suggestions go to the gate. Given findings instead of a brief — requested changes, failed QA rows — it applies them in one work pass. It never commits. Work and LFG run it; debug fixes through work.
|
|
22
|
+
|
|
23
|
+
## Change tier
|
|
24
|
+
|
|
25
|
+
The depth of quality work a unit needs: declared per plan phase with `**Review:**`, passed as a `review:` token, or detected by `sassy-cycle` from the work. `logic` is core code and anything that can change runtime behavior; `surface` is everything that is not core code — docs, Markdown, comments, copy/i18n, tests, fixtures, formatting; `none` is machine-generated or mechanical churn. A declared `surface` or `none` is promoted to `logic` when the work touches core code; never the reverse.
|
|
22
26
|
|
|
23
27
|
## Dogfood
|
|
24
28
|
|
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ It covers the whole path from a rough idea to a shipped PR, and from a bug repor
|
|
|
32
32
|
- **Lean.** Skills are indexes and workflows, not documentation dumps. Detail moves into `references/` only when it is conditionally needed.
|
|
33
33
|
- **Explicit.** Every skill but `sassy-ship` runs only when you invoke it; ship may be started by the agent once you approve the work, and its review gate still waits. No silent background behavior.
|
|
34
34
|
- **Controlled.** Code approval, QA — manual and proved — and ship review are visible gates that all run in sequence. Mode tokens are opt-in per skill: `mode:manual` (default) and `mode:auto` on `sassy-ship` and `sassy-compound`, plus `mode:return` on `sassy-review`, `sassy-simplify`, and `sassy-validate`; work, lfg, and debug take no mode; `sassy-goal` takes one mode per step of a goal (`write`, `next`, `check`, `close`).
|
|
35
|
-
- **Reliable.** Work runs through `sassy-cycle` with isolated subagents for implementation, review, simplification, validation, and
|
|
35
|
+
- **Reliable.** Work runs through `sassy-cycle` with isolated subagents for implementation, review, simplification, validation, and fixes — at the depth the change tier needs.
|
|
36
36
|
- **Context-efficient.** Orchestrators coordinate; subagents do the heavy reading and return compact results.
|
|
37
37
|
- **Never surprising.** Nothing is committed just because a step finished. Shipping is its own phase.
|
|
38
38
|
|
|
@@ -92,7 +92,7 @@ Debugging:
|
|
|
92
92
|
| **`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. |
|
|
93
93
|
| **`sassy-lfg`** | Executes every phase of a plan, or one in-context brief, then closes out via `sassy-ship` after code approval. |
|
|
94
94
|
| **`sassy-worktree`** | One checkout per branch, each with its own derived namespace and port, so two agents can work in one repo — taken when you ask, never because the config allows it. `create`, `list`, `preview`, `remove`, `prune` — and `preview` brings a checkout up so you can look at it without setting it up by hand. |
|
|
95
|
-
| **`sassy-cycle`** | Runs one unit of work through implement →
|
|
95
|
+
| **`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 requested changes or failed QA rows. |
|
|
96
96
|
| **`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`. |
|
|
97
97
|
| **`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. |
|
|
98
98
|
|
|
@@ -105,7 +105,7 @@ Debugging:
|
|
|
105
105
|
| **`sassy-validate`** | Checks whether work matches a plan or stated intent, then closes the gaps you pick. |
|
|
106
106
|
| **`sassy-dogfood`** | Uses the product the way a user does to prove a change actually works at runtime — runs the project's stored procedure, writes a report with a verdict, and in `mode:discover` builds or repairs that procedure from what really worked. Tooling-agnostic: it uses whatever your harness has connected and never installs a runner. |
|
|
107
107
|
|
|
108
|
-
Each does one job and takes `mode:manual` (default: ask which to fix), `mode:auto` (fix without asking), or `mode:return` (report only). Fixes run through `sassy-cycle
|
|
108
|
+
Each does one job and takes `mode:manual` (default: ask which to fix), `mode:auto` (fix without asking), or `mode:return` (report only). Fixes run through `sassy-cycle` as one work pass. Inside work, lfg, and debug, the cycle runs the agents its change tier needs.
|
|
109
109
|
|
|
110
110
|
`sassy-dogfood` takes its own modes instead: `run` (default), `discover`, and `check`.
|
|
111
111
|
|
|
@@ -217,6 +217,12 @@ ask for it, and a run carrying `worktree:on` has already been told yes.
|
|
|
217
217
|
`WT_SLUG`, `WT_NAMESPACE` — so a project's hook derives `.env`, a database name,
|
|
218
218
|
or a simulator from one source instead of inventing its own.
|
|
219
219
|
|
|
220
|
+
A checkout's branch is cut **untracked**, and `create` prints the upstream it
|
|
221
|
+
found — `none` on a fresh branch, and a plain-English warning when an existing
|
|
222
|
+
branch tracks something other than its own name. Cut from `origin/staging`, git's
|
|
223
|
+
DWIM would have made `staging` that branch's upstream, so the branch's own `git
|
|
224
|
+
push` would aim at the base: a run that looks healthy until it ships.
|
|
225
|
+
|
|
220
226
|
A **port is a resource, not the model**. With `ports:` configured, a checkout
|
|
221
227
|
also gets `WT_PORT` and `WT_BASE_URL`, hashed into the range and claimed
|
|
222
228
|
atomically so a restarted app returns to the same port. Delete `ports:` and there
|
|
@@ -316,11 +322,11 @@ flowchart LR
|
|
|
316
322
|
L -->|approve or mode:auto| M[Commit, PR, babysit]
|
|
317
323
|
```
|
|
318
324
|
|
|
319
|
-
Option 1 produces a durable plan with phased slices and
|
|
325
|
+
Option 1 produces a durable plan with phased slices, QA tables, and a change tier per phase. Options 2 and 3 keep the whole job as one settled in-context brief and write no plan file.
|
|
320
326
|
|
|
321
327
|
`sassy-work` handles one phase and stops after its commit. `sassy-lfg` drains the whole plan in one session. Both delegate to `sassy-cycle` and stop at one gate carrying code approval plus the QA checklist; nothing is `Done`, committed, or shipped until both pass. `Manual` rows are yours to run. `Auto` rows are proved before the gate by `sassy-dogfood`, and a failed one goes back through the cycle as a finding. With an in-context brief there are no QA rows, so the gate is code approval alone.
|
|
322
328
|
|
|
323
|
-
Inside the cycle,
|
|
329
|
+
Inside the cycle, the **change tier** decides the depth: a `logic` change runs the simplifier, reviewer, and validator in parallel; a `surface` change — docs, copy, tests, fixtures — runs the reviewer; a mechanical change skips review. Every finding is then fixed in one work pass — criticals, warnings, validator gaps, and simplifications together — and the cycle does not re-review the fix. Findings the worker leaves open are reported at the gate, simplifications never block, and the reviewer's suggestions are listed for you to pick. Changes you request at the gate and QA rows that fail go through the same one-pass rework, then the gate comes back.
|
|
324
330
|
|
|
325
331
|
The branch is cut once, before the first change, by `sassy-work` or `sassy-lfg` — never at commit time — and `sassy-ship` never creates it. `commit.branch` (default `new`) decides whether the run cuts one at all; see [Branching](#branching).
|
|
326
332
|
|
|
@@ -382,6 +388,7 @@ The fix gate offers four options:
|
|
|
382
388
|
| Control | When it applies |
|
|
383
389
|
|---|---|
|
|
384
390
|
| Code approval | Always on for `sassy-work` and `sassy-lfg`. |
|
|
391
|
+
| Review tier | Per plan phase (`**Review:**`) or a `review:` token, else detected by the cycle. `logic` runs simplify + review + validate; `surface` runs review; `none` skips review. The cycle fixes once and never re-reviews. |
|
|
385
392
|
| QA | Part of the same gate, and only when the plan document has QA tables. `Manual` rows are yours; `Auto` rows are settled by a `sassy-dogfood` report. A phase is `Done` only when both pass. |
|
|
386
393
|
| 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. |
|
|
387
394
|
| Ship review | On in `mode:manual` (default), skipped by `mode:auto`. |
|
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@ Snapshot the PR state first, then act in this order:
|
|
|
45
45
|
5. **CI** — `gh pr checks`. One pass for all failures. Flaky/infra → `gh run rerun <run-id> --failed`. Real failure → fix it (see **Fixing**). Mark each check handled; unfixed checks stay red.
|
|
46
46
|
6. **Branch currency** — if the branch is `BEHIND` or `DIRTY`, update it (`gh pr update-branch <ref>`, or ask for a local rebase). Do not update just because the base moved; only when the status actually requires it.
|
|
47
47
|
|
|
48
|
-
**Fixing.** Load the `sassy-cycle` skill on rework with the threads and failing checks as findings and the PR's changed files as the scope hint; it
|
|
48
|
+
**Fixing.** Load the `sassy-cycle` skill on rework with the threads and failing checks as findings and the PR's changed files as the scope hint; it applies them in one work pass and reports each fixed or open; there is no verify pass. Then load `sassy-commit` with `branch:current` and `git push`. A finding the cycle leaves open, or a failure you cannot diagnose from the log and the diff, is `needs-human`. Never load `sassy-debug` or `sassy-ship` from here — they commit, open PRs, and babysit on their own, which nests a second watch over this PR.
|
|
49
49
|
|
|
50
50
|
After a tick with no true stop, wait and run the next tick. Checkpoint mode: run one tick and report paused with the resume command.
|
|
51
51
|
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sassy-cycle
|
|
3
3
|
description: >-
|
|
4
|
-
Run one unit of work through
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Never commits. Built for
|
|
10
|
-
efficiency — the orchestrator only writes briefs and reads
|
|
11
|
-
|
|
4
|
+
Run one unit of work through a tiered quality loop using subagents: implement,
|
|
5
|
+
then simplify + review + validate for logic changes, review for surface
|
|
6
|
+
changes, or nothing for mechanical ones, fix once, and return. No verify pass.
|
|
7
|
+
Also reworks existing work from a list of findings (requested changes, failed
|
|
8
|
+
QA rows, a standalone review's picks). Used by sassy-work, sassy-lfg,
|
|
9
|
+
sassy-review, sassy-simplify, and sassy-validate. Never commits. Built for
|
|
10
|
+
context and token efficiency — the orchestrator only writes briefs and reads
|
|
11
|
+
compact results.
|
|
12
|
+
argument-hint: "<work brief | findings> [review:logic|surface|none] [intent reference]"
|
|
12
13
|
---
|
|
13
14
|
|
|
14
15
|
# Sassy Cycle
|
|
15
16
|
|
|
16
|
-
**Outcome:** one unit of work
|
|
17
|
+
**Outcome:** one unit of work implemented, reviewed at the depth its change tier needs, every finding fixed in one work pass, and a compact structured result returned to the caller. This skill never commits, pushes, or ships.
|
|
18
|
+
|
|
19
|
+
**Tiered, not uniform.** The change decides which quality agents run:
|
|
20
|
+
|
|
21
|
+
- **`logic`** — core code and anything that can change runtime behavior. The `simplifier`, `reviewer`, and `validator` run in parallel.
|
|
22
|
+
- **`surface`** — everything that is not core code: docs, Markdown, comments, copy/i18n strings, tests, fixtures, formatting. The `reviewer` alone.
|
|
23
|
+
- **`none`** — machine-generated or mechanical: lockfiles, generated or vendored files, formatter churn, mass renames. No quality agent.
|
|
24
|
+
|
|
25
|
+
**No verify pass.** After the quality agents report, one worker applies the findings and that is the last step. The cycle never re-reviews the fix. A finding left open is reported, not looped on.
|
|
17
26
|
|
|
18
27
|
**Subagent-maximal by design.** The orchestrator (the main context) must never read source files, diffs, or the tree. Every heavy read happens inside a subagent with its own isolated context window. The orchestrator only writes briefs and reads compact structured results. This is what keeps the caller's context small across many phases.
|
|
19
28
|
|
|
@@ -22,33 +31,42 @@ argument-hint: "<work brief | findings> [intent reference]"
|
|
|
22
31
|
## Inputs
|
|
23
32
|
|
|
24
33
|
- **Work brief** — what to build or fix, concretely.
|
|
25
|
-
- **Intent reference** — how conformance is judged: a plan path + phase, or root-cause findings. Optional
|
|
34
|
+
- **Intent reference** — how conformance is judged: a plan path + phase, or root-cause findings. Optional; without one the validator is skipped.
|
|
26
35
|
- **Scope hint** — files or areas, optional.
|
|
27
|
-
- **
|
|
36
|
+
- **Review tier** — `logic` (default), `surface`, or `none`. Callers pass the plan phase's `**Review:**` line or a `review:` token. When neither exists, step 3 detects it from the work's own report.
|
|
37
|
+
- **Findings** — rework only: a list of changes to make to work that already exists — the user's requested changes, failing QA rows, a standalone skill's picked findings. Each is a **fix** unless the caller marks it a **simplification**. Given findings, skip steps 1–5 and start at step 6 with the findings as its lists.
|
|
38
|
+
|
|
39
|
+
## Worker brief constraints
|
|
40
|
+
|
|
41
|
+
Every worker brief this cycle dispatches — implement and fix — carries:
|
|
42
|
+
|
|
43
|
+
- Tests only for the files the worker changed and the existing tests that directly regress them. The full suite runs once at the final gate.
|
|
44
|
+
- A hard timeout around long-running commands, for example `timeout 300 bunx vitest run path/to/file.test.ts`; a hung command is killed and reported.
|
|
45
|
+
- Stop and report a blocker to the orchestrator after one failed retry, with the exact command and error, instead of looping on the same failure.
|
|
46
|
+
- Report the files it changed and state `Runtime behavior: yes` or `Runtime behavior: no` — whether the change alters what the product does.
|
|
47
|
+
- For a **simplification**: behavior stays identical — same output for every input, same errors, same side effects and ordering. Never remove validation, error handling that prevents data loss, authorization, escaping, or accessibility code to make something simpler, and never weaken a test to make it pass. A simplification that cannot meet that is skipped and reported with the reason.
|
|
28
48
|
|
|
29
49
|
## Steps
|
|
30
50
|
|
|
31
51
|
1. **Recon (optional).** If the work is large or its location is unclear, run `sassy-scout` first and pass the grounding brief path into the work brief. Skip when the brief is already precise.
|
|
32
|
-
2. **Implement.** Dispatch a `worker` with the work brief, the intent reference, and the plan path if there is one
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
52
|
+
2. **Implement.** Dispatch a `worker` with the work brief, the intent reference, and the plan path if there is one, carrying the worker brief constraints above. For independent chunks, batch them as **parallel** `worker` tasks in one call (max 8). The worker reads whatever it needs itself.
|
|
53
|
+
3. **Resolve the tier.** An explicit tier from Inputs wins, unless the work contradicts it: a `surface` or `none` unit whose files include core code, or whose worker reported `Runtime behavior: yes`, is promoted to `logic`. Never demote. Without an explicit tier, classify from the worker's file report:
|
|
54
|
+
- any core-code path, or `Runtime behavior: yes` → `logic`
|
|
55
|
+
- only human-authored docs, copy, comments, tests, or fixtures → `surface`
|
|
56
|
+
- only generated, vendored, lock, or formatting files → `none`
|
|
57
|
+
- mixed surface and generated files → `surface`; the human-authored part decides.
|
|
58
|
+
|
|
59
|
+
Core code is what ships and runs: product source, UI and styles, schemas and migrations, public contracts, and behavior-changing config. Report the resolved tier as `declared`, `detected`, or `promoted` in the result.
|
|
60
|
+
4. **Quality (by tier).** Dispatch in one **parallel** call where the tier has more than one agent:
|
|
61
|
+
- `logic` — the `simplifier`, the `reviewer`, and, when there is an intent reference, the `validator`. Give the validator the intent reference so it can judge conformance; give the simplifier the plan path, if there is one, so settled structure stays.
|
|
62
|
+
- `surface` — the `reviewer` alone, briefed: *surface change — docs, copy, comments, tests, or fixtures. Apply correctness and project-rule conformance; skip the design-system dimension and risk lenses unless the change touches UI or runtime code. Do not pad.*
|
|
63
|
+
- `none` — no agent; go to step 7 as `done`.
|
|
64
|
+
5. **Triage.** Two lists, both numbered:
|
|
65
|
+
- **Fixes** — every reviewer **critical** and **warning**, every validator gap, and every blocker a worker reported.
|
|
66
|
+
- **Simplifications** — every simplifier finding.
|
|
44
67
|
|
|
45
68
|
Reviewer **Suggestions** are neither: carry them to the result untouched for the caller's gate. Both lists empty → step 7.
|
|
46
|
-
|
|
47
|
-
6. **Verify (parallel).** Dispatch the `reviewer` and, when there is an intent reference, the `validator` together, both scoped to this fix. The simplifier does not run again — a fresh pass would always find more.
|
|
48
|
-
- **Reviewer** — both lists and the files the fix changed. It returns, per item, `resolved` or `not resolved` with a reason — for a simplification, `resolved` also means behavior is unchanged — plus any **new** critical or warning the fix's changes introduced. A simplification that changed behavior is a new finding.
|
|
49
|
-
- **Validator** — the intent reference plus the fixes list. It re-grades conformance and names any gap left.
|
|
50
|
-
|
|
51
|
-
The new fixes list is every unresolved fix, every new finding, and every validator gap; unresolved simplifications carry forward on their own list. Both empty → step 7 as `done`. Otherwise, after fix pass 1 → back to step 5; after fix pass 2 → step 7: `blocked` when fixes remain open, `done` when only simplifications do — they are reported, never blocking.
|
|
69
|
+
6. **Fix once.** Dispatch one `worker` with both lists, labeled, to do exactly those and nothing else, carrying the worker brief constraints above. On rework, the findings are the lists. The worker reports each item `fixed`, `applied`, or `not fixed` / `skipped` with a reason. This is the only fix pass: never verify it, never dispatch a second fix inside this run.
|
|
52
70
|
7. **Return** the structured result below.
|
|
53
71
|
|
|
54
72
|
## Structured result
|
|
@@ -57,27 +75,30 @@ Return this to the caller, compactly:
|
|
|
57
75
|
|
|
58
76
|
```text
|
|
59
77
|
Status: done | blocked
|
|
78
|
+
Tier: logic | surface | none (declared | detected | promoted) | rework
|
|
60
79
|
Files changed: <paths>
|
|
61
|
-
|
|
62
|
-
Findings: <finding ->
|
|
63
|
-
Simplifications: <finding -> applied
|
|
80
|
+
Work passes: 1 | 2
|
|
81
|
+
Findings: <finding -> fixed | open: reason>
|
|
82
|
+
Simplifications: <finding -> applied | skipped: reason | open: reason>
|
|
64
83
|
Suggestions: <reviewer suggestions, not acted on>
|
|
65
|
-
Validator: Conforms | Partial | Diverges | Blocked
|
|
66
|
-
Reviewer: <n> critical, <n> warnings
|
|
84
|
+
Validator: Conforms | Partial | Diverges | Blocked | not run
|
|
85
|
+
Reviewer: <n> critical, <n> warnings | not run
|
|
67
86
|
Notes: <anything the caller needs>
|
|
68
87
|
```
|
|
69
88
|
|
|
70
|
-
|
|
89
|
+
`Status` is `blocked` only when the work or the fix could not run (a worker blocker, an unresolved critical the worker reports it cannot fix, or a failed dispatch). `Findings` and `Simplifications` are the fixing worker's report; this cycle does not re-review them. `Tier` and its source tell the caller what depth ran.
|
|
71
90
|
|
|
72
91
|
## Rules
|
|
73
92
|
|
|
74
93
|
| Rule | Requirement |
|
|
75
94
|
|------|-------------|
|
|
76
95
|
| Orchestrator only | Never edit code or read source in the main context. Delegate. |
|
|
77
|
-
|
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
|
96
|
+
| Tier decides agents | `logic` → simplifier + reviewer + validator (validator only with an intent reference); `surface` → reviewer; `none` → none. |
|
|
97
|
+
| One fix pass, no verify | At most one work pass after the quality agents. Never re-review the fix. |
|
|
98
|
+
| Never demote | A declared `surface` or `none` promotes to `logic` when the work touches core code or reports changed runtime behavior. |
|
|
99
|
+
| Parallel where independent | Independent work chunks → parallel workers. The tier's quality agents run in one parallel call. |
|
|
100
|
+
| Only fixes block | Simplifications are applied or reported but never make a run `blocked`; reviewer suggestions go to the caller's gate for the user to pick and are never applied automatically. |
|
|
101
|
+
| Simplifier runs once | Only at the `logic` tier. It never runs on rework. |
|
|
81
102
|
| Never commit | This skill leaves everything uncommitted. Shipping is `sassy-ship`. |
|
|
82
103
|
| QA stays the caller's | Never mark a QA row `Done`, `Manual` or `Auto`. A `Manual` row is confirmed by the user at the caller's gate and an `Auto` row by a passing dogfood report; failing rows come back as findings. |
|
|
83
104
|
|
|
@@ -87,3 +108,4 @@ A finding is `resolved`, and a simplification `applied`, only when step 6's revi
|
|
|
87
108
|
- Keep the intent reference terse — a plan path plus a phase, or a short findings list.
|
|
88
109
|
- Never paste file contents or subagent transcripts through the orchestrator; summarize.
|
|
89
110
|
- Prefer one worker with a good brief over a tour of the tree in the main context.
|
|
111
|
+
- A `surface` or `none` unit is cheap on purpose: do not add agents the tier does not name. If the work turns out to touch core code, promote it at step 3 instead of widening the brief.
|
|
@@ -5,7 +5,7 @@ description: >-
|
|
|
5
5
|
through sassy-work (quality cycle, code approval, commit), and finally ship
|
|
6
6
|
it through sassy-ship. Never auto-commits. Use when asked to
|
|
7
7
|
debug or fix a failure.
|
|
8
|
-
argument-hint: "[issue reference, error message, test path, or description] [branch:infer|current|new] [worktree:on|off]"
|
|
8
|
+
argument-hint: "[issue reference, error message, test path, or description] [branch:infer|current|new] [worktree:on|off] [review:logic|surface|none]"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# Sassy Debug
|
|
@@ -60,13 +60,13 @@ This gate is mandatory even when the original request said "fix the bug". Do not
|
|
|
60
60
|
|
|
61
61
|
### Option 1 — Fix it now
|
|
62
62
|
|
|
63
|
-
Load the `sassy-work` skill on its brief path, forwarding this run's `branch
|
|
63
|
+
Load the `sassy-work` skill on its brief path, forwarding this run's `branch:`, `worktree:`, and `review:` tokens if they were given, with:
|
|
64
64
|
|
|
65
65
|
- work brief = "Fix the root cause: <causal chain>. Apply the smallest change; add or strengthen the regression test first."
|
|
66
66
|
- intent reference = the diagnosis from Phase 1
|
|
67
67
|
- scope hint = the files the fix touches
|
|
68
68
|
|
|
69
|
-
Work owns the fix from here: one `sassy-cycle` (fix, review, validate
|
|
69
|
+
Work owns the fix from here: one `sassy-cycle` (fix, review, validate for logic; reviewer only for surface; one fix pass, no verify), its code approval gate — where the result shows the causal chain next to the fix — the rework loop for any changes the user asks for, and the commit. It stops before ship. Do not dispatch `sassy-cycle` or present a second code approval gate yourself.
|
|
70
70
|
|
|
71
71
|
The branch decision belongs to work, not to this phase: diagnosis writes nothing, so cutting a branch before the fix gate would leave an empty branch every time the gate ends in *Write a plan*, *Hand off*, or *Stop here*. Work resolves it per `sassy-setup`'s `references/branching.md` before it touches code, so the fix is on its own branch from the first edit and still never lands on a base branch.
|
|
72
72
|
|
|
@@ -10,7 +10,7 @@ Runs on the slice branch after `sassy-ship`, before the PR merges, so whatever i
|
|
|
10
10
|
2. **Find the range.** The probe worker also returns `git merge-base <remote>/<baseRefName> HEAD`. Under `commit.branch: current` there is no PR: ask the user for the commit the slice started from. Under `git.repo: workspace`, get one PR, base, and merge-base per affected repo.
|
|
11
11
|
3. **Validate.** Load the `sassy-validate` skill with `mode:return`, the slice plan path with no phase (the whole plan), and `range:<merge-base>..HEAD`. In a workspace, make one call per affected repo, each with its own range. A `Blocked — insufficient grounding` grade stops the check: report what it needs.
|
|
12
12
|
4. **Resolve every gap.** On `Conforms`, there are none. Otherwise present each gap with its evidence, and for each the user picks one:
|
|
13
|
-
- **Fix now** — collected and closed together: load the `sassy-cycle` skill on rework with the chosen gaps as findings and the slice plan as the intent reference. A gap still open after its
|
|
13
|
+
- **Fix now** — collected and closed together: load the `sassy-cycle` skill on rework with the chosen gaps as findings and the slice plan as the intent reference. A gap still open after its one work pass goes back to the user to defer or accept.
|
|
14
14
|
- **Defer to a later slice** — the user names one that is still `Pending`. Add the gap to that slice's Scope or Done when in `goal.md`; it also goes in this slice's carry-forward entry. On the last slice there is nothing to defer to: only fix or accept.
|
|
15
15
|
- **Accept** — with the user's reason, recorded in the carry-forward entry.
|
|
16
16
|
|
|
@@ -4,7 +4,7 @@ description: >-
|
|
|
4
4
|
Execute a whole sassy plan phase by phase, or one settled in-context brief,
|
|
5
5
|
then close out via sassy-ship after code approval. The orchestrator only
|
|
6
6
|
coordinates. Best for small plans that one context can hold.
|
|
7
|
-
argument-hint: "<plan path | brief> [branch:infer|current|new] [worktree:on|off]"
|
|
7
|
+
argument-hint: "<plan path | brief> [branch:infer|current|new] [worktree:on|off] [review:logic|surface|none]"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Sassy LFG
|
|
@@ -26,6 +26,10 @@ Detect the shape from the argument:
|
|
|
26
26
|
|
|
27
27
|
If nothing is passed and no plan exists, run `sassy-plan` first and use what the user picks there.
|
|
28
28
|
|
|
29
|
+
## Review tier
|
|
30
|
+
|
|
31
|
+
A phase's `**Review:**` line names its change tier — `logic`, `surface`, or `none` — per the `sassy-plan` skill's `references/plan-format.md`. Pass it to `sassy-cycle` for that phase. A `review:` token on this run overrides the plan line; without either, the cycle detects the tier from the work.
|
|
32
|
+
|
|
29
33
|
## QA gate
|
|
30
34
|
|
|
31
35
|
Read the plan's `**QA:**` line and its per-phase QA tables. 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.
|
|
@@ -46,30 +50,22 @@ A brief has no QA table, so its gate is code approval alone. Never invent, enabl
|
|
|
46
50
|
|
|
47
51
|
When the decision took a checkout, every phase brief and every `sassy-dogfood` run uses the checkout's own address — `WT_PATH`, and `WT_NAMESPACE`/`WT_PORT` where the project declared a port range — since proof run against the main checkout's port proves the wrong app.
|
|
48
52
|
3. **Run every phase, in order.** For each phase not `Done`:
|
|
49
|
-
- Set the phase `In progress`, then load the `sassy-cycle` skill and follow it, with work brief = the phase's goal/work/"Done when",
|
|
53
|
+
- Set the phase `In progress`, then load the `sassy-cycle` skill and follow it, with work brief = the phase's goal/work/"Done when", intent reference = the plan path and phase, and review tier = the phase's `**Review:**` line or this run's `review:` token.
|
|
50
54
|
- On `Status: done`, leave the phase `In progress` — its QA rows are still owed, and only the gate closes them.
|
|
51
55
|
- On `Status: blocked`, mark it `Blocked` and stop the run.
|
|
52
|
-
4. **The gate.** After the last phase, prove the `Auto` rows — run `sassy-dogfood` in `mode:run` for each row's section; a `failed` verdict is a finding for that phase's rework, and a `class: env` verdict stops the run with the toolchain named. Then report: the plan path, each phase's status, what changed per phase, findings raised and
|
|
56
|
+
4. **The gate.** After the last phase, prove the `Auto` rows — run `sassy-dogfood` in `mode:run` for each row's section; a `failed` verdict is a finding for that phase's rework, and a `class: env` verdict stops the run with the toolchain named. Then report: the plan path, each phase's status, what changed per phase, findings raised and what each single fix pass did with them (self-reported; no verify), the simplifications applied or skipped, the validator/reviewer summaries, and the reviewers' suggestions as options the user may pick. Then give every phase's QA checklist verbatim — row ID, check, `Mode`, and for `Manual` how to run it and what passing looks like, for `Auto` the dogfood verdict and run id — with unreported rows `Pending`. Ask for both decisions: code approval (or the changes wanted, including any suggestions picked) and the result per `Manual` row. Wait. Do not commit.
|
|
53
57
|
5. **Resolve the gate.** Three outcomes:
|
|
54
58
|
- **Code approved and every QA row passes** → mark the rows `Done` (`Manual` with the user's notes, `Auto` with the verdict and run id), mark the phases `Done`, then run the close-out below.
|
|
55
59
|
- **Code approved, `Manual` rows still pending** → tick nothing, mark nothing `Done`, commit nothing, ship nothing. Report which rows are outstanding and how to resume (invoke `sassy-lfg <plan>` in the harness's syntax), and stop.
|
|
56
60
|
- **Changes requested, or any QA row fails** → a rework cycle per affected phase: load `sassy-cycle` with that phase's requested changes and failing rows as its findings, and the plan path and phase as the intent reference. When every rework is `done`, present the gate again; a `blocked` rework marks its phase `Blocked` and stops the run. A QA row that fails again after its rework is `Blocked` with the reason and stops the run. Change requests have no cap — each one is the user's call.
|
|
57
61
|
6. **Close-out.** On both gates passing, load the `sassy-ship` skill and follow it. Do only the close-out steps the user approves. Babysit options (`merge:on|off`, `delete-branch:on|off`) are forwarded through `sassy-ship` to `sassy-babysit`. The branch from step 2 already carries the work, so ship commits and opens the PR on it; ship never creates the branch. Under `commit.branch: current` ship commits and pushes the checked-out branch to its upstream and skips the PR, `hooks.pr.*`, babysit, and merge.
|
|
58
62
|
|
|
59
|
-
## Brief constraints
|
|
60
|
-
|
|
61
|
-
Every worker brief this run dispatches must include:
|
|
62
|
-
|
|
63
|
-
- Tests only for the files the worker changed and the existing tests that directly regress them. The full suite runs once at the final gate.
|
|
64
|
-
- A hard timeout around long-running commands, for example `timeout 300 bunx vitest run path/to/file.test.ts`; a hung command is killed and reported.
|
|
65
|
-
- The instruction to stop and report a blocker to the orchestrator after one failed retry, with the exact command and error, instead of looping on the same failure.
|
|
66
|
-
|
|
67
63
|
## Brief input
|
|
68
64
|
|
|
69
65
|
When the argument is not a plan path, the brief is the one phase:
|
|
70
66
|
|
|
71
67
|
1. Resolve the branch exactly as the plan path does — the `sassy-setup` skill's `references/branching.md`, this run's `branch:` and `worktree:` tokens — before the cycle runs.
|
|
72
|
-
2. Run one `sassy-cycle` with the brief as the work brief
|
|
68
|
+
2. Run one `sassy-cycle` with the brief as the work brief, its decisions / done-when as the intent reference, and this run's `review:` token as the tier. Do not split it into multiple phases.
|
|
73
69
|
3. Present the code approval gate with no QA checklist, and wait. Changes requested → a rework cycle with the changes as findings and the brief's decisions / done-when as the intent reference, then this gate again; `blocked` stops.
|
|
74
70
|
4. On code approval, run `sassy-ship`. Do not run `sassy-plan` or write a plan file.
|
|
75
71
|
|
|
@@ -82,7 +78,7 @@ When the argument is not a plan path, the brief is the one phase:
|
|
|
82
78
|
| Phases in plan order | Phases run one after another, in plan order. |
|
|
83
79
|
| Done needs both gates | Mark a phase `Done` only when the user approves the code and every QA row for it is `Done`. |
|
|
84
80
|
| QA rows follow the user | Tick a `Manual` QA row `Done` only from the user's explicit confirmation, and an `Auto` row only from a passing dogfood report; keep unreported rows `Pending`; a failed row is a finding for a rework cycle. |
|
|
85
|
-
| Send-backs are rework | Requested changes and failed QA rows go through `sassy-cycle` as findings —
|
|
81
|
+
| Send-backs are rework | Requested changes and failed QA rows go through `sassy-cycle` as findings — one work pass, no verify — never a direct edit. |
|
|
86
82
|
| Gates before shipping | Nothing is committed or shipped until the code is approved and every QA row passes. Shipping is `sassy-ship`. |
|
|
87
83
|
| No plan on the brief path | Use the in-context brief; never create or update a plan file. |
|
|
88
84
|
| Compact context | Only pass briefs to subagents and keep only their summaries. |
|
|
@@ -85,6 +85,10 @@ A row is `Auto` only when the project's `dogfood.enabled` is `true` **and** the
|
|
|
85
85
|
|
|
86
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.
|
|
87
87
|
|
|
88
|
+
## Review tier
|
|
89
|
+
|
|
90
|
+
Every phase also carries a `**Review:**` line — `logic`, `surface`, or `none` — set from what the phase changes, per `references/plan-format.md`. It decides the depth of the quality loop: `logic` runs simplify + review + validate, `surface` runs review, `none` runs neither. Core code is `logic`; docs, copy, tests, and fixtures are `surface`; generated or formatter-only churn is `none`. Default to `logic` when unsure, and let the executor promote a `surface` phase that turns out to touch core code. A brief has no plan file: the executor takes a `review:` token or detects the tier itself.
|
|
91
|
+
|
|
88
92
|
## Resume
|
|
89
93
|
|
|
90
94
|
If the user points at an existing sassy plan, update phases and tables in place. 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.
|
|
@@ -14,6 +14,16 @@ The plan has no open-questions section. Every branch the interview found is a de
|
|
|
14
14
|
4. **Readable.** 3–8 phases for a typical feature. Merge only when a split leaves a phase with no meaningful thing to verify.
|
|
15
15
|
5. **No dump sections.** Anything executable lives under a phase. No giant task list outside the phases.
|
|
16
16
|
|
|
17
|
+
## Review — the phase's change tier
|
|
18
|
+
|
|
19
|
+
Every phase names the depth of quality work it needs with a `**Review:**` line. The executor passes it to `sassy-cycle`, which runs that tier's agents.
|
|
20
|
+
|
|
21
|
+
- **`logic`** — core code and anything that can change runtime behavior: product source, UI and styles, schemas and migrations, public contracts, behavior-changing config. Simplifier + reviewer + validator, then one fix pass.
|
|
22
|
+
- **`surface`** — everything that is not core code: docs, Markdown, comments, copy/i18n strings, tests, fixtures, formatting. Reviewer only, then one fix pass.
|
|
23
|
+
- **`none`** — machine-generated or mechanical: lockfiles, generated or vendored files, formatter churn, mass renames. No review; the worker's own checks are the record.
|
|
24
|
+
|
|
25
|
+
Default to `logic` when unsure. The tier is a declaration, not a trap: a `surface` phase that turns out to touch core code is promoted to `logic` by the executor, so declaring it optimistically costs nothing. Omit the line only when the phase is plainly `logic`.
|
|
26
|
+
|
|
17
27
|
## QA — part of the gate
|
|
18
28
|
|
|
19
29
|
Every phase gets a QA table. Each row's `Mode` is `Auto` or `Manual`, and the choice is not a preference:
|
|
@@ -91,13 +101,15 @@ Status values: `Pending` | `In progress` | `Blocked` | `Done`
|
|
|
91
101
|
|
|
92
102
|
**Why this slice:** One sentence on the tracer bullet (end-to-end for this goal).
|
|
93
103
|
|
|
104
|
+
**Review:** logic
|
|
105
|
+
|
|
94
106
|
**Work (vertical):**
|
|
95
107
|
- Database: …
|
|
96
108
|
- Backend: …
|
|
97
109
|
- Frontend: …
|
|
98
110
|
- Tests/config: …
|
|
99
111
|
|
|
100
|
-
Omit empty layers. Do not put the next goal's work here.
|
|
112
|
+
Omit empty layers. Do not put the next goal's work here. The `**Review:**` line follows the work: a phase with any core-code layer is `logic`; a docs, copy, test, or fixture phase is `surface`; generated or formatter-only churn is `none`.
|
|
101
113
|
|
|
102
114
|
**Done when:** Plain-language acceptance for this phase only.
|
|
103
115
|
|
|
@@ -11,7 +11,7 @@ argument-hint: "[PR ref, branch, files, or blank for current changes] [mode:manu
|
|
|
11
11
|
|
|
12
12
|
# Sassy Review
|
|
13
13
|
|
|
14
|
-
**Outcome:** the scope reviewed with concrete findings, and — unless `mode:return` — the chosen ones fixed
|
|
14
|
+
**Outcome:** the scope reviewed with concrete findings, and — unless `mode:return` — the chosen ones fixed in one work pass; everything left uncommitted.
|
|
15
15
|
|
|
16
16
|
**Review only.** Simplification is `sassy-simplify`; plan conformance is `sassy-validate`.
|
|
17
17
|
|
|
@@ -49,7 +49,7 @@ Findings must be grounded: every rule finding quotes the rule file and section;
|
|
|
49
49
|
3. **Return.** In `mode:return`, return the reviewer's output as-is and stop.
|
|
50
50
|
4. **Nothing actionable?** If there are no Critical or Warning findings, report the summary plus the rules/design-system check list and stop.
|
|
51
51
|
5. **Choose.** In `mode:manual`, present findings grouped Critical / Warnings / Suggestions, including the rules and design-system check list, and ask which to fix: critical only / all actionable / specific / none. In `mode:auto`, take every Critical and Warning.
|
|
52
|
-
6. **Fix.** Load the `sassy-cycle` skill on rework with the chosen findings and the reviewed files as the scope hint.
|
|
52
|
+
6. **Fix.** Load the `sassy-cycle` skill on rework with the chosen findings and the reviewed files as the scope hint. It applies them in one work pass and reports each fixed or open; there is no verify pass.
|
|
53
53
|
7. **Report.** What was fixed, what is still open and why; leave it uncommitted.
|
|
54
54
|
|
|
55
55
|
## Hard rules
|
|
@@ -64,4 +64,4 @@ Findings must be grounded: every rule finding quotes the rule file and section;
|
|
|
64
64
|
|
|
65
65
|
## Failure handling
|
|
66
66
|
|
|
67
|
-
The cycle returns a finding open after
|
|
67
|
+
The cycle returns a finding open after its one work pass → report it with its reason and continue with the rest. Stop on an unsafe or ambiguous failure.
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
# 3. Everything resolves against the MAIN checkout, so running any of these
|
|
11
11
|
# from inside a worktree behaves identically.
|
|
12
12
|
#
|
|
13
|
-
# worktree-version:
|
|
13
|
+
# worktree-version: 8
|
|
14
14
|
|
|
15
15
|
set -euo pipefail
|
|
16
16
|
|
|
17
|
-
WT_VERSION="
|
|
17
|
+
WT_VERSION="8"
|
|
18
18
|
WT_LIB_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
19
19
|
|
|
20
20
|
log() { printf '%s\n' "$*"; }
|
|
@@ -310,11 +310,17 @@ wt_is_main() { [ "$(cd "$1" && pwd -P)" = "$MAIN" ]; }
|
|
|
310
310
|
|
|
311
311
|
wt_dirty() { [ -n "$(git -C "$1" status --porcelain 2>/dev/null)" ]; }
|
|
312
312
|
|
|
313
|
+
# The ref a checkout's branch tracks, or empty. Read-only, and never a guess:
|
|
314
|
+
# `create` prints this instead of deciding what a branch should follow.
|
|
315
|
+
wt_upstream() {
|
|
316
|
+
git -C "$1" rev-parse --abbrev-ref --symbolic-full-name '@{upstream}' 2>/dev/null || true
|
|
317
|
+
}
|
|
318
|
+
|
|
313
319
|
# Commits that exist only here: ahead of the upstream, or — with none — reachable
|
|
314
320
|
# from no remote at all.
|
|
315
321
|
wt_unpushed() {
|
|
316
322
|
local p="$1" up n
|
|
317
|
-
up="$(
|
|
323
|
+
up="$(wt_upstream "$p")"
|
|
318
324
|
if [ -n "$up" ]; then
|
|
319
325
|
n="$(git -C "$p" rev-list --count "$up..HEAD" 2>/dev/null || echo unknown)"
|
|
320
326
|
else
|
|
@@ -325,7 +331,7 @@ wt_unpushed() {
|
|
|
325
331
|
|
|
326
332
|
wt_upstream_state() { # merged | gone | unmerged
|
|
327
333
|
local p="$1" up
|
|
328
|
-
up="$(
|
|
334
|
+
up="$(wt_upstream "$p")"
|
|
329
335
|
if [ -z "$up" ]; then
|
|
330
336
|
printf 'gone'
|
|
331
337
|
elif git -C "$p" merge-base --is-ancestor HEAD "$up" 2>/dev/null; then
|
|
@@ -64,6 +64,15 @@ report() { # $1 path, $2 branch
|
|
|
64
64
|
fi
|
|
65
65
|
ok worktree "$1"
|
|
66
66
|
ok branch "$2"
|
|
67
|
+
# Say the tracking out loud. A branch cut from a remote-tracking ref used to
|
|
68
|
+
# inherit it as its upstream, so a plain push aimed at the base; and a branch
|
|
69
|
+
# that tracks something other than its own name is the state that made that
|
|
70
|
+
# invisible. `create` never sets a base — it reports what it found.
|
|
71
|
+
local up
|
|
72
|
+
up="$(wt_upstream "$1")"
|
|
73
|
+
ok upstream "${up:-none}"
|
|
74
|
+
[ -z "$up" ] || [ "${up#*/}" = "$2" ] \
|
|
75
|
+
|| warn upstream "this branch tracks '$up', not '$2' — a plain 'git push' lands there"
|
|
67
76
|
ok namespace "$ns"
|
|
68
77
|
if [ -n "$port" ]; then
|
|
69
78
|
ok port "$port"
|
|
@@ -112,7 +121,10 @@ printf '%s\n' "$MAIN" > "$(wt_home)/.repo"
|
|
|
112
121
|
if git show-ref --verify --quiet "refs/heads/$branch"; then
|
|
113
122
|
git worktree add --quiet "$path" "$branch"
|
|
114
123
|
else
|
|
115
|
-
git
|
|
124
|
+
# --no-track is the whole point: without it git's DWIM gives a branch cut from
|
|
125
|
+
# a remote-tracking ref that ref as its upstream, so the branch's own push
|
|
126
|
+
# targets the base. A checkout is a branch of its own, not a follower.
|
|
127
|
+
git worktree add --quiet --no-track -b "$branch" "$path" "$from"
|
|
116
128
|
fi
|
|
117
129
|
|
|
118
130
|
report "$path" "$branch"
|
|
@@ -72,6 +72,20 @@ and crawled by every scanner that does not read `.gitignore` (`tsc`, Docker).
|
|
|
72
72
|
**Never `rm -rf` the worktree home.** It is full of checkouts with uncommitted
|
|
73
73
|
work; `remove` and `prune` are the only safe exits.
|
|
74
74
|
|
|
75
|
+
## The branch
|
|
76
|
+
|
|
77
|
+
`create` cuts a new branch **untracked** and prints the upstream it found:
|
|
78
|
+
|
|
79
|
+
- **A fresh checkout's branch follows nothing.** Cut from `origin/staging`, git's
|
|
80
|
+
DWIM would make `staging` that branch's upstream, so the branch's own
|
|
81
|
+
`git push` aims at the base — a run that reads as healthy right up until it
|
|
82
|
+
ships. A checkout is a branch of its own, never a follower.
|
|
83
|
+
- **An existing branch keeps whatever it tracks**, and `create` says so on its
|
|
84
|
+
`upstream` line; one that is not the branch's own name is called out with what
|
|
85
|
+
a plain push would hit. That is the state a branch cut by hand arrives in.
|
|
86
|
+
- **`create` never resolves a base.** The base is `references/branching.md`'s
|
|
87
|
+
decision, and a push names its remote.
|
|
88
|
+
|
|
75
89
|
## The namespace
|
|
76
90
|
|
|
77
91
|
`create` derives and prints, for the caller and the hook:
|
|
@@ -11,7 +11,7 @@ argument-hint: "[files, branch, or blank for current changes] [mode:manual|auto|
|
|
|
11
11
|
|
|
12
12
|
# Sassy Simplify
|
|
13
13
|
|
|
14
|
-
**Outcome:** the scope's simplification findings, and — unless `mode:return` — the chosen ones applied with behavior unchanged
|
|
14
|
+
**Outcome:** the scope's simplification findings, and — unless `mode:return` — the chosen ones applied with behavior unchanged in one work pass; everything left uncommitted.
|
|
15
15
|
|
|
16
16
|
**Simplify only.** Not a bug hunt — that is `sassy-review`. Not a plan check — that is `sassy-validate`.
|
|
17
17
|
|
|
@@ -48,7 +48,7 @@ Fewer lines is not the goal. A finding that would make code longer or harder to
|
|
|
48
48
|
3. **Nothing to apply?** On `Nothing to simplify` or no findings, report that and stop.
|
|
49
49
|
4. **Return.** In `mode:return`, return the simplifier's findings as-is — files reviewed, findings by dimension, summary — and stop.
|
|
50
50
|
5. **Choose.** In `mode:manual`, present the findings grouped by dimension and ask which to apply: all / specific / none. In `mode:auto`, take all.
|
|
51
|
-
6. **Apply.** Load the `sassy-cycle` skill on rework with the chosen findings, each marked a **simplification**, and the scope's files as the scope hint. The cycle's worker keeps behavior identical and
|
|
51
|
+
6. **Apply.** Load the `sassy-cycle` skill on rework with the chosen findings, each marked a **simplification**, and the scope's files as the scope hint. The cycle's worker keeps behavior identical and reports each one applied or skipped; there is no verify pass.
|
|
52
52
|
7. **Report.** What was applied per dimension, what was skipped and why, and the checks the worker ran. Leave it uncommitted.
|
|
53
53
|
|
|
54
54
|
## Hard rules
|
|
@@ -11,7 +11,7 @@ argument-hint: "[plan path [+ phase], or the intent to validate against] [range:
|
|
|
11
11
|
|
|
12
12
|
# Sassy Validate
|
|
13
13
|
|
|
14
|
-
**Outcome:** a grounded conformance judgment against an intent, and — unless `mode:return` — the chosen gaps closed
|
|
14
|
+
**Outcome:** a grounded conformance judgment against an intent, and — unless `mode:return` — the chosen gaps closed in one work pass; everything left uncommitted.
|
|
15
15
|
|
|
16
16
|
**Validate only.** Code quality and bugs are `sassy-review`; simplification is `sassy-simplify`.
|
|
17
17
|
|
|
@@ -38,7 +38,7 @@ Use the mode the caller passed; never pick one yourself.
|
|
|
38
38
|
3. **Return.** In `mode:return`, return the validator's grade, evidence, and gaps as-is and stop.
|
|
39
39
|
4. **Conforms?** If the grade is `Conforms`, report it and stop. If `Blocked — insufficient grounding`, report what it needs and stop — do not guess.
|
|
40
40
|
5. **Choose.** On `Partial` or `Diverges`, in `mode:manual` present the `Gaps` and ask which to close: all / specific / none. In `mode:auto`, take all.
|
|
41
|
-
6. **Close.** Load the `sassy-cycle` skill on rework with the chosen gaps as findings and the same intent reference.
|
|
41
|
+
6. **Close.** Load the `sassy-cycle` skill on rework with the chosen gaps as findings and the same intent reference. It closes them in one work pass and reports each closed or open; there is no re-grade.
|
|
42
42
|
7. **Report.** What was closed, what remains and why; leave it uncommitted.
|
|
43
43
|
|
|
44
44
|
## Hard rules
|
|
@@ -53,4 +53,4 @@ Use the mode the caller passed; never pick one yourself.
|
|
|
53
53
|
|
|
54
54
|
## Failure handling
|
|
55
55
|
|
|
56
|
-
The grade is `Blocked — insufficient grounding` → treat it as a real blocker; report exactly what it asked to inspect and stop. The cycle returns a gap open after
|
|
56
|
+
The grade is `Blocked — insufficient grounding` → treat it as a real blocker; report exactly what it asked to inspect and stop. The cycle returns a gap open after its one work pass → report it with its reason.
|
|
@@ -5,7 +5,7 @@ description: >-
|
|
|
5
5
|
commit it (or close out via sassy-ship if it was the last). The next phase is
|
|
6
6
|
a run of its own when the user starts one. Also runs one settled in-context
|
|
7
7
|
brief and stops before ship. The orchestrator only coordinates.
|
|
8
|
-
argument-hint: "<plan path | brief> [phase:<n>] [branch:infer|current|new] [worktree:on|off]"
|
|
8
|
+
argument-hint: "<plan path | brief> [phase:<n>] [branch:infer|current|new] [worktree:on|off] [review:logic|surface|none]"
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# Sassy Work
|
|
@@ -29,6 +29,10 @@ Detect the shape from the argument:
|
|
|
29
29
|
|
|
30
30
|
If a plan path is given but the file does not exist, run `sassy-plan` first and stop.
|
|
31
31
|
|
|
32
|
+
## Review tier
|
|
33
|
+
|
|
34
|
+
A phase's `**Review:**` line names its change tier — `logic`, `surface`, or `none` — per the `sassy-plan` skill's `references/plan-format.md`. Pass it to `sassy-cycle`. A `review:` token on this run overrides the plan line; without either, the cycle detects the tier from the work. The tier decides the quality agents, so it is never a reason to skip the code approval gate.
|
|
35
|
+
|
|
32
36
|
## QA gate
|
|
33
37
|
|
|
34
38
|
Read the plan's `**QA:**` line and its per-phase QA table. 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.
|
|
@@ -43,7 +47,7 @@ A brief has no QA table, so its gate is code approval alone. Never invent, enabl
|
|
|
43
47
|
|
|
44
48
|
## Phase gate
|
|
45
49
|
|
|
46
|
-
Always gate before committing. The cycle has already fixed
|
|
50
|
+
Always gate before committing. The cycle has already fixed its findings in one work pass; present the combined gate — code approval plus the QA checklist — and wait for the user. Anything the user sends back goes through a rework cycle (one work pass, no verify) and the gate again.
|
|
47
51
|
|
|
48
52
|
## Steps
|
|
49
53
|
|
|
@@ -54,10 +58,11 @@ Always gate before committing. The cycle has already fixed and verified its find
|
|
|
54
58
|
3. **Run the cycle.** Set the phase `In progress` in the Phase tracking table, then load the `sassy-cycle` skill and follow it, with:
|
|
55
59
|
- work brief = the phase's goal, work items, and "Done when" criteria
|
|
56
60
|
- intent reference = the plan path and phase
|
|
61
|
+
- review tier = the phase's `**Review:**` line, or this run's `review:` token when it has one
|
|
57
62
|
4. **Evaluate the phase.** On `Status: done`, the code is ready for the gate, but leave the phase `In progress` — both gates must pass before it closes. On `Status: blocked`, set it `Blocked` in the Phase tracking table and stop; a blocked phase is a real outcome and needs no approval.
|
|
58
63
|
|
|
59
64
|
**Then prove the `Auto` rows.** If the phase has any, run the `sassy-dogfood` skill in `mode:run` with each row's section named, before the gate and never after it. When the decision took a checkout, the report runs against the checkout's own address — `WT_PATH`, and `WT_NAMESPACE`/`WT_PORT` where the project declared a port range — since proof run against the main checkout's app proves the wrong app. Record what each report said. A `failed` verdict is a finding, so the phase goes back through step 3's cycle with the failing step and the report's log tail as its findings, and this step runs again; a `class: env` verdict is not a finding — report that the toolchain is broken, leave the phase `In progress`, and stop. An `Auto` row with no report is `Pending`, never `Done`.
|
|
60
|
-
5. **Present the phase gate.** Report the phase, what changed, findings raised and
|
|
65
|
+
5. **Present the phase gate.** Report the phase, what changed, findings raised and what the single fix pass did with each (self-reported; the cycle does not re-review), the simplifications applied or skipped, the validator grade (or that it did not run), the reviewer summary, and the reviewer's suggestions as options the user may pick. Then give the QA checklist verbatim: each row's ID, check, `Mode`, and — for `Manual` — how to run it and what passing looks like, and for `Auto` — the dogfood verdict and run id, with unreported rows `Pending`. Ask for both decisions — code approval (or the changes wanted, including any suggestions picked) and the result per `Manual` row. Wait.
|
|
61
66
|
6. **Resolve the gate.** Three outcomes, nothing in between:
|
|
62
67
|
- **Code approved and every QA row passes** → go to step 7.
|
|
63
68
|
- **Code approved, `Manual` rows still pending** → record that code is approved but leave the phase `In progress`, tick nothing, commit nothing, and report that the phase is waiting on manual QA plus the command that resumes it.
|
|
@@ -78,7 +83,7 @@ Always gate before committing. The cycle has already fixed and verified its find
|
|
|
78
83
|
When the argument is not a plan path, it is one settled brief:
|
|
79
84
|
|
|
80
85
|
1. Resolve the branch exactly as the plan path does — `references/branching.md`, this run's `branch:` and `worktree:` tokens — before the cycle runs. Every brief dispatched from there names the absolute `WT_PATH` when the decision took a checkout.
|
|
81
|
-
2. Run one `sassy-cycle` with the brief as the work brief
|
|
86
|
+
2. Run one `sassy-cycle` with the brief as the work brief, its decisions / done-when as the intent reference, and this run's `review:` token as the tier. Do not split it into multiple cycles.
|
|
82
87
|
3. Present the code approval gate with no QA checklist, and wait. Changes requested → a rework cycle with the changes as findings and the brief's decisions / done-when as the intent reference, then this gate again; `blocked` stops.
|
|
83
88
|
4. On code approval, persist the brief's changes the same way the plan path does: a `sassy-commit` delegation with `branch:current` in a remote repo, or the workspace snapshot in a workspace.
|
|
84
89
|
5. Stop and report. Shipping is a separate step (`sassy-ship`), or `sassy-lfg` would have built and shipped it. Never create or update a plan file.
|
|
@@ -96,7 +101,7 @@ When the argument is not a plan path, it is one settled brief:
|
|
|
96
101
|
| Handing off is the user's | Never write a handoff or suggest one. The run ends at its report; `sassy-handoff` is invoked by the user, in their own session and on their own initiative. |
|
|
97
102
|
| Done needs both gates | Mark a phase `Done` only when the user approves the code and every QA row for that phase is `Done`, never before. |
|
|
98
103
|
| QA rows follow their mode | Tick a `Manual` row `Done` only from the user's explicit confirmation, and an `Auto` row only from a passing dogfood report; keep unreported rows `Pending`; a failed row is a finding for a rework cycle. |
|
|
99
|
-
| Send-backs are rework | Requested changes and failed QA rows go through `sassy-cycle` as findings —
|
|
104
|
+
| Send-backs are rework | Requested changes and failed QA rows go through `sassy-cycle` as findings — one work pass, no verify — never a direct edit. |
|
|
100
105
|
| No shipping on the brief path | The brief path commits and stops. Shipping is `sassy-ship` or `sassy-lfg`. |
|
|
101
106
|
|
|
102
107
|
## Failure handling
|
|
@@ -5,7 +5,7 @@ Read the shared sections in `SKILL.md` first. This file is the create path only.
|
|
|
5
5
|
1. **Resolve the branch and its start point first**, through the `sassy-setup` skill's `references/branching.md`, exactly as `sassy-work` does. A run that reaches here has already decided; the branch is not created twice. When a human asks for one by hand with no branch named, ask for the branch name — never derive one.
|
|
6
6
|
2. **Run `.sassywares/worktree/create <branch> --from <start-point>`** with the resolved start point. It is idempotent: an existing worktree for that branch is reported, a branch held by the main checkout is refused, and a port is claimed either way. On `--env` it prints the `WT_*` block alone.
|
|
7
7
|
3. **Dispatch the declared hooks.** The script prints one line per `hooks.worktree.after_create` entry; it cannot dispatch a skill, so you do. One `worker` each, in declared order: *load the project skill at `.agents/skills/<name>/SKILL.md` and follow it*, briefed with the `WT_*` block and the fact that the checkout now exists. A missing skill or a `blocked` result stops here — the checkout is real but unprepared, and saying so is the report.
|
|
8
|
-
4. **Report** the path, branch, namespace, port, address, the preview line, and the hooks that ran or that none are declared. If the caller is a run, tell it to work in `WT_PATH` from now on.
|
|
8
|
+
4. **Report** the path, branch, namespace, port, address, the upstream it printed (`none` is normal), the preview line, and the hooks that ran or that none are declared. If the caller is a run, tell it to work in `WT_PATH` from now on.
|
|
9
9
|
|
|
10
10
|
| Rule | Requirement |
|
|
11
11
|
|------|-------------|
|