@rightkit/release 0.6.92 → 0.6.93

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.
@@ -41,6 +41,19 @@ export function isClassAProgram(start) {
41
41
  if (name === "cargo") return ["deny", "audit"].includes(cargoVerb(args));
42
42
  return false;
43
43
  }
44
+ /**
45
+ * A cargo-deny row's own preparation, which it runs before `cargo deny` (deterministic-scans.mjs, the deny row): `cargo fetch --locked`, then
46
+ * `cargo metadata --format-version 1 --locked` (metadataArgs with noDeps false). Only that row starts cargo with exactly these arguments (after an
47
+ * optional `+toolchain`); every other metadata call names --no-deps, --offline, --filter-platform or --manifest-path, and every other fetch names a manifest.
48
+ */
49
+ export function isDenyPreparation(start) {
50
+ if (programName(start.program) !== "cargo") return false;
51
+ const args = (start.args ?? []).map(String).filter((a, i) => !(i === 0 && a.startsWith("+")));
52
+ const same = (want) => args.length === want.length && want.every((w, i) => args[i] === w);
53
+ return same(["fetch", "--locked"]) || same(["metadata", "--format-version", "1", "--locked"]);
54
+ }
55
+ /** NN03's view of Class A work: a row's own program, or the deny row's preparation, which starts the row on time though cargo deny starts after it. */
56
+ const isClassAWork = (start) => isClassAProgram(start) || isDenyPreparation(start);
44
57
  /** The workspace, verb, feature flags and targets of a broker job: what NN09 holds against the cases file's exact list. A command that names no --target builds for the host. */
