@codyswann/lisa 2.280.0 → 2.281.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/dist/cli/doctor-readiness-capabilities.d.ts +33 -0
- package/dist/cli/doctor-readiness-capabilities.d.ts.map +1 -0
- package/dist/cli/doctor-readiness-capabilities.js +26 -0
- package/dist/cli/doctor-readiness-capabilities.js.map +1 -0
- package/dist/cli/doctor-readiness-domain.d.ts +17 -0
- package/dist/cli/doctor-readiness-domain.d.ts.map +1 -0
- package/dist/cli/doctor-readiness-domain.js +197 -0
- package/dist/cli/doctor-readiness-domain.js.map +1 -0
- package/dist/cli/doctor-readiness-guardrails.d.ts +15 -0
- package/dist/cli/doctor-readiness-guardrails.d.ts.map +1 -0
- package/dist/cli/doctor-readiness-guardrails.js +219 -0
- package/dist/cli/doctor-readiness-guardrails.js.map +1 -0
- package/dist/cli/doctor-readiness-operations.d.ts +103 -0
- package/dist/cli/doctor-readiness-operations.d.ts.map +1 -0
- package/dist/cli/doctor-readiness-operations.js +207 -0
- package/dist/cli/doctor-readiness-operations.js.map +1 -0
- package/dist/cli/doctor-readiness-workflows.d.ts +20 -0
- package/dist/cli/doctor-readiness-workflows.d.ts.map +1 -1
- package/dist/cli/doctor-readiness-workflows.js +29 -7
- package/dist/cli/doctor-readiness-workflows.js.map +1 -1
- package/dist/cli/doctor-readiness.d.ts.map +1 -1
- package/dist/cli/doctor-readiness.js +18 -12
- package/dist/cli/doctor-readiness.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +10 -0
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +1 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-agy/plugin.json +1 -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-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -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-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-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-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-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-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-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-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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor-readiness-operations.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-readiness-operations.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AAEzC,+EAA+E;AAC/E,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,6DAA6D;AAC7D,MAAM,WAAW,aAAa;IAC5B,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,EAAE,SAAS,cAAc,EAAE,CAAC;IAC5C,yDAAyD;IACzD,QAAQ,CAAC,KAAK,EAAE,SAAS,cAAc,EAA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,MAAM,GACZ,MAAM,CAaR"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared consequential-operation scanning for the B1 and B4 readiness producers
|
|
3
|
+
* (PRD #1739, #1896).
|
|
4
|
+
*
|
|
5
|
+
* B1 ("a realistic path causes silent data loss") and B4 ("a consequential
|
|
6
|
+
* operation has no gate and no recovery") ask different questions about the same
|
|
7
|
+
* raw material: a command an automated pipeline runs. They therefore share one
|
|
8
|
+
* definition of what counts as *automated* and what counts as *gated*, so the
|
|
9
|
+
* two producers cannot drift into disagreeing about the same workflow file.
|
|
10
|
+
*
|
|
11
|
+
* Everything here is written to be wrong in the safe direction. These are the
|
|
12
|
+
* two most false-positive-prone blockers in the rubric, and a standing blocker
|
|
13
|
+
* flips the entire repository to `NOT_READY` no matter what status the finding
|
|
14
|
+
* carries. So a guard this module cannot see is treated as a guard that exists:
|
|
15
|
+
* a conditional step, a conditional job, a declared environment, a manual-only
|
|
16
|
+
* trigger, or a reusable workflow whose caller is invisible all mean "not
|
|
17
|
+
* provable from this file", and not-provable never stands a blocker.
|
|
18
|
+
* @module cli/doctor-readiness-operations
|
|
19
|
+
*/
|
|
20
|
+
import { readdir } from "node:fs/promises";
|
|
21
|
+
import * as path from "node:path";
|
|
22
|
+
/**
|
|
23
|
+
* Targets that mark an operation as aimed at throwaway state — a CI database,
|
|
24
|
+
* a per-pull-request preview stack, a scratch stage. A pipeline that tears down
|
|
25
|
+
* what it just built is doing the correct thing, and reporting it as an ungated
|
|
26
|
+
* consequential operation is the archetypal false positive for both B1 and B4.
|
|
27
|
+
* Shared by both producers so they cannot drift apart on what "ephemeral" means.
|
|
28
|
+
*/
|
|
29
|
+
const EPHEMERAL_TARGETS = [
|
|
30
|
+
/(^|[^a-z0-9])test([^a-z0-9]|$)/,
|
|
31
|
+
/_test\b/,
|
|
32
|
+
/-test\b/,
|
|
33
|
+
/\blocalhost\b/,
|
|
34
|
+
/\b127\.0\.0\.1\b/,
|
|
35
|
+
/(^|[^a-z0-9])(tmp|temp)([^a-z0-9]|$)/,
|
|
36
|
+
/(^|[^a-z0-9])pr-/,
|
|
37
|
+
/\bpreview\b/,
|
|
38
|
+
/github\.event\.number/,
|
|
39
|
+
/\bpull_request\b/,
|
|
40
|
+
];
|
|
41
|
+
/**
|
|
42
|
+
* Whether any text — a command, a job's `env:` block, or the two together —
|
|
43
|
+
* names an obviously ephemeral target.
|
|
44
|
+
* @param text - The text to screen (case is normalized here)
|
|
45
|
+
* @returns True when the text names throwaway state
|
|
46
|
+
*/
|
|
47
|
+
export function looksEphemeral(text) {
|
|
48
|
+
const normalized = text.toLowerCase();
|
|
49
|
+
return EPHEMERAL_TARGETS.some(pattern => pattern.test(normalized));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Triggers that mean the workflow does not run itself. `workflow_dispatch` puts
|
|
53
|
+
* a human at the console, and `workflow_call` hides the caller from an offline
|
|
54
|
+
* read — neither is a path this module may call automated.
|
|
55
|
+
*/
|
|
56
|
+
const NON_AUTOMATED_EVENTS = [
|
|
57
|
+
"workflow_dispatch",
|
|
58
|
+
"workflow_call",
|
|
59
|
+
];
|
|
60
|
+
/**
|
|
61
|
+
* Whether a workflow's declared triggers prove it runs without a human. A
|
|
62
|
+
* workflow that declares no `on:` block this parser could read is treated as
|
|
63
|
+
* NOT automated, because absence of a readable trigger is absence of proof.
|
|
64
|
+
* @param workflow - The parsed workflow
|
|
65
|
+
* @returns True when at least one trigger fires with no human in the loop
|
|
66
|
+
*/
|
|
67
|
+
export function runsUnattended(workflow) {
|
|
68
|
+
// An empty trigger list yields `false` here, which is the intended reading:
|
|
69
|
+
// a workflow whose `on:` block could not be parsed proves nothing.
|
|
70
|
+
return workflow.on.events.some(event => !NON_AUTOMATED_EVENTS.includes(event));
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Whether anything in the file already gates this job. A declared
|
|
74
|
+
* `environment:` counts even though its protection rules are unreadable
|
|
75
|
+
* offline: the operator has named a deployment boundary, and calling that
|
|
76
|
+
* ungated would be exactly the false positive this module exists to prevent.
|
|
77
|
+
* @param job - The parsed job
|
|
78
|
+
* @returns True when the job is conditional or names an environment
|
|
79
|
+
*/
|
|
80
|
+
export function jobIsGated(job) {
|
|
81
|
+
return job.ifCondition !== "" || job.environment.length > 0;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Whether a step is individually gated — a conditional step, or a command that
|
|
85
|
+
* names its own confirmation or rehearsal switch.
|
|
86
|
+
* @param step - The parsed step
|
|
87
|
+
* @returns True when the step carries its own guard
|
|
88
|
+
*/
|
|
89
|
+
export function stepIsGated(step) {
|
|
90
|
+
if (step.ifCondition !== "") {
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
const command = step.run.toLowerCase();
|
|
94
|
+
return (
|
|
95
|
+
// `-dryrun` covers the AWS CLI's own hyphen-less spelling and the
|
|
96
|
+
// double-dashed one; `--dry-run` is the GNU-style form everything else uses.
|
|
97
|
+
command.includes("--dry-run") ||
|
|
98
|
+
command.includes("-dryrun") ||
|
|
99
|
+
command.includes("--require-approval") ||
|
|
100
|
+
command.includes("inputs.confirm"));
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* State the reason one job's exposure could not be settled from the file alone.
|
|
104
|
+
* @param workflow - The workflow declaring the job
|
|
105
|
+
* @param job - The job that matched
|
|
106
|
+
* @returns One operator-language reason line
|
|
107
|
+
*/
|
|
108
|
+
function unresolvedReason(workflow, job) {
|
|
109
|
+
return (`\`${workflow.file}\` job \`${job.id}\` runs a consequential operation, but ` +
|
|
110
|
+
"the workflow only starts from a manual dispatch or from a caller this " +
|
|
111
|
+
"offline read cannot see, so whether it ever runs unattended is not " +
|
|
112
|
+
"established either way");
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Classify every matching step in one job.
|
|
116
|
+
* @param workflow - The workflow declaring the job
|
|
117
|
+
* @param job - The job to classify
|
|
118
|
+
* @param matches - Predicate over a lower-cased `run` command
|
|
119
|
+
* @param options - Scan refinements
|
|
120
|
+
* @returns The classified outcomes for this job (empty when nothing matched)
|
|
121
|
+
*/
|
|
122
|
+
function classifyJob(workflow, job, matches, options) {
|
|
123
|
+
const hits = job.steps.filter(step => step.run !== "" && matches(step.run.toLowerCase(), job));
|
|
124
|
+
if (hits.length === 0) {
|
|
125
|
+
return [];
|
|
126
|
+
}
|
|
127
|
+
if (!runsUnattended(workflow)) {
|
|
128
|
+
return [{ kind: "unresolved", reason: unresolvedReason(workflow, job) }];
|
|
129
|
+
}
|
|
130
|
+
const deferred = options.unresolvedWorkflow?.(workflow) ?? options.unresolvedJob?.(job);
|
|
131
|
+
if (deferred !== undefined && deferred !== null) {
|
|
132
|
+
return [{ kind: "unresolved", reason: deferred }];
|
|
133
|
+
}
|
|
134
|
+
const jobGated = jobIsGated(job) || (options.exemptJob?.(job) ?? false);
|
|
135
|
+
return hits.map(step => ({
|
|
136
|
+
kind: jobGated || stepIsGated(step) ? "gated" : "ungated",
|
|
137
|
+
command: { workflow: workflow.file, jobId: job.id, command: step.run },
|
|
138
|
+
}));
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Scan every workflow for the commands matching a predicate, partitioned by
|
|
142
|
+
* whether the file itself proves the command runs unattended and ungated.
|
|
143
|
+
* @param workflows - Parsed workflows
|
|
144
|
+
* @param matches - Predicate over a lower-cased `run` command
|
|
145
|
+
* @param options - Scan refinements
|
|
146
|
+
* @returns The partitioned scan
|
|
147
|
+
*/
|
|
148
|
+
export function scanCommands(workflows, matches, options = {}) {
|
|
149
|
+
const outcomes = workflows.flatMap(workflow => workflow.jobs.flatMap(job => classifyJob(workflow, job, matches, options)));
|
|
150
|
+
return {
|
|
151
|
+
ungated: outcomes.flatMap(outcome => outcome.kind === "ungated" ? [outcome.command] : []),
|
|
152
|
+
gated: outcomes.flatMap(outcome => outcome.kind === "gated" ? [outcome.command] : []),
|
|
153
|
+
unresolved: outcomes.flatMap(outcome => outcome.kind === "unresolved" ? [outcome.reason] : []),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Whether the repository checks in an automation runbook — the "way back" half
|
|
158
|
+
* of B1 and B4. The `automation-runbook-contract` rule puts them under
|
|
159
|
+
* `.lisa/automations/*.runbook.md`; the conventional documentation homes are
|
|
160
|
+
* honored as well, so a project that writes its recovery procedure somewhere
|
|
161
|
+
* reasonable is never told it has none.
|
|
162
|
+
* @param root - Repository root
|
|
163
|
+
* @returns True when at least one runbook is checked in
|
|
164
|
+
*/
|
|
165
|
+
export async function hasCheckedInRunbook(root) {
|
|
166
|
+
const holdsRunbooks = await Promise.all([
|
|
167
|
+
directoryHolds(root, path.join(".lisa", "automations"), ".runbook.md"),
|
|
168
|
+
...["wiki/runbooks", "docs/runbooks", "runbooks"].map(async (candidate) =>
|
|
169
|
+
// An EMPTY directory is not a recovery procedure. Accepting one would
|
|
170
|
+
// make `mkdir runbooks` a one-command switch for turning B1 and B4 off.
|
|
171
|
+
await directoryHolds(root, candidate, ".md")),
|
|
172
|
+
]);
|
|
173
|
+
return holdsRunbooks.includes(true);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Whether a repository directory holds at least one file with a given suffix.
|
|
177
|
+
* @param root - Repository root
|
|
178
|
+
* @param relativePath - Repo-relative directory path
|
|
179
|
+
* @param suffix - Required file-name suffix
|
|
180
|
+
* @returns True when the directory exists and holds a matching file
|
|
181
|
+
*/
|
|
182
|
+
async function directoryHolds(root, relativePath, suffix) {
|
|
183
|
+
try {
|
|
184
|
+
const entries = await readdir(path.join(root, ...relativePath.split("/")));
|
|
185
|
+
return entries.some(entry => entry.endsWith(suffix));
|
|
186
|
+
}
|
|
187
|
+
catch {
|
|
188
|
+
return false;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Render scanned commands as one evidence string, quoting the file, the job, and
|
|
193
|
+
* the command so the operator can go straight to the line.
|
|
194
|
+
* @param commands - The commands to cite
|
|
195
|
+
* @param limit - Most commands to quote before summarizing the remainder
|
|
196
|
+
* @returns One evidence string
|
|
197
|
+
*/
|
|
198
|
+
export function describeCommands(commands, limit) {
|
|
199
|
+
const shown = commands.slice(0, limit);
|
|
200
|
+
const overflow = commands.length - shown.length;
|
|
201
|
+
const lines = shown.map(entry => `\`${entry.workflow}\` job \`${entry.jobId}\` runs \`${entry.command}\``);
|
|
202
|
+
return (lines.join(" | ") +
|
|
203
|
+
(overflow > 0
|
|
204
|
+
? ` | (+${overflow} further operation(s) of the same kind)`
|
|
205
|
+
: ""));
|
|
206
|
+
}
|
|
207
|
+
//# sourceMappingURL=doctor-readiness-operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor-readiness-operations.js","sourceRoot":"","sources":["../../src/cli/doctor-readiness-operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AA8ClC;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAsB;IAC3C,gCAAgC;IAChC,SAAS;IACT,SAAS;IACT,eAAe;IACf,kBAAkB;IAClB,sCAAsC;IACtC,kBAAkB;IAClB,aAAa;IACb,uBAAuB;IACvB,kBAAkB;CACnB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACtC,OAAO,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;AACrE,CAAC;AAkBD;;;;GAIG;AACH,MAAM,oBAAoB,GAAsB;IAC9C,mBAAmB;IACnB,eAAe;CAChB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,QAAwB;IACr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ED;;;;;;GAMG;AACH,KAAK,UAAU,cAAc,CAC3B,IAAY,EACZ,YAAoB,EACpB,MAAc;IAEd,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC3E,OAAO,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IACvD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAC9B,QAAmC,EACnC,KAAa;IAEb,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACvC,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAChD,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CACrB,KAAK,CAAC,EAAE,CACN,KAAK,KAAK,CAAC,QAAQ,YAAY,KAAK,CAAC,KAAK,aAAa,KAAK,CAAC,OAAO,IAAI,CAC3E,CAAC;IACF,OAAO,CACL,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;QACjB,CAAC,QAAQ,GAAG,CAAC;YACX,CAAC,CAAC,QAAQ,QAAQ,yCAAyC;YAC3D,CAAC,CAAC,EAAE,CAAC,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -27,6 +27,12 @@ export interface ParsedWorkflowStep {
|
|
|
27
27
|
readonly uses: string;
|
|
28
28
|
/** Raw serialized `env` + `with` text, used for credential evidence. */
|
|
29
29
|
readonly inputs: string;
|
|
30
|
+
/**
|
|
31
|
+
* The step's `if:` condition, or `""` when it always runs. Load-bearing for
|
|
32
|
+
* the B1/B4 producers: a conditional step is a step somebody deliberately
|
|
33
|
+
* gated, which is exactly what those blockers ask about.
|
|
34
|
+
*/
|
|
35
|
+
readonly ifCondition: string;
|
|
30
36
|
}
|
|
31
37
|
/** One job inside a parsed workflow. */
|
|
32
38
|
export interface ParsedWorkflowJob {
|
|
@@ -43,6 +49,20 @@ export interface ParsedWorkflowJob {
|
|
|
43
49
|
readonly secrets: WorkflowBlock;
|
|
44
50
|
/** Declared deployment environments (a scalar or list, normalized). */
|
|
45
51
|
readonly environment: readonly string[];
|
|
52
|
+
/** The job's `if:` condition, or `""` when it always runs. */
|
|
53
|
+
readonly ifCondition: string;
|
|
54
|
+
/**
|
|
55
|
+
* The job-level `env:` block, flattened to `key: value` lines. The B1
|
|
56
|
+
* producer resolves a command's target through it: `psql "$DATABASE_URL"`
|
|
57
|
+
* says nothing on its own, while the `DATABASE_URL` it expands to may name
|
|
58
|
+
* `127.0.0.1` and settle the question.
|
|
59
|
+
*/
|
|
60
|
+
readonly env: string;
|
|
61
|
+
/**
|
|
62
|
+
* Ids of the `services:` containers the job starts. A job that boots its own
|
|
63
|
+
* database is operating on throwaway state by construction.
|
|
64
|
+
*/
|
|
65
|
+
readonly services: readonly string[];
|
|
46
66
|
}
|
|
47
67
|
/** One parsed `.github/workflows/*.yml` file. */
|
|
48
68
|
export interface ParsedWorkflow {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor-readiness-workflows.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-readiness-workflows.ts"],"names":[],"mappings":"AAwBA;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,0EAA0E;IAC1E,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,4EAA4E;IAC5E,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,yEAAyE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,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC9C,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;IACpC,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,uEAAuE;IACvE,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,8DAA8D;IAC9D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;CACtC;AAED,iDAAiD;AACjD,MAAM,WAAW,cAAc;IAC7B,uDAAuD;IACvD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8DAA8D;IAC9D,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;IACpC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,EAAE,qBAAqB,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAC7C;AAkND;;;;GAIG;AACH,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,SAAS,cAAc,EAAE,CAAC,CAQpC"}
|
|
@@ -86,13 +86,31 @@ function parseTrigger(value) {
|
|
|
86
86
|
* @returns Flattened `key: value` text, one pair per line
|
|
87
87
|
*/
|
|
88
88
|
function serializeStepInputs(step) {
|
|
89
|
-
return ["env", "with"]
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
return ["env", "with"].flatMap(key => serializeBlock(step[key])).join("\n");
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Flatten one YAML mapping to `key: value` lines so it can be searched as text.
|
|
93
|
+
* @param value - Candidate YAML mapping
|
|
94
|
+
* @returns One line per entry (empty when the value is not a mapping)
|
|
95
|
+
*/
|
|
96
|
+
function serializeBlock(value) {
|
|
97
|
+
if (!isJsonObject(value)) {
|
|
98
|
+
return [];
|
|
99
|
+
}
|
|
100
|
+
return Object.entries(value).map(([name, entry]) => `${name}: ${typeof entry === "string" ? entry : String(entry)}`);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Normalize an `if:` condition, which GitHub accepts as an expression string or
|
|
104
|
+
* a bare boolean. Any non-empty value means the thing is conditional; the text
|
|
105
|
+
* itself is carried only so evidence can quote it.
|
|
106
|
+
* @param value - Candidate YAML `if` value
|
|
107
|
+
* @returns The condition text, or `""` when the block is absent
|
|
108
|
+
*/
|
|
109
|
+
function asCondition(value) {
|
|
110
|
+
if (value === undefined || value === null) {
|
|
111
|
+
return "";
|
|
112
|
+
}
|
|
113
|
+
return typeof value === "string" ? value.trim() : String(value);
|
|
96
114
|
}
|
|
97
115
|
/**
|
|
98
116
|
* Parse one job's `steps` list.
|
|
@@ -108,6 +126,7 @@ function parseSteps(value) {
|
|
|
108
126
|
run: typeof step.run === "string" ? step.run.trim() : "",
|
|
109
127
|
uses: typeof step.uses === "string" ? step.uses.trim() : "",
|
|
110
128
|
inputs: serializeStepInputs(step),
|
|
129
|
+
ifCondition: asCondition(step.if),
|
|
111
130
|
}));
|
|
112
131
|
}
|
|
113
132
|
/**
|
|
@@ -136,6 +155,9 @@ function parseJobs(document, file) {
|
|
|
136
155
|
permissions: asBlock(job.permissions),
|
|
137
156
|
secrets: asBlock(job.secrets),
|
|
138
157
|
environment: asEnvironments(job.environment),
|
|
158
|
+
ifCondition: asCondition(job.if),
|
|
159
|
+
env: serializeBlock(job.env).join("\n"),
|
|
160
|
+
services: isJsonObject(job.services) ? Object.keys(job.services) : [],
|
|
139
161
|
},
|
|
140
162
|
];
|
|
141
163
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor-readiness-workflows.js","sourceRoot":"","sources":["../../src/cli/doctor-readiness-workflows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,0EAA0E;AAC1E,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"doctor-readiness-workflows.js","sourceRoot":"","sources":["../../src/cli/doctor-readiness-workflows.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,0EAA0E;AAC1E,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAoFxD;;;;GAIG;AACH,SAAS,YAAY,CAAC,KAAc;IAClC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;IACnD,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,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O,MAAM,CAAC,MAAM,CAClB,CAAC,QAAQ,EAA8B,EAAE,CAAC,QAAQ,KAAK,IAAI,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor-readiness.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-readiness.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAGL,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACtB,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"doctor-readiness.d.ts","sourceRoot":"","sources":["../../src/cli/doctor-readiness.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAGL,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACtB,MAAM,gCAAgC,CAAC;AA+BxC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAM5E,OAAO,EACL,iCAAiC,EACjC,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACV,uBAAuB,EACvB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,gBAAgB,EAChB,aAAa,GACd,MAAM,gCAAgC,CAAC;AAQxC;;;GAGG;AACH,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAkE1C,gEAAgE;AAChE,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EACA,CAAC;AAetD;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,wBAAwB,CAC5C,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,WAAW,CAAC,CA0CtB;AAyBD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,gBAAgB,EACzB,UAAU,EAAE,SAAS,uBAAuB,EAAE,GAC7C,MAAM,CAeR;AAsCD;;;;;;;;;GASG;AACH,wBAAsB,oBAAoB,CACxC,EAAE,EAAE,MAAM,EACV,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,wBAAwB,CAAC,CAUnC;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAC9B,UAAU,EAAE,MAAM,KACf,OAAO,CAAC,wBAAwB,CAAC,CAAC"}
|
|
@@ -6,6 +6,9 @@ import { assessReadiness, } from "./doctor-readiness-blockers.js";
|
|
|
6
6
|
import { DELIVERY_AUTHORITY_DIMENSION_ID, assessDeliveryAuthorityDimension, } from "./doctor-readiness-delivery.js";
|
|
7
7
|
import { CONTEXT_ROUTING_DIMENSION_ID, assessContextRoutingDimension, } from "./doctor-readiness-context.js";
|
|
8
8
|
import { DEPENDENCIES_SUPPLY_CHAIN_DIMENSION_ID, assessDependenciesSupplyChainDimension, } from "./doctor-readiness-supply-chain.js";
|
|
9
|
+
import { CAPABILITIES_TOOLS_DIMENSION_ID, assessCapabilitiesToolsDimension, } from "./doctor-readiness-capabilities.js";
|
|
10
|
+
import { DOMAIN_OWNERSHIP_DIMENSION_ID, assessDomainOwnershipDimension, } from "./doctor-readiness-domain.js";
|
|
11
|
+
import { FEEDBACK_GUARDRAILS_DIMENSION_ID, assessFeedbackGuardrailsDimension, } from "./doctor-readiness-guardrails.js";
|
|
9
12
|
import { EXECUTION_PROOF_DIMENSION_ID, PROPORTIONALITY_DIMENSION_ID, assessExecutionProofDimension, assessProportionalityDimension, } from "./doctor-readiness-journey.js";
|
|
10
13
|
import { getPackageVersion } from "./version.js";
|
|
11
14
|
// Re-export the blocker-gate surface (RRR-5, #1857) so `.lisa/readiness.json`
|
|
@@ -24,10 +27,10 @@ export const READINESS_SCHEMA_VERSION = 1;
|
|
|
24
27
|
/**
|
|
25
28
|
* The eight ownership dimensions, in fixed render order, defined once by the
|
|
26
29
|
* `readiness-rubric` rule (RRR-1, #1853). This collector consumes that rubric —
|
|
27
|
-
* it does not redefine the vocabulary.
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
30
|
+
* it does not redefine the vocabulary. As of #1896 every one of the eight is
|
|
31
|
+
* wired to a producer in {@link DIMENSION_PRODUCERS}, so no dimension is ever
|
|
32
|
+
* blank: each renders either a producer's result or that producer's own stated
|
|
33
|
+
* reason for not assessing it, per the never-silently-omit contract (#1898).
|
|
31
34
|
*/
|
|
32
35
|
const READINESS_DIMENSIONS = [
|
|
33
36
|
{
|
|
@@ -37,12 +40,10 @@ const READINESS_DIMENSIONS = [
|
|
|
37
40
|
{
|
|
38
41
|
id: "capabilities-tools",
|
|
39
42
|
question: "Is every tool the work needs provably reachable, not merely installed (tool-access-gate)?",
|
|
40
|
-
skipReason: "Capabilities/tools evidence is gathered by the journey-execution wiring (RRR-6, #1858); no readiness probe is wired in this Lisa version.",
|
|
41
43
|
},
|
|
42
44
|
{
|
|
43
45
|
id: "domain-ownership",
|
|
44
46
|
question: "Are the business rules, glossary, and danger zones owned and written down (agent-ready domain phase wiki pages)?",
|
|
45
|
-
skipReason: "Domain-ownership evidence sources from agent-ready's danger-zone wiki pages, read by RRR-4 (#1856); no readiness probe is wired in this Lisa version.",
|
|
46
47
|
},
|
|
47
48
|
{
|
|
48
49
|
id: "execution-proof",
|
|
@@ -51,7 +52,6 @@ const READINESS_DIMENSIONS = [
|
|
|
51
52
|
{
|
|
52
53
|
id: "feedback-guardrails",
|
|
53
54
|
question: "Does a failing loop produce a named outcome and a runbook (automation-runbook-contract, observability-audit)?",
|
|
54
|
-
skipReason: "Feedback/guardrails evidence is assessed by RRR-4 (#1856); no readiness probe is wired in this Lisa version.",
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
id: "dependencies-supply-chain",
|
|
@@ -184,11 +184,14 @@ export function formatReadinessHeadline(verdict, dimensions) {
|
|
|
184
184
|
* to its producer. Execution/proof and proportionality are wired to #1742's
|
|
185
185
|
* shared journey runner (RRR-6, #1858); delivery/authority is wired to the
|
|
186
186
|
* offline workflow producers assessing ship blockers B2 and B3, context/routing
|
|
187
|
-
* to the documentation cross-check assessing B6,
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
187
|
+
* to the documentation cross-check assessing B6, dependencies/supply-chain to
|
|
188
|
+
* the manifest and audit-gate producer assessing B5, domain-ownership to the
|
|
189
|
+
* silent-data-loss producer assessing B1, feedback/guardrails to the
|
|
190
|
+
* gate-and-recovery producer assessing B4, and capabilities/tools to a producer
|
|
191
|
+
* whose only honest answer is a reasoned SKIP, because tool reachability needs a
|
|
192
|
+
* live probe (#1896). A dimension with no producer would fall through to a
|
|
193
|
+
* stated-reason SKIP rather than a blank one (#1898), so the report never
|
|
194
|
+
* presents "never looked" as "nothing to report".
|
|
192
195
|
* @param targetPath - Project path to assess
|
|
193
196
|
* @returns The eight per-dimension records, in fixed order
|
|
194
197
|
*/
|
|
@@ -232,6 +235,9 @@ const DIMENSION_PRODUCERS = {
|
|
|
232
235
|
[EXECUTION_PROOF_DIMENSION_ID]: async (targetPath) => await assessExecutionProofDimension(targetPath),
|
|
233
236
|
[PROPORTIONALITY_DIMENSION_ID]: async (targetPath) => await assessProportionalityDimension(targetPath),
|
|
234
237
|
[DELIVERY_AUTHORITY_DIMENSION_ID]: async (targetPath) => await assessDeliveryAuthorityDimension(targetPath),
|
|
238
|
+
[CAPABILITIES_TOOLS_DIMENSION_ID]: async (targetPath) => await assessCapabilitiesToolsDimension(targetPath),
|
|
239
|
+
[DOMAIN_OWNERSHIP_DIMENSION_ID]: async (targetPath) => await assessDomainOwnershipDimension(targetPath),
|
|
240
|
+
[FEEDBACK_GUARDRAILS_DIMENSION_ID]: async (targetPath) => await assessFeedbackGuardrailsDimension(targetPath),
|
|
235
241
|
};
|
|
236
242
|
/**
|
|
237
243
|
* Build the stated-reason SKIP a dimension without a wired producer renders
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor-readiness.js","sourceRoot":"","sources":["../../src/cli/doctor-readiness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC,OAAO,EACL,eAAe,GAIhB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,GACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,sCAAsC,EACtC,sCAAsC,GACvC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,8BAA8B,GAC/B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,8EAA8E;AAC9E,yEAAyE;AACzE,wCAAwC;AACxC,OAAO,EACL,iCAAiC,EACjC,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AAWxC,gEAAgE;AAChE,MAAM,+BAA+B,GAAG,sBAAsB,CAAC;AAE/D,qEAAqE;AACrE,MAAM,6BAA6B,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;AAE3E;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"doctor-readiness.js","sourceRoot":"","sources":["../../src/cli/doctor-readiness.ts"],"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ClC,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,GAAG,CAAC,UAAU;gBACd,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,SAAS,CAAC,CACjB,CAAC,WAAW,EAAE,CAAC;IAChB,MAAM,KAAK,GAAG,GAAG,CAAC,iBAAiB,IAAI,GAAG,CAAC,WAAW,IAAI,SAAS,CAAC;IACpE,MAAM,OAAO,GAAG,GAAG,CAAC,mBAAmB,IAAI,GAAG,CAAC,aAAa,IAAI,SAAS,CAAC;IAC1E,OAAO,GAAG,IAAI,IAAI,KAAK,IAAI,OAAO,EAAE,CAAC;AACvC,CAAC"}
|
|
@@ -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,CAsgEpE,CAAC;AAEL,4EAA4E;AAC5E,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,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,CAsgEpE,CAAC;AAEL,4EAA4E;AAC5E,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAynMjE,CAAC;AAEL,sFAAsF;AACtF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAk6I/D,CAAC"}
|
|
@@ -6252,13 +6252,17 @@ export const UPSTREAM_SURFACE_MANIFEST = Object.freeze({
|
|
|
6252
6252
|
"src/cli/doctor-monitor-thresholds.ts": true,
|
|
6253
6253
|
"src/cli/doctor-readiness-audit-allowlist.ts": true,
|
|
6254
6254
|
"src/cli/doctor-readiness-blockers.ts": true,
|
|
6255
|
+
"src/cli/doctor-readiness-capabilities.ts": true,
|
|
6255
6256
|
"src/cli/doctor-readiness-context-claims.ts": true,
|
|
6256
6257
|
"src/cli/doctor-readiness-context-mechanisms.ts": true,
|
|
6257
6258
|
"src/cli/doctor-readiness-context.ts": true,
|
|
6258
6259
|
"src/cli/doctor-readiness-credentials.ts": true,
|
|
6259
6260
|
"src/cli/doctor-readiness-delivery.ts": true,
|
|
6261
|
+
"src/cli/doctor-readiness-domain.ts": true,
|
|
6262
|
+
"src/cli/doctor-readiness-guardrails.ts": true,
|
|
6260
6263
|
"src/cli/doctor-readiness-journey-freshness.ts": true,
|
|
6261
6264
|
"src/cli/doctor-readiness-journey.ts": true,
|
|
6265
|
+
"src/cli/doctor-readiness-operations.ts": true,
|
|
6262
6266
|
"src/cli/doctor-readiness-release-path.ts": true,
|
|
6263
6267
|
"src/cli/doctor-readiness-shared.ts": true,
|
|
6264
6268
|
"src/cli/doctor-readiness-supply-chain-scan.ts": true,
|
|
@@ -6573,11 +6577,17 @@ export const UPSTREAM_SURFACE_MANIFEST = Object.freeze({
|
|
|
6573
6577
|
"tests/unit/cli/doctor-kane.test.ts": true,
|
|
6574
6578
|
"tests/unit/cli/doctor-monitor-thresholds.test.ts": true,
|
|
6575
6579
|
"tests/unit/cli/doctor-readiness-blockers.test.ts": true,
|
|
6580
|
+
"tests/unit/cli/doctor-readiness-capabilities.test.ts": true,
|
|
6576
6581
|
"tests/unit/cli/doctor-readiness-context-precision.test.ts": true,
|
|
6577
6582
|
"tests/unit/cli/doctor-readiness-context.test.ts": true,
|
|
6578
6583
|
"tests/unit/cli/doctor-readiness-delivery-artifact.test.ts": true,
|
|
6579
6584
|
"tests/unit/cli/doctor-readiness-delivery-triggers.test.ts": true,
|
|
6580
6585
|
"tests/unit/cli/doctor-readiness-delivery.test.ts": true,
|
|
6586
|
+
"tests/unit/cli/doctor-readiness-domain-ephemeral.test.ts": true,
|
|
6587
|
+
"tests/unit/cli/doctor-readiness-domain-negatives.test.ts": true,
|
|
6588
|
+
"tests/unit/cli/doctor-readiness-domain.test.ts": true,
|
|
6589
|
+
"tests/unit/cli/doctor-readiness-guardrails-ephemeral.test.ts": true,
|
|
6590
|
+
"tests/unit/cli/doctor-readiness-guardrails.test.ts": true,
|
|
6581
6591
|
"tests/unit/cli/doctor-readiness-journey.test.ts": true,
|
|
6582
6592
|
"tests/unit/cli/doctor-readiness-supply-chain-exceptions.test.ts": true,
|
|
6583
6593
|
"tests/unit/cli/doctor-readiness-supply-chain-precision.test.ts": true,
|