@codyswann/lisa 4.107.11 → 4.107.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/all/copy-overwrite/scripts/lib/completion-proof-shape.mjs +52 -14
  2. package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
  3. package/dist/core/learnings-retire.d.ts +59 -0
  4. package/dist/core/learnings-retire.d.ts.map +1 -0
  5. package/dist/core/learnings-retire.js +131 -0
  6. package/dist/core/learnings-retire.js.map +1 -0
  7. package/dist/core/learnings.d.ts +1 -0
  8. package/dist/core/learnings.d.ts.map +1 -1
  9. package/dist/core/learnings.js +1 -0
  10. package/dist/core/learnings.js.map +1 -1
  11. package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
  12. package/dist/core/lisa-owned-hash-ledger.js +12 -0
  13. package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
  14. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  15. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  16. package/dist/core/upstream-evidence-manifest.js +21 -8
  17. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  18. package/package.json +4 -4
  19. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  20. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  21. package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +1 -1
  22. package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  23. package/plugins/lisa/.codex-plugin/skills/lisa-learnings-audit/SKILL.md +30 -1
  24. package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  25. package/plugins/lisa/.codex-plugin/skills/lisa-tracker-evidence/SKILL.md +1 -1
  26. package/plugins/lisa/rules/reference/project-learnings.md +21 -0
  27. package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +1 -1
  28. package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  29. package/plugins/lisa/skills/lisa-learnings-audit/SKILL.md +30 -1
  30. package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  31. package/plugins/lisa/skills/lisa-tracker-evidence/SKILL.md +1 -1
  32. package/plugins/lisa-agy/plugin.json +1 -1
  33. package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +1 -1
  34. package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  35. package/plugins/lisa-agy/skills/lisa-learnings-audit/SKILL.md +30 -1
  36. package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  37. package/plugins/lisa-agy/skills/lisa-tracker-evidence/SKILL.md +1 -1
  38. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  40. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  41. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  45. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-copilot/rules/reference/project-learnings.md +21 -0
  47. package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +1 -1
  48. package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  49. package/plugins/lisa-copilot/skills/lisa-learnings-audit/SKILL.md +30 -1
  50. package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  51. package/plugins/lisa-copilot/skills/lisa-tracker-evidence/SKILL.md +1 -1
  52. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-cursor/rules/project-learnings-reference.mdc +21 -0
  54. package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +1 -1
  55. package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  56. package/plugins/lisa-cursor/skills/lisa-learnings-audit/SKILL.md +30 -1
  57. package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  58. package/plugins/lisa-cursor/skills/lisa-tracker-evidence/SKILL.md +1 -1
  59. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  61. package/plugins/lisa-devin/rules/reference/project-learnings.md +21 -0
  62. package/plugins/lisa-devin/skills/lisa-github-validate-issue/SKILL.md +1 -1
  63. package/plugins/lisa-devin/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  64. package/plugins/lisa-devin/skills/lisa-learnings-audit/SKILL.md +30 -1
  65. package/plugins/lisa-devin/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  66. package/plugins/lisa-devin/skills/lisa-tracker-evidence/SKILL.md +1 -1
  67. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  69. package/plugins/lisa-expo-agy/plugin.json +1 -1
  70. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  71. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  72. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  74. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  76. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  77. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  78. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  79. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  81. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  83. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  84. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  85. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  86. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  87. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  88. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  90. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  91. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  92. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  93. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  94. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  95. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  97. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  98. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  99. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  100. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  101. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  102. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  103. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  104. package/plugins/lisa-rails-agy/plugin.json +1 -1
  105. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  106. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  107. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  108. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  109. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  110. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  111. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  112. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  113. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  114. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  115. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  116. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  117. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  118. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  119. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  120. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  121. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  122. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  123. package/plugins/src/base/rules/reference/project-learnings.md +21 -0
  124. package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +1 -1
  125. package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +1 -1
  126. package/plugins/src/base/skills/lisa-learnings-audit/SKILL.md +30 -1
  127. package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +1 -1
  128. package/plugins/src/base/skills/lisa-tracker-evidence/SKILL.md +1 -1
@@ -186,29 +186,67 @@ function claimingText(body) {
186
186
  .join("\n");
187
187
  }