45
58
  export function groupOf(job, hostTarget) {
46
59
  const args = job.args ?? []; const snap = plain(job.gate?.snapshot); const cwd = plain(job.cwd);
@@ -216,7 +229,9 @@ const LINES = {
216
229
  const run = c.runs[0]; const fails = []; const lanes = run.lanes;
217
230
  if (!Number.isInteger(lanes) || lanes < 1) return verdict(["the launcher recorded no lane count"], "");
218
231
  if (run.processGaps.length) fails.push(`the process record is incomplete (${run.processGaps[0]})`);
219
- const progs = run.starts.filter(isClassAProgram).sort((a, b) => a.at - b.at);
232
+ // A deny row's fetch and metadata count as its work (0.6.93 acceptance, 28 Nov: cold metadata took 3.9 s, and the row's cargo deny started 3.6 s
233
+ // after the program before it, which read as a row waiting beside a free lane though the row had started on time).
234
+ const progs = run.starts.filter(isClassAWork).sort((a, b) => a.at - b.at);
220
235
  const rows = Object.values(cases.classA?.programRows ?? {}).flat().length;
221
236
  if (progs.length < 2) return verdict([...fails, `${progs.length} Class A program(s) started in a run from nothing; the cases file lists ${rows} rows that start one`], "");
222
237
  const runningAt = (t) => progs.filter((p) => p.at <= t && (p.end === null || p.end > t)).length;
@@ -111,7 +111,7 @@ import { buildCoverageReport, limitedEvidenceOf, seconds, writeCoverageReport }
111
111
  import { renderViews, renderViewsOf } from "../render-views.mjs";
112
112
  import { LINUX_BROKER_ROUTE, NO_BROKER_ENV, directCargoPath, directPlatform, managedRuntimeClient, realCargoOf, runCargoSync } from "../managed-cargo.mjs";
113
113
  import { createBrokerLive } from "../broker-admission.mjs";
114
- import { bindingOf, builtBinsOfRun, compileOutputsRecord, compileReuseProblem, endRun, readReceipt, RECEIPT_SCHEMA, receiptKey, sameBinding, sameSource, sealedFor, stagesTo, startRun, STAGES, STAGE_SOURCES, writeReceipt } from "../gate-stages.mjs";
114
+ import { bindingOf, builtBinsOfRun, compileOutputsRecord, compileReuseProblem, compileStageReuse, endRun, readReceipt, RECEIPT_SCHEMA, receiptKey, sameBinding, sameSource, sealedFor, stagesTo, startRun, STAGES, STAGE_SOURCES, writeReceipt } from "../gate-stages.mjs";
115
115
  import { spawnSync as spawnInherit } from "../background-process.mjs";
116
116
  // GC-A21: a run that stamps its own lines also stamps its inherited-output children's lines, through stamp-relay.mjs in front of the child
117
117
  // (the launch stays synchronous and the output still streams). Set by main() when the run stamps; off for machine-readable runs.
@@ -2315,8 +2315,14 @@ async function runStages(o, args, root, git, io) {
2315
2315
  // GB-13 (GATE E6/E7/E16): a recorded compile stands only while the outputs it recorded are still on disk and the compile environment is
2316
2316
  // the one it ran in; otherwise the compile runs again, warm (never a cleared target), unless the sealed bytes below carry it.
2317
2317
  const outputsProblem = (o.compileReuseProblem ?? compileReuseProblem)(receipt.stages.compile, { env: o.env });
2318
- if (!outputsProblem) { o.out(`${tag} [${stage}] already passed for this exact input (commit, tree, lockfiles, gate, toolchain) and its outputs are intact`); continue; }
2319
- if (!sealedIntact) o.out(`${tag} [${stage}] the recorded compile no longer stands: ${outputsProblem}; running it again (warm)`);
2318
+ // On a broker host a package stage that will run needs each Cargo workspace's broker output folder, which only the compile stage hands on
2319
+ // (onCompileOutputs). The recorded compile keeps the folders, not which workspace each belongs to, so skipping the stage whole left the package
2320
+ // admission with no target and it refused RK_SPLIT_TARGET_UNRESOLVED (CodeRight qualify on the Mac, 27 Nov, eaef5f533). There the compile takes
2321
+ // its ordinary path instead: every row is a cache hit, the broker is asked nothing, and the cached rows' receipts name the folders (rightkit#1800).
2322
+ const reuse = compileStageReuse({ outputsProblem, executorKind: executor.kind, stages, sealedIntact });
2323
+ if (reuse === "rows") o.out(`${tag} [${stage}] already passed for this exact input and its outputs are intact; its rows are read again from the cache so the package stage knows each workspace's Cargo target`);
2324
+ else if (reuse === "skip") { o.out(`${tag} [${stage}] already passed for this exact input (commit, tree, lockfiles, gate, toolchain) and its outputs are intact`); continue; }
2325
+ if (outputsProblem && !sealedIntact) o.out(`${tag} [${stage}] the recorded compile no longer stands: ${outputsProblem}; running it again (warm)`);
2320
2326
  }
2321
2327
  if (((stage === "check" && publisherUploadOnly) || stage === "compile" || stage === "package") && sealedIntact) {
2322
2328
  o.out(`${tag} [${stage}] already passed for the sealed set ${sealedNow.id} (manifest ${sealedNow.digest.slice(0, 12)})`); continue;
package/gate-stages.mjs CHANGED
@@ -350,6 +350,18 @@ export function compileReuseProblem(recorded, { env = {}, census = outputCensus
350
350
  return null;
351
351
  }
352
352
 
353
+ /**
354
+ * What a door run does with a recorded passing compile: "skip" (it stands; the stage is not run), "rows" (it stands, but the stage takes its
355
+ * ordinary path so each row answers from the cache and names its workspace's broker output folder), or "rerun" (it no longer stands).
356
+ * "rows" is for a broker host whose package stage will run: the package admission resolves each Cargo workspace's target from the folders the
357
+ * compile stage hands on, and the record keeps the folders but not which workspace each belongs to. Skipping the stage left that admission with no
358
+ * target: RK_SPLIT_TARGET_UNRESOLVED (CodeRight qualify on the Mac, 27 Nov 2026, after a compile that had already passed).
359
+ */
360
+ export function compileStageReuse({ outputsProblem, executorKind, stages, sealedIntact }) {
361
+ if (outputsProblem) return "rerun";
362
+ return executorKind === "broker" && (stages ?? []).includes("package") && !sealedIntact ? "rows" : "skip";
363
+ }
364
+
353
365
  /** The sealed release directory build-release wrote for `commit` on `platform`: { id, manifest, digest } or null. */
354
366
  export function sealedFor({ root, commit, platform, readdir = fs.readdirSync, readFile = (f) => fs.readFileSync(f) }) {
355
367
  const base = path.join(root, ".right-release", "sealed");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rightkit/release",
3
- "version": "0.6.92",
3
+ "version": "0.6.93",
4
4
  "description": "Portable release CLI/SDK with fail-closed public GitHub Releases and private R2 + RightApps distribution.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "type": "module",
@@ -49,7 +49,7 @@
49
49
  "@rightkit/qa": "0.7.0",
50
50
  "@rightkit/qa-chrome": "0.1.12",
51
51
  "@rightkit/react-shell": "0.7.9",
52
- "@rightkit/release": "0.6.92",
52
+ "@rightkit/release": "0.6.93",
53
53
  "@rightkit/send-ui": "0.1.0",
54
54
  "@rightkit/settings-ui": "0.7.7",
55
55
  "@rightkit/social-ui": "0.2.1",
@@ -458,7 +458,8 @@
458
458
  "0.6.88",
459
459
  "0.6.89",
460
460
  "0.6.90",
461
- "0.6.91"
461
+ "0.6.91",
462
+ "0.6.92"
462
463
  ],
463
464
  "@rightkit/settings-ui": [
464
465
  "0.1.0",
@@ -561,9 +562,9 @@
561
562
  "rightkit-agent-engine-api-workflows": "0.2.2",
562
563
  "rightkit-agent-engine-attention": "0.2.2",
563
564
  "rightkit-agent-engine-cli": "0.1.1",
564
- "rightkit-agent-engine-core": "0.2.0",
565
+ "rightkit-agent-engine-core": "0.2.1",
565
566
  "rightkit-agent-engine-history": "0.1.6",
566
- "rightkit-agent-engine-mobile-runtime": "0.1.1",
567
+ "rightkit-agent-engine-mobile-runtime": "0.1.2",
567
568
  "rightkit-agent-engine-protocol": "0.4.1",
568
569
  "rightkit-agent-engine-runtime-middleware": "0.1.4",
569
570
  "rightkit-agent-engine-runtime-resources": "0.1.2",
@@ -579,7 +580,7 @@
579
580
  "rightkit-agent-policy": "0.2.4",
580
581
  "rightkit-agent-recipes": "0.1.3",
581
582
  "rightkit-agent-server": "0.2.0",
582
- "rightkit-agent-skills": "0.1.0",
583
+ "rightkit-agent-skills": "0.2.0",
583
584
  "rightkit-agent-task-contract": "0.1.2",
584
585
  "rightkit-agent-task-journal": "0.1.1",
585
586
  "rightkit-agent-telemetry": "0.1.1",
@@ -593,13 +594,13 @@
593
594
  "rightkit-app-icon": "0.1.1",
594
595
  "rightkit-app-lock": "0.1.1",
595
596
  "rightkit-app-manager": "0.2.5",
596
- "rightkit-app-settings": "0.4.4",
597
+ "rightkit-app-settings": "0.4.5",
597
598
  "rightkit-app-update": "0.2.1",
598
599
  "rightkit-apple-ops": "0.2.0",
599
600
  "rightkit-approvals": "0.2.2",
600
601
  "rightkit-asr": "0.5.2",
601
602
  "rightkit-assist": "0.1.1",
602
- "rightkit-audio": "0.4.5",
603
+ "rightkit-audio": "0.4.6",
603
604
  "rightkit-autoedit": "0.2.1",
604
605
  "rightkit-automation": "0.7.6",
605
606
  "rightkit-autostart": "0.1.1",
@@ -646,7 +647,7 @@
646
647
  "rightkit-device-link": "0.1.0",
647
648
  "rightkit-device-link-core": "0.1.1",
648
649
  "rightkit-device-link-types": "0.1.2",
649
- "rightkit-dictation-app-runtime": "0.3.2",
650
+ "rightkit-dictation-app-runtime": "0.3.3",
650
651
  "rightkit-dictation-command-host": "0.3.4",
651
652
  "rightkit-dictation-core": "0.3.7",
652
653
  "rightkit-dictation-engine": "0.2.1",
@@ -691,7 +692,7 @@
691
692
  "rightkit-launcher": "0.2.2",
692
693
  "rightkit-launcher-win": "0.2.1",
693
694
  "rightkit-library": "0.3.1",
694
- "rightkit-license": "0.3.5",
695
+ "rightkit-license": "0.3.6",
695
696
  "rightkit-llm": "0.7.2",
696
697
  "rightkit-local-gen": "0.1.4",
697
698
  "rightkit-logs": "0.4.5",
@@ -761,7 +762,7 @@
761
762
  "rightkit-sync-keys": "0.1.0",
762
763
  "rightkit-sysmem": "0.1.0",
763
764
  "rightkit-system-monitor": "0.3.2",
764
- "rightkit-tauri-shell": "0.8.11",
765
+ "rightkit-tauri-shell": "0.8.12",
765
766
  "rightkit-terminal-ui": "0.2.0",
766
767
  "rightkit-text-polish": "0.1.4",
767
768
  "rightkit-theme": "0.1.1",
@@ -926,7 +927,7 @@
926
927
  "@rightkit/qa": "0.7.0",
927
928
  "@rightkit/qa-chrome": "0.1.12",
928
929
  "@rightkit/react-shell": "0.7.7",
929
- "@rightkit/release": "0.6.91",
930
+ "@rightkit/release": "0.6.92",
930
931
  "@rightkit/settings-ui": "0.7.4",
931
932
  "@rightkit/shell": "0.1.1",
932
933
  "@rightkit/tauri": "0.4.3",
@@ -947,7 +948,8 @@
947
948
  ],
948
949
  "rightkit-agent-engine-core": [
949
950
  "0.1.3",
950
- "0.1.4"
951
+ "0.1.4",
952
+ "0.2.0"
951
953
  ],
952
954
  "rightkit-agent-local-models": [
953
955
  "0.1.1",
@@ -1007,7 +1009,8 @@
1007
1009
  "0.3.0",
1008
1010
  "0.4.1",
1009
1011
  "0.4.2",
1010
- "0.4.3"
1012
+ "0.4.3",
1013
+ "0.4.4"
1011
1014
  ],
1012
1015
  "rightkit-asr": [
1013
1016
  "0.0.2",
@@ -1033,7 +1036,8 @@
1033
1036
  "0.4.0",
1034
1037
  "0.4.1",
1035
1038
  "0.4.3",
1036
- "0.4.4"
1039
+ "0.4.4",
1040
+ "0.4.5"
1037
1041
  ],
1038
1042
  "rightkit-automation": [
1039
1043
  "0.3.0",
@@ -1186,7 +1190,8 @@
1186
1190
  "rightkit-dictation-app-runtime": [
1187
1191
  "0.2.0",
1188
1192
  "0.2.2",
1189
- "0.3.1"
1193
+ "0.3.1",
1194
+ "0.3.2"
1190
1195
  ],
1191
1196
  "rightkit-dictation-command-host": [
1192
1197
  "0.3.0",
@@ -1358,7 +1363,8 @@
1358
1363
  "0.2.5",
1359
1364
  "0.3.1",
1360
1365
  "0.3.2",
1361
- "0.3.4"
1366
+ "0.3.4",
1367
+ "0.3.5"
1362
1368
  ],
1363
1369
  "rightkit-llm": [
1364
1370
  "0.1.0",
@@ -1688,7 +1694,8 @@
1688
1694
  "0.8.2",
1689
1695
  "0.8.7",
1690
1696
  "0.8.9",
1691
- "0.8.10"
1697
+ "0.8.10",
1698
+ "0.8.11"
1692
1699
  ],
1693
1700
  "rightkit-text-polish": [
1694
1701
  "0.1.1",