@codyswann/lisa 8.2.11 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +50 -11
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +1 -1
- package/dist/cli/learnings-overflow-cmd.js +2 -2
- package/dist/cli/learnings-overflow-cmd.js.map +1 -1
- package/dist/configs/jest/expo.d.ts.map +1 -1
- package/dist/configs/jest/expo.js +6 -0
- package/dist/configs/jest/expo.js.map +1 -1
- package/dist/controls/commands/attest-workspace.d.ts +1 -7
- package/dist/controls/commands/attest-workspace.d.ts.map +1 -1
- package/dist/controls/commands/attest-workspace.js +29 -12
- package/dist/controls/commands/attest-workspace.js.map +1 -1
- package/dist/controls/proof-copy.d.ts.map +1 -1
- package/dist/controls/proof-copy.js +3 -0
- package/dist/controls/proof-copy.js.map +1 -1
- package/dist/controls/proof-scratch.d.ts +42 -0
- package/dist/controls/proof-scratch.d.ts.map +1 -0
- package/dist/controls/proof-scratch.js +172 -0
- package/dist/controls/proof-scratch.js.map +1 -0
- package/dist/core/learnings-document.d.ts +2 -3
- package/dist/core/learnings-document.d.ts.map +1 -1
- package/dist/core/learnings-document.js.map +1 -1
- package/dist/core/learnings-overflow.d.ts +4 -0
- package/dist/core/learnings-overflow.d.ts.map +1 -1
- package/dist/core/learnings-overflow.js +47 -24
- package/dist/core/learnings-overflow.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.json +12 -0
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.json +63 -16
- package/expo/package-lisa/package.lisa.json +8 -2
- 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-linear-sync/SKILL.md +3 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/SKILL.md +47 -39
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-session-manager/scripts/config.mjs +4 -1
- package/plugins/lisa/hooks/inject-resolved-config.mjs +23 -1
- package/plugins/lisa/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/lisa/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/lisa/skills/lisa-session-manager/SKILL.md +47 -39
- package/plugins/lisa/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/lisa/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/lisa/skills/lisa-session-manager/scripts/config.mjs +4 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/SKILL.md +47 -39
- package/plugins/lisa-agy/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/lisa-agy/skills/lisa-session-manager/scripts/config.mjs +4 -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/hooks/inject-resolved-config.mjs +23 -1
- package/plugins/lisa-copilot/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa-copilot/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/SKILL.md +47 -39
- package/plugins/lisa-copilot/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/lisa-copilot/skills/lisa-session-manager/scripts/config.mjs +4 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/inject-resolved-config.mjs +23 -1
- package/plugins/lisa-cursor/rules/config-resolution-reference.mdc +1 -0
- package/plugins/lisa-cursor/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/SKILL.md +47 -39
- package/plugins/lisa-cursor/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/lisa-cursor/skills/lisa-session-manager/scripts/config.mjs +4 -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/hooks/inject-resolved-config.mjs +23 -1
- package/plugins/lisa-devin/rules/reference/config-resolution.md +1 -0
- package/plugins/lisa-devin/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/SKILL.md +47 -39
- package/plugins/lisa-devin/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/lisa-devin/skills/lisa-session-manager/scripts/config.mjs +4 -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/hooks/inject-resolved-config.mjs +23 -1
- package/plugins/src/base/rules/reference/config-resolution.md +1 -0
- package/plugins/src/base/skills/lisa-linear-sync/SKILL.md +3 -3
- package/plugins/src/base/skills/lisa-secrets-access/scripts/validate-config.mjs +5 -0
- package/plugins/src/base/skills/lisa-session-manager/SKILL.md +47 -39
- package/plugins/src/base/skills/lisa-session-manager/references/runbook-template.md +5 -0
- package/plugins/src/base/skills/lisa-session-manager/scripts/cli-status.mjs +2 -1
- package/plugins/src/base/skills/lisa-session-manager/scripts/config.mjs +4 -1
- package/rails/copy-overwrite/lefthook.yml +3 -0
- package/rails/copy-overwrite/scripts/lisa-rails-ast-grep.mjs +31 -0
- package/rails/copy-overwrite/scripts/lisa-rails-gates.mjs +5 -0
- package/scripts/two-channel-couplings.json +33 -5
- package/scripts/verify-packed-learnings-contract.mjs +27 -1
- package/typescript/copy-overwrite/.prettierignore +1 -0
|
@@ -66,6 +66,10 @@
|
|
|
66
66
|
"decision": "warranted",
|
|
67
67
|
"reason": "Verdict-bearing required gate: it compares committed thresholds against measured coverage and posts a red check. A copy predating a threshold-semantics change enforces the old comparison and its red is believed — the precise harm CodySwannGT/lisa#3477 measured on the work-item gate. The artifact exports no contract version yet, so closing this needs the artifact half authored first; recorded as an open obligation rather than exempted."
|
|
68
68
|
},
|
|
69
|
+
"quality-rails.yml::scripts/lisa-rails-ast-grep.mjs": {
|
|
70
|
+
"decision": "not-needed",
|
|
71
|
+
"reason": "The workflow and pre-push hook use the exact ast-grep package pinned by this script in the same checkout. Reapplying Lisa advances both together. Hosts predating the script keep the existing CI pin."
|
|
72
|
+
},
|
|
69
73
|
"quality-rails.yml::scripts/lisa-mutation.sh": {
|
|
70
74
|
"decision": "not-needed",
|
|
71
75
|
"reason": "A runner, not a judge. The gate's verdict is mutant's exit code, and what it runs is read from the project's own `mutation.gate.yml` and `.mutant.yml`; this script's own logic decides whether the gate is enabled and what ref to diff against, both of which come from configuration it does not own. A superseded copy runs the wrong subjects loudly rather than returning a wrong verdict quietly."
|
|
@@ -168,25 +172,25 @@
|
|
|
168
172
|
"inspected": {
|
|
169
173
|
"workflows": 27,
|
|
170
174
|
"steps": 890,
|
|
171
|
-
"couplings":
|
|
172
|
-
"inventory":
|
|
175
|
+
"couplings": 51,
|
|
176
|
+
"inventory": 257
|
|
173
177
|
},
|
|
174
178
|
"counts": {
|
|
175
179
|
"package-backed": 11,
|
|
176
|
-
"apply-lagged":
|
|
180
|
+
"apply-lagged": 30,
|
|
177
181
|
"never-delivered": 0,
|
|
178
182
|
"undelivered": 10
|
|
179
183
|
},
|
|
180
184
|
"detectionCounts": {
|
|
181
185
|
"version-handshake": 4,
|
|
182
186
|
"capability-probe": 0,
|
|
183
|
-
"existence-only":
|
|
187
|
+
"existence-only": 8,
|
|
184
188
|
"no-probe": 18,
|
|
185
189
|
"unchecked": 10
|
|
186
190
|
},
|
|
187
191
|
"decisionCounts": {
|
|
188
192
|
"handshake": 4,
|
|
189
|
-
"not-needed":
|
|
193
|
+
"not-needed": 25,
|
|
190
194
|
"warranted": 11
|
|
191
195
|
},
|
|
192
196
|
"couplings": [
|
|
@@ -604,6 +608,30 @@
|
|
|
604
608
|
],
|
|
605
609
|
"detail": "`quality-rails.yml` is delivered at `@main`, so this step is live in every consumer on their next run. It reads `scripts/lisa-mutation.sh` from the CALLER's tree with no package-relative candidate, and Lisa delivers that path on the `lisa apply` channel (all/copy-contents). The two halves land in the wrong order: this step is live everywhere immediately, the file it needs is live only where somebody applied. The read sits behind an existence test, which is ALL this scan examined of the step's control flow: it did not read the test's other branch, any fallback, any explicit `exit`, or any verification of the step's output. Whether an absent path skips quietly, falls back, or fails loudly is therefore NOT MEASURED — read the step before concluding it proves nothing. The shape worth ruling out is the silent one, where a skip posts no context and an absent required context is not a red one. The step's text does carry `else-branch`, `exit-zero` — located in the step, deliberately NOT related to this read, and enough to make \"it skips silently\" a claim to check rather than assume. STALENESS (a separate dimension from the delivery verdict above): `existence-only`. An existence test and no version probe: this coupling can see that the artifact is MISSING and cannot see that it is OLD. A present copy of any vintage runs, and its verdict is believed. Tokens found: `workflow-requests-version`. `workflow-requests-version` is workflow-scoped — it does not say THIS step asks."
|
|
606
610
|
},
|
|
611
|
+
{
|
|
612
|
+
"key": "quality-rails.yml::scripts/lisa-rails-ast-grep.mjs",
|
|
613
|
+
"workflow": "quality-rails.yml",
|
|
614
|
+
"path": "scripts/lisa-rails-ast-grep.mjs",
|
|
615
|
+
"channel": "apply",
|
|
616
|
+
"verdict": "apply-lagged",
|
|
617
|
+
"remedy": "run-lisa-apply",
|
|
618
|
+
"guarded": true,
|
|
619
|
+
"handling": [
|
|
620
|
+
"else-branch",
|
|
621
|
+
"exit-nonzero",
|
|
622
|
+
"error-annotation"
|
|
623
|
+
],
|
|
624
|
+
"detection": "existence-only",
|
|
625
|
+
"stalenessSignals": [
|
|
626
|
+
"workflow-requests-version"
|
|
627
|
+
],
|
|
628
|
+
"decision": "not-needed",
|
|
629
|
+
"reason": "The workflow and pre-push hook use the exact ast-grep package pinned by this script in the same checkout. Reapplying Lisa advances both together. Hosts predating the script keep the existing CI pin.",
|
|
630
|
+
"lanes": [
|
|
631
|
+
"rails/copy-overwrite"
|
|
632
|
+
],
|
|
633
|
+
"detail": "`quality-rails.yml` is delivered at `@main`, so this step is live in every consumer on their next run. It reads `scripts/lisa-rails-ast-grep.mjs` from the CALLER's tree with no package-relative candidate, and Lisa delivers that path on the `lisa apply` channel (rails/copy-overwrite). The two halves land in the wrong order: this step is live everywhere immediately, the file it needs is live only where somebody applied. The read sits behind an existence test, which is ALL this scan examined of the step's control flow: it did not read the test's other branch, any fallback, any explicit `exit`, or any verification of the step's output. Whether an absent path skips quietly, falls back, or fails loudly is therefore NOT MEASURED — read the step before concluding it proves nothing. The shape worth ruling out is the silent one, where a skip posts no context and an absent required context is not a red one. The step's text does carry `else-branch`, `exit-nonzero`, `error-annotation` — located in the step, deliberately NOT related to this read, and enough to make \"it skips silently\" a claim to check rather than assume. STALENESS (a separate dimension from the delivery verdict above): `existence-only`. An existence test and no version probe: this coupling can see that the artifact is MISSING and cannot see that it is OLD. A present copy of any vintage runs, and its verdict is believed. Tokens found: `workflow-requests-version`. `workflow-requests-version` is workflow-scoped — it does not say THIS step asks."
|
|
634
|
+
},
|
|
607
635
|
{
|
|
608
636
|
"key": "quality-rails.yml::scripts/lisa-rspec-select.mjs",
|
|
609
637
|
"workflow": "quality-rails.yml",
|
|
@@ -58,7 +58,33 @@ try {
|
|
|
58
58
|
assert.deepEqual(learnings.resolveLearningsSettings(packedConfig), {
|
|
59
59
|
learningsFile: packedLearningsFile,
|
|
60
60
|
mergeDriverEnabled: false,
|
|
61
|
+
lowConfidence: "auto-merge",
|
|
61
62
|
});
|
|
63
|
+
const humanTriageConfigs = [
|
|
64
|
+
{ learnings: { lowConfidence: "human-triage" } },
|
|
65
|
+
{ humanGate: { mode: "strict" } },
|
|
66
|
+
];
|
|
67
|
+
for (const config of humanTriageConfigs) {
|
|
68
|
+
await writeFile(
|
|
69
|
+
path.join(configProject, packedConfigFile),
|
|
70
|
+
`${JSON.stringify(config)}\n`,
|
|
71
|
+
"utf8"
|
|
72
|
+
);
|
|
73
|
+
const resolved = await learnings.readProjectConfig(configProject);
|
|
74
|
+
assert.equal(
|
|
75
|
+
learnings.resolveLearningsSettings(resolved).lowConfidence,
|
|
76
|
+
"human-triage"
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
await writeFile(
|
|
80
|
+
path.join(configProject, packedConfigFile),
|
|
81
|
+
'{"learnings":{"lowConfidence":"unsupported"}}\n',
|
|
82
|
+
"utf8"
|
|
83
|
+
);
|
|
84
|
+
await assert.rejects(
|
|
85
|
+
learnings.readProjectConfig(configProject),
|
|
86
|
+
/learnings\.lowConfidence.*(?:auto-merge|human-triage)/iu
|
|
87
|
+
);
|
|
62
88
|
await writeFile(
|
|
63
89
|
path.join(configProject, packedConfigFile),
|
|
64
90
|
'{"learnings":{"mergeDriver":"false"}}\n',
|
|
@@ -393,7 +419,7 @@ export const invalid: LearningsConfig = { mergeDriver: "false" };
|
|
|
393
419
|
assert.equal(await readFile(overflow.file, "utf8"), beforeOverflowCollision);
|
|
394
420
|
|
|
395
421
|
console.log(
|
|
396
|
-
"[EVIDENCE: packed-learnings-contract] config=validated merge-driver=opt-out types=closed v1=migratable legacy=bounded entries=hardened stamps=hardened race=9 stale=8 chain=stable collision=atomic overflow=fork merge=2 projection=bounded"
|
|
422
|
+
"[EVIDENCE: packed-learnings-contract] config=validated merge-driver=opt-out low-confidence=default-explicit-strict-invalid types=closed v1=migratable legacy=bounded entries=hardened stamps=hardened race=9 stale=8 chain=stable collision=atomic overflow=fork merge=2 projection=bounded"
|
|
397
423
|
);
|
|
398
424
|
} finally {
|
|
399
425
|
await rm(temporary, { recursive: true, force: true });
|
|
@@ -79,6 +79,7 @@ scripts/lisa-push-timing-report.mjs
|
|
|
79
79
|
scripts/lisa-affected-tests.mjs
|
|
80
80
|
scripts/fetch-test-access-map.mjs
|
|
81
81
|
scripts/lisa-rspec-select.mjs
|
|
82
|
+
scripts/lisa-rails-ast-grep.mjs
|
|
82
83
|
scripts/lisa-rails-gates.mjs
|
|
83
84
|
scripts/review-evidence-event.mjs
|
|
84
85
|
scripts/check-threshold-ratchet.mjs
|