@codyswann/lisa 4.95.1 → 4.95.3

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 (106) hide show
  1. package/dist/cli/doctor-learnings-driver-command.d.ts +12 -0
  2. package/dist/cli/doctor-learnings-driver-command.d.ts.map +1 -0
  3. package/dist/cli/doctor-learnings-driver-command.js +80 -0
  4. package/dist/cli/doctor-learnings-driver-command.js.map +1 -0
  5. package/dist/cli/doctor-merge-drivers.d.ts +7 -3
  6. package/dist/cli/doctor-merge-drivers.d.ts.map +1 -1
  7. package/dist/cli/doctor-merge-drivers.js +43 -5
  8. package/dist/cli/doctor-merge-drivers.js.map +1 -1
  9. package/dist/cli/gate-commands.d.ts.map +1 -1
  10. package/dist/cli/gate-commands.js +1 -0
  11. package/dist/cli/gate-commands.js.map +1 -1
  12. package/dist/cli/merge-learnings-cmd.d.ts +6 -0
  13. package/dist/cli/merge-learnings-cmd.d.ts.map +1 -1
  14. package/dist/cli/merge-learnings-cmd.js +24 -1
  15. package/dist/cli/merge-learnings-cmd.js.map +1 -1
  16. package/dist/core/learnings-merge-driver-command.d.ts +38 -0
  17. package/dist/core/learnings-merge-driver-command.d.ts.map +1 -0
  18. package/dist/core/learnings-merge-driver-command.js +151 -0
  19. package/dist/core/learnings-merge-driver-command.js.map +1 -0
  20. package/dist/core/learnings-merge-driver-install.d.ts +19 -3
  21. package/dist/core/learnings-merge-driver-install.d.ts.map +1 -1
  22. package/dist/core/learnings-merge-driver-install.js +65 -32
  23. package/dist/core/learnings-merge-driver-install.js.map +1 -1
  24. package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
  25. package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
  26. package/dist/core/upstream-evidence-manifest.js +13 -3
  27. package/dist/core/upstream-evidence-manifest.js.map +1 -1
  28. package/dist/health/governance-probes.js +1 -1
  29. package/dist/health/governance-probes.js.map +1 -1
  30. package/dist/health/template-inspection.d.ts.map +1 -1
  31. package/dist/health/template-inspection.js +61 -35
  32. package/dist/health/template-inspection.js.map +1 -1
  33. package/package.json +4 -4
  34. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  35. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  36. package/plugins/lisa-agy/plugin.json +1 -1
  37. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  39. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  40. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
  44. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  45. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
  48. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  50. package/plugins/lisa-expo-agy/plugin.json +1 -1
  51. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
  54. package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
  55. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  57. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  58. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  59. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  60. package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
  61. package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
  62. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  63. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  64. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  65. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  66. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  67. package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
  68. package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
  69. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  70. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  71. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  72. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  73. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  74. package/plugins/lisa-openclaw-devin/.claude-plugin/plugin.json +1 -1
  75. package/plugins/lisa-openclaw-devin/.devin-plugin/plugin.json +1 -1
  76. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  77. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  78. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  79. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  80. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  81. package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
  82. package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
  83. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  84. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  85. package/plugins/lisa-rails-agy/plugin.json +1 -1
  86. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  87. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  88. package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
  89. package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
  90. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  92. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  93. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  94. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  95. package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
  96. package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
  97. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  98. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  99. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  100. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  101. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  102. package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
  103. package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
  104. package/scripts/detect-stale-workflow-inputs.mjs +99 -18
  105. package/scripts/lib/reusable-workflow-contract.d.mts +10 -0
  106. package/scripts/lib/reusable-workflow-contract.mjs +80 -5
@@ -9,6 +9,9 @@
9
9
  * `lisa install-merge-driver` command an operator can re-run by hand.
10
10
  * @module core/learnings-merge-driver-install
11
11
  */