188
188
 
189
+ /** Decode one Markdown escape layer of ASCII punctuation (#4341). */
190
+ function unescapedProse(text) {
191
+ return text.replace(
192
+ /\\([\u0021-\u002f\u003a-\u0040\u005b-\u0060\u007b-\u007e])/gu,
193
+ "$1"
194
+ );
195
+ }
196
+
197
+ /**
198
+ * Split one line into prose and inline code spans, CommonMark style: an
199
+ * opening run of N backticks closes at the next run of exactly N, a
200
+ * backslash-escaped backtick never opens a span, and an unclosed run is
201
+ * literal text. An autolink or raw HTML tag (`<` then a letter, `/`, `!` or
202
+ * `?`, closed by `>` on the same line) outranks a code span, so a backtick
203
+ * inside one never opens a span that would hide a real marker; a prose `<`
204
+ * followed by a space, as in `a < b`, is not a tag. A span is only recognised within one line: one that wraps
205
+ * across a soft line break is read as prose. That is a known gap and it fails
206
+ * safe, because prose can only refuse or over-require evidence, never drop an
207
+ * obligation; it also keeps a stray backtick from swallowing a later line.
208
+ * @param {string} line - One claiming line
209
+ * @returns {string[]} Prose at even indexes, an empty placeholder at each odd
210
+ * index where an inline code span was removed
211
+ */
212
+ function inlineCodeParts(line) {
213
+ const parts = [];
214
+ const token = /\\[\s\S]|<[A-Za-z/!?][^>\n]*>|`+/gu;
215
+ let prose = 0;
216
+ for (let open = token.exec(line); open; open = token.exec(line)) {
217
+ if (!open[0].startsWith("`")) continue;
218
+ const close = new RegExp(`(?<!\`)${open[0]}(?!\`)`, "gu");
219
+ close.lastIndex = token.lastIndex;
220
+ if (!close.exec(line)) continue;
221
+ parts.push(line.slice(prose, open.index), "");
222
+ prose = close.lastIndex;
223
+ token.lastIndex = prose;
224
+ }
225
+ return [...parts, line.slice(prose)];
226
+ }
227
+
189
228
  /**
190
- * Decode one stored Markdown escape layer outside inline code spans.
229
+ * Decode one stored Markdown escape layer and mask inline code spans.
191
230
  * Linear stores `[EVIDENCE: kind: name]` as `\[EVIDENCE: kind: name\]`; the
192
231
  * same one-pass ASCII-punctuation projection the human-gate parser uses
193
232
  * (`normalizeProviderMarkdown`, CodySwannGT/lisa#4341) makes the stored and
194
- * written forms parse identically. Fences, indented code and comments are
195
- * already removed by `claimingText`; inline code spans keep their bytes so an
196
- * escaped example inside one cannot become a declaration (#4670).
233
+ * written forms parse identically (#4670). Fences, indented code and comments
234
+ * are already removed by `claimingText`. An inline code span of any
235
+ * backtick-run length is an example too, so it is neither a declaration nor a
236
+ * malformed one (#4689). Each span becomes a lone backtick, which no marker
237
+ * grammar accepts, so the prose on either side cannot splice into a marker.
197
238
  * @param {string} text - Claiming text with fences and comments removed
198
- * @returns {string} Text with one escape layer decoded outside code spans
239
+ * @returns {string} Prose with one escape layer decoded and code spans masked
199
240
  */
200
241
  function decodedMarkdown(text) {
201
242
  return text
202
- .split(/(`[^`\n]*`)/u)
203
- .map((part, index) =>
204
- index % 2
205
- ? part
206
- : part.replace(
207
- /\\([\u0021-\u002f\u003a-\u0040\u005b-\u0060\u007b-\u007e])/gu,
208
- "$1"
209
- )
243
+ .split("\n")
244
+ .map(line =>
245
+ inlineCodeParts(line)
246
+ .map((part, index) => (index % 2 ? "`" : unescapedProse(part)))
247
+ .join("")
210
248
  )
211
- .join("");
249
+ .join("\n");
212
250
  }
213
251
 
