@codyswann/lisa 5.1.0 → 5.1.2
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/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +26 -12
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +4 -4
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-codify-verification/SKILL.md +4 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-task-decomposition/SKILL.md +18 -0
- package/plugins/lisa/agents/test-specialist.md +1 -1
- package/plugins/lisa/agents/verification-specialist.md +1 -1
- package/plugins/lisa/rules/eager/falsifiable-checks.md +1 -1
- package/plugins/lisa/rules/reference/falsifiable-checks.md +30 -6
- package/plugins/lisa/rules/reference/stale-state-claims.md +1 -0
- package/plugins/lisa/rules/reference/verification.md +1 -1
- package/plugins/lisa/rules/reference/work-item-definition-of-ready.md +2 -0
- package/plugins/lisa/skills/lisa-codify-verification/SKILL.md +4 -2
- package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-task-decomposition/SKILL.md +18 -0
- package/plugins/lisa-agy/agents/test-specialist.md +1 -1
- package/plugins/lisa-agy/agents/verification-specialist.md +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-codify-verification/SKILL.md +4 -2
- package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-task-decomposition/SKILL.md +18 -0
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/agents/test-specialist.agent.md +1 -1
- package/plugins/lisa-copilot/agents/verification-specialist.agent.md +1 -1
- package/plugins/lisa-copilot/rules/eager/falsifiable-checks.md +1 -1
- package/plugins/lisa-copilot/rules/reference/falsifiable-checks.md +30 -6
- package/plugins/lisa-copilot/rules/reference/stale-state-claims.md +1 -0
- package/plugins/lisa-copilot/rules/reference/verification.md +1 -1
- package/plugins/lisa-copilot/rules/reference/work-item-definition-of-ready.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-codify-verification/SKILL.md +4 -2
- package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-task-decomposition/SKILL.md +18 -0
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/agents/test-specialist.md +1 -1
- package/plugins/lisa-cursor/agents/verification-specialist.md +1 -1
- package/plugins/lisa-cursor/rules/falsifiable-checks-reference.mdc +30 -6
- package/plugins/lisa-cursor/rules/falsifiable-checks.mdc +1 -1
- package/plugins/lisa-cursor/rules/stale-state-claims-reference.mdc +1 -0
- package/plugins/lisa-cursor/rules/verification-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/work-item-definition-of-ready-reference.mdc +2 -0
- package/plugins/lisa-cursor/skills/lisa-codify-verification/SKILL.md +4 -2
- package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-task-decomposition/SKILL.md +18 -0
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/agents/test-specialist.md +1 -1
- package/plugins/lisa-devin/agents/verification-specialist.md +1 -1
- package/plugins/lisa-devin/rules/eager/falsifiable-checks.md +1 -1
- package/plugins/lisa-devin/rules/reference/falsifiable-checks.md +30 -6
- package/plugins/lisa-devin/rules/reference/stale-state-claims.md +1 -0
- package/plugins/lisa-devin/rules/reference/verification.md +1 -1
- package/plugins/lisa-devin/rules/reference/work-item-definition-of-ready.md +2 -0
- package/plugins/lisa-devin/skills/lisa-codify-verification/SKILL.md +4 -2
- package/plugins/lisa-devin/skills/lisa-github-validate-issue/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-linear-validate-issue/SKILL.md +2 -0
- package/plugins/lisa-devin/skills/lisa-task-decomposition/SKILL.md +18 -0
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/agents/test-specialist.md +1 -1
- package/plugins/src/base/agents/verification-specialist.md +1 -1
- package/plugins/src/base/rules/eager/falsifiable-checks.md +1 -1
- package/plugins/src/base/rules/reference/falsifiable-checks.md +30 -6
- package/plugins/src/base/rules/reference/stale-state-claims.md +1 -0
- package/plugins/src/base/rules/reference/verification.md +1 -1
- package/plugins/src/base/rules/reference/work-item-definition-of-ready.md +2 -0
- package/plugins/src/base/skills/lisa-codify-verification/SKILL.md +4 -2
- package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-task-decomposition/SKILL.md +18 -0
|
@@ -157,19 +157,43 @@ A clean result is a statement about what the check can perceive, not about the c
|
|
|
157
157
|
## How to apply
|
|
158
158
|
|
|
159
159
|
1. Author the check.
|
|
160
|
-
2.
|
|
160
|
+
2. On a scratch copy, never in a worktree another agent is editing, deliberately break the guarded property — specifically, introduce **the exact regression the guard exists to prevent**, not a nearby or convenient break.
|
|
161
161
|
3. Confirm the check **fails and names the right file/line**, then read the failure count and the failing test *names* per the yardstick below.
|
|
162
|
-
4. Restore
|
|
162
|
+
4. Restore by discarding the scratch copy. The green baseline you took in the copy before the break is the green-again evidence; the shared tree was never changed, so there is nothing to restore there.
|
|
163
163
|
5. Report the falsification alongside the result.
|
|
164
164
|
|
|
165
|
+
### Break on a scratch copy, never in a shared worktree
|
|
166
|
+
|
|
167
|
+
A worktree has one working tree. When a builder or another agent is editing it, an in-place mutation is a write into their files: the break and its revert race their concurrent edits, and a revert that lands after their next save can clobber their work or sweep it into a commit. Restore must not depend on the shared tree's state.
|
|
168
|
+
|
|
169
|
+
So every falsification break (steps 2 to 4 above, and the mutation proof below) runs on a scratch copy, made from the repository root:
|
|
170
|
+
|
|
171
|
+
```sh
|
|
172
|
+
tmp=$(mktemp -d)
|
|
173
|
+
git worktree add --detach "$tmp" HEAD
|
|
174
|
+
git diff --binary HEAD | git -C "$tmp" apply --allow-empty # tracked changes, binaries included
|
|
175
|
+
git ls-files --others --exclude-standard -z |
|
|
176
|
+
rsync -a --from0 --files-from=- ./ "$tmp"/ # untracked new files
|
|
177
|
+
ln -s "$PWD/node_modules" "$tmp/node_modules" # dependencies (or run the project's install in "$tmp")
|
|
178
|
+
# 1. baseline: run the check in "$tmp" BEFORE breaking anything; it must be green
|
|
179
|
+
# 2. break the property in "$tmp", run the check there, read the failure
|
|
180
|
+
git worktree remove --force "$tmp" # discarding the copy is the restore
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
The copy must be complete before the break means anything. `git diff` carries only tracked changes, so new files need the explicit untracked copy, and a fresh worktree has no installed dependencies, so link them (never install into the linked directory from the copy) or install them there. **In a workspace monorepo, install in the copy instead of linking:** a linked `node_modules` resolves each workspace package back to the original checkout, so a break reached through a workspace package name never runs, the check stays green, and the guard is wrongly reported inert. Then take the **baseline**: run the check in the copy before breaking anything and confirm it is green. A red baseline means the copy is incomplete (a missing new file, missing dependencies), not that the guard bites; fix the copy first. That green baseline is also the green-again evidence for the restore, because discarding the copy is the restore and the shared tree was never touched.
|
|
184
|
+
|
|
185
|
+
Make the scratch copy with a plain `git worktree add --detach` at a temp path and address it by absolute path. Never use a harness tool that switches the session's working directory into it (for example Claude Code's `EnterWorktree`): that moves every agent sharing the session out of the tree it is working in.
|
|
186
|
+
|
|
187
|
+
A temp copy of only the touched files is acceptable when the check can run against them in isolation; it needs the same baseline. Either way, the shared tree is never written to.
|
|
188
|
+
|
|
165
189
|
### The failure count is part of the evidence
|
|
166
190
|
|
|
167
191
|
Step 3's cardinality is not pedantry; each deviation names a distinct defect. Run it as four steps, in this order:
|
|
168
192
|
|
|
169
|
-
1. **Neuter the protection in production code** — delete the branch, drop the token from the enum, remove the check. Editing a *test* proves nothing about the guard; it only proves the test file is loaded.
|
|
193
|
+
1. **Neuter the protection in production code, on a scratch copy** (never in a worktree another agent is editing; see above) — delete the branch, drop the token from the enum, remove the check. Editing a *test* proves nothing about the guard; it only proves the test file is loaded.
|
|
170
194
|
2. **Run the whole suite.** Never a single test file, and never a path filter.
|
|
171
195
|
3. **Count the failures and read their names.** The count alone is ambiguous; the names are what separate "several failures of one regression" from "several unrelated failures."
|
|
172
|
-
4. **
|
|
196
|
+
4. **Restore by discarding the scratch copy.** The green baseline taken in the copy before the break is the green-again evidence.
|
|
173
197
|
|
|
174
198
|
Then read the result:
|
|
175
199
|
|
|
@@ -280,10 +304,10 @@ A check that cannot fail is not evidence.
|
|
|
280
304
|
|
|
281
305
|
A passing test, a clean lint run, a zero-hit sweep, a green ratchet: each is evidence **only if that check is known to be capable of failing.** Otherwise it is a checkbox, and a green suite that protects nothing is worse than none — it suppresses the search for the defect.
|
|
282
306
|
|
|
283
|
-
**Before reporting any clean, zero, or passing result from a check you authored or modified, prove it fails on known-bad input.** Break the thing being guarded, confirm the check fails *and names the right location*, then
|
|
307
|
+
**Before reporting any clean, zero, or passing result from a check you authored or modified, prove it fails on known-bad input.** Break the thing being guarded on a scratch copy, never in a worktree another agent is editing, confirm the check fails *and names the right location*, then discard the copy. That falsification is part of the deliverable, not an optional extra.
|
|
284
308
|
|
|
285
309
|
- **Falsify before reporting.** No clean result is reportable until the check has been shown to fail on a deliberate break. **"Mentally reverting" does not count** — reasoning that the assertion *would* fail is precisely the step that lets a non-functional guard ship, because the author already believes it is load-bearing. Run the break.
|
|
286
|
-
- **Mutation-prove the guard, then read the cardinality.** Neuter the protection **in production code**, run the **whole suite
|
|
310
|
+
- **Mutation-prove the guard, then read the cardinality.** Neuter the protection **in production code**, on a scratch copy, run the **whole suite** there, count the failures and **read their names**, then discard the copy. **Zero** ⇒ the guard is inert (one pinning a single field shipped with all 50 tests green while the regression walked through). **Many, unrelated** ⇒ over-broad; its next failure will not name the cause. **Exactly one, or several all named for the same regression** ⇒ load-bearing and correctly scoped. A **zero is robust to contention** — load only ever adds failures — so only the non-zero counts need a quiet machine.
|
|
287
311
|
- **The automated mutation gate is language-scoped; the manual probe above is not.** Stryker instruments the JavaScript and TypeScript family plus Vue, HTML and Svelte — there is **no shell parser**, so a guard whose logic lives in `.sh` yields no mutants under **any** `mutate` list. Adding one aborts the whole run (`No parser registered for .sh!` — measured, not inferred), taking every other guard's score with it. A mutation gate grey or green on a shell-guard change **measured nothing about that guard**; reading it as coverage is the fifth failure mode above wearing a config file. Shell guards are covered by **driving tests only**: execute the script against a payload table and assert the blocked/allowed verdict, with a control on **both** sides — a refusal case *and* an allowed case. A shell guard nothing executes has no bite evidence at all, whatever the gate printed.
|
|
288
312
|
- **Never scope the probe by filename, and never infer absent coverage from a grep.** Suites split at the line cap, so a protection's tests often sit in a sibling file: a filename-scoped probe reported cardinality 0 on a live security fix that a whole-suite run showed failing 4 tests, every one named for it.
|
|
289
313
|
- **Assert that no copy is wrong, not that some copy is right.** An existential assertion over duplicated content is satisfied by the correct copy and cannot see the broken one — rewriting one suite's assertions to universal negatives took the same mutation from **0 to 18** failures. Enumerate the property (*every* marker uses an em-dash), never the one known-bad spelling.
|
|
@@ -85,6 +85,7 @@ And when you are the one clearing a condition: sweep for the notes that describe
|
|
|
85
85
|
- **`empirical-inquiry`** — supplies the discipline this rule depends on: settle the fact with the cheapest probe rather than reasoning from what is written down. A stale note is exactly the "confident-sounding answer from a prior assumption" that rule forbids.
|
|
86
86
|
- **`verification`** — a status derived from a comment is not runtime evidence. Reporting "still blocked" on the strength of a note is the same error as reporting "works" on the strength of the code looking correct.
|
|
87
87
|
- **`tracked-work`** — the destination for any prediction that survives its item's closure: one live leaf, explicit blocking link, carried on the branch and PR.
|
|
88
|
+
- **`work-item-definition-of-ready`** (S13, shipped-prerequisite check) — the opposite direction: a premature *done* claim ("already shipped") that the default branch does not back. Verify it on `origin/<default>` and link the owning item as `is blocked by`.
|
|
88
89
|
- **`claim-archaeology`** — the recovery path once mode 3 has already happened. Lifecycles are one-way, so a warning lost to closure resurfaces only as a fresh item whose ancestry has to be reconstructed. Archaeology is the cleanup; this rule is the prevention.
|
|
89
90
|
|
|
90
91
|
## Summary of obligations (formerly the always-loaded head)
|
|
@@ -22,7 +22,7 @@ Never assume something works because the code "looks correct." Run a command, ob
|
|
|
22
22
|
|
|
23
23
|
**If all you did was run tests, typecheck, and lint — you have NOT verified.** You have only confirmed quality checks pass. Verification requires running the actual system and observing the results: making HTTP requests, clicking through the UI, executing CLI commands, querying the database, or otherwise interacting with the running software as an end user would.
|
|
24
24
|
|
|
25
|
-
**A check that cannot fail is not evidence either.** Every gate, probe, sweep, and codified spec you author is subject to the `falsifiable-checks` rule: break the guarded property, see the check fail at the right location, restore, and report that falsification.
|
|
25
|
+
**A check that cannot fail is not evidence either.** Every gate, probe, sweep, and codified spec you author is subject to the `falsifiable-checks` rule: break the guarded property on a scratch copy, never in a worktree another agent is editing, see the check fail at the right location, restore, and report that falsification.
|
|
26
26
|
|
|
27
27
|
### Browser-controller neutrality
|
|
28
28
|
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
Three-audience description · Gherkin acceptance criteria (except Spike) · Out of Scope · single-repo scope · relationship search · typed evidence manifest on runtime changes · Source Requirement traceability when PRD-sourced · provable read access to every named external surface · declared reachability for any **existing** test the item pins as a red-before-green control (`control-reachability`, gate S20 — `N/A` when the item introduces a new test instead).
|
|
14
14
|
|
|
15
|
+
**Shipped-prerequisite check (S13).** Relationship search includes verifying every prerequisite a leaf calls already shipped (a symbol, file, migration…; for a route, its handler symbol or file) on `origin/<default>` — ticket text written ahead of delivery is a claim, not a fact. An absent prerequisite needs an `is blocked by` link to the item that owns delivering it before the leaf is ready; the commands live in `lisa-task-decomposition` step 4. It mirrors `stale-state-claims`: a premature *done* claim instead of a stale *not-yet* one.
|
|
16
|
+
|
|
15
17
|
## Per-type additions
|
|
16
18
|
|
|
17
19
|
| Type | Must additionally carry | Terminal state is |
|
|
@@ -149,10 +149,12 @@ Confirm:
|
|
|
149
149
|
|
|
150
150
|
Do it one of these ways, in order of preference:
|
|
151
151
|
|
|
152
|
-
- **Run against the pre-fix commit** (bug fixes):
|
|
153
|
-
- **Break the property
|
|
152
|
+
- **Run against the pre-fix commit** (bug fixes): add a throwaway detached worktree at the failing commit (`git worktree add --detach <tmp> <pre-fix-sha>`). Copy the new test, plus every new helper or fixture it imports, to the same paths there (`mkdir -p` the parent directories first), and give the copy its dependencies (symlink `node_modules` from your tree, or run the project's install there). Run the test and confirm it fails **at the assertion**, not on an import or a missing module, then `git worktree remove --force <tmp>`. Your own branch is never checked out away from.
|
|
153
|
+
- **Break the property on a scratch copy**: add a throwaway detached worktree (`git worktree add --detach <tmp> HEAD`), apply the uncommitted diff (`git diff --binary HEAD | git -C <tmp> apply --allow-empty`), copy in untracked new files, and give it its dependencies as above. Run the test there **before** breaking anything and confirm it is green: a red baseline means the copy is incomplete, not that the test bites. Then delete the field, revert the line, or flip the condition; run; remove the worktree. Prefer this when there is no single pre-fix commit. The full recipe is in `falsifiable-checks`.
|
|
154
154
|
- **Unit-test the checker against synthetic bad input**: required when the input is generated, schema-validated, or cached — a revert can silently fail to change what the test reads (a generator that errors leaves the previous artifact in place, and the test then "passes" on stale input).
|
|
155
155
|
|
|
156
|
+
Every break runs on a scratch copy, never in a worktree another agent is editing. A worktree has one working tree, so an in-place mutation writes into a concurrent builder's files, and a restore that lands after their next save can delete or commit their work. Restore must never depend on the shared tree's state; discarding the scratch worktree is the restore.
|
|
157
|
+
|
|
156
158
|
Two properties the failure itself must have:
|
|
157
159
|
|
|
158
160
|
- It must **name the right location**. A failure that does not localize is weak evidence the test is measuring the intended thing.
|
|
@@ -258,6 +258,8 @@ The issue must EITHER have at least one entry in `links`, OR the body must conta
|
|
|
258
258
|
|
|
259
259
|
An issue with zero links and no documented search: FAIL.
|
|
260
260
|
|
|
261
|
+
**Shipped-prerequisite check.** For every prerequisite the body calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link (a `links` entry, or a `Blocked by #<n>` body line) to the issue that owns delivering it: FAIL. Remediation: add `Blocked by #<n>` for the owning issue, or file one build-ready and link it, or correct the body so it no longer claims the prerequisite shipped.
|
|
262
|
+
|
|
261
263
|
#### S14 — Evidence manifest binding (leaf work units)
|
|
262
264
|
|
|
263
265
|
When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the issue may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
|
|
@@ -261,6 +261,8 @@ The ticket must EITHER have at least one issue link in `links`, OR the descripti
|
|
|
261
261
|
|
|
262
262
|
A ticket with zero links and no documented search: FAIL.
|
|
263
263
|
|
|
264
|
+
**Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `is blocked by` link to the ticket that owns delivering it: FAIL. Remediation: link the owning ticket as `is blocked by`, or file one build-ready and link it, or correct the description so it no longer claims the prerequisite shipped.
|
|
265
|
+
|
|
264
266
|
#### S14 — Evidence manifest binding (leaf work units)
|
|
265
267
|
|
|
266
268
|
When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `h2. Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the ticket may be marked complete (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
|
|
@@ -247,6 +247,8 @@ The item must EITHER have at least one entry in `relations`, OR the description
|
|
|
247
247
|
|
|
248
248
|
An item with zero relations and no documented search: FAIL.
|
|
249
249
|
|
|
250
|
+
**Shipped-prerequisite check.** For every prerequisite the description calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, its handler symbol or file), verify it is present on `origin/<default>` by running the command block in `lisa-task-decomposition` step 4. Exit 0 means present and 1 means absent; anything else means the check failed — S13 cannot pass, so report FAIL naming the error (fix the default-branch lookup or access and re-run), never read it as absent. An absent prerequisite with no `blocked by` relation to the issue that owns delivering it: FAIL. Remediation: add a `blocked by` relation to the owning issue, or file one build-ready and relate it, or correct the description so it no longer claims the prerequisite shipped.
|
|
251
|
+
|
|
250
252
|
#### S14 — Evidence manifest binding (leaf work units)
|
|
251
253
|
|
|
252
254
|
When `issue_type ∈ {Bug, Task, Sub-task, Improvement}` AND `runtime_behavior_change = true`, the `## Validation Journey` must declare at least one **typed** `[EVIDENCE: <artifact-type>: <name>]` marker. These markers are the work unit's **evidence manifest** — the exact, enumerated set of artifacts that must be captured and attached before the item may be closed (see the "Per-Work-Unit Evidence Contract" section of the `verification` rule, the Definition of Done in `verification-lifecycle`, and the evidence-manifest gate in `tracker-evidence`).
|
|
@@ -97,6 +97,24 @@ Each task must have a verification method. Choose the most appropriate:
|
|
|
97
97
|
- Order tasks so that each builds on a stable foundation
|
|
98
98
|
- Prefer independent tasks that can run in parallel where possible
|
|
99
99
|
- Flag external dependencies (other teams, services, permissions, data) that may block progress
|
|
100
|
+
- Run the **shipped-prerequisite check** on every leaf. Ticket text is often written ahead of delivery, so a prerequisite it calls already shipped, existing, or delivered (a symbol, resolver, mutation, file, migration…; for a route, check its handler symbol or file) is a claim, not a fact (`empirical-inquiry`). Verify each one on the remote default branch, never the working tree. Run the whole block as one script (`bash -c`) with exactly one of `SYMBOL` or `FILE` set:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
# shipped-prerequisite check: exit 0 = present, 1 = absent, anything else = the check failed
|
|
104
|
+
default=$(git symbolic-ref --short -q refs/remotes/origin/HEAD | sed 's|^origin/||')
|
|
105
|
+
default=${default:-$(gh repo view --json defaultBranchRef --jq .defaultBranchRef.name)}
|
|
106
|
+
git fetch --quiet origin "+refs/heads/$default:refs/remotes/origin/$default" || exit 2
|
|
107
|
+
git rev-parse --verify -q "origin/$default" >/dev/null || exit 2
|
|
108
|
+
if [ -n "${SYMBOL-}" ]; then
|
|
109
|
+
git grep -F -n -w "$SYMBOL" "origin/$default" -- ':/' ':(top,exclude,glob)**/docs/**' ':(top,exclude,glob)**/wiki/**' ':(top,exclude,glob)**/plans/**' ':(top,exclude,glob)**/tests/**' ':(top,exclude,glob)**/__tests__/**' ':(top,exclude,glob)**/*.test.*' ':(top,exclude,glob)**/*.spec.*' ':(top,exclude,glob)**/*.md'
|
|
110
|
+
elif [ -n "${FILE-}" ]; then
|
|
111
|
+
git cat-file -e "origin/$default:$FILE" 2>/dev/null || exit 1
|
|
112
|
+
else
|
|
113
|
+
exit 2
|
|
114
|
+
fi
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Exit 0 means present and 1 means absent; anything else means the check failed (neither variable set, default branch unresolved, fetch refused, bad ref) — stop and report it, never read it as absent. The search is repository-wide whatever the working directory (`':/'`). `FILE` passes for a file or directory at that path. `-F` matches the name literally, so a dotted name such as `Query.createUser` cannot match `QueryXcreateUser`. A hit only in documentation or tests is not shipped: the pathspec excludes, at any depth, `docs/`, `wiki/`, `plans/`, `tests/`, and `__tests__/` directories, `*.test.*` and `*.spec.*` files, and every Markdown file. Exit 0 still only proves the name appears somewhere else: one hit inside a comment, a TODO, a fixture, or a stub is not proof it shipped, so read the `-n` output lines before treating it as present, and drop an exclude when this repository ships source under one of those paths. For each absent prerequisite, find the item that owns delivering it and link this leaf `is blocked by` that item before the leaf is marked ready. If no item owns it, file one (build-ready) and link it; otherwise the leaf fails the ready gate (S13). This is the mirror of `stale-state-claims`: that rule distrusts a stale *not-yet* note, this check distrusts a premature *done* one.
|
|
100
118
|
|
|
101
119
|
### 4.5. Classify Any New Material Dependency
|
|
102
120
|
|