Repository navigation
Expand file tree
/
Copy pathinstall-check.test.mjs
More file actions
1668 lines (1533 loc) · 83.9 KB
/
Copy pathinstall-check.test.mjs
File metadata and controls
1668 lines (1533 loc) · 83.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Unit tests for the post-publish install gate.
//
// Zero dependencies and no network: `node:test` + `node:assert` only, matching the rest of this
// repo. The gate's I/O is injected, so the retry ladder, the propagation taxonomy and the allowance
// are all driven here against fakes. That matters more than usual for this file. The dominant defect
// class in this org's release pipeline is a step that has NEVER ONCE EXECUTED: the docs dispatch was
// guarded on a secret that did not exist, so its guard was false on every release ever run, and the
// one-character bug inside it sat undiscovered for the life of the step. A gate whose branches are
// never taken is not a gate, so every branch below is taken by a test.
//
// The three registry fixtures are transcribed from the LIVE registry on 2026-08-04, not invented:
// `npm view @cosyte/cli@0.0.1 --json`, `@cosyte/transform@0.0.5`, `@cosyte/synth@0.0.6`.
import test from "node:test";
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
import {
allSteps,
conditionsOf,
decomment,
effectivePermissions,
NPM_SECRET_REF,
optsBackInAfterFailure,
parseWorkflow,
readWorkflow,
STEP_CONDITION_LINE,
workflowPermissions,
} from "./workflow-reader.mjs";
import {
isRegistrySpecifier,
findNonRegistrySpecifiers,
consumerDependencyNames,
parseAllowance,
entryPointProbes,
binTargets,
classify,
staleAllowanceEntries,
dependencyStatus,
packumentListsVersion,
fetchVersionManifest,
tarballServed,
renderAnnotation,
renderSummary,
parseArgs,
withFetchTimeout,
numericOption,
VERDICTS,
cleanRoomEnv,
probeChildEnv,
PROBE_ENV_PASSTHROUGH,
probeEntryPoints,
installIntoCleanRoom,
runCheck,
} from "../scripts/install-check.mjs";
// ── Fixtures, transcribed from the live registry ────────────────────────────────────────────────
const CLI_0_0_1 = {
name: "@cosyte/cli",
version: "0.0.1",
dependencies: {
"@cosyte/hl7": "file:vendor/cosyte-hl7-0.0.0.tgz",
"@cosyte/fhir": "file:vendor/cosyte-fhir-0.0.0.tgz",
"@cosyte/transform": "file:vendor/cosyte-transform-0.0.0.tgz",
"@cosyte/terminology": "file:vendor/cosyte-terminology-0.0.1.tgz",
},
optionalDependencies: {
"@cosyte/x12": "file:vendor/cosyte-x12-0.0.1.tgz",
"@cosyte/astm": "file:vendor/cosyte-astm-0.0.1.tgz",
"@modelcontextprotocol/sdk": "1.29.0",
},
bin: { cosyte: "dist/bin/cosyte.mjs" },
exports: { ".": { import: { default: "./dist/index.mjs" }, require: { default: "./dist/index.cjs" } } },
dist: { tarball: "https://registry.npmjs.org/@cosyte/cli/-/cli-0.0.1.tgz" },
};
const CLI_0_0_1_CLEAN_SPECIFIERS = {
name: "@cosyte/cli",
version: "0.0.1",
dependencies: Object.fromEntries(
["hl7", "fhir", "transform", "terminology", "x12", "astm", "ccda", "mllp", "dicom", "ncpdp"].map(
(n) => [`@cosyte/${n}`, "^0.0.1"],
),
),
exports: { ".": { import: { default: "./dist/index.mjs" } } },
dist: { tarball: "https://registry.npmjs.org/@cosyte/cli/-/cli-0.0.1.tgz" },
};
const TRANSFORM_0_0_5 = {
name: "@cosyte/transform",
version: "0.0.5",
dependencies: {},
peerDependencies: { "@cosyte/fhir": ">=0.0.0", "@cosyte/hl7": ">=0.0.0" },
exports: { ".": { import: { default: "./dist/index.mjs" }, require: { default: "./dist/index.cjs" } } },
dist: { tarball: "https://registry.npmjs.org/@cosyte/transform/-/transform-0.0.5.tgz" },
};
const SYNTH_0_0_6 = {
name: "@cosyte/synth",
version: "0.0.6",
peerDependencies: { "@cosyte/fhir": ">=0.0.0", "@cosyte/hl7": ">=0.0.0", "@cosyte/deid": ">=0.0.0" },
// Every peer is marked optional, and synth STILL fails ERESOLVE against the live registry.
peerDependenciesMeta: {
"@cosyte/fhir": { optional: true },
"@cosyte/hl7": { optional: true },
"@cosyte/deid": { optional: true },
},
exports: { ".": { import: { default: "./dist/index.mjs" }, require: { default: "./dist/index.cjs" } } },
dist: { tarball: "https://registry.npmjs.org/@cosyte/synth/-/synth-0.0.6.tgz" },
};
const HL7_0_0_7 = {
name: "@cosyte/hl7",
version: "0.0.7",
dependencies: {},
exports: { ".": { import: { default: "./dist/index.mjs" }, require: { default: "./dist/index.cjs" } } },
dist: { tarball: "https://registry.npmjs.org/@cosyte/hl7/-/hl7-0.0.7.tgz" },
};
// ── Specifier classification ────────────────────────────────────────────────────────────────────
test("a semver range, a pin, a tag and a wildcard are registry specifiers", () => {
for (const spec of ["^0.0.7", ">=0.0.0", "1.29.0", "latest", "*", "0.0.1-alpha.1", "~1.2 || 2.x"]) {
assert.equal(isRegistrySpecifier(spec), true, spec);
}
});
test("every non-registry protocol is refused, including ones no blacklist would have listed", () => {
for (const spec of [
"file:vendor/cosyte-fhir-0.0.0.tgz",
"link:../hl7",
"portal:../hl7",
"workspace:*",
"workspace:^",
"git+ssh://git@github.com/cosyte/hl7.git",
"git+https://github.com/cosyte/hl7.git",
"https://example.com/hl7.tgz",
"http://example.com/hl7.tgz",
"catalog:default",
"patch:@cosyte/hl7@1.0.0#./p.patch",
]) {
assert.equal(isRegistrySpecifier(spec), false, spec);
}
});
test("the protocol-less GitHub shorthand is refused, which a colon-only rule would have missed", () => {
assert.equal(isRegistrySpecifier("cosyte/hl7"), false);
assert.equal(isRegistrySpecifier("cosyte/hl7#v1.0.0"), false);
});
test("an npm: alias is a registry specifier", () => {
assert.equal(isRegistrySpecifier("npm:@cosyte/hl7@^0.0.7"), true);
});
test("empty and non-string specifiers are refused rather than thrown on", () => {
assert.equal(isRegistrySpecifier(""), false);
assert.equal(isRegistrySpecifier(" "), false);
assert.equal(isRegistrySpecifier(undefined), false);
assert.equal(isRegistrySpecifier(null), false);
assert.equal(isRegistrySpecifier(42), false);
});
test("the real cli@0.0.1 manifest yields one finding per file: specifier, across both fields", () => {
const findings = findNonRegistrySpecifiers(CLI_0_0_1);
assert.equal(findings.length, 6);
assert.deepEqual(
findings.map((f) => f.name).sort(),
["@cosyte/astm", "@cosyte/fhir", "@cosyte/hl7", "@cosyte/terminology", "@cosyte/transform", "@cosyte/x12"],
);
// The one real registry specifier in optionalDependencies is not flagged.
assert.equal(findings.some((f) => f.name === "@modelcontextprotocol/sdk"), false);
assert.deepEqual(new Set(findings.map((f) => f.field)), new Set(["dependencies", "optionalDependencies"]));
});
test("clean manifests produce no specifier findings", () => {
assert.deepEqual(findNonRegistrySpecifiers(HL7_0_0_7), []);
assert.deepEqual(findNonRegistrySpecifiers(TRANSFORM_0_0_5), []);
assert.deepEqual(findNonRegistrySpecifiers(SYNTH_0_0_6), []);
});
test("devDependencies are deliberately not linted", () => {
const manifest = { dependencies: {}, devDependencies: { tsup: "file:../tsup" } };
assert.deepEqual(findNonRegistrySpecifiers(manifest), []);
});
test("a missing or malformed dependency block does not throw", () => {
assert.deepEqual(findNonRegistrySpecifiers({}), []);
assert.deepEqual(findNonRegistrySpecifiers({ dependencies: null }), []);
assert.deepEqual(findNonRegistrySpecifiers({ dependencies: "nonsense" }), []);
assert.deepEqual(consumerDependencyNames({}), []);
});
test("dependency names are collected across all three consumer fields, de-duplicated and sorted", () => {
assert.deepEqual(consumerDependencyNames(TRANSFORM_0_0_5), ["@cosyte/fhir", "@cosyte/hl7"]);
assert.deepEqual(consumerDependencyNames(SYNTH_0_0_6), ["@cosyte/deid", "@cosyte/fhir", "@cosyte/hl7"]);
assert.deepEqual(
consumerDependencyNames({ dependencies: { a: "1" }, peerDependencies: { a: "1", b: "2" } }),
["a", "b"],
);
});
// ── The allowance ───────────────────────────────────────────────────────────────────────────────
test("the allowance parses comma and whitespace separated lists, de-duplicating", () => {
assert.deepEqual(parseAllowance("@cosyte/fhir"), ["@cosyte/fhir"]);
assert.deepEqual(parseAllowance("@cosyte/fhir, @cosyte/web"), ["@cosyte/fhir", "@cosyte/web"]);
assert.deepEqual(parseAllowance(" @cosyte/fhir \n @cosyte/fhir "), ["@cosyte/fhir"]);
assert.deepEqual(parseAllowance(""), []);
assert.deepEqual(parseAllowance(undefined), []);
});
test("an allowance naming a package that is now published is reported stale, never as a failure", () => {
assert.deepEqual(staleAllowanceEntries(["@cosyte/fhir"], ["@cosyte/hl7", "@cosyte/fhir"]), ["@cosyte/fhir"]);
assert.deepEqual(staleAllowanceEntries(["@cosyte/fhir"], ["@cosyte/hl7"]), []);
assert.deepEqual(staleAllowanceEntries([], ["@cosyte/hl7"]), []);
});
// ── Entry points ────────────────────────────────────────────────────────────────────────────────
test("a dual ESM/CJS exports map declares both probes", () => {
assert.deepEqual(entryPointProbes(HL7_0_0_7), { esm: true, cjs: true });
});
test("an ESM-only package is never probed for require, which would be a false red", () => {
const esmOnly = { exports: { ".": { import: { default: "./dist/index.mjs" } } } };
assert.deepEqual(entryPointProbes(esmOnly), { esm: true, cjs: false });
});
test("a legacy manifest with only main falls back to a CJS probe", () => {
assert.deepEqual(entryPointProbes({ main: "./index.js" }), { esm: false, cjs: true });
assert.deepEqual(entryPointProbes({ main: "./index.js", type: "module" }), { esm: true, cjs: false });
assert.deepEqual(entryPointProbes({ module: "./index.mjs", main: "./index.cjs" }), { esm: true, cjs: true });
});
test("a manifest declaring no entry point at all is probed for neither", () => {
assert.deepEqual(entryPointProbes({}), { esm: false, cjs: false });
assert.deepEqual(entryPointProbes({ bin: { x: "./x.mjs" } }), { esm: false, cjs: false });
});
test("bin targets are normalized from both the string and object forms", () => {
assert.deepEqual(binTargets(CLI_0_0_1), ["dist/bin/cosyte.mjs"]);
assert.deepEqual(binTargets({ bin: "./cli.mjs" }), ["./cli.mjs"]);
assert.deepEqual(binTargets({ bin: { a: "./a.mjs", b: "./b.mjs" } }), ["./a.mjs", "./b.mjs"]);
assert.deepEqual(binTargets({}), []);
assert.deepEqual(binTargets({ bin: 7 }), []);
});
// ── The verdict taxonomy ────────────────────────────────────────────────────────────────────────
const facts = (over = {}) => ({
specifierFindings: [],
ownServed: true,
installOk: true,
installAttempted: true,
missingDependencies: [],
declaredAllowance: [],
entryFailures: [],
...over,
});
test("a clean install of a clean manifest passes", () => {
const r = classify(facts());
assert.equal(r.verdict, "pass");
assert.equal(r.failing, false);
});
test("cli@0.0.1's file: specifiers fail, and the allowance CANNOT excuse them", () => {
// The regression this ordering exists for: cli@0.0.1 has both file: specifiers AND a genuinely
// blocked @cosyte/fhir peer. Classified after the install, the allowance would have excused a
// package that is broken for a completely different and permanent reason.
const r = classify(
facts({
specifierFindings: findNonRegistrySpecifiers(CLI_0_0_1),
installOk: false,
missingDependencies: ["@cosyte/fhir"],
declaredAllowance: ["@cosyte/fhir"],
}),
);
assert.equal(r.verdict, "non-registry-specifier");
assert.equal(r.failing, true);
assert.match(r.reason, /file:vendor/);
});
test("a version the registry has not served yet warns, and does not fail", () => {
const r = classify(facts({ ownServed: false, installAttempted: false, installOk: false }));
assert.equal(r.verdict, "not-propagated");
assert.equal(r.failing, false);
assert.match(r.reason, /propagation lag/);
});
test("transform's blocked fhir peer is a declared, non-failing outcome", () => {
const r = classify(
facts({ installOk: false, missingDependencies: ["@cosyte/fhir"], declaredAllowance: ["@cosyte/fhir"] }),
);
assert.equal(r.verdict, "blocked-peer");
assert.equal(r.failing, false);
});
test("an UNDECLARED missing dependency fails even when a declared one is also missing", () => {
// The cry-wolf guard has to cut both ways: the allowance must not widen into "any missing peer".
const r = classify(
facts({
installOk: false,
missingDependencies: ["@cosyte/fhir", "@cosyte/newthing"],
declaredAllowance: ["@cosyte/fhir"],
}),
);
assert.equal(r.verdict, "uninstallable");
assert.equal(r.failing, true);
assert.match(r.reason, /@cosyte\/newthing/);
assert.doesNotMatch(r.reason, /@cosyte\/fhir/);
});
test("an empty allowance turns a blocked peer into a failure", () => {
const r = classify(facts({ installOk: false, missingDependencies: ["@cosyte/fhir"], declaredAllowance: [] }));
assert.equal(r.verdict, "uninstallable");
assert.equal(r.failing, true);
});
test("an install failure with nothing missing is the package's own defect", () => {
const r = classify(facts({ installOk: false, missingDependencies: [], declaredAllowance: ["@cosyte/fhir"] }));
assert.equal(r.verdict, "uninstallable");
assert.equal(r.failing, true);
assert.match(r.reason, /this package's own published tree/);
});
test("an installed package whose entry points do not load fails", () => {
const r = classify(facts({ entryFailures: ['declared bin "dist/bin/cosyte.mjs" is missing'] }));
assert.equal(r.verdict, "uninstallable");
assert.equal(r.failing, true);
});
// ── Registry oracles ────────────────────────────────────────────────────────────────────────────
const fakeFetch = (routes) => async (url, options = {}) => {
const key = `${options.method || "GET"} ${url}`;
if (!(key in routes)) throw new Error(`unrouted fetch: ${key}`);
const entry = routes[key];
if (entry instanceof Error) throw entry;
return {
status: entry.status,
json: async () => entry.body,
headers: new Map(),
};
};
test("a 404 packument means the dependency is absent", async () => {
const f = fakeFetch({ "GET https://r/@cosyte%2ffhir": { status: 404, body: null } });
assert.equal(await dependencyStatus("https://r", "@cosyte/fhir", f), "absent");
});
test("a 200 packument means the dependency is present", async () => {
const f = fakeFetch({ "GET https://r/@cosyte%2fhl7": { status: 200, body: { name: "@cosyte/hl7" } } });
assert.equal(await dependencyStatus("https://r", "@cosyte/hl7", f), "present");
});
test("a 5xx, a rate limit or a thrown fetch is UNKNOWN, never present and never absent", async () => {
// Both booleans are unsafe. "Present" eliminates the explanation for an install failure and the
// verdict silently becomes the package's own defect, which is a red; "absent" invents an excuse.
for (const status of [500, 502, 429, 403]) {
const f = fakeFetch({ "GET https://r/@cosyte%2fhl7": { status, body: null } });
assert.equal(await dependencyStatus("https://r", "@cosyte/hl7", f), "unknown", `status ${status}`);
}
const boom = fakeFetch({ "GET https://r/@cosyte%2fhl7": new Error("ECONNRESET") });
assert.equal(await dependencyStatus("https://r", "@cosyte/hl7", boom), "unknown");
});
test("the packument oracle answers yes, no and unknown, and it is not the version document", async () => {
// The object npm actually resolves a version from. It propagates independently of the version
// document, so a version doc that is live while the packument still tops out at the previous
// version is a real state, and it used to red a correct release.
const listed = fakeFetch({
"GET https://r/@cosyte%2fhl7": { status: 200, body: { versions: { "0.0.6": {}, "0.0.7": {} } } },
});
const lagging = fakeFetch({
"GET https://r/@cosyte%2fhl7": { status: 200, body: { versions: { "0.0.6": {} } } },
});
const down = fakeFetch({ "GET https://r/@cosyte%2fhl7": { status: 503, body: null } });
const garbage = fakeFetch({ "GET https://r/@cosyte%2fhl7": { status: 200, body: { versions: "nope" } } });
assert.equal(await packumentListsVersion("https://r", "@cosyte/hl7", "0.0.7", listed), "yes");
assert.equal(await packumentListsVersion("https://r", "@cosyte/hl7", "0.0.7", lagging), "no");
assert.equal(await packumentListsVersion("https://r", "@cosyte/hl7", "0.0.7", down), "unknown");
assert.equal(await packumentListsVersion("https://r", "@cosyte/hl7", "0.0.7", garbage), "unknown");
});
test("the version manifest oracle distinguishes served from not served", async () => {
const f = fakeFetch({
"GET https://r/@cosyte%2fhl7/0.0.7": { status: 200, body: HL7_0_0_7 },
"GET https://r/@cosyte%2fhl7/9.9.9": { status: 404, body: null },
});
assert.deepEqual(await fetchVersionManifest("https://r", "@cosyte/hl7", "0.0.7", f), HL7_0_0_7);
assert.equal(await fetchVersionManifest("https://r", "@cosyte/hl7", "9.9.9", f), null);
});
test("a tarball that does not answer 200 is not considered served, and a throw is not fatal", async () => {
const ok = fakeFetch({ "HEAD https://r/t.tgz": { status: 200, body: null } });
const missing = fakeFetch({ "HEAD https://r/t.tgz": { status: 404, body: null } });
const boom = fakeFetch({ "HEAD https://r/t.tgz": new Error("socket hang up") });
assert.equal(await tarballServed("https://r/t.tgz", ok), true);
assert.equal(await tarballServed("https://r/t.tgz", missing), false);
assert.equal(await tarballServed("https://r/t.tgz", boom), false);
assert.equal(await tarballServed(undefined, ok), false);
});
// ── The clean room ──────────────────────────────────────────────────────────────────────────────
test("the clean room env is anonymous, isolated, and uses two distinct config files", () => {
const env = cleanRoomEnv("/tmp/room", "https://r");
// npm aborts outright if userconfig and globalconfig are the same path.
assert.notEqual(env.npm_config_userconfig, env.npm_config_globalconfig);
assert.match(env.npm_config_cache, /^\/tmp\/room\//);
assert.equal(env.npm_config_registry, "https://r");
// An auth token would mask a package accidentally published private.
assert.equal(env.NODE_AUTH_TOKEN, "");
assert.equal(env.NPM_TOKEN, "");
});
// ── The retry ladder, end to end against fakes ──────────────────────────────────────────────────
function harness({ servedAfter = 1, installResults = [], routes = {}, manifest = HL7_0_0_7 }) {
let versionCalls = 0;
const slept = [];
const installs = [];
const ownPackument = `https://r/${manifest.name.replace("/", "%2f")}`;
const reply = (status, body) => ({ status, json: async () => body, headers: new Map() });
const fetchImpl = async (url, options = {}) => {
const method = options.method || "GET";
if (method === "HEAD") return reply(200, null);
// The version document for the package under test, gated on propagation.
if (url.endsWith(`/${manifest.version}`)) {
versionCalls += 1;
return versionCalls >= servedAfter ? reply(200, manifest) : reply(404, null);
}
// Its packument, which is a SEPARATE object and the one npm resolves from. Served in step with
// the version document unless a test overrides it via `routes`.
if (url === ownPackument && !routes[`GET ${url}`]) {
return versionCalls >= servedAfter
? reply(200, { versions: { [manifest.version]: {} } })
: reply(404, null);
}
const hit = routes[`GET ${url}`];
// A dependency packument nothing routed: present, and shaped like a real one.
return hit ? reply(hit.status, hit.body) : reply(200, { versions: {} });
};
return {
slept,
installs,
versionCalls: () => versionCalls,
opts: {
registry: "https://r",
fetchImpl,
cleanRoomFactory: async () => "/tmp/fake-room",
installer: async (args) => {
installs.push(args);
return installResults[installs.length - 1] ?? installResults.at(-1) ?? { ok: true, code: 0, output: "" };
},
entryProber: async () => ({ failures: [], probed: ["esm", "cjs"] }),
waiter: async (ms) => {
slept.push(ms);
},
},
};
}
test("a good package installs on the first attempt and never sleeps", async () => {
const h = harness({ installResults: [{ ok: true, code: 0, output: "added 1 package" }] });
const r = await runCheck({ name: "@cosyte/hl7", version: "0.0.7", attempts: 8, delayMs: 1, ...h.opts });
assert.equal(r.verdict, "pass");
assert.equal(r.failing, false);
assert.equal(h.installs.length, 1);
assert.deepEqual(h.slept, []);
});
test("a version that propagates on the third poll is installed, not reported missing", async () => {
const h = harness({ servedAfter: 3, installResults: [{ ok: true, code: 0, output: "" }] });
const r = await runCheck({ name: "@cosyte/hl7", version: "0.0.7", attempts: 8, delayMs: 1, ...h.opts });
assert.equal(r.verdict, "pass");
assert.equal(r.attemptsUsed, 3);
assert.equal(h.slept.length, 2);
});
test("a version that never propagates warns rather than failing, after the whole budget", async () => {
const h = harness({ servedAfter: 99 });
const r = await runCheck({ name: "@cosyte/hl7", version: "0.0.7", attempts: 4, delayMs: 1, ...h.opts });
assert.equal(r.verdict, "not-propagated");
assert.equal(r.failing, false);
assert.equal(h.versionCalls(), 4);
assert.equal(h.installs.length, 0);
});
test("cli@0.0.1 fails on the served manifest without burning the retry budget or installing", async () => {
const h = harness({ manifest: CLI_0_0_1 });
const r = await runCheck({
name: "@cosyte/cli",
version: "0.0.1",
attempts: 8,
delayMs: 1,
allowance: ["@cosyte/fhir"],
...h.opts,
});
assert.equal(r.verdict, "non-registry-specifier");
assert.equal(r.failing, true);
assert.equal(h.installs.length, 0, "a deterministic manifest defect must not cost an install");
assert.deepEqual(h.slept, [], "and must not cost the retry budget either");
});
test("transform's declared fhir block warns, once, without retrying", async () => {
const h = harness({
manifest: TRANSFORM_0_0_5,
installResults: [{ ok: false, code: 1, output: "npm error code E404" }],
routes: {
"GET https://r/@cosyte%2ffhir": { status: 404, body: null },
"GET https://r/@cosyte%2fhl7": { status: 200, body: {} },
},
});
const r = await runCheck({
name: "@cosyte/transform",
version: "0.0.5",
attempts: 8,
delayMs: 1,
allowance: ["@cosyte/fhir"],
...h.opts,
});
assert.equal(r.verdict, "blocked-peer");
assert.equal(r.failing, false);
assert.deepEqual(r.missingDependencies, ["@cosyte/fhir"]);
assert.equal(h.installs.length, 1, "a declared block is settled, so it must not be retried");
});
test("synth's OPTIONAL fhir peer is treated exactly like transform's required one", async () => {
// Optionality in peerDependenciesMeta does not protect the tree: measured ERESOLVE on the live
// registry. The gate must not infer installability from the optional flag.
const h = harness({
manifest: SYNTH_0_0_6,
installResults: [{ ok: false, code: 1, output: "npm error code ERESOLVE" }],
routes: {
"GET https://r/@cosyte%2ffhir": { status: 404, body: null },
"GET https://r/@cosyte%2fhl7": { status: 200, body: {} },
"GET https://r/@cosyte%2fdeid": { status: 200, body: {} },
},
});
const r = await runCheck({
name: "@cosyte/synth",
version: "0.0.6",
attempts: 8,
delayMs: 1,
allowance: ["@cosyte/fhir"],
...h.opts,
});
assert.equal(r.verdict, "blocked-peer");
assert.deepEqual(r.missingDependencies, ["@cosyte/fhir"]);
});
test("without the allowance, transform's identical failure goes red", async () => {
const h = harness({
manifest: TRANSFORM_0_0_5,
installResults: [{ ok: false, code: 1, output: "npm error code E404" }],
routes: {
"GET https://r/@cosyte%2ffhir": { status: 404, body: null },
"GET https://r/@cosyte%2fhl7": { status: 200, body: {} },
},
});
const r = await runCheck({
name: "@cosyte/transform",
version: "0.0.5",
attempts: 3,
delayMs: 1,
allowance: [],
...h.opts,
});
assert.equal(r.verdict, "uninstallable");
assert.equal(r.failing, true);
assert.equal(h.installs.length, 3, "an undeclared absence is retried, in case a sibling is propagating");
});
test("a sibling that propagates mid-wave flips a red into a pass, which is the wave guard", async () => {
// The 2026-08-02 wave published ten packages near-simultaneously. A sibling still propagating must
// not be read as a permanently missing dependency.
let fhirCalls = 0;
const h = harness({
manifest: TRANSFORM_0_0_5,
installResults: [{ ok: false, code: 1, output: "E404" }, { ok: true, code: 0, output: "added 2 packages" }],
});
const wrapped = {
...h.opts,
fetchImpl: async (url, options = {}) => {
if ((options.method || "GET") === "GET" && url.endsWith("@cosyte%2ffhir")) {
fhirCalls += 1;
return { status: fhirCalls > 1 ? 200 : 404, json: async () => ({}), headers: new Map() };
}
return h.opts.fetchImpl(url, options);
},
};
const r = await runCheck({
name: "@cosyte/transform",
version: "0.0.5",
attempts: 4,
delayMs: 1,
allowance: [],
...wrapped,
});
assert.equal(r.verdict, "pass");
assert.equal(r.failing, false);
});
test("a failing entry-point probe reds a package that installed cleanly", async () => {
const h = harness({ installResults: [{ ok: true, code: 0, output: "" }] });
const r = await runCheck({
name: "@cosyte/hl7",
version: "0.0.7",
attempts: 2,
delayMs: 1,
...h.opts,
entryProber: async () => ({ failures: ["ESM entry point failed to load: ERR_MODULE_NOT_FOUND"], probed: ["esm"] }),
});
assert.equal(r.verdict, "uninstallable");
assert.equal(r.failing, true);
});
test("a stale allowance is reported on an otherwise passing run, and does not fail it", async () => {
const h = harness({ manifest: TRANSFORM_0_0_5, installResults: [{ ok: true, code: 0, output: "" }] });
const r = await runCheck({
name: "@cosyte/transform",
version: "0.0.5",
attempts: 2,
delayMs: 1,
allowance: ["@cosyte/fhir"],
...h.opts,
});
assert.equal(r.verdict, "pass");
assert.equal(r.failing, false);
assert.deepEqual(r.staleAllowance, ["@cosyte/fhir"]);
assert.match(renderSummary(r), /allowance is stale/);
});
// ── Reporting ───────────────────────────────────────────────────────────────────────────────────
test("a failure annotates at error level and tells the reader NOT to re-run", async () => {
const r = classify(facts({ specifierFindings: findNonRegistrySpecifiers(CLI_0_0_1) }));
const line = renderAnnotation({ ...r, package: "@cosyte/cli", version: "0.0.1", attemptsUsed: 1, missingDependencies: [] });
assert.match(line, /^::error title=/);
assert.match(line, /do NOT re-run this job/);
assert.match(line, /patch release/);
assert.equal(line.includes("\n"), false, "an annotation must be a single line to render");
});
test("a pass annotates nothing at all", () => {
assert.equal(renderAnnotation({ ...classify(facts()), package: "@cosyte/hl7", version: "0.0.7" }), null);
});
test("the not-propagated warning says how to re-check by hand", () => {
const r = classify(facts({ ownServed: false, installAttempted: false, installOk: false }));
const line = renderAnnotation({ ...r, package: "@cosyte/hl7", version: "0.0.7", attemptsUsed: 8, missingDependencies: [] });
assert.match(line, /^::warning title=/);
assert.match(line, /npm view @cosyte\/hl7@0\.0\.7 version/);
});
test("the blocked-peer warning still says the package is uninstallable for consumers", () => {
const r = classify(facts({ installOk: false, missingDependencies: ["@cosyte/fhir"], declaredAllowance: ["@cosyte/fhir"] }));
const line = renderAnnotation({ ...r, package: "@cosyte/synth", version: "0.0.6", attemptsUsed: 1, missingDependencies: ["@cosyte/fhir"] });
assert.match(line, /^::warning title=/);
assert.match(line, /still uninstallable for consumers/);
});
test("no annotation or summary carries an em dash, which the release gate bans org-wide", () => {
// Assembled from its codepoint rather than written, so this file itself stays free of the
// character in every spelling the em-dash gate bans, the JavaScript escape included.
const EM_DASH = String.fromCodePoint(0x2014);
const cases = [
classify(facts({ specifierFindings: findNonRegistrySpecifiers(CLI_0_0_1) })),
classify(facts({ ownServed: false, installAttempted: false, installOk: false })),
classify(facts({ installOk: false, missingDependencies: ["@cosyte/fhir"], declaredAllowance: ["@cosyte/fhir"] })),
classify(facts()),
];
for (const c of cases) {
const result = {
...c,
package: "@cosyte/x",
version: "1.0.0",
attemptsUsed: 1,
missingDependencies: c.verdict === "blocked-peer" ? ["@cosyte/fhir"] : [],
staleAllowance: [],
trail: ["attempt 1: something happened"],
};
assert.equal((renderAnnotation(result) || "").includes(EM_DASH), false, c.verdict);
assert.equal(renderSummary(result).includes(EM_DASH), false, c.verdict);
}
});
test("the failure summary carries a runnable reproduction", () => {
const r = {
...classify(facts({ specifierFindings: findNonRegistrySpecifiers(CLI_0_0_1) })),
package: "@cosyte/cli",
version: "0.0.1",
attemptsUsed: 1,
missingDependencies: [],
staleAllowance: [],
trail: [],
};
const summary = renderSummary(r);
assert.match(summary, /npm install @cosyte\/cli@0\.0\.1/);
assert.match(summary, /Do not re-run this job/);
});
// ── CLI parsing ─────────────────────────────────────────────────────────────────────────────────
test("arguments parse, including a flag whose value is omitted", () => {
assert.deepEqual(parseArgs(["--package", "@cosyte/hl7", "--version", "0.0.7"]), {
package: "@cosyte/hl7",
version: "0.0.7",
});
assert.deepEqual(parseArgs(["--json", "--package", "x"]), { json: "true", package: "x" });
assert.deepEqual(parseArgs([]), {});
});
test("an empty allowance argument is not read as a package named the empty string", () => {
assert.deepEqual(parseAllowance(parseArgs(["--expect-unpublished-deps", "--attempts", "3"])["expect-unpublished-deps"]), ["true"]);
// ...which is why the workflow always passes a value, and why an absent flag yields [].
assert.deepEqual(parseAllowance(parseArgs(["--attempts", "3"])["expect-unpublished-deps"]), []);
});
// ── Regression tests for the defects the gate-refuter found (2026-08-04) ────────────────────────
//
// Each of these FAILED against the first implementation. They are the reason the retry rule, the
// registry oracle and the clean-room environment look the way they do.
test("REGRESSION: an install failure with NOTHING missing spends the whole budget", async () => {
// THE BLOCKER. The retry used to fire only when a dependency name was absent AND undeclared, so a
// failure with nothing missing returned `uninstallable` on attempt 1 with the budget untouched.
// "Nothing missing" is VACUOUSLY true for the six packages that declare no consumer dependencies,
// so for them ordinary propagation lag went straight to a red on a permanent release.
const h = harness({ manifest: HL7_0_0_7, installResults: [{ ok: false, code: 1, output: "E404" }] });
const r = await runCheck({ name: "@cosyte/hl7", version: "0.0.7", attempts: 5, delayMs: 1, ...h.opts });
assert.equal(h.installs.length, 5, "every attempt must be spent before condemning a permanent release");
assert.equal(h.slept.length, 4);
assert.equal(r.attemptsUsed, 5);
assert.equal(r.verdict, "uninstallable");
});
test("REGRESSION: a package with no dependencies that starts installing mid-budget passes", async () => {
// The same shape as above, with the lag resolving. This is the correct release the old code redded.
const h = harness({
manifest: HL7_0_0_7,
installResults: [
{ ok: false, code: 1, output: "E404" },
{ ok: false, code: 1, output: "E404" },
{ ok: true, code: 0, output: "added 1 package" },
],
});
const r = await runCheck({ name: "@cosyte/hl7", version: "0.0.7", attempts: 8, delayMs: 1, ...h.opts });
assert.equal(r.verdict, "pass");
assert.equal(r.failing, false);
assert.equal(h.installs.length, 3);
});
test("REGRESSION: the packument lagging behind the version document is not a defect", async () => {
// `GET /pkg/version` and `GET /pkg` are separate objects with independent propagation, and npm
// resolves from the packument. Believing the version document alone declared a live, correct
// release uninstallable. Here the version doc and tarball are live and the packument is not.
const h = harness({
manifest: HL7_0_0_7,
routes: { "GET https://r/@cosyte%2fhl7": { status: 200, body: { versions: { "0.0.6": {} } } } },
});
const r = await runCheck({ name: "@cosyte/hl7", version: "0.0.7", attempts: 3, delayMs: 1, ...h.opts });
assert.equal(r.verdict, "not-propagated");
assert.equal(r.failing, false);
assert.equal(h.installs.length, 0, "npm must not be asked to resolve a version its packument lacks");
});
test("REGRESSION: a 503 on a dependency packument is inconclusive, not a red", async () => {
// The 5xx path used to read as PRESENT, which emptied the absent set, which made `classify`
// conclude the defect was in the package's own tree. A transient registry fault turned the
// declared, expected blocked-peer warning on transform and synth into a failed release.
const h = harness({
manifest: TRANSFORM_0_0_5,
installResults: [{ ok: false, code: 1, output: "npm error code E404" }],
routes: {
"GET https://r/@cosyte%2ffhir": { status: 503, body: null },
"GET https://r/@cosyte%2fhl7": { status: 200, body: { versions: {} } },
},
});
const r = await runCheck({
name: "@cosyte/transform",
version: "0.0.5",
attempts: 2,
delayMs: 1,
allowance: ["@cosyte/fhir"],
...h.opts,
});
assert.equal(r.verdict, "inconclusive");
assert.equal(r.failing, false);
assert.deepEqual(r.unknownDependencies, ["@cosyte/fhir"]);
assert.match(renderAnnotation(r), /^::warning title=Install gate could not attribute a failure::/);
});
test("REGRESSION: an unanswered dependency cannot be excused into a pass either", async () => {
// Fail-open must not become excuse-everything: `inconclusive` reports the failure, it does not
// claim the package is fine.
const h = harness({
manifest: TRANSFORM_0_0_5,
installResults: [{ ok: false, code: 1, output: "boom" }],
routes: { "GET https://r/@cosyte%2ffhir": { status: 500, body: null } },
});
const r = await runCheck({ name: "@cosyte/transform", version: "0.0.5", attempts: 2, delayMs: 1, ...h.opts });
assert.notEqual(r.verdict, "pass");
assert.equal(r.verdict, "inconclusive");
});
test("REGRESSION: the clean room neutralizes the UPPERCASE npm config the job exports", async () => {
// `actions/setup-node` exports NPM_CONFIG_USERCONFIG job-wide, pointing at the npmrc holding
// `//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}`, and the uppercase form WINS over the
// lowercase one in both insertion orders. Setting only the lowercase name meant the probe loaded
// the job's authenticated npmrc, so "exactly what an anonymous outsider gets" was false.
const saved = { ...process.env };
try {
process.env.NPM_CONFIG_USERCONFIG = "/job/.npmrc";
process.env.NPM_CONFIG_GLOBALCONFIG = "/job/global.npmrc";
process.env.NPM_CONFIG_REGISTRY = "https://evil.example.com/";
process.env.npm_config_cache = "/job/cache";
const env = cleanRoomEnv("/tmp/room", "https://r");
for (const [key, value] of Object.entries(env)) {
if (/^npm_config_/i.test(key)) {
assert.match(value, /^(\/tmp\/room|https:\/\/r)/, `${key} escaped the clean room: ${value}`);
}
}
assert.equal(env.NPM_CONFIG_USERCONFIG, "/tmp/room/cfg/user.npmrc");
assert.equal(env.npm_config_userconfig, "/tmp/room/cfg/user.npmrc");
assert.equal(env.NPM_CONFIG_REGISTRY, "https://r");
} finally {
for (const key of Object.keys(process.env)) if (!(key in saved)) delete process.env[key];
Object.assign(process.env, saved);
}
});
test("REGRESSION: an inherited npm_config_* variable with no override is stripped, not passed through", async () => {
const saved = process.env.npm_config_legacy_peer_deps;
try {
// This one would silently make the probe install a tree npm would otherwise refuse, which is
// exactly the ERESOLVE that `@cosyte/synth` fails on.
process.env.npm_config_legacy_peer_deps = "true";
const env = cleanRoomEnv("/tmp/room", "https://r");
assert.equal(env.npm_config_legacy_peer_deps, undefined);
} finally {
if (saved === undefined) delete process.env.npm_config_legacy_peer_deps;
else process.env.npm_config_legacy_peer_deps = saved;
}
});
test("REGRESSION: the stale-allowance remedy names the input that actually exists", async () => {
// It said `expected-unpublished-deps`; the input is `expect-unpublished-deps`. This is the one
// message rendered exactly when @cosyte/fhir publishes, so a caller following it would have
// written an undefined input into a workflow_call.
const summary = renderSummary({
...classify(facts()),
package: "@cosyte/transform",
version: "0.0.5",
attemptsUsed: 1,
missingDependencies: [],
staleAllowance: ["@cosyte/fhir"],
trail: [],
});
assert.match(summary, /`expect-unpublished-deps`/);
assert.doesNotMatch(summary, /expected-unpublished-deps/);
});
test("REGRESSION: a pass does not claim entry points loaded when none were declared", async () => {
const none = classify(facts({ entryPointsProbed: [] }));
assert.equal(none.verdict, "pass");
assert.match(none.reason, /declares no entry point and no bin/);
const some = classify(facts({ entryPointsProbed: ["esm", "cjs"] }));
assert.match(some.reason, /esm, cjs/);
});
test("REGRESSION: a killed install is a retryable failure, never a verdict on its own", async () => {
// The command timeout exists because this holds a protected `release` environment. A kill must
// look like any other install failure to the ladder.
const h = harness({
manifest: HL7_0_0_7,
installResults: [
{ ok: false, code: -1, output: "timed out after 180000ms and was killed" },
{ ok: true, code: 0, output: "added 1 package" },
],
});
const r = await runCheck({ name: "@cosyte/hl7", version: "0.0.7", attempts: 4, delayMs: 1, ...h.opts });
assert.equal(r.verdict, "pass");
});
test("REGRESSION: every verdict the classifier can produce has its own annotation branch", async () => {
// The dominant defect class in this org is a branch nothing ever takes. An unhandled verdict would
// fall through to the generic "did not complete" line and misreport itself.
const produced = new Set([
classify(facts({ specifierFindings: findNonRegistrySpecifiers(CLI_0_0_1) })).verdict,
classify(facts({ ownServed: false, installAttempted: false, installOk: false })).verdict,
classify(facts({ installOk: false, missingDependencies: ["@cosyte/fhir"], declaredAllowance: ["@cosyte/fhir"] })).verdict,
classify(facts({ installOk: false, unknownDependencies: ["@cosyte/fhir"] })).verdict,
classify(facts({ installOk: false, missingDependencies: [] })).verdict,
classify(facts()).verdict,
]);
produced.add(
classify(facts({ installOk: false, deadlineExceeded: true })).verdict,
);
// Asserted against the module's own exported list rather than a literal retyped here, so the two
// cannot drift. The previous version of this test enumerated six and omitted `deadline-exceeded`,
// which meant the test whose entire job is to catch an unhandled verdict could not catch one.
assert.deepEqual([...produced].sort(), [...VERDICTS].sort());
for (const verdict of produced) {
if (verdict === "pass") continue;
const line = renderAnnotation({
verdict,
failing: verdict === "uninstallable" || verdict === "non-registry-specifier",
reason: "r",
package: "@cosyte/x",
version: "1.0.0",
attemptsUsed: 1,
missingDependencies: ["@cosyte/fhir"],
unknownDependencies: ["@cosyte/fhir"],
});
assert.doesNotMatch(line, /did not complete/, `${verdict} fell through to the catch-all`);
}
});
// ── The gate's own deadline (pass 2) ───────────────────────────────────────────────────────────
//
// The refuter measured a SINGLE `npm install` taking 211s against a dependency packument returning
// 503, because npm retries a 5xx internally. Eight attempts of that is roughly thirty minutes, which
// blows past any sane `timeout-minutes`. A step timeout is a RED RUN, so without an internal clock a
// slow registry would red a correct, permanent release through the very bound added to protect it.
test("the gate stops itself before the step's timeout, and reports rather than condemning", async () => {
let clock = 0;
const h = harness({ manifest: HL7_0_0_7, installResults: [{ ok: false, code: 1, output: "slow" }] });
const r = await runCheck({
name: "@cosyte/hl7",
version: "0.0.7",
attempts: 8,
delayMs: 1,
deadlineMs: 500,
installTimeoutMs: 180,
now: () => (clock += 100),
...h.opts,
});
assert.equal(r.verdict, "deadline-exceeded");
assert.equal(r.failing, false, "running slowly is not a defect in the published package");
assert.ok(h.installs.length < 8, "it must stop short of the attempt budget when time runs out");
});
test("an attempt is only STARTED if its whole install could finish inside the deadline", async () => {
// Checking only that the deadline has not yet passed would let a 180s install begin one second
// before it and overrun into the step timeout, which is the red being avoided.
let clock = 0;
const h = harness({ manifest: HL7_0_0_7, installResults: [{ ok: false, code: 1, output: "x" }] });
await runCheck({
name: "@cosyte/hl7",
version: "0.0.7",
attempts: 20,
delayMs: 1,
deadlineMs: 1000,
installTimeoutMs: 400,
now: () => (clock += 200),
...h.opts,
});
// The fake clock advances 200 per `now()` call and `startedAt` consumes the first, so at the top
// of attempt k the elapsed time is (k-1)*200. The guard admits an attempt only while
// elapsed + installTimeoutMs <= deadlineMs, i.e. (k-1)*200 + 400 <= 1000, i.e. k <= 4. Attempt 4
// starts at 600 and its install could run to exactly 1000, which is inside the budget; attempt 5
// would start at 800 and could run to 1200, which is not.
assert.equal(h.installs.length, 4, "the guard must admit exactly the attempts that fit");
const worstCaseFinish = (h.installs.length - 1) * 200 + 400;
assert.ok(worstCaseFinish <= 1000, `worst case finish ${worstCaseFinish} overruns the deadline`);
});
test("a deterministic specifier finding still fails even if the clock ran out", async () => {
// The manifest lint is offline and complete however little time was left, so the deadline must not
// launder a permanently broken publish into a warning.
const r = classify({
specifierFindings: findNonRegistrySpecifiers(CLI_0_0_1),
ownServed: true,
installOk: false,
installAttempted: true,
missingDependencies: [],
unknownDependencies: [],
deadlineExceeded: true,
declaredAllowance: [],
entryFailures: [],
});
assert.equal(r.verdict, "non-registry-specifier");
assert.equal(r.failing, true);
});
test("the deadline verdict has its own annotation and never says the package is broken", async () => {
const r = classify({
specifierFindings: [],
ownServed: true,
installOk: false,
installAttempted: true,
missingDependencies: [],
unknownDependencies: [],