@dsh-triage/probe 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +28 -2
- package/dist/exec.d.ts +485 -0
- package/dist/exec.d.ts.map +1 -0
- package/dist/exec.js +1281 -0
- package/dist/exec.js.map +1 -0
- package/dist/host.d.ts +544 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +986 -0
- package/dist/host.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/plan.d.ts +109 -0
- package/dist/plan.d.ts.map +1 -0
- package/dist/plan.js +246 -0
- package/dist/plan.js.map +1 -0
- package/dist/profile-copy.d.ts +82 -0
- package/dist/profile-copy.d.ts.map +1 -0
- package/dist/profile-copy.js +142 -0
- package/dist/profile-copy.js.map +1 -0
- package/dist/render.d.ts +108 -0
- package/dist/render.d.ts.map +1 -0
- package/dist/render.js +382 -0
- package/dist/render.js.map +1 -0
- package/package.json +30 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 DSH-Addition contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @dsh-triage/probe
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Isolated probe planning for dsh-triage.
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { buildProbePlan } from '@dsh-triage/probe'
|
|
7
|
+
|
|
8
|
+
const plan = buildProbePlan({
|
|
9
|
+
candidate: 'dsh-cost-meter',
|
|
10
|
+
realDshHome: 'C:/Users/me/.dsh',
|
|
11
|
+
workRoot: 'C:/Temp/dsh-triage-probe',
|
|
12
|
+
})
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
A plan is pure data: steps (`argv`, `env`, `cwd`), assertions, and warnings. Sandbox naming is `sha256(candidate)[0..8]`, so the same candidate always maps to the same sandbox.
|
|
16
|
+
|
|
17
|
+
## Hard invariant
|
|
18
|
+
|
|
19
|
+
The sandbox `DSH_HOME` must never equal the real one, nor live inside it. `validateProbePlan` enforces this and `buildProbePlan` refuses to produce an invalid plan.
|
|
20
|
+
|
|
21
|
+
## Status
|
|
22
|
+
|
|
23
|
+
M0–M1 ship the planner only. The executor (`execute.ts`) lands in M3 and must:
|
|
24
|
+
|
|
25
|
+
- require an explicit `--execute`;
|
|
26
|
+
- always run the `cleanup` step;
|
|
27
|
+
- record `boot / http / client-rendered / inventory-active / namespace-diff` (HTTP 200 alone is not proof — see `audit/blind_spots.json` BS-03).
|
|
28
|
+
|
|
29
|
+
MIT.
|
package/dist/exec.d.ts
ADDED
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Probe executor (M3 / T-301): run a plan, then judge what actually happened.
|
|
3
|
+
*
|
|
4
|
+
* WHY THE EXECUTOR IS SPLIT FROM THE JUDGE: the runner is I/O (install, boot, http,
|
|
5
|
+
* cleanup) and the judge is a pure function over the observed facts. Everything a
|
|
6
|
+
* reviewer would want to argue about — "is a `null` phase a pass?", "does an HTTP 200
|
|
7
|
+
* mean the UI works?" — lives in {@link judgeProbe}, which the tests can drive with
|
|
8
|
+
* hand-written facts and no sandbox at all.
|
|
9
|
+
*
|
|
10
|
+
* CONTRACT (docs/specs/M3-probe.md):
|
|
11
|
+
* - `cleanup` always runs, even when an earlier step threw;
|
|
12
|
+
* - the candidate row must be identified by module name and must be unique — 0 rows and
|
|
13
|
+
* ≥2 rows are different verdicts, and neither is rounded to "fine";
|
|
14
|
+
* - assertions this layer cannot measure (`namespace-diff`) are reported as `unmeasured`,
|
|
15
|
+
* never omitted and never `passed`; `client-rendered` is measured since R15, and stays
|
|
16
|
+
* `unmeasured` only when the machine has no browser (T-302);
|
|
17
|
+
* - `go` means "installed + booted + served + row active (+ page mounted)". It does NOT
|
|
18
|
+
* mean "works", and it is never a security statement.
|
|
19
|
+
*/
|
|
20
|
+
import type { Conclusion, Confidence, EnvFingerprint, Evidence, Reason, Remediation, Verdict } from '@dsh-triage/core';
|
|
21
|
+
import type { InstallDiagnosis } from './host.js';
|
|
22
|
+
import type { BootSegments } from './host.js';
|
|
23
|
+
import type { SampleReplacement } from './host.js';
|
|
24
|
+
import type { NodeLayout } from './host.js';
|
|
25
|
+
import type { ProbePlan } from './plan.js';
|
|
26
|
+
import type { RenderCheck } from './render.js';
|
|
27
|
+
export type ProbeStepId = 'runtime' | 'profile' | 'install' | 'boot' | 'http' | 'render' | 'inventory' | 'cleanup';
|
|
28
|
+
export type ProbeStepStatus = 'passed' | 'failed' | 'skipped';
|
|
29
|
+
export interface ProbeStepRun {
|
|
30
|
+
readonly id: ProbeStepId;
|
|
31
|
+
readonly status: ProbeStepStatus;
|
|
32
|
+
readonly ms: number;
|
|
33
|
+
/** Redacted, human-readable reason for the status. `null` on a clean pass. */
|
|
34
|
+
readonly detail: string | null;
|
|
35
|
+
readonly exitCode: number | null;
|
|
36
|
+
}
|
|
37
|
+
export interface ProbeCandidateRow {
|
|
38
|
+
readonly entryId: string;
|
|
39
|
+
readonly moduleName: string;
|
|
40
|
+
readonly phase: string | null;
|
|
41
|
+
}
|
|
42
|
+
export interface ProbeSampleView {
|
|
43
|
+
readonly transport: string | null;
|
|
44
|
+
readonly entries: number;
|
|
45
|
+
readonly waitMs: number | null;
|
|
46
|
+
/** Set when the hook wrote an error payload instead of a snapshot. */
|
|
47
|
+
readonly error: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Machine-readable reason the hook could not read the tree (`inactive-context`,
|
|
50
|
+
* `projection-missing`, `other`). `null` when the reading succeeded.
|
|
51
|
+
*/
|
|
52
|
+
readonly errorCode: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the hook saw the tree stop moving before it sampled.
|
|
55
|
+
*
|
|
56
|
+
* `false` and `null` (older payloads) both mean "this reading cannot support `blocked`":
|
|
57
|
+
* a row that is still `pending` is not a row that failed (R17 / BS-25).
|
|
58
|
+
*/
|
|
59
|
+
readonly settled: boolean | null;
|
|
60
|
+
/** Attempts the hook made (1 = first read worked). */
|
|
61
|
+
readonly attempts: number | null;
|
|
62
|
+
/** Which apply wrote this sample; >1 means Cordis re-applied the plugin (R17). */
|
|
63
|
+
readonly applies: number | null;
|
|
64
|
+
readonly candidateRows: readonly ProbeCandidateRow[];
|
|
65
|
+
/** Probe rows the hook excluded from scoring (its own instrument). */
|
|
66
|
+
readonly excluded: readonly string[];
|
|
67
|
+
/**
|
|
68
|
+
* T-312: the hook's first, not-yet-settled write.
|
|
69
|
+
*
|
|
70
|
+
* `null` for payloads written before the field existed. A run that ended on a provisional
|
|
71
|
+
* sample can only ever be `unknown` (its `settled` is `false`), and the artifact has to say
|
|
72
|
+
* whether the final sample ever arrived.
|
|
73
|
+
*/
|
|
74
|
+
readonly provisional: boolean | null;
|
|
75
|
+
}
|
|
76
|
+
export interface ProbeTimings {
|
|
77
|
+
readonly installMs: number | null;
|
|
78
|
+
/** Spawn → the FIRST sample (T-312). This is the number the 20s budget judges. */
|
|
79
|
+
readonly bootToSampleMs: number | null;
|
|
80
|
+
/**
|
|
81
|
+
* Spawn → the FINAL sample (T-312). Equal to {@link bootToSampleMs} when the hook wrote once.
|
|
82
|
+
*
|
|
83
|
+
* WHY BOTH: the budget has to mean "the user got an answer this fast", and with two-phase
|
|
84
|
+
* sampling the first answer is provisional. Publishing only one of the two would let a
|
|
85
|
+
* reader conclude either "we are fast" or "we waited 24s" without seeing the other half.
|
|
86
|
+
*/
|
|
87
|
+
readonly bootToFinalSampleMs: number | null;
|
|
88
|
+
readonly httpMs: number | null;
|
|
89
|
+
/** Client-render segment (T-302). Never part of the 20s boot→sample budget. */
|
|
90
|
+
readonly renderMs: number | null;
|
|
91
|
+
readonly cleanupMs: number | null;
|
|
92
|
+
/**
|
|
93
|
+
* Where the boot step's wall time went (T-314). `null` when the boot step never ran.
|
|
94
|
+
*
|
|
95
|
+
* WHY IT SITS NEXT TO THE BUDGET: `bootToSampleMs` is judged; `boot step wall time` is what a
|
|
96
|
+
* user actually waits for. R21 published both and could explain neither gap, so the segments
|
|
97
|
+
* are recorded here where a reader can compare them without opening the host layer.
|
|
98
|
+
*/
|
|
99
|
+
readonly bootSegments: BootSegments | null;
|
|
100
|
+
}
|
|
101
|
+
export interface ProbeCleanupResult {
|
|
102
|
+
readonly removed: boolean;
|
|
103
|
+
readonly portClosed: boolean;
|
|
104
|
+
readonly detail: string;
|
|
105
|
+
}
|
|
106
|
+
/** One `link:`/`file:` dependency of the copied profile that points at nothing (T-304 / F40). */
|
|
107
|
+
export interface ProbeDanglingLink {
|
|
108
|
+
readonly name: string;
|
|
109
|
+
readonly spec: string;
|
|
110
|
+
readonly target: string;
|
|
111
|
+
}
|
|
112
|
+
/** What the profile-copy step observed; published verbatim so the shape of the copy survives. */
|
|
113
|
+
export interface ProfilePrepareOutcome {
|
|
114
|
+
readonly copied: readonly string[];
|
|
115
|
+
readonly missing: readonly string[];
|
|
116
|
+
/**
|
|
117
|
+
* `dsh plugin --profile <p> install` on the copy; `null` when it was not attempted.
|
|
118
|
+
*
|
|
119
|
+
* `code` is the package manager's own error code (T-310 shape). It matters here because
|
|
120
|
+
* `ERR_PNPM_IGNORED_BUILDS` is a *policy* refusal: the packages installed, their build
|
|
121
|
+
* scripts did not run (R19 F35 / measured again for the copy in R21). Treating that as
|
|
122
|
+
* "the profile is unusable" would report `unknown` for every real profile that has a
|
|
123
|
+
* native dependency.
|
|
124
|
+
*/
|
|
125
|
+
readonly install: {
|
|
126
|
+
readonly exitCode: number | null;
|
|
127
|
+
readonly detail: string;
|
|
128
|
+
readonly code?: string | null;
|
|
129
|
+
} | null;
|
|
130
|
+
readonly danglingLinks: readonly ProbeDanglingLink[];
|
|
131
|
+
/** Which build-script policy the sandbox used (T-304); see {@link ProbeProfileCopy.pnpmPolicy}. */
|
|
132
|
+
readonly pnpmPolicy?: 'source' | 'sandbox';
|
|
133
|
+
}
|
|
134
|
+
/** The copy facts as the run records them, tagged with where the declarations came from. */
|
|
135
|
+
export interface ProbeProfileCopy extends ProfilePrepareOutcome {
|
|
136
|
+
readonly origin: string;
|
|
137
|
+
/** The copy's own dependencies installed, but the package manager refused their build scripts. */
|
|
138
|
+
readonly buildRefused?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Where the sandbox's build-script policy came from: `source` (the copied profile's own
|
|
141
|
+
* `pnpm-workspace.yaml`) or `sandbox` (this tool wrote `strictDepBuilds: false`).
|
|
142
|
+
*/
|
|
143
|
+
readonly pnpmPolicy?: 'source' | 'sandbox';
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Readiness facts, as measured while the Host was still alive (T-306 / R17).
|
|
147
|
+
*
|
|
148
|
+
* `outcome` and `waited_ms` are observations: the window may end `timeout` for a settled
|
|
149
|
+
* tree (a real `blocked`) or for an unsettled one (a measurement failure). Which one it is
|
|
150
|
+
* is decided in {@link judgeProbe}, not here.
|
|
151
|
+
*/
|
|
152
|
+
export interface ProbeReadiness {
|
|
153
|
+
readonly source: 'host-url' | 'plan-port';
|
|
154
|
+
readonly port: number;
|
|
155
|
+
readonly outcome: 'served' | 'timeout';
|
|
156
|
+
readonly waited_ms: number;
|
|
157
|
+
readonly window_ms: number;
|
|
158
|
+
readonly url_seen: boolean;
|
|
159
|
+
}
|
|
160
|
+
export interface ProbeRun {
|
|
161
|
+
readonly candidate: {
|
|
162
|
+
readonly spec: string;
|
|
163
|
+
readonly package: string;
|
|
164
|
+
};
|
|
165
|
+
readonly dshMain: string;
|
|
166
|
+
readonly sandboxHome: string;
|
|
167
|
+
/** `template` or `copy:<name>` — the composition this measurement belongs to (T-304). */
|
|
168
|
+
readonly profileOrigin: string;
|
|
169
|
+
/** The real profile the declarations were copied from; `null` for a template profile. */
|
|
170
|
+
readonly profileSourceDir: string | null;
|
|
171
|
+
readonly port: number;
|
|
172
|
+
readonly runtimeVersion: string | null;
|
|
173
|
+
readonly steps: readonly ProbeStepRun[];
|
|
174
|
+
readonly timings: ProbeTimings;
|
|
175
|
+
readonly sample: ProbeSampleView | null;
|
|
176
|
+
/**
|
|
177
|
+
* What the sample loop did about the replacement window (ADR-0008 E).
|
|
178
|
+
*
|
|
179
|
+
* `null` when the boot step never ran (a fake dependency that does not report it, or an
|
|
180
|
+
* earlier step aborted). A run that could not be judged should read `waited: false` with
|
|
181
|
+
* `policy: 'error-only'` — "we did not buy another window for a settled:false sample".
|
|
182
|
+
*/
|
|
183
|
+
readonly sampleReplacement: SampleReplacement | null;
|
|
184
|
+
readonly http: {
|
|
185
|
+
readonly status: number | null;
|
|
186
|
+
readonly detail: string;
|
|
187
|
+
} | null;
|
|
188
|
+
/** Where the readiness port came from (T-306); `null` when readiness was not requested. */
|
|
189
|
+
readonly readiness: ProbeReadiness | null;
|
|
190
|
+
/** Client-render observation (T-302); `null` when it did not run. */
|
|
191
|
+
readonly render: RenderCheck | null;
|
|
192
|
+
/** Why the render check did not run; `null` when it ran. */
|
|
193
|
+
readonly renderSkipped: string | null;
|
|
194
|
+
/**
|
|
195
|
+
* Did the Host print its own URL? `false` with `sample === null` is a Host that never came
|
|
196
|
+
* up (a real `blocked`); `true` is a Host that is serving while our instrument wrote
|
|
197
|
+
* nothing (a measurement failure, R17).
|
|
198
|
+
*/
|
|
199
|
+
readonly urlPrinted: boolean;
|
|
200
|
+
/** First log line (token redacted), kept so a "no sample" artifact can explain itself. */
|
|
201
|
+
readonly firstLine: string | null;
|
|
202
|
+
/** stderr tail on a no-sample boot (token redacted): the launcher's own reason. */
|
|
203
|
+
readonly errorTail: string | null;
|
|
204
|
+
/** Did the launcher declare `startup failed`? Then the composition never came up. */
|
|
205
|
+
readonly startupFailed: boolean;
|
|
206
|
+
/** Ports the Host could not bind; if ours is among them the failure is the probe's. */
|
|
207
|
+
readonly bindFailedPorts: readonly number[];
|
|
208
|
+
/**
|
|
209
|
+
* Our own scratch preparation failed, so the candidate was never given a chance (R37).
|
|
210
|
+
*
|
|
211
|
+
* WHY IT IS A FIELD: without it, the judge's only branch for "no sample, no URL, no startup
|
|
212
|
+
* failure" was `probe.boot-timeout` → `blocked`. Measured cost: one candidate was reported
|
|
213
|
+
* blocked because Windows held a handle on the probe's temp directory.
|
|
214
|
+
*/
|
|
215
|
+
readonly bootSetupError: string | null;
|
|
216
|
+
/** Our scratch directory survived removal; a leak of OUR files, never a candidate fact. */
|
|
217
|
+
readonly bootScratchCleanupError: string | null;
|
|
218
|
+
/**
|
|
219
|
+
* The package manager's own reason for a failed install (T-310).
|
|
220
|
+
*
|
|
221
|
+
* Separate from `steps[].detail` because a reason is evidence, not prose: the judge
|
|
222
|
+
* branches on `code`, and the artifact publishes `key_line` verbatim.
|
|
223
|
+
*/
|
|
224
|
+
readonly installDiagnosis: InstallDiagnosis | null;
|
|
225
|
+
/** Did the package manager report sending an authorization header? (`null` = not reported) */
|
|
226
|
+
readonly installAuthUsed: boolean | null;
|
|
227
|
+
/** Packages the candidate's install left unbuilt (R21); empty = the output named none. */
|
|
228
|
+
readonly installIgnoredPackages: readonly string[];
|
|
229
|
+
/**
|
|
230
|
+
* `true` when a build-script refusal was about the COPIED PROFILE's own dependencies rather
|
|
231
|
+
* than the candidate (T-304). It is a warning, not a block: the candidate was added, and
|
|
232
|
+
* blaming it for a profile it did not write would be the wrong verdict.
|
|
233
|
+
*/
|
|
234
|
+
readonly installBuildRefusedProfileOnly: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* The pnpm layout the sandbox actually ended up with (T-315 residual, R30).
|
|
237
|
+
*
|
|
238
|
+
* WHY THIS EXISTS: R26 proved `nodeLinker: hoisted` in a copied source does not break row
|
|
239
|
+
* recognition, but the artifact did not record the layout — so the claim was "this shape is not
|
|
240
|
+
* misjudged", not "pnpm really switched". Recording `.pnpm` and the flat top level turns that
|
|
241
|
+
* into a fact you can re-read. `null` = not read (older deps fake, or unreadable dir).
|
|
242
|
+
*/
|
|
243
|
+
readonly nodeLayout: NodeLayout | null;
|
|
244
|
+
/**
|
|
245
|
+
* Did the candidate end up in the profile's `dsh.profile.bundles`? `null` = could not read.
|
|
246
|
+
*
|
|
247
|
+
* This is the difference between "added to the composition" and "just a dependency": the
|
|
248
|
+
* launcher registers the bundle only after a successful package-manager run (R21).
|
|
249
|
+
*/
|
|
250
|
+
readonly candidateRegistered: boolean | null;
|
|
251
|
+
/**
|
|
252
|
+
* The copied profile's own facts (T-304); `null` when the probe used a template profile.
|
|
253
|
+
*
|
|
254
|
+
* WHY IT IS IN THE RUN AND NOT ONLY A STEP DETAIL: the artifact has to answer "which
|
|
255
|
+
* composition was this measured in?", and a prose detail cannot be re-read by a script.
|
|
256
|
+
*/
|
|
257
|
+
readonly profileCopy: ProbeProfileCopy | null;
|
|
258
|
+
readonly cleanup: ProbeCleanupResult;
|
|
259
|
+
readonly abortedAt: ProbeStepId | null;
|
|
260
|
+
}
|
|
261
|
+
export interface ProbeTimeouts {
|
|
262
|
+
readonly installMs: number;
|
|
263
|
+
readonly bootMs: number;
|
|
264
|
+
readonly httpMs: number;
|
|
265
|
+
readonly cleanupMs: number;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Install gets its own budget: a registry install is network-bound and cannot be held to
|
|
269
|
+
* the 20s boot budget. `docs/specs/M3-probe.md` §4 keeps the two numbers apart on purpose.
|
|
270
|
+
*/
|
|
271
|
+
export declare const DEFAULT_PROBE_TIMEOUTS: ProbeTimeouts;
|
|
272
|
+
export interface RuntimeReadInput {
|
|
273
|
+
readonly dshMain: string;
|
|
274
|
+
readonly timeoutMs: number;
|
|
275
|
+
}
|
|
276
|
+
export interface InstallInput {
|
|
277
|
+
readonly dshMain: string;
|
|
278
|
+
readonly dshHome: string;
|
|
279
|
+
readonly profile: string;
|
|
280
|
+
readonly candidate: string;
|
|
281
|
+
readonly timeoutMs: number;
|
|
282
|
+
}
|
|
283
|
+
export interface BootInput {
|
|
284
|
+
readonly plan: ProbePlan;
|
|
285
|
+
readonly dshMain: string;
|
|
286
|
+
readonly timeoutMs: number;
|
|
287
|
+
}
|
|
288
|
+
/** Input for the profile-copy step (T-304); only called when the plan names a source profile. */
|
|
289
|
+
export interface ProfilePrepareInput {
|
|
290
|
+
readonly plan: ProbePlan;
|
|
291
|
+
readonly dshMain: string;
|
|
292
|
+
readonly timeoutMs: number;
|
|
293
|
+
}
|
|
294
|
+
export interface HttpInput {
|
|
295
|
+
readonly port: number;
|
|
296
|
+
readonly timeoutMs: number;
|
|
297
|
+
}
|
|
298
|
+
export interface CleanupInput {
|
|
299
|
+
readonly dshHome: string;
|
|
300
|
+
readonly port: number;
|
|
301
|
+
/**
|
|
302
|
+
* Ports the Host was actually seen on. T-306 reads the URL the Host printed, which can
|
|
303
|
+
* differ from `--port`; cleanup must prove *both* are closed, not just the planned one.
|
|
304
|
+
*/
|
|
305
|
+
readonly extraPorts?: readonly number[];
|
|
306
|
+
readonly timeoutMs: number;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Every side effect the executor needs. The CLI supplies the real implementations; the
|
|
310
|
+
* tests supply fakes, so timeouts, cleanup-on-failure and the "no sample" path are all
|
|
311
|
+
* testable offline.
|
|
312
|
+
*/
|
|
313
|
+
export interface ProbeExecDeps {
|
|
314
|
+
now(): number;
|
|
315
|
+
readRuntimeVersion(input: RuntimeReadInput): Promise<{
|
|
316
|
+
version: string | null;
|
|
317
|
+
detail: string;
|
|
318
|
+
}>;
|
|
319
|
+
install(input: InstallInput): Promise<{
|
|
320
|
+
exitCode: number | null;
|
|
321
|
+
detail: string;
|
|
322
|
+
endpoints?: readonly string[];
|
|
323
|
+
/** T-310: what the package manager said. Absent means "not reported", never "none said". */
|
|
324
|
+
diagnosis?: InstallDiagnosis;
|
|
325
|
+
/** R20: whether pnpm reported sending an authorization header. */
|
|
326
|
+
authUsed?: boolean;
|
|
327
|
+
/** R21: packages installed without their build scripts (empty = not reported). */
|
|
328
|
+
ignoredPackages?: readonly string[];
|
|
329
|
+
}>;
|
|
330
|
+
/**
|
|
331
|
+
* `http` is the readiness measured *before* the Host was killed. It is optional so a
|
|
332
|
+
* fake can omit it; when present, the executor records it instead of probing a port
|
|
333
|
+
* that no longer has a listener behind it.
|
|
334
|
+
*/
|
|
335
|
+
bootAndSample(input: BootInput): Promise<{
|
|
336
|
+
sample: unknown | null;
|
|
337
|
+
seconds: number;
|
|
338
|
+
/** T-312: spawn → the FINAL sample; absent means "same as `seconds`". */
|
|
339
|
+
finalSeconds?: number;
|
|
340
|
+
detail: string;
|
|
341
|
+
http?: {
|
|
342
|
+
status: number | null;
|
|
343
|
+
detail: string;
|
|
344
|
+
} | null;
|
|
345
|
+
/** T-306: where the readiness port came from. Absent means "not reported". */
|
|
346
|
+
readiness?: ProbeReadiness | null;
|
|
347
|
+
/** T-302: the render observation, when a browser was available. */
|
|
348
|
+
render?: RenderCheck | null;
|
|
349
|
+
/** T-302: why the render check did not run (published verbatim). */
|
|
350
|
+
renderSkipped?: string | null;
|
|
351
|
+
/** R17: did the launcher print its URL (i.e. is the Host demonstrably up)? */
|
|
352
|
+
urlPrinted?: boolean;
|
|
353
|
+
/** R17: first log line, already token-redacted by the Host layer. */
|
|
354
|
+
firstLine?: string | null;
|
|
355
|
+
/** R17: stderr tail on a no-sample boot, already token-redacted. */
|
|
356
|
+
errorTail?: string | null;
|
|
357
|
+
/** R17: the launcher declared startup failure (no sample will follow). */
|
|
358
|
+
startupFailed?: boolean;
|
|
359
|
+
/** R17: ports the Host could not bind (evidence that the failure is ours, not the plugin's). */
|
|
360
|
+
bindFailedPorts?: readonly number[];
|
|
361
|
+
/** T-314: where the boot step's wall time went. Absent means "not reported". */
|
|
362
|
+
segments?: BootSegments;
|
|
363
|
+
/** ADR-0008 E: what the sample loop did about the replacement window. */
|
|
364
|
+
replacement?: SampleReplacement;
|
|
365
|
+
/** R37: the probe could not prepare its own scratch files (nothing about the candidate ran). */
|
|
366
|
+
setupError?: string | null;
|
|
367
|
+
/** R37: our scratch directory survived its own removal. */
|
|
368
|
+
scratchCleanupError?: string | null;
|
|
369
|
+
}>;
|
|
370
|
+
probeHttp(input: HttpInput): Promise<{
|
|
371
|
+
status: number | null;
|
|
372
|
+
detail: string;
|
|
373
|
+
}>;
|
|
374
|
+
/**
|
|
375
|
+
* The bundles a profile declares right now (`dsh.profile.bundles`).
|
|
376
|
+
*
|
|
377
|
+
* WHY THE EXECUTOR NEEDS THIS (T-304 / R21): `dsh plugin add` writes the dependency first and
|
|
378
|
+
* registers the bundle only when pnpm exits 0. Measured: with a build-script refusal the
|
|
379
|
+
* dependency is in `package.json` but `bundles` is unchanged, so the candidate never mounts
|
|
380
|
+
* and a naive "install exited 1, continue anyway" would produce `row-missing` — a `blocked`
|
|
381
|
+
* verdict about a package the composition never saw. `null` means "could not read".
|
|
382
|
+
*/
|
|
383
|
+
profileBundles?(input: {
|
|
384
|
+
readonly profileDir: string;
|
|
385
|
+
}): readonly string[] | null;
|
|
386
|
+
/**
|
|
387
|
+
* Read the sandbox's pnpm layout (T-315 residual): `.pnpm` present = isolated, flat = hoisted.
|
|
388
|
+
*
|
|
389
|
+
* Optional so a pure fake does not have to answer it; `null` means "not read", which the
|
|
390
|
+
* artifact publishes instead of guessing.
|
|
391
|
+
*/
|
|
392
|
+
readNodeLayout?(input: {
|
|
393
|
+
readonly dir: string;
|
|
394
|
+
}): NodeLayout | null;
|
|
395
|
+
/**
|
|
396
|
+
* Copy the plan's source profile into the sandbox and install its dependencies (T-304).
|
|
397
|
+
*
|
|
398
|
+
* Optional because a template-profile probe never needs it; a plan that names a source
|
|
399
|
+
* profile without a copier fails the step instead of silently measuring an empty profile.
|
|
400
|
+
*/
|
|
401
|
+
prepareProfile?(input: ProfilePrepareInput): Promise<ProfilePrepareOutcome>;
|
|
402
|
+
cleanup(input: CleanupInput): Promise<ProbeCleanupResult>;
|
|
403
|
+
}
|
|
404
|
+
export interface ExecuteProbeInput {
|
|
405
|
+
readonly plan: ProbePlan;
|
|
406
|
+
readonly dshMain: string;
|
|
407
|
+
/** Package name the candidate installs as; the row is matched by this module name. */
|
|
408
|
+
readonly candidatePackage: string;
|
|
409
|
+
readonly timeouts?: Partial<ProbeTimeouts>;
|
|
410
|
+
/** Skip the install step (used to re-probe an already prepared sandbox). */
|
|
411
|
+
readonly skipInstall?: boolean;
|
|
412
|
+
/**
|
|
413
|
+
* Skip the HTTP readiness step. A profile that does not serve a web surface must not be
|
|
414
|
+
* accused of being unreachable, so the caller turns the step off and the artifact
|
|
415
|
+
* reports `http-served: unmeasured` instead of a failure.
|
|
416
|
+
*/
|
|
417
|
+
readonly skipHttp?: boolean;
|
|
418
|
+
}
|
|
419
|
+
export declare function executeProbe(input: ExecuteProbeInput, deps: ProbeExecDeps): Promise<ProbeRun>;
|
|
420
|
+
/**
|
|
421
|
+
* Turn the hook's payload into the only thing the judge needs.
|
|
422
|
+
*
|
|
423
|
+
* The hook can legitimately write `{ error }`; that is a failed measurement, not zero
|
|
424
|
+
* rows. Anything unparseable must surface as an error string rather than be skipped.
|
|
425
|
+
*/
|
|
426
|
+
export declare function readSample(payload: unknown, candidatePackage: string, sandboxHome: string): ProbeSampleView;
|
|
427
|
+
/**
|
|
428
|
+
* `@scope/pkg/sub/path` and `file:///…/node_modules/pkg/x.js` both have to reduce to the
|
|
429
|
+
* package name, because the inventory reports whatever the loader resolved.
|
|
430
|
+
*
|
|
431
|
+
* A `file:` URL with no `node_modules/` segment (a linked or vendored plugin) has no
|
|
432
|
+
* derivable package name; this returns `''` instead of inventing one, and
|
|
433
|
+
* {@link isCandidateModule} decides the match with the path evidence it does have.
|
|
434
|
+
*/
|
|
435
|
+
export declare function modulePackageName(moduleName: string): string;
|
|
436
|
+
/**
|
|
437
|
+
* Does this runtime row belong to the candidate?
|
|
438
|
+
*
|
|
439
|
+
* Exact package name first; then the path segment, so a `link:`-installed candidate (the
|
|
440
|
+
* shape our own fixtures use) is still identified. Both matches are recorded as *the*
|
|
441
|
+
* candidate row, and two rows still produce `unknown` — the heuristic widens what can be
|
|
442
|
+
* recognised, never what can be concluded.
|
|
443
|
+
*/
|
|
444
|
+
export declare function isCandidateModule(moduleName: string, candidatePackage: string): boolean;
|
|
445
|
+
export type ProbeAssertionStatus = 'passed' | 'failed' | 'unmeasured';
|
|
446
|
+
export interface ProbeAssertionResult {
|
|
447
|
+
readonly id: string;
|
|
448
|
+
readonly status: ProbeAssertionStatus;
|
|
449
|
+
readonly detail: string | null;
|
|
450
|
+
}
|
|
451
|
+
export interface ProbeJudgement {
|
|
452
|
+
readonly conclusion: Conclusion;
|
|
453
|
+
readonly confidence: Confidence;
|
|
454
|
+
readonly reasons: readonly Reason[];
|
|
455
|
+
readonly evidence: readonly Evidence[];
|
|
456
|
+
readonly remediation: readonly Remediation[];
|
|
457
|
+
readonly missingEvidence: readonly string[];
|
|
458
|
+
readonly assertions: readonly ProbeAssertionResult[];
|
|
459
|
+
}
|
|
460
|
+
export interface JudgeProbeInput {
|
|
461
|
+
readonly run: ProbeRun;
|
|
462
|
+
readonly at: string;
|
|
463
|
+
/** Declared dsh range of the candidate, when known; a mismatch downgrades to `unknown`. */
|
|
464
|
+
readonly declaredRange?: string | null;
|
|
465
|
+
}
|
|
466
|
+
export type MeasurementState = 'valid' | 'unsettled' | 'unreadable';
|
|
467
|
+
/**
|
|
468
|
+
* What can this reading support? (R17 / BS-25)
|
|
469
|
+
*
|
|
470
|
+
* `settled: null` (older payloads without the field) is treated as usable: the probe cannot
|
|
471
|
+
* retroactively fail a sample it produced before the field existed, and the hook always
|
|
472
|
+
* writes it now.
|
|
473
|
+
*/
|
|
474
|
+
export declare function measurementState(sample: ProbeSampleView | null): MeasurementState;
|
|
475
|
+
export declare function judgeProbe(input: JudgeProbeInput): ProbeJudgement;
|
|
476
|
+
/** The six assertions of the contract; the ones we cannot measure stay visible. */
|
|
477
|
+
export declare function probeAssertions(run: ProbeRun): readonly ProbeAssertionResult[];
|
|
478
|
+
/** Build the contract-shaped verdict around a judgement. */
|
|
479
|
+
export declare function probeVerdict(input: {
|
|
480
|
+
readonly run: ProbeRun;
|
|
481
|
+
readonly judgement: ProbeJudgement;
|
|
482
|
+
readonly env: EnvFingerprint;
|
|
483
|
+
readonly at: string;
|
|
484
|
+
}): Verdict;
|
|
485
|
+
//# sourceMappingURL=exec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exec.d.ts","sourceRoot":"","sources":["../src/exec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,cAAc,EACd,QAAQ,EACR,MAAM,EACN,WAAW,EACX,OAAO,EACR,MAAM,kBAAk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