12
+ import { readFile } from "node:fs/promises";
13
+ import * as path from "node:path";
14
+ import { HOST_LISA_ENTRY, SELF_LISA_ENTRY, buildPortableLearningsMergeDriverCommand, classifyLearningsDriverCommand, } from "./learnings-merge-driver-command.js";
12
15
  import { LEARNINGS_MERGE_DRIVER_DESCRIPTION, LEARNINGS_MERGE_DRIVER_NAME, buildLearningsMergeDriverCommand, } from "./learnings-merge-driver.js";
13
16
  const GIT_COMMAND_ENV = {
14
17
  PATH: "/usr/bin:/bin:/usr/sbin:/sbin",
@@ -64,36 +67,57 @@ async function probeRepository(projectRoot) {
64
67
  return result.stdout === "true" ? "repository" : NO_REPO;
65
68
  }
66
69
  /**
67
- * Quote one path for the POSIX shell that git runs a merge driver through.
70
+ * The worktree-relative path of the Lisa entry this project runs.
68
71
  *
69
- * Single quotes, not double: git executes `merge.<name>.driver` via `sh`, where
70
- * `$`, a backtick, and a backslash stay special inside double quotes. A path
71
- * containing `$` would silently expand to nothing and the driver would fail to
72
- * launch; a backtick would run a command substitution. Inside single quotes the
73
- * shell treats every byte literally, so only an embedded single quote needs
74
- * handling — closed, escaped, and reopened as `'\''`.
75
- * @param value - Raw filesystem path
76
- * @returns Shell-safe single-quoted token
72
+ * Relative to the TOP of the worktree, because that is git's cwd when it runs
73
+ * a driver — so a project nested below the repository root carries its
74
+ * prefix. Inside the Lisa repository itself the entry is its own build;
75
+ * everywhere else it is the installed package.
76
+ * @param projectRoot - Project directory being registered
77
+ * @returns Entry such as `./node_modules/@codyswann/lisa/dist/index.js`
77
78
  */
78
- function shellQuote(value) {
79
- return `'${value.replaceAll("'", "'\\''")}'`;
79
+ async function resolvePortableEntry(projectRoot) {
80
+ const prefix = await tryGit(["rev-parse", "--show-prefix"], projectRoot);
81
+ const relative = prefix.ok ? prefix.stdout : "";
82
+ const entry = (await isLisaRepository(projectRoot))
83
+ ? SELF_LISA_ENTRY
84
+ : HOST_LISA_ENTRY;
85
+ return `./${path.posix.join(relative, entry)}`;
80
86
  }
81
87
  /**
82
- * Resolve how to re-invoke the currently running Lisa CLI.
88
+ * Whether the project is Lisa's own repository.
89
+ * @param projectRoot - Project directory being registered
90
+ * @returns True when package.json names `@codyswann/lisa`
91
+ */
92
+ async function isLisaRepository(projectRoot) {
93
+ try {
94
+ const manifest = JSON.parse(await readFile(path.join(projectRoot, "package.json"), "utf8"));
95
+ return (typeof manifest === "object" &&
96
+ manifest !== null &&
97
+ "name" in manifest &&
98
+ manifest.name === "@codyswann/lisa");
99
+ }
100
+ catch {
101
+ return false;
102
+ }
103
+ }
104
+ /**
105
+ * The detail reported when a registration is written.
83
106
  *
84
- * Uses `process.execPath` as the runtime rather than a hardcoded `node`, so a
85
- * checkout running under Bun registers a Bun-executable command and a published
86
- * package running under Node registers a Node one. Returns undefined when the
87
- * entry script is unknown: registering a command that can never launch is worse
88
- * than leaving git on its default driver, which at least fails visibly.
89
- * @returns Shell-safe `<runtime> <entry script>` invocation, when resolvable
107
+ * Names the command it replaced, so `lisa apply` tells the operator that an
108
+ * absolute registration — one that breaks when its checkout is removed — was
109
+ * migrated, rather than reporting an indistinguishable "registered".
110
+ * @param previous - Previously registered command, when there was one
111
+ * @returns Single-line, operator-facing detail
90
112
  */
91
- function resolveLisaInvocation() {
92
- const entry = process.argv[1];
93
- if (entry === undefined || entry === "") {
94
- return undefined;
113
+ function installedDetail(previous) {
114
+ if (previous === undefined || previous === "") {
115
+ return `registered the ${LEARNINGS_MERGE_DRIVER_NAME} merge driver`;
95
116
  }
96
- return `${shellQuote(process.execPath)} ${shellQuote(entry)}`;
117
+ const kind = classifyLearningsDriverCommand(previous).kind === "absolute"
118
+ ? "absolute"
119
+ : "previous";
120
+ return `replaced the ${LEARNINGS_MERGE_DRIVER_NAME} merge driver's ${kind} registration '${previous}' with a worktree-portable command`;
97
121
  }
98
122
  /**
99
123
  * Whether this directory is a git working tree the driver can be registered in.
@@ -127,6 +151,20 @@ export async function probeLearningsMergeDriverRegistration(projectRoot) {
127
151
  const current = await tryGit(["config", "--get", DRIVER_KEY], projectRoot);
128
152
  return current.ok && current.stdout !== "" ? "registered" : "unregistered";
129
153
  }
154
+ /**
155
+ * Read the registered driver command, for checks that must know whether it
156
+ * can actually run here rather than merely whether it is set.
157
+ * @param projectRoot - Project directory to inspect
158
+ * @returns The command and worktree top, or undefined when unset
159
+ */
160
+ export async function readLearningsMergeDriverRegistration(projectRoot) {
161
+ const current = await tryGit(["config", "--get", DRIVER_KEY], projectRoot);
162
+ const top = await tryGit(["rev-parse", "--show-toplevel"], projectRoot);
163
+ if (!current.ok || current.stdout === "" || !top.ok) {
164
+ return undefined;
165
+ }
166
+ return { command: current.stdout, worktreeTop: top.stdout };
167
+ }
130
168
  /**
131
169
  * Register the union merge driver in one project's local git config.
132
170
  *
@@ -150,14 +188,9 @@ export async function installLearningsMergeDriver(projectRoot, dependencies = {}
150
188
  detail: "not a git repository — nothing to register",
151
189
  };
152
190
  }
153
- const invocation = dependencies.invocation ?? resolveLisaInvocation();
154
- if (invocation === undefined) {
155
- return {
156
- kind: "failed",
157
- detail: `could not resolve the Lisa entry point — ${NOT_REGISTERED}`,
158
- };
159
- }
160
- const desired = buildLearningsMergeDriverCommand(invocation);
191
+ const desired = dependencies.invocation === undefined
192
+ ? buildPortableLearningsMergeDriverCommand(await resolvePortableEntry(projectRoot))
193
+ : buildLearningsMergeDriverCommand(dependencies.invocation);
161
194
  const current = await tryGit(["config", "--local", "--get", DRIVER_KEY], projectRoot);
162
195
  if (current.ok && current.stdout === desired) {
163
196
  return {
@@ -175,7 +208,7 @@ export async function installLearningsMergeDriver(projectRoot, dependencies = {}
175
208
  }
176
209
  return {
177
210
  kind: "installed",
178
- detail: `registered the ${LEARNINGS_MERGE_DRIVER_NAME} merge driver`,
211
+ detail: installedDetail(current.ok ? current.stdout : undefined),
179
212
  };
180
213
  }
181
214
  //# sourceMappingURL=learnings-merge-driver-install.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"learnings-merge-driver-install.js","sourceRoot":"","sources":["../../src/core/learnings-merge-driver-install.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC3B,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AAErC,MAAM,eAAe,GAAsB;IACzC,IAAI,EAAE,+BAA+B;CACtC,CAAC;AACF,MAAM,UAAU,GAAG,SAAS,2BAA2B,SAAS,CAAC;AACjE,MAAM,QAAQ,GAAG,SAAS,2BA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EAAE,EAAE,CAAC;QACZ,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,sCAAsC,cAAc,EAAE;SAC/D,CAAC;IACJ,CAAC;IACD,OAAO;QACL,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,kBAAkB,2BAA2B,eAAe;KACrE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"learnings-merge-driver-install.js","sourceRoot":"","sources":["../../src/core/learnings-merge-driver-install.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EACL,eAAe,EACf,eAAe,EACf,wCAAwC,EACxC,8BAA8B,GAC/B,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,kCAAkC,EAClC,2BAA2B,EAC3B,gCAAgC,GACjC,MAAM,6BAA6B,CAAC;AAErC,MAAM,eAAe,GAAsB;IACzC,IAAI,EAAE,+BAA+B;CACtC,CAAC;AACF,MAAM,UAAU,GAAG,SAAS,2BAA2B,SAAS,CAAC;AACjE,MAAM,QAAQ,GAAG,SAAS,2BAA2B,OAAO,CAAC;AAC7D,MAAM,cAAc,GAAG,6BAA6B,CAAC;AASrD,MAAM,OAAO,GAAoB,kBAAkB,CAAC;AA8BpD;;;;;;;;;;GAUG;AACH,KAAK,UAAU,MAAM,CAAC,IAAuB,EAAE,GAAW;IACxD,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACxD,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC;IAChD,MAAM,GAAG,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;IAChC,IAAI,CAAC;QACH,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE;YA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e7643310b1f6722e34e6: Object.freeze({
43
43
  contractVersion: "1.9.0",
44
- packageVersions: Object.freeze(["4.95.1"]),
44
+ packageVersions: Object.freeze(["4.95.3"]),
45
45
  provenances: Object.freeze([
46
- "workspace package @codyswann/lisa@4.95.1 (typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs)",
46
+ "workspace package @codyswann/lisa@4.95.3 (typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs)",
47
47
  ]),
48
48
  }),
49
49
  dfd2fef680de5ef03e63075e8a61c62ca4d95cdfdff6201939b79c748d3397f6: Object.freeze({
@@ -1 +1 @@
1
- {"version":3,"file":"upstream-evidence-manifest.d.ts","sourceRoot":"","sources":["../../src/core/upstream-evidence-manifest.ts"],"names":[],"mappings":"AACA,iFAAiF;AACjF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4hGpE,CAAC;AAEL,4EAA4E;AAC5E,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAq8UjE,CAAC;AAEL,sFAAsF;AACtF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAk6I/D,CAAC"}
1
+ {"version":3,"file":"upstream-evidence-manifest.d.ts","sourceRoot":"","sources":["../../src/core/upstream-evidence-manifest.ts"],"names":[],"mappings":"AACA,iFAAiF;AACjF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA4hGpE,CAAC;AAEL,4EAA4E;AAC5E,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CA+8UjE,CAAC;AAEL,sFAAsF;AACtF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAk6I/D,CAAC"}
@@ -1348,7 +1348,7 @@ export const UPSTREAM_EVIDENCE_MANIFEST = Object.freeze({
1348
1348
  "scripts/copy-codex-scripts.mjs": "2d7082d5033088c85f66995aee9e3ee1e7751435e65bfde8e1cb002e6689d476",
1349
1349
  "scripts/copy-opencode-plugin-templates.mjs": "a16291d2499a4c8e406574b7926f6eca99b078720a187bcc057772d778994ec0",
1350
1350
  "scripts/deployed-guard-advice.mjs": "c7471b6972b26bb0c2a66c680feb4980ec67d3dbd92732f48fe76c72ed7790f5",
1351
- "scripts/detect-stale-workflow-inputs.mjs": "04274c1ed972c040ccf0b64aba193368d652769094db6d97706706530e93d74f",
1351
+ "scripts/detect-stale-workflow-inputs.mjs": "672e64375a914750c5a50c16d414bea12df7cdddfa921ccc3f944b857aaaba4d",
1352
1352
  "scripts/downstream-name-digest.mjs": "7db91654f03ddd37bfdf1c34acfbfad9832a44ab762ca94c179809ad8faf4aa3",
1353
1353
  "scripts/fix-namespace-test-assertions.mjs": "b083f7de09c10402d92730320d1ffb958d6fa17d058aad5230350986a1a61adf",
1354
1354
  "scripts/fix-test-assertions-pass2.mjs": "baca043a291120ff52ce61c06397206dc21ca3bef9c23a5975b9c1f896d963c7",
@@ -1405,8 +1405,8 @@ export const UPSTREAM_EVIDENCE_MANIFEST = Object.freeze({
1405
1405
  "scripts/lib/rails-hooks.d.mts": "05a93fd5d1e70744ccabdc7e9e08fac74eac9e91a7d38218c10fd77ba2bb7918",
1406
1406
  "scripts/lib/rails-hooks.mjs": "3c34d314b0f232fe1ce6894c24ac239628ca57b3a349468c4fa374e805fbcd44",
1407
1407
  "scripts/lib/retired-safety-net-manifest.json": "0538681f4b4b8a9b1498398556af0fbbebeae0f0f6eb377a19b4be07667c517f",
1408
- "scripts/lib/reusable-workflow-contract.d.mts": "791f01b55dd7a6b5d9a5f4cb9c44167caa146c2fc3c31a2ae4c2d8a350adc2f1",
1409
- "scripts/lib/reusable-workflow-contract.mjs": "134ee2a327290f066f1eb318b5ed53c711557c3e10ed462c00ff5c97cfb20863",
1408
+ "scripts/lib/reusable-workflow-contract.d.mts": "0e9291d404fd045240bdbc555ceb09c7cb0a0238a05185e0ca5ddda9eefa8124",
1409
+ "scripts/lib/reusable-workflow-contract.mjs": "db8f62d4dc1de0bed2a0cc9fa243e5a1dfa4538d319d5930af8b1411b1ec9adb",
1410
1410
  "scripts/lib/shell-guard-refusal-coverage.mjs": "9bd530bae922022870c8bb1b69925778fa609c67561228cc8cfa94a0ee3f5e7c",
1411
1411
  "scripts/lib/shell-guard-shard-runner.mjs": "976e297e5b9ebeff787274ac4cffb5a898d8274253798a719ccedac932f60d7b",
1412
1412
  "scripts/lib/shell-guard-shards.mjs": "a5724f75bea3469aae76c9eb8ff13e0ba446c73a0466c43d9a670b3b7628dce1",
@@ -2376,6 +2376,9 @@ export const UPSTREAM_SURFACE_MANIFEST = Object.freeze({
2376
2376
  "parity/fixtures/stale-workflow-inputs/project-mixed/.github/workflows/example-auto-fix.yml": true,
2377
2377
  "parity/fixtures/stale-workflow-inputs/project-mixed/.github/workflows/example-unknown.yml": true,
2378
2378
  "parity/fixtures/stale-workflow-inputs/project-no-caller/.github/workflows/ci.yml": true,
2379
+ "parity/fixtures/stale-workflow-inputs/project-pinned-stale/.github/workflows/example-agent.yml": true,
2380
+ "parity/fixtures/stale-workflow-inputs/project-third-party/.github/workflows/vendor.yml": true,
2381
+ "parity/fixtures/stale-workflow-inputs/project-unparsed/.github/workflows/example-agent.yml": true,
2379
2382
  "parity/fixtures/stale-workflow-inputs/project-vintage/.github/workflows/example-agent.yml": true,
2380
2383
  "parity/plugin-routing/.gitkeep": true,
2381
2384
  "parity/plugin-routing/code-review@claude-plugins-official.json": true,
@@ -9112,6 +9115,7 @@ export const UPSTREAM_SURFACE_MANIFEST = Object.freeze({
9112
9115
  "src/cli/doctor-git-hooks.ts": true,
9113
9116
  "src/cli/doctor-hook-copy-parity.ts": true,
9114
9117
  "src/cli/doctor-kane.ts": true,
9118
+ "src/cli/doctor-learnings-driver-command.ts": true,
9115
9119
  "src/cli/doctor-learnings-ledger.ts": true,
9116
9120
  "src/cli/doctor-legacy-overlay.ts": true,
9117
9121
  "src/cli/doctor-lisa-owned-artifact-copies.ts": true,
@@ -9444,6 +9448,7 @@ export const UPSTREAM_SURFACE_MANIFEST = Object.freeze({
9444
9448
  "src/core/learnings-lock-capability.ts": true,
9445
9449
  "src/core/learnings-lock-fs.ts": true,
9446
9450
  "src/core/learnings-lock.ts": true,
9451
+ "src/core/learnings-merge-driver-command.ts": true,
9447
9452
  "src/core/learnings-merge-driver-install.ts": true,
9448
9453
  "src/core/learnings-merge-driver.ts": true,
9449
9454
  "src/core/learnings-merge.ts": true,
@@ -10651,7 +10656,9 @@ export const UPSTREAM_SURFACE_MANIFEST = Object.freeze({
10651
10656
  "tests/unit/core/learnings-lock-acquire.test.ts": true,
10652
10657
  "tests/unit/core/learnings-lock-reclaim.test.ts": true,
10653
10658
  "tests/unit/core/learnings-lost-write-detection.test.ts": true,
10659
+ "tests/unit/core/learnings-merge-driver-command.test.ts": true,
10654
10660
  "tests/unit/core/learnings-merge-driver-install.test.ts": true,
10661
+ "tests/unit/core/learnings-merge-driver-worktree.test.ts": true,
10655
10662
  "tests/unit/core/learnings-merge-driver.test.ts": true,
10656
10663
  "tests/unit/core/learnings-merge-reports-every-invalid-entry.test.ts": true,
10657
10664
  "tests/unit/core/learnings-merge.test.ts": true,
@@ -10745,6 +10752,7 @@ export const UPSTREAM_SURFACE_MANIFEST = Object.freeze({
10745
10752
  "tests/unit/health/rails-hook-installation.test.ts": true,
10746
10753
  "tests/unit/health/ruleset-reach-inspection.test.ts": true,
10747
10754
  "tests/unit/health/storage.test.ts": true,
10755
+ "tests/unit/health/workflow-input-pinned-callers.test.ts": true,
10748
10756
  "tests/unit/helpers/bounded-bash.test.ts": true,
10749
10757
  "tests/unit/helpers/bounded-exec-file-sync.test.ts": true,
10750
10758
  "tests/unit/helpers/bounded-spawn-sync.test.ts": true,
@@ -11054,6 +11062,7 @@ export const UPSTREAM_SURFACE_MANIFEST = Object.freeze({
11054
11062
  "tests/unit/scripts/destructive-production-guard.test.ts": true,
11055
11063
  "tests/unit/scripts/destructive-production-unreachable.test.ts": true,
11056
11064
  "tests/unit/scripts/detect-stale-workflow-inputs-helpers.ts": true,
11065
+ "tests/unit/scripts/detect-stale-workflow-inputs-pinned.test.ts": true,
11057
11066
  "tests/unit/scripts/detect-stale-workflow-inputs.test.ts": true,
11058
11067
  "tests/unit/scripts/downstream-name-digest.test.ts": true,
11059
11068
  "tests/unit/scripts/e2e-coverage-comment-navigation.test.ts": true,
@@ -11302,6 +11311,7 @@ export const UPSTREAM_SURFACE_MANIFEST = Object.freeze({
11302
11311
  "tests/unit/scripts/required-check-promotions.test.ts": true,
11303
11312
  "tests/unit/scripts/required-check-promotions.wiring.test.ts": true,
11304
11313
  "tests/unit/scripts/retire-native-safety-net.test.ts": true,
11314
+ "tests/unit/scripts/reusable-workflow-contract.test.ts": true,
11305
11315
  "tests/unit/scripts/review-evidence-check-name.test.ts": true,
11306
11316
  "tests/unit/scripts/review-evidence-wakeup.test.ts": true,
11307
11317
  "tests/unit/scripts/review-gate-conditions.test.ts": true,