lean-agent-harness 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/GLOSSARY.md +2 -0
- package/README.md +3 -1
- package/package.json +1 -1
- package/skills/plan-flow/SKILL.md +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to this project are documented here. Format based on [Keep a
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [3.1.0] - 2026-11-08
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- `plan-flow` now records a clean test **Baseline** before the first RED and lists up to five **Edge cases** per slice, each pinned by a test in RED. Running the test command once keeps the skill read-only.
|
|
12
|
+
|
|
7
13
|
## [3.0.0] - 2026-11-08
|
|
8
14
|
|
|
9
15
|
### Added
|
package/GLOSSARY.md
CHANGED
|
@@ -25,6 +25,8 @@ Single source of truth for the domain vocabulary of this project. Both human eng
|
|
|
25
25
|
| **Inline Task** | Work small enough to skip planning ceremony (≤ 1 file, < 30 lines, cosmetic). | `AGENTS.md` § 2 | Auditable through `git diff` alone. |
|
|
26
26
|
| **Risk Tier** | `low` or `high` tag on each planned slice. `high` = a high-risk item named in `AGENTS.md` § 2 (auth/authz, data migration or deletion, secrets/config, public interface, concurrency). | `Risk:` field in `plan-flow` output | High-risk slices get a fresh-context verifier (`orchestrate`) and review (`review-audit`); low-risk slices keep the single DoD gate. |
|
|
27
27
|
| **Change Budget** | Limit of 400 changed lines per work unit. | `orchestrate` § Change budget (enforced by `commit`) | Rule text lives only in `orchestrate`. |
|
|
28
|
+
| **Baseline** | The summary line of the test run on the clean tree, recorded before the first RED so later RED and GREEN counts read unambiguously. | `Baseline` field of the `plan-flow` output | Recorded once by running the verify command; running tests never edits source or git. |
|
|
29
|
+
| **Edge Cases** | The inputs or states of a slice that the requirement implies and no RED covers, each with its expected result. | `Edge cases` field of a slice in the `plan-flow` output | At most five per slice; each has its own test in RED. |
|
|
28
30
|
| **Blocker** | A review finding (Blocker or Critical) that blocks `commit` until fixed. | `review-audit` verdict | WARNING and SUGGESTION never block and never trigger fixes. |
|
|
29
31
|
| **Profile** | Installation subset: `full` (default) deploys every skill; `core` omits the skills listed in `profile-extras.txt`. | `--profile core|full` | Only the `skills` directory is filtered; rules and workflow skills always install; both installers must produce identical trees. |
|
|
30
32
|
| **Retired Skill** | A skill or command removed from the package. After copying a directory, both installers delete its deployed copy. | `retired.tsv` (path + marker line) | Deleted only if the copy carries the marker line it shipped with and the package no longer ships the path; a user's own skill with the same name is kept. |
|
package/README.md
CHANGED
|
@@ -19,6 +19,8 @@ plan-flow <task> → orchestrate → review-audit [low|medium|high] [target] →
|
|
|
19
19
|
|
|
20
20
|
How you invoke a workflow skill depends on the tool: `/plan-flow` in Claude Code, Cursor and OpenCode (through a command stub in `adapters/`), `/skill:plan-flow` in Pi, `$plan-flow` in Codex.
|
|
21
21
|
|
|
22
|
+
**`review-audit` levels.** The first argument sets how much the review reports; it is not a quality score and no metric is computed. `low` reports only Blocker and Critical findings the reviewer is certain of; `medium` (the default) adds WARNING findings verified in the code; `high` adds SUGGESTION and uncertain findings, marked PLAUSIBLE. A Blocker or Critical finding blocks `commit`; WARNING and SUGGESTION are listed once and never trigger fixes. Separately, a slice tagged `Risk: high` in the plan makes the review run in a fresh context (a subagent or a new session). Example: `/review-audit low`.
|
|
23
|
+
|
|
22
24
|
## Where files go
|
|
23
25
|
|
|
24
26
|
| Scope | Files |
|
|
@@ -49,7 +51,7 @@ curl -fsSL https://raw.githubusercontent.com/lnardev/lean-agent-harness/main/ins
|
|
|
49
51
|
**Pinning and verifying the `curl` install.** The one-liner runs the `main` branch unless you pin it:
|
|
50
52
|
|
|
51
53
|
```bash
|
|
52
|
-
curl -fsSL https://raw.githubusercontent.com/lnardev/lean-agent-harness/main/install.sh | LAH_VERSION=3.
|
|
54
|
+
curl -fsSL https://raw.githubusercontent.com/lnardev/lean-agent-harness/main/install.sh | LAH_VERSION=3.1.0 LAH_SHA256=<sha256-of-the-archive> bash -s -- --global --auto
|
|
53
55
|
```
|
|
54
56
|
|
|
55
57
|
`LAH_VERSION` downloads that release tag. `LAH_SHA256` makes the installer abort, before deploying anything, if the archive does not match. Without it the installer says that the checksum is not verified. GitHub does not publish archive checksums, so compute the value once from a copy you trust, for example `shasum -a 256` on the archive of that tag. GitHub's generated archives are not guaranteed to stay byte-identical over time, so if a previously valid checksum stops matching, recompute it from a trusted copy before assuming tampering.
|
package/package.json
CHANGED
|
@@ -13,9 +13,9 @@ Task: the arguments given with this invocation. Read-only architect: inspect, de
|
|
|
13
13
|
1. **Active plan gate:** if `.tasks/current.md` exists and still has a `- [ ]` item, STOP and ask exactly ONE question: replace or continue it? Default: continue (tell the user to run `orchestrate`). Replace only on an explicit answer.
|
|
14
14
|
2. **Scope gate:** if the task is broad or ambiguous, STOP and ask exactly ONE question on the main decision, with a recommended default answerable in one word. No questionnaires.
|
|
15
15
|
3. **Size gate:** ≤ 1 file, cosmetic or < 30 lines → declare an **Inline Task** with a one-step guideline; skip slicing.
|
|
16
|
-
4. **Ground truth:** read `GLOSSARY.md` (if present) and the active manifest (`package.json`, `go.mod`, `Cargo.toml`, `pyproject.toml`, `Makefile`) for real test/lint commands. Verify paths, exports and signatures before citing them.
|
|
16
|
+
4. **Ground truth:** read `GLOSSARY.md` (if present) and the active manifest (`package.json`, `go.mod`, `Cargo.toml`, `pyproject.toml`, `Makefile`) for real test/lint commands. Verify paths, exports and signatures before citing them. Run the verify command once on the clean tree and record its summary line as the **Baseline** (running tests never edits source or git).
|
|
17
17
|
5. **Design:** deep modules, minimal public interfaces, no shallow pass-through layers.
|
|
18
|
-
6. **Slice:** feature-complete units (e.g. migration + model + service + tests). Each defines its RED state (failing test) first and names the skills it needs (`testing`, `security-audit`, `diagnosing-bugs`; `db-migration`, `impeccable` if installed).
|
|
18
|
+
6. **Slice:** feature-complete units (e.g. migration + model + service + tests). Each defines its RED state (failing test) first and names the skills it needs (`testing`, `security-audit`, `diagnosing-bugs`; `db-migration`, `impeccable` if installed). List at most five edge cases the requirement implies and no RED covers (inputs, states, environments); each gets its own test in RED.
|
|
19
19
|
7. **Persist** the plan to `.tasks/current.md`, then tell the user to run `orchestrate`.
|
|
20
20
|
|
|
21
21
|
## Output format
|
|
@@ -23,12 +23,14 @@ Task: the arguments given with this invocation. Read-only architect: inspect, de
|
|
|
23
23
|
### Architecture & Context
|
|
24
24
|
* **Affected:** files/modules/interfaces
|
|
25
25
|
* **Verify with:** exact commands from the manifest
|
|
26
|
+
* **Baseline:** summary line of the test run on the clean tree
|
|
26
27
|
* **Branch:** `feature/<task-slug>` (create before orchestrating; never `main`/`master`)
|
|
27
28
|
* **Skills:** per slice
|
|
28
29
|
|
|
29
30
|
### Slice N: name
|
|
30
31
|
* **Scope:** files
|
|
31
32
|
* **Risk:** low|high (high = a high-risk item from `AGENTS.md` § 2)
|
|
33
|
+
* **Edge cases (≤ 5):** inputs or states the requirement implies and no RED covers, with the expected result; each has a test in RED
|
|
32
34
|
* **RED:** test file + expected failure
|
|
33
35
|
* **GREEN:** logic, types, integration
|
|
34
36
|
* **DoD:** exact terminal command
|