@codyswann/lisa 4.107.11 → 4.107.13
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/all/copy-overwrite/scripts/lib/completion-proof-shape.mjs +52 -14
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
- package/dist/core/learnings-retire.d.ts +59 -0
- package/dist/core/learnings-retire.d.ts.map +1 -0
- package/dist/core/learnings-retire.js +131 -0
- package/dist/core/learnings-retire.js.map +1 -0
- package/dist/core/learnings.d.ts +1 -0
- package/dist/core/learnings.d.ts.map +1 -1
- package/dist/core/learnings.js +1 -0
- package/dist/core/learnings.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +12 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- 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 +21 -8
- 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-github-validate-issue/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-learnings-audit/SKILL.md +30 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/SKILL.md +1 -1
- package/plugins/lisa/rules/reference/project-learnings.md +21 -0
- package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-learnings-audit/SKILL.md +30 -1
- package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-tracker-evidence/SKILL.md +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-learnings-audit/SKILL.md +30 -1
- package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-tracker-evidence/SKILL.md +1 -1
- 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/rules/reference/project-learnings.md +21 -0
- package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-learnings-audit/SKILL.md +30 -1
- package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-tracker-evidence/SKILL.md +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/rules/project-learnings-reference.mdc +21 -0
- package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-learnings-audit/SKILL.md +30 -1
- package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-tracker-evidence/SKILL.md +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/rules/reference/project-learnings.md +21 -0
- package/plugins/lisa-devin/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-learnings-audit/SKILL.md +30 -1
- package/plugins/lisa-devin/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-tracker-evidence/SKILL.md +1 -1
- 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-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-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/rules/reference/project-learnings.md +21 -0
- package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-learnings-audit/SKILL.md +30 -1
- package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-tracker-evidence/SKILL.md +1 -1
package/package.json
CHANGED
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"qs": "^6.16.0"
|
|
189
189
|
},
|
|
190
190
|
"name": "@codyswann/lisa",
|
|
191
|
-
"version": "4.107.
|
|
191
|
+
"version": "4.107.13",
|
|
192
192
|
"description": "Governance-as-code for AI coding agents: turns a repository into agent-operated software factories with guardrails, guidance and automated enforcement for Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot and Devin",
|
|
193
193
|
"main": "dist/index.js",
|
|
194
194
|
"exports": {
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
"test": "tests"
|
|
352
352
|
},
|
|
353
353
|
"types": "./dist/index.d.ts",
|
|
354
|
-
"lisaReleaseCommit": "
|
|
355
|
-
"gitHead": "
|
|
356
|
-
"lisaReleaseTag": "v4.107.
|
|
354
|
+
"lisaReleaseCommit": "b2c2f6ad1a7d4f46f004d885a1b2b135404fb67f",
|
|
355
|
+
"gitHead": "b2c2f6ad1a7d4f46f004d885a1b2b135404fb67f",
|
|
356
|
+
"lisaReleaseTag": "v4.107.13"
|
|
357
357
|
}
|
|
@@ -273,7 +273,7 @@ Each marker must satisfy ALL of:
|
|
|
273
273
|
|
|
274
274
|
FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE: ...]` markers, when any binding marker is untyped or uses a type outside the taxonomy, or when any binding name is empty, duplicated, or not kebab-case. A behavior-changing work unit SHOULD declare both a success marker and an error/edge marker; a journey with only one binding marker passes but the remediation should recommend adding the error/edge case.
|
|
275
275
|
|
|
276
|
-
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this issue. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another issue's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form.
|
|
276
|
+
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this issue. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another issue's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. A marker inside an inline code span on a single line (any backtick-run length) is an example, like one in a fence: it never counts toward S14 and is never refused as malformed.
|
|
277
277
|
|
|
278
278
|
This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-github-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live issue.
|
|
279
279
|
|
|
@@ -276,7 +276,7 @@ Each marker must satisfy ALL of:
|
|
|
276
276
|
|
|
277
277
|
FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE: ...]` markers, when any binding marker is untyped or uses a type outside the taxonomy, or when any binding name is empty, duplicated, or not kebab-case. A behavior-changing work unit SHOULD declare both a success marker and an error/edge marker; a journey with only one binding marker passes but the remediation should recommend adding the error/edge case.
|
|
278
278
|
|
|
279
|
-
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this ticket. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another ticket's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form.
|
|
279
|
+
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this ticket. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another ticket's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. A marker inside an inline code span on a single line (any backtick-run length) is an example, like one in a fence: it never counts toward S14 and is never refused as malformed.
|
|
280
280
|
|
|
281
281
|
This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-jira-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live ticket.
|
|
282
282
|
|
|
@@ -85,6 +85,19 @@ a `last_confirmed` bump), **RETIRE** (provably redundant/stale — proof, not
|
|
|
85
85
|
vibes), or leave alone. No evidence ⇒ no candidate; the gardener never files
|
|
86
86
|
a recommendation it cannot evidence.
|
|
87
87
|
|
|
88
|
+
**A RETIRE owned by a test needs a mutation proof.** Naming a test as the
|
|
89
|
+
mechanical owner proves nothing until that test has been seen to fail
|
|
90
|
+
without the rule (CodySwannGT/lisa#4530): a test whose fake returns empty
|
|
91
|
+
results stays green whatever the code does. For every RETIRE whose proof is
|
|
92
|
+
"owned by a test" (or any other mechanical owner that runs as a check), run
|
|
93
|
+
the mutation proof before filing the row: break the rule the named test
|
|
94
|
+
supposedly guards, run that named test and observe it **fail**, then revert
|
|
95
|
+
the mutation and see it pass again. Record the result in the row — the
|
|
96
|
+
mutation applied, the failing test name and its failure line, and the
|
|
97
|
+
revert. A named owner that stays green under the mutation is not the owner:
|
|
98
|
+
find the test that does fail, or drop the RETIRE. No failing observation ⇒
|
|
99
|
+
no valid retire proof.
|
|
100
|
+
|
|
88
101
|
**Learned planning checks.** A ledger entry whose rule begins
|
|
89
102
|
`Planning (prd|decomposition|ready-gate|filing):` is a `planning-miss` learning:
|
|
90
103
|
the check planning should have run before a dispatched worker had to stop for a
|
|
@@ -258,7 +271,13 @@ rejected by rule (see the `promotion-contract` rule):
|
|
|
258
271
|
**One batch ticket per run — CONFIRM + RETIRE** (`issue_type: Task`): a single
|
|
259
272
|
ticket listing every CONFIRM row (`last_confirmed` bump, with the evidence the
|
|
260
273
|
entry demonstrably applied) and every **provably-redundant** RETIRE row (with
|
|
261
|
-
the mechanical owner / staleness proof per row
|
|
274
|
+
the mechanical owner / staleness proof per row, and the mutation proof when the
|
|
275
|
+
owner is a test). Every RETIRE row also carries the entry's full
|
|
276
|
+
`expectedFingerprint`: the live `entry.fingerprint` read from the parsed ledger
|
|
277
|
+
at audit time (`learning-` plus 20 hex digits, or a legacy token). It is not the
|
|
278
|
+
12-hex `<invariant-hash>` in the row's `[lisa-gardener]` marker — the two are
|
|
279
|
+
different identifiers, and only the entry fingerprint shows whether a later
|
|
280
|
+
consolidation rewrote the entry behind the same id. Rows are individually
|
|
262
281
|
strikeable — the human deletes rows they reject, then flips the ticket ready.
|
|
263
282
|
The gardener **never bumps `last_confirmed` itself**: the bumps are executed
|
|
264
283
|
by the **implementing factory run** that picks up the flipped batch ticket.
|
|
@@ -274,6 +293,16 @@ implementing run receives its instructions inside the work item:
|
|
|
274
293
|
- Implement each surviving RETIRE row as a proof-citing deletion PR per the
|
|
275
294
|
`promotion-contract` rule's reverse-atomicity clause: the deleting PR must
|
|
276
295
|
cite the row's mechanical owner or staleness proof.
|
|
296
|
+
- Delete each RETIRE entry only by calling
|
|
297
|
+
`retireLearningEntry(projectRoot, id, expectedFingerprint)` from
|
|
298
|
+
`@codyswann/lisa/learnings` with the row's full `expectedFingerprint` —
|
|
299
|
+
never by parse → filter → render in a script, and never by a hand edit.
|
|
300
|
+
- A RETIRE that returns `stale` means the entry's fingerprint drifted since
|
|
301
|
+
the audit (a later learner run changed or merged into it): skip the row, do
|
|
302
|
+
not delete it, and leave it for the next audit to re-evaluate.
|
|
303
|
+
- A RETIRE that returns `not-found` means the entry is already gone: note it
|
|
304
|
+
in the PR and skip the row. On a concurrent-write error, retry the call
|
|
305
|
+
once; never fall back to a manual edit.
|
|
277
306
|
- Struck/deleted rows are human rejections — skip them; they are not re-filed
|
|
278
307
|
without new postdating evidence.
|
|
279
308
|
<!-- gardener-batch-ticket-template:end -->
|
|
@@ -262,7 +262,7 @@ Each marker must satisfy ALL of:
|
|
|
262
262
|
|
|
263
263
|
FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE: ...]` markers, when any binding marker is untyped or uses a type outside the taxonomy, or when any binding name is empty, duplicated, or not kebab-case. A behavior-changing work unit SHOULD declare both a success marker and an error/edge marker; a journey with only one binding marker passes but the remediation should recommend adding the error/edge case.
|
|
264
264
|
|
|
265
|
-
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this item. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another item's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`, `\[EVIDENCE-REF: ...\]`): decode one Markdown escape layer outside code fences, indented code and inline code spans before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so an escaped and an unescaped marker are the same declaration and a malformed one still FAILs.
|
|
265
|
+
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this item. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another item's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`, `\[EVIDENCE-REF: ...\]`): decode one Markdown escape layer outside code fences, indented code and inline code spans before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so an escaped and an unescaped marker are the same declaration and a malformed one still FAILs. A marker inside an inline code span on a single line (any backtick-run length) is an example, like one in a fence: it never counts toward S14 and is never refused as malformed.
|
|
266
266
|
|
|
267
267
|
This gate depends on S11. It is `N/A` for containers — a **Project** (the Epic equivalent), or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-linear-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live Issue.
|
|
268
268
|
|
|
@@ -49,7 +49,7 @@ omit the plugin rules tree; do not assume a runtime-specific rules directory.
|
|
|
49
49
|
- **The "Not established" section is required.** Before posting, confirm `evidence/comment.md` (and `comment.txt` where the vendor uses it) contains a `## Not established` heading and that the verdict carries `not_established_reviewed: true`. The heading is **never omitted and never blank**: with nothing outstanding it still renders `None outstanding — reviewed`; otherwise it lists, in plain operator language, each thing the verification did not prove — boundaries not exercised, environments not tested, behavior consciously out of scope. A comment with no such heading, a heading with nothing under it, or a verdict whose `not_established_reviewed` flag is absent is **refused**: stop and report the missing Not-established review instead of posting. (The list may be empty; the flag may never be omitted.) Definition and exemplars live in the `claim-evidence-mapping` rule; this generalizes `lisa-improve-harness`'s required, never-empty `Known limits` field.
|
|
50
50
|
- **Artifact identity is required, with values (S14 extension).** Before posting, confirm the comment body carries a `## Artifact identity` heading populated with **values, not placeholders**: the `repository`, the `head_sha` the verification observed, the `environment`, and for each committed or uploaded artifact its `sha256` digest and `captured_at`. Then check both identity failures. **`artifact_mismatch`** — an evidence entry whose recorded `artifact_head_sha` differs from the verdict's `artifact.head_sha`: refuse the post and report the offending evidence id together with **both SHAs** (the one the artifact was captured at and the one the verdict claims), e.g. `EV-2 captured at 4f1c9ab but artifact.head_sha is 9de0c31`. **`evidence_digest_mismatch`** — recompute the `sha256` of each committed evidence file on read, or of the fetched bytes when its locator is an uploaded URL; if the bytes no longer match the recorded digest (or the file is absent), stop and report the evidence id by name. Never summarize either as "verification failed" — name the field, the ids, and both SHAs so a non-engineer can read it at the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json`, an identity failure is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing artifact. Definition: the `claim-evidence-mapping` rule.
|
|
51
51
|
- **Merge-race reconciliation (at completion, not at post).** The evidence's pinned `head_sha` is reconciled against the merged head using the ancestry + deploy-run definition of "what shipped" that `lisa-drive-pr-to-merge` already owns — cite that skill, never re-implement or restate its checks here. Pre-merge evidence counts for the merge commit only when its head is a parent of the merge, ancestry alone never justifies reporting shipped, and on a mismatch verification re-runs against the merged head before completion is declared.
|
|
52
|
-
- **Evidence references are not manifest entries.** Extract obligations using the exact `[EVIDENCE:` prefix (and the legacy local `[SCREENSHOT:` form). Exclude both the canonical `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` and the Lisa 2.223.0 legacy alias `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` from artifact lookup, missing-artifact reporting, and duplicate-name checks: either belongs to another work item and cannot satisfy this item's S14 gate. A runtime-changing leaf with references but no local claiming marker must be rejected before dispatch. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`): decode one Markdown escape layer outside code before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so escaped and unescaped markers bind the same manifest.
|
|
52
|
+
- **Evidence references are not manifest entries.** Extract obligations using the exact `[EVIDENCE:` prefix (and the legacy local `[SCREENSHOT:` form). Exclude both the canonical `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` and the Lisa 2.223.0 legacy alias `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` from artifact lookup, missing-artifact reporting, and duplicate-name checks: either belongs to another work item and cannot satisfy this item's S14 gate. A runtime-changing leaf with references but no local claiming marker must be rejected before dispatch. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`): decode one Markdown escape layer outside code before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so escaped and unescaped markers bind the same manifest. A marker inside an inline code span on a single line (any backtick-run length), like one in fenced or indented code, is an example: it is neither a manifest entry nor a malformed declaration.
|
|
53
53
|
|
|
54
54
|
## UI Evidence Checklist (when work is UI-visible)
|
|
55
55
|
|
|
@@ -80,6 +80,9 @@ collide.
|
|
|
80
80
|
which `CLAUDE.md` is only a `@AGENTS.md` pointer) for these categories.
|
|
81
81
|
- The **build-intake flows** advance `last_confirmed` at claim time
|
|
82
82
|
(`confirmLearningEntry`, below).
|
|
83
|
+
- The **implementing run of a gardener CONFIRM/RETIRE batch ticket** removes
|
|
84
|
+
each approved RETIRE entry with `retireLearningEntry` (below), never by
|
|
85
|
+
parse → filter → render or a hand edit.
|
|
83
86
|
|
|
84
87
|
Automated promotion of a captured learning to a higher rung (skill, eager rule,
|
|
85
88
|
executable control, upstream ticket) is the gardener's job, gated by a human
|
|
@@ -128,6 +131,24 @@ entry or file instead of throwing, and is idempotent within a claim (a
|
|
|
128
131
|
same-date repeat returns `unchanged`). A failed bump is reported and never
|
|
129
132
|
blocks the build.
|
|
130
133
|
|
|
134
|
+
## Fingerprint-guarded retirement
|
|
135
|
+
|
|
136
|
+
A gardener RETIRE row's entry is deleted only through
|
|
137
|
+
`retireLearningEntry(projectRoot, id, expectedFingerprint, { onStale })` from
|
|
138
|
+
`@codyswann/lisa/learnings`. It is a
|
|
139
|
+
compare-and-swap delete: inside the same ledger lock the writers use, it
|
|
140
|
+
re-reads the live entry and removes it only when its fingerprint still equals
|
|
141
|
+
`expectedFingerprint` — the full entry fingerprint observed at audit time, never
|
|
142
|
+
the 12-hex gardener marker hash (that value is rejected). If a later
|
|
143
|
+
consolidation rewrote the entry behind the same id, the fingerprint differs: the
|
|
144
|
+
call writes nothing, reports the drift through `onStale`, and returns `stale`
|
|
145
|
+
with the live fingerprint, so the row is skipped and re-audited instead of
|
|
146
|
+
discarding lessons the audit never saw. On a match it removes exactly that
|
|
147
|
+
entry, re-checks the budgets, and writes atomically. On a v2 ledger every other
|
|
148
|
+
entry stays byte-identical; a v1 ledger is migrated to v2 by the same write,
|
|
149
|
+
exactly as `confirmLearningEntry` migrates it. A missing file or unknown id
|
|
150
|
+
returns `not-found` without writing.
|
|
151
|
+
|
|
131
152
|
Only entries accepted by the executable contract may influence the session. A
|
|
132
153
|
missing file is expected and silent. Malformed Markdown, invalid JSONL, unsafe
|
|
133
154
|
paths, non-canonical content, or over-budget documents produce one readable
|
|
@@ -271,7 +271,7 @@ Each marker must satisfy ALL of:
|
|
|
271
271
|
|
|
272
272
|
FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE: ...]` markers, when any binding marker is untyped or uses a type outside the taxonomy, or when any binding name is empty, duplicated, or not kebab-case. A behavior-changing work unit SHOULD declare both a success marker and an error/edge marker; a journey with only one binding marker passes but the remediation should recommend adding the error/edge case.
|
|
273
273
|
|
|
274
|
-
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this issue. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another issue's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form.
|
|
274
|
+
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this issue. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another issue's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. A marker inside an inline code span on a single line (any backtick-run length) is an example, like one in a fence: it never counts toward S14 and is never refused as malformed.
|
|
275
275
|
|
|
276
276
|
This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-github-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live issue.
|
|
277
277
|
|
|
@@ -274,7 +274,7 @@ Each marker must satisfy ALL of:
|
|
|
274
274
|
|
|
275
275
|
FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE: ...]` markers, when any binding marker is untyped or uses a type outside the taxonomy, or when any binding name is empty, duplicated, or not kebab-case. A behavior-changing work unit SHOULD declare both a success marker and an error/edge marker; a journey with only one binding marker passes but the remediation should recommend adding the error/edge case.
|
|
276
276
|
|
|
277
|
-
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this ticket. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another ticket's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form.
|
|
277
|
+
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this ticket. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another ticket's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. A marker inside an inline code span on a single line (any backtick-run length) is an example, like one in a fence: it never counts toward S14 and is never refused as malformed.
|
|
278
278
|
|
|
279
279
|
This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-jira-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live ticket.
|
|
280
280
|
|
|
@@ -83,6 +83,19 @@ a `last_confirmed` bump), **RETIRE** (provably redundant/stale — proof, not
|
|
|
83
83
|
vibes), or leave alone. No evidence ⇒ no candidate; the gardener never files
|
|
84
84
|
a recommendation it cannot evidence.
|
|
85
85
|
|
|
86
|
+
**A RETIRE owned by a test needs a mutation proof.** Naming a test as the
|
|
87
|
+
mechanical owner proves nothing until that test has been seen to fail
|
|
88
|
+
without the rule (CodySwannGT/lisa#4530): a test whose fake returns empty
|
|
89
|
+
results stays green whatever the code does. For every RETIRE whose proof is
|
|
90
|
+
"owned by a test" (or any other mechanical owner that runs as a check), run
|
|
91
|
+
the mutation proof before filing the row: break the rule the named test
|
|
92
|
+
supposedly guards, run that named test and observe it **fail**, then revert
|
|
93
|
+
the mutation and see it pass again. Record the result in the row — the
|
|
94
|
+
mutation applied, the failing test name and its failure line, and the
|
|
95
|
+
revert. A named owner that stays green under the mutation is not the owner:
|
|
96
|
+
find the test that does fail, or drop the RETIRE. No failing observation ⇒
|
|
97
|
+
no valid retire proof.
|
|
98
|
+
|
|
86
99
|
**Learned planning checks.** A ledger entry whose rule begins
|
|
87
100
|
`Planning (prd|decomposition|ready-gate|filing):` is a `planning-miss` learning:
|
|
88
101
|
the check planning should have run before a dispatched worker had to stop for a
|
|
@@ -256,7 +269,13 @@ rejected by rule (see the `promotion-contract` rule):
|
|
|
256
269
|
**One batch ticket per run — CONFIRM + RETIRE** (`issue_type: Task`): a single
|
|
257
270
|
ticket listing every CONFIRM row (`last_confirmed` bump, with the evidence the
|
|
258
271
|
entry demonstrably applied) and every **provably-redundant** RETIRE row (with
|
|
259
|
-
the mechanical owner / staleness proof per row
|
|
272
|
+
the mechanical owner / staleness proof per row, and the mutation proof when the
|
|
273
|
+
owner is a test). Every RETIRE row also carries the entry's full
|
|
274
|
+
`expectedFingerprint`: the live `entry.fingerprint` read from the parsed ledger
|
|
275
|
+
at audit time (`learning-` plus 20 hex digits, or a legacy token). It is not the
|
|
276
|
+
12-hex `<invariant-hash>` in the row's `[lisa-gardener]` marker — the two are
|
|
277
|
+
different identifiers, and only the entry fingerprint shows whether a later
|
|
278
|
+
consolidation rewrote the entry behind the same id. Rows are individually
|
|
260
279
|
strikeable — the human deletes rows they reject, then flips the ticket ready.
|
|
261
280
|
The gardener **never bumps `last_confirmed` itself**: the bumps are executed
|
|
262
281
|
by the **implementing factory run** that picks up the flipped batch ticket.
|
|
@@ -272,6 +291,16 @@ implementing run receives its instructions inside the work item:
|
|
|
272
291
|
- Implement each surviving RETIRE row as a proof-citing deletion PR per the
|
|
273
292
|
`promotion-contract` rule's reverse-atomicity clause: the deleting PR must
|
|
274
293
|
cite the row's mechanical owner or staleness proof.
|
|
294
|
+
- Delete each RETIRE entry only by calling
|
|
295
|
+
`retireLearningEntry(projectRoot, id, expectedFingerprint)` from
|
|
296
|
+
`@codyswann/lisa/learnings` with the row's full `expectedFingerprint` —
|
|
297
|
+
never by parse → filter → render in a script, and never by a hand edit.
|
|
298
|
+
- A RETIRE that returns `stale` means the entry's fingerprint drifted since
|
|
299
|
+
the audit (a later learner run changed or merged into it): skip the row, do
|
|
300
|
+
not delete it, and leave it for the next audit to re-evaluate.
|
|
301
|
+
- A RETIRE that returns `not-found` means the entry is already gone: note it
|
|
302
|
+
in the PR and skip the row. On a concurrent-write error, retry the call
|
|
303
|
+
once; never fall back to a manual edit.
|
|
275
304
|
- Struck/deleted rows are human rejections — skip them; they are not re-filed
|
|
276
305
|
without new postdating evidence.
|
|
277
306
|
<!-- gardener-batch-ticket-template:end -->
|
|
@@ -260,7 +260,7 @@ Each marker must satisfy ALL of:
|
|
|
260
260
|
|
|
261
261
|
FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE: ...]` markers, when any binding marker is untyped or uses a type outside the taxonomy, or when any binding name is empty, duplicated, or not kebab-case. A behavior-changing work unit SHOULD declare both a success marker and an error/edge marker; a journey with only one binding marker passes but the remediation should recommend adding the error/edge case.
|
|
262
262
|
|
|
263
|
-
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this item. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another item's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`, `\[EVIDENCE-REF: ...\]`): decode one Markdown escape layer outside code fences, indented code and inline code spans before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so an escaped and an unescaped marker are the same declaration and a malformed one still FAILs.
|
|
263
|
+
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this item. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another item's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`, `\[EVIDENCE-REF: ...\]`): decode one Markdown escape layer outside code fences, indented code and inline code spans before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so an escaped and an unescaped marker are the same declaration and a malformed one still FAILs. A marker inside an inline code span on a single line (any backtick-run length) is an example, like one in a fence: it never counts toward S14 and is never refused as malformed.
|
|
264
264
|
|
|
265
265
|
This gate depends on S11. It is `N/A` for containers — a **Project** (the Epic equivalent), or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-linear-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live Issue.
|
|
266
266
|
|
|
@@ -47,7 +47,7 @@ omit the plugin rules tree; do not assume a runtime-specific rules directory.
|
|
|
47
47
|
- **The "Not established" section is required.** Before posting, confirm `evidence/comment.md` (and `comment.txt` where the vendor uses it) contains a `## Not established` heading and that the verdict carries `not_established_reviewed: true`. The heading is **never omitted and never blank**: with nothing outstanding it still renders `None outstanding — reviewed`; otherwise it lists, in plain operator language, each thing the verification did not prove — boundaries not exercised, environments not tested, behavior consciously out of scope. A comment with no such heading, a heading with nothing under it, or a verdict whose `not_established_reviewed` flag is absent is **refused**: stop and report the missing Not-established review instead of posting. (The list may be empty; the flag may never be omitted.) Definition and exemplars live in the `claim-evidence-mapping` rule; this generalizes `lisa-improve-harness`'s required, never-empty `Known limits` field.
|
|
48
48
|
- **Artifact identity is required, with values (S14 extension).** Before posting, confirm the comment body carries a `## Artifact identity` heading populated with **values, not placeholders**: the `repository`, the `head_sha` the verification observed, the `environment`, and for each committed or uploaded artifact its `sha256` digest and `captured_at`. Then check both identity failures. **`artifact_mismatch`** — an evidence entry whose recorded `artifact_head_sha` differs from the verdict's `artifact.head_sha`: refuse the post and report the offending evidence id together with **both SHAs** (the one the artifact was captured at and the one the verdict claims), e.g. `EV-2 captured at 4f1c9ab but artifact.head_sha is 9de0c31`. **`evidence_digest_mismatch`** — recompute the `sha256` of each committed evidence file on read, or of the fetched bytes when its locator is an uploaded URL; if the bytes no longer match the recorded digest (or the file is absent), stop and report the evidence id by name. Never summarize either as "verification failed" — name the field, the ids, and both SHAs so a non-engineer can read it at the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json`, an identity failure is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing artifact. Definition: the `claim-evidence-mapping` rule.
|
|
49
49
|
- **Merge-race reconciliation (at completion, not at post).** The evidence's pinned `head_sha` is reconciled against the merged head using the ancestry + deploy-run definition of "what shipped" that `lisa-drive-pr-to-merge` already owns — cite that skill, never re-implement or restate its checks here. Pre-merge evidence counts for the merge commit only when its head is a parent of the merge, ancestry alone never justifies reporting shipped, and on a mismatch verification re-runs against the merged head before completion is declared.
|
|
50
|
-
- **Evidence references are not manifest entries.** Extract obligations using the exact `[EVIDENCE:` prefix (and the legacy local `[SCREENSHOT:` form). Exclude both the canonical `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` and the Lisa 2.223.0 legacy alias `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` from artifact lookup, missing-artifact reporting, and duplicate-name checks: either belongs to another work item and cannot satisfy this item's S14 gate. A runtime-changing leaf with references but no local claiming marker must be rejected before dispatch. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`): decode one Markdown escape layer outside code before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so escaped and unescaped markers bind the same manifest.
|
|
50
|
+
- **Evidence references are not manifest entries.** Extract obligations using the exact `[EVIDENCE:` prefix (and the legacy local `[SCREENSHOT:` form). Exclude both the canonical `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` and the Lisa 2.223.0 legacy alias `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` from artifact lookup, missing-artifact reporting, and duplicate-name checks: either belongs to another work item and cannot satisfy this item's S14 gate. A runtime-changing leaf with references but no local claiming marker must be rejected before dispatch. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`): decode one Markdown escape layer outside code before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so escaped and unescaped markers bind the same manifest. A marker inside an inline code span on a single line (any backtick-run length), like one in fenced or indented code, is an example: it is neither a manifest entry nor a malformed declaration.
|
|
51
51
|
|
|
52
52
|
## UI Evidence Checklist (when work is UI-visible)
|
|
53
53
|
|
|
@@ -271,7 +271,7 @@ Each marker must satisfy ALL of:
|
|
|
271
271
|
|
|
272
272
|
FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE: ...]` markers, when any binding marker is untyped or uses a type outside the taxonomy, or when any binding name is empty, duplicated, or not kebab-case. A behavior-changing work unit SHOULD declare both a success marker and an error/edge marker; a journey with only one binding marker passes but the remediation should recommend adding the error/edge case.
|
|
273
273
|
|
|
274
|
-
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this issue. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another issue's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form.
|
|
274
|
+
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this issue. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another issue's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. A marker inside an inline code span on a single line (any backtick-run length) is an example, like one in a fence: it never counts toward S14 and is never refused as malformed.
|
|
275
275
|
|
|
276
276
|
This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-github-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live issue.
|
|
277
277
|
|
|
@@ -274,7 +274,7 @@ Each marker must satisfy ALL of:
|
|
|
274
274
|
|
|
275
275
|
FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE: ...]` markers, when any binding marker is untyped or uses a type outside the taxonomy, or when any binding name is empty, duplicated, or not kebab-case. A behavior-changing work unit SHOULD declare both a success marker and an error/edge marker; a journey with only one binding marker passes but the remediation should recommend adding the error/edge case.
|
|
276
276
|
|
|
277
|
-
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this ticket. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another ticket's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form.
|
|
277
|
+
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this ticket. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another ticket's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. A marker inside an inline code span on a single line (any backtick-run length) is an example, like one in a fence: it never counts toward S14 and is never refused as malformed.
|
|
278
278
|
|
|
279
279
|
This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-jira-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live ticket.
|
|
280
280
|
|
|
@@ -83,6 +83,19 @@ a `last_confirmed` bump), **RETIRE** (provably redundant/stale — proof, not
|
|
|
83
83
|
vibes), or leave alone. No evidence ⇒ no candidate; the gardener never files
|
|
84
84
|
a recommendation it cannot evidence.
|
|
85
85
|
|
|
86
|
+
**A RETIRE owned by a test needs a mutation proof.** Naming a test as the
|
|
87
|
+
mechanical owner proves nothing until that test has been seen to fail
|
|
88
|
+
without the rule (CodySwannGT/lisa#4530): a test whose fake returns empty
|
|
89
|
+
results stays green whatever the code does. For every RETIRE whose proof is
|
|
90
|
+
"owned by a test" (or any other mechanical owner that runs as a check), run
|
|
91
|
+
the mutation proof before filing the row: break the rule the named test
|
|
92
|
+
supposedly guards, run that named test and observe it **fail**, then revert
|
|
93
|
+
the mutation and see it pass again. Record the result in the row — the
|
|
94
|
+
mutation applied, the failing test name and its failure line, and the
|
|
95
|
+
revert. A named owner that stays green under the mutation is not the owner:
|
|
96
|
+
find the test that does fail, or drop the RETIRE. No failing observation ⇒
|
|
97
|
+
no valid retire proof.
|
|
98
|
+
|
|
86
99
|
**Learned planning checks.** A ledger entry whose rule begins
|
|
87
100
|
`Planning (prd|decomposition|ready-gate|filing):` is a `planning-miss` learning:
|
|
88
101
|
the check planning should have run before a dispatched worker had to stop for a
|
|
@@ -256,7 +269,13 @@ rejected by rule (see the `promotion-contract` rule):
|
|
|
256
269
|
**One batch ticket per run — CONFIRM + RETIRE** (`issue_type: Task`): a single
|
|
257
270
|
ticket listing every CONFIRM row (`last_confirmed` bump, with the evidence the
|
|
258
271
|
entry demonstrably applied) and every **provably-redundant** RETIRE row (with
|
|
259
|
-
the mechanical owner / staleness proof per row
|
|
272
|
+
the mechanical owner / staleness proof per row, and the mutation proof when the
|
|
273
|
+
owner is a test). Every RETIRE row also carries the entry's full
|
|
274
|
+
`expectedFingerprint`: the live `entry.fingerprint` read from the parsed ledger
|
|
275
|
+
at audit time (`learning-` plus 20 hex digits, or a legacy token). It is not the
|
|
276
|
+
12-hex `<invariant-hash>` in the row's `[lisa-gardener]` marker — the two are
|
|
277
|
+
different identifiers, and only the entry fingerprint shows whether a later
|
|
278
|
+
consolidation rewrote the entry behind the same id. Rows are individually
|
|
260
279
|
strikeable — the human deletes rows they reject, then flips the ticket ready.
|
|
261
280
|
The gardener **never bumps `last_confirmed` itself**: the bumps are executed
|
|
262
281
|
by the **implementing factory run** that picks up the flipped batch ticket.
|
|
@@ -272,6 +291,16 @@ implementing run receives its instructions inside the work item:
|
|
|
272
291
|
- Implement each surviving RETIRE row as a proof-citing deletion PR per the
|
|
273
292
|
`promotion-contract` rule's reverse-atomicity clause: the deleting PR must
|
|
274
293
|
cite the row's mechanical owner or staleness proof.
|
|
294
|
+
- Delete each RETIRE entry only by calling
|
|
295
|
+
`retireLearningEntry(projectRoot, id, expectedFingerprint)` from
|
|
296
|
+
`@codyswann/lisa/learnings` with the row's full `expectedFingerprint` —
|
|
297
|
+
never by parse → filter → render in a script, and never by a hand edit.
|
|
298
|
+
- A RETIRE that returns `stale` means the entry's fingerprint drifted since
|
|
299
|
+
the audit (a later learner run changed or merged into it): skip the row, do
|
|
300
|
+
not delete it, and leave it for the next audit to re-evaluate.
|
|
301
|
+
- A RETIRE that returns `not-found` means the entry is already gone: note it
|
|
302
|
+
in the PR and skip the row. On a concurrent-write error, retry the call
|
|
303
|
+
once; never fall back to a manual edit.
|
|
275
304
|
- Struck/deleted rows are human rejections — skip them; they are not re-filed
|
|
276
305
|
without new postdating evidence.
|
|
277
306
|
<!-- gardener-batch-ticket-template:end -->
|
|
@@ -260,7 +260,7 @@ Each marker must satisfy ALL of:
|
|
|
260
260
|
|
|
261
261
|
FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE: ...]` markers, when any binding marker is untyped or uses a type outside the taxonomy, or when any binding name is empty, duplicated, or not kebab-case. A behavior-changing work unit SHOULD declare both a success marker and an error/edge marker; a journey with only one binding marker passes but the remediation should recommend adding the error/edge case.
|
|
262
262
|
|
|
263
|
-
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this item. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another item's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`, `\[EVIDENCE-REF: ...\]`): decode one Markdown escape layer outside code fences, indented code and inline code spans before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so an escaped and an unescaped marker are the same declaration and a malformed one still FAILs.
|
|
263
|
+
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this item. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another item's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`, `\[EVIDENCE-REF: ...\]`): decode one Markdown escape layer outside code fences, indented code and inline code spans before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so an escaped and an unescaped marker are the same declaration and a malformed one still FAILs. A marker inside an inline code span on a single line (any backtick-run length) is an example, like one in a fence: it never counts toward S14 and is never refused as malformed.
|
|
264
264
|
|
|
265
265
|
This gate depends on S11. It is `N/A` for containers — a **Project** (the Epic equivalent), or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-linear-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live Issue.
|
|
266
266
|
|
|
@@ -47,7 +47,7 @@ omit the plugin rules tree; do not assume a runtime-specific rules directory.
|
|
|
47
47
|
- **The "Not established" section is required.** Before posting, confirm `evidence/comment.md` (and `comment.txt` where the vendor uses it) contains a `## Not established` heading and that the verdict carries `not_established_reviewed: true`. The heading is **never omitted and never blank**: with nothing outstanding it still renders `None outstanding — reviewed`; otherwise it lists, in plain operator language, each thing the verification did not prove — boundaries not exercised, environments not tested, behavior consciously out of scope. A comment with no such heading, a heading with nothing under it, or a verdict whose `not_established_reviewed` flag is absent is **refused**: stop and report the missing Not-established review instead of posting. (The list may be empty; the flag may never be omitted.) Definition and exemplars live in the `claim-evidence-mapping` rule; this generalizes `lisa-improve-harness`'s required, never-empty `Known limits` field.
|
|
48
48
|
- **Artifact identity is required, with values (S14 extension).** Before posting, confirm the comment body carries a `## Artifact identity` heading populated with **values, not placeholders**: the `repository`, the `head_sha` the verification observed, the `environment`, and for each committed or uploaded artifact its `sha256` digest and `captured_at`. Then check both identity failures. **`artifact_mismatch`** — an evidence entry whose recorded `artifact_head_sha` differs from the verdict's `artifact.head_sha`: refuse the post and report the offending evidence id together with **both SHAs** (the one the artifact was captured at and the one the verdict claims), e.g. `EV-2 captured at 4f1c9ab but artifact.head_sha is 9de0c31`. **`evidence_digest_mismatch`** — recompute the `sha256` of each committed evidence file on read, or of the fetched bytes when its locator is an uploaded URL; if the bytes no longer match the recorded digest (or the file is absent), stop and report the evidence id by name. Never summarize either as "verification failed" — name the field, the ids, and both SHAs so a non-engineer can read it at the gate. **Advisory-first:** until `verification.gate.enforceBoundaries` is `true` in `.lisa.config.json`, an identity failure is reported to the operator but does not block the post; once ratcheted on it refuses the post exactly like a missing artifact. Definition: the `claim-evidence-mapping` rule.
|
|
49
49
|
- **Merge-race reconciliation (at completion, not at post).** The evidence's pinned `head_sha` is reconciled against the merged head using the ancestry + deploy-run definition of "what shipped" that `lisa-drive-pr-to-merge` already owns — cite that skill, never re-implement or restate its checks here. Pre-merge evidence counts for the merge commit only when its head is a parent of the merge, ancestry alone never justifies reporting shipped, and on a mismatch verification re-runs against the merged head before completion is declared.
|
|
50
|
-
- **Evidence references are not manifest entries.** Extract obligations using the exact `[EVIDENCE:` prefix (and the legacy local `[SCREENSHOT:` form). Exclude both the canonical `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` and the Lisa 2.223.0 legacy alias `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` from artifact lookup, missing-artifact reporting, and duplicate-name checks: either belongs to another work item and cannot satisfy this item's S14 gate. A runtime-changing leaf with references but no local claiming marker must be rejected before dispatch. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`): decode one Markdown escape layer outside code before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so escaped and unescaped markers bind the same manifest.
|
|
50
|
+
- **Evidence references are not manifest entries.** Extract obligations using the exact `[EVIDENCE:` prefix (and the legacy local `[SCREENSHOT:` form). Exclude both the canonical `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` and the Lisa 2.223.0 legacy alias `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` from artifact lookup, missing-artifact reporting, and duplicate-name checks: either belongs to another work item and cannot satisfy this item's S14 gate. A runtime-changing leaf with references but no local claiming marker must be rejected before dispatch. Linear returns stored Markdown with brackets escaped (`\[EVIDENCE: cli-output: name\]`): decode one Markdown escape layer outside code before matching, as `localMarkers` in `completion-proof-shape.mjs` does, so escaped and unescaped markers bind the same manifest. A marker inside an inline code span on a single line (any backtick-run length), like one in fenced or indented code, is an example: it is neither a manifest entry nor a malformed declaration.
|
|
51
51
|
|
|
52
52
|
## UI Evidence Checklist (when work is UI-visible)
|
|
53
53
|
|
|
@@ -80,6 +80,9 @@ collide.
|
|
|
80
80
|
which `CLAUDE.md` is only a `@AGENTS.md` pointer) for these categories.
|
|
81
81
|
- The **build-intake flows** advance `last_confirmed` at claim time
|
|
82
82
|
(`confirmLearningEntry`, below).
|
|
83
|
+
- The **implementing run of a gardener CONFIRM/RETIRE batch ticket** removes
|
|
84
|
+
each approved RETIRE entry with `retireLearningEntry` (below), never by
|
|
85
|
+
parse → filter → render or a hand edit.
|
|
83
86
|
|
|
84
87
|
Automated promotion of a captured learning to a higher rung (skill, eager rule,
|
|
85
88
|
executable control, upstream ticket) is the gardener's job, gated by a human
|
|
@@ -128,6 +131,24 @@ entry or file instead of throwing, and is idempotent within a claim (a
|
|
|
128
131
|
same-date repeat returns `unchanged`). A failed bump is reported and never
|
|
129
132
|
blocks the build.
|
|
130
133
|
|
|
134
|
+
## Fingerprint-guarded retirement
|
|
135
|
+
|
|
136
|
+
A gardener RETIRE row's entry is deleted only through
|
|
137
|
+
`retireLearningEntry(projectRoot, id, expectedFingerprint, { onStale })` from
|
|
138
|
+
`@codyswann/lisa/learnings`. It is a
|
|
139
|
+
compare-and-swap delete: inside the same ledger lock the writers use, it
|
|
140
|
+
re-reads the live entry and removes it only when its fingerprint still equals
|
|
141
|
+
`expectedFingerprint` — the full entry fingerprint observed at audit time, never
|
|
142
|
+
the 12-hex gardener marker hash (that value is rejected). If a later
|
|
143
|
+
consolidation rewrote the entry behind the same id, the fingerprint differs: the
|
|
144
|
+
call writes nothing, reports the drift through `onStale`, and returns `stale`
|
|
145
|
+
with the live fingerprint, so the row is skipped and re-audited instead of
|
|
146
|
+
discarding lessons the audit never saw. On a match it removes exactly that
|
|
147
|
+
entry, re-checks the budgets, and writes atomically. On a v2 ledger every other
|
|
148
|
+
entry stays byte-identical; a v1 ledger is migrated to v2 by the same write,
|
|
149
|
+
exactly as `confirmLearningEntry` migrates it. A missing file or unknown id
|
|
150
|
+
returns `not-found` without writing.
|
|
151
|
+
|
|
131
152
|
Only entries accepted by the executable contract may influence the session. A
|
|
132
153
|
missing file is expected and silent. Malformed Markdown, invalid JSONL, unsafe
|
|
133
154
|
paths, non-canonical content, or over-budget documents produce one readable
|
|
@@ -271,7 +271,7 @@ Each marker must satisfy ALL of:
|
|
|
271
271
|
|
|
272
272
|
FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE: ...]` markers, when any binding marker is untyped or uses a type outside the taxonomy, or when any binding name is empty, duplicated, or not kebab-case. A behavior-changing work unit SHOULD declare both a success marker and an error/edge marker; a journey with only one binding marker passes but the remediation should recommend adding the error/edge case.
|
|
273
273
|
|
|
274
|
-
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this issue. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another issue's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form.
|
|
274
|
+
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this issue. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another issue's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. A marker inside an inline code span on a single line (any backtick-run length) is an example, like one in a fence: it never counts toward S14 and is never refused as malformed.
|
|
275
275
|
|
|
276
276
|
This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-github-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live issue.
|
|
277
277
|
|
|
@@ -274,7 +274,7 @@ Each marker must satisfy ALL of:
|
|
|
274
274
|
|
|
275
275
|
FAIL when the Validation Journey is present but declares zero binding `[EVIDENCE: ...]` markers, when any binding marker is untyped or uses a type outside the taxonomy, or when any binding name is empty, duplicated, or not kebab-case. A behavior-changing work unit SHOULD declare both a success marker and an error/edge marker; a journey with only one binding marker passes but the remediation should recommend adding the error/edge case.
|
|
276
276
|
|
|
277
|
-
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this ticket. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another ticket's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form.
|
|
277
|
+
Parse claiming markers by the exact `[EVIDENCE:` prefix. A cross-work-item pointer in the canonical form `[EVIDENCE-REF: <work-item-ref> | <artifact-type>: <kebab-case-name>]` is non-claiming. The Lisa 2.223.0 form `[EVIDENCE-REF: <tracker-ref>: <artifact-type>: <kebab-case-name>]` is also accepted as a legacy non-claiming alias; parse it from the right so the final two fields are type/name and a tracker URL may contain `:`. Exclude both forms from the manifest, S14's minimum-marker count, local marker type/name validation, and duplicate-name checks. Independently validate every `EVIDENCE-REF`: the native work-item reference must be non-empty and unambiguous, the artifact type must use the fixed taxonomy, and the name must be non-empty kebab-case. A malformed reference FAILs S14 as an invalid pointer but never becomes a local evidence obligation. A valid canonical or legacy reference may point to a sibling's artifact, but it never satisfies S14 for this ticket. Therefore a runtime-changing leaf whose journey contains only `EVIDENCE-REF` entries FAILs S14 for zero local claiming markers, not because a valid legacy reference is malformed. Quoting or code-formatting another ticket's `[EVIDENCE: ...]` marker does not make it a reference; writers must convert it to the canonical pipe form. A marker inside an inline code span on a single line (any backtick-run length) is an example, like one in a fence: it never counts toward S14 and is never refused as malformed.
|
|
278
278
|
|
|
279
279
|
This gate depends on S11. It is `N/A` for containers — an **Epic**, or any item with open child work (coordination containers, not work units) — and for leaf units with `runtime_behavior_change = false` (doc-only / config-only / type-only / test-only). If S11 fails because the Validation Journey is absent, S14 also FAILs (there is no manifest to bind) with remediation pointing back to `lisa-jira-add-journey`. It is likewise `N/A` with a repair note when `runtime_behavior_change` is **underivable** under S8 — reading an absent declaration as `false` is exactly the silent assumption that made this gate unauditable on a live ticket.
|
|
280
280
|
|