@codyswann/lisa 6.0.0 → 6.0.2
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/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +16 -2
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +5 -5
- 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-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-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-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/scripts/check-self-dependency-pin.mjs +172 -5
- package/scripts/push-self-pin-raise.sh +79 -0
- package/scripts/raise-self-dependency-pin.mjs +166 -0
- package/scripts/two-channel-couplings.json +125 -9
- package/scripts/verify-self-pin-raise.mjs +487 -0
|
@@ -10,9 +10,12 @@
|
|
|
10
10
|
* own `name` is `@codyswann/lisa` is restricted to security pins, so the
|
|
11
11
|
* self-pin phase never runs. That exemption is right — a package should not
|
|
12
12
|
* acquire a dependency on a published copy of itself as a side effect of
|
|
13
|
-
* applying to itself — and it
|
|
14
|
-
* repository whose pin no automation
|
|
15
|
-
* the
|
|
13
|
+
* applying to itself — and it had a consequence nobody wrote down: **the one
|
|
14
|
+
* repository whose pin no automation corrected was the one that ships the
|
|
15
|
+
* automation.** The correction now lives on the release path instead:
|
|
16
|
+
* `scripts/raise-self-dependency-pin.mjs`, run by the self-pin-raise
|
|
17
|
+
* workflow's `prepare_self_pin_raise` and `push_self_pin_raise` jobs after
|
|
18
|
+
* every publish and hourly (#4951). This check is what proves those jobs did their work.
|
|
16
19
|
*
|
|
17
20
|
* The result was measured twice. #2279 (2026-08-04) moved the floor to
|
|
18
21
|
* `^2.328.0` because it was 130 releases behind. #3662 (2026-09-03) moved it
|
|
@@ -312,6 +315,118 @@ export async function checkSelfPin({
|
|
|
312
315
|
};
|
|
313
316
|
}
|
|
314
317
|
|
|
318
|
+
/**
|
|
319
|
+
* The two packument shapes a registry serves. The full document is what this
|
|
320
|
+
* check reads; the abbreviated install document is what Bun's resolver reads.
|
|
321
|
+
* They are cached separately, so one can list a release the other does not.
|
|
322
|
+
*/
|
|
323
|
+
const PACKUMENT_SHAPES = [
|
|
324
|
+
{ name: "full", accept: "application/json" },
|
|
325
|
+
{ name: "abbreviated", accept: "application/vnd.npm.install-v1+json" },
|
|
326
|
+
];
|
|
327
|
+
|
|
328
|
+
/** How many times the packument is read before the release is given up on. */
|
|
329
|
+
const LISTED_POLLS = 40;
|
|
330
|
+
|
|
331
|
+
/** Delay between packument reads: 40 polls span ten minutes. */
|
|
332
|
+
const LISTED_POLL_DELAY_MS = 15_000;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Whether one packument shape lists a version.
|
|
336
|
+
* @param {string} url - The packument URL.
|
|
337
|
+
* @param {string} accept - The shape's media type.
|
|
338
|
+
* @param {string} version - The release to look for.
|
|
339
|
+
* @param {typeof fetch} fetchImpl - Injected for tests.
|
|
340
|
+
* @returns {Promise<{listed: boolean, detail: string}>} The answer.
|
|
341
|
+
*/
|
|
342
|
+
async function shapeLists(url, accept, version, fetchImpl) {
|
|
343
|
+
try {
|
|
344
|
+
const response = await fetchImpl(url, { headers: { accept } });
|
|
345
|
+
if (!response.ok) {
|
|
346
|
+
return { listed: false, detail: `HTTP ${response.status} from ${url}` };
|
|
347
|
+
}
|
|
348
|
+
const packument = await response.json();
|
|
349
|
+
return packument?.versions?.[version] === undefined
|
|
350
|
+
? { listed: false, detail: `the packument does not list ${version} yet` }
|
|
351
|
+
: { listed: true, detail: `the packument lists ${version}` };
|
|
352
|
+
} catch (error) {
|
|
353
|
+
return { listed: false, detail: `network: ${error.message} (${url})` };
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Wait, with a bound, until both packument shapes list a release.
|
|
359
|
+
*
|
|
360
|
+
* The exact-version endpoint can serve a release before the packument lists
|
|
361
|
+
* it. Both `check:self-pin` (newest listed version) and Bun's resolver (the
|
|
362
|
+
* abbreviated packument) read the packument, so a raise proved before it lists
|
|
363
|
+
* the release would compare `^7.0.0` against 6.x and fail for a reason that is
|
|
364
|
+
* only propagation lag.
|
|
365
|
+
* @param {object} options - Version, registry, fetch seam, poll budget and sleep seam.
|
|
366
|
+
* @returns {Promise<{listed: boolean, detail: string}>} Whether both shapes list it.
|
|
367
|
+
*/
|
|
368
|
+
export async function awaitListed({
|
|
369
|
+
version,
|
|
370
|
+
registry = DEFAULT_REGISTRY,
|
|
371
|
+
fetchImpl = fetch,
|
|
372
|
+
polls = LISTED_POLLS,
|
|
373
|
+
sleep = () =>
|
|
374
|
+
new Promise(resolve => setTimeout(resolve, LISTED_POLL_DELAY_MS)),
|
|
375
|
+
}) {
|
|
376
|
+
const url = `${registry}/${SELF_PACKAGE}`;
|
|
377
|
+
const poll = async number => {
|
|
378
|
+
const answers = await Promise.all(
|
|
379
|
+
PACKUMENT_SHAPES.map(shape =>
|
|
380
|
+
shapeLists(url, shape.accept, version, fetchImpl)
|
|
381
|
+
)
|
|
382
|
+
);
|
|
383
|
+
const missing = answers.flatMap((answer, index) =>
|
|
384
|
+
answer.listed ? [] : [`${PACKUMENT_SHAPES[index].name}: ${answer.detail}`]
|
|
385
|
+
);
|
|
386
|
+
if (missing.length === 0) {
|
|
387
|
+
return { listed: true, detail: `both packument shapes list ${version}` };
|
|
388
|
+
}
|
|
389
|
+
if (number >= polls) {
|
|
390
|
+
return {
|
|
391
|
+
listed: false,
|
|
392
|
+
detail: `after ${polls} reads, ${missing.join("; ")}`,
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
await sleep();
|
|
396
|
+
return poll(number + 1);
|
|
397
|
+
};
|
|
398
|
+
return poll(1);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* The newest version the registry will actually serve, for a caller that
|
|
403
|
+
* needs a version to raise to rather than a verdict on a manifest.
|
|
404
|
+
* @param {object} options - Registry and the same seams as {@link checkSelfPin}.
|
|
405
|
+
* @returns {Promise<{version: string | null, detail: string}>} The newest installable release.
|
|
406
|
+
*/
|
|
407
|
+
export async function newestInstallableVersion({
|
|
408
|
+
registry = DEFAULT_REGISTRY,
|
|
409
|
+
fetchImpl = fetch,
|
|
410
|
+
attempts = 3,
|
|
411
|
+
sleep = () => new Promise(resolve => setTimeout(resolve, 2000)),
|
|
412
|
+
injected = {},
|
|
413
|
+
}) {
|
|
414
|
+
const { packument, detail } = await fetchPackument({
|
|
415
|
+
registry,
|
|
416
|
+
packageName: SELF_PACKAGE,
|
|
417
|
+
fetchImpl,
|
|
418
|
+
attempts,
|
|
419
|
+
sleep,
|
|
420
|
+
});
|
|
421
|
+
if (packument === null) return { version: null, detail };
|
|
422
|
+
const found = await newestInstallable({
|
|
423
|
+
candidates: publishedVersionsDescending(packument),
|
|
424
|
+
registry,
|
|
425
|
+
injected: { fetchImpl, ...injected },
|
|
426
|
+
});
|
|
427
|
+
return { version: found.version, detail: found.detail };
|
|
428
|
+
}
|
|
429
|
+
|
|
315
430
|
/** Exit code for each verdict. `unprovable` blocks: nothing was proved. */
|
|
316
431
|
const FAILING_VERDICTS = new Set(["stale", "unprovable"]);
|
|
317
432
|
|
|
@@ -349,8 +464,12 @@ function failureReport(outcome, registry) {
|
|
|
349
464
|
`❌ ${SELF_PACKAGE} is pinned at "${outcome.spec}" and ${outcome.detail}.\n` +
|
|
350
465
|
` Compared against ${registry} — NOT the session plugin cache and NOT\n` +
|
|
351
466
|
` the marketplace clone, both of which can name a different version.\n` +
|
|
352
|
-
`
|
|
353
|
-
`
|
|
467
|
+
` The release raises this pin itself: the self-pin-raise workflow's\n` +
|
|
468
|
+
` prepare_self_pin_raise job runs scripts/raise-self-dependency-pin.mjs\n` +
|
|
469
|
+
` right after the publish lands and again every hour, and\n` +
|
|
470
|
+
` push_self_pin_raise pushes the raise to main (#4951). Red here means\n` +
|
|
471
|
+
` those jobs have not landed for ${outcome.newest} yet, or the last run\n` +
|
|
472
|
+
` failed — that run is where the cause is. Rebase once it lands.\n`
|
|
354
473
|
);
|
|
355
474
|
}
|
|
356
475
|
return (
|
|
@@ -368,6 +487,12 @@ function failureReport(outcome, registry) {
|
|
|
368
487
|
*/
|
|
369
488
|
export async function main(argv, injected = {}) {
|
|
370
489
|
const registry = option(argv, "--registry", DEFAULT_REGISTRY);
|
|
490
|
+
if (argv.includes("--await-listed")) {
|
|
491
|
+
return mainAwaitListed(argv, registry, injected);
|
|
492
|
+
}
|
|
493
|
+
if (argv.includes("--newest-installable")) {
|
|
494
|
+
return mainNewestInstallable(registry, injected);
|
|
495
|
+
}
|
|
371
496
|
const manifestPath = option(argv, "--manifest", defaultManifestPath());
|
|
372
497
|
const outcome = await checkSelfPin({
|
|
373
498
|
manifest: JSON.parse(readFileSync(manifestPath, "utf8")),
|
|
@@ -387,6 +512,48 @@ export async function main(argv, injected = {}) {
|
|
|
387
512
|
return 1;
|
|
388
513
|
}
|
|
389
514
|
|
|
515
|
+
/**
|
|
516
|
+
* `--await-listed <version>`: exit 0 once both packument shapes list it.
|
|
517
|
+
* @param {string[]} argv - Arguments after the script path.
|
|
518
|
+
* @param {string} registry - The registry origin.
|
|
519
|
+
* @param {object} injected - Test seams forwarded to {@link awaitListed}.
|
|
520
|
+
* @returns {Promise<number>} Process exit code.
|
|
521
|
+
*/
|
|
522
|
+
async function mainAwaitListed(argv, registry, injected) {
|
|
523
|
+
const version = option(argv, "--await-listed", "");
|
|
524
|
+
if (!semver.valid(version) || semver.prerelease(version) !== null) {
|
|
525
|
+
process.stderr.write(
|
|
526
|
+
`❌ --await-listed needs a release version, not "${version}"\n`
|
|
527
|
+
);
|
|
528
|
+
return 1;
|
|
529
|
+
}
|
|
530
|
+
const outcome = await awaitListed({ version, registry, ...injected });
|
|
531
|
+
process.stdout.write(
|
|
532
|
+
`${VERDICT_PREFIX} ${outcome.listed ? "listed" : "not-listed"} ` +
|
|
533
|
+
`package=${SELF_PACKAGE} version=${version} — ${outcome.detail}\n`
|
|
534
|
+
);
|
|
535
|
+
return outcome.listed ? 0 : 1;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* `--newest-installable`: print only the newest installable release, so a
|
|
540
|
+
* workflow step can capture it.
|
|
541
|
+
* @param {string} registry - The registry origin.
|
|
542
|
+
* @param {object} injected - Test seams forwarded to {@link newestInstallableVersion}.
|
|
543
|
+
* @returns {Promise<number>} Process exit code: 1 when nothing was proved.
|
|
544
|
+
*/
|
|
545
|
+
async function mainNewestInstallable(registry, injected) {
|
|
546
|
+
const found = await newestInstallableVersion({ registry, ...injected });
|
|
547
|
+
if (found.version === null) {
|
|
548
|
+
process.stderr.write(
|
|
549
|
+
`❌ Could not prove which ${SELF_PACKAGE} release is newest: ${found.detail}\n`
|
|
550
|
+
);
|
|
551
|
+
return 1;
|
|
552
|
+
}
|
|
553
|
+
process.stdout.write(`${found.version}\n`);
|
|
554
|
+
return 0;
|
|
555
|
+
}
|
|
556
|
+
|
|
390
557
|
/* c8 ignore start -- CLI wiring, exercised through main() in tests */
|
|
391
558
|
if (invokedAsScript(import.meta.url)) {
|
|
392
559
|
main(process.argv.slice(2))
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
#
|
|
3
|
+
# Push the proved self-pin raise to main (CodySwannGT/lisa#4951).
|
|
4
|
+
#
|
|
5
|
+
# The self-pin-raise workflow's `push_self_pin_raise` job runs this in its
|
|
6
|
+
# final step, the only step that holds the deploy key. The raise commit is
|
|
7
|
+
# already made on top of the commit the raise was proved against (BASE_SHA).
|
|
8
|
+
#
|
|
9
|
+
# It pushes ONLY onto that exact commit: the push carries an explicit lease on
|
|
10
|
+
# refs/heads/main at BASE_SHA, so any other tip — a newer main, or one rolled
|
|
11
|
+
# back to an ancestor — is rejected; this script then fetches main and, when
|
|
12
|
+
# the tip is no longer BASE_SHA, refuses. It never rebases: a rebased raise
|
|
13
|
+
# would combine the raised dependency graph with source nobody tested it
|
|
14
|
+
# against.
|
|
15
|
+
#
|
|
16
|
+
# The refusal needs no one to act on it, but it does not rely on the commit
|
|
17
|
+
# that moved main either: a `[skip ci]` push starts no deploy run, and a later
|
|
18
|
+
# release whose publish never proves itself skips the raise. The workflow also
|
|
19
|
+
# runs hourly with no version, recomputing the raise against main as it is
|
|
20
|
+
# then, so the next scheduled run re-proves and pushes it.
|
|
21
|
+
#
|
|
22
|
+
# A push or fetch that fails while main is still BASE_SHA is transient (network,
|
|
23
|
+
# GitHub outage) and is retried a bounded number of times with a growing delay.
|
|
24
|
+
# When every attempt fails the step fails: nothing unproved is ever pushed.
|
|
25
|
+
#
|
|
26
|
+
# Usage:
|
|
27
|
+
# scripts/push-self-pin-raise.sh <remote> <base-sha> <version>
|
|
28
|
+
#
|
|
29
|
+
# Environment:
|
|
30
|
+
# SELF_PIN_PUSH_RETRY_DELAY seconds per attempt of back-off (default 5)
|
|
31
|
+
#
|
|
32
|
+
|
|
33
|
+
set -euo pipefail
|
|
34
|
+
|
|
35
|
+
if [ "$#" -ne 3 ] || [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
|
|
36
|
+
echo "usage: push-self-pin-raise.sh <remote> <base-sha> <version>" >&2
|
|
37
|
+
exit 2
|
|
38
|
+
fi
|
|
39
|
+
|
|
40
|
+
remote="$1"
|
|
41
|
+
base_sha="$2"
|
|
42
|
+
version="$3"
|
|
43
|
+
attempts=3
|
|
44
|
+
delay="${SELF_PIN_PUSH_RETRY_DELAY:-5}"
|
|
45
|
+
|
|
46
|
+
# The raise must be exactly one commit on top of the proved base, or the lease
|
|
47
|
+
# below would vouch for a commit it never inspected.
|
|
48
|
+
if [ "$(git rev-parse HEAD^ 2>/dev/null || true)" != "$base_sha" ] || [ "$(git rev-list --parents -n 1 HEAD | wc -w | tr -d ' ')" != "2" ]; then
|
|
49
|
+
echo "::error::HEAD is not a single raise commit on top of $base_sha; refusing to push." >&2
|
|
50
|
+
exit 2
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
for attempt in $(seq 1 "$attempts"); do
|
|
54
|
+
# A plain push accepts any fast-forward, including one from an ANCESTOR of
|
|
55
|
+
# BASE_SHA — so a main rolled back to an older commit would be quietly
|
|
56
|
+
# restored. The explicit lease accepts only a main that is still BASE_SHA.
|
|
57
|
+
if git -c core.hooksPath=/dev/null push --force-with-lease="refs/heads/main:$base_sha" "$remote" HEAD:refs/heads/main; then
|
|
58
|
+
echo "✅ Raised the self-pin to ^${version} on main."
|
|
59
|
+
exit 0
|
|
60
|
+
fi
|
|
61
|
+
echo "::warning::Push attempt $attempt of $attempts failed; checking whether main moved."
|
|
62
|
+
# Full refs throughout: a remote that also has a `main` tag would make the
|
|
63
|
+
# short name ambiguous, and no retry resolves an ambiguity.
|
|
64
|
+
if git fetch "$remote" refs/heads/main; then
|
|
65
|
+
fetched="$(git rev-parse FETCH_HEAD)"
|
|
66
|
+
if [ "$fetched" != "$base_sha" ]; then
|
|
67
|
+
echo "::error::main moved from $base_sha to $fetched after the raise was proved, so this raise is untested against it and nothing was pushed. The hourly run of the self-pin-raise workflow recomputes and re-proves the raise against main as it is then; a release that reaches npm in the meantime does the same sooner."
|
|
68
|
+
exit 1
|
|
69
|
+
fi
|
|
70
|
+
else
|
|
71
|
+
echo "::warning::Fetching main failed on attempt $attempt of $attempts; it is retried before anything is decided."
|
|
72
|
+
fi
|
|
73
|
+
if [ "$attempt" -lt "$attempts" ]; then
|
|
74
|
+
sleep $((attempt * delay))
|
|
75
|
+
fi
|
|
76
|
+
done
|
|
77
|
+
|
|
78
|
+
echo "::error::Could not push the self-pin raise to main after $attempts attempts; nothing was pushed."
|
|
79
|
+
exit 1
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Raise Lisa's own `@codyswann/lisa` pin when a release leaves it behind
|
|
4
|
+
* (CodySwannGT/lisa#4951).
|
|
5
|
+
*
|
|
6
|
+
* ## Why this exists beside the check
|
|
7
|
+
*
|
|
8
|
+
* `check-self-dependency-pin.mjs` (#3768) reports a self-pin that can no longer
|
|
9
|
+
* resolve the newest release, and it is wired into a required status check. On
|
|
10
|
+
* its own that turned every major release into a red required check on every
|
|
11
|
+
* open pull request until somebody raised the floor by hand — 6.0.0 did exactly
|
|
12
|
+
* that. A report whose only remedy is a person is half a control.
|
|
13
|
+
*
|
|
14
|
+
* This is the other half. The release workflow runs it right after the publish
|
|
15
|
+
* lands, with the version it just published, and pushes the result to `main`
|
|
16
|
+
* with the same deploy key the release commit itself uses. The check and this
|
|
17
|
+
* script share one definition of "stale" (`compareSpec`), so the script raises
|
|
18
|
+
* the floor in exactly the cases the check fails on and in no others: a release
|
|
19
|
+
* the declared range already admits changes nothing, which is also what keeps
|
|
20
|
+
* the bump from chasing its own releases.
|
|
21
|
+
*
|
|
22
|
+
* ## Why it rewrites the manifest itself instead of calling `bun add`
|
|
23
|
+
*
|
|
24
|
+
* `bun add` re-sorts the whole dependency section, turning a one-line pin raise
|
|
25
|
+
* into a diff that touches unrelated lines. Parsing and re-serialising with the
|
|
26
|
+
* repository's own two-space format keeps key order and changes one value.
|
|
27
|
+
* @module scripts/raise-self-dependency-pin
|
|
28
|
+
*/
|
|
29
|
+
import { readFileSync, writeFileSync } from "node:fs";
|
|
30
|
+
import path from "node:path";
|
|
31
|
+
import process from "node:process";
|
|
32
|
+
import { fileURLToPath } from "node:url";
|
|
33
|
+
|
|
34
|
+
import semver from "semver";
|
|
35
|
+
|
|
36
|
+
import {
|
|
37
|
+
compareSpec,
|
|
38
|
+
locateSelfPin,
|
|
39
|
+
SELF_PACKAGE,
|
|
40
|
+
} from "./check-self-dependency-pin.mjs";
|
|
41
|
+
import { invokedAsScript } from "./lib/invoked-as-script.mjs";
|
|
42
|
+
|
|
43
|
+
/** The line a caller greps for. */
|
|
44
|
+
const VERDICT_PREFIX = "raise-self-dependency-pin:";
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Decide what the manifest's self-pin should become for one published version.
|
|
48
|
+
* @param {Record<string, unknown>} manifest - Parsed package.json.
|
|
49
|
+
* @param {string} version - The version the release just published.
|
|
50
|
+
* @returns {{verdict: "raised" | "current" | "local-checkout" | "unprovable" | "no-pin" | "below-floor", detail: string, manifest: Record<string, unknown>}} Outcome and the manifest to write.
|
|
51
|
+
*/
|
|
52
|
+
export function raiseSelfPin(manifest, version) {
|
|
53
|
+
if (semver.valid(version) === null || semver.prerelease(version) !== null) {
|
|
54
|
+
throw new Error(
|
|
55
|
+
`"${version}" is not a published release version; refusing to pin to it`
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
const declared = locateSelfPin(manifest);
|
|
59
|
+
if (declared === null) {
|
|
60
|
+
return {
|
|
61
|
+
verdict: "no-pin",
|
|
62
|
+
detail: `this manifest declares no ${SELF_PACKAGE} dependency`,
|
|
63
|
+
manifest,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const { verdict, detail } = compareSpec(declared.spec, version);
|
|
67
|
+
if (verdict !== "stale") {
|
|
68
|
+
return { verdict, detail, manifest };
|
|
69
|
+
}
|
|
70
|
+
// `stale` means only "outside the range", and a version BELOW the floor is
|
|
71
|
+
// outside it too. The hourly run raises to the newest INSTALLABLE release,
|
|
72
|
+
// which skips one whose tarball 404s — so a pin of ^7.1.0 whose 7.1.0 is
|
|
73
|
+
// unservable would otherwise be "raised" to ^7.0.5. A raise never lowers.
|
|
74
|
+
const floor = semver.minVersion(declared.spec);
|
|
75
|
+
if (floor !== null && semver.lt(version, floor)) {
|
|
76
|
+
return {
|
|
77
|
+
verdict: "below-floor",
|
|
78
|
+
detail:
|
|
79
|
+
`${version} is below the declared floor ${floor.version} of ${declared.spec}; ` +
|
|
80
|
+
`a raise never lowers the pin, so nothing was written. The floor release itself ` +
|
|
81
|
+
`is not installable, which is what to fix`,
|
|
82
|
+
manifest,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
const raised = `^${version}`;
|
|
86
|
+
return {
|
|
87
|
+
verdict: "raised",
|
|
88
|
+
detail: `${declared.section}["${SELF_PACKAGE}"] ${declared.spec} → ${raised}`,
|
|
89
|
+
manifest: {
|
|
90
|
+
...manifest,
|
|
91
|
+
[declared.section]: {
|
|
92
|
+
...manifest[declared.section],
|
|
93
|
+
[SELF_PACKAGE]: raised,
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Return an optional CLI option.
|
|
101
|
+
* @param {string[]} argv - Arguments after the script path.
|
|
102
|
+
* @param {string} name - Option name, `--` included.
|
|
103
|
+
* @returns {string | undefined} The option's value.
|
|
104
|
+
*/
|
|
105
|
+
function option(argv, name) {
|
|
106
|
+
const index = argv.indexOf(name);
|
|
107
|
+
const value = index === -1 ? undefined : argv[index + 1];
|
|
108
|
+
return value === undefined || value.startsWith("--") ? undefined : value;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The default manifest: this repository's own package.json.
|
|
113
|
+
* @returns {string} Absolute path.
|
|
114
|
+
*/
|
|
115
|
+
function defaultManifestPath() {
|
|
116
|
+
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
117
|
+
return path.join(here, "..", "package.json");
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Run the raise for a caller that is a workflow step.
|
|
122
|
+
*
|
|
123
|
+
* Exit 0 for `raised`, `current`, `local-checkout` and `no-pin` — the same
|
|
124
|
+
* verdicts the check passes — and the workflow commits only on `raised`. Exit 1
|
|
125
|
+
* on `unprovable` (a spec that is not a valid range) and on `below-floor` (the
|
|
126
|
+
* newest installable release is older than the declared floor), because the
|
|
127
|
+
* check fails on both too and leaving either alone silently would hand the
|
|
128
|
+
* next pull request a red check with no run that says why.
|
|
129
|
+
* @param {string[]} argv - Arguments after the script path.
|
|
130
|
+
* @returns {number} Process exit code.
|
|
131
|
+
*/
|
|
132
|
+
export function main(argv) {
|
|
133
|
+
const version = option(argv, "--version");
|
|
134
|
+
if (version === undefined) {
|
|
135
|
+
process.stderr.write("❌ --version <published version> is required\n");
|
|
136
|
+
return 1;
|
|
137
|
+
}
|
|
138
|
+
const manifestPath = option(argv, "--manifest") ?? defaultManifestPath();
|
|
139
|
+
const outcome = raiseSelfPin(
|
|
140
|
+
JSON.parse(readFileSync(manifestPath, "utf8")),
|
|
141
|
+
version
|
|
142
|
+
);
|
|
143
|
+
if (outcome.verdict === "raised") {
|
|
144
|
+
writeFileSync(
|
|
145
|
+
manifestPath,
|
|
146
|
+
`${JSON.stringify(outcome.manifest, null, 2)}\n`
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
process.stdout.write(
|
|
150
|
+
`${VERDICT_PREFIX} ${outcome.verdict} package=${SELF_PACKAGE} published=${version} — ${outcome.detail}\n`
|
|
151
|
+
);
|
|
152
|
+
return outcome.verdict === "unprovable" || outcome.verdict === "below-floor"
|
|
153
|
+
? 1
|
|
154
|
+
: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* c8 ignore start -- CLI wiring, exercised through main() in tests */
|
|
158
|
+
if (invokedAsScript(import.meta.url)) {
|
|
159
|
+
try {
|
|
160
|
+
process.exitCode = main(process.argv.slice(2));
|
|
161
|
+
} catch (error) {
|
|
162
|
+
process.stderr.write(`❌ ${error.message}\n`);
|
|
163
|
+
process.exitCode = 1;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/* c8 ignore stop */
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
"quality.yml::scripts/verify-host-name-target-scope.mjs": "Lisa-source-only regression proof. Two steps execute this driver, each behind `github.repository == 'CodySwannGT/lisa'`: the enforcing `🔒 Enforce host-name target scope` step in `test_unit` (also gated on `steps.gate_run.outcome == 'success'`), and the named host-name target-scope step in the Lisa-only `test_named_regression_specs` job, whose job-level `if:` carries the same repository guard. Every host caller skips both without reading this path. Ratified because the caller-tree read is unreachable outside this repository; no host dependency is introduced.",
|
|
6
6
|
"publish-to-npm.yml::scripts/check-npm-install-compat.mjs": "Lisa-source-only release gate. The step requires `github.repository == 'CodySwannGT/lisa'` before it can start, and the run body repeats that exact repository guard (failing loudly, never passing vacuously) before reading this path. Host callers reaching publish-to-npm.yml at @main skip the step without reading their own tree. The script installs Lisa's own packed release tarball under npm 10.9.9 and 11.6.2 (CodySwannGT/lisa#4871). Ratified because the caller-tree read is unreachable outside this repository, not because an undelivered host dependency is tolerated.",
|
|
7
7
|
"quality.yml::scripts/integration-shard-build.mjs": "Lisa-source-only shared build for integration-test shards (#4599). The `test_integration_shard_build` job carries `github.repository == 'CodySwannGT/lisa'` in its job-level `if:`, so every host caller skips the job, and the step that runs this script, without reading this path from their own tree. Host legs build for themselves through lisa-test-run. Ratified because the caller-tree read is unreachable outside this repository; no host dependency is introduced.",
|
|
8
|
-
"quality.yml::scripts/plan-integration-shards.mjs": "Lisa-source-only timing planner for integration-test shards (#4599). The `⏱️ Assign files to shards from recorded timings` step and the checkout before it are gated on `github.repository == 'CodySwannGT/lisa'`, so every host caller skips the step without reading this path, and its legs take Vitest's own `--shard` slice. Ratified because the caller-tree read is unreachable outside this repository; no host dependency is introduced."
|
|
8
|
+
"quality.yml::scripts/plan-integration-shards.mjs": "Lisa-source-only timing planner for integration-test shards (#4599). The `⏱️ Assign files to shards from recorded timings` step and the checkout before it are gated on `github.repository == 'CodySwannGT/lisa'`, so every host caller skips the step without reading this path, and its legs take Vitest's own `--shard` slice. Ratified because the caller-tree read is unreachable outside this repository; no host dependency is introduced.",
|
|
9
|
+
"self-pin-raise.yml::scripts/check-self-dependency-pin.mjs": "Lisa-only check of Lisa's own self-pin; here it decides the raise target and waits for npm to list it. Both jobs of self-pin-raise.yml carry `github.repository == 'CodySwannGT/lisa'` in their job-level `if:` (the push job repeats it rather than inheriting it from prepare), so a host repository that calls this reusable workflow at @main skips both jobs without reading this path from its own tree. The workflow raises Lisa's own @codyswann/lisa self-pin (CodySwannGT/lisa#4951) and has no meaning in a host. Ratified because the caller-tree read is unreachable outside this repository; no host dependency is introduced.",
|
|
10
|
+
"self-pin-raise.yml::scripts/push-self-pin-raise.sh": "Lisa-only push of the proved raise with the deploy key. Both jobs of self-pin-raise.yml carry `github.repository == 'CodySwannGT/lisa'` in their job-level `if:` (the push job repeats it rather than inheriting it from prepare), so a host repository that calls this reusable workflow at @main skips both jobs without reading this path from its own tree. The workflow raises Lisa's own @codyswann/lisa self-pin (CodySwannGT/lisa#4951) and has no meaning in a host. Ratified because the caller-tree read is unreachable outside this repository; no host dependency is introduced.",
|
|
11
|
+
"self-pin-raise.yml::scripts/raise-self-dependency-pin.mjs": "Lisa-only rewrite of Lisa's own self-pin. Both jobs of self-pin-raise.yml carry `github.repository == 'CodySwannGT/lisa'` in their job-level `if:` (the push job repeats it rather than inheriting it from prepare), so a host repository that calls this reusable workflow at @main skips both jobs without reading this path from its own tree. The workflow raises Lisa's own @codyswann/lisa self-pin (CodySwannGT/lisa#4951) and has no meaning in a host. Ratified because the caller-tree read is unreachable outside this repository; no host dependency is introduced.",
|
|
12
|
+
"self-pin-raise.yml::scripts/verify-self-pin-raise.mjs": "Lisa-only proof that the raise changes only the pin and a regenerated lockfile. Both jobs of self-pin-raise.yml carry `github.repository == 'CodySwannGT/lisa'` in their job-level `if:` (the push job repeats it rather than inheriting it from prepare), so a host repository that calls this reusable workflow at @main skips both jobs without reading this path from its own tree. The workflow raises Lisa's own @codyswann/lisa self-pin (CodySwannGT/lisa#4951) and has no meaning in a host. Ratified because the caller-tree read is unreachable outside this repository; no host dependency is introduced."
|
|
9
13
|
},
|
|
10
14
|
"staleness": {
|
|
11
15
|
"npm-updater.yml::scripts/lisa-npm-updater.mjs": {
|
|
@@ -139,30 +143,50 @@
|
|
|
139
143
|
"quality-rails.yml::scripts/lisa-rspec-select.mjs": {
|
|
140
144
|
"decision": "not-needed",
|
|
141
145
|
"reason": "A merger, not a judge (CodySwannGT/lisa#4612). The aggregate calls only its `merge-maps` subcommand, which unions the shard legs' crystalball maps into the one artifact pushes download; it posts no check context and the RSpec verdict comes from the legs and the aggregate's own steps. A superseded copy that lacks the subcommand fails the step loudly, and one that merges differently changes only which specs a later push selects, which the pre-push selector bounds with its full-suite fallbacks. A version handshake would gate an advisory map on a version comparison and buy no cover."
|
|
146
|
+
},
|
|
147
|
+
"self-pin-raise.yml::scripts/check-self-dependency-pin.mjs": {
|
|
148
|
+
"decision": "not-needed",
|
|
149
|
+
"reason": "Unreachable outside this repository under the job-level repository guard ratified above. The script runs from the same Lisa checkout the workflow runs from, so no independently versioned consumer copy participates in this coupling."
|
|
150
|
+
},
|
|
151
|
+
"self-pin-raise.yml::scripts/push-self-pin-raise.sh": {
|
|
152
|
+
"decision": "not-needed",
|
|
153
|
+
"reason": "Unreachable outside this repository under the job-level repository guard ratified above. The script runs from the same Lisa checkout the workflow runs from, so no independently versioned consumer copy participates in this coupling."
|
|
154
|
+
},
|
|
155
|
+
"self-pin-raise.yml::scripts/raise-self-dependency-pin.mjs": {
|
|
156
|
+
"decision": "not-needed",
|
|
157
|
+
"reason": "Unreachable outside this repository under the job-level repository guard ratified above. The script runs from the same Lisa checkout the workflow runs from, so no independently versioned consumer copy participates in this coupling."
|
|
158
|
+
},
|
|
159
|
+
"self-pin-raise.yml::scripts/verify-self-pin-raise.mjs": {
|
|
160
|
+
"decision": "not-needed",
|
|
161
|
+
"reason": "Unreachable outside this repository under the job-level repository guard ratified above. The script runs from the same Lisa checkout the workflow runs from, so no independently versioned consumer copy participates in this coupling."
|
|
162
|
+
},
|
|
163
|
+
"self-pin-raise.yml::scripts/check-npm-publish-landed.mjs": {
|
|
164
|
+
"decision": "not-needed",
|
|
165
|
+
"reason": "Lisa delivers this prover to hosts on the apply channel, but this workflow never reaches a host's copy: both jobs require `github.repository == 'CodySwannGT/lisa'`, so the only copy read here is Lisa's own, from the same checkout as the workflow. The host-facing exposure of this prover is recorded once, on `publish-to-npm.yml::scripts/check-npm-publish-landed.mjs`, and is not restated here."
|
|
142
166
|
}
|
|
143
167
|
},
|
|
144
168
|
"inspected": {
|
|
145
|
-
"workflows":
|
|
146
|
-
"steps":
|
|
147
|
-
"couplings":
|
|
169
|
+
"workflows": 27,
|
|
170
|
+
"steps": 890,
|
|
171
|
+
"couplings": 50,
|
|
148
172
|
"inventory": 245
|
|
149
173
|
},
|
|
150
174
|
"counts": {
|
|
151
175
|
"package-backed": 11,
|
|
152
|
-
"apply-lagged":
|
|
176
|
+
"apply-lagged": 29,
|
|
153
177
|
"never-delivered": 0,
|
|
154
|
-
"undelivered":
|
|
178
|
+
"undelivered": 10
|
|
155
179
|
},
|
|
156
180
|
"detectionCounts": {
|
|
157
181
|
"version-handshake": 4,
|
|
158
182
|
"capability-probe": 0,
|
|
159
183
|
"existence-only": 7,
|
|
160
|
-
"no-probe":
|
|
161
|
-
"unchecked":
|
|
184
|
+
"no-probe": 18,
|
|
185
|
+
"unchecked": 10
|
|
162
186
|
},
|
|
163
187
|
"decisionCounts": {
|
|
164
188
|
"handshake": 4,
|
|
165
|
-
"not-needed":
|
|
189
|
+
"not-needed": 24,
|
|
166
190
|
"warranted": 11
|
|
167
191
|
},
|
|
168
192
|
"couplings": [
|
|
@@ -900,6 +924,98 @@
|
|
|
900
924
|
"reason": "Unreachable outside this repository under the exact step-level repository guard ratified above. The driver and its cases run from the same Lisa checkout as the hooks under test. No consuming caller reads its installed or caller-tree copy through this workflow step, so no independently versioned consumer copy participates in this coupling.",
|
|
901
925
|
"lanes": [],
|
|
902
926
|
"detail": "`quality.yml` is delivered at `@main`, so this step is live in every consumer on their next run. It reads `scripts/verify-host-name-target-scope.mjs` from the CALLER's tree, and Lisa ships no such path in any delivery lane — no apply and no bump ever produces it. Either the consumer authors it, or whatever the step does where the path is missing runs instead — and that branch is the part this scan does not read. No existence test guards the read, which is ALL this scan examined of the step's control flow: it did not read anything that could absorb the failure. An absent path most likely fails the job loudly — the better of the two failures, because it is visible — but that is inferred from the missing guard, NOT MEASURED. The step's text carries none of the tokens this scan can see (`else-branch`, `exit-zero`, `exit-nonzero`, `error-annotation`, `notice-annotation`, `failure-suppression`), which is a statement about those names and not about the step's behaviour. STALENESS (a separate dimension from the delivery verdict above): `unchecked`. Lisa delivers nothing at this path, so there is no artifact to ask whether it could answer a version. The staleness half is UNKNOWN here — not current, and not probe-less. Tokens found: `workflow-requests-version`. `workflow-requests-version` is workflow-scoped — it does not say THIS step asks."
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"key": "self-pin-raise.yml::scripts/check-npm-publish-landed.mjs",
|
|
930
|
+
"workflow": "self-pin-raise.yml",
|
|
931
|
+
"path": "scripts/check-npm-publish-landed.mjs",
|
|
932
|
+
"channel": "apply",
|
|
933
|
+
"verdict": "apply-lagged",
|
|
934
|
+
"remedy": "run-lisa-apply",
|
|
935
|
+
"guarded": false,
|
|
936
|
+
"handling": [
|
|
937
|
+
"else-branch"
|
|
938
|
+
],
|
|
939
|
+
"detection": "no-probe",
|
|
940
|
+
"stalenessSignals": [],
|
|
941
|
+
"decision": "not-needed",
|
|
942
|
+
"reason": "Lisa delivers this prover to hosts on the apply channel, but this workflow never reaches a host's copy: both jobs require `github.repository == 'CodySwannGT/lisa'`, so the only copy read here is Lisa's own, from the same checkout as the workflow. The host-facing exposure of this prover is recorded once, on `publish-to-npm.yml::scripts/check-npm-publish-landed.mjs`, and is not restated here.",
|
|
943
|
+
"lanes": [
|
|
944
|
+
"all/copy-overwrite"
|
|
945
|
+
],
|
|
946
|
+
"detail": "`self-pin-raise.yml` is delivered at `@main`, so this step is live in every consumer on their next run. It reads `scripts/check-npm-publish-landed.mjs` from the CALLER's tree with no package-relative candidate, and Lisa delivers that path on the `lisa apply` channel (all/copy-overwrite). The two halves land in the wrong order: this step is live everywhere immediately, the file it needs is live only where somebody applied. No existence test guards the read, which is ALL this scan examined of the step's control flow: it did not read anything that could absorb the failure. An absent path most likely fails the job loudly — the better of the two failures, because it is visible — but that is inferred from the missing guard, NOT MEASURED. The step's text does carry `else-branch` — located in the step, deliberately NOT related to this read, and enough to make \"it skips silently\" a claim to check rather than assume. STALENESS (a separate dimension from the delivery verdict above): `no-probe`. Neither an existence test nor a version probe bears on this read, so nothing here distinguishes a current artifact from an absent or a superseded one. None of the staleness tokens this scan can see (`artifact-declares-version`, `artifact-answers-version`, `step-requests-version`, `workflow-requests-version`) were found."
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
"key": "self-pin-raise.yml::scripts/check-self-dependency-pin.mjs",
|
|
950
|
+
"workflow": "self-pin-raise.yml",
|
|
951
|
+
"path": "scripts/check-self-dependency-pin.mjs",
|
|
952
|
+
"channel": "undelivered",
|
|
953
|
+
"verdict": "undelivered",
|
|
954
|
+
"remedy": "author-the-artifact",
|
|
955
|
+
"guarded": false,
|
|
956
|
+
"handling": [
|
|
957
|
+
"else-branch"
|
|
958
|
+
],
|
|
959
|
+
"detection": "unchecked",
|
|
960
|
+
"stalenessSignals": [],
|
|
961
|
+
"decision": "not-needed",
|
|
962
|
+
"reason": "Unreachable outside this repository under the job-level repository guard ratified above. The script runs from the same Lisa checkout the workflow runs from, so no independently versioned consumer copy participates in this coupling.",
|
|
963
|
+
"lanes": [],
|
|
964
|
+
"detail": "`self-pin-raise.yml` is delivered at `@main`, so this step is live in every consumer on their next run. It reads `scripts/check-self-dependency-pin.mjs` from the CALLER's tree, and Lisa ships no such path in any delivery lane — no apply and no bump ever produces it. Either the consumer authors it, or whatever the step does where the path is missing runs instead — and that branch is the part this scan does not read. No existence test guards the read, which is ALL this scan examined of the step's control flow: it did not read anything that could absorb the failure. An absent path most likely fails the job loudly — the better of the two failures, because it is visible — but that is inferred from the missing guard, NOT MEASURED. The step's text does carry `else-branch` — located in the step, deliberately NOT related to this read, and enough to make \"it skips silently\" a claim to check rather than assume. STALENESS (a separate dimension from the delivery verdict above): `unchecked`. Lisa delivers nothing at this path, so there is no artifact to ask whether it could answer a version. The staleness half is UNKNOWN here — not current, and not probe-less. None of the staleness tokens this scan can see (`artifact-declares-version`, `artifact-answers-version`, `step-requests-version`, `workflow-requests-version`) were found."
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"key": "self-pin-raise.yml::scripts/push-self-pin-raise.sh",
|
|
968
|
+
"workflow": "self-pin-raise.yml",
|
|
969
|
+
"path": "scripts/push-self-pin-raise.sh",
|
|
970
|
+
"channel": "undelivered",
|
|
971
|
+
"verdict": "undelivered",
|
|
972
|
+
"remedy": "author-the-artifact",
|
|
973
|
+
"guarded": false,
|
|
974
|
+
"handling": [],
|
|
975
|
+
"detection": "unchecked",
|
|
976
|
+
"stalenessSignals": [],
|
|
977
|
+
"decision": "not-needed",
|
|
978
|
+
"reason": "Unreachable outside this repository under the job-level repository guard ratified above. The script runs from the same Lisa checkout the workflow runs from, so no independently versioned consumer copy participates in this coupling.",
|
|
979
|
+
"lanes": [],
|
|
980
|
+
"detail": "`self-pin-raise.yml` is delivered at `@main`, so this step is live in every consumer on their next run. It reads `scripts/push-self-pin-raise.sh` from the CALLER's tree, and Lisa ships no such path in any delivery lane — no apply and no bump ever produces it. Either the consumer authors it, or whatever the step does where the path is missing runs instead — and that branch is the part this scan does not read. No existence test guards the read, which is ALL this scan examined of the step's control flow: it did not read anything that could absorb the failure. An absent path most likely fails the job loudly — the better of the two failures, because it is visible — but that is inferred from the missing guard, NOT MEASURED. The step's text carries none of the tokens this scan can see (`else-branch`, `exit-zero`, `exit-nonzero`, `error-annotation`, `notice-annotation`, `failure-suppression`), which is a statement about those names and not about the step's behaviour. STALENESS (a separate dimension from the delivery verdict above): `unchecked`. Lisa delivers nothing at this path, so there is no artifact to ask whether it could answer a version. The staleness half is UNKNOWN here — not current, and not probe-less. None of the staleness tokens this scan can see (`artifact-declares-version`, `artifact-answers-version`, `step-requests-version`, `workflow-requests-version`) were found."
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"key": "self-pin-raise.yml::scripts/raise-self-dependency-pin.mjs",
|
|
984
|
+
"workflow": "self-pin-raise.yml",
|
|
985
|
+
"path": "scripts/raise-self-dependency-pin.mjs",
|
|
986
|
+
"channel": "undelivered",
|
|
987
|
+
"verdict": "undelivered",
|
|
988
|
+
"remedy": "author-the-artifact",
|
|
989
|
+
"guarded": false,
|
|
990
|
+
"handling": [
|
|
991
|
+
"exit-nonzero",
|
|
992
|
+
"error-annotation"
|
|
993
|
+
],
|
|
994
|
+
"detection": "unchecked",
|
|
995
|
+
"stalenessSignals": [],
|
|
996
|
+
"decision": "not-needed",
|
|
997
|
+
"reason": "Unreachable outside this repository under the job-level repository guard ratified above. The script runs from the same Lisa checkout the workflow runs from, so no independently versioned consumer copy participates in this coupling.",
|
|
998
|
+
"lanes": [],
|
|
999
|
+
"detail": "`self-pin-raise.yml` is delivered at `@main`, so this step is live in every consumer on their next run. It reads `scripts/raise-self-dependency-pin.mjs` from the CALLER's tree, and Lisa ships no such path in any delivery lane — no apply and no bump ever produces it. Either the consumer authors it, or whatever the step does where the path is missing runs instead — and that branch is the part this scan does not read. No existence test guards the read, which is ALL this scan examined of the step's control flow: it did not read anything that could absorb the failure. An absent path most likely fails the job loudly — the better of the two failures, because it is visible — but that is inferred from the missing guard, NOT MEASURED. The step's text does carry `exit-nonzero`, `error-annotation` — located in the step, deliberately NOT related to this read, and enough to make \"it skips silently\" a claim to check rather than assume. STALENESS (a separate dimension from the delivery verdict above): `unchecked`. Lisa delivers nothing at this path, so there is no artifact to ask whether it could answer a version. The staleness half is UNKNOWN here — not current, and not probe-less. None of the staleness tokens this scan can see (`artifact-declares-version`, `artifact-answers-version`, `step-requests-version`, `workflow-requests-version`) were found."
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"key": "self-pin-raise.yml::scripts/verify-self-pin-raise.mjs",
|
|
1003
|
+
"workflow": "self-pin-raise.yml",
|
|
1004
|
+
"path": "scripts/verify-self-pin-raise.mjs",
|
|
1005
|
+
"channel": "undelivered",
|
|
1006
|
+
"verdict": "undelivered",
|
|
1007
|
+
"remedy": "author-the-artifact",
|
|
1008
|
+
"guarded": false,
|
|
1009
|
+
"handling": [
|
|
1010
|
+
"exit-nonzero",
|
|
1011
|
+
"error-annotation"
|
|
1012
|
+
],
|
|
1013
|
+
"detection": "unchecked",
|
|
1014
|
+
"stalenessSignals": [],
|
|
1015
|
+
"decision": "not-needed",
|
|
1016
|
+
"reason": "Unreachable outside this repository under the job-level repository guard ratified above. The script runs from the same Lisa checkout the workflow runs from, so no independently versioned consumer copy participates in this coupling.",
|
|
1017
|
+
"lanes": [],
|
|
1018
|
+
"detail": "`self-pin-raise.yml` is delivered at `@main`, so this step is live in every consumer on their next run. It reads `scripts/verify-self-pin-raise.mjs` from the CALLER's tree, and Lisa ships no such path in any delivery lane — no apply and no bump ever produces it. Either the consumer authors it, or whatever the step does where the path is missing runs instead — and that branch is the part this scan does not read. No existence test guards the read, which is ALL this scan examined of the step's control flow: it did not read anything that could absorb the failure. An absent path most likely fails the job loudly — the better of the two failures, because it is visible — but that is inferred from the missing guard, NOT MEASURED. The step's text does carry `exit-nonzero`, `error-annotation` — located in the step, deliberately NOT related to this read, and enough to make \"it skips silently\" a claim to check rather than assume. STALENESS (a separate dimension from the delivery verdict above): `unchecked`. Lisa delivers nothing at this path, so there is no artifact to ask whether it could answer a version. The staleness half is UNKNOWN here — not current, and not probe-less. None of the staleness tokens this scan can see (`artifact-declares-version`, `artifact-answers-version`, `step-requests-version`, `workflow-requests-version`) were found."
|
|
903
1019
|
}
|
|
904
1020
|
]
|
|
905
1021
|
}
|