214
252
  /**
@@ -175,7 +175,7 @@
175
175
  "children": []
176
176
  },
177
177
  "lib/completion-proof-shape.mjs": {
178
- "sha256": "b0ac2109d1e17cdc83d42b842ccbd43ca10f3d34d1b2d03067c434e05b19b9e3",
178
+ "sha256": "4626a90f8e7258dc90d51c6abbec967dcf16d8d8ed12d5af34838617bc01b06c",
179
179
  "staticImports": [
180
180
  "lib/completion-proof-errors.mjs",
181
181
  "lib/completion-proof-markdown.mjs",
@@ -0,0 +1,59 @@
1
+ import { type LearningEntry } from "./learnings-contract.js";
2
+ import { type StaleSupersedeTarget } from "./learnings-supersede.js";
3
+ /** Outcome vocabulary for {@link retireLearningEntry}. */
4
+ export type RetireLearningStatus = "retired" | "stale" | "not-found";
5
+ /** Caller diagnostics for {@link retireLearningEntry}. */
6
+ export interface RetireLearningOptions {
7
+ /**
8
+ * Called, inside the lock and before returning, when the live entry's
9
+ * fingerprint no longer equals the caller's expected fingerprint. Uses the
10
+ * same report shape as a stale consolidation target so one handler can
11
+ * serve both writers.
12
+ */
13
+ readonly onStale?: (target: StaleSupersedeTarget) => void;
14
+ }
15
+ /** Structured no-throw outcome of a fingerprint-guarded retirement. */
16
+ export interface RetireLearningResult {
17
+ /** Removed, refused because the entry drifted, or nothing to remove. */
18
+ readonly status: RetireLearningStatus;
19
+ /** The entry id the caller asked to retire. */
20
+ readonly id: string;
21
+ /**
22
+ * Absolute learnings file path whenever the file exists. Absent only when
23
+ * the learnings file itself does not exist.
24
+ */
25
+ readonly file?: string;
26
+ /** The full fingerprint the caller observed when it proposed the retire. */
27
+ readonly expectedFingerprint: string;
28
+ /** The live fingerprint, reported only when it refused a `stale` retire. */
29
+ readonly actualFingerprint?: string;
30
+ /** The exact entry removed, present only when `status` is `retired`. */
31
+ readonly retired?: LearningEntry;
32
+ }
33
+ /**
34
+ * Remove exactly one ledger entry, but only if it is still the version the
35
+ * caller audited (CodySwannGT/lisa#4530).
36
+ *
37
+ * This is a compare-and-swap delete. A gardener RETIRE row is approved some
38
+ * time after it was audited, and in between a learner run may consolidate new
39
+ * lessons into the same id — `persistConsolidatedLearning` keeps the target id
40
+ * while the fingerprint changes. Deleting by id alone would silently discard
41
+ * those merged lessons, so inside the ledger lock this re-reads the live entry
42
+ * and refuses (`stale`, nothing written, `onStale` called) unless its
43
+ * fingerprint equals `expectedFingerprint`. On a match it removes that entry,
44
+ * re-checks the shared budgets on the rendered document, and writes atomically
45
+ * behind the same unchanged-guard the persist writers use. On a v2 ledger every
46
+ * other entry stays byte-identical; a v1 ledger is migrated to v2 by this write,
47
+ * exactly as `confirmLearningEntry` migrates it. A missing file or unknown id
48
+ * is a structured `not-found` no-op; a missing file creates no directories or
49
+ * locks.
50
+ * @param projectRoot - Absolute path to the host project root
51
+ * @param id - Stable id of the entry to retire
52
+ * @param expectedFingerprint - The FULL live `entry.fingerprint` observed at
53
+ * audit time — never the 12-hex gardener marker hash or any prefix of it
54
+ * @param options - Optional stale-target diagnostic
55
+ * @returns Structured outcome; throws only for invalid input, an unsafe or
56
+ * malformed ledger, or a concurrent write
57
+ */
58
+ export declare function retireLearningEntry(projectRoot: string, id: string, expectedFingerprint: string, options?: RetireLearningOptions): Promise<RetireLearningResult>;
59
+ //# sourceMappingURL=learnings-retire.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"learnings-retire.d.ts","sourceRoot":"","sources":["../../src/core/learnings-retire.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AAajC,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAcrE,0DAA0D;AAC1D,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC;AAErE,0DAA0D;AAC1D,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC3D;AAED,uEAAuE;AACvE,MAAM,WAAW,oBAAoB;IACnC,wEAAwE;IACxE,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,4EAA4E;IAC5E,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,4EAA4E;IAC5E,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC,wEAAwE;IACxE,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC;CAClC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,EACnB,EAAE,EAAE,MAAM,EACV,mBAAmB,EAAE,MAAM,EAC3B,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAkD/B"}
@@ -0,0 +1,131 @@
1
+ /**
2
+ * @file learnings-retire.ts
3
+ * @description Fingerprint-guarded removal of one project-learnings entry
4
+ * @module core/learnings-retire
5
+ */
6
+ import * as path from "node:path";
7
+ import { writeFileAtomically } from "../utils/atomic-file-write.js";
8
+ import { MAX_STABLE_TOKEN_BYTES, } from "./learnings-contract.js";
9
+ import { assertDocumentBudget, parseLearningsFile, renderLearningsFile, } from "./learnings-document.js";
10
+ import { assertLearningsUnchanged, assertSafeLearningParents, readExistingLearnings, resolveSafeLearningTarget, } from "./learnings-file-safety.js";
11
+ import { withLearningTargetLock } from "./learnings-lock.js";
12
+ import { readProjectConfig, resolveProjectLearningsFile, } from "./project-config.js";
13
+ const STABLE_TOKEN = /^[a-z0-9]+(?:[._-][a-z0-9]+)*$/;
14
+ /** The 12-hex invariant hash a `[lisa-gardener] key=ledger:<id>+<hash>` marker carries. */
15
+ const GARDENER_MARKER_HASH = /^[0-9a-f]{12}$/;
16
+ /** A `learningFingerprint` value, complete or cut short. */
17
+ const HASH_FINGERPRINT = /^learning-([0-9a-f]+)$/;
18
+ /** Hex digits `learningFingerprint` emits after its `learning-` prefix. */
19
+ const HASH_FINGERPRINT_HEX_LENGTH = 20;
20
+ /**
21
+ * Remove exactly one ledger entry, but only if it is still the version the
22
+ * caller audited (CodySwannGT/lisa#4530).
23
+ *
24
+ * This is a compare-and-swap delete. A gardener RETIRE row is approved some
25
+ * time after it was audited, and in between a learner run may consolidate new
26
+ * lessons into the same id — `persistConsolidatedLearning` keeps the target id
27
+ * while the fingerprint changes. Deleting by id alone would silently discard
28
+ * those merged lessons, so inside the ledger lock this re-reads the live entry
29
+ * and refuses (`stale`, nothing written, `onStale` called) unless its
30
+ * fingerprint equals `expectedFingerprint`. On a match it removes that entry,
31
+ * re-checks the shared budgets on the rendered document, and writes atomically
32
+ * behind the same unchanged-guard the persist writers use. On a v2 ledger every
33
+ * other entry stays byte-identical; a v1 ledger is migrated to v2 by this write,
34
+ * exactly as `confirmLearningEntry` migrates it. A missing file or unknown id
35
+ * is a structured `not-found` no-op; a missing file creates no directories or
36
+ * locks.
37
+ * @param projectRoot - Absolute path to the host project root
38
+ * @param id - Stable id of the entry to retire
39
+ * @param expectedFingerprint - The FULL live `entry.fingerprint` observed at
40
+ * audit time — never the 12-hex gardener marker hash or any prefix of it
41
+ * @param options - Optional stale-target diagnostic
42
+ * @returns Structured outcome; throws only for invalid input, an unsafe or
43
+ * malformed ledger, or a concurrent write
44
+ */
45
+ export async function retireLearningEntry(projectRoot, id, expectedFingerprint, options = {}) {
46
+ if (typeof id !== "string" || id.trim() === "") {
47
+ throw new Error("Invalid learning id: expected a non-empty string");
48
+ }
49
+ const fingerprint = requireFullFingerprint(expectedFingerprint);
50
+ const config = await readProjectConfig(projectRoot);
51
+ const relativeFile = resolveProjectLearningsFile(config);
52
+ const { root, target } = resolveSafeLearningTarget(projectRoot, relativeFile);
53
+ await assertSafeLearningParents(root, path.dirname(target));
54
+ // Probe outside the lock so a missing file creates no directories or locks.
55
+ const probe = await readExistingLearnings(target);
56
+ if (probe === undefined) {
57
+ return { status: "not-found", id, expectedFingerprint: fingerprint };
58
+ }
59
+ return withLearningTargetLock(target, async () => {
60
+ await assertSafeLearningParents(root, path.dirname(target));
61
+ const existing = await readExistingLearnings(target);
62
+ const entries = existing === undefined ? [] : parseLearningsFile(existing);
63
+ const current = entries.find(entry => entry.id === id);
64
+ const base = {
65
+ id,
66
+ file: target,
67
+ expectedFingerprint: fingerprint,
68
+ };
69
+ if (current === undefined) {
70
+ return { status: "not-found", ...base };
71
+ }
72
+ if (current.fingerprint !== fingerprint) {
73
+ options.onStale?.({
74
+ expected: { id, fingerprint },
75
+ actualFingerprint: current.fingerprint,
76
+ reason: "fingerprint-mismatch",
77
+ });
78
+ return {
79
+ status: "stale",
80
+ ...base,
81
+ actualFingerprint: current.fingerprint,
82
+ };
83
+ }
84
+ const rendered = renderRetiredDocument(entries.filter(entry => entry.id !== id));
85
+ await writeFileAtomically(target, rendered, {
86
+ beforeRename: async () => {
87
+ await assertSafeLearningParents(root, path.dirname(target));
88
+ await assertLearningsUnchanged(target, existing);
89
+ },
90
+ });
91
+ return { status: "retired", ...base, retired: current };
92
+ });
93
+ }
94
+ /**
95
+ * Reject anything that is not a complete entry fingerprint before any
96
+ * filesystem work. The gardener marker's 12-hex hash and a truncated
97
+ * `learning-<hex>` value are the two plausible caller mistakes: either would
98
+ * only ever produce `stale`, hiding the bug behind a safe-looking refusal.
99
+ * Legacy non-hash fingerprints (a v1 id carried forward) stay valid.
100
+ * @param value - Untrusted expected fingerprint
101
+ * @returns The validated full fingerprint
102
+ */
103
+ function requireFullFingerprint(value) {
104
+ if (typeof value !== "string" || value === "") {
105
+ throw new Error("Invalid expectedFingerprint: expected the full entry fingerprint string");
106
+ }
107
+ if (Buffer.byteLength(value, "utf8") > MAX_STABLE_TOKEN_BYTES ||
108
+ !STABLE_TOKEN.test(value)) {
109
+ throw new Error("Invalid expectedFingerprint: expected a stable token");
110
+ }
111
+ if (GARDENER_MARKER_HASH.test(value)) {
112
+ throw new Error("Invalid expectedFingerprint: this is the 12-hex gardener marker hash, not the entry fingerprint");
113
+ }
114
+ const hex = HASH_FINGERPRINT.exec(value)?.[1];
115
+ if (hex !== undefined && hex.length !== HASH_FINGERPRINT_HEX_LENGTH) {
116
+ throw new Error(`Invalid expectedFingerprint: learning-<hex> fingerprints carry exactly ${HASH_FINGERPRINT_HEX_LENGTH} hex digits`);
117
+ }
118
+ return value;
119
+ }
120
+ /**
121
+ * Render and budget-check the post-retirement document through the same path
122
+ * every other writer uses, so a retire can never persist an invalid ledger.
123
+ * @param entries - Entries that remain after the retired one is removed
124
+ * @returns Next canonical document
125
+ */
126
+ function renderRetiredDocument(entries) {
127
+ const rendered = renderLearningsFile(entries);
128
+ assertDocumentBudget(rendered, entries.length, "Learnings file");
129
+ return rendered;
130
+ }
131
+ //# sourceMappingURL=learnings-retire.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"learnings-retire.js","sourceRoot":"","sources":["../../src/core/learnings-retire.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,I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2BAA2B,EAAE,CAAC;QACpE,MAAM,IAAI,KAAK,CACb,0EAA0E,2BAA2B,aAAa,CACnH,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,SAAS,qBAAqB,CAAC,OAAiC;IAC9D,MAAM,QAAQ,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAC9C,oBAAoB,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACjE,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -5,6 +5,7 @@ export { parseLearningsDocument, type ParsedLearningsDocument, } from "./learnin
5
5
  export * from "./learnings-merge.js";
