@codyswann/lisa 8.10.4 → 8.10.5
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/lisa-work-item.mjs +55 -4
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +8 -0
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.json +13 -6
- 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-implement/SKILL.md +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +7 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-context-write.mjs +25 -1
- package/plugins/lisa/rules/reference/tracked-work.md +1 -1
- package/plugins/lisa/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/lisa/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +7 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/task-context-write.mjs +25 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +7 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/task-context-write.mjs +25 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/rules/reference/tracked-work.md +1 -1
- package/plugins/lisa-copilot/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +7 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/task-context-write.mjs +25 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/rules/tracked-work-reference.mdc +1 -1
- package/plugins/lisa-cursor/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +7 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/task-context-write.mjs +25 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/rules/reference/tracked-work.md +1 -1
- package/plugins/lisa-devin/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +7 -1
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/task-context-write.mjs +25 -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-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/src/base/rules/reference/tracked-work.md +1 -1
- package/plugins/src/base/skills/lisa-implement/SKILL.md +2 -2
- package/plugins/src/base/skills/lisa-secrets-access/scripts/preflight-secrets.mjs +7 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/task-context-write.mjs +25 -1
|
@@ -1175,6 +1175,60 @@ function canonicalizeRef(raw, contract = trackerContract()) {
|
|
|
1175
1175
|
return `${match[1]}-${match[2]}`;
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
|
+
/** The work-item context a prepared ticket leaves in its worktree. */
|
|
1179
|
+
const CONTEXT_FILE = ".lisa/work-item-context.md";
|
|
1180
|
+
/** The requirements header's opening line; it names the ticket. */
|
|
1181
|
+
const CONTEXT_HEADER = "<!-- lisa-required-access:v1\n";
|
|
1182
|
+
|
|
1183
|
+
/**
|
|
1184
|
+
* The ticket a context's requirements header names.
|
|
1185
|
+
* @param {string} text The context file's text.
|
|
1186
|
+
* @returns {string|null} The ref, or null when no header names one.
|
|
1187
|
+
*/
|
|
1188
|
+
function contextItem(text) {
|
|
1189
|
+
const end = text.indexOf("\n-->\n");
|
|
1190
|
+
if (!text.startsWith(CONTEXT_HEADER) || end < 0) return null;
|
|
1191
|
+
try {
|
|
1192
|
+
const ref = JSON.parse(
|
|
1193
|
+
text.slice(CONTEXT_HEADER.length, end)
|
|
1194
|
+
)?.work_item_ref;
|
|
1195
|
+
return typeof ref === "string" ? ref : null;
|
|
1196
|
+
} catch {
|
|
1197
|
+
return null;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* Clear the binding, and the context of the ticket it named.
|
|
1203
|
+
*
|
|
1204
|
+
* `clear` runs only after terminal completion, so that ticket's context is
|
|
1205
|
+
* finished too. Left behind, it blocked the next ticket's prepare step until
|
|
1206
|
+
* someone deleted it by hand (CodySwannGT/lisa#5199). A context naming a
|
|
1207
|
+
* different ticket is kept: nothing here says that work is finished.
|
|
1208
|
+
* @returns {string} What was cleared.
|
|
1209
|
+
*/
|
|
1210
|
+
function clearBinding() {
|
|
1211
|
+
let bound;
|
|
1212
|
+
try {
|
|
1213
|
+
bound = readState(true)?.ref;
|
|
1214
|
+
} catch {
|
|
1215
|
+
bound = undefined;
|
|
1216
|
+
}
|
|
1217
|
+
const file = join(projectRoot(), CONTEXT_FILE);
|
|
1218
|
+
const named = existsSync(file)
|
|
1219
|
+
? contextItem(readFileSync(file, "utf8"))
|
|
1220
|
+
: undefined;
|
|
1221
|
+
const keep = typeof named === "string" && named !== bound;
|
|
1222
|
+
// The context goes first: if removing it fails, the binding survives, so
|
|
1223
|
+
// a retry still knows whose context it is.
|
|
1224
|
+
if (named !== undefined && !keep) rmSync(file, { force: true });
|
|
1225
|
+
rmSync(statePath(), { force: true });
|
|
1226
|
+
if (named === undefined) return "work-item binding cleared";
|
|
1227
|
+
if (keep)
|
|
1228
|
+
return `work-item binding cleared; kept ${CONTEXT_FILE}, which holds the context of ${named}, not of ${bound ?? "a bound ticket"}`;
|
|
1229
|
+
return `work-item binding cleared; removed ${CONTEXT_FILE}${named ? ` (${named})` : ""}`;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1178
1232
|
function readState(optional = true) {
|
|
1179
1233
|
const file = statePath();
|
|
1180
1234
|
if (!existsSync(file)) {
|
|
@@ -7185,10 +7239,7 @@ function main() {
|
|
|
7185
7239
|
);
|
|
7186
7240
|
return commitPendingLisaUpdate(ref, contract);
|
|
7187
7241
|
}
|
|
7188
|
-
if (command === "clear")
|
|
7189
|
-
rmSync(statePath(), { force: true });
|
|
7190
|
-
return console.log("work-item binding cleared");
|
|
7191
|
-
}
|
|
7242
|
+
if (command === "clear") return console.log(clearBinding());
|
|
7192
7243
|
if (command === "backlink") return backlink(args);
|
|
7193
7244
|
// `finish` and `complete` are one operation under two names, for the same
|
|
7194
7245
|
// reason as `link` and `bind` above (#4683). `complete` is a bash builtin
|
|
@@ -1719,7 +1719,7 @@
|
|
|
1719
1719
|
"children": []
|
|
1720
1720
|
},
|
|
1721
1721
|
"lisa-work-item.mjs": {
|
|
1722
|
-
"sha256": "
|
|
1722
|
+
"sha256": "587ab36da61b141731f037f7a53de2f0812d0a5c98d2e6a366dbad160f1dafe2",
|
|
1723
1723
|
"staticImports": [
|
|
1724
1724
|
"lib/completion-authorization.mjs",
|
|
1725
1725
|
"lib/completion-proof-adapters.mjs",
|
|
@@ -2698,6 +2698,7 @@
|
|
|
2698
2698
|
"50e3a04a3e5c961b7f70d1a23cab1a6b560ec463a4b76727fe64e6e773d42b0e",
|
|
2699
2699
|
"5431cf37016c8096c7c8e570a95f3b09ef7943917a1eb6ec2ebe599e240bec8f",
|
|
2700
2700
|
"56d3718b1243506965b5898c3eb81cb3ff3c6233a2a5185be80fb099933a5a26",
|
|
2701
|
+
"587ab36da61b141731f037f7a53de2f0812d0a5c98d2e6a366dbad160f1dafe2",
|
|
2701
2702
|
"58cdf4db05dbf6463d405e0691e078034fd3c99d2859a978c0d332458db5c3f3",
|
|
2702
2703
|
"5a0b82045d9795284a109c28e5e9dd97a5488ff540bb7034b84077d1447ffd7c",
|
|
2703
2704
|
"5ba15f6126e253ce9554579ddde86fc0bd744cd0c5c1395cb4e4b8f0472cc134",
|
|
@@ -2742,6 +2743,7 @@
|
|
|
2742
2743
|
"921265687800d90430ca5f96e3b392f90f41349cf9b911bfa2a564dcbcec12d8",
|
|
2743
2744
|
"9223856be4618fb1e3e731b259ae5bf5328decc322f0b4a0d0fd18d6b12cd45a",
|
|
2744
2745
|
"922cd8fc859fc6e92a6a82955c4ceec309e13ec64991dad04d0880ec78c4258f",
|
|
2746
|
+
"92a2974543e833138cac67054557731c3f367f0ba7104ae0abd77203e034418d",
|
|
2745
2747
|
"94bca23e535b5e77558f48221fc374c2e46a98eba18b2fc38b27ca0918fb54d9",
|
|
2746
2748
|
"96a87c131606b3edd43e52485e68f8ffbf5c528cb4beb7a1185263519a9632ce",
|
|
2747
2749
|
"9a470f2590772e144b6ed08512e51244fa1293dfd08d5c42daaa38fed22bdafb",
|
|
@@ -3138,7 +3140,9 @@
|
|
|
3138
3140
|
"c0e3315b7905a5a883eec397d8c3c06e10ea414bbbd271ee1cf0ad7cbacb4668",
|
|
3139
3141
|
"c11328d3d4fd6d0f82ad51afc21f710877bd8dd2643c9d1a7d0fd2fed60358eb",
|
|
3140
3142
|
"c17d09e07c614df6843ba3bb6ae0c80874108eff22a68ef324db5f50110a27c8",
|
|
3143
|
+
"c23846654944698eba5f882fe1fdc7e0a79dcb3b0d2a5b549dd82fbd18a89fe5",
|
|
3141
3144
|
"c280b6a8f075eb9cf5cdcc115ff0825155c20bd1d8164d9b919836a826e85e85",
|
|
3145
|
+
"c2f58026136b7ac31bcf819ca31839a8cb80dcc762ac38b44a2bea0d6588cc50",
|
|
3142
3146
|
"c44ad834962bb5f2f4af0a261d648759e4dfe5e4ddb8e15389facac938417340",
|
|
3143
3147
|
"c4db1ebcf54e3177213639199b81acf301dc68bf796d291d23ad86ef00127a71",
|
|
3144
3148
|
"c4e4d9b8c20d014e90f24368e49406f62745d6e172c6323816e70e1d1bf4c83b",
|
|
@@ -5902,6 +5906,7 @@
|
|
|
5902
5906
|
"50e3a04a3e5c961b7f70d1a23cab1a6b560ec463a4b76727fe64e6e773d42b0e",
|
|
5903
5907
|
"5431cf37016c8096c7c8e570a95f3b09ef7943917a1eb6ec2ebe599e240bec8f",
|
|
5904
5908
|
"56d3718b1243506965b5898c3eb81cb3ff3c6233a2a5185be80fb099933a5a26",
|
|
5909
|
+
"587ab36da61b141731f037f7a53de2f0812d0a5c98d2e6a366dbad160f1dafe2",
|
|
5905
5910
|
"58cdf4db05dbf6463d405e0691e078034fd3c99d2859a978c0d332458db5c3f3",
|
|
5906
5911
|
"5a0b82045d9795284a109c28e5e9dd97a5488ff540bb7034b84077d1447ffd7c",
|
|
5907
5912
|
"5ba15f6126e253ce9554579ddde86fc0bd744cd0c5c1395cb4e4b8f0472cc134",
|
|
@@ -5945,6 +5950,7 @@
|
|
|
5945
5950
|
"921265687800d90430ca5f96e3b392f90f41349cf9b911bfa2a564dcbcec12d8",
|
|
5946
5951
|
"9223856be4618fb1e3e731b259ae5bf5328decc322f0b4a0d0fd18d6b12cd45a",
|
|
5947
5952
|
"922cd8fc859fc6e92a6a82955c4ceec309e13ec64991dad04d0880ec78c4258f",
|
|
5953
|
+
"92a2974543e833138cac67054557731c3f367f0ba7104ae0abd77203e034418d",
|
|
5948
5954
|
"94bca23e535b5e77558f48221fc374c2e46a98eba18b2fc38b27ca0918fb54d9",
|
|
5949
5955
|
"96a87c131606b3edd43e52485e68f8ffbf5c528cb4beb7a1185263519a9632ce",
|
|
5950
5956
|
"9a470f2590772e144b6ed08512e51244fa1293dfd08d5c42daaa38fed22bdafb",
|
|
@@ -6340,7 +6346,9 @@
|
|
|
6340
6346
|
"c0e3315b7905a5a883eec397d8c3c06e10ea414bbbd271ee1cf0ad7cbacb4668",
|
|
6341
6347
|
"c11328d3d4fd6d0f82ad51afc21f710877bd8dd2643c9d1a7d0fd2fed60358eb",
|
|
6342
6348
|
"c17d09e07c614df6843ba3bb6ae0c80874108eff22a68ef324db5f50110a27c8",
|
|
6349
|
+
"c23846654944698eba5f882fe1fdc7e0a79dcb3b0d2a5b549dd82fbd18a89fe5",
|
|
6343
6350
|
"c280b6a8f075eb9cf5cdcc115ff0825155c20bd1d8164d9b919836a826e85e85",
|
|
6351
|
+
"c2f58026136b7ac31bcf819ca31839a8cb80dcc762ac38b44a2bea0d6588cc50",
|
|
6344
6352
|
"c44ad834962bb5f2f4af0a261d648759e4dfe5e4ddb8e15389facac938417340",
|
|
6345
6353
|
"c4db1ebcf54e3177213639199b81acf301dc68bf796d291d23ad86ef00127a71",
|
|
6346
6354
|
"c4e4d9b8c20d014e90f24368e49406f62745d6e172c6323816e70e1d1bf4c83b",
|
|
@@ -27,9 +27,9 @@ export const NIGHTLY_E2E_GUARD_BEHAVIOR_CERTIFICATES = Object.freeze({
|
|
|
27
27
|
}),
|
|
28
28
|
"4679c1e7cc92f960bad81854b9ce68a14aa0e404f2264cca0c2d6186008a17eb": Object.freeze({
|
|
29
29
|
contractVersion: "1.9.0",
|
|
30
|
-
packageVersions: Object.freeze(["8.10.
|
|
30
|
+
packageVersions: Object.freeze(["8.10.5"]),
|
|
31
31
|
provenances: Object.freeze([
|
|
32
|
-
"workspace package @codyswann/lisa@8.10.
|
|
32
|
+
"workspace package @codyswann/lisa@8.10.5 (typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs)",
|
|
33
33
|
]),
|
|
34
34
|
}),
|
|
35
35
|
"898ee0247806c7aa6e98328662d80bcff22ff067999298865462a58daef8bb22": Object.freeze({
|
|
@@ -211,12 +211,12 @@
|
|
|
211
211
|
"all/copy-overwrite/scripts/lisa-run-gates.mjs": "d124e35b28292948ee4cf94c99b81bb346eb5fa40f8d826877acaedcbd1ec69b",
|
|
212
212
|
"all/copy-overwrite/scripts/lisa-schema-validate.mjs": "f70ecd3712dd2ca77a8851c7505ce79f948a57e5a2e28f56c5d0ccd047712688",
|
|
213
213
|
"all/copy-overwrite/scripts/lisa-test-node.mjs": "cd436584d756442fc393557a3244bbdacdf915bd0fb1a472ebe7afa8103d3475",
|
|
214
|
-
"all/copy-overwrite/scripts/lisa-work-item.mjs": "
|
|
214
|
+
"all/copy-overwrite/scripts/lisa-work-item.mjs": "587ab36da61b141731f037f7a53de2f0812d0a5c98d2e6a366dbad160f1dafe2",
|
|
215
215
|
"all/copy-overwrite/scripts/lisa-worktree-guard.mjs": "2535ef2a60b3413dacb8491c008ab28f0a07929196277d1d1fed54a04740c025",
|
|
216
216
|
"all/copy-overwrite/scripts/npm-updater-gate-runtime.json": "5c2af03360bfd59df26934ea0a2e47baa3999cbaa0ad3a9a03dd74575589218d",
|
|
217
217
|
"all/copy-overwrite/scripts/npm-updater-gate-supervisor.c": "e7d6ed62ce27a466a097c879372b8c2ec18731371e682d04542de4d83f3daa00",
|
|
218
218
|
"all/copy-overwrite/scripts/npm-updater-gate.Dockerfile": "850a4ee809d49e3d9da6bdd674cb43e4f5a6dcfa0aa73116b1a43caeed42748c",
|
|
219
|
-
"all/copy-overwrite/scripts/npm-updater-helper-graph.json": "
|
|
219
|
+
"all/copy-overwrite/scripts/npm-updater-helper-graph.json": "c23846654944698eba5f882fe1fdc7e0a79dcb3b0d2a5b549dd82fbd18a89fe5",
|
|
220
220
|
"all/copy-overwrite/scripts/review-evidence-event.mjs": "61720cafcbab2d0193cb5fb377264008a765f338e12415b7adf30322342f634c",
|
|
221
221
|
"all/copy-overwrite/scripts/schemas/lisa-command-envelope.v1.schema.json": "d153b7c2953a30f180e38f09e98240c63327f5196eeba9bdf545e5a1f125a879",
|
|
222
222
|
"all/copy-overwrite/scripts/schemas/lisa-state-contract.v1.schema.json": "6b7afe4ffeba8aaa53871d8855172f7eacde05953b1321145218ec638ff5c1c4",
|
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
"plugins/src/base/rules/reference/settled-decisions.md": "53064fc04010e330cce04459bb2e26e39b4868117376319fe303caafffe0f910",
|
|
683
683
|
"plugins/src/base/rules/reference/stale-state-claims.md": "ea788d884c297ef8c8b573625172cdb123bb80690907cea0efa789b8dd60e466",
|
|
684
684
|
"plugins/src/base/rules/reference/tool-access-gate.md": "aad1678a046d84d742e416aba0a783584ba281a2a7de3bd12cd66b1a1ea8bd04",
|
|
685
|
-
"plugins/src/base/rules/reference/tracked-work.md": "
|
|
685
|
+
"plugins/src/base/rules/reference/tracked-work.md": "c81363721c0ec113eaa76ceacfa33ed48fbbd49036b51c913507ff5d13404c65",
|
|
686
686
|
"plugins/src/base/rules/reference/upstream-to-lisa.md": "6b82577bf182fa1ed05e8dc3e1f68d9f76eb1eb7497de75031595db488c396de",
|
|
687
687
|
"plugins/src/base/rules/reference/usage-accounting.md": "53dec94f4cba696d4b4f6e990565173c6aa0c9972432b8b127517fc3617ca7cc",
|
|
688
688
|
"plugins/src/base/rules/reference/verification.md": "cb8d03601dcc4ed4fb8e2bfd0aa9d7879dfa00be3401d6a33864a8c34cde38ef",
|
|
@@ -795,7 +795,7 @@
|
|
|
795
795
|
"plugins/src/base/skills/lisa-github-write-prd/SKILL.md": "9beb1af0314ab3e9cdcac6c2a7c2d9028e57695e9e140e92f64e863904a2313f",
|
|
796
796
|
"plugins/src/base/skills/lisa-health-drift-cron/SKILL.md": "146641c3a0114dba3e2ce63d347d2fa750ac8e9d0fbb5a301a0b0e0e030a1b92",
|
|
797
797
|
"plugins/src/base/skills/lisa-health/SKILL.md": "dfdb08a863e78bff42671793dcec29cfae0654db18ebf66a4aa77aeb56ddb775",
|
|
798
|
-
"plugins/src/base/skills/lisa-implement/SKILL.md": "
|
|
798
|
+
"plugins/src/base/skills/lisa-implement/SKILL.md": "789201d600d99df7f401395e7cf38aa2cf5a7ef8d869dabffccd9bec85378b6a",
|
|
799
799
|
"plugins/src/base/skills/lisa-improve-code-complexity/SKILL.md": "24ab5b193b409db6ee6bee981a1c0a48d08991782d7846116ad01658c8bc1ae8",
|
|
800
800
|
"plugins/src/base/skills/lisa-improve-harness/SKILL.md": "9abc2c7049423c96b52dfe5a5f8da9719bff06225b15f66f03df5e05f0cd0da7",
|
|
801
801
|
"plugins/src/base/skills/lisa-improve-max-lines-per-function/SKILL.md": "032f66df86573fd1130f928dd6ada5ced3f890230a97544a4777f0a5e17efddc",
|
|
@@ -891,7 +891,7 @@
|
|
|
891
891
|
"plugins/src/base/skills/lisa-secrets-access/scripts/materialize-secrets.mjs": "91b443b7c54272f7b94fe3a592eeddd9f45b00901301bf769297a87b01cf18f1",
|
|
892
892
|
"plugins/src/base/skills/lisa-secrets-access/scripts/note-format.mjs": "09bd6904bc84a5a93a32499ac94db5ec7728db68908a661698445ef5e6974f3e",
|
|
893
893
|
"plugins/src/base/skills/lisa-secrets-access/scripts/owner.mjs": "576b146e3f60306967b15e382105fe8a27644965b9fbb2870f701b042952461a",
|
|
894
|
-
"plugins/src/base/skills/lisa-secrets-access/scripts/preflight-secrets.mjs": "
|
|
894
|
+
"plugins/src/base/skills/lisa-secrets-access/scripts/preflight-secrets.mjs": "015bc1edee0cf494e25df3a7e23a34d87d36ea861e555c68cf66c12fef55cfc0",
|
|
895
895
|
"plugins/src/base/skills/lisa-secrets-access/scripts/prompt-secret.mjs": "22b28bcdf49b9b0fcd1b15639e031655efacc028b74d48d57e2275f3e1557508",
|
|
896
896
|
"plugins/src/base/skills/lisa-secrets-access/scripts/providers.mjs": "cff2018a0298b833e51efe8626b51b20409e84f4fb3c6cbe4b4e13da33121a95",
|
|
897
897
|
"plugins/src/base/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs": "2ab1e70fe8b8f6ccf7b5e589ea80031be755ddce8c30009ead71790542c68e2b",
|
|
@@ -906,7 +906,7 @@
|
|
|
906
906
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-action.mjs": "49a3801bceddb0cf8383f98bfb570c33aa8b2b20a1c71340a97e5c5d0b09a8cc",
|
|
907
907
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-atlassian-native.mjs": "b9231c667bb62d3d30edf1a45d632696fc3c1d81ae8b32652e5e37a9635cb2f4",
|
|
908
908
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-context-data.mjs": "14a1a873e92e45cc4e1f50ca6bf93484ad78315249e39c62772c6e4d2d305eed",
|
|
909
|
-
"plugins/src/base/skills/lisa-secrets-access/scripts/task-context-write.mjs": "
|
|
909
|
+
"plugins/src/base/skills/lisa-secrets-access/scripts/task-context-write.mjs": "ed0beb0fdf8443e6cf3ac551fde582fc40b0ffd44b9050ec781f35dec1e837c9",
|
|
910
910
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-github.mjs": "0bf7565d018b08650a66a94ad147a5fc201ce1c1ca9fc2289ddf72a445217a3e",
|
|
911
911
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-intake-read.mjs": "8ee26ae5c3ae4591618a1938795d1a6d90da6e52f5fbdd138e63654c3232e5dd",
|
|
912
912
|
"plugins/src/base/skills/lisa-secrets-access/scripts/task-intake.mjs": "fff789e59bd91ede71eefaffe38cc166c821e5a9291efb401fc81710cf8f6118",
|
|
@@ -13143,6 +13143,7 @@
|
|
|
13143
13143
|
"tests/unit/scripts/work-item-backlink-exactness.test.ts": true,
|
|
13144
13144
|
"tests/unit/scripts/work-item-cli-acli-isolation.test.ts": true,
|
|
13145
13145
|
"tests/unit/scripts/work-item-cli-binding.test.ts": true,
|
|
13146
|
+
"tests/unit/scripts/work-item-cli-clear-context.test.ts": true,
|
|
13146
13147
|
"tests/unit/scripts/work-item-cli-commit.test.ts": true,
|
|
13147
13148
|
"tests/unit/scripts/work-item-cli-lane.test.ts": true,
|
|
13148
13149
|
"tests/unit/scripts/work-item-cli-pull-request.test.ts": true,
|
|
@@ -13315,6 +13316,7 @@
|
|
|
13315
13316
|
"tests/unit/secrets/validate-config-operator-id-kinds.test.ts": true,
|
|
13316
13317
|
"tests/unit/secrets/validate-config-session-manager.test.ts": true,
|
|
13317
13318
|
"tests/unit/secrets/validate-config.test.ts": true,
|
|
13319
|
+
"tests/unit/secrets/work-item-clear-context.test.ts": true,
|
|
13318
13320
|
"tests/unit/session-manager/answer-record-requeue.test.ts": true,
|
|
13319
13321
|
"tests/unit/session-manager/answer-record.test.ts": true,
|
|
13320
13322
|
"tests/unit/session-manager/capacity-stats.test.ts": true,
|
|
@@ -15788,6 +15790,7 @@
|
|
|
15788
15790
|
"18784e9d39ade002694ad9e6ac39aab198bd5c2b": true,
|
|
15789
15791
|
"18887b2645596c66b083458835ec2c652e1437ee": true,
|
|
15790
15792
|
"1889689b337dceb5279a631069959c218af28503": true,
|
|
15793
|
+
"188df26e23d2f6e09756d5d4980508ffcea38528": true,
|
|
15791
15794
|
"1896734beb8ef3b41034950748b467491977e5bb": true,
|
|
15792
15795
|
"1896d872bee2c38e4df221b352c973e36055713b": true,
|
|
15793
15796
|
"189927db10ed8e753592ba65a48e693539d176f6": true,
|
|
@@ -17629,6 +17632,7 @@
|
|
|
17629
17632
|
"35000a0822e84bc57db2a0065d61bb4274ee6f8b": true,
|
|
17630
17633
|
"3501788253ae6d2482e32ab45d952e5101e7a6ef": true,
|
|
17631
17634
|
"35051d46a827ea5fb62ec7cec811fbde2deb0f37": true,
|
|
17635
|
+
"3516b1ea76a42bbc93051d81e8ec7f75c544f1b0": true,
|
|
17632
17636
|
"351d278af5ff12bbb77b64a8a91ca5c437a75420": true,
|
|
17633
17637
|
"3520699d79b8494627665a3f13965f89de7ab2b7": true,
|
|
17634
17638
|
"35248c656721a7bb7374ea3cfc37584411874b8b": true,
|
|
@@ -18411,6 +18415,7 @@
|
|
|
18411
18415
|
"4080a6333912f57df475074279b212ae0c89aeec": true,
|
|
18412
18416
|
"40826008d15c471da30faa58ee2cab1acb00c452": true,
|
|
18413
18417
|
"40831b6810009a901834db2c2d778de2f9749528": true,
|
|
18418
|
+
"4083adba4217cc001ac7f99373dfa47a800f6888": true,
|
|
18414
18419
|
"40946c8c959ae1aed8c8a368da21f392217f4085": true,
|
|
18415
18420
|
"40a1a1d9ec58cdf477779b0181a1cf903542696c": true,
|
|
18416
18421
|
"40a3384a45d00dc33030eece62c2a8e98aabfea3": true,
|
|
@@ -29183,6 +29188,7 @@
|
|
|
29183
29188
|
"e0810a785b9024731ec309ebfda906cadc0a5dde": true,
|
|
29184
29189
|
"e0856edddc5fbac7d1f09aa44feaea2325a5c057": true,
|
|
29185
29190
|
"e08699c4eefb87f93eee8887b9c69cbf9f7183dc": true,
|
|
29191
|
+
"e089e04ccdc565ca849266e26c3cdcfaf635aa06": true,
|
|
29186
29192
|
"e0987b8c7ca97c192304793cf700122f2901e6e8": true,
|
|
29187
29193
|
"e099868082edd9328851cdeda6bc19f4067da80a": true,
|
|
29188
29194
|
"e09fd83ae5d83c3b3536a08b38cfe4b1c7493bb4": true,
|
|
@@ -30546,6 +30552,7 @@
|
|
|
30546
30552
|
"f572b30a55ffbf944904e03b1b1f5b3c7b828523": true,
|
|
30547
30553
|
"f5745a11981579e23a0d4f5b98b5e4959685ddca": true,
|
|
30548
30554
|
"f57a676b5cd85b926905e830952fe63c3cc930a8": true,
|
|
30555
|
+
"f57a852986572c44bd82251e9e704fc808d16ac7": true,
|
|
30549
30556
|
"f57ba02c306456f690605ab8d273ca7e4f3c44d8": true,
|
|
30550
30557
|
"f57d1abba755fa928289f97b0626a38009ac0d38": true,
|
|
30551
30558
|
"f580069eb46151711458b88c66d4c40f46b8e847": true,
|
package/package.json
CHANGED
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"zod": "^4.6.7"
|
|
201
201
|
},
|
|
202
202
|
"name": "@codyswann/lisa",
|
|
203
|
-
"version": "8.10.
|
|
203
|
+
"version": "8.10.5",
|
|
204
204
|
"description": "Governance-as-code for AI coding agents: turns a repository into agent-operated software factories with guardrails, guidance and automated enforcement for Claude Code, Codex, Cursor, OpenCode, Antigravity, Copilot and Devin",
|
|
205
205
|
"main": "dist/index.js",
|
|
206
206
|
"exports": {
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
"optional": true
|
|
372
372
|
}
|
|
373
373
|
},
|
|
374
|
-
"lisaReleaseCommit": "
|
|
375
|
-
"gitHead": "
|
|
376
|
-
"lisaReleaseTag": "v8.10.
|
|
374
|
+
"lisaReleaseCommit": "c75173306d5e2b69e8dc38e6d54fa9325ad0037b",
|
|
375
|
+
"gitHead": "c75173306d5e2b69e8dc38e6d54fa9325ad0037b",
|
|
376
|
+
"lisaReleaseTag": "v8.10.5"
|
|
377
377
|
}
|
|
@@ -79,7 +79,7 @@ These tracker and local-binding operations come first because they establish wha
|
|
|
79
79
|
|
|
80
80
|
**CI-rework route.** `lisa-track` decides the route from the item's comments before it writes anything, ignoring claim comments so a claim (including the session manager's earlier one) never hides the `[lisa-ci-failed]` marker, using the same shared helper (`scripts/lisa-ci-rework-route.mjs`) as build intake 3b. With `route: implement` nothing changes. With `route: ci-rework pr=<n>`, a required check failed on this item's existing pull request, so the work goes back to that pull request — never a new branch or a second pull request for the same item (CodySwannGT/lisa#4677). Skip the full build: no planning, research or implementation phases, no claim-time archaeology or triage — the item was already triaged and built, and only its PR's checks are red. Run this instead:
|
|
81
81
|
|
|
82
|
-
1. Put the PR's head branch (`head_ref`, or `gh pr view <n> --repo <org>/<repo> --json headRefName`) in a dedicated worktree bound to the item. If `git worktree list` already shows a worktree with `<headRefName>` checked out, reuse it (pull it up to `origin/<headRefName>` first). Otherwise run `git fetch origin <headRefName>`, then check for a local `<headRefName>` branch. If one exists and `git rev-list --count origin/<headRefName>..<headRefName>` is greater than zero, it holds a prior agent's unpushed commits: add the worktree on that local branch with `git worktree add <path> <headRefName>`, then merge `origin/<headRefName>` into it and push, so that work is published rather than discarded. Use `git worktree add -B <headRefName> <path> origin/<headRefName>` only when the local branch is absent or has nothing unpushed. Then run `node scripts/lisa-work-item.mjs link <canonical-ref>` from inside it and read it back through `node scripts/lisa-work-item.mjs current`. Run the ignore guard above there and copy the resolved `.lisa/work-item-context.md` into that worktree unchanged. Only after that copy, and only when the resolution ran in a different worktree, clean that worktree up: run `node scripts/lisa-work-item.mjs clear` there
|
|
82
|
+
1. Put the PR's head branch (`head_ref`, or `gh pr view <n> --repo <org>/<repo> --json headRefName`) in a dedicated worktree bound to the item. If `git worktree list` already shows a worktree with `<headRefName>` checked out, reuse it (pull it up to `origin/<headRefName>` first). Otherwise run `git fetch origin <headRefName>`, then check for a local `<headRefName>` branch. If one exists and `git rev-list --count origin/<headRefName>..<headRefName>` is greater than zero, it holds a prior agent's unpushed commits: add the worktree on that local branch with `git worktree add <path> <headRefName>`, then merge `origin/<headRefName>` into it and push, so that work is published rather than discarded. Use `git worktree add -B <headRefName> <path> origin/<headRefName>` only when the local branch is absent or has nothing unpushed. Then run `node scripts/lisa-work-item.mjs link <canonical-ref>` from inside it and read it back through `node scripts/lisa-work-item.mjs current`. Run the ignore guard above there and copy the resolved `.lisa/work-item-context.md` into that worktree unchanged. Only after that copy, and only when the resolution ran in a different worktree, clean that worktree up: run `node scripts/lisa-work-item.mjs clear` there, which also removes its `.lisa/work-item-context.md`, so no stale binding and no secret-bearing copy of the bundle are left behind.
|
|
83
83
|
2. In the PR worktree's `.lisa/work-item-context.md`, append the marker comment's failing check names under `## CI failure`. Pass no rejection evidence, because nobody rejected the work.
|
|
84
84
|
3. From that worktree, invoke `lisa-drive-pr-to-merge pr=<n>`, naming the failing checks: it fixes them on the existing branch and drives the pull request to merge.
|
|
85
85
|
4. Record no rejection learning: no `lisa-persist-learning` candidate and no `[lisa-rejection-candidate]` marker (the `rejection-detection` rule's CI-rework exemption). The item is not complete while the marker is uncleared: record no success outcome, done role or close until the pull request merges with every required check green. The producer's next all-green run clears the marker, and a merged or closed pull request's marker counts as cleared. On merge, finish as a build success does (tracker sync, evidence, lifecycle transition). If the pull request cannot be driven green, leave the item claimed and report why. Under `managedBy=`, the terminal `DONE:` / `FAILED:` line is sent exactly as for a build.
|
|
@@ -363,6 +363,6 @@ Before finishing, execute the Verify flow:
|
|
|
363
363
|
13a. **Switched-off work** (the item's `## Release Switch` says `Switched off — <switch-name>`, in a project with live users): steps 12 and 13 verify it with the switch **on** in a non-production environment, or, in a project with one environment, locally or for a test account only. Read back that the switch is **off** in production and record that read as evidence; if you cannot read the production value, you cannot claim the work is dark, so treat it as missing access (`tool-access-gate`). Only the item that removes the switch turns the feature on, and only once the whole feature is verified: when the declaration names another item as the remover, verify this item's part and leave the switch off in production. For the removing item, once verification passes, first confirm that the version you verified is what production is running (the production deployment includes the feature's last merge), because turning the switch on over an earlier, incomplete version shows users unfinished work. Then turn the switch on in production yourself. No person is needed, unless `node scripts/lisa-release-switch.mjs config` reports `"turnOn": "human"` (the project lists `feature-release` in `humanGate.humanOnly`); then that one step is a declared human gate: post a plain-English comment saying the feature is verified and waiting to be turned on, and hold the item there with a human-gate reason that names the class, for example `feature-release: turn <switch-name> on in production` (a reason that does not name `feature-release` is refused as a decision the agent should make). If the same command lists a `humanGate.humanOnly` problem, the project's setting is malformed: report it and do not turn the feature on. Remove the switch only after it is on in production and healthy, in a follow-on change on the same work item (or the item the declaration names): never while verification is failing or the turn-on is still waiting at the human gate, because removing the guard keeps the enabled path. That removal change is verified differently: the switch is on, or already gone, so there is no "off in production" to read back. Verify instead that the feature works in production with the switch removed and that nothing still reads it. `lisa-work-item.mjs finish` refuses the removing item while tracked source still references the switch.
|
|
364
364
|
14. If remote verification fails, find out why. **A change whose failure is live is reverted, not fixed forward** (`coding-philosophy`, "Always Promotable"). Judge that by what users can reach, not only by the declaration: the failure is live when the item's `## Release Switch` says `Live` (or it has none), and also when the item is switched off but the failure shows with the switch off (it broke existing behavior). In a project with live users, that change is on a shared branch that must stay promotable. Revert it at once: open a pull request that reverts the merged change, drive it to merge with `lisa-drive-pr-to-merge`, then return the work item to the ready queue with the failure evidence so the rework arrives as a fresh claim. Never leave the change in place while you fix it, and never hold a promotion for it. Write the verdict with `status: "blocked"`, marking each criterion the failure affects as `blocked` with the failure and the revert as its evidence, and end the flow there: the completion gate releases on a `blocked` verdict, and the rework is already back in the ready queue. Once the switch is on in production, every failure of the feature is live: turn the switch off again at once, which is the fastest way back, and revert the removal change if it has already shipped. **A failure that only shows with the switch on while the switch is still off in production, and any failure in a project that sets `release.liveUsers: false`, is fixed forward**: nothing users can reach is broken and nothing is blocked, so fix it and return to step 5. **Bound this loop**: after a small number of full fix→deploy→reverify cycles without reaching a passing remote verdict (treat ~3 as the ceiling unless the work item states otherwise), stop retrying — file a build-ready fix ticket, write the verdict with `status: "blocked"` and the diagnosis, and move the work item to blocked rather than looping indefinitely. The completion gate releases on a `blocked` verdict, so the flow ends with a recorded outcome instead of a silent spin or a self-declared success.
|
|
365
365
|
15. **Post evidence to the originating work item** via `lisa-tracker-evidence` (vendor-neutral; dispatches to `lisa-jira-evidence`, `lisa-github-evidence`, or `lisa-linear-evidence` per `.lisa.config.json` `tracker`), including the list of codified tests added on this branch. **If the work is UI-visible** (any verification step ran in a browser, or the change touches a user-facing surface), author `evidence/comment.md` per the **UI Evidence Checklist** in `lisa-tracker-evidence` — numbered live-session steps, one screenshot per step captured through the interactive browser controller and uploaded to the configured GitHub evidence release (default `pr-assets`) as plain URLs, and an explicit invitation to be corrected. This step is what makes the proof visible to a non-technical operator standing at the gate; a terminal work item with no posted evidence is an incomplete flow, not a finished one.
|
|
366
|
-
16. After true terminal completion — required merge/deploy/verification passed, usage/evidence and two-way PR linkage are recorded, and the work item is terminal (terminal completion is `lisa-work-item.mjs finish`, run by `lisa-drive-pr-to-merge` §3d) — run `node scripts/lisa-work-item.mjs clear`,
|
|
366
|
+
16. After true terminal completion — required merge/deploy/verification passed, usage/evidence and two-way PR linkage are recorded, and the work item is terminal (terminal completion is `lisa-work-item.mjs finish`, run by `lisa-drive-pr-to-merge` §3d) — run `node scripts/lisa-work-item.mjs clear`, which also removes this ticket's work-item context file (`.lisa/work-item-context.md`) so comment-borne secrets do not outlive the work, and verify the worktree has no current binding and no context file. If `clear` reports that it kept the file because it names another ticket, leave it: that work is not finished. Do not clear on an interruption or blocked outcome; preserving the binding is what keeps resumed work attributable.
|
|
367
367
|
|
|
368
368
|
**Ticket status transitions throughout this flow are config-bound** per the **Tracker status vocabulary** section of the `config-resolution` rule: whoever performs the tracker write may only target statuses named in the configured workflow map (`claimed`, `blocked`, env-keyed `done`, and `review`/`qa` when configured). Never adopt a status discovered from the tracker's live workflow; a lifecycle stage with no configured status gets a comment, not a transition.
|
|
@@ -444,7 +444,13 @@ if (invokedAsScript(import.meta.url)) {
|
|
|
444
444
|
const result = failure(
|
|
445
445
|
error instanceof AccessFailure ? error.code : "config-invalid"
|
|
446
446
|
);
|
|
447
|
-
|
|
447
|
+
// A prepare refusal whose cause is known says it, instead of the generic
|
|
448
|
+
// resolver text that names neither the file nor the ticket (#5199).
|
|
449
|
+
const detail =
|
|
450
|
+
error instanceof AccessFailure && typeof error.detail === "string"
|
|
451
|
+
? error.detail
|
|
452
|
+
: result.action;
|
|
453
|
+
console.error(`${result.code}: ${detail}`);
|
|
448
454
|
process.exitCode = process.argv.includes("--prepare") ? 2 : 1;
|
|
449
455
|
}
|
|
450
456
|
}
|
package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/task-context-write.mjs
CHANGED
|
@@ -20,6 +20,18 @@ const fail = () => {
|
|
|
20
20
|
throw new AccessFailure("requirements-stale");
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
/** A refusal whose cause can be said exactly; the code is unchanged. */
|
|
24
|
+
const failWith = detail => {
|
|
25
|
+
throw Object.assign(new AccessFailure("requirements-stale"), { detail });
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** A ticket reference safe to print, or a neutral stand-in. */
|
|
29
|
+
const shown = ref =>
|
|
30
|
+
typeof ref === "string" &&
|
|
31
|
+
/^(?:[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+#\d+|[A-Z][A-Z0-9]+-\d+)$/u.test(ref)
|
|
32
|
+
? ref
|
|
33
|
+
: "another ticket";
|
|
34
|
+
|
|
23
35
|
/** The existing resolver contract permits only this one Git-private exclusion. */
|
|
24
36
|
function ensureIgnored(root) {
|
|
25
37
|
const ignored = () => {
|
|
@@ -81,7 +93,11 @@ export function writeRequirementsContext(
|
|
|
81
93
|
input.requirements_complete !== true
|
|
82
94
|
)
|
|
83
95
|
fail();
|
|
84
|
-
if (!configuredRef(cfg, ref)
|
|
96
|
+
if (!configuredRef(cfg, ref)) fail();
|
|
97
|
+
if (binding && binding.ref !== ref)
|
|
98
|
+
failWith(
|
|
99
|
+
`this checkout is bound to ${shown(binding.ref)}, and prepare runs only for the bound ticket. When ${shown(binding.ref)} is finished, run \`node scripts/lisa-work-item.mjs clear\`, which also removes its .lisa/work-item-context.md; or bind this ticket with \`node scripts/lisa-work-item.mjs link ${shown(ref)}\` first.`
|
|
100
|
+
);
|
|
85
101
|
const path = join(cfg.projectRoot, ".lisa/work-item-context.md");
|
|
86
102
|
let initial = false;
|
|
87
103
|
try {
|
|
@@ -112,6 +128,14 @@ export function writeRequirementsContext(
|
|
|
112
128
|
binding?.ref === ref &&
|
|
113
129
|
previous !== null &&
|
|
114
130
|
previous !== ref;
|
|
131
|
+
// Unbound, another ticket's context may be prepared but not yet linked,
|
|
132
|
+
// so it is kept; the refusal says whose it is and how to move on (#5199).
|
|
133
|
+
if (!replacing && previous !== null && previous !== ref)
|
|
134
|
+
failWith(
|
|
135
|
+
binding?.ref === ref
|
|
136
|
+
? `.lisa/work-item-context.md holds the context of ${shown(previous)}, not ${shown(ref)}. Run this prepare again with this ticket's full text as "context_body": it then replaces the old context.`
|
|
137
|
+
: `.lisa/work-item-context.md holds the context of ${shown(previous)}, not ${shown(ref)}, and it is kept because no binding names ${shown(ref)}. If ${shown(previous)} is finished, bind this ticket with \`node scripts/lisa-work-item.mjs link ${shown(ref)}\` and run this prepare again: it then replaces the old context.`
|
|
138
|
+
);
|
|
115
139
|
if (input.context_body !== undefined && !replacing) fail();
|
|
116
140
|
}
|
|
117
141
|
const eas = join(cfg.projectRoot, ".easignore");
|
|
@@ -57,6 +57,6 @@ Linkage is unconditional for an Implement flow because its input gate always est
|
|
|
57
57
|
|
|
58
58
|
## Binding lifetime
|
|
59
59
|
|
|
60
|
-
Binding state is local machine state and must remain untracked. Keep it through interruptions and blocked outcomes. Run `node scripts/lisa-work-item.mjs clear` only after true terminal completion: required merge/deploy/verification is complete, evidence and two-way PR linkage are recorded, and the tracker item is in its terminal state. Verify that no current binding remains before ending the completed flow.
|
|
60
|
+
Binding state is local machine state and must remain untracked. Keep it through interruptions and blocked outcomes. Run `node scripts/lisa-work-item.mjs clear` only after true terminal completion: required merge/deploy/verification is complete, evidence and two-way PR linkage are recorded, and the tracker item is in its terminal state. `clear` also removes that ticket's `.lisa/work-item-context.md`; it keeps a context that names a different ticket and says so. Verify that no current binding remains before ending the completed flow.
|
|
61
61
|
|
|
62
62
|
Git hooks and CI enforce this contract but never create work items. Their recovery message directs the operator to mention the related ticket or run `/lisa:track <description>` to create and bind one.
|
|
@@ -77,7 +77,7 @@ These tracker and local-binding operations come first because they establish wha
|
|
|
77
77
|
|
|
78
78
|
**CI-rework route.** `lisa-track` decides the route from the item's comments before it writes anything, ignoring claim comments so a claim (including the session manager's earlier one) never hides the `[lisa-ci-failed]` marker, using the same shared helper (`scripts/lisa-ci-rework-route.mjs`) as build intake 3b. With `route: implement` nothing changes. With `route: ci-rework pr=<n>`, a required check failed on this item's existing pull request, so the work goes back to that pull request — never a new branch or a second pull request for the same item (CodySwannGT/lisa#4677). Skip the full build: no planning, research or implementation phases, no claim-time archaeology or triage — the item was already triaged and built, and only its PR's checks are red. Run this instead:
|
|
79
79
|
|
|
80
|
-
1. Put the PR's head branch (`head_ref`, or `gh pr view <n> --repo <org>/<repo> --json headRefName`) in a dedicated worktree bound to the item. If `git worktree list` already shows a worktree with `<headRefName>` checked out, reuse it (pull it up to `origin/<headRefName>` first). Otherwise run `git fetch origin <headRefName>`, then check for a local `<headRefName>` branch. If one exists and `git rev-list --count origin/<headRefName>..<headRefName>` is greater than zero, it holds a prior agent's unpushed commits: add the worktree on that local branch with `git worktree add <path> <headRefName>`, then merge `origin/<headRefName>` into it and push, so that work is published rather than discarded. Use `git worktree add -B <headRefName> <path> origin/<headRefName>` only when the local branch is absent or has nothing unpushed. Then run `node scripts/lisa-work-item.mjs link <canonical-ref>` from inside it and read it back through `node scripts/lisa-work-item.mjs current`. Run the ignore guard above there and copy the resolved `.lisa/work-item-context.md` into that worktree unchanged. Only after that copy, and only when the resolution ran in a different worktree, clean that worktree up: run `node scripts/lisa-work-item.mjs clear` there
|
|
80
|
+
1. Put the PR's head branch (`head_ref`, or `gh pr view <n> --repo <org>/<repo> --json headRefName`) in a dedicated worktree bound to the item. If `git worktree list` already shows a worktree with `<headRefName>` checked out, reuse it (pull it up to `origin/<headRefName>` first). Otherwise run `git fetch origin <headRefName>`, then check for a local `<headRefName>` branch. If one exists and `git rev-list --count origin/<headRefName>..<headRefName>` is greater than zero, it holds a prior agent's unpushed commits: add the worktree on that local branch with `git worktree add <path> <headRefName>`, then merge `origin/<headRefName>` into it and push, so that work is published rather than discarded. Use `git worktree add -B <headRefName> <path> origin/<headRefName>` only when the local branch is absent or has nothing unpushed. Then run `node scripts/lisa-work-item.mjs link <canonical-ref>` from inside it and read it back through `node scripts/lisa-work-item.mjs current`. Run the ignore guard above there and copy the resolved `.lisa/work-item-context.md` into that worktree unchanged. Only after that copy, and only when the resolution ran in a different worktree, clean that worktree up: run `node scripts/lisa-work-item.mjs clear` there, which also removes its `.lisa/work-item-context.md`, so no stale binding and no secret-bearing copy of the bundle are left behind.
|
|
81
81
|
2. In the PR worktree's `.lisa/work-item-context.md`, append the marker comment's failing check names under `## CI failure`. Pass no rejection evidence, because nobody rejected the work.
|
|
82
82
|
3. From that worktree, invoke `lisa-drive-pr-to-merge pr=<n>`, naming the failing checks: it fixes them on the existing branch and drives the pull request to merge.
|
|
83
83
|
4. Record no rejection learning: no `lisa-persist-learning` candidate and no `[lisa-rejection-candidate]` marker (the `rejection-detection` rule's CI-rework exemption). The item is not complete while the marker is uncleared: record no success outcome, done role or close until the pull request merges with every required check green. The producer's next all-green run clears the marker, and a merged or closed pull request's marker counts as cleared. On merge, finish as a build success does (tracker sync, evidence, lifecycle transition). If the pull request cannot be driven green, leave the item claimed and report why. Under `managedBy=`, the terminal `DONE:` / `FAILED:` line is sent exactly as for a build.
|
|
@@ -361,6 +361,6 @@ Before finishing, execute the Verify flow:
|
|
|
361
361
|
13a. **Switched-off work** (the item's `## Release Switch` says `Switched off — <switch-name>`, in a project with live users): steps 12 and 13 verify it with the switch **on** in a non-production environment, or, in a project with one environment, locally or for a test account only. Read back that the switch is **off** in production and record that read as evidence; if you cannot read the production value, you cannot claim the work is dark, so treat it as missing access (`tool-access-gate`). Only the item that removes the switch turns the feature on, and only once the whole feature is verified: when the declaration names another item as the remover, verify this item's part and leave the switch off in production. For the removing item, once verification passes, first confirm that the version you verified is what production is running (the production deployment includes the feature's last merge), because turning the switch on over an earlier, incomplete version shows users unfinished work. Then turn the switch on in production yourself. No person is needed, unless `node scripts/lisa-release-switch.mjs config` reports `"turnOn": "human"` (the project lists `feature-release` in `humanGate.humanOnly`); then that one step is a declared human gate: post a plain-English comment saying the feature is verified and waiting to be turned on, and hold the item there with a human-gate reason that names the class, for example `feature-release: turn <switch-name> on in production` (a reason that does not name `feature-release` is refused as a decision the agent should make). If the same command lists a `humanGate.humanOnly` problem, the project's setting is malformed: report it and do not turn the feature on. Remove the switch only after it is on in production and healthy, in a follow-on change on the same work item (or the item the declaration names): never while verification is failing or the turn-on is still waiting at the human gate, because removing the guard keeps the enabled path. That removal change is verified differently: the switch is on, or already gone, so there is no "off in production" to read back. Verify instead that the feature works in production with the switch removed and that nothing still reads it. `lisa-work-item.mjs finish` refuses the removing item while tracked source still references the switch.
|
|
362
362
|
14. If remote verification fails, find out why. **A change whose failure is live is reverted, not fixed forward** (`coding-philosophy`, "Always Promotable"). Judge that by what users can reach, not only by the declaration: the failure is live when the item's `## Release Switch` says `Live` (or it has none), and also when the item is switched off but the failure shows with the switch off (it broke existing behavior). In a project with live users, that change is on a shared branch that must stay promotable. Revert it at once: open a pull request that reverts the merged change, drive it to merge with `lisa-drive-pr-to-merge`, then return the work item to the ready queue with the failure evidence so the rework arrives as a fresh claim. Never leave the change in place while you fix it, and never hold a promotion for it. Write the verdict with `status: "blocked"`, marking each criterion the failure affects as `blocked` with the failure and the revert as its evidence, and end the flow there: the completion gate releases on a `blocked` verdict, and the rework is already back in the ready queue. Once the switch is on in production, every failure of the feature is live: turn the switch off again at once, which is the fastest way back, and revert the removal change if it has already shipped. **A failure that only shows with the switch on while the switch is still off in production, and any failure in a project that sets `release.liveUsers: false`, is fixed forward**: nothing users can reach is broken and nothing is blocked, so fix it and return to step 5. **Bound this loop**: after a small number of full fix→deploy→reverify cycles without reaching a passing remote verdict (treat ~3 as the ceiling unless the work item states otherwise), stop retrying — file a build-ready fix ticket, write the verdict with `status: "blocked"` and the diagnosis, and move the work item to blocked rather than looping indefinitely. The completion gate releases on a `blocked` verdict, so the flow ends with a recorded outcome instead of a silent spin or a self-declared success.
|
|
363
363
|
15. **Post evidence to the originating work item** via `lisa-tracker-evidence` (vendor-neutral; dispatches to `lisa-jira-evidence`, `lisa-github-evidence`, or `lisa-linear-evidence` per `.lisa.config.json` `tracker`), including the list of codified tests added on this branch. **If the work is UI-visible** (any verification step ran in a browser, or the change touches a user-facing surface), author `evidence/comment.md` per the **UI Evidence Checklist** in `lisa-tracker-evidence` — numbered live-session steps, one screenshot per step captured through the interactive browser controller and uploaded to the configured GitHub evidence release (default `pr-assets`) as plain URLs, and an explicit invitation to be corrected. This step is what makes the proof visible to a non-technical operator standing at the gate; a terminal work item with no posted evidence is an incomplete flow, not a finished one.
|
|
364
|
-
16. After true terminal completion — required merge/deploy/verification passed, usage/evidence and two-way PR linkage are recorded, and the work item is terminal (terminal completion is `lisa-work-item.mjs finish`, run by `lisa-drive-pr-to-merge` §3d) — run `node scripts/lisa-work-item.mjs clear`,
|
|
364
|
+
16. After true terminal completion — required merge/deploy/verification passed, usage/evidence and two-way PR linkage are recorded, and the work item is terminal (terminal completion is `lisa-work-item.mjs finish`, run by `lisa-drive-pr-to-merge` §3d) — run `node scripts/lisa-work-item.mjs clear`, which also removes this ticket's work-item context file (`.lisa/work-item-context.md`) so comment-borne secrets do not outlive the work, and verify the worktree has no current binding and no context file. If `clear` reports that it kept the file because it names another ticket, leave it: that work is not finished. Do not clear on an interruption or blocked outcome; preserving the binding is what keeps resumed work attributable.
|
|
365
365
|
|
|
366
366
|
**Ticket status transitions throughout this flow are config-bound** per the **Tracker status vocabulary** section of the `config-resolution` rule: whoever performs the tracker write may only target statuses named in the configured workflow map (`claimed`, `blocked`, env-keyed `done`, and `review`/`qa` when configured). Never adopt a status discovered from the tracker's live workflow; a lifecycle stage with no configured status gets a comment, not a transition.
|
|
@@ -444,7 +444,13 @@ if (invokedAsScript(import.meta.url)) {
|
|
|
444
444
|
const result = failure(
|
|
445
445
|
error instanceof AccessFailure ? error.code : "config-invalid"
|
|
446
446
|
);
|
|
447
|
-
|
|
447
|
+
// A prepare refusal whose cause is known says it, instead of the generic
|
|
448
|
+
// resolver text that names neither the file nor the ticket (#5199).
|
|
449
|
+
const detail =
|
|
450
|
+
error instanceof AccessFailure && typeof error.detail === "string"
|
|
451
|
+
? error.detail
|
|
452
|
+
: result.action;
|
|
453
|
+
console.error(`${result.code}: ${detail}`);
|
|
448
454
|
process.exitCode = process.argv.includes("--prepare") ? 2 : 1;
|
|
449
455
|
}
|
|
450
456
|
}
|
|
@@ -20,6 +20,18 @@ const fail = () => {
|
|
|
20
20
|
throw new AccessFailure("requirements-stale");
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
/** A refusal whose cause can be said exactly; the code is unchanged. */
|
|
24
|
+
const failWith = detail => {
|
|
25
|
+
throw Object.assign(new AccessFailure("requirements-stale"), { detail });
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** A ticket reference safe to print, or a neutral stand-in. */
|
|
29
|
+
const shown = ref =>
|
|
30
|
+
typeof ref === "string" &&
|
|
31
|
+
/^(?:[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+#\d+|[A-Z][A-Z0-9]+-\d+)$/u.test(ref)
|
|
32
|
+
? ref
|
|
33
|
+
: "another ticket";
|
|
34
|
+
|
|
23
35
|
/** The existing resolver contract permits only this one Git-private exclusion. */
|
|
24
36
|
function ensureIgnored(root) {
|
|
25
37
|
const ignored = () => {
|
|
@@ -81,7 +93,11 @@ export function writeRequirementsContext(
|
|
|
81
93
|
input.requirements_complete !== true
|
|
82
94
|
)
|
|
83
95
|
fail();
|
|
84
|
-
if (!configuredRef(cfg, ref)
|
|
96
|
+
if (!configuredRef(cfg, ref)) fail();
|
|
97
|
+
if (binding && binding.ref !== ref)
|
|
98
|
+
failWith(
|
|
99
|
+
`this checkout is bound to ${shown(binding.ref)}, and prepare runs only for the bound ticket. When ${shown(binding.ref)} is finished, run \`node scripts/lisa-work-item.mjs clear\`, which also removes its .lisa/work-item-context.md; or bind this ticket with \`node scripts/lisa-work-item.mjs link ${shown(ref)}\` first.`
|
|
100
|
+
);
|
|
85
101
|
const path = join(cfg.projectRoot, ".lisa/work-item-context.md");
|
|
86
102
|
let initial = false;
|
|
87
103
|
try {
|
|
@@ -112,6 +128,14 @@ export function writeRequirementsContext(
|
|
|
112
128
|
binding?.ref === ref &&
|
|
113
129
|
previous !== null &&
|
|
114
130
|
previous !== ref;
|
|
131
|
+
// Unbound, another ticket's context may be prepared but not yet linked,
|
|
132
|
+
// so it is kept; the refusal says whose it is and how to move on (#5199).
|
|
133
|
+
if (!replacing && previous !== null && previous !== ref)
|
|
134
|
+
failWith(
|
|
135
|
+
binding?.ref === ref
|
|
136
|
+
? `.lisa/work-item-context.md holds the context of ${shown(previous)}, not ${shown(ref)}. Run this prepare again with this ticket's full text as "context_body": it then replaces the old context.`
|
|
137
|
+
: `.lisa/work-item-context.md holds the context of ${shown(previous)}, not ${shown(ref)}, and it is kept because no binding names ${shown(ref)}. If ${shown(previous)} is finished, bind this ticket with \`node scripts/lisa-work-item.mjs link ${shown(ref)}\` and run this prepare again: it then replaces the old context.`
|
|
138
|
+
);
|
|
115
139
|
if (input.context_body !== undefined && !replacing) fail();
|
|
116
140
|
}
|
|
117
141
|
const eas = join(cfg.projectRoot, ".easignore");
|
|
@@ -77,7 +77,7 @@ These tracker and local-binding operations come first because they establish wha
|
|
|
77
77
|
|
|
78
78
|
**CI-rework route.** `lisa-track` decides the route from the item's comments before it writes anything, ignoring claim comments so a claim (including the session manager's earlier one) never hides the `[lisa-ci-failed]` marker, using the same shared helper (`scripts/lisa-ci-rework-route.mjs`) as build intake 3b. With `route: implement` nothing changes. With `route: ci-rework pr=<n>`, a required check failed on this item's existing pull request, so the work goes back to that pull request — never a new branch or a second pull request for the same item (CodySwannGT/lisa#4677). Skip the full build: no planning, research or implementation phases, no claim-time archaeology or triage — the item was already triaged and built, and only its PR's checks are red. Run this instead:
|
|
79
79
|
|
|
80
|
-
1. Put the PR's head branch (`head_ref`, or `gh pr view <n> --repo <org>/<repo> --json headRefName`) in a dedicated worktree bound to the item. If `git worktree list` already shows a worktree with `<headRefName>` checked out, reuse it (pull it up to `origin/<headRefName>` first). Otherwise run `git fetch origin <headRefName>`, then check for a local `<headRefName>` branch. If one exists and `git rev-list --count origin/<headRefName>..<headRefName>` is greater than zero, it holds a prior agent's unpushed commits: add the worktree on that local branch with `git worktree add <path> <headRefName>`, then merge `origin/<headRefName>` into it and push, so that work is published rather than discarded. Use `git worktree add -B <headRefName> <path> origin/<headRefName>` only when the local branch is absent or has nothing unpushed. Then run `node scripts/lisa-work-item.mjs link <canonical-ref>` from inside it and read it back through `node scripts/lisa-work-item.mjs current`. Run the ignore guard above there and copy the resolved `.lisa/work-item-context.md` into that worktree unchanged. Only after that copy, and only when the resolution ran in a different worktree, clean that worktree up: run `node scripts/lisa-work-item.mjs clear` there
|
|
80
|
+
1. Put the PR's head branch (`head_ref`, or `gh pr view <n> --repo <org>/<repo> --json headRefName`) in a dedicated worktree bound to the item. If `git worktree list` already shows a worktree with `<headRefName>` checked out, reuse it (pull it up to `origin/<headRefName>` first). Otherwise run `git fetch origin <headRefName>`, then check for a local `<headRefName>` branch. If one exists and `git rev-list --count origin/<headRefName>..<headRefName>` is greater than zero, it holds a prior agent's unpushed commits: add the worktree on that local branch with `git worktree add <path> <headRefName>`, then merge `origin/<headRefName>` into it and push, so that work is published rather than discarded. Use `git worktree add -B <headRefName> <path> origin/<headRefName>` only when the local branch is absent or has nothing unpushed. Then run `node scripts/lisa-work-item.mjs link <canonical-ref>` from inside it and read it back through `node scripts/lisa-work-item.mjs current`. Run the ignore guard above there and copy the resolved `.lisa/work-item-context.md` into that worktree unchanged. Only after that copy, and only when the resolution ran in a different worktree, clean that worktree up: run `node scripts/lisa-work-item.mjs clear` there, which also removes its `.lisa/work-item-context.md`, so no stale binding and no secret-bearing copy of the bundle are left behind.
|
|
81
81
|
2. In the PR worktree's `.lisa/work-item-context.md`, append the marker comment's failing check names under `## CI failure`. Pass no rejection evidence, because nobody rejected the work.
|
|
82
82
|
3. From that worktree, invoke `lisa-drive-pr-to-merge pr=<n>`, naming the failing checks: it fixes them on the existing branch and drives the pull request to merge.
|
|
83
83
|
4. Record no rejection learning: no `lisa-persist-learning` candidate and no `[lisa-rejection-candidate]` marker (the `rejection-detection` rule's CI-rework exemption). The item is not complete while the marker is uncleared: record no success outcome, done role or close until the pull request merges with every required check green. The producer's next all-green run clears the marker, and a merged or closed pull request's marker counts as cleared. On merge, finish as a build success does (tracker sync, evidence, lifecycle transition). If the pull request cannot be driven green, leave the item claimed and report why. Under `managedBy=`, the terminal `DONE:` / `FAILED:` line is sent exactly as for a build.
|
|
@@ -361,6 +361,6 @@ Before finishing, execute the Verify flow:
|
|
|
361
361
|
13a. **Switched-off work** (the item's `## Release Switch` says `Switched off — <switch-name>`, in a project with live users): steps 12 and 13 verify it with the switch **on** in a non-production environment, or, in a project with one environment, locally or for a test account only. Read back that the switch is **off** in production and record that read as evidence; if you cannot read the production value, you cannot claim the work is dark, so treat it as missing access (`tool-access-gate`). Only the item that removes the switch turns the feature on, and only once the whole feature is verified: when the declaration names another item as the remover, verify this item's part and leave the switch off in production. For the removing item, once verification passes, first confirm that the version you verified is what production is running (the production deployment includes the feature's last merge), because turning the switch on over an earlier, incomplete version shows users unfinished work. Then turn the switch on in production yourself. No person is needed, unless `node scripts/lisa-release-switch.mjs config` reports `"turnOn": "human"` (the project lists `feature-release` in `humanGate.humanOnly`); then that one step is a declared human gate: post a plain-English comment saying the feature is verified and waiting to be turned on, and hold the item there with a human-gate reason that names the class, for example `feature-release: turn <switch-name> on in production` (a reason that does not name `feature-release` is refused as a decision the agent should make). If the same command lists a `humanGate.humanOnly` problem, the project's setting is malformed: report it and do not turn the feature on. Remove the switch only after it is on in production and healthy, in a follow-on change on the same work item (or the item the declaration names): never while verification is failing or the turn-on is still waiting at the human gate, because removing the guard keeps the enabled path. That removal change is verified differently: the switch is on, or already gone, so there is no "off in production" to read back. Verify instead that the feature works in production with the switch removed and that nothing still reads it. `lisa-work-item.mjs finish` refuses the removing item while tracked source still references the switch.
|
|
362
362
|
14. If remote verification fails, find out why. **A change whose failure is live is reverted, not fixed forward** (`coding-philosophy`, "Always Promotable"). Judge that by what users can reach, not only by the declaration: the failure is live when the item's `## Release Switch` says `Live` (or it has none), and also when the item is switched off but the failure shows with the switch off (it broke existing behavior). In a project with live users, that change is on a shared branch that must stay promotable. Revert it at once: open a pull request that reverts the merged change, drive it to merge with `lisa-drive-pr-to-merge`, then return the work item to the ready queue with the failure evidence so the rework arrives as a fresh claim. Never leave the change in place while you fix it, and never hold a promotion for it. Write the verdict with `status: "blocked"`, marking each criterion the failure affects as `blocked` with the failure and the revert as its evidence, and end the flow there: the completion gate releases on a `blocked` verdict, and the rework is already back in the ready queue. Once the switch is on in production, every failure of the feature is live: turn the switch off again at once, which is the fastest way back, and revert the removal change if it has already shipped. **A failure that only shows with the switch on while the switch is still off in production, and any failure in a project that sets `release.liveUsers: false`, is fixed forward**: nothing users can reach is broken and nothing is blocked, so fix it and return to step 5. **Bound this loop**: after a small number of full fix→deploy→reverify cycles without reaching a passing remote verdict (treat ~3 as the ceiling unless the work item states otherwise), stop retrying — file a build-ready fix ticket, write the verdict with `status: "blocked"` and the diagnosis, and move the work item to blocked rather than looping indefinitely. The completion gate releases on a `blocked` verdict, so the flow ends with a recorded outcome instead of a silent spin or a self-declared success.
|
|
363
363
|
15. **Post evidence to the originating work item** via `lisa-tracker-evidence` (vendor-neutral; dispatches to `lisa-jira-evidence`, `lisa-github-evidence`, or `lisa-linear-evidence` per `.lisa.config.json` `tracker`), including the list of codified tests added on this branch. **If the work is UI-visible** (any verification step ran in a browser, or the change touches a user-facing surface), author `evidence/comment.md` per the **UI Evidence Checklist** in `lisa-tracker-evidence` — numbered live-session steps, one screenshot per step captured through the interactive browser controller and uploaded to the configured GitHub evidence release (default `pr-assets`) as plain URLs, and an explicit invitation to be corrected. This step is what makes the proof visible to a non-technical operator standing at the gate; a terminal work item with no posted evidence is an incomplete flow, not a finished one.
|
|
364
|
-
16. After true terminal completion — required merge/deploy/verification passed, usage/evidence and two-way PR linkage are recorded, and the work item is terminal (terminal completion is `lisa-work-item.mjs finish`, run by `lisa-drive-pr-to-merge` §3d) — run `node scripts/lisa-work-item.mjs clear`,
|
|
364
|
+
16. After true terminal completion — required merge/deploy/verification passed, usage/evidence and two-way PR linkage are recorded, and the work item is terminal (terminal completion is `lisa-work-item.mjs finish`, run by `lisa-drive-pr-to-merge` §3d) — run `node scripts/lisa-work-item.mjs clear`, which also removes this ticket's work-item context file (`.lisa/work-item-context.md`) so comment-borne secrets do not outlive the work, and verify the worktree has no current binding and no context file. If `clear` reports that it kept the file because it names another ticket, leave it: that work is not finished. Do not clear on an interruption or blocked outcome; preserving the binding is what keeps resumed work attributable.
|
|
365
365
|
|
|
366
366
|
**Ticket status transitions throughout this flow are config-bound** per the **Tracker status vocabulary** section of the `config-resolution` rule: whoever performs the tracker write may only target statuses named in the configured workflow map (`claimed`, `blocked`, env-keyed `done`, and `review`/`qa` when configured). Never adopt a status discovered from the tracker's live workflow; a lifecycle stage with no configured status gets a comment, not a transition.
|
|
@@ -444,7 +444,13 @@ if (invokedAsScript(import.meta.url)) {
|
|
|
444
444
|
const result = failure(
|
|
445
445
|
error instanceof AccessFailure ? error.code : "config-invalid"
|
|
446
446
|
);
|
|
447
|
-
|
|
447
|
+
// A prepare refusal whose cause is known says it, instead of the generic
|
|
448
|
+
// resolver text that names neither the file nor the ticket (#5199).
|
|
449
|
+
const detail =
|
|
450
|
+
error instanceof AccessFailure && typeof error.detail === "string"
|
|
451
|
+
? error.detail
|
|
452
|
+
: result.action;
|
|
453
|
+
console.error(`${result.code}: ${detail}`);
|
|
448
454
|
process.exitCode = process.argv.includes("--prepare") ? 2 : 1;
|
|
449
455
|
}
|
|
450
456
|
}
|