@rightkit/release 0.6.57 → 0.6.62
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/README.md +4 -0
- package/acceptance-admission.mjs +104 -0
- package/acceptance-launch.mjs +234 -0
- package/acceptance-lines.mjs +1254 -0
- package/acceptance-result.mjs +77 -0
- package/acceptance-rows.mjs +47 -0
- package/admission-files.mjs +2 -0
- package/affected-units.mjs +17 -0
- package/app-check.mjs +6 -2
- package/app-closure.mjs +3 -1
- package/bin/rightkit-gate.mjs +552 -124
- package/broker-admission.mjs +45 -2
- package/broker-pins.mjs +11 -1
- package/broker-toolchain.mjs +113 -0
- package/cargo-profile-contract.mjs +7 -2
- package/class-a-cache-history.mjs +170 -0
- package/cli/right-release.mjs +0 -0
- package/code-closure.mjs +24 -0
- package/config-inspect.mjs +6 -0
- package/consumer-contracts.mjs +3 -1
- package/contract-nn.json +166 -0
- package/deterministic-scans.mjs +835 -112
- package/feature-coverage.mjs +109 -82
- package/feature-partition.mjs +76 -0
- package/forbidden-literals.mjs +78 -0
- package/gate/calls.mjs +121 -0
- package/gate/compile.mjs +190 -0
- package/gate/crate-results.mjs +127 -0
- package/gate/run-calls.mjs +241 -0
- package/gate/tests.mjs +234 -0
- package/gate-coverage.mjs +12 -3
- package/gate-release-admission.mjs +200 -0
- package/gate-seam.mjs +100 -4
- package/gate-serve.mjs +179 -34
- package/gate-stages.mjs +59 -0
- package/legacy-contract-receipt.mjs +809 -0
- package/local-publish.mjs +2 -4
- package/local-runtime.mjs +2 -2
- package/nsis-payload.mjs +4 -3
- package/ownership-applicability.mjs +5 -0
- package/ownership-class-rules.mjs +19 -8
- package/ownership-mandatory-set.json +15 -21
- package/ownership-mandatory-set.mjs +19 -4
- package/package.json +14 -8
- package/probe-memo.mjs +252 -0
- package/publication-artifacts.mjs +56 -2
- package/publish-local-npm.mjs +3 -0
- package/publish-update.mjs +2 -2
- package/receipt-signature.mjs +40 -0
- package/release.mjs +47 -29
- package/resident-answers.mjs +66 -0
- package/rightkit-ownership.json +20 -11
- package/rightkit-versions.json +349 -183
- package/runtime-bundle-stage.mjs +146 -0
- package/scan-digest.mjs +28 -4
- package/seam-broker.mjs +8 -1
- package/shell-contract.mjs +23 -2
- package/snapshot-changes.mjs +106 -0
- package/snapshot-check.mjs +17 -13
- package/snapshot-dependency-reuse.mjs +186 -14
- package/snapshot-git.mjs +17 -1
- package/snapshot-metadata.mjs +155 -3
- package/snapshot.mjs +89 -12
- package/spawn-ledger.mjs +21 -2
- package/stage-sidecar.mjs +231 -19
- package/suite-trust-roots.mjs +2 -2
- package/test-env.mjs +26 -0
- package/tool-version-memo.mjs +46 -0
- package/win-package-recipe.mjs +11 -0
- package/bin/darwin/rightkit-swap +0 -0
- package/gate-acceptance.mjs +0 -3362
package/broker-admission.mjs
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
// Fail closed: a request the gate cannot read (no request id yet, a status that fails or is malformed, a state other than QUEUED) is counted as running, so
|
|
15
15
|
// an unreadable broker never makes a scan immortal.
|
|
16
16
|
import fs from "node:fs";
|
|
17
|
+
import net from "node:net";
|
|
17
18
|
import { spawnBrokerClient } from "./broker-client.mjs";
|
|
18
19
|
import path from "node:path";
|
|
19
20
|
|
|
@@ -85,11 +86,40 @@ export function brokerStateOf(stdout, requestId) {
|
|
|
85
86
|
return diagnosis.kind === "live" || diagnosis.kind === "terminal" ? diagnosis.state : null;
|
|
86
87
|
}
|
|
87
88
|
|
|
89
|
+
/**
|
|
90
|
+
* One job STATUS over the broker's endpoint (socket or named pipe), in this process: the request is one JSON line (`{ type: "STATUS", protocol,
|
|
91
|
+
* runtime, id }`, the same line bin/rightkit-gate.mjs readAnsweringRoots sends for its probe id); the broker greets with a HANDSHAKE and may send
|
|
92
|
+
* other frames first, so lines are read until the STATUS of this id or a refusal (`RESULT` with status `REJECTED`). Resolves that frame, or null
|
|
93
|
+
* when none came (no connection, an error, a close or the deadline). Never rejects. `connect` is the transport (tests).
|
|
94
|
+
*/
|
|
95
|
+
export function wireStatus({ endpoint, protocol, runtime, id, timeoutMs = 15_000, connect = (target) => net.connect({ path: target }) }) {
|
|
96
|
+
return new Promise((resolve) => {
|
|
97
|
+
let settled = false; let conn = null; let timer = null; let buffer = "";
|
|
98
|
+
const finish = (frame) => { if (settled) return; settled = true; clearTimeout(timer); try { conn?.destroy(); } catch { /* gone */ } resolve(frame); };
|
|
99
|
+
if (typeof endpoint !== "string" || !endpoint || typeof id !== "string" || !id) { finish(null); return; }
|
|
100
|
+
try { conn = connect(endpoint); } catch { finish(null); return; }
|
|
101
|
+
timer = setTimeout(() => finish(null), timeoutMs); timer.unref?.();
|
|
102
|
+
conn.on("connect", () => { try { conn.write(`${JSON.stringify({ type: "STATUS", protocol, runtime, id })}\n`); } catch { finish(null); } });
|
|
103
|
+
conn.on("data", (chunk) => {
|
|
104
|
+
buffer += String(chunk);
|
|
105
|
+
if (buffer.length > (1 << 24)) { finish(null); return; }
|
|
106
|
+
for (let at = buffer.indexOf("\n"); at >= 0; at = buffer.indexOf("\n")) {
|
|
107
|
+
const line = buffer.slice(0, at); buffer = buffer.slice(at + 1);
|
|
108
|
+
let frame = null; try { frame = JSON.parse(line); } catch { continue; }
|
|
109
|
+
if (!frame || typeof frame !== "object") continue;
|
|
110
|
+
if ((frame.type === "STATUS" && frame.id === id) || (frame.type === "RESULT" && frame.status === "REJECTED")) { finish(frame); return; }
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
conn.on("error", () => finish(null));
|
|
114
|
+
conn.on("close", () => finish(null));
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
|
|
88
118
|
/**
|
|
89
119
|
* The gate's reader of the broker's live state, through the RustRight client with an ASYNCHRONOUS spawn (nothing here blocks the gate's event loop):
|
|
90
120
|
* `state(id)` is the request's state word or null; `cancel(id)` is `rustright cancel <id>`.
|
|
91
121
|
*/
|
|
92
|
-
export function createBrokerLive({ client, env = process.env, spawn, platform = process.platform }) {
|
|
122
|
+
export function createBrokerLive({ client, env = process.env, spawn, platform = process.platform, wire = null, query = wireStatus }) {
|
|
93
123
|
const call = async (args) => {
|
|
94
124
|
try {
|
|
95
125
|
const r = await spawnBrokerClient(spawn, client, args, { encoding: "utf8", env, timeout: 30_000, maxBuffer: 1 << 24, windowsHide: true }, { platform });
|
|
@@ -97,7 +127,20 @@ export function createBrokerLive({ client, env = process.env, spawn, platform =
|
|
|
97
127
|
} catch { return null; }
|
|
98
128
|
};
|
|
99
129
|
return {
|
|
100
|
-
|
|
130
|
+
// NN07 (Dell 2026-11-19, first compile of the witness fixture: 123 `rustright status <id>` child processes for 44 jobs, the same command up
|
|
131
|
+
// to nine times). With `wire` ({ endpoint, protocol, runtime }: the answering broker's endpoint and the runtime identity beside the client,
|
|
132
|
+
// seam-broker.mjs brokerControlTarget) the state is asked over the broker's own endpoint from this process, the way the gate already asks
|
|
133
|
+
// SNAPSHOT_STATUS and the roots probe: no child process. A frame that answers is the answer, a refusal included. Only when the endpoint
|
|
134
|
+
// gives no frame at all (no connection, a timeout) is the client asked, as before.
|
|
135
|
+
async state(requestId) {
|
|
136
|
+
if (wire) {
|
|
137
|
+
const frame = await Promise.resolve().then(() => query({ ...wire, id: requestId })).catch(() => null);
|
|
138
|
+
// Only a frame that names this job's state is the answer. A refusal or a frame of another shape is not: the client is asked, as before,
|
|
139
|
+
// so a pipe that speaks differently from what this reader expects can never turn every state into "unknown".
|
|
140
|
+
if (frame) { const d = diagnoseControlReply(frame, requestId); if (d.kind === "live" || d.kind === "terminal") return d.state; }
|
|
141
|
+
}
|
|
142
|
+
const r = await call(["status", requestId]); return r ? brokerStateOf(r.stdout, requestId) : null;
|
|
143
|
+
},
|
|
101
144
|
async cancel(requestId) { await call(["cancel", requestId]); },
|
|
102
145
|
};
|
|
103
146
|
}
|
package/broker-pins.mjs
CHANGED
|
@@ -84,8 +84,18 @@ const git = (spawn, cwd, args) => {
|
|
|
84
84
|
* a revision that cannot be read, or a file that is not the pipeline schema, is a refusal. Never the working tree, the selected commit or the snapshot.
|
|
85
85
|
* `{ pipeline, revision }`. Shared by the pins fallback below and the scan-tool policy fallback (scan-tool-enrolment.mjs).
|
|
86
86
|
*/
|
|
87
|
-
export function readGateRevisionPipeline({ gateFile, checkout, spawn = spawnSync, realpath = (p) => fs.realpathSync.native(p) }) {
|
|
87
|
+
export function readGateRevisionPipeline({ gateFile, checkout, spawn = spawnSync, realpath = (p) => fs.realpathSync.native(p), exists = (p) => fs.existsSync(p), env = process.env }) {
|
|
88
88
|
const here = path.dirname(gateFile);
|
|
89
|
+
// NN25 (Dell 2026-11-19: `git rev-parse --show-toplevel` in the gate's own folder on every run, after the snapshot proof). A sealed gate is
|
|
90
|
+
// installed outside any repository: no directory from its folder up to the root of the drive holds a `.git`, so git would only say "not a
|
|
91
|
+
// repository" and nothing is started to hear it. With a `.git` above it (a checkout gate), or a GIT_DIR in the environment, git is asked.
|
|
92
|
+
if (!env.GIT_DIR && !env.GIT_WORK_TREE) {
|
|
93
|
+
// Walked from the folder as spelled and from where it really is (a gate reached through a link or a junction lives in its target's repository).
|
|
94
|
+
const starts = [here]; try { const real = realpath(here); if (real !== here) starts.push(real); } catch { /* the spelled folder alone */ }
|
|
95
|
+
let found = false;
|
|
96
|
+
for (const start of starts) { for (let at = start; ; at = path.dirname(at)) { if (exists(path.join(at, ".git"))) { found = true; break; } if (path.dirname(at) === at) break; } if (found) break; }
|
|
97
|
+
if (!found) return null;
|
|
98
|
+
}
|
|
89
99
|
const top = git(spawn, here, ["rev-parse", "--show-toplevel"]);
|
|
90
100
|
if (!top) return null;
|
|
91
101
|
let same = false;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// The compiler a broker host compiles with, read in this process from the broker's own host configuration (GATE-CONTRACT NN09, NN25).
|
|
2
|
+
//
|
|
3
|
+
// The gate needs to know which cargo and rustc the broker runs: it is part of every compile row's cache key and of the receipt's binding. Until
|
|
4
|
+
// 2026-11-19 it asked by starting processes: `rustright cargo --version` once per cache store and `rustright rustc -V` on every run, warm ones
|
|
5
|
+
// included (witness fixture, Dell, 2026-11-19: both in the spawn ledger; NN09 allows the first on no run, NN25 allows no version probe on a warm
|
|
6
|
+
// run). Both questions travel through the client to the broker and back, and the answer is a version text that says nothing about the bytes.
|
|
7
|
+
//
|
|
8
|
+
// The broker does not choose its compiler per request. `<managed root>/config.json` registers each tool once, by absolute path and sha256
|
|
9
|
+
// (`tools[]`), and names which registered tool is cargo and which is rustc (`shims.cargo`, `defaults.rustcToolId` or `shims.rustc`). This module
|
|
10
|
+
// reads that file, checks that the two programs on disk are the registered bytes, and reads the versions from the toolchain's own channel
|
|
11
|
+
// manifest. Nothing is started. Any doubt (no such file, a tool not registered, bytes that differ, no channel manifest) answers `ok: false` with
|
|
12
|
+
// the reason, and the caller asks the client as before.
|
|
13
|
+
//
|
|
14
|
+
// Residual, stated in the evidence sheet: a broker still running with an older configuration compiles with its old tools until it is restarted,
|
|
15
|
+
// and nothing here can see that. The same was true of an answer remembered from an earlier `cargo --version`.
|
|
16
|
+
import fs from "node:fs";
|
|
17
|
+
import path from "node:path";
|
|
18
|
+
import { createHash } from "node:crypto";
|
|
19
|
+
|
|
20
|
+
export const BROKER_TOOLCHAIN_SCHEMA = "rightkit.broker-toolchain/1";
|
|
21
|
+
const isSha = (s) => typeof s === "string" && /^[0-9a-f]{64}$/.test(s);
|
|
22
|
+
const sha256 = (bytes) => createHash("sha256").update(bytes).digest("hex");
|
|
23
|
+
|
|
24
|
+
/** `<managed root>/config.json` for a managed client launcher `<managed root>/<dir>/rustright[.cmd]`, or null when `launcher` is not an absolute path. */
|
|
25
|
+
export function hostConfigFor(launcher, p = path) {
|
|
26
|
+
if (typeof launcher !== "string" || !p.isAbsolute(launcher)) return null;
|
|
27
|
+
return p.join(p.dirname(p.dirname(launcher)), "config.json");
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** The version text of `[pkg.<name>]` in a rustup channel manifest (`version = "1.99.1 (58cf8f9c3 2026-10-13)"`), or null. */
|
|
31
|
+
export function channelVersion(manifestText, name) {
|
|
32
|
+
const lines = String(manifestText ?? "").split(/\r?\n/);
|
|
33
|
+
const at = lines.indexOf(`[pkg.${name}]`);
|
|
34
|
+
if (at < 0) return null;
|
|
35
|
+
for (let i = at + 1; i < lines.length && !lines[i].startsWith("["); i += 1) {
|
|
36
|
+
const m = /^version\s*=\s*"([^"\r\n]+)"\s*$/.exec(lines[i]);
|
|
37
|
+
if (m) return m[1];
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The text `cargo --version` prints for the cargo of a toolchain, from the two channel-manifest versions: `cargo 1.99.1 (5f94df478 2026-08-27)`.
|
|
44
|
+
* The manifest's own cargo version is the Cargo crate's (`0.100.0 (5f94df478 2026-08-27)`), which is not what cargo calls itself: cargo prints
|
|
45
|
+
* the Rust release it ships with (the first word of the rustc version) and its own commit and date. Named as cargo names itself, so a reader
|
|
46
|
+
* never takes the crate version for another cargo (2026-11-20: the first form of this module printed `cargo 0.100.0 …`). null when either
|
|
47
|
+
* text is not of that shape.
|
|
48
|
+
*/
|
|
49
|
+
export function cargoVersionText(cargoChannel, rustcChannel) {
|
|
50
|
+
const release = /^(\d+\.\d+\.\d+(?:-[0-9A-Za-z.]+)?) \(/.exec(String(rustcChannel ?? ""));
|
|
51
|
+
const commit = /^\S+ (\([0-9a-f]{7,40} \d{4}-\d{2}-\d{2}\))$/.exec(String(cargoChannel ?? ""));
|
|
52
|
+
return release && commit ? `cargo ${release[1]} ${commit[1]}` : null;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// One answer per process for one state of the files it was read from (their size and modification time): a run asks several times.
|
|
56
|
+
const kept = new Map();
|
|
57
|
+
const statMark = (stat, file) => { try { const st = stat(file); return st.isFile() ? `${st.size}:${Math.trunc(st.mtimeMs)}` : null; } catch { return null; } };
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* `{ ok: true, schema, config, configSha256, toolchain, cargo: { path, sha256, version }, rustc: { path, sha256, version }, files }` or
|
|
61
|
+
* `{ ok: false, why }`. `cargo.version` is `<what cargo --version prints> sha256:<16 hex>` (cargoVersionText) and `rustc.version` is
|
|
62
|
+
* `rustc <channel version> sha256:<16 hex>`: the text a person reads and the bytes that decide. `files` are the files the answer was read from.
|
|
63
|
+
*/
|
|
64
|
+
export function brokerToolchain({ launcher, configFile = hostConfigFor(launcher), readFile = (f) => fs.readFileSync(f), stat = (f) => fs.statSync(f), remember = true } = {}) {
|
|
65
|
+
if (!configFile) return { ok: false, why: "the client launcher is not an absolute path, so the host configuration beside it cannot be named" };
|
|
66
|
+
let configBytes;
|
|
67
|
+
try { configBytes = readFile(configFile); } catch (e) { return { ok: false, why: `cannot read ${configFile}: ${e?.code ?? e?.message}` }; }
|
|
68
|
+
const configSha256 = sha256(configBytes);
|
|
69
|
+
let config;
|
|
70
|
+
try { config = JSON.parse(String(configBytes)); } catch { return { ok: false, why: `${configFile} is not JSON` }; }
|
|
71
|
+
const tools = Array.isArray(config?.tools) ? config.tools : null;
|
|
72
|
+
if (!tools) return { ok: false, why: `${configFile} registers no tools` };
|
|
73
|
+
const idOf = { cargo: config?.shims?.cargo, rustc: config?.defaults?.rustcToolId ?? config?.shims?.rustc };
|
|
74
|
+
const entry = {};
|
|
75
|
+
for (const name of ["cargo", "rustc"]) {
|
|
76
|
+
const id = idOf[name];
|
|
77
|
+
if (typeof id !== "string" || !id) return { ok: false, why: `${configFile} does not name which registered tool is ${name}` };
|
|
78
|
+
const found = tools.filter((t) => t && t.id === id);
|
|
79
|
+
if (found.length !== 1) return { ok: false, why: `${configFile} registers ${found.length} tools with the id ${id}` };
|
|
80
|
+
const t = found[0];
|
|
81
|
+
if (typeof t.path !== "string" || !path.isAbsolute(t.path) || !isSha(t.sha256)) return { ok: false, why: `${configFile}: the registered ${name} has no absolute path with a sha256` };
|
|
82
|
+
entry[name] = { path: t.path, sha256: t.sha256 };
|
|
83
|
+
}
|
|
84
|
+
const root = path.dirname(path.dirname(entry.cargo.path));
|
|
85
|
+
if (path.dirname(path.dirname(entry.rustc.path)) !== root) return { ok: false, why: "the registered cargo and rustc are not of one toolchain directory" };
|
|
86
|
+
const manifest = path.join(root, "lib", "rustlib", "multirust-channel-manifest.toml");
|
|
87
|
+
const files = [configFile, entry.cargo.path, entry.rustc.path, manifest];
|
|
88
|
+
const marks = files.map((f) => statMark(stat, f));
|
|
89
|
+
if (marks.some((m) => m === null)) return { ok: false, why: `not a readable file: ${files[marks.indexOf(null)]}` };
|
|
90
|
+
const keptKey = `${configSha256}\u0000${marks.join("\u0000")}`;
|
|
91
|
+
if (remember && kept.has(keptKey)) return kept.get(keptKey);
|
|
92
|
+
for (const name of ["cargo", "rustc"]) {
|
|
93
|
+
let actual;
|
|
94
|
+
try { actual = sha256(readFile(entry[name].path)); } catch (e) { return { ok: false, why: `cannot read ${entry[name].path}: ${e?.code ?? e?.message}` }; }
|
|
95
|
+
if (actual !== entry[name].sha256) return { ok: false, why: `${entry[name].path} is sha256 ${actual}, the host configuration registers ${entry[name].sha256}` };
|
|
96
|
+
}
|
|
97
|
+
let manifestText;
|
|
98
|
+
try { manifestText = String(readFile(manifest)); } catch (e) { return { ok: false, why: `cannot read ${manifest}: ${e?.code ?? e?.message}` }; }
|
|
99
|
+
const versions = { cargo: channelVersion(manifestText, "cargo"), rustc: channelVersion(manifestText, "rustc") };
|
|
100
|
+
for (const name of ["cargo", "rustc"]) if (!versions[name]) return { ok: false, why: `${manifest} names no version for ${name}` };
|
|
101
|
+
const cargoText = cargoVersionText(versions.cargo, versions.rustc);
|
|
102
|
+
if (!cargoText) return { ok: false, why: `${manifest}: the cargo version "${versions.cargo}" and the rustc version "${versions.rustc}" do not give the text cargo prints for itself` };
|
|
103
|
+
// The files are read; had one changed meanwhile, the answer could mix two states.
|
|
104
|
+
if (files.some((f, i) => statMark(stat, f) !== marks[i])) return { ok: false, why: "a toolchain file changed while it was read" };
|
|
105
|
+
const answer = {
|
|
106
|
+
ok: true, schema: BROKER_TOOLCHAIN_SCHEMA, config: configFile, configSha256, toolchain: typeof config?.defaults?.toolchain === "string" ? config.defaults.toolchain : path.basename(root),
|
|
107
|
+
cargo: { ...entry.cargo, version: `${cargoText} sha256:${entry.cargo.sha256.slice(0, 16)}` },
|
|
108
|
+
rustc: { ...entry.rustc, version: `rustc ${versions.rustc} sha256:${entry.rustc.sha256.slice(0, 16)}` },
|
|
109
|
+
files,
|
|
110
|
+
};
|
|
111
|
+
if (remember) kept.set(keptKey, answer);
|
|
112
|
+
return answer;
|
|
113
|
+
}
|
|
@@ -129,7 +129,10 @@ export function findProfileRoots(root, manifests = findCargoManifests(root), dec
|
|
|
129
129
|
if (isWorkspace(entry)) return true;
|
|
130
130
|
return !parsed.some((other) => other !== entry && isWorkspace(other) && isWithinDir(dirOf(entry.file), dirOf(other.file)));
|
|
131
131
|
});
|
|
132
|
-
|
|
132
|
+
// Every other parsed manifest (workspace members), less the exempt prefixes. GC-A15 judges all of an app's manifests for
|
|
133
|
+
// profile tables ("An app carries no Cargo profile table but [profile.release]"), not only the roots Cargo reads.
|
|
134
|
+
const members = parsed.filter((entry) => !roots.includes(entry) && !exemptPrefixes.some((prefix) => entry.file.startsWith(`${prefix}/`)));
|
|
135
|
+
return { roots, members, findings };
|
|
133
136
|
}
|
|
134
137
|
|
|
135
138
|
function* rustFiles(dir) {
|
|
@@ -166,8 +169,10 @@ export function scanDebugAssertionSources(root) {
|
|
|
166
169
|
|
|
167
170
|
export function scanCargoProfileContract(root, { template = loadCargoProfileTemplate(), sources = true } = {}) {
|
|
168
171
|
const scanRoot = path.resolve(root);
|
|
169
|
-
const { roots, findings } = findProfileRoots(scanRoot);
|
|
172
|
+
const { roots, members, findings } = findProfileRoots(scanRoot);
|
|
170
173
|
for (const { toml, file } of roots) findings.push(...checkManifestProfiles(toml, template, file));
|
|
174
|
+
// GC-A15 forbids every profile table but [profile.release] in an app, including in member manifests Cargo itself ignores.
|
|
175
|
+
for (const { toml, file } of members) findings.push(...checkManifestProfiles(toml, template, file).filter((f) => f.rule === "profile-extra" || f.rule === "retired-profile"));
|
|
171
176
|
if (sources && existsSync(scanRoot)) findings.push(...scanDebugAssertionSources(scanRoot));
|
|
172
177
|
return findings;
|
|
173
178
|
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { createHash } from "node:crypto";
|
|
4
|
+
import { writeFileAtomic } from "./atomic-write.mjs";
|
|
5
|
+
import { acquireFileLock } from "./ios-lock.mjs";
|
|
6
|
+
import { explainKeyChange } from "./deterministic-scans.mjs";
|
|
7
|
+
|
|
8
|
+
const hash = (value) => createHash("sha256").update(value).digest("hex");
|
|
9
|
+
const digest = /^[0-9a-f]{64}$/;
|
|
10
|
+
|
|
11
|
+
// Separate from the mutable scan cache. Removing a scan result must leave its
|
|
12
|
+
// prior outcome available, including a cached failure or a previously seen key.
|
|
13
|
+
export function openClassAHistory(options) {
|
|
14
|
+
return openHistory(options, "A");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export function openClassBHistory(options) {
|
|
18
|
+
return openHistory(options, "B");
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// A store this gate cannot use (one with no history, or with a history from before Class B was recorded) is set aside under a dated name
|
|
22
|
+
// beside it, and an empty store and history are started in the same fixed place. The gate does this itself and reports it once through
|
|
23
|
+
// `onRestart`; no caller chooses another folder (Adrian, 2026-11-24, rightkit#1514). The Cargo build output is elsewhere and is not touched.
|
|
24
|
+
const stamp = () => new Date().toISOString().replace(/[-:]/g, "").replace(/\.\d+Z$/, "Z");
|
|
25
|
+
function setAside(target) {
|
|
26
|
+
let to = target + ".set-aside-" + stamp();
|
|
27
|
+
for (let i = 1; fs.existsSync(to); i += 1) to = target + ".set-aside-" + stamp() + "-" + i;
|
|
28
|
+
fs.renameSync(target, to);
|
|
29
|
+
return to;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function openHistory({ historyRoot, storeDir, onRestart = null }, stage) {
|
|
33
|
+
const label = "Class " + stage;
|
|
34
|
+
const store = path.resolve(storeDir);
|
|
35
|
+
const relative = path.relative(store, path.resolve(historyRoot));
|
|
36
|
+
if (relative === "" || (!path.isAbsolute(relative) && relative !== ".." && !relative.startsWith(".." + path.sep))) throw new Error(label + " cache history must be outside " + store);
|
|
37
|
+
const namespace = hash(process.platform === "win32" ? store.toLowerCase() : store);
|
|
38
|
+
const file = path.join(historyRoot, namespace + ".json");
|
|
39
|
+
const save = (document) => {
|
|
40
|
+
const body = JSON.stringify(document);
|
|
41
|
+
writeFileAtomic(file, JSON.stringify({ sha256: hash(body), body }), { mode: 0o600 });
|
|
42
|
+
};
|
|
43
|
+
const read = () => {
|
|
44
|
+
const envelope = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
45
|
+
if (typeof envelope.body !== "string" || hash(envelope.body) !== envelope.sha256) throw new Error("invalid " + label + " cache history checksum: " + file);
|
|
46
|
+
const body = JSON.parse(envelope.body);
|
|
47
|
+
if (body.namespace !== namespace || ![1, 2].includes(body.schema)) throw new Error("invalid " + label + " cache history: " + file);
|
|
48
|
+
if (body.schema === 1 && !Array.isArray(body.rows)) throw new Error("invalid Class A cache history: " + file);
|
|
49
|
+
if (body.schema === 2 && (!body.stages || !Array.isArray(body.stages.A) || !Array.isArray(body.stages.B))) throw new Error("invalid " + label + " cache history: " + file);
|
|
50
|
+
return body;
|
|
51
|
+
};
|
|
52
|
+
const rowsFor = (document) => {
|
|
53
|
+
if (stage === "B" && document.schema === 1) throw new Error("Class B cache history missing at " + file + " for legacy store " + store + ". Restore verified independent Class B history or select a new store for a declared cold run.");
|
|
54
|
+
return new Map(document.schema === 1 ? document.rows : document.stages[stage]);
|
|
55
|
+
};
|
|
56
|
+
const restart = (reason) => {
|
|
57
|
+
// The old store goes first: if it cannot be moved (a file in it is held open), nothing has changed and the run stops with the reason.
|
|
58
|
+
let storeAside = null; let historyAside = null;
|
|
59
|
+
try {
|
|
60
|
+
if (fs.existsSync(store)) storeAside = setAside(store);
|
|
61
|
+
if (fs.existsSync(file)) historyAside = setAside(file);
|
|
62
|
+
fs.mkdirSync(store, { recursive: true });
|
|
63
|
+
} catch (cause) {
|
|
64
|
+
throw new Error(label + " cache at " + store + " cannot be used (" + reason + ") and could not be set aside: " + (cause.code ?? cause.message));
|
|
65
|
+
}
|
|
66
|
+
save({ schema: 2, namespace, stages: { A: [], B: [] } });
|
|
67
|
+
if (typeof onRestart === "function") onRestart({ store, reason, storeAside, historyAside });
|
|
68
|
+
return new Map();
|
|
69
|
+
};
|
|
70
|
+
let baseline;
|
|
71
|
+
try {
|
|
72
|
+
const document = read();
|
|
73
|
+
if (stage === "B" && document.schema === 1) {
|
|
74
|
+
const lock = acquireFileLock(file + ".lock", label + " cache history");
|
|
75
|
+
try { const again = read(); baseline = again.schema === 1 ? restart("its history was written before compile results were recorded") : rowsFor(again); } finally { lock.release(); }
|
|
76
|
+
} else baseline = rowsFor(document);
|
|
77
|
+
} catch (error) {
|
|
78
|
+
if (error.code !== "ENOENT") throw error;
|
|
79
|
+
const lock = acquireFileLock(file + ".lock", label + " cache history");
|
|
80
|
+
try {
|
|
81
|
+
if (fs.existsSync(file)) baseline = rowsFor(read());
|
|
82
|
+
else {
|
|
83
|
+
fs.mkdirSync(path.dirname(store), { recursive: true });
|
|
84
|
+
// Exclusive creation establishes a first-use store. An already existing
|
|
85
|
+
// cache without independent evidence must never silently forecast all misses.
|
|
86
|
+
let existing = false;
|
|
87
|
+
try { fs.mkdirSync(store); } catch (cause) {
|
|
88
|
+
if (cause.code !== "EEXIST") throw cause;
|
|
89
|
+
existing = true;
|
|
90
|
+
}
|
|
91
|
+
if (existing) baseline = restart("it has no history");
|
|
92
|
+
else {
|
|
93
|
+
baseline = new Map();
|
|
94
|
+
// Both classes acquire their independent first-use evidence in one
|
|
95
|
+
// atomic write, before either class may populate the physical store.
|
|
96
|
+
save({ schema: 2, namespace, stages: { A: [], B: [] } });
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
} finally { lock.release(); }
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function forecast(fingerprints) {
|
|
103
|
+
return fingerprints.map(({ id, key, failureKey, inputs, toolVersion, environment, invocationId, retainedSourceEligible, featureContext, problem, uncacheableReason }) => {
|
|
104
|
+
const prior = baseline.get(id);
|
|
105
|
+
if (problem) throw new Error(id + ": " + problem);
|
|
106
|
+
if (!key && uncacheableReason) return { id, expected: "uncacheable", reason: uncacheableReason };
|
|
107
|
+
if (!digest.test(key)) throw new Error(id + ": invalid result key");
|
|
108
|
+
// This is evidence of the original invocation, never a pass stored under
|
|
109
|
+
// the member's solo key. Only an identical complete member identity may
|
|
110
|
+
// retain that invocation's result after another member changes.
|
|
111
|
+
const knownSource = stage === "B" && invocationId === id ? prior?.sources?.find((entry) => entry.memberKey === key) : null;
|
|
112
|
+
const source = knownSource && retainedSourceEligible !== false && featureContext && JSON.stringify(knownSource.featureContext) === JSON.stringify(featureContext) ? knownSource : null;
|
|
113
|
+
const pass = prior?.passes.includes(key);
|
|
114
|
+
const fail = failureKey && prior?.failures.includes(failureKey);
|
|
115
|
+
if (pass && fail) throw new Error(id + ": conflicting prior pass & failure evidence");
|
|
116
|
+
if (pass) return { id, key, expected: "hit", status: "pass", reason: "prior verified result for this key" };
|
|
117
|
+
if (source) {
|
|
118
|
+
if (fail) throw new Error(id + ": conflicting prior invocation pass & member failure evidence");
|
|
119
|
+
return { id, key: source.key, expected: "hit", status: "pass", source, reason: "unchanged member of prior verified feature-equivalent invocation" };
|
|
120
|
+
}
|
|
121
|
+
if (pass || fail) return { id, key: pass ? key : failureKey, expected: "hit", status: pass ? "pass" : "fail", reason: "prior verified result for this key" };
|
|
122
|
+
if (!prior) return { id, key, expected: "run", reason: "first observation of row in this store" };
|
|
123
|
+
const changes = explainKeyChange(prior.last, { inputs, toolVersion, inherited: environment });
|
|
124
|
+
if (knownSource && !source) changes.invocationContext = { reason: retainedSourceEligible === false ? "consumer requires its own invocation evidence" : "feature-resolution context changed", from: knownSource.featureContext ?? null, to: featureContext ?? null };
|
|
125
|
+
if (stage === "B" && prior.last.invocationId !== invocationId) changes.invocation = { from: prior.last.invocationId ?? null, to: invocationId ?? null };
|
|
126
|
+
if (!changes.inputsChanged && !changes.tool && !changes.inheritedEnv && !changes.invocation) throw new Error(id + ": result key changed without an identified change to its inputs, tool, environment or invocation. Cause unknown. Previous key " + prior.last.key + ", current key " + key);
|
|
127
|
+
return { id, key, priorKey: prior.last.key, expected: "run", changes, reason: "no prior result for this input, tool & environment identity" };
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function record({ fingerprints, retained, mismatches }) {
|
|
132
|
+
if (mismatches.length) throw new Error("refused " + label + " stage cannot advance cache history");
|
|
133
|
+
const current = new Map(fingerprints.map((row) => [row.id, row]));
|
|
134
|
+
for (const { id, key, status, source } of retained) {
|
|
135
|
+
const row = current.get(id);
|
|
136
|
+
if (!row || !["pass", "fail"].includes(status) || !digest.test(key) || key !== (status === "pass" ? row.key : row.failureKey)) throw new Error(id + ": stored evidence does not match frozen identity");
|
|
137
|
+
if (source && (stage !== "B" || status !== "pass" || source.schema !== "rightkit.retained-invocation/1" || source.key !== key || source.memberKey !== row.memberFingerprint?.key || !digest.test(source.rowDigest) || !Array.isArray(source.equivalence) || !source.equivalence.length || source.scan?.id !== row.invocationId || !source.scan?.batch?.members?.includes(id))) throw new Error(id + ": invocation source does not match frozen member identity");
|
|
138
|
+
}
|
|
139
|
+
const changes = retained.filter(({ id, key, status, source }) => {
|
|
140
|
+
const previous = baseline.get(id);
|
|
141
|
+
return previous?.last.key !== key || !(status === "pass" ? previous.passes : previous.failures).includes(key) || (source && !previous?.sources?.some((entry) => entry.memberKey === source.memberKey && entry.key === key));
|
|
142
|
+
});
|
|
143
|
+
if (!changes.length) return;
|
|
144
|
+
const lock = acquireFileLock(file + ".lock", label + " cache history");
|
|
145
|
+
try {
|
|
146
|
+
const document = read();
|
|
147
|
+
const merged = rowsFor(document);
|
|
148
|
+
for (const { id, key, status, source } of changes) {
|
|
149
|
+
const row = current.get(id);
|
|
150
|
+
const entry = merged.get(id) ?? { passes: [], failures: [] };
|
|
151
|
+
const keys = status === "pass" ? entry.passes : entry.failures;
|
|
152
|
+
if (!keys.includes(key)) keys.push(key);
|
|
153
|
+
// A subsequent standalone observation owns this identity. In particular
|
|
154
|
+
// a failure must never leave an older group pass eligible for reuse.
|
|
155
|
+
if (!source && row.memberFingerprint?.key) entry.sources = (entry.sources ?? []).filter((item) => item.memberKey !== row.memberFingerprint.key);
|
|
156
|
+
if (source) {
|
|
157
|
+
entry.sources ??= [];
|
|
158
|
+
entry.sources = entry.sources.filter((item) => item.memberKey !== source.memberKey);
|
|
159
|
+
entry.sources.push(source);
|
|
160
|
+
}
|
|
161
|
+
entry.last = { key, inputs: row.inputs, toolVersion: row.toolVersion, inherited: row.environment, ...(stage === "B" ? { invocationId: row.invocationId } : {}) };
|
|
162
|
+
merged.set(id, entry);
|
|
163
|
+
}
|
|
164
|
+
if (document.schema === 1) document.rows = [...merged];
|
|
165
|
+
else document.stages[stage] = [...merged];
|
|
166
|
+
save(document);
|
|
167
|
+
} finally { lock.release(); }
|
|
168
|
+
}
|
|
169
|
+
return { file, forecast, record };
|
|
170
|
+
}
|
package/cli/right-release.mjs
CHANGED
|
File without changes
|
package/code-closure.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// The files a piece of gate code is made of: the entry files and every file they import by a relative path, followed to the end.
|
|
2
|
+
// Users: the build-together path's remembered-call key (gate/compile.mjs) and, until rightkit#1514 step 9, the contract-test receipt of the retired
|
|
3
|
+
// runner, which listed the runner's files so an installer could compare each with the copy inside a sealed gate.
|
|
4
|
+
import fs from "node:fs";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
|
|
7
|
+
const IMPORT = /(?:\bfrom\s*|\bimport\s*\(?\s*)["'](\.{1,2}\/[^"']+)["']/g;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* [{ name, text }] sorted by name; `name` is the file's path relative to `base`, with forward slashes.
|
|
11
|
+
* An import that cannot be read throws: a hash or a receipt is never made over a list that skipped a file.
|
|
12
|
+
*/
|
|
13
|
+
export function codeClosure(entries, base, { readFile = (f) => fs.readFileSync(f, "utf8") } = {}) {
|
|
14
|
+
const seen = new Map();
|
|
15
|
+
const todo = [...entries];
|
|
16
|
+
while (todo.length) {
|
|
17
|
+
const file = todo.pop();
|
|
18
|
+
if (seen.has(file)) continue;
|
|
19
|
+
const text = readFile(file);
|
|
20
|
+
seen.set(file, text);
|
|
21
|
+
for (const m of text.matchAll(IMPORT)) todo.push(path.resolve(path.dirname(file), m[1]));
|
|
22
|
+
}
|
|
23
|
+
return [...seen].map(([file, text]) => ({ name: path.relative(base, file).split(path.sep).join("/"), text })).sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0));
|
|
24
|
+
}
|
package/consumer-contracts.mjs
CHANGED
|
@@ -550,7 +550,9 @@ function noticeLockDigest({ root, files }) {
|
|
|
550
550
|
const [, ref, recorded] = m;
|
|
551
551
|
consumed.add(m.index + m[0].lastIndexOf(recorded));
|
|
552
552
|
const line = lineOf(text, m.index);
|
|
553
|
-
|
|
553
|
+
// A repository-relative lock path takes precedence over an app-relative suffix.
|
|
554
|
+
const lock = declared.includes(ref) ? ref
|
|
555
|
+
: declared.find((f) => f.endsWith(`/${ref}`)) ?? upward(dirOf(file)).map((d) => join(d, ref)).find((f) => set.has(f));
|
|
554
556
|
if (!lock || !set.has(lock)) {
|
|
555
557
|
out.push({ file, subject: `${ref}:unresolved`, problem: `${file}:${line} UNSUPPORTED: records ${ref} sha256 ${recorded}, but no committed ${ref} at or above ${dirOf(file) || "."} (nor in a legal-snapshot notices.hashes entry) can be compared, so its freshness is not proven`, fix: `commit the lock the notice was generated from beside the app, or regenerate the notice from the lock that is committed` });
|
|
556
558
|
continue;
|
package/contract-nn.json
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "rightkit.contract-nn/1",
|
|
3
|
+
"contractSha256": "591d4ba2c8f6ec5d82daac6074f7a81b606b3c574e0d40e0ba146336f7fe109a",
|
|
4
|
+
"runnerFiles": [
|
|
5
|
+
"acceptance-launch.mjs",
|
|
6
|
+
"acceptance-lines.mjs",
|
|
7
|
+
"acceptance-lines.test.mjs"
|
|
8
|
+
],
|
|
9
|
+
"ids": [
|
|
10
|
+
"NN01",
|
|
11
|
+
"NN02",
|
|
12
|
+
"NN03",
|
|
13
|
+
"NN04",
|
|
14
|
+
"NN05",
|
|
15
|
+
"NN06",
|
|
16
|
+
"NN07",
|
|
17
|
+
"NN08",
|
|
18
|
+
"NN09",
|
|
19
|
+
"NN10",
|
|
20
|
+
"NN11",
|
|
21
|
+
"NN12"
|
|
22
|
+
],
|
|
23
|
+
"retiredRunner": {
|
|
24
|
+
"retiredIn": "rightkit#1514 step 9",
|
|
25
|
+
"ids": [
|
|
26
|
+
"NN01",
|
|
27
|
+
"NN02",
|
|
28
|
+
"NN03",
|
|
29
|
+
"NN04",
|
|
30
|
+
"NN05",
|
|
31
|
+
"NN06",
|
|
32
|
+
"NN07",
|
|
33
|
+
"NN08",
|
|
34
|
+
"NN09",
|
|
35
|
+
"NN10",
|
|
36
|
+
"NN11",
|
|
37
|
+
"NN12",
|
|
38
|
+
"NN13",
|
|
39
|
+
"NN14",
|
|
40
|
+
"NN15",
|
|
41
|
+
"NN16",
|
|
42
|
+
"NN17",
|
|
43
|
+
"NN18",
|
|
44
|
+
"NN19",
|
|
45
|
+
"NN20",
|
|
46
|
+
"NN21",
|
|
47
|
+
"NN22",
|
|
48
|
+
"NN23",
|
|
49
|
+
"NN24",
|
|
50
|
+
"NN25",
|
|
51
|
+
"NN26",
|
|
52
|
+
"NN27",
|
|
53
|
+
"NN28",
|
|
54
|
+
"NN29",
|
|
55
|
+
"NN30",
|
|
56
|
+
"NN31",
|
|
57
|
+
"NN32",
|
|
58
|
+
"NN33",
|
|
59
|
+
"NN34",
|
|
60
|
+
"NN35",
|
|
61
|
+
"NN36",
|
|
62
|
+
"NN37",
|
|
63
|
+
"NN38",
|
|
64
|
+
"NN39",
|
|
65
|
+
"NN40",
|
|
66
|
+
"NN41",
|
|
67
|
+
"NN42",
|
|
68
|
+
"NN43"
|
|
69
|
+
],
|
|
70
|
+
"contractSha256": "be3b14b429eb1328ea4ee45aa643c79118102f0755f2e373a170bd46b02bc2b1",
|
|
71
|
+
"budgetsSha256": "c49ca00d962e9352c2d6d3029fce09ff07ef937c8bd6dccaa672998c15559ead",
|
|
72
|
+
"runnerSha256": "68a396860b00079b0e71a7d37147d9605cee2ca8b28bda52f440a9fa06738d10",
|
|
73
|
+
"runnerFiles": [
|
|
74
|
+
{
|
|
75
|
+
"name": "background-process.mjs",
|
|
76
|
+
"sha256": "5f04c155825e6272692673cafe2079baa064f100462e18f190a403a42c4d1d7c"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "broker-client.mjs",
|
|
80
|
+
"sha256": "0beb5d9b953fe9048944c594dc91c61f5edcc1f4fad2fa8c56eeedff8e434198"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "code-closure.mjs",
|
|
84
|
+
"sha256": "f1bcabf9d892d38fd4013ba179209bbbd78e9c36cc66dda214928ddaf53cce4d"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "disk-policy.mjs",
|
|
88
|
+
"sha256": "edb494a57fe4c299220b2fdf0521fa16ca8d98fedb169466a54bd7be8e74959e"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "gate-acceptance.mjs",
|
|
92
|
+
"sha256": "68a396860b00079b0e71a7d37147d9605cee2ca8b28bda52f440a9fa06738d10"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "gate-seam.mjs",
|
|
96
|
+
"sha256": "bdba92b851e5e437a72e12f0a9f4ca224b0252bdd22442f5d7cfb60b4e5e96ec"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "gate-serve.mjs",
|
|
100
|
+
"sha256": "390d4ced1d9b6222e409caf6ae8476fe9ffdb3d269236aa120ebf3431e9b476f"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "managed-root-guard.mjs",
|
|
104
|
+
"sha256": "64da636e2f11bb21a142eb145c772da66f3e6af0bb4dec66c0a792958e473691"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "managed-roots.mjs",
|
|
108
|
+
"sha256": "f5a4bc986b53f83bf63967c839fcfd43bd7491117b8885741ad9757d03f49128"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "rustright-names.mjs",
|
|
112
|
+
"sha256": "327cbe8931c61222e11f266fb85026bf8fa371192493d630d4ef1ff6f8f58153"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "seam-broker.mjs",
|
|
116
|
+
"sha256": "35fea00c587f40d3f322fba0715e6ee9f773fef7b00624f9d7ad2cbeb200fb1b"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "snapshot-changes.mjs",
|
|
120
|
+
"sha256": "2b0bc905a927eb49b2a1617125b82bd36d6317d0266f01e1154c4187b51dd510"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "snapshot-git.mjs",
|
|
124
|
+
"sha256": "414d78b32e57b6daa6ab9149179d3d5004842acd27f8df953af2bba66f87d514"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "snapshot-identity.mjs",
|
|
128
|
+
"sha256": "0592fe0b891e46a6fe28ee27c540b5f2b217019fe4c3d09f68a9595b5051936a"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "snapshot-root-config.mjs",
|
|
132
|
+
"sha256": "c193557e5626c2170792aaefbf617e95153d5e817a0ff827974f15e035c8a7bc"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "snapshot.mjs",
|
|
136
|
+
"sha256": "d6b87a03be183ad51a5224088daca91aedd74c0eab5e4a9235f3dfdf675e414a"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"signedLaunches": [
|
|
140
|
+
{
|
|
141
|
+
"label": "S12:crate",
|
|
142
|
+
"commands": [
|
|
143
|
+
"clippy",
|
|
144
|
+
"test",
|
|
145
|
+
"build",
|
|
146
|
+
"check",
|
|
147
|
+
"doc"
|
|
148
|
+
],
|
|
149
|
+
"exitCode": 0,
|
|
150
|
+
"commit": "any"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"label": "S12:manifest",
|
|
154
|
+
"commands": [
|
|
155
|
+
"clippy",
|
|
156
|
+
"test",
|
|
157
|
+
"build",
|
|
158
|
+
"check",
|
|
159
|
+
"doc"
|
|
160
|
+
],
|
|
161
|
+
"exitCode": 0,
|
|
162
|
+
"commit": "any"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
}
|