6
6
  export * from "./learnings-overflow.js";
7
7
  export * from "./learnings-projection.js";
8
+ export * from "./learnings-retire.js";
8
9
  export * from "./learnings-supersede.js";
9
10
  export * from "./learnings-writer.js";
10
11
  export * from "./upstream-attribution-body.js";
@@ -1 +1 @@
1
- {"version":3,"file":"learnings.d.ts","sourceRoot":"","sources":["../../src/core/learnings.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EACL,sBAAsB,EACtB,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC9B,cAAc,EACd,uBAAuB,EACvB,yBAAyB,EACzB,0BAA0B,EAC1B,iBAAiB,EACjB,wBAAwB,EACxB,iCAAiC,EACjC,6BAA6B,EAC7B,2BAA2B,EAC3B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,yBAAyB,GAC/B,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"learnings.d.ts","sourceRoot":"","sources":["../../src/core/learnings.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EACL,sBAAsB,EACtB,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC9B,cAAc,EACd,uBAAuB,EACvB,yBAAyB,EACzB,0BAA0B,EAC1B,iBAAiB,EACjB,wBAAwB,EACxB,iCAAiC,EACjC,6BAA6B,EAC7B,2BAA2B,EAC3B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,yBAAyB,GAC/B,MAAM,qBAAqB,CAAC"}
@@ -5,6 +5,7 @@ export { parseLearningsDocument, } from "./learnings-document.js";
5
5
  export * from "./learnings-merge.js";
6
6
  export * from "./learnings-overflow.js";
7
7
  export * from "./learnings-projection.js";
8
+ export * from "./learnings-retire.js";
8
9
  export * from "./learnings-supersede.js";
9
10
  export * from "./learnings-writer.js";
10
11
  export * from "./upstream-attribution-body.js";
@@ -1 +1 @@
1
- {"version":3,"file":"learnings.js","sourceRoot":"","sources":["../../src/core/learnings.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EACL,sBAAsB,GAEvB,MAAM,yBAAyB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC9B,cAAc,EACd,uBAAuB,EACvB,yBAAyB,EACzB,0BAA0B,EAC1B,iBAAiB,EACjB,wBAAwB,EACxB,iCAAiC,EACjC,6BAA6B,EAC7B,2BAA2B,GAK5B,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"learnings.js","sourceRoot":"","sources":["../../src/core/learnings.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EACL,sBAAsB,GAEvB,MAAM,yBAAyB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC9B,cAAc,EACd,uBAAuB,EACvB,yBAAyB,EACzB,0BAA0B,EAC1B,iBAAiB,EACjB,wBAAwB,EACxB,iCAAiC,EACjC,6BAA6B,EAC7B,2BAA2B,GAK5B,MAAM,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAm7EjC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CACpD,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAs1EjC,CAAC"}
1
+ {"version":3,"file":"lisa-owned-hash-ledger.d.ts","sourceRoot":"","sources":["../../src/core/lisa-owned-hash-ledger.ts"],"names":[],"mappings":"AACA,6EAA6E;AAE7E;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAy7EjC,CAAC;AAEH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,+BAA+B,EAAE,QAAQ,CACpD,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CA41EjC,CAAC"}
@@ -586,9 +586,12 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
586
586
  "scripts/lib/completion-proof-shape.mjs": Object.freeze([
587
587
  "20f6f01fcb3495c979f7f7c0fe4991372b797e77831c4883631d4f196da5c0f4",
588
588
  "2edf9120a019aa21a64b8ca01d69fb027b8ef6267a87db9747b3c05cf8a97840",
589
+ "4626a90f8e7258dc90d51c6abbec967dcf16d8d8ed12d5af34838617bc01b06c",
589
590
  "470dc1fd71ec3bb1da7dc9cf3cd841bae7140545c2e804caed7d3b85ae3960eb",
590
591
  "574ff9682d32c6617e6c202b50d55189ebfaa175cdc4f1043e53ad4da9c650f1",
592
+ "72acaa6ae5b3206b717c4a893ff107134620d4a8fecb9f5fdb2d48f66067c483",
591
593
  "83c3e4aa7f1386dc6e50c6fbb007d6505e83205a319cc60331e070dcffd95ef2",
594
+ "8f18374764896a09f4fac99f0a4dff0f54905d6e00dcfc7218f0286f6c2c4927",
592
595
  "a6faf8d3c44c4eb3192c11a76d5866f6028d476c86e7dc88aefe88060b38ee1d",
593
596
  "b0ac2109d1e17cdc83d42b842ccbd43ca10f3d34d1b2d03067c434e05b19b9e3",
594
597
  "e48ad8f0775f31ecc9961190c81b36b6f9629897345e047ebcdb1c0050e89a51",
@@ -2348,6 +2351,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
2348
2351
  "6f622839070b59bcae79a96dfe0e2a2a60336ba78cc88ff117cc925e2d8bd5aa",
2349
2352
  "70117ada2fe96b4697f695f860547a0e47eb7d20e864eac929047722cb3e6e2c",
2350
2353
  "702b455a3157565b910904a3acfcdbf4722befc660d60242c649ff020fe96b3b",
2354
+ "7070eff4a6357c3272642e908172a9d2b97636434500c30286fe5c62d1be2ca8",
2351
2355
  "728bcf6bdfb82c5b312da268db0ec7b50d94ac62c64ec58c70592eb106383f09",
2352
2356
  "748e40364b55387fefcf61c5689fafd9f7bd09d452527c02f6214b06ba93530c",
2353
2357
  "75c49dc8534018d8b71eacf934eb5c675c2401e27b722c322bf5137f646d78b3",
@@ -2369,6 +2373,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
2369
2373
  "9344207510f0c613088b4c82c9b3962a815ec79d0664886bf01f34b7a6f1f4ab",
2370
2374
  "93875fef09d764a84ce9bb255b55dc0bd02e323ba32c02a8c21b276761a79cbc",
2371
2375
  "95a3059275526a0993b7b38ab28c7bfec29653840737b0697f869a1dc7fca92d",
2376
+ "985fbb040eef3c9843f20c300d01ea11a4c578db116c04658e450deafeeef4e4",
2372
2377
  "9de265a5876d56d72e237b97bcb006c11ea4411e51e786b16e1f4b488402bea0",
2373
2378
  "9f2be0dcbdba3b42ea89fb8ebd363daf12b6c2709fb05459a9d682ccf5d5c1c6",
2374
2379
  "a0c61991fc833118ac62449383a1ad44f3502f94b2d340176d93c654426269d8",
@@ -2411,6 +2416,7 @@ export const LISA_OWNED_HASH_LEDGER = Object.freeze({
2411
2416
  "e8b1e5b4edd7a6fb692e4e2e140dfd59282152ed741af98c2a4dfdf9c3c4c32e",
2412
2417
  "e9048ea95f21e9f6f400853da11a23f1159368d1768215c968a1d6d357f8bbbf",
2413
2418
  "ea6b393b8088607d37599019bebb1e4416745b746d93add466a1567ceebd2323",
2419
+ "ecb3d980f2f2fecc7306224d1c1d32218d5c7769fd3a4c651e3328a1e698cb01",
2414
2420
  "edce9a68729806581c5438a059bf61c8e6634924ffe049ac21b4ce6633511d96",
2415
2421
  "efab73e12791e43475d0783a5d1dcf1abe9fae2abda3060289e59fedab2670e2",
2416
2422
  "f03e5bb758d907c44d73bbc87c0c245d2ea2aa95e4e620e3ad79020fd1ac8d4a",
@@ -3064,9 +3070,12 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
3064
3070
  "scripts/lib/completion-proof-shape.mjs": Object.freeze([
3065
3071
  "20f6f01fcb3495c979f7f7c0fe4991372b797e77831c4883631d4f196da5c0f4",
3066
3072
  "2edf9120a019aa21a64b8ca01d69fb027b8ef6267a87db9747b3c05cf8a97840",
3073
+ "4626a90f8e7258dc90d51c6abbec967dcf16d8d8ed12d5af34838617bc01b06c",
3067
3074
  "470dc1fd71ec3bb1da7dc9cf3cd841bae7140545c2e804caed7d3b85ae3960eb",
3068
3075
  "574ff9682d32c6617e6c202b50d55189ebfaa175cdc4f1043e53ad4da9c650f1",
3076
+ "72acaa6ae5b3206b717c4a893ff107134620d4a8fecb9f5fdb2d48f66067c483",
3069
3077
  "83c3e4aa7f1386dc6e50c6fbb007d6505e83205a319cc60331e070dcffd95ef2",
3078
+ "8f18374764896a09f4fac99f0a4dff0f54905d6e00dcfc7218f0286f6c2c4927",
3070
3079
  "a6faf8d3c44c4eb3192c11a76d5866f6028d476c86e7dc88aefe88060b38ee1d",
3071
3080
  "b0ac2109d1e17cdc83d42b842ccbd43ca10f3d34d1b2d03067c434e05b19b9e3",
3072
3081
  "e48ad8f0775f31ecc9961190c81b36b6f9629897345e047ebcdb1c0050e89a51",
@@ -4755,6 +4764,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
4755
4764
  "6f622839070b59bcae79a96dfe0e2a2a60336ba78cc88ff117cc925e2d8bd5aa",
4756
4765
  "70117ada2fe96b4697f695f860547a0e47eb7d20e864eac929047722cb3e6e2c",
4757
4766
  "702b455a3157565b910904a3acfcdbf4722befc660d60242c649ff020fe96b3b",
4767
+ "7070eff4a6357c3272642e908172a9d2b97636434500c30286fe5c62d1be2ca8",
4758
4768
  "728bcf6bdfb82c5b312da268db0ec7b50d94ac62c64ec58c70592eb106383f09",
4759
4769
  "748e40364b55387fefcf61c5689fafd9f7bd09d452527c02f6214b06ba93530c",
4760
4770
  "75c49dc8534018d8b71eacf934eb5c675c2401e27b722c322bf5137f646d78b3",
@@ -4776,6 +4786,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
4776
4786
  "9344207510f0c613088b4c82c9b3962a815ec79d0664886bf01f34b7a6f1f4ab",
4777
4787
  "93875fef09d764a84ce9bb255b55dc0bd02e323ba32c02a8c21b276761a79cbc",
4778
4788
  "95a3059275526a0993b7b38ab28c7bfec29653840737b0697f869a1dc7fca92d",
4789
+ "985fbb040eef3c9843f20c300d01ea11a4c578db116c04658e450deafeeef4e4",
4779
4790
  "9de265a5876d56d72e237b97bcb006c11ea4411e51e786b16e1f4b488402bea0",
4780
4791
  "9f2be0dcbdba3b42ea89fb8ebd363daf12b6c2709fb05459a9d682ccf5d5c1c6",
4781
4792
  "a0c61991fc833118ac62449383a1ad44f3502f94b2d340176d93c654426269d8",
@@ -4818,6 +4829,7 @@ export const LISA_OWNED_HASH_HISTORY_DERIVED = Object.freeze({
4818
4829
  "e8b1e5b4edd7a6fb692e4e2e140dfd59282152ed741af98c2a4dfdf9c3c4c32e",
4819
4830
  "e9048ea95f21e9f6f400853da11a23f1159368d1768215c968a1d6d357f8bbbf",
4820
4831
  "ea6b393b8088607d37599019bebb1e4416745b746d93add466a1567ceebd2323",
4832
+ "ecb3d980f2f2fecc7306224d1c1d32218d5c7769fd3a4c651e3328a1e698cb01",
4821
4833
  "edce9a68729806581c5438a059bf61c8e6634924ffe049ac21b4ce6633511d96",
4822
4834
  "efab73e12791e43475d0783a5d1dcf1abe9fae2abda3060289e59fedab2670e2",
4823
4835
  "f03e5bb758d907c44d73bbc87c0c245d2ea2aa95e4e620e3ad79020fd1ac8d4a",