@codyswann/lisa 4.88.2 → 4.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/learnings.d.ts +1 -1
- package/dist/core/learnings.d.ts.map +1 -1
- package/dist/core/learnings.js +1 -1
- package/dist/core/learnings.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/project-config-learnings.d.ts +21 -1
- package/dist/core/project-config-learnings.d.ts.map +1 -1
- package/dist/core/project-config-learnings.js +43 -6
- package/dist/core/project-config-learnings.js.map +1 -1
- package/dist/core/project-config.d.ts +1 -1
- package/dist/core/project-config.d.ts.map +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/project-config.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +13 -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-github-build-intake/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-learnings-audit/SKILL.md +24 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +28 -3
- package/plugins/lisa/agents/learning-judge.md +5 -3
- package/plugins/lisa/commands/persist-learning.md +1 -1
- package/plugins/lisa/rules/reference/claim-archaeology.md +2 -2
- package/plugins/lisa/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa/rules/reference/factory-model.md +1 -1
- package/plugins/lisa/rules/reference/rejection-detection.md +3 -3
- package/plugins/lisa/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-learnings-audit/SKILL.md +24 -1
- package/plugins/lisa/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +28 -3
- package/plugins/lisa-agy/agents/learning-judge.md +5 -3
- package/plugins/lisa-agy/commands/lisa/persist-learning.md +1 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-learnings-audit/SKILL.md +24 -1
- package/plugins/lisa-agy/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +28 -3
- 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/learning-judge.agent.md +5 -3
- package/plugins/lisa-copilot/commands/lisa/persist-learning.md +1 -1
- package/plugins/lisa-copilot/rules/reference/claim-archaeology.md +2 -2
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa-copilot/rules/reference/factory-model.md +1 -1
- package/plugins/lisa-copilot/rules/reference/rejection-detection.md +3 -3
- package/plugins/lisa-copilot/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-learnings-audit/SKILL.md +24 -1
- package/plugins/lisa-copilot/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +28 -3
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/agents/learning-judge.md +5 -3
- package/plugins/lisa-cursor/commands/lisa/persist-learning.md +1 -1
- package/plugins/lisa-cursor/rules/claim-archaeology-reference.mdc +2 -2
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +1 -0
- package/plugins/lisa-cursor/rules/factory-model-reference.mdc +1 -1
- package/plugins/lisa-cursor/rules/rejection-detection-reference.mdc +3 -3
- package/plugins/lisa-cursor/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-learnings-audit/SKILL.md +24 -1
- package/plugins/lisa-cursor/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +28 -3
- 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/learning-judge.md +5 -3
- package/plugins/lisa-devin/rules/reference/claim-archaeology.md +2 -2
- package/plugins/lisa-devin/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa-devin/rules/reference/factory-model.md +1 -1
- package/plugins/lisa-devin/rules/reference/rejection-detection.md +3 -3
- package/plugins/lisa-devin/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-learnings-audit/SKILL.md +24 -1
- package/plugins/lisa-devin/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/lisa-devin/skills/lisa-persist-learning/SKILL.md +28 -3
- 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/agents/learning-judge.md +5 -3
- package/plugins/src/base/commands/persist-learning.md +1 -1
- package/plugins/src/base/rules/reference/claim-archaeology.md +2 -2
- package/plugins/src/base/rules/reference/config-resolution.md +1 -0
- package/plugins/src/base/rules/reference/factory-model.md +1 -1
- package/plugins/src/base/rules/reference/rejection-detection.md +3 -3
- package/plugins/src/base/skills/lisa-github-build-intake/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-jira-build-intake/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-learnings-audit/SKILL.md +24 -1
- package/plugins/src/base/skills/lisa-linear-build-intake/SKILL.md +1 -1
- package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +28 -3
- package/rails/create-only/.github/workflows/ci.yml +4 -0
|
@@ -235,15 +235,40 @@ No learning content is ever committed without a PR — there is no other write p
|
|
|
235
235
|
Stage: <planning_stage>. The worker could not find: "<quoted>". Planning skills read this rule back through the bounded projection (`lisa-task-decomposition` step 0).
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
-
For a **low-confidence** PR (other than a `wrongly-escalated` one, which no human merges — step 6), the body must additionally end with
|
|
238
|
+
For a **low-confidence** PR (other than a `wrongly-escalated` one, which no human merges — step 6), the body must additionally end with one fixed line chosen by the step-6 routing mode. Under `human-triage` (the default) it is this decision-framing line, so the human at the gate knows exactly what merging means:
|
|
239
239
|
|
|
240
240
|
```markdown
|
|
241
241
|
**Merge** to adopt this rule into every future session for all six coding agents; **close** to discard it.
|
|
242
242
|
```
|
|
243
243
|
|
|
244
|
-
6
|
|
244
|
+
Under `auto-merge` nobody stands at that gate, so the line instead says why the PR merges unattended and who re-checks it (resolve the mode with the step-6 command before writing the body):
|
|
245
|
+
|
|
246
|
+
```markdown
|
|
247
|
+
Low-confidence learning: merges through the normal gates under `learnings.lowConfidence: "auto-merge"`; the gardener (`lisa-learnings-audit`) re-reviews it first.
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
6. **Confidence routing.** A `signal: wrongly-escalated` candidate always takes its own bullet below, whatever its confidence and whatever this setting says. Any other `low` verdict routes by the project's `learnings.lowConfidence` setting. Resolve it through the same executable contract as the ledger path in step 2 — never by reading `.lisa.config.json` by hand. A value other than `"auto-merge"` or `"human-triage"` is rejected by the config read itself, so it already stopped the run at step 2 and nothing was persisted:
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
LOW_CONFIDENCE=$(node -e 'import("@codyswann/lisa/learnings").then(async m => { const c = await m.readProjectConfig(process.cwd()); console.log(m.resolveLearningsSettings(c).lowConfidence); })')
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
It prints `human-triage` when the key is absent — the default, unchanged — or `auto-merge` when the project opted in.
|
|
257
|
+
|
|
245
258
|
- **`high`** → submit through `lisa-git-submit-pr` with its defaults: auto-merge ON, merging through the project's normal gates.
|
|
246
|
-
- **`low`** → submit through `lisa-git-submit-pr` with
|
|
259
|
+
- **`low` + `auto-merge`** → submit through `lisa-git-submit-pr` with its defaults, exactly like `high`: auto-merge ON, merging through the project's normal gates — the gates are not skipped, only the human wait is. This is for operators who involve humans only when an agent is genuinely stuck; the human gate's purpose is still covered, because the ledger is a cold, bounded projection, a planning-miss rule only adds a planning check, and the gardener can retire or demote a wrong entry. Keep the entry findable without blocking the merge: the ledger entry already carries `confidence: low` (step 3), and the PR gets the `learning:low-confidence` label (never `learning:needs-triage`, which means a human still has to act), created idempotently first:
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
gh label create "learning:low-confidence" \
|
|
263
|
+
--description "Low-confidence learning auto-merged; gardener re-reviews first" \
|
|
264
|
+
--color C5DEF5 || true
|
|
265
|
+
gh label list --search "learning:low-confidence" --json name \
|
|
266
|
+
--jq '[.[].name] | contains(["learning:low-confidence"])' # must print true
|
|
267
|
+
gh pr edit <pr> --add-label "learning:low-confidence"
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
Labeling never blocks: if it fails, report it in the run summary and leave the PR armed. The run summary names the routing mode used.
|
|
271
|
+
- **`low` + `human-triage`** (the default) → submit through `lisa-git-submit-pr` with `auto_merge=false` (drives the PR to green-and-open `awaiting-human`, never merging — even on repos that disallow auto-merge). Then apply the human-triage label, creating it idempotently first (the `lisa-drive-pr-to-merge` label pattern — `|| true` tolerates only already-exists, so verify):
|
|
247
272
|
|
|
248
273
|
```bash
|
|
249
274
|
gh label create "learning:needs-triage" \
|
|
@@ -67,7 +67,7 @@ A missing, ambiguous, contradictory or undecided requirement is not always a one
|
|
|
67
67
|
|
|
68
68
|
**The rule is the check planning should have run, never the answer.** Rewrite the candidate's `rule` as `Planning (<stage>): <check>` — e.g. `Planning (decomposition): an export ticket must name its report format before it is Ready.` — never `Exports use CSV.`, which only answers the one ticket and belongs on the item. A rule that only makes sense for this one item is not a check: drop it as `misunderstanding/spec-gap`. The `why` names the stage that let it through and quotes what the worker could not find. The prefix is load-bearing: planning skills select these entries from the bounded projection by it (`lisa-task-decomposition` step 0).
|
|
69
69
|
|
|
70
|
-
**Recurrence never blocks a first occurrence.** A first-occurrence planning miss persists at `low` confidence, so its persistence PR waits for a human to merge it. That is a deliberate, bounded exception to Step 2's recurrence requirement. The hostile default exists because a plausible-but-wrong rule would reach every future session unattended; a `low` rule
|
|
70
|
+
**Recurrence never blocks a first occurrence.** A first-occurrence planning miss persists at `low` confidence, so by default its persistence PR waits for a human to merge it. That is a deliberate, bounded exception to Step 2's recurrence requirement. The hostile default exists because a plausible-but-wrong rule would reach every future session unattended; a `low` rule does not by default, because a human reads it at the gate first. A project that opts into `learnings.lowConfidence: "auto-merge"` accepts that a `low` rule lands unread, in exchange for the gardener re-reviewing those entries first. Meanwhile the signal is unusually strong and unusually rare: each occurrence already cost the human interruption the gate exists to prevent, so waiting for a second occurrence costs a second interruption and teaches nothing new. And the rule only adds a check to planning — a wrong one costs a planning question, not changed build behaviour. With recurrence evidence (another dispatched item that stopped on the same class of gap), Step 4 may grant `high`.
|
|
71
71
|
|
|
72
72
|
### Step 2.6: Overruled escalation (`signal: wrongly-escalated`)
|
|
73
73
|
|
|
@@ -98,7 +98,9 @@ When multiple classifications seem defensible, choose the one that does **not**
|
|
|
98
98
|
### Step 4: Confidence (durable-learning and planning-miss)
|
|
99
99
|
|
|
100
100
|
- **`high`** — the causal story is unambiguous and the recurrence citations are directly on point. The persistence PR may merge through the project's normal gates unattended.
|
|
101
|
-
- **`low`** — durable on the evidence, but the causal chain has an inferential step or the recurrence evidence is indirect.
|
|
101
|
+
- **`low`** — durable on the evidence, but the causal chain has an inferential step or the recurrence evidence is indirect. By default the persistence PR waits for a human (auto-merge off + `learning:needs-triage`). A project that sets `learnings.lowConfidence: "auto-merge"` instead merges it through its normal gates, labeled `learning:low-confidence` so the gardener re-reviews it first. A `wrongly-escalated` candidate never waits for a human, whatever this setting says (Step 2.6).
|
|
102
|
+
|
|
103
|
+
Grade confidence on the evidence alone. The project's `learnings.lowConfidence` setting decides only what happens to a `low` PR; it never moves a candidate between `high` and `low`, so do not read it before grading.
|
|
102
104
|
|
|
103
105
|
If you cannot justify `high` in one sentence a non-engineer would accept, it is `low`. A `planning-miss` with no recurrence citation is always `low`.
|
|
104
106
|
|
|
@@ -147,7 +149,7 @@ Also echo back the candidate's `fingerprint` and `triggering_issue` so the calle
|
|
|
147
149
|
## Important Reminders
|
|
148
150
|
|
|
149
151
|
1. **Most candidates DROP** — a session where you persist everything you saw is a failed gate, not a productive one.
|
|
150
|
-
2. **No recurrence citation, no durable-learning** — this is absolute; there are no exceptions for "obviously true" rules. A `planning-miss` is not a durable-learning: without recurrence it persists only at `low
|
|
152
|
+
2. **No recurrence citation, no durable-learning** — this is absolute; there are no exceptions for "obviously true" rules. A `planning-miss` is not a durable-learning: without recurrence it persists only at `low` (behind a human merge unless the project set `learnings.lowConfidence: "auto-merge"`), and the recurrence requirement never blocks a first occurrence of it.
|
|
151
153
|
3. **Cite what you relied on** — a verdict without `cited_evidence` is invalid; re-run the evaluation.
|
|
152
154
|
4. **`lisa-upstream` never becomes a local rule** — classify and hand off; filing the upstream ticket is the caller's flow, not yours.
|
|
153
155
|
5. **You classify; you do not write** — never touch the learnings surface, post comments, or open PRs. The caller (`lisa-persist-learning`) owns all side effects.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "Route a candidate learning through the hostile-default learning-judge gate and act on the verdict: leave a dropped-with-reason note on the triggering issue (drop), file the upstream Lisa ticket automatically with marker dedupe, evidence, and a per-run cap (lisa-upstream), or persist a durable learning via a confidence-routed PR that touches only the learnings surface — auto-merge on for high confidence, auto-merge off plus the learning:needs-triage label for low confidence. Idempotent via marker dedupe."
|
|
2
|
+
description: "Route a candidate learning through the hostile-default learning-judge gate and act on the verdict: leave a dropped-with-reason note on the triggering issue (drop), file the upstream Lisa ticket automatically with marker dedupe, evidence, and a per-run cap (lisa-upstream), or persist a durable learning via a confidence-routed PR that touches only the learnings surface — auto-merge on for high confidence, auto-merge off plus the learning:needs-triage label for low confidence (unless learnings.lowConfidence is auto-merge). Idempotent via marker dedupe."
|
|
3
3
|
argument-hint: "<candidate-json-or-fields>"
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -30,7 +30,7 @@ Return exactly one of:
|
|
|
30
30
|
|
|
31
31
|
## Learning-loop exclusion (scan-side)
|
|
32
32
|
|
|
33
|
-
An artifact this flow produced is **never** an ancestor. Exclude anything carrying `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]`, `[lisa-rejection-candidate]`, or `[lisa-archaeology-candidate]` markers, or the `learning:needs-triage` label.
|
|
33
|
+
An artifact this flow produced is **never** an ancestor. Exclude anything carrying `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]`, `[lisa-rejection-candidate]`, or `[lisa-archaeology-candidate]` markers, or the `learning:needs-triage` or `learning:low-confidence` label.
|
|
34
34
|
|
|
35
35
|
## Cost budget — never block the claim
|
|
36
36
|
|
|
@@ -114,7 +114,7 @@ Before any candidate is promoted to ancestor, exclude every artifact carrying an
|
|
|
114
114
|
- `[lisa-learning-upstream-handoff]`
|
|
115
115
|
- `[lisa-rejection-candidate]`
|
|
116
116
|
- `[lisa-archaeology-candidate]` (this rule's own producer tag — archaeology's output must not seed the next claim's input)
|
|
117
|
-
- the `learning:needs-triage` label
|
|
117
|
+
- the `learning:needs-triage` or `learning:low-confidence` label
|
|
118
118
|
|
|
119
119
|
This is the **scan-side** half of the no-learning-loops guard; `rejection-detection` carries the symmetric **trigger-side** half ("a learning artifact is never a rejection-reflection trigger").
|
|
120
120
|
|
|
@@ -277,6 +277,7 @@ fi
|
|
|
277
277
|
| `source` | no | — | Default PRD source for batch skills (`/lisa:intake`) and arg-less single-PRD skills. One of `"notion"`, `"confluence"`, `"linear"`, `"github"`, `"jira"`. Explicit URLs/keys passed to a skill always win over `source`; this is a default, not a lock. |
|
|
278
278
|
| ~~`projectRulesFile`~~ | — | — | **Retired.** Host-authored rules now live in the fixed, agent-neutral directory `.agents/rules/` — not a configurable file. An existing key is still parsed and preserved so installed projects keep applying, but nothing serves rules from it. See **Host rules** below. |
|
|
279
279
|
| `learnings.file` | no | `.lisa/PROJECT_LEARNINGS.md` | Safe repo-relative Markdown path for the machine-managed learnings ledger, overriding the `.lisa/` default. Rejected if it resolves inside any auto-loaded rules tree (`.claude/rules`, `.cursor/rules`, `.github/instructions`, `.agents/rules`) — the ledger must stay out of eager context. |
|
|
280
|
+
| `learnings.lowConfidence` | no | `human-triage` | How `lisa-persist-learning` submits a low-confidence learning PR. `human-triage` keeps auto-merge off and labels it `learning:needs-triage` for a human to merge or close. `auto-merge` submits it like a high-confidence PR, merging through the project's normal gates, labeled `learning:low-confidence`; `lisa-learnings-audit` then re-reviews those entries first. Any other value is rejected. |
|
|
280
281
|
| `health.schedule` | no | `off` | Health cadence contract: `off`, `daily`, or `weekly`. `lisa sync` populates the default with `_lisaSync.populated` provenance and rejects values outside this closed vocabulary. Runtime results live only at the gitignored `.lisa/health/latest.json`, never in either config file. |
|
|
281
282
|
| `usage` | no | — | Optional token/cost pricing metadata consumed by the `usage-accounting` rule. Missing pricing never blocks a lifecycle flow; Lisa records token counts with `estimated_cost: null` when no trustworthy price source is configured. |
|
|
282
283
|
| `humanGate.humanOnly` | no | `[]` | Decision classes this project reserves for a person, such as `["pricing"]`. A `human_gate` reason naming one (as a whole word) is accepted by the writers and never lifted by the sweeps. Absent, only acts an agent cannot perform qualify as a human gate. `.lisa.config.local.json` replaces the list when it sets one. Read by `scripts/human-gate-act.mjs`; see `ready-role-filing`, "What a human gate is". |
|
|
@@ -64,7 +64,7 @@ Humans act only at explicit exterior gates:
|
|
|
64
64
|
|
|
65
65
|
- flipping a draft they chose to hold back to `prd-ready` / `status:ready`,
|
|
66
66
|
- approving protected deployments (`github.environments.require_approval`),
|
|
67
|
-
- reviewing low-confidence learning PRs (auto-merge off),
|
|
67
|
+
- reviewing low-confidence learning PRs (auto-merge off, unless the project sets `learnings.lowConfidence: "auto-merge"`),
|
|
68
68
|
- answering what intake rejected and raised.
|
|
69
69
|
|
|
70
70
|
Inside a flow, never pause to ask a human whether to proceed — the invocation was the authorization.
|
|
@@ -37,7 +37,7 @@ Return exactly one of:
|
|
|
37
37
|
|
|
38
38
|
## Learning-loop exclusion (no learning about learning)
|
|
39
39
|
|
|
40
|
-
An artifact this flow produced is **never** a rejection-reflection trigger, no matter how it moves. Before classifying as `rejection-reclaim`, exclude items carrying any learning marker — `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` — or the `learning:needs-triage` label. Such items short-circuit to `forward-only` (treated as normal work) so the detector never fires on the flow's own learning PRs/issues.
|
|
40
|
+
An artifact this flow produced is **never** a rejection-reflection trigger, no matter how it moves. Before classifying as `rejection-reclaim`, exclude items carrying any learning marker — `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` — or the `learning:needs-triage` or `learning:low-confidence` label. Such items short-circuit to `forward-only` (treated as normal work) so the detector never fires on the flow's own learning PRs/issues.
|
|
41
41
|
|
|
42
42
|
## Reflect on a `rejection-reclaim`
|
|
43
43
|
|
|
@@ -120,7 +120,7 @@ resolved per the `config-resolution` rule with the `src/sync/registry.ts` `BUILD
|
|
|
120
120
|
|
|
121
121
|
This flow persists learnings via PRs and files upstream issues, so its own artifacts are themselves rejectable. If a learning PR or an auto-filed upstream issue is ever moved backward, a naive detector would fire `rejection-reclaim` on it and reflect on the flow's own output — a learning about learning, recursively.
|
|
122
122
|
|
|
123
|
-
The trigger is therefore **suppressed at the source**. Before an item is classified `rejection-reclaim`, exclude it if it carries any of the learning producer markers — `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` (embedded in the artifact body/PR the same way other Lisa markers are) — or the `learning:needs-triage` label. An excluded item is treated as `forward-only` (normal work); the rejection-reflection path never fires on it, no matter how the artifact moved. (These markers ship with the learning-persistence flow; reference them by name — do not assume their files are present in this branch.)
|
|
123
|
+
The trigger is therefore **suppressed at the source**. Before an item is classified `rejection-reclaim`, exclude it if it carries any of the learning producer markers — `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` (embedded in the artifact body/PR the same way other Lisa markers are) — or the `learning:needs-triage` or `learning:low-confidence` label. An excluded item is treated as `forward-only` (normal work); the rejection-reflection path never fires on it, no matter how the artifact moved. (These markers ship with the learning-persistence flow; reference them by name — do not assume their files are present in this branch.)
|
|
124
124
|
|
|
125
125
|
This is the **trigger-side** half of the no-learning-loops guard. The claim-time archaeology path carries the symmetric **scan-side** exclusion ("a learning PR is never treated as an ancestor").
|
|
126
126
|
|
|
@@ -286,7 +286,7 @@ The lanes compared ALWAYS come from `.lisa.config.json` — `github.labels.build
|
|
|
286
286
|
|
|
287
287
|
### Learning-loop exclusion
|
|
288
288
|
|
|
289
|
-
The same learning-loop exclusion applies, for the same reason and by the same markers: an item carrying `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` or the `learning:needs-triage` label is never classified `automation-reversal`, no matter how it moved. The flow must not remember being corrected about its own learning artifacts.
|
|
289
|
+
The same learning-loop exclusion applies, for the same reason and by the same markers: an item carrying `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` or the `learning:needs-triage` or `learning:low-confidence` label is never classified `automation-reversal`, no matter how it moved. The flow must not remember being corrected about its own learning artifacts.
|
|
290
290
|
|
|
291
291
|
### The rule — a reversal raises the bar, it never resets the clock
|
|
292
292
|
|
|
@@ -498,7 +498,7 @@ A blocker is active if it is open and has no cleared status label. Treat `status
|
|
|
498
498
|
Before the claim mutation, apply `claim-time-guards` — **Value before claim**, or **Worth doing** in `lisa-track` on runtimes without the rule tree (Antigravity). A ready label establishes neither value nor permission to expand scope. Respect the preceding human-hold gate; a declined incidental item consumes this cycle's one processed disposition.
|
|
499
499
|
|
|
500
500
|
|
|
501
|
-
**Rejection detection runs first — before the relabel below.** Per the vendor-neutral `rejection-detection` rule (cite the slug; do not restate its classification table), classify this item at the **top of 3b, BEFORE** the `$READY → $CLAIMED` relabel — after the relabel the current-lane signal is gone. Read the item's Label-Event History from `lisa-github-read-issue` (chronological `LabeledEvent` / `UnlabeledEvent` on the configured `$READY` label) and classify it `rejection-reclaim | forward-only | never-left-ready | unknown`. Lane names come from `.lisa.config.json` (`github.labels.build.*`), never hardcoded. A failing/absent history yields `unknown` and the claim proceeds — detection never blocks the build. Items carrying a learning marker (`[lisa-learning-drop]` / `[lisa-learning-pr]` / `[lisa-learning-upstream-handoff]`) or the `learning:needs-triage` label are never rejection triggers (no learning-about-learning). Carry the classification into the relabel and lifecycle below.
|
|
501
|
+
**Rejection detection runs first — before the relabel below.** Per the vendor-neutral `rejection-detection` rule (cite the slug; do not restate its classification table), classify this item at the **top of 3b, BEFORE** the `$READY → $CLAIMED` relabel — after the relabel the current-lane signal is gone. Read the item's Label-Event History from `lisa-github-read-issue` (chronological `LabeledEvent` / `UnlabeledEvent` on the configured `$READY` label) and classify it `rejection-reclaim | forward-only | never-left-ready | unknown`. Lane names come from `.lisa.config.json` (`github.labels.build.*`), never hardcoded. A failing/absent history yields `unknown` and the claim proceeds — detection never blocks the build. Items carrying a learning marker (`[lisa-learning-drop]` / `[lisa-learning-pr]` / `[lisa-learning-upstream-handoff]`) or the `learning:needs-triage` or `learning:low-confidence` label are never rejection triggers (no learning-about-learning). Carry the classification into the relabel and lifecycle below.
|
|
502
502
|
|
|
503
503
|
**On `rejection-reclaim`, reflect before re-implementing** (per `rejection-detection`): read the rejection evidence through the access layer — the issue comments posted after the backward transition (the QA rejection comment) and the review threads on the rejected PR via `lisa-github-read-issue` — assemble ONE candidate learning (rule, why, provenance linking the rejection comment + rejected PR, evidence links, scope hint, triggering issue, fingerprint `sll4-sha1(rule\ntriggering_issue)[:12]`), and route it to the `lisa-persist-learning` skill. If that skill is absent, record the candidate as a comment carrying a **visible prose line plus** the marker (a bare marker renders as an empty bubble) — `Recorded a candidate learning from this rejection (queued for the judgment gate): <one-line candidate rule>.` then `<!-- [lisa-rejection-candidate] key=<issue>-<transition-ts> -->` — and proceed. Dedupe on `<issue>-<backward-transition-timestamp>` — a second re-claim produces no duplicate. Unreadable/absent evidence → no candidate, still implement.
|
|
504
504
|
|
|
@@ -379,7 +379,7 @@ This gate never blocks a legitimate flat Task/Bug: those have no open children a
|
|
|
379
379
|
Before the claim mutation, apply `claim-time-guards` — **Value before claim**, or **Worth doing** in `lisa-track` on runtimes without the rule tree (Antigravity). A ready label establishes neither value nor permission to expand scope. Respect the preceding human-hold gate; a declined incidental item consumes this cycle's one processed disposition.
|
|
380
380
|
|
|
381
381
|
|
|
382
|
-
**Rejection detection runs first — before the transition below.** Per the vendor-neutral `rejection-detection` rule (cite the slug; do not restate its classification table), classify this ticket at the **top of 3b, BEFORE** the `$READY → $CLAIMED` transition — after the transition the current-status signal is gone. Read the ticket's status changelog via `lisa-atlassian-access operation: changelog key: <TICKET>` and classify it `rejection-reclaim | forward-only | never-left-ready | unknown` (a `rejection-reclaim` is a changelog entry whose `to` is the configured `$READY` status following an earlier `review`/`done`-ward status). Status names come from `.lisa.config.json`, never hardcoded. A failing/absent changelog yields `unknown` and the claim proceeds — detection never blocks the build. Tickets carrying a learning marker (`[lisa-learning-drop]` / `[lisa-learning-pr]` / `[lisa-learning-upstream-handoff]`) or the `learning:needs-triage` label are never rejection triggers (no learning-about-learning). Carry the classification into the transition and lifecycle below.
|
|
382
|
+
**Rejection detection runs first — before the transition below.** Per the vendor-neutral `rejection-detection` rule (cite the slug; do not restate its classification table), classify this ticket at the **top of 3b, BEFORE** the `$READY → $CLAIMED` transition — after the transition the current-status signal is gone. Read the ticket's status changelog via `lisa-atlassian-access operation: changelog key: <TICKET>` and classify it `rejection-reclaim | forward-only | never-left-ready | unknown` (a `rejection-reclaim` is a changelog entry whose `to` is the configured `$READY` status following an earlier `review`/`done`-ward status). Status names come from `.lisa.config.json`, never hardcoded. A failing/absent changelog yields `unknown` and the claim proceeds — detection never blocks the build. Tickets carrying a learning marker (`[lisa-learning-drop]` / `[lisa-learning-pr]` / `[lisa-learning-upstream-handoff]`) or the `learning:needs-triage` or `learning:low-confidence` label are never rejection triggers (no learning-about-learning). Carry the classification into the transition and lifecycle below.
|
|
383
383
|
|
|
384
384
|
**On `rejection-reclaim`, reflect before re-implementing** (per `rejection-detection`): read the rejection evidence through the access layer — the ticket comments posted after the backward transition (the QA rejection comment) via `lisa-atlassian-access operation: read-ticket` / `comment` reads and the review threads on the rejected PR — assemble ONE candidate learning (rule, why, provenance linking the rejection comment + rejected PR, evidence links, scope hint, triggering issue, fingerprint `sll4-sha1(rule\ntriggering_issue)[:12]`), and route it to the `lisa-persist-learning` skill. If that skill is absent, record the candidate via `lisa-atlassian-access operation: comment` as a comment carrying a **visible prose line plus** the marker (a bare marker renders as an empty bubble) — `Recorded a candidate learning from this rejection (queued for the judgment gate): <one-line candidate rule>.` then `<!-- [lisa-rejection-candidate] key=<issue>-<transition-ts> -->` — and proceed. Dedupe on `<issue>-<backward-transition-timestamp>` — a second re-claim produces no duplicate. Unreadable/absent evidence → no candidate, still implement.
|
|
385
385
|
|
|
@@ -92,6 +92,26 @@ ready gate itself — the `work-item-definition-of-ready` rule or the validators
|
|
|
92
92
|
S18 dry-run — rather than one more ledger entry competing for the projection.
|
|
93
93
|
A recurring miss counts once per `[lisa-planning-miss]` note on distinct items.
|
|
94
94
|
|
|
95
|
+
**Auto-merged low-confidence entries are re-reviewed first.** A project
|
|
96
|
+
that sets `learnings.lowConfidence: "auto-merge"` (resolve it with
|
|
97
|
+
`resolveLearningsSettings(config).lowConfidence` from
|
|
98
|
+
`@codyswann/lisa/learnings`) lets `lisa-persist-learning` merge `low`
|
|
99
|
+
learnings without a human reading them (CodySwannGT/lisa#4659). In that mode,
|
|
100
|
+
every parsed ledger entry with `confidence: "low"` that has never been
|
|
101
|
+
confirmed (`last_confirmed` equals `first_learned`) goes to the **front** of
|
|
102
|
+
this run's audit order, oldest first, and has all five evidence axes
|
|
103
|
+
gathered. A CONFIRM bumps `last_confirmed`, which ends the priority, so the
|
|
104
|
+
front of the queue holds only entries nobody has checked yet. The ordering
|
|
105
|
+
changes no cap: PROMOTE/DEMOTE tickets for these entries count toward
|
|
106
|
+
`max_candidates` like any other. Low confidence is the reason an entry is
|
|
107
|
+
checked first, never evidence for a change: RETIRE or DEMOTE still needs
|
|
108
|
+
proof (a contradiction, staleness, a mechanical owner), and Recurrence
|
|
109
|
+
evidence that it applied is a CONFIRM. Name these entries in the run proof
|
|
110
|
+
(`low-confidence re-reviewed: <ids>`), so an operator can see that the
|
|
111
|
+
skipped human gate was paid for here. Under the default `human-triage` a
|
|
112
|
+
`low` entry reached the ledger only through a human merge, so it keeps the
|
|
113
|
+
normal order.
|
|
114
|
+
|
|
95
115
|
**The eager tier is audited every run** — including
|
|
96
116
|
**Lisa's own shipped eager rules**, not just host additions. Admission is demotion-biased and
|
|
97
117
|
earned only by repeated-miss evidence (see the `promotion-contract` rule);
|
|
@@ -106,7 +126,10 @@ evidence:
|
|
|
106
126
|
- All learning-machinery artifacts: items carrying `[lisa-learning-drop]`,
|
|
107
127
|
`[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` (any
|
|
108
128
|
`[lisa-learning-*]` marker), `[lisa-rejection-candidate]`, or
|
|
109
|
-
`[lisa-archaeology-candidate]`, and the `learning:needs-triage`
|
|
129
|
+
`[lisa-archaeology-candidate]`, and the `learning:needs-triage` and
|
|
130
|
+
`learning:low-confidence` labels. The label exclusion covers the PR
|
|
131
|
+
artifact only; the ledger entry it merged is still audited (see
|
|
132
|
+
**Auto-merged low-confidence entries** above).
|
|
110
133
|
|
|
111
134
|
## Scope
|
|
112
135
|
|
|
@@ -382,7 +382,7 @@ Before the claim mutation, apply `claim-time-guards` — **Value before claim**,
|
|
|
382
382
|
|
|
383
383
|
**Rejection detection runs first — before the transition below.** Per the vendor-neutral `rejection-detection` rule (cite the slug; do not restate its classification table), classify this Issue at the **top of 3b, BEFORE** the `$READY → $CLAIMED` transition — afterwards the current-lane signal is gone. Read the Issue's history via `lisa-linear-access operation: history id: <ISSUE-ID>`, keyed on **workflow-state** history, and classify it `rejection-reclaim | forward-only | never-left-ready | unknown` (a `rejection-reclaim` is a move back into `$READY` from a later lane). State names come from `.lisa.config.json`, never hardcoded.
|
|
384
384
|
|
|
385
|
-
> Reading state history is strictly simpler than the label history this used to key on: `IssueHistory` inlines `fromState.name` / `toState.name` on each node, so the transition is read directly with no label-ID resolution against `list-issue-labels` and no reconstruction from `addedLabelIds`/`removedLabelIds` deltas. That reconstruction was lossy — the deltas carry no prior/next full set — which is one more reason the build lane moved to states. A failing/absent history yields `unknown` and the claim proceeds — detection never blocks the build. Issues carrying a learning marker (`[lisa-learning-drop]` / `[lisa-learning-pr]` / `[lisa-learning-upstream-handoff]`) or the `learning:needs-triage` label are never rejection triggers (no learning-about-learning). Carry the classification into the transition and lifecycle below.
|
|
385
|
+
> Reading state history is strictly simpler than the label history this used to key on: `IssueHistory` inlines `fromState.name` / `toState.name` on each node, so the transition is read directly with no label-ID resolution against `list-issue-labels` and no reconstruction from `addedLabelIds`/`removedLabelIds` deltas. That reconstruction was lossy — the deltas carry no prior/next full set — which is one more reason the build lane moved to states. A failing/absent history yields `unknown` and the claim proceeds — detection never blocks the build. Issues carrying a learning marker (`[lisa-learning-drop]` / `[lisa-learning-pr]` / `[lisa-learning-upstream-handoff]`) or the `learning:needs-triage` or `learning:low-confidence` label are never rejection triggers (no learning-about-learning). Carry the classification into the transition and lifecycle below.
|
|
386
386
|
|
|
387
387
|
**On `rejection-reclaim`, reflect before re-implementing** (per `rejection-detection`): read the rejection evidence through the access layer — the Issue comments posted after the backward transition (the QA rejection comment) via `lisa-linear-access operation: list-comments` and the review threads on the rejected PR — assemble ONE candidate learning (rule, why, provenance linking the rejection comment + rejected PR, evidence links, scope hint, triggering issue, fingerprint `sll4-sha1(rule\ntriggering_issue)[:12]`), and route it to the `lisa-persist-learning` skill. If that skill is absent, record the candidate via `lisa-linear-access operation: save-comment` as a comment carrying a **visible prose line plus** the marker (a bare marker renders as an empty bubble) — `Recorded a candidate learning from this rejection (queued for the judgment gate): <one-line candidate rule>.` then `<!-- [lisa-rejection-candidate] key=<issue>-<transition-ts> -->` — and proceed. Dedupe on `<issue>-<backward-transition-timestamp>` — a second re-claim produces no duplicate. Unreadable/absent evidence → no candidate, still implement.
|
|
388
388
|
|
|
@@ -235,15 +235,40 @@ No learning content is ever committed without a PR — there is no other write p
|
|
|
235
235
|
Stage: <planning_stage>. The worker could not find: "<quoted>". Planning skills read this rule back through the bounded projection (`lisa-task-decomposition` step 0).
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
-
For a **low-confidence** PR (other than a `wrongly-escalated` one, which no human merges — step 6), the body must additionally end with
|
|
238
|
+
For a **low-confidence** PR (other than a `wrongly-escalated` one, which no human merges — step 6), the body must additionally end with one fixed line chosen by the step-6 routing mode. Under `human-triage` (the default) it is this decision-framing line, so the human at the gate knows exactly what merging means:
|
|
239
239
|
|
|
240
240
|
```markdown
|
|
241
241
|
**Merge** to adopt this rule into every future session for all six coding agents; **close** to discard it.
|
|
242
242
|
```
|
|
243
243
|
|
|
244
|
-
6
|
|
244
|
+
Under `auto-merge` nobody stands at that gate, so the line instead says why the PR merges unattended and who re-checks it (resolve the mode with the step-6 command before writing the body):
|
|
245
|
+
|
|
246
|
+
```markdown
|
|
247
|
+
Low-confidence learning: merges through the normal gates under `learnings.lowConfidence: "auto-merge"`; the gardener (`lisa-learnings-audit`) re-reviews it first.
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
6. **Confidence routing.** A `signal: wrongly-escalated` candidate always takes its own bullet below, whatever its confidence and whatever this setting says. Any other `low` verdict routes by the project's `learnings.lowConfidence` setting. Resolve it through the same executable contract as the ledger path in step 2 — never by reading `.lisa.config.json` by hand. A value other than `"auto-merge"` or `"human-triage"` is rejected by the config read itself, so it already stopped the run at step 2 and nothing was persisted:
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
LOW_CONFIDENCE=$(node -e 'import("@codyswann/lisa/learnings").then(async m => { const c = await m.readProjectConfig(process.cwd()); console.log(m.resolveLearningsSettings(c).lowConfidence); })')
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
It prints `human-triage` when the key is absent — the default, unchanged — or `auto-merge` when the project opted in.
|
|
257
|
+
|
|
245
258
|
- **`high`** → submit through `lisa-git-submit-pr` with its defaults: auto-merge ON, merging through the project's normal gates.
|
|
246
|
-
- **`low`** → submit through `lisa-git-submit-pr` with
|
|
259
|
+
- **`low` + `auto-merge`** → submit through `lisa-git-submit-pr` with its defaults, exactly like `high`: auto-merge ON, merging through the project's normal gates — the gates are not skipped, only the human wait is. This is for operators who involve humans only when an agent is genuinely stuck; the human gate's purpose is still covered, because the ledger is a cold, bounded projection, a planning-miss rule only adds a planning check, and the gardener can retire or demote a wrong entry. Keep the entry findable without blocking the merge: the ledger entry already carries `confidence: low` (step 3), and the PR gets the `learning:low-confidence` label (never `learning:needs-triage`, which means a human still has to act), created idempotently first:
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
gh label create "learning:low-confidence" \
|
|
263
|
+
--description "Low-confidence learning auto-merged; gardener re-reviews first" \
|
|
264
|
+
--color C5DEF5 || true
|
|
265
|
+
gh label list --search "learning:low-confidence" --json name \
|
|
266
|
+
--jq '[.[].name] | contains(["learning:low-confidence"])' # must print true
|
|
267
|
+
gh pr edit <pr> --add-label "learning:low-confidence"
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
Labeling never blocks: if it fails, report it in the run summary and leave the PR armed. The run summary names the routing mode used.
|
|
271
|
+
- **`low` + `human-triage`** (the default) → submit through `lisa-git-submit-pr` with `auto_merge=false` (drives the PR to green-and-open `awaiting-human`, never merging — even on repos that disallow auto-merge). Then apply the human-triage label, creating it idempotently first (the `lisa-drive-pr-to-merge` label pattern — `|| true` tolerates only already-exists, so verify):
|
|
247
272
|
|
|
248
273
|
```bash
|
|
249
274
|
gh label create "learning:needs-triage" \
|
|
@@ -67,7 +67,7 @@ A missing, ambiguous, contradictory or undecided requirement is not always a one
|
|
|
67
67
|
|
|
68
68
|
**The rule is the check planning should have run, never the answer.** Rewrite the candidate's `rule` as `Planning (<stage>): <check>` — e.g. `Planning (decomposition): an export ticket must name its report format before it is Ready.` — never `Exports use CSV.`, which only answers the one ticket and belongs on the item. A rule that only makes sense for this one item is not a check: drop it as `misunderstanding/spec-gap`. The `why` names the stage that let it through and quotes what the worker could not find. The prefix is load-bearing: planning skills select these entries from the bounded projection by it (`lisa-task-decomposition` step 0).
|
|
69
69
|
|
|
70
|
-
**Recurrence never blocks a first occurrence.** A first-occurrence planning miss persists at `low` confidence, so its persistence PR waits for a human to merge it. That is a deliberate, bounded exception to Step 2's recurrence requirement. The hostile default exists because a plausible-but-wrong rule would reach every future session unattended; a `low` rule
|
|
70
|
+
**Recurrence never blocks a first occurrence.** A first-occurrence planning miss persists at `low` confidence, so by default its persistence PR waits for a human to merge it. That is a deliberate, bounded exception to Step 2's recurrence requirement. The hostile default exists because a plausible-but-wrong rule would reach every future session unattended; a `low` rule does not by default, because a human reads it at the gate first. A project that opts into `learnings.lowConfidence: "auto-merge"` accepts that a `low` rule lands unread, in exchange for the gardener re-reviewing those entries first. Meanwhile the signal is unusually strong and unusually rare: each occurrence already cost the human interruption the gate exists to prevent, so waiting for a second occurrence costs a second interruption and teaches nothing new. And the rule only adds a check to planning — a wrong one costs a planning question, not changed build behaviour. With recurrence evidence (another dispatched item that stopped on the same class of gap), Step 4 may grant `high`.
|
|
71
71
|
|
|
72
72
|
### Step 2.6: Overruled escalation (`signal: wrongly-escalated`)
|
|
73
73
|
|
|
@@ -98,7 +98,9 @@ When multiple classifications seem defensible, choose the one that does **not**
|
|
|
98
98
|
### Step 4: Confidence (durable-learning and planning-miss)
|
|
99
99
|
|
|
100
100
|
- **`high`** — the causal story is unambiguous and the recurrence citations are directly on point. The persistence PR may merge through the project's normal gates unattended.
|
|
101
|
-
- **`low`** — durable on the evidence, but the causal chain has an inferential step or the recurrence evidence is indirect.
|
|
101
|
+
- **`low`** — durable on the evidence, but the causal chain has an inferential step or the recurrence evidence is indirect. By default the persistence PR waits for a human (auto-merge off + `learning:needs-triage`). A project that sets `learnings.lowConfidence: "auto-merge"` instead merges it through its normal gates, labeled `learning:low-confidence` so the gardener re-reviews it first. A `wrongly-escalated` candidate never waits for a human, whatever this setting says (Step 2.6).
|
|
102
|
+
|
|
103
|
+
Grade confidence on the evidence alone. The project's `learnings.lowConfidence` setting decides only what happens to a `low` PR; it never moves a candidate between `high` and `low`, so do not read it before grading.
|
|
102
104
|
|
|
103
105
|
If you cannot justify `high` in one sentence a non-engineer would accept, it is `low`. A `planning-miss` with no recurrence citation is always `low`.
|
|
104
106
|
|
|
@@ -147,7 +149,7 @@ Also echo back the candidate's `fingerprint` and `triggering_issue` so the calle
|
|
|
147
149
|
## Important Reminders
|
|
148
150
|
|
|
149
151
|
1. **Most candidates DROP** — a session where you persist everything you saw is a failed gate, not a productive one.
|
|
150
|
-
2. **No recurrence citation, no durable-learning** — this is absolute; there are no exceptions for "obviously true" rules. A `planning-miss` is not a durable-learning: without recurrence it persists only at `low
|
|
152
|
+
2. **No recurrence citation, no durable-learning** — this is absolute; there are no exceptions for "obviously true" rules. A `planning-miss` is not a durable-learning: without recurrence it persists only at `low` (behind a human merge unless the project set `learnings.lowConfidence: "auto-merge"`), and the recurrence requirement never blocks a first occurrence of it.
|
|
151
153
|
3. **Cite what you relied on** — a verdict without `cited_evidence` is invalid; re-run the evaluation.
|
|
152
154
|
4. **`lisa-upstream` never becomes a local rule** — classify and hand off; filing the upstream ticket is the caller's flow, not yours.
|
|
153
155
|
5. **You classify; you do not write** — never touch the learnings surface, post comments, or open PRs. The caller (`lisa-persist-learning`) owns all side effects.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "Route a candidate learning through the hostile-default learning-judge gate and act on the verdict: leave a dropped-with-reason note on the triggering issue (drop), file the upstream Lisa ticket automatically with marker dedupe, evidence, and a per-run cap (lisa-upstream), or persist a durable learning via a confidence-routed PR that touches only the learnings surface — auto-merge on for high confidence, auto-merge off plus the learning:needs-triage label for low confidence. Idempotent via marker dedupe."
|
|
2
|
+
description: "Route a candidate learning through the hostile-default learning-judge gate and act on the verdict: leave a dropped-with-reason note on the triggering issue (drop), file the upstream Lisa ticket automatically with marker dedupe, evidence, and a per-run cap (lisa-upstream), or persist a durable learning via a confidence-routed PR that touches only the learnings surface — auto-merge on for high confidence, auto-merge off plus the learning:needs-triage label for low confidence (unless learnings.lowConfidence is auto-merge). Idempotent via marker dedupe."
|
|
3
3
|
argument-hint: "<candidate-json-or-fields>"
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -35,7 +35,7 @@ Return exactly one of:
|
|
|
35
35
|
|
|
36
36
|
## Learning-loop exclusion (scan-side)
|
|
37
37
|
|
|
38
|
-
An artifact this flow produced is **never** an ancestor. Exclude anything carrying `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]`, `[lisa-rejection-candidate]`, or `[lisa-archaeology-candidate]` markers, or the `learning:needs-triage` label.
|
|
38
|
+
An artifact this flow produced is **never** an ancestor. Exclude anything carrying `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]`, `[lisa-rejection-candidate]`, or `[lisa-archaeology-candidate]` markers, or the `learning:needs-triage` or `learning:low-confidence` label.
|
|
39
39
|
|
|
40
40
|
## Cost budget — never block the claim
|
|
41
41
|
|
|
@@ -119,7 +119,7 @@ Before any candidate is promoted to ancestor, exclude every artifact carrying an
|
|
|
119
119
|
- `[lisa-learning-upstream-handoff]`
|
|
120
120
|
- `[lisa-rejection-candidate]`
|
|
121
121
|
- `[lisa-archaeology-candidate]` (this rule's own producer tag — archaeology's output must not seed the next claim's input)
|
|
122
|
-
- the `learning:needs-triage` label
|
|
122
|
+
- the `learning:needs-triage` or `learning:low-confidence` label
|
|
123
123
|
|
|
124
124
|
This is the **scan-side** half of the no-learning-loops guard; `rejection-detection` carries the symmetric **trigger-side** half ("a learning artifact is never a rejection-reflection trigger").
|
|
125
125
|
|
|
@@ -282,6 +282,7 @@ fi
|
|
|
282
282
|
| `source` | no | — | Default PRD source for batch skills (`/lisa:intake`) and arg-less single-PRD skills. One of `"notion"`, `"confluence"`, `"linear"`, `"github"`, `"jira"`. Explicit URLs/keys passed to a skill always win over `source`; this is a default, not a lock. |
|
|
283
283
|
| ~~`projectRulesFile`~~ | — | — | **Retired.** Host-authored rules now live in the fixed, agent-neutral directory `.agents/rules/` — not a configurable file. An existing key is still parsed and preserved so installed projects keep applying, but nothing serves rules from it. See **Host rules** below. |
|
|
284
284
|
| `learnings.file` | no | `.lisa/PROJECT_LEARNINGS.md` | Safe repo-relative Markdown path for the machine-managed learnings ledger, overriding the `.lisa/` default. Rejected if it resolves inside any auto-loaded rules tree (`.claude/rules`, `.cursor/rules`, `.github/instructions`, `.agents/rules`) — the ledger must stay out of eager context. |
|
|
285
|
+
| `learnings.lowConfidence` | no | `human-triage` | How `lisa-persist-learning` submits a low-confidence learning PR. `human-triage` keeps auto-merge off and labels it `learning:needs-triage` for a human to merge or close. `auto-merge` submits it like a high-confidence PR, merging through the project's normal gates, labeled `learning:low-confidence`; `lisa-learnings-audit` then re-reviews those entries first. Any other value is rejected. |
|
|
285
286
|
| `health.schedule` | no | `off` | Health cadence contract: `off`, `daily`, or `weekly`. `lisa sync` populates the default with `_lisaSync.populated` provenance and rejects values outside this closed vocabulary. Runtime results live only at the gitignored `.lisa/health/latest.json`, never in either config file. |
|
|
286
287
|
| `usage` | no | — | Optional token/cost pricing metadata consumed by the `usage-accounting` rule. Missing pricing never blocks a lifecycle flow; Lisa records token counts with `estimated_cost: null` when no trustworthy price source is configured. |
|
|
287
288
|
| `humanGate.humanOnly` | no | `[]` | Decision classes this project reserves for a person, such as `["pricing"]`. A `human_gate` reason naming one (as a whole word) is accepted by the writers and never lifted by the sweeps. Absent, only acts an agent cannot perform qualify as a human gate. `.lisa.config.local.json` replaces the list when it sets one. Read by `scripts/human-gate-act.mjs`; see `ready-role-filing`, "What a human gate is". |
|
|
@@ -69,7 +69,7 @@ Humans act only at explicit exterior gates:
|
|
|
69
69
|
|
|
70
70
|
- flipping a draft they chose to hold back to `prd-ready` / `status:ready`,
|
|
71
71
|
- approving protected deployments (`github.environments.require_approval`),
|
|
72
|
-
- reviewing low-confidence learning PRs (auto-merge off),
|
|
72
|
+
- reviewing low-confidence learning PRs (auto-merge off, unless the project sets `learnings.lowConfidence: "auto-merge"`),
|
|
73
73
|
- answering what intake rejected and raised.
|
|
74
74
|
|
|
75
75
|
Inside a flow, never pause to ask a human whether to proceed — the invocation was the authorization.
|
|
@@ -42,7 +42,7 @@ Return exactly one of:
|
|
|
42
42
|
|
|
43
43
|
## Learning-loop exclusion (no learning about learning)
|
|
44
44
|
|
|
45
|
-
An artifact this flow produced is **never** a rejection-reflection trigger, no matter how it moves. Before classifying as `rejection-reclaim`, exclude items carrying any learning marker — `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` — or the `learning:needs-triage` label. Such items short-circuit to `forward-only` (treated as normal work) so the detector never fires on the flow's own learning PRs/issues.
|
|
45
|
+
An artifact this flow produced is **never** a rejection-reflection trigger, no matter how it moves. Before classifying as `rejection-reclaim`, exclude items carrying any learning marker — `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` — or the `learning:needs-triage` or `learning:low-confidence` label. Such items short-circuit to `forward-only` (treated as normal work) so the detector never fires on the flow's own learning PRs/issues.
|
|
46
46
|
|
|
47
47
|
## Reflect on a `rejection-reclaim`
|
|
48
48
|
|
|
@@ -125,7 +125,7 @@ resolved per the `config-resolution` rule with the `src/sync/registry.ts` `BUILD
|
|
|
125
125
|
|
|
126
126
|
This flow persists learnings via PRs and files upstream issues, so its own artifacts are themselves rejectable. If a learning PR or an auto-filed upstream issue is ever moved backward, a naive detector would fire `rejection-reclaim` on it and reflect on the flow's own output — a learning about learning, recursively.
|
|
127
127
|
|
|
128
|
-
The trigger is therefore **suppressed at the source**. Before an item is classified `rejection-reclaim`, exclude it if it carries any of the learning producer markers — `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` (embedded in the artifact body/PR the same way other Lisa markers are) — or the `learning:needs-triage` label. An excluded item is treated as `forward-only` (normal work); the rejection-reflection path never fires on it, no matter how the artifact moved. (These markers ship with the learning-persistence flow; reference them by name — do not assume their files are present in this branch.)
|
|
128
|
+
The trigger is therefore **suppressed at the source**. Before an item is classified `rejection-reclaim`, exclude it if it carries any of the learning producer markers — `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` (embedded in the artifact body/PR the same way other Lisa markers are) — or the `learning:needs-triage` or `learning:low-confidence` label. An excluded item is treated as `forward-only` (normal work); the rejection-reflection path never fires on it, no matter how the artifact moved. (These markers ship with the learning-persistence flow; reference them by name — do not assume their files are present in this branch.)
|
|
129
129
|
|
|
130
130
|
This is the **trigger-side** half of the no-learning-loops guard. The claim-time archaeology path carries the symmetric **scan-side** exclusion ("a learning PR is never treated as an ancestor").
|
|
131
131
|
|
|
@@ -291,7 +291,7 @@ The lanes compared ALWAYS come from `.lisa.config.json` — `github.labels.build
|
|
|
291
291
|
|
|
292
292
|
### Learning-loop exclusion
|
|
293
293
|
|
|
294
|
-
The same learning-loop exclusion applies, for the same reason and by the same markers: an item carrying `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` or the `learning:needs-triage` label is never classified `automation-reversal`, no matter how it moved. The flow must not remember being corrected about its own learning artifacts.
|
|
294
|
+
The same learning-loop exclusion applies, for the same reason and by the same markers: an item carrying `[lisa-learning-drop]`, `[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` or the `learning:needs-triage` or `learning:low-confidence` label is never classified `automation-reversal`, no matter how it moved. The flow must not remember being corrected about its own learning artifacts.
|
|
295
295
|
|
|
296
296
|
### The rule — a reversal raises the bar, it never resets the clock
|
|
297
297
|
|
|
@@ -498,7 +498,7 @@ A blocker is active if it is open and has no cleared status label. Treat `status
|
|
|
498
498
|
Before the claim mutation, apply `claim-time-guards` — **Value before claim**, or **Worth doing** in `lisa-track` on runtimes without the rule tree (Antigravity). A ready label establishes neither value nor permission to expand scope. Respect the preceding human-hold gate; a declined incidental item consumes this cycle's one processed disposition.
|
|
499
499
|
|
|
500
500
|
|
|
501
|
-
**Rejection detection runs first — before the relabel below.** Per the vendor-neutral `rejection-detection` rule (cite the slug; do not restate its classification table), classify this item at the **top of 3b, BEFORE** the `$READY → $CLAIMED` relabel — after the relabel the current-lane signal is gone. Read the item's Label-Event History from `lisa-github-read-issue` (chronological `LabeledEvent` / `UnlabeledEvent` on the configured `$READY` label) and classify it `rejection-reclaim | forward-only | never-left-ready | unknown`. Lane names come from `.lisa.config.json` (`github.labels.build.*`), never hardcoded. A failing/absent history yields `unknown` and the claim proceeds — detection never blocks the build. Items carrying a learning marker (`[lisa-learning-drop]` / `[lisa-learning-pr]` / `[lisa-learning-upstream-handoff]`) or the `learning:needs-triage` label are never rejection triggers (no learning-about-learning). Carry the classification into the relabel and lifecycle below.
|
|
501
|
+
**Rejection detection runs first — before the relabel below.** Per the vendor-neutral `rejection-detection` rule (cite the slug; do not restate its classification table), classify this item at the **top of 3b, BEFORE** the `$READY → $CLAIMED` relabel — after the relabel the current-lane signal is gone. Read the item's Label-Event History from `lisa-github-read-issue` (chronological `LabeledEvent` / `UnlabeledEvent` on the configured `$READY` label) and classify it `rejection-reclaim | forward-only | never-left-ready | unknown`. Lane names come from `.lisa.config.json` (`github.labels.build.*`), never hardcoded. A failing/absent history yields `unknown` and the claim proceeds — detection never blocks the build. Items carrying a learning marker (`[lisa-learning-drop]` / `[lisa-learning-pr]` / `[lisa-learning-upstream-handoff]`) or the `learning:needs-triage` or `learning:low-confidence` label are never rejection triggers (no learning-about-learning). Carry the classification into the relabel and lifecycle below.
|
|
502
502
|
|
|
503
503
|
**On `rejection-reclaim`, reflect before re-implementing** (per `rejection-detection`): read the rejection evidence through the access layer — the issue comments posted after the backward transition (the QA rejection comment) and the review threads on the rejected PR via `lisa-github-read-issue` — assemble ONE candidate learning (rule, why, provenance linking the rejection comment + rejected PR, evidence links, scope hint, triggering issue, fingerprint `sll4-sha1(rule\ntriggering_issue)[:12]`), and route it to the `lisa-persist-learning` skill. If that skill is absent, record the candidate as a comment carrying a **visible prose line plus** the marker (a bare marker renders as an empty bubble) — `Recorded a candidate learning from this rejection (queued for the judgment gate): <one-line candidate rule>.` then `<!-- [lisa-rejection-candidate] key=<issue>-<transition-ts> -->` — and proceed. Dedupe on `<issue>-<backward-transition-timestamp>` — a second re-claim produces no duplicate. Unreadable/absent evidence → no candidate, still implement.
|
|
504
504
|
|
|
@@ -379,7 +379,7 @@ This gate never blocks a legitimate flat Task/Bug: those have no open children a
|
|
|
379
379
|
Before the claim mutation, apply `claim-time-guards` — **Value before claim**, or **Worth doing** in `lisa-track` on runtimes without the rule tree (Antigravity). A ready label establishes neither value nor permission to expand scope. Respect the preceding human-hold gate; a declined incidental item consumes this cycle's one processed disposition.
|
|
380
380
|
|
|
381
381
|
|
|
382
|
-
**Rejection detection runs first — before the transition below.** Per the vendor-neutral `rejection-detection` rule (cite the slug; do not restate its classification table), classify this ticket at the **top of 3b, BEFORE** the `$READY → $CLAIMED` transition — after the transition the current-status signal is gone. Read the ticket's status changelog via `lisa-atlassian-access operation: changelog key: <TICKET>` and classify it `rejection-reclaim | forward-only | never-left-ready | unknown` (a `rejection-reclaim` is a changelog entry whose `to` is the configured `$READY` status following an earlier `review`/`done`-ward status). Status names come from `.lisa.config.json`, never hardcoded. A failing/absent changelog yields `unknown` and the claim proceeds — detection never blocks the build. Tickets carrying a learning marker (`[lisa-learning-drop]` / `[lisa-learning-pr]` / `[lisa-learning-upstream-handoff]`) or the `learning:needs-triage` label are never rejection triggers (no learning-about-learning). Carry the classification into the transition and lifecycle below.
|
|
382
|
+
**Rejection detection runs first — before the transition below.** Per the vendor-neutral `rejection-detection` rule (cite the slug; do not restate its classification table), classify this ticket at the **top of 3b, BEFORE** the `$READY → $CLAIMED` transition — after the transition the current-status signal is gone. Read the ticket's status changelog via `lisa-atlassian-access operation: changelog key: <TICKET>` and classify it `rejection-reclaim | forward-only | never-left-ready | unknown` (a `rejection-reclaim` is a changelog entry whose `to` is the configured `$READY` status following an earlier `review`/`done`-ward status). Status names come from `.lisa.config.json`, never hardcoded. A failing/absent changelog yields `unknown` and the claim proceeds — detection never blocks the build. Tickets carrying a learning marker (`[lisa-learning-drop]` / `[lisa-learning-pr]` / `[lisa-learning-upstream-handoff]`) or the `learning:needs-triage` or `learning:low-confidence` label are never rejection triggers (no learning-about-learning). Carry the classification into the transition and lifecycle below.
|
|
383
383
|
|
|
384
384
|
**On `rejection-reclaim`, reflect before re-implementing** (per `rejection-detection`): read the rejection evidence through the access layer — the ticket comments posted after the backward transition (the QA rejection comment) via `lisa-atlassian-access operation: read-ticket` / `comment` reads and the review threads on the rejected PR — assemble ONE candidate learning (rule, why, provenance linking the rejection comment + rejected PR, evidence links, scope hint, triggering issue, fingerprint `sll4-sha1(rule\ntriggering_issue)[:12]`), and route it to the `lisa-persist-learning` skill. If that skill is absent, record the candidate via `lisa-atlassian-access operation: comment` as a comment carrying a **visible prose line plus** the marker (a bare marker renders as an empty bubble) — `Recorded a candidate learning from this rejection (queued for the judgment gate): <one-line candidate rule>.` then `<!-- [lisa-rejection-candidate] key=<issue>-<transition-ts> -->` — and proceed. Dedupe on `<issue>-<backward-transition-timestamp>` — a second re-claim produces no duplicate. Unreadable/absent evidence → no candidate, still implement.
|
|
385
385
|
|
|
@@ -92,6 +92,26 @@ ready gate itself — the `work-item-definition-of-ready` rule or the validators
|
|
|
92
92
|
S18 dry-run — rather than one more ledger entry competing for the projection.
|
|
93
93
|
A recurring miss counts once per `[lisa-planning-miss]` note on distinct items.
|
|
94
94
|
|
|
95
|
+
**Auto-merged low-confidence entries are re-reviewed first.** A project
|
|
96
|
+
that sets `learnings.lowConfidence: "auto-merge"` (resolve it with
|
|
97
|
+
`resolveLearningsSettings(config).lowConfidence` from
|
|
98
|
+
`@codyswann/lisa/learnings`) lets `lisa-persist-learning` merge `low`
|
|
99
|
+
learnings without a human reading them (CodySwannGT/lisa#4659). In that mode,
|
|
100
|
+
every parsed ledger entry with `confidence: "low"` that has never been
|
|
101
|
+
confirmed (`last_confirmed` equals `first_learned`) goes to the **front** of
|
|
102
|
+
this run's audit order, oldest first, and has all five evidence axes
|
|
103
|
+
gathered. A CONFIRM bumps `last_confirmed`, which ends the priority, so the
|
|
104
|
+
front of the queue holds only entries nobody has checked yet. The ordering
|
|
105
|
+
changes no cap: PROMOTE/DEMOTE tickets for these entries count toward
|
|
106
|
+
`max_candidates` like any other. Low confidence is the reason an entry is
|
|
107
|
+
checked first, never evidence for a change: RETIRE or DEMOTE still needs
|
|
108
|
+
proof (a contradiction, staleness, a mechanical owner), and Recurrence
|
|
109
|
+
evidence that it applied is a CONFIRM. Name these entries in the run proof
|
|
110
|
+
(`low-confidence re-reviewed: <ids>`), so an operator can see that the
|
|
111
|
+
skipped human gate was paid for here. Under the default `human-triage` a
|
|
112
|
+
`low` entry reached the ledger only through a human merge, so it keeps the
|
|
113
|
+
normal order.
|
|
114
|
+
|
|
95
115
|
**The eager tier is audited every run** — including
|
|
96
116
|
**Lisa's own shipped eager rules**, not just host additions. Admission is demotion-biased and
|
|
97
117
|
earned only by repeated-miss evidence (see the `promotion-contract` rule);
|
|
@@ -106,7 +126,10 @@ evidence:
|
|
|
106
126
|
- All learning-machinery artifacts: items carrying `[lisa-learning-drop]`,
|
|
107
127
|
`[lisa-learning-pr]`, `[lisa-learning-upstream-handoff]` (any
|
|
108
128
|
`[lisa-learning-*]` marker), `[lisa-rejection-candidate]`, or
|
|
109
|
-
`[lisa-archaeology-candidate]`, and the `learning:needs-triage`
|
|
129
|
+
`[lisa-archaeology-candidate]`, and the `learning:needs-triage` and
|
|
130
|
+
`learning:low-confidence` labels. The label exclusion covers the PR
|
|
131
|
+
artifact only; the ledger entry it merged is still audited (see
|
|
132
|
+
**Auto-merged low-confidence entries** above).
|
|
110
133
|
|
|
111
134
|
## Scope
|
|
112
135
|
|
|
@@ -382,7 +382,7 @@ Before the claim mutation, apply `claim-time-guards` — **Value before claim**,
|
|
|
382
382
|
|
|
383
383
|
**Rejection detection runs first — before the transition below.** Per the vendor-neutral `rejection-detection` rule (cite the slug; do not restate its classification table), classify this Issue at the **top of 3b, BEFORE** the `$READY → $CLAIMED` transition — afterwards the current-lane signal is gone. Read the Issue's history via `lisa-linear-access operation: history id: <ISSUE-ID>`, keyed on **workflow-state** history, and classify it `rejection-reclaim | forward-only | never-left-ready | unknown` (a `rejection-reclaim` is a move back into `$READY` from a later lane). State names come from `.lisa.config.json`, never hardcoded.
|
|
384
384
|
|
|
385
|
-
> Reading state history is strictly simpler than the label history this used to key on: `IssueHistory` inlines `fromState.name` / `toState.name` on each node, so the transition is read directly with no label-ID resolution against `list-issue-labels` and no reconstruction from `addedLabelIds`/`removedLabelIds` deltas. That reconstruction was lossy — the deltas carry no prior/next full set — which is one more reason the build lane moved to states. A failing/absent history yields `unknown` and the claim proceeds — detection never blocks the build. Issues carrying a learning marker (`[lisa-learning-drop]` / `[lisa-learning-pr]` / `[lisa-learning-upstream-handoff]`) or the `learning:needs-triage` label are never rejection triggers (no learning-about-learning). Carry the classification into the transition and lifecycle below.
|
|
385
|
+
> Reading state history is strictly simpler than the label history this used to key on: `IssueHistory` inlines `fromState.name` / `toState.name` on each node, so the transition is read directly with no label-ID resolution against `list-issue-labels` and no reconstruction from `addedLabelIds`/`removedLabelIds` deltas. That reconstruction was lossy — the deltas carry no prior/next full set — which is one more reason the build lane moved to states. A failing/absent history yields `unknown` and the claim proceeds — detection never blocks the build. Issues carrying a learning marker (`[lisa-learning-drop]` / `[lisa-learning-pr]` / `[lisa-learning-upstream-handoff]`) or the `learning:needs-triage` or `learning:low-confidence` label are never rejection triggers (no learning-about-learning). Carry the classification into the transition and lifecycle below.
|
|
386
386
|
|
|
387
387
|
**On `rejection-reclaim`, reflect before re-implementing** (per `rejection-detection`): read the rejection evidence through the access layer — the Issue comments posted after the backward transition (the QA rejection comment) via `lisa-linear-access operation: list-comments` and the review threads on the rejected PR — assemble ONE candidate learning (rule, why, provenance linking the rejection comment + rejected PR, evidence links, scope hint, triggering issue, fingerprint `sll4-sha1(rule\ntriggering_issue)[:12]`), and route it to the `lisa-persist-learning` skill. If that skill is absent, record the candidate via `lisa-linear-access operation: save-comment` as a comment carrying a **visible prose line plus** the marker (a bare marker renders as an empty bubble) — `Recorded a candidate learning from this rejection (queued for the judgment gate): <one-line candidate rule>.` then `<!-- [lisa-rejection-candidate] key=<issue>-<transition-ts> -->` — and proceed. Dedupe on `<issue>-<backward-transition-timestamp>` — a second re-claim produces no duplicate. Unreadable/absent evidence → no candidate, still implement.
|
|
388
388
|
|