@sassywares/skills 0.17.2 → 0.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -6
- package/package.json +1 -1
- package/skills/sassy-babysit/SKILL.md +2 -2
- package/skills/sassy-dogfood/SKILL.md +11 -8
- package/skills/sassy-dogfood/references/check.md +5 -3
- package/skills/sassy-dogfood/references/discover.md +23 -12
- package/skills/sassy-dogfood/references/run.md +91 -17
- package/skills/sassy-setup/SKILL.md +5 -5
- package/skills/sassy-setup/assets/dogfood-recipe.md +19 -5
- package/skills/sassy-setup/references/anchors.md +1 -1
- package/skills/sassy-setup/references/branching.md +1 -1
- package/skills/sassy-setup/references/check.md +1 -1
- package/skills/sassy-setup/references/config.md +66 -14
- package/skills/sassy-setup/references/dogfood.md +181 -40
- package/skills/sassy-setup/references/harness.md +1 -1
- package/skills/sassy-setup/references/init.md +6 -4
- package/skills/sassy-setup/references/plan-resolution.md +1 -1
- package/skills/sassy-setup/references/scaffold-header.md +9 -2
- package/skills/sassy-setup/references/workspace.md +63 -1
- package/skills/sassy-setup/references/worktree.md +1 -1
- package/skills/sassy-setup/scripts/detect.sh +1 -1
- package/skills/sassy-setup/scripts/hash-skill.mjs +1 -1
- package/skills/sassy-setup/scripts/lib/agents-md.sh +13 -2
- package/skills/sassy-setup/scripts/lib/branch.sh +1 -1
- package/skills/sassy-setup/scripts/lib/check.sh +291 -24
- package/skills/sassy-setup/scripts/lib/common.sh +1 -1
- package/skills/sassy-setup/scripts/lib/proposal.sh +29 -2
- package/skills/sassy-setup/scripts/lib/sync.sh +1 -1
- package/skills/sassy-setup/scripts/lib/worktree.sh +1 -1
- package/skills/sassy-setup/scripts/lib/yaml.sh +77 -3
- package/skills/sassy-setup/scripts/lockcheck.mjs +1 -1
- package/skills/sassy-setup/scripts/worktree-check.mjs +1 -1
- package/skills/sassy-ship/SKILL.md +4 -4
- package/skills/sassy-ship/references/brief.md +1 -1
- package/skills/sassy-ship/references/plan.md +1 -1
- package/skills/sassy-ship/references/slice.md +1 -1
package/README.md
CHANGED
|
@@ -201,11 +201,18 @@ worktrees: # parallel checkouts of this repo
|
|
|
201
201
|
remove: scripts/worktrees/remove # this project's teardown; absent = built-in
|
|
202
202
|
dogfood: # agent QA: a stored procedure that proves a change runs
|
|
203
203
|
enabled: false # true lets a plan write Mode: Auto QA rows
|
|
204
|
-
recipe:
|
|
204
|
+
recipe: docs/dogfood.md # repo topology: the one procedure; never commands here
|
|
205
|
+
# recipes: # workspace topology instead: one per repo, keyed by repos:
|
|
206
|
+
# fe: docs/dogfood/fe.md # that repo's procedure at its required path
|
|
207
|
+
# api: false # deliberately not dogfooded; no key also skips it
|
|
205
208
|
reports: .sassywares/dogfood/reports # run output; gitignored
|
|
206
209
|
timeout: 900 # whole procedure, seconds
|
|
210
|
+
keep: 10 # run directories kept per bucket: reports/ in a repo,
|
|
211
|
+
# reports/<repo>/ in a workspace; a green run prunes its own
|
|
207
212
|
```
|
|
208
213
|
|
|
214
|
+
A project is one topology or the other. A repo declares one `recipe:`; a workspace declares `recipes:` keyed by `repos:`, and the two forms never coexist — `--check` names whichever form the topology does not use.
|
|
215
|
+
|
|
209
216
|
### Working in parallel
|
|
210
217
|
|
|
211
218
|
Two agents in one repo need two checkouts, and a checkout needs a name — a
|
|
@@ -301,18 +308,33 @@ This is deliberately not a fork mechanism. A project skill that *adds* a step is
|
|
|
301
308
|
|
|
302
309
|
### Dogfooding a project
|
|
303
310
|
|
|
304
|
-
Agent QA is opt-in and stores a **procedure**, not a command. One command can never say "seed first, boot the simulator, wait for the health endpoint, then re-auth if the token is stale" — and that ordering is the only genuinely project-specific part. So the config holds
|
|
311
|
+
Agent QA is opt-in and stores a **procedure**, not a command. One command can never say "seed first, boot the simulator, wait for the health endpoint, then re-auth if the token is stale" — and that ordering is the only genuinely project-specific part. So the config holds six keys and the work lives in a file:
|
|
305
312
|
|
|
306
313
|
```text
|
|
314
|
+
docs/
|
|
315
|
+
└── dogfood.md committed — ordered steps, one `Prove it:` step per section
|
|
316
|
+
a workspace keeps one docs/dogfood/<repo>.md per repo instead
|
|
307
317
|
.sassywares/
|
|
308
318
|
├── config.yaml
|
|
319
|
+
├── .gitignore /session/ and /dogfood/reports/ — setup-owned (a repo; a workspace root commits nothing)
|
|
309
320
|
└── dogfood/
|
|
310
|
-
├── recipe.md committed — ordered steps, one `Prove it:` step per section
|
|
311
|
-
├── .gitignore one line: /reports/
|
|
312
321
|
└── reports/ run logs and artifacts — never committed
|
|
322
|
+
├── <run-id>/ a repo: one directory per invocation
|
|
323
|
+
└── <repo>/<run-id>/ a workspace: one per repo the invocation runs
|
|
313
324
|
```
|
|
314
325
|
|
|
315
|
-
`
|
|
326
|
+
`docs/dogfood.md` is the project's (in a workspace, one `docs/dogfood/<repo>.md` per repo), written by `sassy-dogfood mode:discover` from what actually worked, and reviewed like code: numbered steps you append to, each with a `Do` and an `Expect`, ending in a `Prove it:` step whose exit code is the verdict. It names no tool, so it outlives whichever browser driver or emulator your harness happens to have this quarter. An optional `**Capture:**` line names the surface a run should photograph — a page, screen, or output, never the tool; absent means capture when the harness can see the surface, and `none — <reason>` is the only refusal. A run captures one image per executed step into the gitignored reports directory and lists it in the summary's `Capture` column, on the happy path as well as a failure, and a capture never changes a verdict.
|
|
327
|
+
|
|
328
|
+
A run writes one directory per invocation — `reports/<run-id>/` in a repo, `reports/<repo>/<run-id>/` in a workspace, where the id is `YYYYMMDD-HHMMSS` and the path is the run's identity — holding `summary.md` (status, class, one row per section, and the capture index), one log per executed step, and the captures. An older release may have written a legacy `-<label>` suffix (`20261204-215042-messages`); its first 15 characters still order it and it counts as one run, and a new run never writes a label. `dogfood.keep` caps those run directories per bucket, default `10`: a completed green run prunes its own bucket oldest-first, a failed or killed run prunes nothing, and `--check` reports an over-quota bucket as a note, never drift and never a deletion — except a bucket under a repo that is not dogfooded (`false`, or absent from the map), which no run will ever prune and so is not counted.
|
|
329
|
+
|
|
330
|
+
In a `workspace`, the default invocation covers every repo whose `dogfood.recipes` entry is a path, files each under its own bucket, and prints one rollup line per repo it ran; a repo declared `false`, or absent from the map, is skipped and is never a rollup line. `repo:<name>` narrows the invocation to exactly that repo and is accepted from the workspace root or inside any repo that still resolves the root's config; an unknown name, a `false` name, or a workspace with nothing mapped stops before any run starts with one of three fixed refusals, and a default invocation with nothing to run is a stop too: its rollup names every repo skipped and it exits non-zero. A repo topology accepts `repo:<name>` only for its own folder name. A workspace whose flat `reports/<run-id>/` bucket is left over from the old layout is still counted and named by `--check` once it is over `keep`, because no run maintains that bucket any more; move it under `reports/<repo>/`.
|
|
331
|
+
|
|
332
|
+
**Upgrading a project that stored the recipe under `.sassywares/`.** The recipe is a project document at `docs/dogfood.md` now; `.sassywares/` holds only run state. The move depends on topology, and the two are never interchangeable.
|
|
333
|
+
|
|
334
|
+
- **Workspace:** split it — one `docs/dogfood/<repo>.md` per repo, declared as a `dogfood.recipes` map keyed by `repos:`, because an agent dogfooding one repo must never have to read every other repo's procedure. Do not run the single-file `git mv` below here: it puts one combined recipe at the path the split replaces. A workspace with no `recipe:` key but that same pre-P1 file gets the per-repo split too — the reader decides which sections belong to which repo. Here the leftover file is a stop before the map is written while `dogfood.enabled` is `true` (a note while it is `false`), a note after it, and it is never deleted for you.
|
|
335
|
+
- **Repo:** stopped by `detect.sh --check` while `dogfood.enabled` is `true` (a note while it is `false`) with the exact move: `mkdir -p docs && git mv .sassywares/dogfood/recipe.md docs/dogfood.md`, then `recipe: docs/dogfood.md`.
|
|
336
|
+
|
|
337
|
+
A workspace still carrying one combined `recipe:` is stopped too while `enabled` is `true`: split it into one `docs/dogfood/<repo>.md` per repo and declare `dogfood.recipes` keyed by `repos:`. The suite never moves or deletes the file — it is yours.
|
|
316
338
|
|
|
317
339
|
A QA row is `Auto` only when `dogfood.enabled` is `true` **and** the row names a recipe section with a `Prove it:` step. One without the other keeps the row `Manual`, which is how an unfinished recipe degrades safely instead of turning into a gate that proves nothing. Anything subjective, physical, irreversible, or unobservable stays a human's check — a false `Auto` pass is unrecoverable. The directory also makes a good fence: a run that trips on a step may not edit the recipe to pass, only propose the diff.
|
|
318
340
|
|
|
@@ -523,4 +545,4 @@ pi install npm:@sassywares/skills
|
|
|
523
545
|
|
|
524
546
|
## Repository maintenance
|
|
525
547
|
|
|
526
|
-
Work here lands on `main` through `sassy-ship` (`commit.branch:
|
|
548
|
+
Work here lands on `main` through a branch and a PR: `sassy-ship` (`commit.branch: new`, `pr.merge: true`) cuts a branch, pushes it, opens the PR, and merges it once the checks are green. The merge — not a push — is what runs this repo's close-out, because a run observes its merge from the PR head and never from `main`: one `hooks.pr` `after_merge` entry, the `sassy-skills-closeout` skill, finds or makes a checkout of `main` under `$TMPDIR`, fast-forwards it, and runs three steps there in order. The release, which on `main`, when files consumers receive changed, bumps the patch version and tags it — the tag publishes `@sassywares/skills` to npm — and stamps every skill file it ships with `generated_by: <skill>@<version>`, so an installed copy names the release it came from. A self-check that syncs this repo's own config template. And a consumer sync that refreshes the projects listed in `.sassywares/consumers` — projects that vendor the suite themselves, committing and pushing to each one's recorded branch (the engine is `.agents/skills/sassy-skills-closeout/scripts/sync`, with `scripts/lock.mjs` repinning the vendored skills). A consumer's setup is never rewritten: an out-of-date one is reported and nothing else. A checkout the close-out created is removed; one it found is left where it was. [`AGENTS.md`](AGENTS.md) is the full guide: layout, adding a skill, testing, and releasing.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
suite: sassy-skills
|
|
3
3
|
artifact: skill
|
|
4
|
-
generated_by: sassy-babysit@0.17.
|
|
4
|
+
generated_by: sassy-babysit@0.17.3
|
|
5
5
|
name: sassy-babysit
|
|
6
6
|
description: >-
|
|
7
7
|
Babysits an open GitHub PR until it looks merge-ready. Use when asked to watch
|
|
@@ -58,7 +58,7 @@ Stop when any holds:
|
|
|
58
58
|
- **Terminal** — merged or closed.
|
|
59
59
|
- **Looks ready** — `MERGEABLE`, `CLEAN`, all checks terminal, no open review threads, no currency blocker, zero `needs-human` items. With `merge:on`, run the merge (and `delete-branch:on` branch deletion if set) before treating this as a stop; the merge turns it into the **Terminal** stop.
|
|
60
60
|
|
|
61
|
-
**Merge hooks.** Immediately before merging, resolve `before_merge` for this PR's head and run each entry in declared order — one `worker` per hook, with the same brief every hook gets: plan path, changed files, artifact paths, base, branch, commit hash, and the PR URL plus head SHA. These run before the merge, so they must leave the tree clean. A missing skill or a `blocked` result means **do not merge**: report it and stop at Blocked. After a successful merge, resolve `after_merge` for this PR's head and run each entry the same way; these follow the merge, so they must leave the
|
|
61
|
+
**Merge hooks.** Immediately before merging, resolve `before_merge` for this PR's head and run each entry in declared order — one `worker` per hook, with the same brief every hook gets: plan path, changed files, artifact paths, base, branch, commit hash, and the PR URL plus head SHA. These run before the merge, so they must leave the tree clean. A missing skill or a `blocked` result means **do not merge**: report it and stop at Blocked. After a successful merge, resolve `after_merge` for this PR's head and run each entry the same way; these follow the merge, so they must leave *this* checkout clean — a step that belongs on the base (a release, a consumer sync) finds or makes its own checkout of `<remote>/<base>` rather than switching this one, which is on the PR head. In a workspace fan-out, everything is per PR.
|
|
62
62
|
|
|
63
63
|
**Which merge hook fires.** `before_merge` needs a merge this run will perform. `after_merge` fires whenever this run observes the PR merged, including one that was already merged when the run started — so it must be idempotent.
|
|
64
64
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
suite: sassy-skills
|
|
3
3
|
artifact: skill
|
|
4
|
-
generated_by: sassy-dogfood@0.17.
|
|
4
|
+
generated_by: sassy-dogfood@0.17.3
|
|
5
5
|
name: sassy-dogfood
|
|
6
6
|
description: >-
|
|
7
7
|
Use the product the way a user does, to prove a change actually works at
|
|
@@ -11,16 +11,18 @@ description: >-
|
|
|
11
11
|
whatever the harness has connected at run time and never installs a runner.
|
|
12
12
|
Use before a phase gate, when a plan row is `Mode: Auto`, or to set up
|
|
13
13
|
agent QA for a project.
|
|
14
|
-
argument-hint: "[section:<name>] [mode:run|discover|check]"
|
|
14
|
+
argument-hint: "[section:<name>] [repo:<name>] [mode:run|discover|check]"
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
# Sassy Dogfood
|
|
18
18
|
|
|
19
|
-
**Outcome:**
|
|
19
|
+
**Outcome:** one report directory per invocation — `.sassywares/dogfood/reports/<run-id>/`, or one per repo, `reports/<repo>/<run-id>/`, in a workspace — holding one verdict per section (`pass`, or `failed` with the failing step and its output tail, or `env`/`recipe` explaining why the run could not judge the work) and a capture index: one image per step the harness could see, or the reason it could not; in a workspace, plus a rollup printed once: one line per repo run and a closing count; or, in `mode:discover`, a `docs/dogfood.md` a fresh agent can follow with no other context (`docs/dogfood/<repo>.md`, one per repo, in a workspace); or, in `mode:check`, a lint and the last verdict, printed.
|
|
20
20
|
|
|
21
|
-
**A procedure is the artifact.** The project stores how to dogfood itself in
|
|
21
|
+
**A procedure is the artifact.** The project stores how to dogfood itself in `docs/dogfood.md` — a project document, committed and reviewed like code: ordered steps, each with an observable expectation, ending in one `Prove it:` step whose exit code is the verdict. The config points at it — `dogfood.recipe` for one repo, `dogfood.recipes` keyed by repo in a workspace — and never restates it. Read the `sassy-setup` skill's `references/dogfood.md` first — it owns the recipe format, the report layout, and the verdict classes, and this skill only executes them.
|
|
22
22
|
|
|
23
|
-
**Config.** Resolve `.sassywares/config.yaml` (nearest, walking up) per the `sassy-setup` skill's `references/config.md`. `dogfood.enabled`, `dogfood.recipe
|
|
23
|
+
**Config.** Resolve `.sassywares/config.yaml` (nearest, walking up) per the `sassy-setup` skill's `references/config.md`. `dogfood.enabled`, `dogfood.recipe` (or `dogfood.recipes` in a workspace), `dogfood.reports`, `dogfood.timeout`, and `dogfood.keep` are the only inputs. Precedence: explicit token > session instruction > config > skill default.
|
|
24
|
+
|
|
25
|
+
**In a `workspace`, the recipe is per repo.** The one config at the root declares `dogfood.recipes`, keyed by the repo folder `repos:` lists, each value that repo's own file at `docs/dogfood/<repo>.md` — or `false`, meaning the repo is deliberately not dogfooded, which is a refusal to run, not an empty procedure. A repo with no entry is not dogfooded: say so, never fall back to another repo's recipe. `dogfood.recipe` does not exist here — a workspace that still carries one is drift while `dogfood.enabled: true` (a note, exit 0, while it is `false`), and the run names it as `sassy-setup --check` does instead of picking a file. The target set a `run` covers, and `repo:<name>`, are `references/run.md` §1.
|
|
24
26
|
|
|
25
27
|
**No tooling.** This skill names no browser, driver, emulator, or MCP server, and it never installs one. A step says *what to do and what to see*; how the agent satisfies that is discovered at run time from what the harness already offers, and a plain command is often the better answer.
|
|
26
28
|
|
|
@@ -30,8 +32,8 @@ argument-hint: "[section:<name>] [mode:run|discover|check]"
|
|
|
30
32
|
|
|
31
33
|
| Mode | Load | It ends with |
|
|
32
34
|
|---|---|---|
|
|
33
|
-
| `run` (default) | `references/run.md` |
|
|
34
|
-
| `discover` | `references/discover.md` | a `
|
|
35
|
+
| `run` (default) | `references/run.md` | one report directory per repo it runs (`reports/<repo>/<run-id>/` in a workspace), a verdict per section returned compactly as one line per section, and in a workspace a rollup line per repo |
|
|
36
|
+
| `discover` | `references/discover.md` | a `docs/dogfood.md` proven by a clean run, every gap and capture surface visible |
|
|
35
37
|
| `check` | `references/check.md` | a printed lint and the last verdict; nothing written |
|
|
36
38
|
|
|
37
39
|
Resolve the mode: an explicit `mode:` token wins. With none, it is `run`; a request to check or lint the setup is `check`, and a request to build, repair, or set up the procedure is `discover`. Read the one reference for that mode **and only that one**.
|
|
@@ -46,8 +48,9 @@ Resolve the mode: an explicit `mode:` token wins. With none, it is `run`; a requ
|
|
|
46
48
|
| No tooling, no installs | Never name or require a browser, driver, emulator, or MCP server. **What the recipe names is allowed** — if *Set up once* says `bun install --frozen-lockfile` or downloads the browser its suite declares, that is the project's declared bring-up and a run executes it. Installing anything the recipe does not name is out of bounds, and so is choosing a tool the project has not committed to. A permitted command's own lifecycle hooks (a `postinstall`) come with it; the run adds none of its own. |
|
|
47
49
|
| Never production | Local or staging only. A recipe step pointing at production is refused and reported, not run. |
|
|
48
50
|
| No secrets, ever | Env var **names** only, and session material stays in the gitignored `.sassywares/session/`. Mask values before a log is written, and never echo one in a report. |
|
|
51
|
+
| Verdicts stay per repo | A workspace invocation is N runs with N directories and N verdicts. One repo's red section touches only that repo, a failed repo never stops the fan-out, and the rollup plus the exit code are how the set is reported — never a merged summary and never an average. |
|
|
49
52
|
| No third-party mutation | A run never registers a user, sends mail, charges a card, or writes to a service it does not own — a public demo API is somebody else's database. **A project-owned test environment is the exception**: an E2E deployment the project built, seeded by its own provisioning script and named in `**Upstream:**`, is the project's call. Production never is. |
|
|
50
|
-
| Reports stay local and disposable | Never commit `reports/`, which are pruned to
|
|
53
|
+
| Reports stay local and disposable | Never commit `reports/`, which are pruned to `dogfood.keep` by the last step of a completed green run. Never paste a full log to a caller, a plan, or a PR. The durable record is the QA row's note, which names the verdict and the run id, never a path that will vanish. |
|
|
51
54
|
|
|
52
55
|
## What dogfood is not
|
|
53
56
|
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
---
|
|
2
2
|
suite: sassy-skills
|
|
3
3
|
artifact: reference
|
|
4
|
-
generated_by: sassy-dogfood@0.17.
|
|
4
|
+
generated_by: sassy-dogfood@0.17.3
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Mode: check — lint the setup, print the last verdict, change nothing
|
|
8
8
|
|
|
9
9
|
Read the shared sections in `SKILL.md` first. This file is the check path only, and it is four lines long for a reason.
|
|
10
10
|
|
|
11
|
-
1. **Lint.** Run the `sassy-setup` skill's `scripts/detect.sh --root <path> --check` and report the `dogfood
|
|
12
|
-
2. **Report the last run.** Print the newest report's `status`,
|
|
11
|
+
1. **Lint.** Run the `sassy-setup` skill's `scripts/detect.sh --root <path> --check` and report the `dogfood`, recipe, and over-quota lines verbatim.
|
|
12
|
+
2. **Report the last run.** Print the newest report's `status`, each section's verdict and class, and the timestamp, or that there is none. Newest is the last run directory in lexical order: the id is `YYYYMMDD-HHMMSS`, and an older directory carrying a legacy `-<label>` suffix still sorts by its 15-character prefix and counts as one run. In a `workspace`, that is per repo: one line per repo in `repos:`, the newest run in its `reports/<repo>/` bucket with its run id and verdict, `no runs` for a bucket that is empty, and `not dogfooded` for a repo declared `false` or absent from `recipes:` — the report path names the repo, so a run is never mistaken for another repo's. Read the summary only — never a step log.
|
|
13
13
|
3. **Name the fix, don't make it.** Drift and a missing recipe are reported with the mode that fixes them: a skeleton or a stale procedure is `mode:discover`, and a config that forbids runs is `sassy-setup mode:init`.
|
|
14
14
|
4. **Write nothing.** No report directory, no recipe edit, no config edit. A check that "just fixes a line while it is there" has become a discover run without the evidence to earn it.
|
|
15
15
|
|
|
16
16
|
| Rule | Requirement |
|
|
17
17
|
|------|-------------|
|
|
18
18
|
| Check writes nothing | Verdicts come from a `run`, procedures from a `discover`, config from `sassy-setup mode:init`. Check only reports. |
|
|
19
|
+
| History is a note, never drift | More run directories than `dogfood.keep` is reported with the count and exits 0; it is pruned by the next completed green run, or by hand. Failing it would let a week of runs block a close-out, and a check that deletes is a run without evidence. |
|
|
20
|
+
| Capture is linted, not run | `**Capture:**` must not name a capture product (Playwright, Puppeteer, Selenium, Cypress, Appium, WebDriverIO, BrowserStack, XCUITest, Maestro, Detox, a `*driver`); a generic word — browser, driver, emulator, simulator, headless, devtools, safari, chrome, firefox, webkit, MCP — is rejected only when it is the whole value (`the browser`), not when it names a surface (`the browser tab strip settings page`). `none` must carry a reason (`none — <reason>`); an absent line means capture-when-possible and is never drift. The lint is structural, and prose carries the rest — it never checks whether the harness can see the surface. |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
suite: sassy-skills
|
|
3
3
|
artifact: reference
|
|
4
|
-
generated_by: sassy-dogfood@0.17.
|
|
4
|
+
generated_by: sassy-dogfood@0.17.3
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Mode: discover — build or repair the recipe from what really worked
|
|
@@ -18,7 +18,15 @@ Read `**Out of scope:**` first and drop those from the list — they were decide
|
|
|
18
18
|
|
|
19
19
|
Then: what is this product? A web app, an API, a CLI, a library, a desktop app, a mobile app in a simulator, several of them. Each surface that a change can break gets its own answer — in a monorepo especially, one app having a suite says nothing about its siblings. **A surface is something this repository serves**; a backend it calls is not a surface — record it as `**Upstream:**` and let its outages be `env`.
|
|
20
20
|
|
|
21
|
-
## 3.
|
|
21
|
+
## 3. Establish capture, without prescribing it
|
|
22
|
+
|
|
23
|
+
Capture is discovered, not declared. For each surface, take one capture with whatever the harness has connected right now — an image of a page, a window, a terminal, a rendered document — and look at it. A capture nobody opened is not proof.
|
|
24
|
+
|
|
25
|
+
The value you write names the **surface** — "the catalog page", "the checkout screen", "the CLI output" — never a browser, driver, emulator, MCP server, or other tool. Which tool takes the picture is a harness detail that changes with the machine; the recipe must outlive it. Never install a runner, driver, extension, or server to make a capture possible: without one already present, the surface cannot be captured here.
|
|
26
|
+
|
|
27
|
+
A surface nothing can render — an API with no UI, a headless session, a machine with no display — records `**Capture:** none — <reason>`. That is the only refusal, and the reason is not optional. If you have not been able to test capture yet, leave the line out: absent means capture when a run's harness can see the surface, so omitting it is safer than guessing.
|
|
28
|
+
|
|
29
|
+
## 4. Classify each surface, honestly
|
|
22
30
|
|
|
23
31
|
| Class | Means | Becomes |
|
|
24
32
|
|---|---|---|
|
|
@@ -28,31 +36,33 @@ Then: what is this product? A web app, an API, a CLI, a library, a desktop app,
|
|
|
28
36
|
|
|
29
37
|
**A unit test is not a dogfood path**, and neither is `lint`, `tsc`, or `build`: they never start the product. Recording one as coverage is the failure this step exists to prevent — it makes an untested app look tested, and nobody can tell afterwards that the gap was never closed.
|
|
30
38
|
|
|
31
|
-
##
|
|
39
|
+
## 5. Ask, one surface at a time — and stop until answered
|
|
32
40
|
|
|
33
|
-
With what you found: *"`web`, `api`, and `admin` have no runtime path — `web` has Playwright, the other two only unit tests. Set up a runtime check for `api` and `admin`?"* The options are wrap an existing suite, add a small runtime check, or leave it uncovered and say so. **This step blocks steps
|
|
41
|
+
With what you found: *"`web`, `api`, and `admin` have no runtime path — `web` has Playwright, the other two only unit tests. Set up a runtime check for `api` and `admin`?"* The options are wrap an existing suite, add a small runtime check, or leave it uncovered and say so. **This step blocks steps 6–9**: the answer decides what gets written, so with no user to ask, stop and report the question verbatim — never write a recipe on a guessed answer. Never leave a surface uncovered silently, and never fill the gap with what happens to exist.
|
|
34
42
|
|
|
35
43
|
A **small runtime check is in scope**: a boot plus one assertion, a `curl`, a screenshot diff — written into the recipe as steps. That is not a test framework, and it is the only check this skill authors. Installing a driver or a runner to make one possible is out of bounds; without one already present, the surface is uncovered.
|
|
36
44
|
|
|
37
|
-
##
|
|
45
|
+
## 6. Write the draft, one section per surface, gaps included
|
|
38
46
|
|
|
39
|
-
With more than one surface, that surface's `**Preview:**` and `**Upstream:**` go **inside its own section** — a file-level address on a multi-app project can only describe one app. With exactly one surface, keep the file flat. Every surface in the inventory gets a section: an uncovered one ends with `**Prove it:** none`, explicitly, so a plan keeps its rows `Manual`; an out-of-scope one gets no section at all. Name both lists in the header (`**Uncovered:** api (unit tests only)` / `**Out of scope:** admin`) so the gaps are visible without reading every section.
|
|
47
|
+
With more than one surface, that surface's `**Preview:**` and `**Upstream:**` go **inside its own section** — a file-level address on a multi-app project can only describe one app. With exactly one surface, keep the file flat. Every surface in the inventory gets a section: an uncovered one ends with `**Prove it:** none`, explicitly, so a plan keeps its rows `Manual`; an out-of-scope one gets no section at all. Name both lists in the header (`**Uncovered:** api (unit tests only)` / `**Out of scope:** admin`) so the gaps are visible without reading every section. Write the capture line from step 3 in the same pass: file level when flat, one per section when nested, and `none — <reason>` only where step 3 found nothing that can render the surface. Edit the existing recipe rather than rewriting it: every step and line the project added is theirs, and discovery changes only what it proved wrong this run — a capture line already there changes only when a capture contradicted it.
|
|
40
48
|
|
|
41
|
-
##
|
|
49
|
+
## 7. Run it, and log every deviation
|
|
42
50
|
|
|
43
51
|
Bring the product up and run the draft. Anything you do that is **not a step in the recipe** — an install, an export, a patch, a workaround, a second terminal — is a *deviation*, written down as you go. This is the only step where improvising is allowed, and it is never silent.
|
|
44
52
|
|
|
45
|
-
|
|
53
|
+
Take the capture you wrote down while the product is up, and show it — the file path and what it shows. Write it under `/tmp/sassywares/scratch/`: that is scratch, not run state, and a run's images belong to its report. A `**Capture:**` line nobody has seen a capture from is a claim; if the only way to get one was a deviation, step 8 decides whether that becomes a step or the surface records `none — <reason>`.
|
|
54
|
+
|
|
55
|
+
## 8. Reconcile
|
|
46
56
|
|
|
47
57
|
Every deviation becomes exactly one of two things: a step in the recipe, or the reason this surface is unprovable (`**Prove it:** none`). A recipe whose check passed only with help the recipe does not contain is wrong. If you cannot capture a deviation as a step, the surface is uncovered — say so rather than shipping a procedure nobody else can follow.
|
|
48
58
|
|
|
49
|
-
##
|
|
59
|
+
## 9. Prove the procedure, not the day — with a fresh agent
|
|
50
60
|
|
|
51
|
-
Hand the recipe to a run that has **nothing but the recipe and the config**: a new session, or a dispatched agent, but never this one. It is run once from a clean checkout, allowing no deviation. If you cannot get one, say the recipe is **unverified** rather than claiming it. That second run is the artifact. If it needs improvising, the recipe is wrong: fix it and repeat once; still failing means uncovered and visible.
|
|
61
|
+
Hand the recipe to a run that has **nothing but the recipe and the config**: a new session, or a dispatched agent, but never this one. It is run once from a clean checkout, allowing no deviation. If you cannot get one, say the recipe is **unverified** rather than claiming it. That second run is the artifact. If it needs improvising, the recipe is wrong: fix it and repeat once; still failing means uncovered and visible. A harness that can capture nothing is not a failed proof: the run records `capture: unavailable — <reason>` and its verdict stands.
|
|
52
62
|
|
|
53
|
-
##
|
|
63
|
+
## 10. Report
|
|
54
64
|
|
|
55
|
-
Per surface: its class, its proof, whether it was asked about, the deviations you reconciled, and what is still unknown. Mark a check you wrote as **unproven** if you never watched it fail — breaking the thing once is the way to earn that. Say plainly that `sassy-setup` flips `dogfood.enabled` and that the switch alone changes nothing.
|
|
65
|
+
Per surface: its class, its proof, the capture you took (or why none), whether it was asked about, the deviations you reconciled, and what is still unknown. Mark a check you wrote as **unproven** if you never watched it fail — breaking the thing once is the way to earn that. Say plainly that `sassy-setup` flips `dogfood.enabled` and that the switch alone changes nothing.
|
|
56
66
|
|
|
57
67
|
## Rules for this path
|
|
58
68
|
|
|
@@ -63,3 +73,4 @@ Per surface: its class, its proof, whether it was asked about, the deviations yo
|
|
|
63
73
|
| Ask about every gap | Each uncovered surface gets one question: wrap a suite, add a runtime check, or leave it uncovered and visible. Silence is how a gap becomes a false green. |
|
|
64
74
|
| Never promote what exists | A unit test, `lint`, or `build` is not a dogfood path. Discovery records what the product needs, and says so when that is nothing yet. |
|
|
65
75
|
| Not a test framework | If the project has a suite, the recipe wraps it. Discovery never grows assertions of its own beyond a step's `Expect`. |
|
|
76
|
+
| Capture is discovered, then named by its surface | Take one capture before writing the line, name the page, screen, view, or output rather than the tool that produced it, and use `none — <reason>` only when nothing can render the surface. Never install a capture tool. |
|
|
@@ -1,50 +1,118 @@
|
|
|
1
1
|
---
|
|
2
2
|
suite: sassy-skills
|
|
3
3
|
artifact: reference
|
|
4
|
-
generated_by: sassy-dogfood@0.17.
|
|
4
|
+
generated_by: sassy-dogfood@0.17.3
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# Mode: run — execute the procedure, return a verdict
|
|
7
|
+
# Mode: run — execute the procedure, return a verdict per section
|
|
8
8
|
|
|
9
9
|
Read the shared sections in `SKILL.md` first (the recipe artifact, config, no-tooling, and the every-mode rules). This file is the run path only. The recipe format, report layout, and verdict classes are the `sassy-setup` skill's `references/dogfood.md`.
|
|
10
10
|
|
|
11
11
|
## 1. Resolve the target
|
|
12
12
|
|
|
13
|
-
Read the `dogfood:` block. If `enabled` is not `true`, stop with one line: reporting is not enabled, and enabling it is `sassy-setup mode:init`.
|
|
13
|
+
Read the `dogfood:` block. If `enabled` is not `true`, stop with one line: reporting is not enabled, and enabling it is `sassy-setup mode:init`.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
**Resolve the repos before anything runs.** The config is the root's, so the topology is the root's: in a `workspace`, the same command means the same thing from the workspace root and from inside a repo, and no repo's coverage depends on which directory the shell happens to be standing in — **as long as the config that resolves is the root's**. A nested repo carrying its own `.sassywares/config.yaml` makes that repo's config authoritative (nearest wins), so the topology resolves to `repo` and every other mapped repo disappears; that is a stop before any run, naming the nested file and the rule it breaks: a workspace member carries no config of its own — remove it, or run that repo's dogfooding as its own project. The default covers **every repo whose `dogfood.recipes` entry is a path**; a repo declared `false`, or absent from the map, is not run and is not a failure, and it is not a rollup line. `repo:<name>` narrows the invocation to exactly that repo.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
A name that is not a key in the map stops **before any run starts**, in one line naming the repos that have a recipe — never a guess and never a fallback to all. A name that is in `repos:` but declared `false` stops the same way, stating the decision instead of reporting the repo as missing. When no repo has a recipe at all, the same refusal states the empty set. Never invent wording for any of the three:
|
|
18
|
+
|
|
19
|
+
repo:<name> is not a repo with a recipe — fe, urs have one.
|
|
20
|
+
repo:<name> is declared false — it is deliberately not dogfooded; change its recipes: entry, or run another repo.
|
|
21
|
+
no repo in this workspace is dogfooded — dogfood.recipes maps none of repos: to a path.
|
|
22
|
+
|
|
23
|
+
A default invocation with nothing to run is §7's zero-repo stop, not this refusal.
|
|
24
|
+
|
|
25
|
+
A harness that can only reach one repo runs it with `repo:<name>` — the fan-out is the default, not a requirement — and a narrowed invocation is complete: its report, its verdict, and its rollup stand on their own. In a repo topology `repo:<name>` is accepted only when `<name>` is this repo's own folder name; any other name stops with the refusal above, naming this repo as the only one that has a recipe.
|
|
26
|
+
|
|
27
|
+
That target set is what "the recipe" means below: load each target repo's recipe at its mapped `docs/dogfood/<repo>.md`, then run §2–§8 once per repo, in the order `repos:` lists them — except the rollup, which §7 prints once for the invocation. Within each recipe, a section the caller names (`section:<name>`) is the target, otherwise every section. A missing recipe is a config fault, not a repo's verdict: it stops the invocation before any run starts, naming the repo and `mode:discover`. A target section with no `Prove it:` step is a `recipe` verdict for **that repo**, never a silent drop and never a stop for the invocation: §2 opens the repo's directory, the report carries one `recipe` row naming the section and the `Prove it:` it lacks, no section of that repo runs, it takes its rollup line as failed, the fan-out continues to the next repo, and the invocation's exit code is non-zero because a repo failed. The row names `mode:discover`.
|
|
28
|
+
|
|
29
|
+
**Each repo's run executes in that repo's folder, never the caller's.** A workspace keeps the recipe at the root (`docs/dogfood/fe.md`) and the app in `fe/`, so preflight, the bring-up, and every step of a repo's run use that repo's folder as the working directory — `fe/`, never the workspace root and never wherever the shell that invoked the run happened to stand, so the same command that exits 127 from the root passes from `fe/`. The session check reads the `.sassywares/session/` that governs the repo — the workspace root's in a workspace, the repo's own in a repo topology — and entry points, like every step, resolve inside that repo's folder. The summary's `recipe:` line records that repo's `HEAD`; when the repo is not a git checkout, write `no git checkout` there instead of leaving the line unfillable.
|
|
30
|
+
|
|
31
|
+
Read `dogfood.keep` once, now, with the same default the check reads (`10`). It is the retention cap for this repo, and nothing else in the run reads it.
|
|
32
|
+
|
|
33
|
+
Read the capture lines once, too: the file-level `**Capture:**` is the default, a section's own line wins for that section, and an **absent** line means capture when the harness can see the surface. `none — <reason>` is the only refusal; a section that says it is never captured, and its reason goes into the report.
|
|
34
|
+
|
|
35
|
+
## 2. Open one report directory per repo
|
|
36
|
+
|
|
37
|
+
The invocation owns exactly one directory per repo it runs, however many sections each one runs: `<reports>/<repo>/<run-id>/` in a workspace, `<reports>/<run-id>/` in a repo topology, where the reports root is the only bucket. The path is the run's identity, so which repo a run belonged to is readable before `summary.md` is opened, and two repos may carry the same clock id without meaning the same run.
|
|
38
|
+
|
|
39
|
+
1. Take the local clock **once** for the invocation as `YYYYMMDD-HHMMSS`. Per bucket, if `<bucket>/<id>/` already exists — or an older legacy directory already carries that clock id as `<id>-<label>` — move the clock forward one second and test again, until the name is **free** — the next free second is taken inside that bucket only, so a taken id never writes into a finished run, a legacy label is never reused, and one repo's busy history never renames another's. A new run never writes a label.
|
|
40
|
+
2. Create `<bucket>/<id>/` with `steps/` and `artifacts/`. Both are shared by every section; a file name carries its section (`<section>-<NN>`), so nothing needs a directory per section.
|
|
41
|
+
3. Write `summary.md` whose first line is `# Dogfood run <run-id> — <repo>` (in a repo topology the repo is this project), so a pasted report is self-identifying; then `status: running`, `class` blank, the recipe path and that repo's `HEAD` (or `no git checkout`), the start time, and one row per target section whose verdict is `pending`. When §1 found a target section with no `Prove it:`, write the finished report for that repo here instead — `status: failed`, one `recipe` row naming the section and the missing step — and skip the repo's §3–§6; §7 still gives it its rollup line, and a failed run prunes nothing.
|
|
42
|
+
|
|
43
|
+
Do **not** prune here. The directory just created is the run being written, and retention is the last step of a *completed* run (§7) — a killed run leaves its directory and prunes nothing. The whole reports tree stays gitignored: logs, images, and traces are evidence for this run, never a commit.
|
|
18
44
|
|
|
19
45
|
## 3. Preflight, then the bring-up
|
|
20
46
|
|
|
21
|
-
Preflight checks presence only: each env var the recipe **names** (never print a value), a session it refers to — only when it refers to one — actually sitting in `.sassywares/session
|
|
47
|
+
Preflight checks presence only: each env var the recipe **names** (never print a value), a session it refers to — only when it refers to one — actually sitting in the `.sassywares/session/` that governs the repo (§1), and the commands' entry points existing. A missing entry point, a tool not on `PATH`, or an absent env var is `class: env` — write **that repo's** report with a single `setup` row instead of the sections, report it, and carry on to the next repo. No section runs, so no section verdict is invented, and one repo's bring-up failing is that repo's `env` verdict, never a stop for the fan-out.
|
|
22
48
|
|
|
23
49
|
Then **run the recipe's *Set up once*.** It is the bring-up, not a checklist: install frozen where the project has a lockfile, and continue. That is the only installing a run does — never install something the recipe does not name, never `docker pull`, never mutate the environment to make a step pass.
|
|
24
50
|
|
|
25
|
-
## 4. Execute
|
|
51
|
+
## 4. Execute section by section — a red section ends only itself
|
|
52
|
+
|
|
53
|
+
Run the target sections in recipe order. Inside a section, run its numbered steps in order.
|
|
26
54
|
|
|
27
|
-
Per step: write `steps/<section>-<NN>.log`, capped head-and-tail, with the command and its output, values of every env var the recipe names masked, and the exit code. `Do` is a command *or* an instruction — satisfy it with whatever is available, and judge it only against its `Expect`. The step's own shell mechanics are part of the step: backgrounding a server, redirecting its output, creating the directory a log path lives in. Improvisation is what the recipe does **not** name.
|
|
55
|
+
Per step: write `steps/<section>-<NN>.log`, capped head-and-tail, with the command and its output, values of every env var the recipe names masked, and the exit code. `Do` is a command *or* an instruction — satisfy it with whatever is available, and judge it only against its `Expect`. The step's own shell mechanics are part of the step: backgrounding a server, redirecting its output, creating the directory a log path lives in. Improvisation is what the recipe does **not** name.
|
|
28
56
|
|
|
29
|
-
|
|
57
|
+
**A broken expectation ends that section, not the run.** Record the failure as that section's verdict, keep everything already written, and move on to the **next** section. The remaining verdicts were already paid for, the sections are independent, and a red `catalog` says nothing about `auth`. Never mark a later section from an earlier one — its own `Prove it:` decides. Resume a failed section at its failed step on the next run, never from the top: the summary's `Next:` line says which.
|
|
30
58
|
|
|
31
|
-
|
|
59
|
+
Capture each step once it has run, pass or fail: take it with whatever the harness has connected right now and write it to `artifacts/<section>-<NN>.png` (a step needing more than one appends a label: `<section>-<NN>-<label>.png`). Never install, configure, or retry through a tool the recipe does not name. A section whose capture is `none` takes no image and carries its reason into the index. If the surface cannot be seen or the capture fails, record `capture: unavailable — <reason>` in that step's index entry and carry on: the step's `Expect` — and only it — decides.
|
|
32
60
|
|
|
33
|
-
|
|
61
|
+
## 5. Take each section's verdict from its prove step
|
|
34
62
|
|
|
35
|
-
|
|
63
|
+
Each section's own `Prove it:` step decides that section: exit 0 is `pass`, non-zero is `failed`. A failure earlier in the section is `failed` regardless. The run's `status` is `pass` only when every section passed; any red section makes the run `failed`. This skill holds no opinion about the work — a check it judged by reading instead of running is not a verdict. **Capture is evidence, never a verdict**: a missing or failed image is recorded and changes nothing, and an image that looks wrong is a human's finding, not a machine one.
|
|
64
|
+
|
|
65
|
+
**The deadline is yours to hold.** Track wall-clock from the start and stop at `dogfood.timeout`, ending the current section as `failed` with `class: env`, the section as it stands, and no further sections **of that repo**. In a workspace it is each repo's own deadline, never a shared budget across the fan-out: a repo that times out is that repo's verdict and the next repo still starts. A step that can hang states its own bound in its `Expect`; the recipe-wide deadline is the backstop, not a substitute.
|
|
66
|
+
|
|
67
|
+
## 6. Classify each failed section
|
|
36
68
|
|
|
37
69
|
| Class | When |
|
|
38
70
|
|---|---|
|
|
39
|
-
| `env` | The environment cannot produce a verdict: exit 75 or 127, a missing dependency, or **a service nobody in this run controls** being down (a third-party API, a shared backend). Report it, name the dependency, and stop. |
|
|
71
|
+
| `env` | The environment cannot produce a verdict: exit 75 or 127, a missing dependency, or **a service nobody in this run controls** being down (a third-party API, a shared backend). Report it, name the dependency, and stop that section. |
|
|
40
72
|
| `recipe` | The procedure itself is what failed: a step cannot be followed at all (a script renamed, a URL that no longer exists, a UI that no longer matches), or the recipe names the wrong version, script, or URL. |
|
|
41
73
|
| `code` | Everything else. |
|
|
42
74
|
|
|
43
|
-
The line between the last two is whose text is wrong: the named toolchain is right but absent → `env`; the recipe's own instructions cannot be followed or name the wrong thing → `recipe`. When in doubt, ask: could a person follow this step as written and still be testing the app? If not, it is `recipe`.
|
|
75
|
+
The line between the last two is whose text is wrong: the named toolchain is right but absent → `env`; the recipe's own instructions cannot be followed or name the wrong thing → `recipe`. When in doubt, ask: could a person follow this step as written and still be testing the app? If not, it is `recipe`. Each failed section carries the class it earned; the run's `class` is the first failed section's, in recipe order.
|
|
76
|
+
|
|
77
|
+
## 7. Finalize, prune, report
|
|
78
|
+
|
|
79
|
+
A preflight or bring-up failure has no step id: it logs to `steps/00-setup.log`, and the single `setup` row §3 wrote carries `—` in its `Capture` cell (not applicable — no step ran).
|
|
80
|
+
|
|
81
|
+
Write the final `summary.md`: `status`, `class`, one row per section with its verdict, class, failing step and capture index, the `**Artifacts:**` line, and `Next:`. The capture index is the `Capture` column. `**Artifacts:**` lists everything the run wrote — the images plus any trace or report a step wrote, because a trace is evidence too — and none of it is ever linked from a commit, since the reports directory is disposable.
|
|
82
|
+
|
|
83
|
+
**Then prune — and only then.** Pruning is the last step of a completed run, and only of a **green** one: with `status: pass`, keep that repo's run directories down to `dogfood.keep`; with `status: failed`, leave that repo's whole set alone, because a cap is not a license to delete a red run's evidence in the same breath. A killed run never reaches this step and deletes nothing. Retention is per repo, never per workspace: the cap applies to each `reports/<repo>/` bucket by itself, so a repo never loses a run because a different repo was busy. Per bucket — `reports/` in a repo topology, `reports/<repo>/` per repo in a workspace — run exactly this, with the bucket, the cap, and the id just written. The bucket is the path the run resolved from the config's `dogfood.reports` — absolute, or relative to the config root — never a path relative to the repo folder the steps ran in:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
bucket='<reports in a repo topology; reports/<repo> in a workspace>'; keep='<dogfood.keep>'; current='<run-id just written>'
|
|
87
|
+
case "$bucket$keep$current" in *'<'*) echo 'dogfood prune: substitute the placeholders before running this snippet' >&2; exit 1 ;; esac
|
|
88
|
+
ids=$(ls -1 "$bucket" | grep -E '^[0-9]{8}-[0-9]{6}(-[A-Za-z0-9][A-Za-z0-9._-]*)?$' | sort || true)
|
|
89
|
+
count=$(printf '%s\n' "$ids" | grep -c . || true)
|
|
90
|
+
excess=$(( count - keep ))
|
|
91
|
+
for id in $ids; do
|
|
92
|
+
(( excess > 0 )) || break
|
|
93
|
+
[[ "$id" == "$current" ]] && continue # never the run being written
|
|
94
|
+
rm -rf -- "$bucket/$id"
|
|
95
|
+
excess=$(( excess - 1 ))
|
|
96
|
+
done
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Then, **in a workspace, print the rollup** — once for the invocation, after the last repo, on stdout. It is text only: it writes no file, and the invocation creates nothing at the workspace root. One line per repo the invocation ran — including one that stopped at preflight, timed out, or got a `recipe` verdict with no section run — in `repos:` order, then one closing line. Each line quotes the run directory's name exactly as it sits on disk; a legacy labelled id is shown whole, and its 15-character prefix is what orders it:
|
|
100
|
+
|
|
101
|
+
```text
|
|
102
|
+
dogfood rollup — 3 of 5 repos ran: 2 passed, 1 failed
|
|
103
|
+
fe pass 20260105-120001 5/5 steps
|
|
104
|
+
urs failed 20260105-120001 3/5 steps (code at urs-4)
|
|
105
|
+
api pass 20260105-120001 2/2 steps
|
|
106
|
+
dogfood: 2 passed, 1 failed, 2 skipped of 5 repos, 0 over dogfood.keep
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
A line's verdict is that repo's own; `5/5 steps` is how many of its steps passed of how many it executed, and a failed line adds its class and failing step. The denominator is every repo in `repos:`: the header says how many of them ran, the closing line adds the skipped ones, so `ran + skipped` is always the denominator and the two lines reconcile. **Skipped** counts every repo in `repos:` this invocation did not run — `false`, no entry in the map, or narrowed away by `repo:` — and a skipped repo is never a line of its own; use the singular when a count is 1 (`1 of 3 repos ran`, `of 1 repo`, `1 repo`). **`over dogfood.keep`** counts, among the buckets of the repos this invocation ran, how many are still above the cap after that repo's prune — nothing else. A repo the invocation did not run is never measured: its bucket may be over quota and unpruned, and it is `--check` that names it, never this figure. An all-green invocation therefore measures 0 for the repos it ran, and says nothing about the buckets it did not. A repo topology prints no rollup: one repo's summary already says everything the rollup would.
|
|
110
|
+
|
|
111
|
+
**Zero repos is a stop, not a pass.** In a workspace, when the resolved target set is empty — every entry `false`, none mapped, or no `recipes:` at all — print the rollup with all of `repos:` skipped and one line naming the config that produced it, then exit non-zero: an invocation that ran nothing proved nothing, and `0 passed, 0 failed` is not a clean set.
|
|
44
112
|
|
|
45
|
-
|
|
113
|
+
**Exit code.** `0` only when the invocation ran at least one repo and every repo it ran passed. Non-zero when any repo's run was `failed` — a red section, an `env` preflight, a timeout, or a section with no `Prove it:` that made the repo a `recipe` verdict — or when the invocation stopped before running (a bad `repo:` name, a `false` name, a missing recipe, a workspace still carrying one combined `recipe:`, an empty target set). A skipped repo never affects it. This is where the rule lives: the rollup says which repo, and the exit code says whether the set is clean — never the other way round, and never the last repo's status standing in for the set's.
|
|
46
114
|
|
|
47
|
-
|
|
115
|
+
Then return compactly, **one line per section** — under a `repo:` prefix in a workspace: its verdict, its class when failed, its failing step, the last ~600 characters of that step's log, and the report path — plus, once for the invocation, the run id (in a workspace, each repo's) and the one-line diff you propose for any `recipe` verdict. A section with no images says so on its line. Never paste a whole log to the caller.
|
|
48
116
|
|
|
49
117
|
## 8. On `recipe`, propose and stop
|
|
50
118
|
|
|
@@ -54,7 +122,13 @@ Show the diff that would make the procedure followable and ask before writing it
|
|
|
54
122
|
|
|
55
123
|
| Rule | Requirement |
|
|
56
124
|
|------|-------------|
|
|
125
|
+
| One directory per run | A repo topology writes one `<reports>/<run-id>/` per invocation; a workspace writes `<reports>/<repo>/<run-id>/` per repo it runs — never a workspace-level report, a merged summary, or a shared run-id directory at the top. Sections are rows and file prefixes, never directories. A taken id takes the next free second in its own bucket; a finished run is never written into, and a legacy `<id>-<label>` directory still carries that id. |
|
|
126
|
+
| Fan out, fail per repo | In a workspace every repo with a recipe runs, in `repos:` order, whatever the repo before it did: a red section, an `env` preflight, or a timeout is that repo's verdict and the next repo still starts. The rollup and the exit code carry the result. |
|
|
127
|
+
| The rollup is text | One line per repo run and one closing count, printed to stdout. It writes no file and leaves nothing at the workspace root; the per-repo summaries are the durable record, and `sassy-ship` quotes the lines. |
|
|
128
|
+
| A red section ends itself | The failing section stops; the invocation continues through the rest, one verdict each. Never fail-fast the whole run, and never infer a later verdict from an earlier one. |
|
|
129
|
+
| Retention is a cap, and the last step | Prune only after `summary.md` says `pass`; never the run being written; a red or killed run prunes nothing; and each repo's bucket is capped by itself, never because another repo was busy. |
|
|
57
130
|
| The run may not edit the check | A red run never fixes itself by editing the recipe or its expectations. Propose the diff, ask, stop. |
|
|
58
131
|
| Env is not code | Exit 75/127, a missing dependency, or an unreachable service is `env`: report and park. Looping on a broken toolchain burns a run for nothing. |
|
|
59
|
-
| Resume, don't restart | Re-run from
|
|
132
|
+
| Resume, don't restart | Re-run a failed section from its failed step; the summary says where. Starting over hides the state that made the failure happen. |
|
|
133
|
+
| Capture, don't judge | Capture every step on the happy path and the failing one, into the gitignored `artifacts/`. A refusal or an unavailable surface is written down with its reason and never moves the verdict. |
|
|
60
134
|
| No dependency churn | A bring-up never changes a lockfile. Install frozen where the project has one; a broken lockfile is `env`, not something to repair mid-run. |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
suite: sassy-skills
|
|
3
3
|
artifact: skill
|
|
4
|
-
generated_by: sassy-setup@0.17.
|
|
4
|
+
generated_by: sassy-setup@0.17.3
|
|
5
5
|
name: sassy-setup
|
|
6
6
|
description: >-
|
|
7
7
|
Detect a project's topology and wire it for the Sassy Skills suite: write
|
|
@@ -54,13 +54,13 @@ comment and all. Drift blocks step 8.
|
|
|
54
54
|
|
|
55
55
|
The `worktrees` half checks what a run would read: the switch, that the tooling is installed with the shipped bytes, that no checkout sits inside the working tree, and that none holds a branch `base_map` names as a base.
|
|
56
56
|
|
|
57
|
-
The `dogfood` half is structural and never runs the product: `enabled` and `
|
|
57
|
+
The `dogfood` half is structural and never runs the product: `enabled`, `timeout`, and `keep` are in range, the two paths are relative and stay inside the project, `reports` and `.sassywares/session` are gitignored in a `repo` topology, and the recipe has a `**Prove it:**` line per section with an `**Expect**` per step and no secret-shaped string. A recipe that does not exist yet is a note, not drift — unless `enabled` is `true`, which is the one combination that would let a planner write Auto rows against a check nobody has. The recipe lives at `docs/dogfood.md`; one still at `.sassywares/dogfood/recipe.md` is drift while `enabled` is `true` and a note while it is `false`, since the suite never moves a project-owned file itself. In a `repo` topology the finding carries the exact `git mv` that moves it; in a `workspace` it names the per-repo split instead, and a leftover file beside an already-written `recipes:` map is a note, never a stop — `references/dogfood.md` and `references/workspace.md` have the detail. In `workspace` topology the recipe is a map instead — `dogfood.recipes`, keyed by the repo folder `repos:` lists, one `docs/dogfood/<repo>.md` each or `false` for a repo deliberately not dogfooded; a single `recipe:` there is drift naming the split, a key outside `repos:` is drift, and a repo with no entry is one note with exit 0. The map lives in the root's one config, never per repo.
|
|
58
58
|
|
|
59
59
|
Then check the skills and the agents exactly as step 5's **Installed** rules say, and report the scope each was found in or what is missing. Step 7 never installs anything: a missing suite or roster is reported with the fix (`mode:init`), and it does not block step 8.
|
|
60
60
|
|
|
61
61
|
8. **Commit what setup owns.** `repo` topology only, and only when step 7 is clean. The file list is exactly what setup wrote or found unwritten:
|
|
62
62
|
|
|
63
|
-
`.sassywares/config.yaml`, `.sassywares/README.md`,
|
|
63
|
+
`.sassywares/config.yaml`, `.sassywares/README.md`, `docs/dogfood.md` and `.sassywares/.gitignore` when step 4 created them, `AGENTS.md` when step 5 created it or wrote a block into it, the two project scripts step 6 scaffolded at `<home>/worktrees/create` and `<home>/worktrees/remove` (only those two named files — never their directory), `.sassywares/worktree/*` when step 6 installed the tooling, the runner file when the user accepted aliases in it, `.agents/skills/sassy-*` and `skills-lock.json` when the suite is in project scope, the project-scope agent files when step 5 copied them, and a root `.gitignore` when step 5 created one. Named files only — never `git add -A`, never `git add .`. Staging `AGENTS.md` stages the file, never a claim on its other lines: a line already there is not setup's work, and a declined block diff leaves nothing to stage. The reports directory is never in this list: it is gitignored, and nothing setup writes lives there.
|
|
64
64
|
|
|
65
65
|
Dispatch `sassy-commit` with that list and `branch:current`. The token is explicit, not this skill's default: wiring is a one-time bootstrap commit, and cutting a branch would leave the project configured but uncommitted until someone ships it. Name the branch it landed on, base branch included.
|
|
66
66
|
|
|
@@ -78,9 +78,9 @@ comment and all. Drift blocks step 8.
|
|
|
78
78
|
| No `git init` | Setup never turns a folder into a repo, and never does remote or ref surgery. The step 8 commit is its only git write. |
|
|
79
79
|
| Verify before commit | A config that fails `--check` is reported, never committed. |
|
|
80
80
|
| Commit only what setup owns | The config, the setup README, `AGENTS.md` when setup created it or wrote its block into it, the two project scripts step 6 scaffolded, the vendored `sassy-*` folders and `skills-lock.json` (project scope), the project-scope agent files, and a `.gitignore` setup created. Never a file the user wrote or the repo already had, unless they name it. |
|
|
81
|
-
| No silent overwrite | An existing config or an existing `.sassywares/workspace/snapshot` is shown and asked about, never replaced blind. A differing `AGENTS.md` routing block is a diff and a question, never a clobber. |
|
|
81
|
+
| No silent overwrite | An existing config, `docs/dogfood.md` (or a workspace's `docs/dogfood/<repo>.md`), or an existing `.sassywares/workspace/snapshot` is shown and asked about, never replaced blind. A differing `AGENTS.md` routing block is a diff and a question, never a clobber. |
|
|
82
82
|
| Never a rewrite of `AGENTS.md` | Only the bytes between the `<!-- sassywares:skills vN -->` markers are written, replaced, or staged; every other line of the file stays exactly as it was. Include the block only in the file setup created or appended to it, and never touch `CLAUDE.md` or a per-harness agent file. |
|
|
83
|
-
| Write boundary | Only `.sassywares/` (the config, the setup README, the dogfood scaffold
|
|
83
|
+
| Write boundary | Only `.sassywares/` (the config, the setup README, and the worktree tooling), `docs/dogfood.md` for the dogfood scaffold or `docs/dogfood/<repo>.md` per repo in a workspace (plus the `docs/` folder it needs), the two project scripts step 6 scaffolded at `<home>/worktrees/create` and `<home>/worktrees/remove` (new files only — never the whole `worktrees/` folder), the skills and agent files step 5 installed in the scope the user chose, `skills-lock.json` (project scope), `AGENTS.md` (the file step 5 created, or its marked block appended — every other line of it untouched), `.sassywares/.gitignore` with its two lines, and at most one root `.gitignore` line that step 5 created. Never `package.json` outside step 6's `worktree:*` and `workspace:*` aliases, never a root `.gitignore` in a workspace. Workspace git helpers land in `.sassywares/workspace/`, never in a project's `bin/`. |
|
|
84
84
|
| Install the tooling, never use it | Setup copies `.sassywares/worktree/` and offers the aliases. It never creates a checkout, never runs a script, and never starts or stops the project's stack — that is the project's own `create`/`remove` script's job. |
|
|
85
85
|
| Skills come from upstream | Install with `npx skills add`, `-g` for user scope; never hand-copy skill files or maintain the links yourself. |
|
|
86
86
|
| Agents come from sassy-agents | Only the running harness's folder, as-is: linked by `install.sh` (user scope) or copied verbatim (project scope). Never edit, merge, or overwrite a differing agent file without asking. |
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
# sassywares:scaffold v1 skill=sassy-setup version=<version> date=<YYYY-MM-DD>
|
|
3
|
+
|
|
4
|
+
dogfood — this project's dogfood recipe: the stored procedure `sassy-dogfood`
|
|
5
|
+
executes to prove a change works in the running product, not only in the diff.
|
|
6
|
+
|
|
7
|
+
Contract: sections of ordered, append-only steps, each carrying a `Do` and an
|
|
8
|
+
`Expect`, ending in one `Prove it:` step whose exit code is the verdict. The
|
|
9
|
+
`dogfood:` block in `.sassywares/config.yaml` points here and never restates a
|
|
10
|
+
step. Env var names only, never a value; no tool names — a step names a surface,
|
|
11
|
+
and whatever the harness has connected at run time is what satisfies it.
|
|
12
|
+
|
|
13
|
+
This file now belongs to the project. Setup wrote it once and never rewrites
|
|
14
|
+
it: edit it freely. Schema: sassy-setup/references/dogfood.md
|
|
15
|
+
-->
|
|
16
|
+
|
|
1
17
|
# Dogfood — <project>
|
|
2
18
|
|
|
3
19
|
**Never** production. Local or staging only.
|
|
@@ -6,19 +22,17 @@
|
|
|
6
22
|
never values>
|
|
7
23
|
|
|
8
24
|
**Reset:** <the product back to a known state — a database, a cache, a temp dir.
|
|
9
|
-
Never `reports/`: evidence must outlive the run that made it
|
|
25
|
+
Never `reports/`: evidence must outlive the run that made it>
|
|
10
26
|
|
|
11
27
|
**Preview:** <what you look at once it is up — a URL, a simulator name, a window. Not the command; that is a step below.>
|
|
12
28
|
|
|
29
|
+
**Capture:** <the surface a run photographs — a page, a screen, a view. Name it, never the tool that takes the picture. Leave this out while unknown: absent means capture when the harness can; write `none — <reason>` only to refuse.>
|
|
30
|
+
|
|
13
31
|
<!--
|
|
14
32
|
Incomplete on purpose. sassy-setup writes this skeleton so the shape is visible;
|
|
15
33
|
`sassy-dogfood mode:discover` fills it by trying the product once and writing down
|
|
16
34
|
what actually worked. Until a section has a **Prove it:** step, every QA row stays
|
|
17
35
|
Manual.
|
|
18
|
-
|
|
19
|
-
Rules: steps are ordered and append-only; every step has **Do** and **Expect**;
|
|
20
|
-
one **Prove it:** per section and its exit code is the verdict; env var names
|
|
21
|
-
only; no tool names. Schema: sassy-setup/references/dogfood.md
|
|
22
36
|
-->
|
|
23
37
|
|
|
24
38
|
## <section> — <one line: what this proves>
|