Skip to content
Back to skills

Strata Garden

ASecurity

The Strata gardener's operating manual — the maintenance pass (retire, re-verify, reconcile across sessions, promote patterns), how to execute a garden plan (.strata/garden/plan.json) task by task under the autonomy matrix, report write-time lapses, commit per category, verify, raise questions and write the PR digest; also how to schedule /garden. Use when running /garden, acting as the strata:gardener agent, or setting up recurring gardening.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
ai-agentsrustgogit

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add zbmowrey/strata --skill strata-garden --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Strata Garden?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Strata Garden
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zbmowrey-strata-garden/badge)](https://www.skillsdirectory.com/skills/zbmowrey-strata-garden)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: strata-garden
description: The Strata gardener's operating manual — the maintenance pass (retire, re-verify, reconcile across sessions, promote patterns), how to execute a garden plan (.strata/garden/plan.json) task by task under the autonomy matrix, report write-time lapses, commit per category, verify, raise questions and write the PR digest; also how to schedule /garden. Use when running /garden, acting as the strata:gardener agent, or setting up recurring gardening.
tags: [strata, garden]
---

# Gardening a Strata instance

`/garden` = `strata garden start` (lock, worktree, plan, mechanical fixes committed) →
you work the plan **in that worktree** → `strata garden finish --body-file <digest>` (push,
draft PR, mark ready, clean up). `strata garden abort` throws the run away.
Never merge. Never read `knowledge/_private/`. Never touch the human's working tree.

## What a garden run is for

A **maintenance pass** (D-038). Sessions finish their own knowledge: they file their
captures, fill templates and link new shards, or `stop`/`commit` block. The garden does
what no single session can: **retire** (expired, long-superseded), **validate**
(re-verify stale shards, resolve conflicts, fix broken links), **reconcile** across
sessions (duplicates written by different sessions, answered questions) and **promote
patterns** (correction → gotcha → gate, howto → script, repeated commands → scripts).

**Lapses** (`file-inbox`, `fix-orphan`, `split-oversize`) are write-time work a session
left unfinished. Do them, but count them: the target is **zero**. For each one that is not
legacy (no `evidence.legacy`) and not deferred (`evidence.deferred` is a session's
reasoned hand-off), say in its `--note` which write-time rule, hook or skill let it
through (for example "captured by session s-1, never filed: stop gave up after 3 blocks",
or "orphan created by a `sed` edit outside the own-work set") and add it to
`.strata/garden-summary.md` under **Lapse findings**: each is a finding for the engine.
Legacy lapses (before `[garden] write_time_since`) are debt, not findings.

## Task recipes (plan order)

Every task has a `class` (retirement, validation, reconciliation, patterns, housekeeping,
lapse); the digest groups by it.

| Type                        | Do                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `file-inbox`                | Lapse (a deferred or abandoned capture). Read `evidence.deferred` first: resolve what it was waiting for, else leave it and say why. Then file it as a session would (strata-capture §2): edit the home shard and `strata file <item> --into <id>`, or `strata file <item> --new …` and fill + link it, or `--drop "<why>"`.                                                                                                                                |
| `merge-duplicates`          | Keep the better-sourced shard; fold the other's evidence into it; `strata supersede <loser> <keeper>` (delete only an exact duplicate). Either side `user-stated` → question.                                                                                                                                                                                                                                                                               |
| `split-oversize`            | Split into focused shards linked both ways; the original id keeps the core claim.                                                                                                                                                                                                                                                                                                                                                                           |
| `fix-orphan`                | Lapse. Link it from the shard it refines or a sibling in its topic (`## See also`), or name it in the `shards:` of the playbook/script that uses it, or merge it into one. Hubs do not count.                                                                                                                                                                                                                                                               |
| `reverify-drift`            | Changed source: for each `evidence.sources` entry open the file (`via: missing` → find where it moved, or drop the claim) and re-check only the claims it backs. Still true → bump that source's `at` to today (and `verified_at`). Wrong → correct it and its source (`observed`/`inferred`) or question (`user-stated`).                                                                                                                                  |
| `reverify-stale`            | `verify_script` in evidence → `strata run <script>`; pass → bump `verified_at`; fail → correct (`observed`/`inferred`) or question (`user-stated`). No script → re-check sources/code.                                                                                                                                                                                                                                                                      |
| `instance-check`            | Read `evidence.note` and `output_tail`; find the root cause in the instance (content, labels, config); fix it within the autonomy matrix and re-run the check's command to confirm; if it needs a human decision, raise a question with the output attached.                                                                                                                                                                                                |
| `archive-cold`              | `strata archive <id>` (never delete).                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `archive-expired`           | Past `expires`: `strata archive <id>`. User-stated too (archiving is reversible, D-037); say so in the task note so the digest lists it. Never delete.                                                                                                                                                                                                                                                                                                      |
| `archive-superseded`        | Superseded longer than `superseded_grace_days`: check `superseded_by` resolves, then `strata archive <id>`. User-stated too, noted as above.                                                                                                                                                                                                                                                                                                                |
| `aging-draft`               | Always a question: finish the draft (`status: active`) or archive it?                                                                                                                                                                                                                                                                                                                                                                                       |
| `aging-deprecated`          | Always a question: archive it, or supersede it with its replacement?                                                                                                                                                                                                                                                                                                                                                                                        |
| `fill-gap`                  | Find the answer in code/docs; write the shard; note the query for `bench-grow`.                                                                                                                                                                                                                                                                                                                                                                             |
| `distill-project`           | Safety net, planned only when the done project's `shards:` is empty or has an unresolved entry (`evidence.unresolved_shards`): the closing session should have distilled (strata-project §Close). Check the chronicle for durable lessons not yet in a shard listed in `project.md` `shards:`; file any (with `kind: session` sources), then archive the project. Never close a project yourself. A done project with nothing distilled is a lapse finding. |
| `promote`                   | `evidence.to`: `gotcha` (correction ≥ 2), `gate` (ratchet rule below), `script` (via scriptsmith), `playbook` (`strata new playbook <name>` linking the shards). Link both ways (`scripts:`/`gates:` ↔ `shards:`).                                                                                                                                                                                                                                          |
| `scriptify`                 | Write the script for the repeated command (scriptsmith protocol).                                                                                                                                                                                                                                                                                                                                                                                           |
| `fix-broken-link`           | Point the link at the right id or remove it.                                                                                                                                                                                                                                                                                                                                                                                                                |
| `resolve-conflict`          | Confirm from code/sources; correct the weaker claim; equal trust → question. Not a contradiction → add each id to the other's `compatible_with` (so it stays resolved).                                                                                                                                                                                                                                                                                     |
| `apply-answer`              | Apply the human's answer (under `## Answer`) to the shards it concerns.                                                                                                                                                                                                                                                                                                                                                                                     |
| `stale-project`             | Always a question: pause, close or continue?                                                                                                                                                                                                                                                                                                                                                                                                                |
| `deprecated-script-removal` | Delete the script dir; repoint references to `replaced_by`; `strata scripts catalog`.                                                                                                                                                                                                                                                                                                                                                                       |
| `bench-grow`                | Add the query with its relevant ids to `.strata/bench/retrieval.yaml`.                                                                                                                                                                                                                                                                                                                                                                                      |

## Autonomy

**Act:** filing, merging non-user-stated duplicates, splits, orphans, links, derived files;
re-verifying and correcting `observed`/`inferred` shards from evidence; archiving cold,
expired and long-superseded shards (user-stated ones too: archiving is reversible; D-037); distilling projects; **new** scripts (gates green, tests included) and additive
changes to `owner: gardener` scripts; gates under the ratchet rule; advisory → blocking
when the codebase is clean; growing the bench; removing zero-use deprecated scripts.

**Ratchet rule:** a new gate is `blocking` only if the codebase has zero findings or every
finding is auto-fixed in this PR; otherwise `blocking = false` or a baseline.

**Ask (do not act):** anything that would overwrite, contradict or delete a `user-stated`
shard; equal-trust conflicts; deleting anything but exact duplicates / zero-use deprecated
scripts; `user`-owned scripts, interfaces, output contracts, side-effect classes;
`network`/`destructive` script behavior; `_private/`; closing or pausing a project; a
blocking gate whose findings can't be fixed mechanically; low confidence.
Tasks with `escalate: true` are always questions.

```
strata questions ask "merge a + b? both user-stated and they disagree on X" --blocking a,b
```

## Commits

One per category, conventional, body = task ids + evidence, repo attribution trailers:
`garden(knowledge): file 7 inbox items`, `garden(scripts): add find-leaked-fixtures`,
`garden(gates): add semgrep fixture-teardown rule (advisory)`, `garden(bench): +3 queries`.

## Verify before finishing

`strata check --all` green; `strata bench retrieval`: MRR drop ≤ `[garden] bench_tolerance`
(0.02), recall@5 not lower. Failure → fix, or `git revert` the offending commit and record
why under Skipped / deferred.

## Digest (PR body)

The engine renders the PR body from your `strata garden task … --note` lines, grouped by
outcome (questions, retired, done, skipped), plus `.strata/garden-summary.md` if you write
one, and always appends a **Write-time lapses: N (target 0)** section (lapse tasks by type,
legacy and deferred noted, and the sessions whose stop hook gave up, from
`.strata/garden/lapses.jsonl`). Your **Lapse findings** in the summary explain the non-zero part. Without an `origin` remote, `finish` keeps the branch for review, or
fast-forwards the default branch when `[garden] local_merge = "ff"` (D-039). In an interactive `/garden`
your final report becomes the body instead. Either way it follows this shape:

```markdown
## Garden 2026-11-08 06:00

**Needs you:** 1 question → knowledge/_questions/q-20261108-fixture-scope.md

| Area        | Changes                                                                            |
| ----------- | ---------------------------------------------------------------------------------- |
| Knowledge   | filed 7 inbox items (3 new shards, 4 merged), merged 2 duplicates, archived 4 cold |
| Corrections | 2 shards corrected from evidence                                                   |
| Scripts     | + find-leaked-fixtures (read-only, Go)                                             |
| Gates       | + semgrep:fixture-teardown (advisory; 3 existing findings)                         |
| Bench       | MRR 0.84 → 0.86 · recall@5 0.95 → 0.96 · +3 queries                                |

### Learned this cycle

- [[pytest-fixture-teardown]] — Session-scoped DB fixtures leak connections unless torn down.

### Skipped / deferred

- merge `a` + `b`: both user-stated → question raised.
```

## Scheduling

Strata installs no schedules. When asked, create a scheduled task (cloud routine or local
cron/loop) whose prompt is `/garden`. `strata garden --auto` (mechanical fixes only)
already runs at SessionStart.

With `[garden] auto_launch = "on"` (opt-in, D-031) the SessionStart hook also launches a
detached headless run (`strata garden launch`) when garden debt is due, and resumes a lost
run. `strata garden status` shows the lease, progress and history; `strata garden resume
--force` or `strata garden abort` settle a run marked stuck.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.