@codyswann/lisa 4.87.13 → 4.88.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/all/copy-overwrite/scripts/check-third-party-review-evidence.mjs +40 -12
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +4 -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/nightly-e2e-guard-behavior-certificate.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +33 -14
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/sync/lifecycle-defaults.d.ts +1 -0
- package/dist/sync/lifecycle-defaults.d.ts.map +1 -1
- package/dist/sync/lifecycle-defaults.js +3 -0
- package/dist/sync/lifecycle-defaults.js.map +1 -1
- package/dist/sync/registry.d.ts.map +1 -1
- package/dist/sync/registry.js +6 -1
- package/dist/sync/registry.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-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-pull-request-review/SKILL.md +18 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-task-decomposition/SKILL.md +2 -1
- package/plugins/lisa/agents/learning-judge.md +20 -5
- package/plugins/lisa/rules/reference/config-resolution.md +2 -1
- package/plugins/lisa/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/lisa/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/lisa/skills/lisa-pull-request-review/SKILL.md +18 -3
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/lisa/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/lisa/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/lisa/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/lisa/skills/lisa-task-decomposition/SKILL.md +2 -1
- package/plugins/lisa-agy/agents/learning-judge.md +20 -5
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/lisa-agy/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/lisa-agy/skills/lisa-pull-request-review/SKILL.md +18 -3
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/lisa-agy/skills/lisa-task-decomposition/SKILL.md +2 -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/agents/learning-judge.agent.md +20 -5
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +2 -1
- package/plugins/lisa-copilot/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/lisa-copilot/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/lisa-copilot/skills/lisa-pull-request-review/SKILL.md +18 -3
- package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/lisa-copilot/skills/lisa-task-decomposition/SKILL.md +2 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/agents/learning-judge.md +20 -5
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +2 -1
- package/plugins/lisa-cursor/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/lisa-cursor/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/lisa-cursor/skills/lisa-pull-request-review/SKILL.md +18 -3
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/lisa-cursor/skills/lisa-task-decomposition/SKILL.md +2 -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/agents/learning-judge.md +20 -5
- package/plugins/lisa-devin/rules/reference/config-resolution.md +2 -1
- package/plugins/lisa-devin/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/lisa-devin/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/lisa-devin/skills/lisa-pull-request-review/SKILL.md +18 -3
- package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/lisa-devin/skills/lisa-task-decomposition/SKILL.md +2 -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/agents/learning-judge.md +20 -5
- package/plugins/src/base/rules/reference/config-resolution.md +2 -1
- package/plugins/src/base/skills/lisa-drive-pr-to-merge/SKILL.md +16 -3
- package/plugins/src/base/skills/lisa-persist-learning/SKILL.md +3 -2
- package/plugins/src/base/skills/lisa-pull-request-review/SKILL.md +18 -3
- package/plugins/src/base/skills/lisa-session-manager/SKILL.md +50 -5
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-human.mjs +51 -14
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-overruled.mjs +70 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-usage.mjs +23 -3
- package/plugins/src/base/skills/lisa-session-manager/scripts/escalation-overruled.mjs +327 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/human-needed.mjs +39 -11
- package/plugins/src/base/skills/lisa-session-manager/scripts/queue-github.mjs +14 -1
- package/plugins/src/base/skills/lisa-session-manager/scripts/session-manager.mjs +11 -1
- package/plugins/src/base/skills/lisa-task-decomposition/SKILL.md +2 -1
- package/typescript/create-only/.github/workflows/third-party-review-evidence.yml +2 -0
|
@@ -33,7 +33,8 @@ export const HUMAN_NEEDED_KINDS = Object.freeze([
|
|
|
33
33
|
* ready gate and still needed a person. `environment` is an outage, an
|
|
34
34
|
* expired credential or a flaky tool; `human-gate` is a decision planning
|
|
35
35
|
* flagged as a human gate on the item. Neither of those two is a planning
|
|
36
|
-
* miss
|
|
36
|
+
* miss, except a `human-gate` a human has since labeled wrongly escalated
|
|
37
|
+
* (`overruled`, CodySwannGT/lisa#4657).
|
|
37
38
|
*/
|
|
38
39
|
export const PLANNING_MISS_CAUSES = Object.freeze([
|
|
39
40
|
"planning",
|
|
@@ -72,15 +73,34 @@ const NOT_A_PLANNING_MISS = Object.freeze({
|
|
|
72
73
|
* Whether a human-needed stop is a planning miss: the PRD, decomposition or
|
|
73
74
|
* ready gate let through an item a dispatched worker could not finish without
|
|
74
75
|
* a person. Throws on an unknown cause.
|
|
75
|
-
*
|
|
76
|
+
*
|
|
77
|
+
* `overruled` is true when the item carries the configured wrongly-escalated
|
|
78
|
+
* label (CodySwannGT/lisa#4657). A human has then ruled that the gate was
|
|
79
|
+
* not the plan working, so the label overrides `cause=human-gate`: the stop
|
|
80
|
+
* counts, pointing at the `filing` stage that let the gate on. It never
|
|
81
|
+
* overrides `environment`: the ruling is about the gate, not an outage.
|
|
82
|
+
* @param {{kind: string, cause?: string, overruled?: boolean}} input - The
|
|
83
|
+
* `--kind` and `--cause`, and whether the escalation was ruled wrong
|
|
76
84
|
* @returns {{counts: boolean, reason: string, stageHint?: string}} Verdict
|
|
77
85
|
*/
|
|
78
|
-
export function planningMissFor({
|
|
86
|
+
export function planningMissFor({
|
|
87
|
+
kind,
|
|
88
|
+
cause = "planning",
|
|
89
|
+
overruled = false,
|
|
90
|
+
}) {
|
|
79
91
|
if (!PLANNING_MISS_CAUSES.includes(cause)) {
|
|
80
92
|
throw new Error(
|
|
81
93
|
`--cause must be one of: ${PLANNING_MISS_CAUSES.join(", ")}.`
|
|
82
94
|
);
|
|
83
95
|
}
|
|
96
|
+
if (cause === "human-gate" && overruled === true) {
|
|
97
|
+
return {
|
|
98
|
+
counts: true,
|
|
99
|
+
stageHint: "filing",
|
|
100
|
+
reason:
|
|
101
|
+
"a human labeled this escalation wrong, so the human gate was not the plan working: the filing check let it through",
|
|
102
|
+
};
|
|
103
|
+
}
|
|
84
104
|
if (cause !== "planning") {
|
|
85
105
|
return { counts: false, reason: NOT_A_PLANNING_MISS[cause] };
|
|
86
106
|
}
|
|
@@ -104,17 +124,22 @@ export function planningMissFor({ kind, cause = "planning" }) {
|
|
|
104
124
|
* `lisa-persist-learning` candidate the manager can fill in without judgment.
|
|
105
125
|
* The rule and its why are the manager's to draft: they name the check
|
|
106
126
|
* planning should have run, which no script can know.
|
|
107
|
-
* @param {{ref: string, kind: string, cause?: string, question: string
|
|
108
|
-
* input - The item, why, the cause
|
|
127
|
+
* @param {{ref: string, kind: string, cause?: string, question: string,
|
|
128
|
+
* overruled?: boolean}} input - The item, why, the cause, the question
|
|
129
|
+
* text and whether the escalation was ruled wrong
|
|
109
130
|
* @returns {object} `{counts, reason, stageHint?, candidate?}`
|
|
110
131
|
*/
|
|
111
|
-
function planningMissPlan({ ref, kind, cause, question }) {
|
|
112
|
-
const verdict = planningMissFor({ kind, cause });
|
|
132
|
+
function planningMissPlan({ ref, kind, cause, question, overruled }) {
|
|
133
|
+
const verdict = planningMissFor({ kind, cause, overruled });
|
|
113
134
|
if (!verdict.counts) return verdict;
|
|
135
|
+
const signal =
|
|
136
|
+
cause === "human-gate" && overruled === true
|
|
137
|
+
? "wrongly-escalated"
|
|
138
|
+
: "planning-miss";
|
|
114
139
|
return {
|
|
115
140
|
...verdict,
|
|
116
141
|
candidate: {
|
|
117
|
-
signal
|
|
142
|
+
signal,
|
|
118
143
|
triggering_issue: ref,
|
|
119
144
|
provenance: [ref],
|
|
120
145
|
scope_hint: "project",
|
|
@@ -231,11 +256,13 @@ function chooseMarker(label, blocked) {
|
|
|
231
256
|
* unknown kind, empty or credential-shaped text, no marker, or an `exhausted`
|
|
232
257
|
* item with no `blocked` role to move it to.
|
|
233
258
|
* @param {{ref: string, kind: string, text: string, label?: string,
|
|
234
|
-
* blocked?: string, channel?: boolean, answerers?: boolean, cause?: string
|
|
259
|
+
* blocked?: string, channel?: boolean, answerers?: boolean, cause?: string,
|
|
260
|
+
* overruled?: boolean}}
|
|
235
261
|
* input - The item, why, the question, the configured human-needed label
|
|
236
262
|
* and `blocked` role value, whether a notification channel exists, whether
|
|
237
263
|
* anyone (operatorIds / trustedAuthorIds) may answer on the item, and the
|
|
238
|
-
* cause the planning-miss signal needs (default `planning`)
|
|
264
|
+
* cause the planning-miss signal needs (default `planning`), and whether
|
|
265
|
+
* the item carries the wrongly-escalated label (`overruled`)
|
|
239
266
|
* @returns {{ref: string, kind: string, marker: {type: string, value: string},
|
|
240
267
|
* move?: {role: "blocked", value: string}, comment: string,
|
|
241
268
|
* answerWith: {item: string|null, cli: string, channel: string|null},
|
|
@@ -251,6 +278,7 @@ export function planMark({
|
|
|
251
278
|
channel = false,
|
|
252
279
|
answerers = true,
|
|
253
280
|
cause = "planning",
|
|
281
|
+
overruled = false,
|
|
254
282
|
}) {
|
|
255
283
|
if (!HUMAN_NEEDED_KINDS.includes(kind)) {
|
|
256
284
|
throw new Error(`--kind must be one of: ${HUMAN_NEEDED_KINDS.join(", ")}.`);
|
|
@@ -300,6 +328,6 @@ export function planMark({
|
|
|
300
328
|
cli: `the answerCommand that session-manager.mjs status lists for ${ref} (answer on stdin)`,
|
|
301
329
|
channel: channel ? `Answer with: ${short} <your answer>` : null,
|
|
302
330
|
},
|
|
303
|
-
planningMiss: planningMissPlan({ ref, kind, cause, question }),
|
|
331
|
+
planningMiss: planningMissPlan({ ref, kind, cause, question, overruled }),
|
|
304
332
|
};
|
|
305
333
|
}
|
|
@@ -45,6 +45,19 @@ function stringLeaves(value) {
|
|
|
45
45
|
return Object.values(value).flatMap(stringLeaves);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* The build label map without `wrongly_escalated`: that label is a ruling
|
|
50
|
+
* left on an item for good (CodySwannGT/lisa#4657), not a lane or a hold,
|
|
51
|
+
* so it must not hide a released item from the backlog tier.
|
|
52
|
+
* @param {unknown} build - `github.labels.build`
|
|
53
|
+
* @returns {unknown} The map minus the ruling label
|
|
54
|
+
*/
|
|
55
|
+
export function withoutRuling(build) {
|
|
56
|
+
if (!build || typeof build !== "object") return build;
|
|
57
|
+
const { wrongly_escalated: _ruling, ...rest } = build;
|
|
58
|
+
return rest;
|
|
59
|
+
}
|
|
60
|
+
|
|
48
61
|
/**
|
|
49
62
|
* Fetch every open GitHub issue carrying no lifecycle label (build or PRD),
|
|
50
63
|
* all pages: the GitHub backlog tier.
|
|
@@ -57,7 +70,7 @@ export function fetchGithubBacklog(ctx, project) {
|
|
|
57
70
|
const lifecycle = new Set(
|
|
58
71
|
[project.global?.github?.labels, project.local?.github?.labels]
|
|
59
72
|
.flatMap(labels => [
|
|
60
|
-
...stringLeaves(labels?.build),
|
|
73
|
+
...stringLeaves(withoutRuling(labels?.build)),
|
|
61
74
|
...stringLeaves(labels?.prd),
|
|
62
75
|
])
|
|
63
76
|
.map(label => label.toLowerCase())
|
|
@@ -46,6 +46,7 @@ import {
|
|
|
46
46
|
route,
|
|
47
47
|
} from "./cli-cycle.mjs";
|
|
48
48
|
import { answer, itemAnswer, markPlan } from "./cli-human.mjs";
|
|
49
|
+
import { overruledPlan } from "./cli-overruled.mjs";
|
|
49
50
|
import { repoDir, start, status, stop, validate } from "./cli-manager.mjs";
|
|
50
51
|
import { queue } from "./cli-queue.mjs";
|
|
51
52
|
import { CliError, EXIT } from "./cli-runtime.mjs";
|
|
@@ -113,9 +114,18 @@ const COMMANDS = {
|
|
|
113
114
|
},
|
|
114
115
|
"mark-plan": {
|
|
115
116
|
run: markPlan,
|
|
116
|
-
options: {
|
|
117
|
+
options: {
|
|
118
|
+
kind: text,
|
|
119
|
+
cause: text,
|
|
120
|
+
"item-label": { ...text, multiple: true },
|
|
121
|
+
},
|
|
117
122
|
positionals: 1,
|
|
118
123
|
},
|
|
124
|
+
"overruled-plan": {
|
|
125
|
+
run: overruledPlan,
|
|
126
|
+
options: { input: text, max: text },
|
|
127
|
+
positionals: 0,
|
|
128
|
+
},
|
|
119
129
|
answer: { run: answer, options: {}, positionals: 1 },
|
|
120
130
|
"item-answer": { run: itemAnswer, options: {}, positionals: 1 },
|
|
121
131
|
"record-cycle": {
|
|
@@ -14,7 +14,7 @@ Break work into ordered, well-scoped tasks that can be independently implemented
|
|
|
14
14
|
Every time a dispatched worker had to stop for a human, or file a new ticket mid-build, because planning let a gap through, `learning-judge` may have persisted the check planning should have run as a `planning-miss` learning (CodySwannGT/lisa#4569). Those checks only help if planning reads them back. Before decomposing, load them through the learnings contract's **bounded projection** — never by reading the ledger file wholesale:
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
node -e 'import("@codyswann/lisa/learnings").then(async m => { const { readFile } = await import("node:fs/promises"); const file = m.resolveProjectLearningsFile(await m.readProjectConfig(process.cwd())); const raw = await readFile(file, "utf8").catch(() => null); if (raw === null) return; const { entries, omittedCount } = m.projectLearnings(m.parseLearningsFile(raw)); const checks = entries.filter(e => /^Planning \((prd|decomposition|ready-gate)\):/.test(e.rule)).map(e => ({ id: e.id, rule: e.rule, confidence: e.confidence })); console.log(JSON.stringify({ checks, omittedCount })); }).catch(error => console.error(`learned planning checks unavailable: ${error.message}`))' || true
|
|
17
|
+
node -e 'import("@codyswann/lisa/learnings").then(async m => { const { readFile } = await import("node:fs/promises"); const file = m.resolveProjectLearningsFile(await m.readProjectConfig(process.cwd())); const raw = await readFile(file, "utf8").catch(() => null); if (raw === null) return; const { entries, omittedCount } = m.projectLearnings(m.parseLearningsFile(raw)); const checks = entries.filter(e => /^Planning \((prd|decomposition|ready-gate|filing)\):/.test(e.rule)).map(e => ({ id: e.id, rule: e.rule, confidence: e.confidence })); console.log(JSON.stringify({ checks, omittedCount })); }).catch(error => console.error(`learned planning checks unavailable: ${error.message}`))' || true
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Run it from the project root. No output means there is no ledger yet: carry on. A malformed ledger prints one warning and yields nothing: carry on without it. Never let this step block planning.
|
|
@@ -24,6 +24,7 @@ Each check names the stage that owns it, and binds there:
|
|
|
24
24
|
- **`Planning (prd): …`** — a requirement the PRD must settle. In PRD intake (`*-to-tracker` Phase 1.45) a register entry that fails one is a `product-clarity` item, like any other requirement-quality failure.
|
|
25
25
|
- **`Planning (decomposition): …`** — binds in this skill: apply each as an extra obligation on every work unit it concerns, alongside steps 1–6 below. A unit that cannot meet it is split, re-scoped or given its missing dependency now, not left for the worker to discover.
|
|
26
26
|
- **`Planning (ready-gate): …`** — binds in the validator's S18 stateless-pickup dry-run (`lisa-jira-validate-ticket`, `lisa-github-validate-issue`, `lisa-linear-validate-issue`): each becomes a question the dry-run must be able to answer from the item and the links it can resolve.
|
|
27
|
+
- **`Planning (filing): …`** — binds on any agent about to file a work unit with `human_gate:` (the `ready-role-filing` rule), here included. Each is a check a hold reason must pass; a hold it rules out is a decision to make now, and the unit is filed build-ready. These come from escalations a human labeled wrong (`learning-judge` Step 2.6).
|
|
27
28
|
|
|
28
29
|
A check is a learned heuristic, not a new gate number: cite its `id` where it changed a decision, so `last_confirmed` can be advanced at claim time (`project-learnings`). When a check plainly does not apply to this work, skip it silently.
|
|
29
30
|
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
# pull request head, and a status or check run from an app nobody declared are
|
|
49
49
|
# all no-ops — and each PRINTS that it is one. A silent pass is the defect this
|
|
50
50
|
# exists to end, so it is not reproduced here.
|
|
51
|
+
# A failed or non-list pull-request read is UNREADABLE, not a no-op: the prover
|
|
52
|
+
# reports pull-requests-unreadable and exits 1 without reading more evidence.
|
|
51
53
|
#
|
|
52
54
|
# AND ONE DEFERRAL. A declared reviewer still `pending` has not answered yet:
|
|
53
55
|
# measured, a reviewer posts `Review queued` then `Review in progress` before
|