omnius 1.0.940 → 1.0.942

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/library.js CHANGED
@@ -344629,7 +344629,7 @@ __export(preflightSnapshot_exports, {
344629
344629
  import { existsSync as existsSync59, readFileSync as readFileSync65, statSync as statSync32, statfsSync as statfsSync4 } from "node:fs";
344630
344630
  import { homedir as homedir21, platform as platform3, arch, totalmem as totalmem4, freemem as freemem3, hostname } from "node:os";
344631
344631
  import { join as join75 } from "node:path";
344632
- import { createHash as createHash124 } from "node:crypto";
344632
+ import { createHash as createHash125 } from "node:crypto";
344633
344633
  function capturePreflightSnapshot(workingDir) {
344634
344634
  const warnings = [];
344635
344635
  const configFingerprints = {};
@@ -344798,7 +344798,7 @@ function expandPath(p) {
344798
344798
  return p;
344799
344799
  }
344800
344800
  function sha2569(s) {
344801
- return createHash124("sha256").update(s).digest("hex").slice(0, 16);
344801
+ return createHash125("sha256").update(s).digest("hex").slice(0, 16);
344802
344802
  }
344803
344803
  function freeDiskBytes(path13 = "/tmp") {
344804
344804
  try {
@@ -353765,7 +353765,7 @@ var gne_conformance_exports = {};
353765
353765
  __export(gne_conformance_exports, {
353766
353766
  verifyNolGneConformanceCapture: () => verifyNolGneConformanceCapture
353767
353767
  });
353768
- import { createHash as createHash133 } from "node:crypto";
353768
+ import { createHash as createHash134 } from "node:crypto";
353769
353769
  function need4(condition, message3) {
353770
353770
  if (!condition) throw new Error(`GNE capture ${message3}`);
353771
353771
  }
@@ -354369,7 +354369,7 @@ var init_gne_conformance = __esm({
354369
354369
  "restored_target",
354370
354370
  "vector"
354371
354371
  ];
354372
- hash22 = (bytes5) => createHash133("sha256").update(bytes5).digest("hex");
354372
+ hash22 = (bytes5) => createHash134("sha256").update(bytes5).digest("hex");
354373
354373
  CRC_TABLE = Uint32Array.from({ length: 256 }, (_, value) => {
354374
354374
  let crc = value;
354375
354375
  for (let bit = 0; bit < 8; bit++)
@@ -400892,6 +400892,24 @@ function tokenLooksPathSensitive(token5) {
400892
400892
  function isPathSensitiveFix(fix) {
400893
400893
  return [...fix.from ?? [], ...fix.to ?? []].some(tokenLooksPathSensitive);
400894
400894
  }
400895
+ var DESTRUCTIVE_PROGRAMS = /* @__PURE__ */ new Set([
400896
+ "rm",
400897
+ "rmdir",
400898
+ "unlink",
400899
+ "shred",
400900
+ "dd",
400901
+ "mkfs",
400902
+ "truncate",
400903
+ "wipefs",
400904
+ "kill",
400905
+ "pkill",
400906
+ "killall"
400907
+ ]);
400908
+ function isDestructiveFix(fix) {
400909
+ const before = new Set(fix.from ?? []);
400910
+ const added = (fix.to ?? []).filter((token5) => !before.has(token5));
400911
+ return added.some((token5) => DESTRUCTIVE_PROGRAMS.has(token5) || /^mkfs(\.|$)/.test(token5) || token5 === "--hard" || token5 === "--force" || token5 === "-rf" || token5 === "-fr");
400912
+ }
400895
400913
  function isNearVariant(a, b) {
400896
400914
  if (a.length === 0 || b.length === 0)
400897
400915
  return false;
@@ -400924,7 +400942,7 @@ var ResolutionMemory = class {
400924
400942
  /** Load prior fixes (cross-session). */
400925
400943
  loadFixes(fixes) {
400926
400944
  for (const f of fixes) {
400927
- if (Array.isArray(f.from) && Array.isArray(f.to) && f.from.length > 0 && !isPathSensitiveFix(f)) {
400945
+ if (Array.isArray(f.from) && Array.isArray(f.to) && f.from.length > 0 && !isPathSensitiveFix(f) && !isDestructiveFix(f)) {
400928
400946
  this.fixes.push(f);
400929
400947
  }
400930
400948
  }
@@ -400973,7 +400991,7 @@ var ResolutionMemory = class {
400973
400991
  const delta = computeDelta(fail6.tokens, workedTokens);
400974
400992
  if (!delta)
400975
400993
  continue;
400976
- if (isPathSensitiveFix(delta)) {
400994
+ if (isPathSensitiveFix(delta) || isDestructiveFix(delta)) {
400977
400995
  this.recentFailures.splice(i, 1);
400978
400996
  return null;
400979
400997
  }
@@ -401013,7 +401031,7 @@ var ResolutionMemory = class {
401013
401031
  const tokens3 = new Set(tokenize5(command));
401014
401032
  let best = null;
401015
401033
  for (const f of this.fixes) {
401016
- if (isPathSensitiveFix(f))
401034
+ if (isPathSensitiveFix(f) || isDestructiveFix(f))
401017
401035
  continue;
401018
401036
  if (f.from.every((t) => tokens3.has(t))) {
401019
401037
  if (!best || f.count > best.count)
@@ -402060,6 +402078,102 @@ function reopenTaskEffectStateEvidence(input2) {
402060
402078
  };
402061
402079
  }
402062
402080
 
402081
+ // packages/orchestrator/dist/loop-triage.js
402082
+ import { createHash as createHash124 } from "node:crypto";
402083
+ var LOOP_TRIAGE_STREAK = 3;
402084
+ var LOOP_TRIAGE_REVIEW_HEADER = "[OMNIUS RUN REVIEW — independent second opinion on this run from the Omnius triage reviewer; this is the harness, not the user]";
402085
+ function toolTurns(messages4) {
402086
+ const results = /* @__PURE__ */ new Map();
402087
+ for (const message3 of messages4) {
402088
+ if (message3.role === "tool" && message3.tool_call_id) {
402089
+ results.set(message3.tool_call_id, typeof message3.content === "string" ? message3.content : "");
402090
+ }
402091
+ }
402092
+ const turns = [];
402093
+ for (const message3 of messages4) {
402094
+ if (message3.role !== "assistant" || !message3.tool_calls?.length)
402095
+ continue;
402096
+ turns.push(message3.tool_calls.map((call3) => {
402097
+ const raw = call3.function.arguments;
402098
+ const args = typeof raw === "string" ? raw : JSON.stringify(raw ?? {});
402099
+ return { tool: call3.function.name, args, result: results.get(call3.id) ?? "" };
402100
+ }));
402101
+ }
402102
+ return turns;
402103
+ }
402104
+ function turnIdentity(turn) {
402105
+ return turn.map((pair) => `${pair.tool}\0${pair.args}`).sort().join("");
402106
+ }
402107
+ function repeatedCallStreak(messages4, threshold = LOOP_TRIAGE_STREAK) {
402108
+ const identities2 = toolTurns(messages4).map(turnIdentity);
402109
+ const last = identities2.at(-1);
402110
+ if (last === void 0)
402111
+ return null;
402112
+ let count8 = 0;
402113
+ for (let index = identities2.length - 1; index >= 0 && identities2[index] === last; index--)
402114
+ count8++;
402115
+ if (count8 < threshold)
402116
+ return null;
402117
+ const key = createHash124("sha256").update(last).digest("hex").slice(0, 16);
402118
+ return { key, count: count8 };
402119
+ }
402120
+ function oneLine(value, limit2) {
402121
+ return value.replace(/\s+/g, " ").trim().slice(0, limit2);
402122
+ }
402123
+ function collapsedTrajectory(messages4, maxLines = 40) {
402124
+ const lines = [];
402125
+ let previousIdentity = "", previousLines = [], repeats = 0;
402126
+ const flush = () => {
402127
+ if (!previousLines.length)
402128
+ return;
402129
+ const suffix = repeats <= 1 ? "" : previousLines.length === 1 ? ` (x${repeats}, same call each time)` : ` (this batch of ${previousLines.length} calls x${repeats}, same calls each time)`;
402130
+ lines.push(...previousLines.slice(0, -1), previousLines.at(-1) + suffix);
402131
+ };
402132
+ for (const turn of toolTurns(messages4)) {
402133
+ const identity9 = turnIdentity(turn);
402134
+ if (identity9 === previousIdentity) {
402135
+ repeats++;
402136
+ continue;
402137
+ }
402138
+ flush();
402139
+ previousIdentity = identity9;
402140
+ previousLines = turn.map((pair) => `- ${pair.tool}: ${oneLine(pair.args, 220)} -> ${oneLine(pair.result.slice(-400), 160)}`);
402141
+ repeats = 1;
402142
+ }
402143
+ flush();
402144
+ return lines.slice(-maxLines).join("\n");
402145
+ }
402146
+ function buildLoopTriagePrompt(goal, messages4) {
402147
+ return [
402148
+ "You are an independent triage reviewer auditing another agent's live run. You do not do the task yourself.",
402149
+ `The agent's current request from the user: "${oneLine(goal, 600)}"`,
402150
+ "Here is the agent's tool trajectory so far, oldest first, consecutive identical calls collapsed:",
402151
+ "",
402152
+ collapsedTrajectory(messages4),
402153
+ "",
402154
+ "Assess what appears to have happened in this run: what has actually been accomplished toward the request, what the agent appears to be stuck on and why, and what the single most useful next step is to move the user's request forward (or whether it should report back to the user). Be concrete and specific to this run. Reply in under 150 words, addressed to the agent as a second opinion."
402155
+ ].join("\n");
402156
+ }
402157
+ function withLoopTriageReview(messages4, review) {
402158
+ const next = [...messages4];
402159
+ const lastTool = next.map((message3) => message3.role).lastIndexOf("tool");
402160
+ const body = typeof review.content === "string" ? review.content.slice(LOOP_TRIAGE_REVIEW_HEADER.length).trim() : "";
402161
+ const target2 = lastTool >= 0 ? next[lastTool] : void 0;
402162
+ if (target2 && typeof target2.content === "string" && body) {
402163
+ next[lastTool] = { ...target2, content: `${target2.content}
402164
+
402165
+ [TRIAGE REVIEW — second opinion from an independent reviewer of this run]
402166
+ ${body}` };
402167
+ }
402168
+ next.push(review);
402169
+ return next;
402170
+ }
402171
+ function loopTriageReviewMessage(review) {
402172
+ const text18 = review.replace(/<think>[\s\S]*?<\/think>/g, "").trim().slice(0, 2400);
402173
+ return text18 ? { role: "user", content: `${LOOP_TRIAGE_REVIEW_HEADER}
402174
+ ${text18}` } : null;
402175
+ }
402176
+
402063
402177
  // packages/orchestrator/dist/completionChallenge.js
402064
402178
  var hash18 = (value) => typeof value === "string" && /^[a-f0-9]{64}$/.test(value);
402065
402179
  function identity6(scope2) {
@@ -402684,8 +402798,8 @@ function buildFallbackSemanticChunks(items, maxChunks = 7) {
402684
402798
  continue;
402685
402799
  const rawChars = bucketItems.reduce((sum2, item) => sum2 + item.content.length, 0);
402686
402800
  const lines = bucketItems.slice(0, 5).map((item) => {
402687
- const oneLine = item.content.replace(/\s+/g, " ").trim();
402688
- return `- ${item.label}: ${oneLine.slice(0, 360)}`;
402801
+ const oneLine2 = item.content.replace(/\s+/g, " ").trim();
402802
+ return `- ${item.label}: ${oneLine2.slice(0, 360)}`;
402689
402803
  });
402690
402804
  const content = normalizeContextSnippet(lines.join("\n"), 850);
402691
402805
  chunks.push({
@@ -403567,6 +403681,10 @@ var AgenticRunner = class _AgenticRunner {
403567
403681
  // Loop Intervention escalation path. Reset when repetition score
403568
403682
  // drops below the recovery threshold (0.2).
403569
403683
  _smaFiredThisLoop = false;
403684
+ /** Second opinion for the current identical-call streak; see loop-triage.ts. */
403685
+ _loopTriage = null;
403686
+ _loopTriageActiveKey = null;
403687
+ _loopTriageAttemptedKeys = /* @__PURE__ */ new Set();
403570
403688
  // ROOT CAUSE FIX: one-shot system note describing restored-todo claims that
403571
403689
  // were contradicted by the disk at session start. Injected into the initial
403572
403690
  // context so the model starts from a truthful world model instead of
@@ -419726,12 +419844,12 @@ ${blob}
419726
419844
  }
419727
419845
  _formatExactArgValue(value) {
419728
419846
  const canonical9 = this._canonicalArgValue(value);
419729
- const oneLine = canonical9.replace(/\r/g, "\\r").replace(/\n/g, "\\n");
419730
- if (oneLine.length <= 240) {
419731
- return this._escapeArgsKeyValue(oneLine);
419847
+ const oneLine2 = canonical9.replace(/\r/g, "\\r").replace(/\n/g, "\\n");
419848
+ if (oneLine2.length <= 240) {
419849
+ return this._escapeArgsKeyValue(oneLine2);
419732
419850
  }
419733
- const head = oneLine.slice(0, 160);
419734
- const tail = oneLine.slice(-40);
419851
+ const head = oneLine2.slice(0, 160);
419852
+ const tail = oneLine2.slice(-40);
419735
419853
  const hash41 = _createHash("sha256").update(canonical9).digest("hex").slice(0, 20);
419736
419854
  return `${this._escapeArgsKeyValue(head)}...${this._escapeArgsKeyValue(tail)}#sha256:${hash41}`;
419737
419855
  }
@@ -434645,8 +434763,8 @@ State what you've learned from the errors before trying again.`);
434645
434763
  if (process.env["OMNIUS_DISABLE_ADAPTIVE_RETRIEVAL"] !== "1") {
434646
434764
  const goalForSig = (this._taskState.goal || "").slice(0, 200);
434647
434765
  const recentTools = this._toolSequence.slice(-5).join("|");
434648
- const { createHash: createHash173 } = await import("node:crypto");
434649
- const sig = createHash173("sha256").update(`${goalForSig}::${recentTools}`).digest("hex").slice(0, 16);
434766
+ const { createHash: createHash174 } = await import("node:crypto");
434767
+ const sig = createHash174("sha256").update(`${goalForSig}::${recentTools}`).digest("hex").slice(0, 16);
434650
434768
  if (this._lastPprSig === sig && this._lastPprMemoryLines.length > 0) {
434651
434769
  compacted.push({
434652
434770
  role: "system",
@@ -434848,6 +434966,9 @@ ${memoryLines.join("\n")}`
434848
434966
  if (this._toolDefsExposureRevision !== this._toolExposureRevision) {
434849
434967
  toolDefs = textToolModeActive ? [] : await this.buildToolDefinitions(turn);
434850
434968
  }
434969
+ if (this._loopTriage && this._loopTriageActiveKey === this._loopTriage.key) {
434970
+ requestMessages2 = withLoopTriageReview(requestMessages2, this._loopTriage.message);
434971
+ }
434851
434972
  const chatRequest = {
434852
434973
  messages: requestMessages2,
434853
434974
  tools: reservedFinalConversationTurn ? [] : toolDefs,
@@ -435831,6 +435952,7 @@ ${transportFailure2}` : transportFailure2;
435831
435952
  this._finishNegativeObservationProposalTurn(turn, msg.toolCalls.length);
435832
435953
  if (completed || this._completionIncompleteVerification)
435833
435954
  break;
435955
+ await this._refreshLoopTriageReview(messages4, turn);
435834
435956
  const currentRepScore = this.detectRepetition(toolCallLog);
435835
435957
  if (currentRepScore > 0.4 && toolCallLog.length >= 4) {
435836
435958
  const { repetitionWindow } = this.contextLimits();
@@ -441379,6 +441501,52 @@ ${trimmedNew}`;
441379
441501
  }
441380
441502
  }
441381
441503
  }
441504
+ /**
441505
+ * Ask an independent reviewer, once per streak, what appears to have
441506
+ * happened when the run keeps issuing the same call. Its diagnosis is the
441507
+ * reviewer's own prose about this run, not a host directive; it is shown
441508
+ * only while the streak lasts and never changes tools or completion rules.
441509
+ */
441510
+ async _refreshLoopTriageReview(messages4, turn) {
441511
+ const streak = repeatedCallStreak(messages4);
441512
+ this._loopTriageActiveKey = streak?.key ?? null;
441513
+ if (!streak) {
441514
+ this._loopTriage = null;
441515
+ return;
441516
+ }
441517
+ if (this._loopTriage?.key === streak.key || this._loopTriageAttemptedKeys.has(streak.key))
441518
+ return;
441519
+ this._loopTriageAttemptedKeys.add(streak.key);
441520
+ const goal = this._taskState.originalGoal || this._taskState.goal || "";
441521
+ try {
441522
+ const response = await this._dispatchInterruptionOwnedModelRequest(this.backend, {
441523
+ messages: [{ role: "user", content: buildLoopTriagePrompt(goal, messages4) }],
441524
+ tools: [],
441525
+ temperature: 0.3,
441526
+ maxTokens: 6e3,
441527
+ timeoutMs: 18e4,
441528
+ think: true
441529
+ }, "model:loop_triage", { turn });
441530
+ const message3 = loopTriageReviewMessage(String(response?.choices?.[0]?.message?.content ?? ""));
441531
+ if (message3)
441532
+ this._loopTriage = { key: streak.key, message: message3 };
441533
+ this.emit({
441534
+ type: "status",
441535
+ visibility: "telemetry",
441536
+ turn,
441537
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
441538
+ content: message3 ? `Loop triage: second opinion recorded after ${streak.count} identical tool turns` : `Loop triage: reviewer returned no assessment after ${streak.count} identical tool turns`
441539
+ });
441540
+ } catch (error) {
441541
+ this.emit({
441542
+ type: "status",
441543
+ visibility: "telemetry",
441544
+ turn,
441545
+ timestamp: (/* @__PURE__ */ new Date()).toISOString(),
441546
+ content: `Loop triage unavailable (non-fatal): ${error instanceof Error ? error.message : String(error)}`
441547
+ });
441548
+ }
441549
+ }
441382
441550
  _recordLoopRecoveryAdvisory(input2) {
441383
441551
  this._refreshLoopRecoveryAdvisory();
441384
441552
  if (this._objectiveLastDelta?.materiallyChanged || this._objectiveLastDelta?.preparatoryProgress)
@@ -447198,17 +447366,17 @@ var WORKER_PREAMBLE = [
447198
447366
  // packages/orchestrator/dist/nol/datasets.js
447199
447367
  init_dist();
447200
447368
  init_dist5();
447201
- import { createHash as createHash125 } from "node:crypto";
447369
+ import { createHash as createHash126 } from "node:crypto";
447202
447370
  var nolCanonicalJson = canonicalNolJson;
447203
447371
  function nolDigest(value) {
447204
- return createHash125("sha256").update(nolCanonicalJson(value)).digest("hex");
447372
+ return createHash126("sha256").update(nolCanonicalJson(value)).digest("hex");
447205
447373
  }
447206
447374
 
447207
447375
  // packages/orchestrator/dist/nol/evaluation.js
447208
447376
  var import_ajv = __toESM(require_ajv(), 1);
447209
447377
  var import__ = __toESM(require__(), 1);
447210
447378
  var import_formats = __toESM(require_formats(), 1);
447211
- import { createHash as createHash126 } from "node:crypto";
447379
+ import { createHash as createHash127 } from "node:crypto";
447212
447380
  import { readFileSync as readFileSync67 } from "node:fs";
447213
447381
  import { createRequire as createRequire3 } from "node:module";
447214
447382
  import { fileURLToPath as fileURLToPath8 } from "node:url";
@@ -447321,7 +447489,7 @@ function createNolJsonSchemaValidator(schema, options = {}) {
447321
447489
  const compiled = engine.compile(frozenSchema);
447322
447490
  if ("$async" in compiled && compiled.$async)
447323
447491
  throw new Error("nol_async_schema_forbidden");
447324
- const bytesDigest = (path13) => createHash126("sha256").update(readFileSync67(path13)).digest("hex");
447492
+ const bytesDigest = (path13) => createHash127("sha256").update(readFileSync67(path13)).digest("hex");
447325
447493
  const implementationDigest = nolDigest({
447326
447494
  implementation: "omnius.nol.ajv-frozen.v1",
447327
447495
  draft,
@@ -447892,7 +448060,7 @@ function statisticalTrialFromResult(input2) {
447892
448060
  // packages/orchestrator/dist/nol/coordinator.js
447893
448061
  init_dist();
447894
448062
  init_dist5();
447895
- import { createHash as createHash127, randomUUID as randomUUID57 } from "node:crypto";
448063
+ import { createHash as createHash128, randomUUID as randomUUID57 } from "node:crypto";
447896
448064
  var NolComputeTrialError = class extends Error {
447897
448065
  facts;
447898
448066
  constructor(message3, facts) {
@@ -448053,7 +448221,7 @@ var NolCoordinator = class {
448053
448221
  context.assertCurrent();
448054
448222
  if (bytes5.byteLength > experiment.budgets.maxArtifactBytes)
448055
448223
  throw new NolCoordinatorBudgetError("NOL artifact exceeds its aggregate byte budget");
448056
- const immutable2 = Buffer.from(bytes5), sha25611 = createHash127("sha256").update(immutable2).digest("hex");
448224
+ const immutable2 = Buffer.from(bytes5), sha25611 = createHash128("sha256").update(immutable2).digest("hex");
448057
448225
  const ref11 = NolArtifactRefSchema.parse({
448058
448226
  uri: `omnius-artifact://sha256/${sha25611}`,
448059
448227
  sha256: sha25611,
@@ -450075,7 +450243,7 @@ async function runNolDiscovery(input2) {
450075
450243
  // packages/orchestrator/dist/nol/model-validation.js
450076
450244
  init_dist();
450077
450245
  init_dist5();
450078
- import { createHash as createHash128, randomUUID as randomUUID58 } from "node:crypto";
450246
+ import { createHash as createHash129, randomUUID as randomUUID58 } from "node:crypto";
450079
450247
  var NOL_MODEL_VALIDATION_KIND = "nol_model_validation";
450080
450248
  function fail5(ok2, message3) {
450081
450249
  if (!ok2)
@@ -450166,7 +450334,7 @@ var Inputs = class {
450166
450334
  await this.verify(ref11);
450167
450335
  const bytes5 = await this.artifacts.readBytes(ref11, this.signal);
450168
450336
  this.signal.throwIfAborted();
450169
- fail5(bytes5.byteLength === ref11.sizeBytes && bytes5.byteLength <= this.limits.maxMetadataBytes && createHash128("sha256").update(bytes5).digest("hex") === ref11.sha256, "Metadata byte extent/hash mismatch");
450337
+ fail5(bytes5.byteLength === ref11.sizeBytes && bytes5.byteLength <= this.limits.maxMetadataBytes && createHash129("sha256").update(bytes5).digest("hex") === ref11.sha256, "Metadata byte extent/hash mismatch");
450170
450338
  const value = JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(bytes5));
450171
450339
  canonicalNolJson(value);
450172
450340
  return value;
@@ -450519,7 +450687,7 @@ var NolModelValidationService = class {
450519
450687
  active.controller.signal.throwIfAborted();
450520
450688
  this.options.store.assertCurrent(active.lease);
450521
450689
  }
450522
- const sha25611 = createHash128("sha256").update(bytes5).digest("hex");
450690
+ const sha25611 = createHash129("sha256").update(bytes5).digest("hex");
450523
450691
  const ref11 = NolArtifactRefSchema.parse({
450524
450692
  uri: `omnius-artifact://sha256/${sha25611}`,
450525
450693
  sha256: sha25611,
@@ -451061,7 +451229,7 @@ var NolModelValidationService = class {
451061
451229
  // packages/orchestrator/dist/nol/variant-registry.js
451062
451230
  init_dist();
451063
451231
  init_dist5();
451064
- import { createHash as createHash129, randomUUID as randomUUID59 } from "node:crypto";
451232
+ import { createHash as createHash130, randomUUID as randomUUID59 } from "node:crypto";
451065
451233
  var contexts = /* @__PURE__ */ new WeakMap();
451066
451234
  var modelContexts = /* @__PURE__ */ new WeakMap();
451067
451235
  var clone6 = (value) => JSON.parse(canonicalNolJson(value));
@@ -451369,7 +451537,7 @@ var Verification = class {
451369
451537
  await this.verify(ref11);
451370
451538
  const bytes5 = await bounded3(this.artifacts.readBytes(ref11, this.signal), this.signal);
451371
451539
  this.signal.throwIfAborted();
451372
- if (bytes5.byteLength !== ref11.sizeBytes || bytes5.byteLength > this.limits.maxMetadataBytes || createHash129("sha256").update(bytes5).digest("hex") !== ref11.sha256)
451540
+ if (bytes5.byteLength !== ref11.sizeBytes || bytes5.byteLength > this.limits.maxMetadataBytes || createHash130("sha256").update(bytes5).digest("hex") !== ref11.sha256)
451373
451541
  throw new Error("Metadata read extent/hash mismatch");
451374
451542
  return JSON.parse(new TextDecoder("utf-8", { fatal: true }).decode(bytes5));
451375
451543
  }
@@ -453882,8 +454050,8 @@ function adaptExecutionTool(tool, options = {}) {
453882
454050
 
453883
454051
  // packages/cli/src/computer-use/configured-planner.ts
453884
454052
  init_dist5();
453885
- import { createHash as createHash130, randomUUID as randomUUID60 } from "node:crypto";
453886
- var sha25610 = (text18) => createHash130("sha256").update(text18).digest("hex");
454053
+ import { createHash as createHash131, randomUUID as randomUUID60 } from "node:crypto";
454054
+ var sha25610 = (text18) => createHash131("sha256").update(text18).digest("hex");
453887
454055
  function createHostUiPlannerResponseSchema(grants) {
453888
454056
  if (!grants?.length) return structuredClone(UI_PLAN_RESPONSE_SCHEMA);
453889
454057
  const steps = structuredClone(grants);
@@ -454315,8 +454483,8 @@ var RunnerUiPort = class {
454315
454483
 
454316
454484
  // packages/cli/src/computer-use/configured-point.ts
454317
454485
  init_dist5();
454318
- import { createHash as createHash131, randomUUID as randomUUID61 } from "node:crypto";
454319
- var hash20 = (value) => createHash131("sha256").update(value).digest("hex");
454486
+ import { createHash as createHash132, randomUUID as randomUUID61 } from "node:crypto";
454487
+ var hash20 = (value) => createHash132("sha256").update(value).digest("hex");
454320
454488
  var PNG2 = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
454321
454489
  function createConfiguredUiPoint(profile3, options) {
454322
454490
  const pinned = structuredClone(profile3), url = new URL(pinned.endpoint);
@@ -454750,12 +454918,12 @@ async function runConfiguredHostUiSession(input2, options) {
454750
454918
 
454751
454919
  // packages/cli/src/nol/facade.ts
454752
454920
  import { isAbsolute as isAbsolute39, resolve as resolve50 } from "node:path";
454753
- import { createHash as createHash143 } from "node:crypto";
454921
+ import { createHash as createHash144 } from "node:crypto";
454754
454922
 
454755
454923
  // packages/cli/src/nol/gne-profile.ts
454756
454924
  init_dist();
454757
454925
  init_dist5();
454758
- import { createHash as createHash134, randomUUID as randomUUID65 } from "node:crypto";
454926
+ import { createHash as createHash135, randomUUID as randomUUID65 } from "node:crypto";
454759
454927
  import { realpathSync as realpathSync19, statSync as statSync34 } from "node:fs";
454760
454928
  import { lstat as lstat11, mkdir as mkdir9, realpath as realpath11 } from "node:fs/promises";
454761
454929
  import { dirname as dirname44, isAbsolute as isAbsolute33, join as join79, relative as relative24, resolve as resolve47 } from "node:path";
@@ -454881,7 +455049,7 @@ import { connect } from "node:net";
454881
455049
  // packages/cli/src/nol/cuda-mutations.ts
454882
455050
  init_dist();
454883
455051
  import {
454884
- createHash as createHash132,
455052
+ createHash as createHash133,
454885
455053
  createHmac as createHmac2,
454886
455054
  randomBytes as randomBytes9,
454887
455055
  randomUUID as randomUUID63,
@@ -454907,7 +455075,7 @@ var uid = () => process.getuid?.();
454907
455075
  var nofollow = constants14.O_NOFOLLOW ?? 0;
454908
455076
  var tickets = /* @__PURE__ */ new WeakMap();
454909
455077
  var missing = (error) => error?.code === "ENOENT";
454910
- var hash21 = (value) => createHash132("sha256").update(canonicalNolJson(value)).digest("hex");
455078
+ var hash21 = (value) => createHash133("sha256").update(canonicalNolJson(value)).digest("hex");
454911
455079
  function requestCopy(value) {
454912
455080
  if (!value || typeof value.ownerId !== "string" || !value.ownerId || value.ownerId.length > 200 || value.ownerId !== value.ownerId.trim() || /[\x00-\x1f\x7f]/.test(value.ownerId) || typeof value.modelId !== "string" || !value.modelId || value.modelId.length > 1024 || value.modelId !== value.modelId.trim() || /[\x00-\x1f\x7f]/.test(value.modelId) || !UUID.test(value.gpuUuid) || !Number.isSafeInteger(value.requestedMiB) || value.requestedMiB <= 0 || !Number.isSafeInteger(value.expectedDurationSeconds) || value.expectedDurationSeconds <= 0)
454913
455081
  throw new Error("Invalid private CUDA mutation identity");
@@ -456212,7 +456380,7 @@ function integer15(value, label, min = 0, max = Number.MAX_SAFE_INTEGER) {
456212
456380
  throw new Error(`Invalid GNE profile ${label}`);
456213
456381
  return value;
456214
456382
  }
456215
- var projectIdentity = (root) => createHash134("sha256").update(root).digest("hex");
456383
+ var projectIdentity = (root) => createHash135("sha256").update(root).digest("hex");
456216
456384
  function snapshotExecution(options) {
456217
456385
  const {
456218
456386
  pythonPath,
@@ -456432,7 +456600,7 @@ async function bytes4(artifacts, ref11, maximum, signal) {
456432
456600
  throw new Error("GNE profile artifact exceeds frozen input bound");
456433
456601
  const value = await artifacts.readBytes(ref11, signal);
456434
456602
  signal?.throwIfAborted();
456435
- if (value.byteLength !== ref11.sizeBytes || createHash134("sha256").update(value).digest("hex") !== ref11.sha256)
456603
+ if (value.byteLength !== ref11.sizeBytes || createHash135("sha256").update(value).digest("hex") !== ref11.sha256)
456436
456604
  throw new Error("GNE profile artifact hash/size changed");
456437
456605
  return value;
456438
456606
  }
@@ -456575,7 +456743,7 @@ var NolGneProfileService = class {
456575
456743
  async publish(active, value, mediaType = "application/json", cleanup = false) {
456576
456744
  if (!cleanup) this.current(active);
456577
456745
  const data = value instanceof Uint8Array ? value : Buffer.from(canonicalNolJson(value));
456578
- const digest19 = createHash134("sha256").update(data).digest("hex"), ref11 = {
456746
+ const digest19 = createHash135("sha256").update(data).digest("hex"), ref11 = {
456579
456747
  uri: `omnius-artifact://sha256/${digest19}`,
456580
456748
  sha256: digest19,
456581
456749
  sizeBytes: data.byteLength,
@@ -457601,7 +457769,7 @@ init_dist();
457601
457769
  // packages/cli/src/nol/export-service.ts
457602
457770
  init_dist();
457603
457771
  init_dist5();
457604
- import { createHash as createHash135, randomUUID as randomUUID66 } from "node:crypto";
457772
+ import { createHash as createHash136, randomUUID as randomUUID66 } from "node:crypto";
457605
457773
  import { lstatSync as lstatSync11, realpathSync as realpathSync20, statfsSync as statfsSync5 } from "node:fs";
457606
457774
  import { lstat as lstat12, mkdir as mkdir10, mkdtemp as mkdtemp7, readdir as readdir5, realpath as realpath12 } from "node:fs/promises";
457607
457775
  import { isAbsolute as isAbsolute34, join as join80, relative as relative25, resolve as resolve48 } from "node:path";
@@ -457663,7 +457831,7 @@ var NolExportService = class {
457663
457831
  if (!options.ownerId.trim() || options.ownerId.length > 192)
457664
457832
  throw new Error("Export host owner required");
457665
457833
  this.ownerId = `${options.ownerId}:${randomUUID66()}`;
457666
- this.projectId = createHash135("sha256").update(this.root).digest("hex");
457834
+ this.projectId = createHash136("sha256").update(this.root).digest("hex");
457667
457835
  if (!/^[A-Za-z0-9][A-Za-z0-9_.-]{0,95}$/.test(options.id))
457668
457836
  throw new Error("Export configuration ID required");
457669
457837
  this.scopeId = nolJsonDigest({
@@ -458408,7 +458576,7 @@ init_dist5();
458408
458576
  // packages/cli/src/nol/neuronary-catalog.ts
458409
458577
  init_dist();
458410
458578
  init_dist5();
458411
- import { createHash as createHash136, randomUUID as randomUUID67 } from "node:crypto";
458579
+ import { createHash as createHash137, randomUUID as randomUUID67 } from "node:crypto";
458412
458580
  import { realpathSync as realpathSync21, statSync as statSync35 } from "node:fs";
458413
458581
  import { isAbsolute as isAbsolute35 } from "node:path";
458414
458582
  import { z as z30 } from "zod";
@@ -458492,7 +458660,7 @@ var LIMITATIONS = Object.freeze([
458492
458660
  "Checkpoint/site mapping and required calibration need independent host verification.",
458493
458661
  "Import grants no execution, scientific validation, promotion or activation authority."
458494
458662
  ]);
458495
- var hashBytes = (bytes5) => createHash136("sha256").update(bytes5).digest("hex");
458663
+ var hashBytes = (bytes5) => createHash137("sha256").update(bytes5).digest("hex");
458496
458664
  var clone9 = (value) => JSON.parse(canonicalNolJson(value));
458497
458665
  var same14 = (left, right) => canonicalNolJson(left) === canonicalNolJson(right);
458498
458666
  function freeze7(value) {
@@ -459106,14 +459274,14 @@ import { z as z34 } from "zod";
459106
459274
  // packages/cli/src/nol/vllm-profile.ts
459107
459275
  init_dist();
459108
459276
  init_dist5();
459109
- import { createHash as createHash142, randomUUID as randomUUID69 } from "node:crypto";
459277
+ import { createHash as createHash143, randomUUID as randomUUID69 } from "node:crypto";
459110
459278
  import { realpathSync as realpathSync23 } from "node:fs";
459111
459279
  import { mkdir as mkdir11, statfs, lstat as lstat13 } from "node:fs/promises";
459112
459280
  import { isAbsolute as isAbsolute38, join as join84, resolve as resolve49 } from "node:path";
459113
459281
  import { z as z33 } from "zod";
459114
459282
 
459115
459283
  // packages/cli/src/nol/vllm-adapter.ts
459116
- import { createHash as createHash139 } from "node:crypto";
459284
+ import { createHash as createHash140 } from "node:crypto";
459117
459285
  import { isAbsolute as isAbsolute37, join as join82 } from "node:path";
459118
459286
  init_dist();
459119
459287
  init_dist5();
@@ -459121,7 +459289,7 @@ init_dist5();
459121
459289
  // packages/cli/src/nol/vllm-startup.ts
459122
459290
  init_dist();
459123
459291
  init_dist5();
459124
- import { createHash as createHash138, randomUUID as randomUUID68 } from "node:crypto";
459292
+ import { createHash as createHash139, randomUUID as randomUUID68 } from "node:crypto";
459125
459293
  import { spawn as spawn8 } from "node:child_process";
459126
459294
  import { constants as constants17 } from "node:fs";
459127
459295
  import { open as open11 } from "node:fs/promises";
@@ -459130,7 +459298,7 @@ import { isAbsolute as isAbsolute36, join as join81, dirname as dirname45 } from
459130
459298
  // packages/cli/src/nol/vllm-protocol.ts
459131
459299
  init_dist();
459132
459300
  init_dist5();
459133
- import { createHash as createHash137 } from "node:crypto";
459301
+ import { createHash as createHash138 } from "node:crypto";
459134
459302
  import { openSync as openSync25, closeSync as closeSync25, fstatSync as fstatSync8, readSync as readSync6, constants as constants16 } from "node:fs";
459135
459303
  import { fileURLToPath as fileURLToPath9 } from "node:url";
459136
459304
  import { z as z31 } from "zod";
@@ -459158,7 +459326,7 @@ function nolVllmModuleDigest(url) {
459158
459326
  count8 === before.size && before.dev === after.dev && before.ino === after.ino && before.size === after.size && before.mtimeMs === after.mtimeMs && before.ctimeMs === after.ctimeMs,
459159
459327
  "host code changed during inventory"
459160
459328
  );
459161
- return createHash137("sha256").update(bytes5.subarray(0, count8)).digest("hex");
459329
+ return createHash138("sha256").update(bytes5.subarray(0, count8)).digest("hex");
459162
459330
  } finally {
459163
459331
  closeSync25(fd);
459164
459332
  }
@@ -459181,7 +459349,7 @@ var bound = (n) => count5.max(n);
459181
459349
  function need5(v, m) {
459182
459350
  if (!v) throw Error(`NOL vLLM protocol: ${m}`);
459183
459351
  }
459184
- var hash23 = (v) => createHash137("sha256").update(v).digest("hex");
459352
+ var hash23 = (v) => createHash138("sha256").update(v).digest("hex");
459185
459353
  var same15 = (a, b, m) => need5(canonicalNolJson(a) === canonicalNolJson(b), m);
459186
459354
  var NolVllmSourceSchema = z31.object({ workerSha256: sha28, companionSha256: sha28, runtimeSha256: sha28 }).strict();
459187
459355
  var NolVllmRuntimeLimitsSchema = z31.object({
@@ -459635,7 +459803,7 @@ var integer16 = (value, low, high) => {
459635
459803
  };
459636
459804
  var same16 = (a, b) => canonicalNolJson(a) === canonicalNolJson(b);
459637
459805
  var clone10 = (value) => JSON.parse(canonicalNolJson(value));
459638
- var digest12 = (value) => createHash138("sha256").update(canonicalNolJson(value)).digest("hex");
459806
+ var digest12 = (value) => createHash139("sha256").update(canonicalNolJson(value)).digest("hex");
459639
459807
  var RUNTIME_ENVIRONMENT_KEYS = /* @__PURE__ */ new Set([
459640
459808
  "PATH",
459641
459809
  "HOME",
@@ -460073,7 +460241,7 @@ async function filePin(path13, expected) {
460073
460241
  }
460074
460242
  const after = await file.stat();
460075
460243
  need6(
460076
- length <= 1048576 && before.size === after.size && before.mtimeMs === after.mtimeMs && before.ctimeMs === after.ctimeMs && createHash138("sha256").update(bytes5.subarray(0, length)).digest("hex") === expected,
460244
+ length <= 1048576 && before.size === after.size && before.mtimeMs === after.mtimeMs && before.ctimeMs === after.ctimeMs && createHash139("sha256").update(bytes5.subarray(0, length)).digest("hex") === expected,
460077
460245
  "source identity changed"
460078
460246
  );
460079
460247
  } finally {
@@ -460606,7 +460774,7 @@ function need7(v, m) {
460606
460774
  }
460607
460775
  var copy3 = (v) => JSON.parse(canonicalNolJson(v));
460608
460776
  var same17 = (a, b, m) => need7(canonicalNolJson(a) === canonicalNolJson(b), m);
460609
- var hash24 = (v) => createHash139("sha256").update(v).digest("hex");
460777
+ var hash24 = (v) => createHash140("sha256").update(v).digest("hex");
460610
460778
  function current2(c) {
460611
460779
  c.signal.throwIfAborted();
460612
460780
  c.assertCurrent();
@@ -461179,7 +461347,7 @@ function prepareNolVllmRawControls(recipe, model3, seeds, evidence) {
461179
461347
  let neuron, word;
461180
461348
  do {
461181
461349
  need7(counter < 1e4, "bounded random coordinate search exhausted");
461182
- const bytes5 = createHash139("sha256").update(
461350
+ const bytes5 = createHash140("sha256").update(
461183
461351
  canonicalNolJson({
461184
461352
  schema: "omnius.nol.vllm-control-rng.v1",
461185
461353
  seed,
@@ -461191,7 +461359,7 @@ function prepareNolVllmRawControls(recipe, model3, seeds, evidence) {
461191
461359
  neuron = word % site.width;
461192
461360
  } while (word >= Math.floor(4294967296 / site.width) * site.width || taken.has(neuron));
461193
461361
  taken.add(neuron);
461194
- const sign = createHash139("sha256").update(
461362
+ const sign = createHash140("sha256").update(
461195
461363
  canonicalNolJson({
461196
461364
  seed,
461197
461365
  neuron,
@@ -461651,7 +461819,7 @@ var NolVllmAdapter = class {
461651
461819
 
461652
461820
  // packages/cli/src/nol/vllm-conformance.ts
461653
461821
  init_dist();
461654
- import { createHash as createHash140 } from "node:crypto";
461822
+ import { createHash as createHash141 } from "node:crypto";
461655
461823
  import { z as z32 } from "zod";
461656
461824
  var nolVllmConformanceDigest = nolVllmModulePin(import.meta.url);
461657
461825
  var NOL_VLLM_CAPTURE_MAGIC = Buffer.from("NOLVLC01");
@@ -461689,7 +461857,7 @@ var headerSchema = z32.object({
461689
461857
  function need8(value, message3) {
461690
461858
  if (!value) throw new Error(`NOL vLLM capture: ${message3}`);
461691
461859
  }
461692
- var hash25 = (value) => createHash140("sha256").update(value).digest("hex");
461860
+ var hash25 = (value) => createHash141("sha256").update(value).digest("hex");
461693
461861
  var same18 = (a, b, message3) => need8(canonicalNolJson(a) === canonicalNolJson(b), message3);
461694
461862
  function norm2(values) {
461695
461863
  let scale = 0, sum2 = 0;
@@ -461911,10 +462079,10 @@ import {
461911
462079
  realpathSync as realpathSync22
461912
462080
  } from "node:fs";
461913
462081
  import { join as join83 } from "node:path";
461914
- import { createHash as createHash141 } from "node:crypto";
462082
+ import { createHash as createHash142 } from "node:crypto";
461915
462083
  var nolVllmCustodyDigest = nolVllmModulePin(import.meta.url);
461916
462084
  var zero = "0".repeat(64);
461917
- var digest13 = (v) => createHash141("sha256").update(canonicalNolJson(v)).digest("hex");
462085
+ var digest13 = (v) => createHash142("sha256").update(canonicalNolJson(v)).digest("hex");
461918
462086
  function need9(v, m) {
461919
462087
  if (!v) throw new Error(`NOL vLLM private custody: ${m}`);
461920
462088
  }
@@ -462359,7 +462527,7 @@ function need10(value, message3) {
462359
462527
  }
462360
462528
  var copy4 = (v) => JSON.parse(canonicalNolJson(v));
462361
462529
  var same20 = (a, b) => canonicalNolJson(a) === canonicalNolJson(b);
462362
- var hash26 = (v) => createHash142("sha256").update(v).digest("hex");
462530
+ var hash26 = (v) => createHash143("sha256").update(v).digest("hex");
462363
462531
  function guard2(context) {
462364
462532
  context.signal?.throwIfAborted();
462365
462533
  need10(
@@ -462452,7 +462620,7 @@ var NolVllmProfileService = class {
462452
462620
  projectRoot: realpathSync23.native(options.projectRoot),
462453
462621
  workRoot: realpathSync23.native(options.workRoot)
462454
462622
  };
462455
- this.projectId = createHash142("sha256").update(this.options.projectRoot).digest("hex");
462623
+ this.projectId = createHash143("sha256").update(this.options.projectRoot).digest("hex");
462456
462624
  this.implementationDigest = this.hostImplementation();
462457
462625
  const scope2 = {
462458
462626
  schema: "omnius.nol.vllm-profile-scope.v1",
@@ -464305,7 +464473,7 @@ var NolFacade = class {
464305
464473
  }
464306
464474
  conformanceJob(jobId3) {
464307
464475
  const job2 = this.options.store.getJob(jobId3);
464308
- if (!job2 || job2.kind !== NOL_GNE_PROFILE_KIND || !job2.payload || typeof job2.payload !== "object" || job2.payload.projectId !== createHash143("sha256").update(this.projectRoot).digest("hex"))
464476
+ if (!job2 || job2.kind !== NOL_GNE_PROFILE_KIND || !job2.payload || typeof job2.payload !== "object" || job2.payload.projectId !== createHash144("sha256").update(this.projectRoot).digest("hex"))
464309
464477
  throw new NolFacadeError(
464310
464478
  "job_not_found",
464311
464479
  404,
@@ -464702,11 +464870,11 @@ var NolFacade = class {
464702
464870
 
464703
464871
  // packages/cli/src/nol/sqlite-store.ts
464704
464872
  init_dist();
464705
- import { createHash as createHash144, randomUUID as randomUUID70 } from "node:crypto";
464873
+ import { createHash as createHash145, randomUUID as randomUUID70 } from "node:crypto";
464706
464874
  import { mkdirSync as mkdirSync45 } from "node:fs";
464707
464875
  import { createRequire as createRequire5 } from "node:module";
464708
464876
  import { dirname as dirname46 } from "node:path";
464709
- var hash27 = (value) => createHash144("sha256").update(value).digest("hex");
464877
+ var hash27 = (value) => createHash145("sha256").update(value).digest("hex");
464710
464878
  var MAX_METADATA_BYTES = 16 * 1024 * 1024;
464711
464879
  var MAX_VERIFIED_JOB_BYTES = 8 * 1024 * 1024;
464712
464880
  function json6(value) {
@@ -465562,7 +465730,7 @@ function nolHostPerformance(input2) {
465562
465730
  // packages/cli/src/nol/transformers-adapter.ts
465563
465731
  init_dist();
465564
465732
  init_dist5();
465565
- import { createHash as createHash145 } from "node:crypto";
465733
+ import { createHash as createHash146 } from "node:crypto";
465566
465734
  import { isAbsolute as isAbsolute40 } from "node:path";
465567
465735
  var VERSION3 = "omnius.nol.transformers.v1";
465568
465736
  var ZERO3 = "0".repeat(64);
@@ -465619,7 +465787,7 @@ function ids2(value, label, maximum) {
465619
465787
  return value.map((id8) => integer20(id8, label, 0, 4294967295));
465620
465788
  }
465621
465789
  function hash28(bytes5) {
465622
- return createHash145("sha256").update(bytes5).digest("hex");
465790
+ return createHash146("sha256").update(bytes5).digest("hex");
465623
465791
  }
465624
465792
  async function driverVersion2(gpuUuid) {
465625
465793
  const result = await execFileText4(
@@ -466413,7 +466581,7 @@ init_dist();
466413
466581
  init_dist5();
466414
466582
  init_dist();
466415
466583
  init_dist5();
466416
- import { createHash as createHash146 } from "node:crypto";
466584
+ import { createHash as createHash147 } from "node:crypto";
466417
466585
  import { mkdir as mkdir12, mkdtemp as mkdtemp8, rm as rm6 } from "node:fs/promises";
466418
466586
  import { isAbsolute as isAbsolute41, join as join85 } from "node:path";
466419
466587
  var ZERO4 = "0".repeat(64);
@@ -466681,7 +466849,7 @@ function object21(value, label) {
466681
466849
  return value;
466682
466850
  }
466683
466851
  var clone12 = (value) => JSON.parse(canonicalNolJson(value));
466684
- var hash29 = (bytes5) => createHash146("sha256").update(bytes5).digest("hex");
466852
+ var hash29 = (bytes5) => createHash147("sha256").update(bytes5).digest("hex");
466685
466853
  function current4(context) {
466686
466854
  context.signal.throwIfAborted();
466687
466855
  context.assertCurrent();
@@ -467759,7 +467927,7 @@ function inputIdentity2(input2) {
467759
467927
  // packages/cli/src/nol/runtime.ts
467760
467928
  init_dist();
467761
467929
  init_dist5();
467762
- import { createHash as createHash167 } from "node:crypto";
467930
+ import { createHash as createHash168 } from "node:crypto";
467763
467931
  import {
467764
467932
  constants as constants29,
467765
467933
  mkdirSync as mkdirSync49,
@@ -467914,14 +468082,14 @@ import { randomUUID as randomUUID71 } from "node:crypto";
467914
468082
  // packages/cli/src/nol/vllm-authority.ts
467915
468083
  init_dist();
467916
468084
  init_dist5();
467917
- import { createHash as createHash147 } from "node:crypto";
468085
+ import { createHash as createHash148 } from "node:crypto";
467918
468086
  import { spawn as spawn9 } from "node:child_process";
467919
468087
  import { constants as constants19 } from "node:fs";
467920
468088
  import { open as open12, mkdir as mkdir13, lstat as lstat14 } from "node:fs/promises";
467921
468089
  import { dirname as dirname48, join as join87, relative as relative27, isAbsolute as isAbsolute43 } from "node:path";
467922
468090
  var implementation = nolVllmModulePin(import.meta.url);
467923
468091
  var DECODER_SHA = "213d71cf6eefcea061b28b656cf8a08af60c9f3513403e724b16876995f3de93";
467924
- var hash30 = (v) => createHash147("sha256").update(v).digest("hex");
468092
+ var hash30 = (v) => createHash148("sha256").update(v).digest("hex");
467925
468093
  function need11(value, reason) {
467926
468094
  if (!value) throw Error(`NOL vLLM authority: ${reason}`);
467927
468095
  }
@@ -468981,7 +469149,7 @@ var NolCpuReaderSourceGuard = class _NolCpuReaderSourceGuard {
468981
469149
 
468982
469150
  // packages/cli/src/nol/gguf-cpu-control-reader-profile.ts
468983
469151
  init_dist5();
468984
- import { createHash as createHash148 } from "node:crypto";
469152
+ import { createHash as createHash149 } from "node:crypto";
468985
469153
  import { constants as constants21, lstatSync as lstatSync14, realpathSync as realpathSync27 } from "node:fs";
468986
469154
  import { lstat as lstat16, opendir as opendir5, realpath as realpath14, open as open14 } from "node:fs/promises";
468987
469155
  import { dirname as dirname51, isAbsolute as isAbsolute46, join as join91, relative as relative29 } from "node:path";
@@ -469114,7 +469282,7 @@ var NolGgufCpuReaderSourceGuard = class _NolGgufCpuReaderSourceGuard {
469114
469282
  const environmentRoot = dirname51(dirname51(profile3.reader.pythonPath));
469115
469283
  const environmentConfig = join91(environmentRoot, "pyvenv.cfg");
469116
469284
  const configFile = await frozenText2(environmentConfig, 65536);
469117
- const configHash = createHash148("sha256").update(configFile.text).digest("hex");
469285
+ const configHash = createHash149("sha256").update(configFile.text).digest("hex");
469118
469286
  need14(
469119
469287
  configHash === profile3.reader.runtime.pythonEnvironment.venvConfig.sha256 && Buffer.byteLength(configFile.text) === profile3.reader.runtime.pythonEnvironment.venvConfig.sizeBytes,
469120
469288
  "exact isolated venv configuration changed"
@@ -469128,7 +469296,7 @@ var NolGgufCpuReaderSourceGuard = class _NolGgufCpuReaderSourceGuard {
469128
469296
  "site-packages"
469129
469297
  );
469130
469298
  need14(
469131
- await realpath14(site) === site && createHash148("sha256").update(site).digest("hex") === profile3.reader.runtime.pythonEnvironment.sitePackagesPathDigest && profile3.runtimeRoots.some((root) => {
469299
+ await realpath14(site) === site && createHash149("sha256").update(site).digest("hex") === profile3.reader.runtime.pythonEnvironment.sitePackagesPathDigest && profile3.runtimeRoots.some((root) => {
469132
469300
  const part = relative29(root, site);
469133
469301
  return part === "" || !isAbsolute46(part) && part !== ".." && !part.startsWith("../");
469134
469302
  }),
@@ -469291,7 +469459,7 @@ import { z as z42 } from "zod";
469291
469459
  // packages/cli/src/nol/peft-model-authority.ts
469292
469460
  init_dist();
469293
469461
  init_dist5();
469294
- import { createHash as createHash153, randomUUID as randomUUID74 } from "node:crypto";
469462
+ import { createHash as createHash154, randomUUID as randomUUID74 } from "node:crypto";
469295
469463
  import { lstatSync as lstatSync17, realpathSync as realpathSync30 } from "node:fs";
469296
469464
  import { mkdir as mkdir15, lstat as lstat19, readFile as readFile6 } from "node:fs/promises";
469297
469465
  import { fileURLToPath as fileURLToPath11 } from "node:url";
@@ -469301,7 +469469,7 @@ import { z as z41 } from "zod";
469301
469469
  // packages/cli/src/nol/peft-profile.ts
469302
469470
  init_dist();
469303
469471
  init_dist5();
469304
- import { createHash as createHash150, randomUUID as randomUUID73 } from "node:crypto";
469472
+ import { createHash as createHash151, randomUUID as randomUUID73 } from "node:crypto";
469305
469473
  import { lstat as lstat17, realpath as realpath15 } from "node:fs/promises";
469306
469474
  import { fileURLToPath as fileURLToPath10 } from "node:url";
469307
469475
  import { isAbsolute as isAbsolute48, relative as relative30, resolve as resolve53 } from "node:path";
@@ -469314,7 +469482,7 @@ import { isAbsolute as isAbsolute47 } from "node:path";
469314
469482
  // packages/cli/src/nol/peft-conformance.ts
469315
469483
  init_dist();
469316
469484
  init_dist5();
469317
- import { createHash as createHash149 } from "node:crypto";
469485
+ import { createHash as createHash150 } from "node:crypto";
469318
469486
  var NOL_PEFT_VALIDATION_VERSION = "omnius.nol.transformers-peft-validation.v2";
469319
469487
  var NOL_PEFT_VALIDATION_PEFT_SHA = "acbedcc78edf2565ce8638a85df81a1e4b8a4f98c5d0dfb49b38e2785b247682";
469320
469488
  var NOL_PEFT_VALIDATION_BASE_SHA = "ea1950abcceda7d76c5fb54c3b10a73d5756cd947149d4b3b6d7be83ae12ebc0";
@@ -469331,7 +469499,7 @@ function integer22(value, name, min, max) {
469331
469499
  function same23(a, b, label) {
469332
469500
  need15(canonicalNolJson(a) === canonicalNolJson(b), `${label} mismatch`);
469333
469501
  }
469334
- var hash31 = (bytes5) => createHash149("sha256").update(bytes5).digest("hex");
469502
+ var hash31 = (bytes5) => createHash150("sha256").update(bytes5).digest("hex");
469335
469503
  var CRC_TABLE2 = Uint32Array.from({ length: 256 }, (_, value) => {
469336
469504
  let crc = value;
469337
469505
  for (let bit = 0; bit < 8; bit++)
@@ -470417,7 +470585,7 @@ function need17(v, m) {
470417
470585
  }
470418
470586
  var same25 = (a, b, m) => need17(canonicalNolJson(a) === canonicalNolJson(b), m);
470419
470587
  var identity8 = (bytes5, mediaType) => {
470420
- const sha25611 = createHash150("sha256").update(bytes5).digest("hex");
470588
+ const sha25611 = createHash151("sha256").update(bytes5).digest("hex");
470421
470589
  return {
470422
470590
  uri: `omnius-artifact://sha256/${sha25611}`,
470423
470591
  sha256: sha25611,
@@ -471101,7 +471269,7 @@ function createNolPeftJournalAdmission(input2) {
471101
471269
  // packages/cli/src/nol/transformers-peft.ts
471102
471270
  init_dist();
471103
471271
  init_dist5();
471104
- import { createHash as createHash151 } from "node:crypto";
471272
+ import { createHash as createHash152 } from "node:crypto";
471105
471273
  import { isAbsolute as isAbsolute49 } from "node:path";
471106
471274
  var NOL_TRANSFORMERS_PEFT_VERSION = "omnius.nol.transformers-peft.v2";
471107
471275
  var NOL_TRANSFORMERS_PEFT_BASE_SHA256 = "ea1950abcceda7d76c5fb54c3b10a73d5756cd947149d4b3b6d7be83ae12ebc0";
@@ -471219,7 +471387,7 @@ async function prepareNolPeftPlan(input2) {
471219
471387
  const bytes5 = await input2.readArtifact(ref11, input2.signal);
471220
471388
  input2.signal?.throwIfAborted();
471221
471389
  need18(
471222
- bytes5.byteLength === ref11.sizeBytes && createHash151("sha256").update(bytes5).digest("hex") === ref11.sha256,
471390
+ bytes5.byteLength === ref11.sizeBytes && createHash152("sha256").update(bytes5).digest("hex") === ref11.sha256,
471223
471391
  "export receipt bytes/hash mismatch"
471224
471392
  );
471225
471393
  const receipt = object22(
@@ -472180,7 +472348,7 @@ var NolPeftAuthorityJournal = class {
472180
472348
  // packages/cli/src/nol/peft-model-profile.ts
472181
472349
  init_dist();
472182
472350
  init_dist5();
472183
- import { createHash as createHash152 } from "node:crypto";
472351
+ import { createHash as createHash153 } from "node:crypto";
472184
472352
  import { lstatSync as lstatSync16, realpathSync as realpathSync29 } from "node:fs";
472185
472353
  import { readdir as readdir8 } from "node:fs/promises";
472186
472354
  import { dirname as dirname52, isAbsolute as isAbsolute50, join as join93, relative as relative31, resolve as resolve55 } from "node:path";
@@ -472287,7 +472455,7 @@ async function metadata(ref11, artifacts, maximum, signal) {
472287
472455
  const bytes5 = await artifacts.readBytes(ref11, signal);
472288
472456
  signal.throwIfAborted();
472289
472457
  need21(
472290
- bytes5.length === ref11.sizeBytes && createHash152("sha256").update(bytes5).digest("hex") === ref11.sha256,
472458
+ bytes5.length === ref11.sizeBytes && createHash153("sha256").update(bytes5).digest("hex") === ref11.sha256,
472291
472459
  "metadata fullref changed"
472292
472460
  );
472293
472461
  const parsed = JSON.parse(
@@ -473064,7 +473232,7 @@ var NolPeftModelAuthorityService = class {
473064
473232
  bytes5.length <= p.budgets.maxMetadataBytes,
473065
473233
  "producer metadata byte cap"
473066
473234
  );
473067
- const sha25611 = createHash153("sha256").update(bytes5).digest("hex"), ref11 = {
473235
+ const sha25611 = createHash154("sha256").update(bytes5).digest("hex"), ref11 = {
473068
473236
  uri: `omnius-artifact://sha256/${sha25611}`,
473069
473237
  sha256: sha25611,
473070
473238
  sizeBytes: bytes5.length,
@@ -473104,7 +473272,7 @@ var NolPeftModelAuthorityService = class {
473104
473272
  bytes5.length <= p.budgets.maxMetadataBytes,
473105
473273
  "host source metadata cap"
473106
473274
  );
473107
- const sha25611 = createHash153("sha256").update(bytes5).digest("hex"), ref11 = {
473275
+ const sha25611 = createHash154("sha256").update(bytes5).digest("hex"), ref11 = {
473108
473276
  uri: `omnius-artifact://sha256/${sha25611}`,
473109
473277
  sha256: sha25611,
473110
473278
  sizeBytes: bytes5.length,
@@ -473138,7 +473306,7 @@ var NolPeftModelAuthorityService = class {
473138
473306
  bytes5.length <= p.budgets.maxMetadataBytes,
473139
473307
  "worker/lock source cap"
473140
473308
  );
473141
- const sha25611 = createHash153("sha256").update(bytes5).digest("hex"), ref11 = {
473309
+ const sha25611 = createHash154("sha256").update(bytes5).digest("hex"), ref11 = {
473142
473310
  uri: `omnius-artifact://sha256/${sha25611}`,
473143
473311
  sha256: sha25611,
473144
473312
  sizeBytes: bytes5.length,
@@ -473564,7 +473732,7 @@ var NolPeftModelAuthorityService = class {
473564
473732
  childOwnership: child.payload.childOwnership,
473565
473733
  observation
473566
473734
  };
473567
- const bytes5 = Buffer.from(canonicalNolJson(payload2)), sha25611 = createHash153("sha256").update(bytes5).digest("hex"), artifact5 = {
473735
+ const bytes5 = Buffer.from(canonicalNolJson(payload2)), sha25611 = createHash154("sha256").update(bytes5).digest("hex"), artifact5 = {
473568
473736
  uri: `omnius-artifact://sha256/${sha25611}`,
473569
473737
  sha256: sha25611,
473570
473738
  sizeBytes: bytes5.length,
@@ -474039,14 +474207,14 @@ var NolModelRuntimeConfigSchema = z43.object({
474039
474207
 
474040
474208
  // packages/cli/src/nol/model-runtime.ts
474041
474209
  init_dist();
474042
- import { createHash as createHash165 } from "node:crypto";
474210
+ import { createHash as createHash166 } from "node:crypto";
474043
474211
  import { AsyncLocalStorage as AsyncLocalStorage5 } from "node:async_hooks";
474044
474212
 
474045
474213
  // packages/cli/src/nol/model-validation-factory.ts
474046
474214
  init_dist();
474047
474215
  init_dist5();
474048
474216
  import {
474049
- createHash as createHash155,
474217
+ createHash as createHash156,
474050
474218
  createHmac as createHmac4,
474051
474219
  randomBytes as randomBytes11,
474052
474220
  randomUUID as randomUUID75,
@@ -474071,7 +474239,7 @@ import { createRequire as createRequire7 } from "node:module";
474071
474239
  // packages/cli/src/nol/model-subject-adapter.ts
474072
474240
  init_dist();
474073
474241
  init_dist5();
474074
- import { createHash as createHash154 } from "node:crypto";
474242
+ import { createHash as createHash155 } from "node:crypto";
474075
474243
  import { mkdir as mkdir16, mkdtemp as mkdtemp9 } from "node:fs/promises";
474076
474244
  import { isAbsolute as isAbsolute54, join as join95 } from "node:path";
474077
474245
  var IMPLEMENTATIONS = {
@@ -474107,7 +474275,7 @@ function integer24(v, min, max = Number.MAX_SAFE_INTEGER) {
474107
474275
  throw new Error("Native model subject integer out of bounds");
474108
474276
  return v;
474109
474277
  }
474110
- var hash32 = (v) => createHash154("sha256").update(v).digest("hex");
474278
+ var hash32 = (v) => createHash155("sha256").update(v).digest("hex");
474111
474279
  async function abortable8(work2, signal) {
474112
474280
  signal.throwIfAborted();
474113
474281
  let abort;
@@ -474291,7 +474459,7 @@ var NolModelWorkerAdapter = class {
474291
474459
  sizeBytes: f.artifact.sizeBytes
474292
474460
  }))
474293
474461
  );
474294
- if (createHash154("sha256").update(tokenizerJson).digest("hex") !== model3.tokenizerDigest)
474462
+ if (createHash155("sha256").update(tokenizerJson).digest("hex") !== model3.tokenizerDigest)
474295
474463
  throw new Error("Native model tokenizer identity body mismatch");
474296
474464
  a.acquireIdentity = {
474297
474465
  ownerId: nolCudaOwner(
@@ -475383,7 +475551,7 @@ var NolModelValidationHostFactory = class {
475383
475551
  root === options.projectRoot && isAbsolute55(options.stateRoot) && inside4(root, options.stateRoot),
475384
475552
  "Native host authority must belong to the canonical project"
475385
475553
  );
475386
- this.projectId = createHash155("sha256").update(root).digest("hex");
475554
+ this.projectId = createHash156("sha256").update(root).digest("hex");
475387
475555
  for (const n of Object.values(options.limits))
475388
475556
  need23(
475389
475557
  Number.isSafeInteger(n) && n > 0,
@@ -475513,7 +475681,7 @@ var NolModelValidationHostFactory = class {
475513
475681
  await this.options.artifacts.verify(ref11, signal);
475514
475682
  const bytes5 = await this.options.artifacts.readBytes(ref11, signal);
475515
475683
  need23(
475516
- bytes5.byteLength === ref11.sizeBytes && createHash155("sha256").update(bytes5).digest("hex") === ref11.sha256,
475684
+ bytes5.byteLength === ref11.sizeBytes && createHash156("sha256").update(bytes5).digest("hex") === ref11.sha256,
475517
475685
  "Native host metadata extent/hash changed"
475518
475686
  );
475519
475687
  const value = JSON.parse(
@@ -476518,7 +476686,7 @@ var NolModelValidationHostFactory = class {
476518
476686
  await this.options.artifacts.verify(ref11, signal);
476519
476687
  const bytes5 = await this.options.artifacts.readBytes(ref11, signal);
476520
476688
  need23(
476521
- bytes5.byteLength === ref11.sizeBytes && createHash155("sha256").update(bytes5).digest("hex") === ref11.sha256,
476689
+ bytes5.byteLength === ref11.sizeBytes && createHash156("sha256").update(bytes5).digest("hex") === ref11.sha256,
476522
476690
  "Native grading bytes changed"
476523
476691
  );
476524
476692
  return bytes5;
@@ -476641,17 +476809,17 @@ var NolModelValidationHostFactory = class {
476641
476809
  // packages/cli/src/nol/peft-model-host.ts
476642
476810
  init_dist();
476643
476811
  init_dist5();
476644
- import { createHash as createHash157 } from "node:crypto";
476812
+ import { createHash as createHash158 } from "node:crypto";
476645
476813
 
476646
476814
  // packages/cli/src/nol/peft-model-subject-adapter.ts
476647
476815
  init_dist();
476648
476816
  init_dist5();
476649
- import { createHash as createHash156 } from "node:crypto";
476817
+ import { createHash as createHash157 } from "node:crypto";
476650
476818
  function need24(v, m) {
476651
476819
  if (!v) throw new Error(`PEFT subject: ${m}`);
476652
476820
  }
476653
476821
  var same31 = (a, b, m) => need24(canonicalNolJson(a) === canonicalNolJson(b), m);
476654
- var hash33 = (bytes5) => createHash156("sha256").update(bytes5).digest("hex");
476822
+ var hash33 = (bytes5) => createHash157("sha256").update(bytes5).digest("hex");
476655
476823
  var NolPeftModelSubjectAdapter = class {
476656
476824
  profile;
476657
476825
  host;
@@ -477167,7 +477335,7 @@ function need25(value, message3) {
477167
477335
  function same32(actual, expected, message3) {
477168
477336
  need25(canonicalNolJson(actual) === canonicalNolJson(expected), message3);
477169
477337
  }
477170
- var hash34 = (bytes5) => createHash157("sha256").update(bytes5).digest("hex");
477338
+ var hash34 = (bytes5) => createHash158("sha256").update(bytes5).digest("hex");
477171
477339
  var NolPeftModelHostExtension = class {
477172
477340
  profiles;
477173
477341
  configurationDigest;
@@ -477545,7 +477713,7 @@ import { fileURLToPath as fileURLToPath13 } from "node:url";
477545
477713
  // packages/cli/src/nol/peft-control-verifier.ts
477546
477714
  init_dist();
477547
477715
  init_dist5();
477548
- import { createHash as createHash158 } from "node:crypto";
477716
+ import { createHash as createHash159 } from "node:crypto";
477549
477717
  import { constants as constants24, lstatSync as lstatSync19, realpathSync as realpathSync32 } from "node:fs";
477550
477718
  import { lstat as lstat20, open as open16, opendir as opendir6 } from "node:fs/promises";
477551
477719
  import { join as join97, relative as relative34, isAbsolute as isAbsolute56 } from "node:path";
@@ -477557,7 +477725,7 @@ import { setImmediate as yieldImmediate } from "node:timers/promises";
477557
477725
  var NOL_PEFT_FACTOR_CONTROL_PROTOCOL = "omnius.nol.peft-factor-support-rademacher.v1";
477558
477726
 
477559
477727
  // packages/cli/src/nol/peft-control-verifier.ts
477560
- var sha35 = (bytes5) => createHash158("sha256").update(bytes5).digest("hex");
477728
+ var sha35 = (bytes5) => createHash159("sha256").update(bytes5).digest("hex");
477561
477729
  var copy9 = (value) => JSON.parse(canonicalNolJson(value));
477562
477730
  function freeze10(value) {
477563
477731
  if (value && typeof value === "object") {
@@ -477744,7 +477912,7 @@ async function checkedFile(path13, ref11, budget, opened) {
477744
477912
  stamp6(await handle.stat()) === file.identity,
477745
477913
  "source changed while opening"
477746
477914
  );
477747
- const digest19 = createHash158("sha256");
477915
+ const digest19 = createHash159("sha256");
477748
477916
  for (let offset = 0; offset < ref11.sizeBytes; offset += budget.options.limits.chunkBytes)
477749
477917
  digest19.update(
477750
477918
  await read(
@@ -477866,7 +478034,7 @@ async function header2(file, budget, factors2) {
477866
478034
  );
477867
478035
  file.dataStart = 8 + size;
477868
478036
  for (const tensor of result) {
477869
- const digest19 = createHash158("sha256");
478037
+ const digest19 = createHash159("sha256");
477870
478038
  if (factors2) {
477871
478039
  budget.factorCoordinates += tensor.count;
477872
478040
  integer25(
@@ -478079,7 +478247,7 @@ async function randomFactors(a, b, modulePath, seed, budget) {
478079
478247
  const block = Math.floor(ordinal / 256);
478080
478248
  if (block !== lastBlock) {
478081
478249
  lastBlock = block;
478082
- bytes5 = createHash158("sha256").update(
478250
+ bytes5 = createHash159("sha256").update(
478083
478251
  `${NOL_PEFT_FACTOR_CONTROL_PROTOCOL}\0${seed}\0${modulePath}\0${part}\0${block}`
478084
478252
  ).digest();
478085
478253
  }
@@ -478248,7 +478416,7 @@ function createNolPeftControlVerifier(input2) {
478248
478416
  stamp6(await file.handle.stat()) === file.identity,
478249
478417
  "implementation source changed"
478250
478418
  );
478251
- const digest19 = createHash158("sha256");
478419
+ const digest19 = createHash159("sha256");
478252
478420
  for (let offset = 0; offset < before.size; offset += options.limits.chunkBytes)
478253
478421
  digest19.update(
478254
478422
  await read(
@@ -478895,7 +479063,7 @@ function createNolPeftModelControlVerifier(options) {
478895
479063
  // packages/cli/src/nol/gguf-cpu-control-reader-service.ts
478896
479064
  init_dist();
478897
479065
  init_dist5();
478898
- import { createHash as createHash159, randomUUID as randomUUID76 } from "node:crypto";
479066
+ import { createHash as createHash160, randomUUID as randomUUID76 } from "node:crypto";
478899
479067
  import { constants as constants25, lstatSync as lstatSync20, realpathSync as realpathSync33, statfsSync as statfsSync6 } from "node:fs";
478900
479068
  import {
478901
479069
  lstat as lstat21,
@@ -478934,7 +479102,7 @@ var inside6 = (root, path13) => {
478934
479102
  };
478935
479103
  var same34 = (a, b) => canonicalNolJson(a) === canonicalNolJson(b);
478936
479104
  var ref8 = (bytes5, mediaType = "application/json") => {
478937
- const sha25611 = createHash159("sha256").update(bytes5).digest("hex");
479105
+ const sha25611 = createHash160("sha256").update(bytes5).digest("hex");
478938
479106
  return {
478939
479107
  sha256: sha25611,
478940
479108
  sizeBytes: bytes5.length,
@@ -478975,7 +479143,7 @@ var NolGgufCpuControlReaderService = class {
478975
479143
  "explicit host owner required"
478976
479144
  );
478977
479145
  this.ownerId = `${options.ownerId}:${randomUUID76()}`;
478978
- this.projectId = createHash159("sha256").update(this.root).digest("hex");
479146
+ this.projectId = createHash160("sha256").update(this.root).digest("hex");
478979
479147
  this.scopeId = nolJsonDigest({ projectId: this.projectId, id: options.id });
478980
479148
  this.leaseMs = options.leaseMs ?? 3e4;
478981
479149
  need28(
@@ -479914,14 +480082,14 @@ var NolGgufCpuControlReaderService = class {
479914
480082
  // packages/cli/src/nol/gguf-model-control-verifier.ts
479915
480083
  init_dist();
479916
480084
  init_dist5();
479917
- import { createHash as createHash160 } from "node:crypto";
480085
+ import { createHash as createHash161 } from "node:crypto";
479918
480086
  import { constants as constants26, lstatSync as lstatSync21, realpathSync as realpathSync34 } from "node:fs";
479919
480087
  import { lstat as lstat22, open as open18, opendir as opendir8 } from "node:fs/promises";
479920
480088
  import { isAbsolute as isAbsolute58, join as join99, relative as relative36 } from "node:path";
479921
480089
  import { fileURLToPath as fileURLToPath15 } from "node:url";
479922
480090
  import { performance as performance6 } from "node:perf_hooks";
479923
480091
  var NOL_GGUF_DENSE_CONTROL_PROTOCOL = "omnius.nol.gguf-dense-post-storage-rademacher.v1";
479924
- var hash35 = (value) => createHash160("sha256").update(value).digest("hex");
480092
+ var hash35 = (value) => createHash161("sha256").update(value).digest("hex");
479925
480093
  var copy11 = (v) => JSON.parse(canonicalNolJson(v));
479926
480094
  function freeze12(v) {
479927
480095
  if (v && typeof v === "object") {
@@ -480042,7 +480210,7 @@ async function readAt(file, offset, size, b) {
480042
480210
  return bytes5;
480043
480211
  }
480044
480212
  async function rangeHash(file, offset, size, b) {
480045
- const h = createHash160("sha256");
480213
+ const h = createHash161("sha256");
480046
480214
  for (let n = 0; n < size; n += b.limits.chunkBytes)
480047
480215
  h.update(
480048
480216
  await readAt(
@@ -480748,7 +480916,7 @@ var Signs = class {
480748
480916
  const index = Math.floor(ordinal / 256);
480749
480917
  if (index !== this.index) {
480750
480918
  this.index = index;
480751
- this.block = createHash160("sha256").update(
480919
+ this.block = createHash161("sha256").update(
480752
480920
  `${NOL_GGUF_DENSE_CONTROL_PROTOCOL}\0${this.seed}\0${this.tensor}\0${index}`
480753
480921
  ).digest();
480754
480922
  }
@@ -481159,7 +481327,7 @@ init_dist();
481159
481327
  // packages/cli/src/nol/model-control-verifier.ts
481160
481328
  init_dist();
481161
481329
  init_dist5();
481162
- import { createHash as createHash161 } from "node:crypto";
481330
+ import { createHash as createHash162 } from "node:crypto";
481163
481331
  import { constants as constants27, lstatSync as lstatSync22, realpathSync as realpathSync35 } from "node:fs";
481164
481332
  import { lstat as lstat23, open as open19, opendir as opendir9 } from "node:fs/promises";
481165
481333
  import { isAbsolute as isAbsolute59, join as join100, relative as relative37 } from "node:path";
@@ -481200,7 +481368,7 @@ function comparisonFiles(model3, receipts) {
481200
481368
  (file) => !(file.role === "other" && Object.hasOwn(receipts, file.path) && canonicalNolJson(file.artifact) === receipts[file.path])
481201
481369
  );
481202
481370
  }
481203
- var hash36 = (bytes5) => createHash161("sha256").update(bytes5).digest("hex");
481371
+ var hash36 = (bytes5) => createHash162("sha256").update(bytes5).digest("hex");
481204
481372
  var copy12 = (value) => JSON.parse(canonicalNolJson(value));
481205
481373
  function freeze13(value) {
481206
481374
  if (value && typeof value === "object") {
@@ -481433,7 +481601,7 @@ async function checkedFile3(path13, ref11, budget) {
481433
481601
  identity: identity9,
481434
481602
  ref: ref11
481435
481603
  };
481436
- const sha38 = createHash161("sha256");
481604
+ const sha38 = createHash162("sha256");
481437
481605
  for (let offset = 0; offset < file.size; offset += budget.limits.chunkBytes)
481438
481606
  sha38.update(
481439
481607
  await readAt2(
@@ -481833,7 +482001,7 @@ async function pytorchTensors(reader, asset2, files, tensors, options, budget) {
481833
482001
  need30(ranges2.length > 0, "weight shard omitted from CPU tensor inventory");
481834
482002
  }
481835
482003
  for (const [name, tensor] of tensors) {
481836
- const sha38 = createHash161("sha256");
482004
+ const sha38 = createHash162("sha256");
481837
482005
  for (let position = tensor.first; position < tensor.last; position += budget.limits.chunkBytes)
481838
482006
  sha38.update(
481839
482007
  await readAt2(
@@ -482145,7 +482313,7 @@ var Signs2 = class {
482145
482313
  const index = Math.floor(ordinal / 256);
482146
482314
  if (index !== this.index) {
482147
482315
  this.index = index;
482148
- this.block = createHash161("sha256").update(
482316
+ this.block = createHash162("sha256").update(
482149
482317
  `${NOL_SAFETENSORS_CONTROL_PROTOCOL}\0${this.seed}\0${this.tensorName}\0${index}`
482150
482318
  ).digest();
482151
482319
  }
@@ -482356,7 +482524,7 @@ function commonVerifier(input2) {
482356
482524
  }
482357
482525
  };
482358
482526
  budget.reserve(sourceInfo.size);
482359
- const sha38 = createHash161("sha256");
482527
+ const sha38 = createHash162("sha256");
482360
482528
  for (let offset = 0; offset < sourceInfo.size; offset += options.limits.chunkBytes)
482361
482529
  sha38.update(
482362
482530
  await readAt2(
@@ -482676,7 +482844,7 @@ function commonVerifier(input2) {
482676
482844
  // packages/cli/src/nol/cpu-control-reader-service.ts
482677
482845
  init_dist();
482678
482846
  init_dist5();
482679
- import { createHash as createHash162, randomUUID as randomUUID77 } from "node:crypto";
482847
+ import { createHash as createHash163, randomUUID as randomUUID77 } from "node:crypto";
482680
482848
  import { constants as constants28, lstatSync as lstatSync23, realpathSync as realpathSync36, statfsSync as statfsSync7 } from "node:fs";
482681
482849
  import {
482682
482850
  lstat as lstat24,
@@ -482715,7 +482883,7 @@ var inside9 = (root, path13) => {
482715
482883
  };
482716
482884
  var same37 = (a, b) => canonicalNolJson(a) === canonicalNolJson(b);
482717
482885
  var ref9 = (bytes5, mediaType = "application/json") => {
482718
- const sha25611 = createHash162("sha256").update(bytes5).digest("hex");
482886
+ const sha25611 = createHash163("sha256").update(bytes5).digest("hex");
482719
482887
  return {
482720
482888
  sha256: sha25611,
482721
482889
  sizeBytes: bytes5.length,
@@ -482756,7 +482924,7 @@ var NolCpuControlReaderService = class {
482756
482924
  "explicit host owner required"
482757
482925
  );
482758
482926
  this.ownerId = `${options.ownerId}:${randomUUID77()}`;
482759
- this.projectId = createHash162("sha256").update(this.root).digest("hex");
482927
+ this.projectId = createHash163("sha256").update(this.root).digest("hex");
482760
482928
  this.scopeId = nolJsonDigest({ projectId: this.projectId, id: options.id });
482761
482929
  this.leaseMs = options.leaseMs ?? 3e4;
482762
482930
  need31(
@@ -484334,12 +484502,12 @@ var SqliteNolVariantStore = class {
484334
484502
  // packages/cli/src/nol/variant-service.ts
484335
484503
  init_dist();
484336
484504
  init_dist5();
484337
- import { createHash as createHash164 } from "node:crypto";
484505
+ import { createHash as createHash165 } from "node:crypto";
484338
484506
 
484339
484507
  // packages/cli/src/nol/model-serving.ts
484340
484508
  init_dist();
484341
484509
  init_dist5();
484342
- import { createHash as createHash163 } from "node:crypto";
484510
+ import { createHash as createHash164 } from "node:crypto";
484343
484511
  var NOL_SANDBOX_SERVING_KIND = "nol_sandbox_serve";
484344
484512
  var NOL_SANDBOX_BINDING_KIND = "nol_sandbox_binding";
484345
484513
  function need32(value, text18) {
@@ -484466,7 +484634,7 @@ var NolSandboxServingService = class {
484466
484634
  "Sandbox bounded result/metadata byte limit exceeded"
484467
484635
  );
484468
484636
  if (!cleanup) this.options.store.assertCurrent(lease());
484469
- const sha25611 = createHash163("sha256").update(bytes5).digest("hex"), ref11 = NolArtifactRefSchema.parse({
484637
+ const sha25611 = createHash164("sha256").update(bytes5).digest("hex"), ref11 = NolArtifactRefSchema.parse({
484470
484638
  uri: `omnius-artifact://sha256/${sha25611}`,
484471
484639
  sha256: sha25611,
484472
484640
  sizeBytes: bytes5.byteLength,
@@ -484574,7 +484742,7 @@ var NolSandboxServingService = class {
484574
484742
  "nol_sandbox_prepaid_control",
484575
484743
  record10.id,
484576
484744
  record10.payload
484577
- ), sha38 = createHash163("sha256").update(bytes5).digest("hex"), reservations = this.options.store.listArtifactReservations(
484745
+ ), sha38 = createHash164("sha256").update(bytes5).digest("hex"), reservations = this.options.store.listArtifactReservations(
484578
484746
  source2.manifestSha256
484579
484747
  ), reserved = reservations.find(
484580
484748
  (v) => v.purpose === "cleanup_artifact" && v.jobId === source2.id && v.generation === r.sourceClaimGeneration && v.artifact?.sha256 === sha38 && v.bytes === bytes5.length
@@ -484755,7 +484923,7 @@ var NolSandboxServingService = class {
484755
484923
  bytes5.length <= this.options.limits.maxMetadataBytes,
484756
484924
  "Prepaid control metadata bound exceeded"
484757
484925
  );
484758
- const sha25611 = createHash163("sha256").update(bytes5).digest("hex");
484926
+ const sha25611 = createHash164("sha256").update(bytes5).digest("hex");
484759
484927
  this.options.store.reserveArtifact(lease, {
484760
484928
  scopeId: source2.manifestSha256,
484761
484929
  id: `cleanup:${sha25611}`,
@@ -484776,7 +484944,7 @@ var NolSandboxServingService = class {
484776
484944
  "nol_sandbox_prepaid_control",
484777
484945
  priorControl.id,
484778
484946
  priorControl.payload
484779
- ), sha38 = createHash163("sha256").update(bytes5).digest("hex");
484947
+ ), sha38 = createHash164("sha256").update(bytes5).digest("hex");
484780
484948
  need32(
484781
484949
  this.options.store.listArtifactReservations(source2.manifestSha256).some(
484782
484950
  (r) => r.purpose === "cleanup_artifact" && r.jobId === source2.id && r.generation === lease.generation && r.artifact?.sha256 === sha38 && r.bytes === bytes5.length
@@ -486153,7 +486321,7 @@ var NolVariantService = class {
486153
486321
  await this.options.artifacts.verify(ref11, signal);
486154
486322
  const bytes5 = await this.options.artifacts.readBytes(ref11, signal);
486155
486323
  need33(
486156
- bytes5.byteLength === ref11.sizeBytes && createHash164("sha256").update(bytes5).digest("hex") === ref11.sha256,
486324
+ bytes5.byteLength === ref11.sizeBytes && createHash165("sha256").update(bytes5).digest("hex") === ref11.sha256,
486157
486325
  "Variant metadata changed while reading"
486158
486326
  );
486159
486327
  const value = JSON.parse(
@@ -486709,7 +486877,7 @@ var NolProjectModelServices = class {
486709
486877
  this.config = JSON.parse(
486710
486878
  canonicalNolJson(options.config)
486711
486879
  );
486712
- this.projectId = createHash165("sha256").update(options.projectRoot).digest("hex");
486880
+ this.projectId = createHash166("sha256").update(options.projectRoot).digest("hex");
486713
486881
  const controls = this.config.controlVerification.kind === "safetensors_post_storage_rademacher_v1" ? createNolSafetensorsControlVerifier({
486714
486882
  profiles: this.config.profiles,
486715
486883
  artifacts: options.artifacts,
@@ -487155,14 +487323,14 @@ init_dist();
487155
487323
  init_dist5();
487156
487324
  import { readFileSync as readFileSync71 } from "node:fs";
487157
487325
  import { fileURLToPath as fileURLToPath18 } from "node:url";
487158
- import { createHash as createHash166 } from "node:crypto";
487326
+ import { createHash as createHash167 } from "node:crypto";
487159
487327
  function buildNolModelJsonScorer(profile3) {
487160
487328
  const validator = createNolJsonSchemaValidator(profile3.jsonSchema, {
487161
487329
  draft: profile3.draft
487162
487330
  });
487163
487331
  const harnessDigest = nolJsonDigest({
487164
487332
  schema: "omnius.nol.model-json-exact-harness.v1",
487165
- implementation: createHash166("sha256").update(readFileSync71(fileURLToPath18(import.meta.url))).digest("hex"),
487333
+ implementation: createHash167("sha256").update(readFileSync71(fileURLToPath18(import.meta.url))).digest("hex"),
487166
487334
  validator: validator.implementationDigest,
487167
487335
  profile: profile3
487168
487336
  });
@@ -487377,7 +487545,7 @@ function hostPlacementHook(options) {
487377
487545
  );
487378
487546
  return options.onPlacementConfirmed;
487379
487547
  }
487380
- var hash37 = (value) => createHash167("sha256").update(value).digest("hex");
487548
+ var hash37 = (value) => createHash168("sha256").update(value).digest("hex");
487381
487549
  var MAX_CONFIG_BYTES2 = 16 * 1024 * 1024;
487382
487550
  async function readNolJsonDocument(path13, maxBytes = MAX_CONFIG_BYTES2) {
487383
487551
  const handle = await open21(path13, constants29.O_RDONLY | constants29.O_NONBLOCK);
@@ -488546,7 +488714,7 @@ async function shutdownNolRuntimes(options = {}) {
488546
488714
 
488547
488715
  // packages/cli/src/nol/transformers-nnsight.ts
488548
488716
  init_dist();
488549
- import { createHash as createHash168 } from "node:crypto";
488717
+ import { createHash as createHash169 } from "node:crypto";
488550
488718
  var NOL_NNSIGHT_GRADIENT_VERSION = "omnius.nol.transformers-nnsight.v2";
488551
488719
  var NOL_NNSIGHT_GRADIENT_BASE_SHA256 = "ea1950abcceda7d76c5fb54c3b10a73d5756cd947149d4b3b6d7be83ae12ebc0";
488552
488720
  var SHA10 = /^[a-f0-9]{64}$/;
@@ -488667,7 +488835,7 @@ function vector(value, size) {
488667
488835
  return parsed;
488668
488836
  });
488669
488837
  need34(
488670
- createHash168("sha256").update(bytes5).digest("hex") === hash38(item.sha256),
488838
+ createHash169("sha256").update(bytes5).digest("hex") === hash38(item.sha256),
488671
488839
  "F32 vector byte identity changed"
488672
488840
  );
488673
488841
  return values;
@@ -488972,7 +489140,7 @@ function verifyNolNnsightGradientObservation(input2) {
488972
489140
  // packages/cli/src/nol/gne-tools-transport.ts
488973
489141
  init_dist();
488974
489142
  init_dist5();
488975
- import { createHash as createHash169 } from "node:crypto";
489143
+ import { createHash as createHash170 } from "node:crypto";
488976
489144
  import { fileURLToPath as fileURLToPath20 } from "node:url";
488977
489145
 
488978
489146
  // packages/cli/src/nol/native-agent-evaluation.ts
@@ -489104,7 +489272,7 @@ var names = Object.keys(NOL_NATIVE_AGENT_SCHEMAS);
489104
489272
  function need36(condition, message3) {
489105
489273
  if (!condition) throw new Error(`GNE native tools: ${message3}`);
489106
489274
  }
489107
- var hash39 = (bytes5) => createHash169("sha256").update(bytes5).digest("hex");
489275
+ var hash39 = (bytes5) => createHash170("sha256").update(bytes5).digest("hex");
489108
489276
  var same42 = (left, right) => canonicalNolJson(left) === canonicalNolJson(right);
489109
489277
  function object30(value) {
489110
489278
  need36(
@@ -490025,12 +490193,12 @@ import {
490025
490193
  writeFile as writeFile5
490026
490194
  } from "node:fs/promises";
490027
490195
  import { join as join103, resolve as resolve61 } from "node:path";
490028
- import { randomUUID as randomUUID79, createHash as createHash170 } from "node:crypto";
490196
+ import { randomUUID as randomUUID79, createHash as createHash171 } from "node:crypto";
490029
490197
  var FILES2 = ["input.json", "result.json"];
490030
490198
  var NAMES = Object.keys(NOL_NATIVE_AGENT_SCHEMAS);
490031
490199
  var BEGIN = "NOL_NATIVE_AGENT_RECEIPT_BEGIN";
490032
490200
  var END = "NOL_NATIVE_AGENT_RECEIPT_END";
490033
- var hash40 = (bytes5) => createHash170("sha256").update(bytes5).digest("hex");
490201
+ var hash40 = (bytes5) => createHash171("sha256").update(bytes5).digest("hex");
490034
490202
  function need37(condition, message3) {
490035
490203
  if (!condition) throw new Error(`GNE agent evaluation: ${message3}`);
490036
490204
  }
@@ -490676,7 +490844,7 @@ ${END}`;
490676
490844
  // packages/cli/src/nol/gne-tools-profile.ts
490677
490845
  init_dist();
490678
490846
  init_dist5();
490679
- import { createHash as createHash171, randomUUID as randomUUID80 } from "node:crypto";
490847
+ import { createHash as createHash172, randomUUID as randomUUID80 } from "node:crypto";
490680
490848
  import { mkdir as mkdir21, lstat as lstat25, realpath as realpath19 } from "node:fs/promises";
490681
490849
  import { isAbsolute as isAbsolute63, join as join104, relative as relative40, resolve as resolve62 } from "node:path";
490682
490850
  init_gne_conformance();
@@ -490685,7 +490853,7 @@ var ISSUED2 = "nol_gne_tools_conformance_issued";
490685
490853
  var POOL = "nol_gne_tools_output_admission";
490686
490854
  var SCOPE5 = "single_private_job_owner_no_general_multijob_atomic_quota_claim";
490687
490855
  var GNE_REVISION = "b1ded91bf1ebd903f7229e4969cc764a418336a8";
490688
- var sha36 = (value) => createHash171("sha256").update(value).digest("hex");
490856
+ var sha36 = (value) => createHash172("sha256").update(value).digest("hex");
490689
490857
  var copy15 = (value) => JSON.parse(canonicalNolJson(value));
490690
490858
  function need38(condition, message3) {
490691
490859
  if (!condition) throw new Error(`GNE tools proof: ${message3}`);
@@ -491673,7 +491841,7 @@ function createNolGneToolsJournalAdmission(input2) {
491673
491841
  // packages/cli/src/nol/transformers-research.ts
491674
491842
  init_dist();
491675
491843
  init_dist5();
491676
- import { createHash as createHash172 } from "node:crypto";
491844
+ import { createHash as createHash173 } from "node:crypto";
491677
491845
  import { constants as constants31 } from "node:fs";
491678
491846
  import { lstat as lstat26, open as open23, realpath as realpath20 } from "node:fs/promises";
491679
491847
  import { dirname as dirname57, isAbsolute as isAbsolute64, resolve as resolve63 } from "node:path";
@@ -491687,7 +491855,7 @@ var HEADS = new Set(
491687
491855
  var need39 = (value, message3) => {
491688
491856
  if (!value) throw new Error(`NOL research capture: ${message3}`);
491689
491857
  };
491690
- var sha37 = (value) => createHash172("sha256").update(value).digest("hex");
491858
+ var sha37 = (value) => createHash173("sha256").update(value).digest("hex");
491691
491859
  var same44 = (left, right) => canonicalNolJson(left) === canonicalNolJson(right);
491692
491860
  function object31(value, keys8) {
491693
491861
  need39(