@tangle-network/agent-runtime 0.133.8 → 0.134.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{activation-CbgOt7bK.js → activation-CY_v6Ia7.js} +3 -3
- package/dist/{activation-CbgOt7bK.js.map → activation-CY_v6Ia7.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{analyst-loop-C189F6v8.js → analyst-loop-BKWqQhVI.js} +2 -2
- package/dist/{analyst-loop-C189F6v8.js.map → analyst-loop-BKWqQhVI.js.map} +1 -1
- package/dist/analyst-loop.js +1 -1
- package/dist/{authoring-DI2ZcORJ.js → authoring-BDICoQby.js} +2 -2
- package/dist/{authoring-DI2ZcORJ.js.map → authoring-BDICoQby.js.map} +1 -1
- package/dist/candidate-execution/index.js +4 -4
- package/dist/{candidate-execution-_u2HIWeX.js → candidate-execution-CWMkOz7g.js} +4 -4
- package/dist/{candidate-execution-_u2HIWeX.js.map → candidate-execution-CWMkOz7g.js.map} +1 -1
- package/dist/{conversation-kPowfA_A.js → conversation-CrWcNPQg.js} +4 -4
- package/dist/{conversation-kPowfA_A.js.map → conversation-CrWcNPQg.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/conversation.js +1 -1
- package/dist/{environment-provider-DTJA4ZiM.js → environment-provider-CPHwqLLm.js} +2 -2
- package/dist/{environment-provider-DTJA4ZiM.js.map → environment-provider-CPHwqLLm.js.map} +1 -1
- package/dist/{environment-provider-B-w9VYcF.d.ts → environment-provider-qDOhdE9M.d.ts} +2 -2
- package/dist/environment-provider.d.ts +1 -1
- package/dist/environment-provider.js +1 -1
- package/dist/{errors-DRoXIc7E.js → errors-CVIDr7GQ.js} +9 -1
- package/dist/errors-CVIDr7GQ.js.map +1 -0
- package/dist/{graph-CnLcp2Tl.js → graph-D5TKFG8R.js} +4 -4
- package/dist/{graph-CnLcp2Tl.js.map → graph-D5TKFG8R.js.map} +1 -1
- package/dist/{improvement-cycle-ekj_ODWY.js → improvement-cycle-XLPktFtP.js} +9 -9
- package/dist/{improvement-cycle-ekj_ODWY.js.map → improvement-cycle-XLPktFtP.js.map} +1 -1
- package/dist/{index-DqJa9jGF.d.ts → index-CgBJtAzI.d.ts} +2 -2
- package/dist/{index-CP8LBWD1.d.ts → index-DBZTN4ci.d.ts} +4 -4
- package/dist/{index-Cgo-tyB8.d.ts → index-DiUDbnk-.d.ts} +29 -6
- package/dist/index.d.ts +7 -7
- package/dist/index.js +14 -14
- package/dist/intelligence.d.ts +4 -4
- package/dist/intelligence.js +6 -6
- package/dist/kernel.d.ts +6 -6
- package/dist/kernel.js +10 -10
- package/dist/{knowledge-BdJoVN9q.js → knowledge-Dv2HMnE6.js} +7 -7
- package/dist/{knowledge-BdJoVN9q.js.map → knowledge-Dv2HMnE6.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-C1uQcY_O.js → loop-runner-bin-Bieu4QO4.js} +5 -5
- package/dist/{loop-runner-bin-C1uQcY_O.js.map → loop-runner-bin-Bieu4QO4.js.map} +1 -1
- package/dist/{loop-runner-bin-BX_266wJ.d.ts → loop-runner-bin-D5JXvb_l.d.ts} +3 -3
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/{materialization-D2bdTfkK.js → materialization-BP5zspr2.js} +25 -10
- package/dist/materialization-BP5zspr2.js.map +1 -0
- package/dist/mcp/bin.js +4 -4
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +9 -9
- package/dist/mcp/memory-bin.js +1 -1
- package/dist/{memory-server-CblxrUKT.js → memory-server-Cdpy7Uu8.js} +3 -3
- package/dist/{memory-server-CblxrUKT.js.map → memory-server-Cdpy7Uu8.js.map} +1 -1
- package/dist/{model-policy-Bv1DU2fw.js → model-policy-UTTc9Z-A.js} +2 -2
- package/dist/{model-policy-Bv1DU2fw.js.map → model-policy-UTTc9Z-A.js.map} +1 -1
- package/dist/{openai-tools-BTznyT19.js → openai-tools-D4Rf0Ciu.js} +2 -2
- package/dist/{openai-tools-BTznyT19.js.map → openai-tools-D4Rf0Ciu.js.map} +1 -1
- package/dist/{prepare-DUbH3GD5.js → prepare-BxP7Hq1l.js} +2 -2
- package/dist/{prepare-DUbH3GD5.js.map → prepare-BxP7Hq1l.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/profiles.js +1 -1
- package/dist/{protected-model-port-DP7MS63a.js → protected-model-port-B82zDDu5.js} +2 -2
- package/dist/{protected-model-port-DP7MS63a.js.map → protected-model-port-B82zDDu5.js.map} +1 -1
- package/dist/{redact-BSD-nvTf.d.ts → redact-6UE6pdNi.d.ts} +3 -3
- package/dist/{researcher-BiWSFLi6.js → researcher-DBfKdnAz.js} +3 -3
- package/dist/{researcher-BiWSFLi6.js.map → researcher-DBfKdnAz.js.map} +1 -1
- package/dist/{runtime-D-26vxJt.d.ts → runtime-DlxoqEj2.d.ts} +27 -6
- package/dist/{runtime-Br49sl8u.js → runtime-Ox-uvtni.js} +29 -14
- package/dist/runtime-Ox-uvtni.js.map +1 -0
- package/dist/{snapshot-DY6VGliG.js → snapshot-BOIprwBk.js} +2 -2
- package/dist/{snapshot-DY6VGliG.js.map → snapshot-BOIprwBk.js.map} +1 -1
- package/dist/{spawn-journal-BX3-4WDm.js → spawn-journal-TJSlDa2J.js} +27 -11
- package/dist/spawn-journal-TJSlDa2J.js.map +1 -0
- package/dist/{stream-agent-turn-NFWCv1X1.d.ts → stream-agent-turn-CJog3ebs.d.ts} +2 -2
- package/dist/{stream-agent-turn-D8YHY0oO.js → stream-agent-turn-CdIcf-bn.js} +4 -4
- package/dist/{stream-agent-turn-D8YHY0oO.js.map → stream-agent-turn-CdIcf-bn.js.map} +1 -1
- package/dist/{structural-rollout-C4_mifPH.js → structural-rollout-CnHKUCVM.js} +6 -6
- package/dist/{structural-rollout-C4_mifPH.js.map → structural-rollout-CnHKUCVM.js.map} +1 -1
- package/dist/{supervise-BTwl4Cdi.js → supervise-BNOccEtp.js} +66 -37
- package/dist/supervise-BNOccEtp.js.map +1 -0
- package/dist/{supervisor-BA87pb7g.js → supervisor-4r4BYSti.js} +75 -22
- package/dist/supervisor-4r4BYSti.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +12 -12
- package/dist/{tool-server-VvSK1K3X.js → tool-server-Dh-NcbHr.js} +2 -2
- package/dist/{tool-server-VvSK1K3X.js.map → tool-server-Dh-NcbHr.js.map} +1 -1
- package/dist/{types-DJ7k6vHE.d.ts → types-D4BfurNs.d.ts} +9 -2
- package/dist/{util-Dr--8wAL.js → util-CG3ghHfb.js} +56 -7
- package/dist/util-CG3ghHfb.js.map +1 -0
- package/dist/{workspace-archive-WEbaLREb.js → workspace-archive-BwJQSvGi.js} +2 -2
- package/dist/{workspace-archive-WEbaLREb.js.map → workspace-archive-BwJQSvGi.js.map} +1 -1
- package/package.json +1 -1
- package/dist/errors-DRoXIc7E.js.map +0 -1
- package/dist/materialization-D2bdTfkK.js.map +0 -1
- package/dist/runtime-Br49sl8u.js.map +0 -1
- package/dist/spawn-journal-BX3-4WDm.js.map +0 -1
- package/dist/supervise-BTwl4Cdi.js.map +0 -1
- package/dist/supervisor-BA87pb7g.js.map +0 -1
- package/dist/util-Dr--8wAL.js.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { f as ValidationError, i as ConfigError, o as NotFoundError, r as BackendTransportError, t as AgentEvalError$1, u as RuntimeRunStateError } from "./errors-
|
|
2
|
-
import { t as detachedSnapshot } from "./snapshot-
|
|
3
|
-
import { S as contentAddress, b as parseWorkerToolTraceArtifact, d as prepareJsonlAppend, f as writeAllBytes, i as InMemorySpawnJournal, n as FileSpawnJournal, r as InMemoryResultBlobStore, t as FileResultBlobStore, u as parseCommittedJsonLines, x as workerTraceAnalysisStore } from "./spawn-journal-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { f as ValidationError, i as ConfigError, o as NotFoundError, r as BackendTransportError, t as AgentEvalError$1, u as RuntimeRunStateError } from "./errors-CVIDr7GQ.js";
|
|
2
|
+
import { t as detachedSnapshot } from "./snapshot-BOIprwBk.js";
|
|
3
|
+
import { S as contentAddress, b as parseWorkerToolTraceArtifact, d as prepareJsonlAppend, f as writeAllBytes, i as InMemorySpawnJournal, n as FileSpawnJournal, r as InMemoryResultBlobStore, t as FileResultBlobStore, u as parseCommittedJsonLines, x as workerTraceAnalysisStore } from "./spawn-journal-TJSlDa2J.js";
|
|
4
|
+
import { n as chargedTokens } from "./util-CG3ghHfb.js";
|
|
5
|
+
import { a as concreteProfileModel, d as harnessRunsAgent, n as assertModelAllowed, r as assertProfileModelsAllowed, s as profileModelExecutionSettings, t as assertExecutableAgentProfile, u as agentHarness } from "./model-policy-UTTc9Z-A.js";
|
|
6
|
+
import { S as runtimeOwnedScopeOwnerRuntime, _ as runtimeOwnedDriveHarnessProviderEvidence, b as runtimeOwnedExecutorProviderEvidence, d as recordRuntimeOwnedDriveHarnessProviderEvidence, i as attestRuntimeOwnedScopeOwner, s as inheritRuntimeOwnedExecutorAttestation, v as runtimeOwnedExecutorExecutionBinding, x as runtimeOwnedPendingExecutorMaterialization, y as runtimeOwnedExecutorMaterialization } from "./materialization-BP5zspr2.js";
|
|
7
|
+
import { A as spendFromUsageEvents, C as freeSlots, D as teardownExecutor, E as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, F as createExecutor, Gt as defineProfileMaterializationContract, I as createExecutorRegistry, Jt as promptControlProfileMaterialization, Kt as fullProfileMaterialization, L as snapshotExecutorConfig, M as bridgeStopSignalKey, N as captureReusableExecutorConfig, O as assertValidBudget, Q as createInbox, Tt as toOtelAttributes, Ut as assertProfileMaterialization, Wt as controlProfileMaterialization, Yt as promptModelProfileMaterialization, a as pickBestDelivered, at as routerBrain, c as driverChild, d as deriveNodeExecutionIdentity, f as meterRuntimeOwnedProviderAttempt, ht as buildLoopSpanNodes, j as bindReusableExecutorExecutionId, l as withDriverExecutor, m as scopeOwnerExecutorNodeContext, n as createSupervisor, o as runFinalizer, ot as runBrainLoop, p as recordScopeOwnerMaterialization, qt as profileMaterializationAxes$1, r as bestDelivered, s as runTree, tn as worktreeCliProfileMaterialization, vt as createOtelExporter, xt as generateSpanId, z as WORKER_TRACE_PROPAGATION } from "./supervisor-4r4BYSti.js";
|
|
7
8
|
import { t as composeRuntimeHooks } from "./runtime-hooks-C7iJOWm3.js";
|
|
8
|
-
import { t as createStdioToolServer } from "./tool-server-
|
|
9
|
+
import { t as createStdioToolServer } from "./tool-server-Dh-NcbHr.js";
|
|
9
10
|
import { n as UI_LENSES } from "./substrate-B0TYNrXn.js";
|
|
10
11
|
import { argHash, errorStreakDetector, observeAll, repeatedActionDetector } from "@tangle-network/agent-eval";
|
|
11
12
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
|
|
@@ -3040,7 +3041,7 @@ function resumeBrief(resume, prior) {
|
|
|
3040
3041
|
if (resume.waits.length > 0) lines.push("", "Pending waits RE-ARMED on their original deadlines (they settle through await_event):", ...resume.waits.map((w) => `- ${w.label} (${w.spec.kind})`));
|
|
3041
3042
|
appendPriorCoordination(lines, prior);
|
|
3042
3043
|
const spent = resume.priorSpend;
|
|
3043
|
-
lines.push("", "Budget the run ALREADY spent before this process (it counts toward the run total):", `- child work: tokens in=${spent.childWork.tokens.input} out=${spent.childWork.tokens.output}, usd=${spent.childWork.usd}, iterations=${spent.childWork.iterations}`, `- driver inference: tokens in=${spent.driverInference.tokens.input} out=${spent.driverInference.tokens.output}, usd=${spent.driverInference.usd}`);
|
|
3044
|
+
lines.push("", "Budget the run ALREADY spent before this process (it counts toward the run total):", `- child work: tokens charged=${chargedTokens(spent.childWork.tokens)} (in=${spent.childWork.tokens.input} out=${spent.childWork.tokens.output}), usd=${spent.childWork.usd}, iterations=${spent.childWork.iterations}`, `- driver inference: tokens charged=${chargedTokens(spent.driverInference.tokens)} (in=${spent.driverInference.tokens.input} out=${spent.driverInference.tokens.output}), usd=${spent.driverInference.usd}`);
|
|
3044
3045
|
return lines.join("\n");
|
|
3045
3046
|
}
|
|
3046
3047
|
function hasPriorCoordination(prior) {
|
|
@@ -5808,11 +5809,13 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now) {
|
|
|
5808
5809
|
if (attempt === void 0) return providerAttemptEvidence(void 0);
|
|
5809
5810
|
const observations = Object.freeze([...attempt.observations]);
|
|
5810
5811
|
const models = Object.freeze([...new Set(observations)]);
|
|
5811
|
-
|
|
5812
|
+
const providerDispatch = attempt.providerDispatch;
|
|
5813
|
+
return Object.freeze(attempt.identityConflict === true || providerDispatch === "not_started" || providerDispatch !== "not_started" && observations.length === 0 ? {
|
|
5812
5814
|
status: "unknown",
|
|
5813
5815
|
attempts: Object.freeze([Object.freeze({
|
|
5814
5816
|
observations,
|
|
5815
|
-
...attempt.identityConflict === true ? { identityConflict: true } : {}
|
|
5817
|
+
...attempt.identityConflict === true ? { identityConflict: true } : {},
|
|
5818
|
+
...providerDispatch === "not_started" ? { providerDispatch } : {}
|
|
5816
5819
|
})]),
|
|
5817
5820
|
models,
|
|
5818
5821
|
reason: attempt.identityConflict === true ? "provider-model-conflict" : "provider-model-missing"
|
|
@@ -5845,12 +5848,38 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now) {
|
|
|
5845
5848
|
const budget = scope.budget;
|
|
5846
5849
|
if (budget.tokensLeft <= 0 || budget.usdCapped && budget.usdLeft <= 0 || budget.deadlineMs > 0 && now() >= budget.deadlineMs) throw new ValidationError("driveHarnessFromBackend: supervisor budget exhausted");
|
|
5847
5850
|
};
|
|
5851
|
+
const pending = runtimeOwnedPendingExecutorMaterialization(executor);
|
|
5848
5852
|
let failed = false;
|
|
5849
5853
|
let failure;
|
|
5854
|
+
let ownerMaterializationPublished = false;
|
|
5855
|
+
const ownerDeclaration = (exactDeclaration) => ({
|
|
5856
|
+
...exactDeclaration,
|
|
5857
|
+
effectiveProfile: canonicalDriverProfile,
|
|
5858
|
+
platformAttachments: { [coordinationMcpAlias]: {
|
|
5859
|
+
kind: "coordination-mcp",
|
|
5860
|
+
transport: "http",
|
|
5861
|
+
tools: stableCoordinationTools
|
|
5862
|
+
} }
|
|
5863
|
+
});
|
|
5864
|
+
const publishMaterialization = async (exactDeclaration, exactBinding) => {
|
|
5865
|
+
await recordScopeOwnerMaterialization(scope, executor.runtime, ownerDeclaration(exactDeclaration), {
|
|
5866
|
+
...exactBinding,
|
|
5867
|
+
binding: {
|
|
5868
|
+
stableBinding: exactBinding.binding,
|
|
5869
|
+
platformAttachments: { [coordinationMcpAlias]: {
|
|
5870
|
+
transport: "http",
|
|
5871
|
+
url: coordinationMcpUrl
|
|
5872
|
+
} }
|
|
5873
|
+
},
|
|
5874
|
+
descriptor: {
|
|
5875
|
+
...exactBinding.descriptor,
|
|
5876
|
+
coordination: true
|
|
5877
|
+
}
|
|
5878
|
+
});
|
|
5879
|
+
};
|
|
5850
5880
|
try {
|
|
5851
5881
|
const declaration = runtimeOwnedExecutorMaterialization(executor);
|
|
5852
5882
|
const executionBinding = runtimeOwnedExecutorExecutionBinding(executor);
|
|
5853
|
-
const pending = runtimeOwnedPendingExecutorMaterialization(executor);
|
|
5854
5883
|
const authoredProfileFromDriverExecution = (profile) => {
|
|
5855
5884
|
const { [coordinationMcpAlias]: _runtimeAttachment, ...authoredMcp } = profile.mcp ?? {};
|
|
5856
5885
|
const { mcp: _mcp, ...withoutMcp } = profile;
|
|
@@ -5859,31 +5888,6 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now) {
|
|
|
5859
5888
|
mcp: authoredMcp
|
|
5860
5889
|
} : withoutMcp);
|
|
5861
5890
|
};
|
|
5862
|
-
const ownerDeclaration = (exactDeclaration) => ({
|
|
5863
|
-
...exactDeclaration,
|
|
5864
|
-
effectiveProfile: canonicalDriverProfile,
|
|
5865
|
-
platformAttachments: { [coordinationMcpAlias]: {
|
|
5866
|
-
kind: "coordination-mcp",
|
|
5867
|
-
transport: "http",
|
|
5868
|
-
tools: stableCoordinationTools
|
|
5869
|
-
} }
|
|
5870
|
-
});
|
|
5871
|
-
const publishMaterialization = async (exactDeclaration, exactBinding) => {
|
|
5872
|
-
await recordScopeOwnerMaterialization(scope, executor.runtime, ownerDeclaration(exactDeclaration), {
|
|
5873
|
-
...exactBinding,
|
|
5874
|
-
binding: {
|
|
5875
|
-
stableBinding: exactBinding.binding,
|
|
5876
|
-
platformAttachments: { [coordinationMcpAlias]: {
|
|
5877
|
-
transport: "http",
|
|
5878
|
-
url: coordinationMcpUrl
|
|
5879
|
-
} }
|
|
5880
|
-
},
|
|
5881
|
-
descriptor: {
|
|
5882
|
-
...exactBinding.descriptor,
|
|
5883
|
-
coordination: true
|
|
5884
|
-
}
|
|
5885
|
-
});
|
|
5886
|
-
};
|
|
5887
5891
|
if (pending === void 0 && (declaration === void 0 || executionBinding === void 0)) throw new ValidationError(`driveHarnessFromBackend: built-in runtime ${JSON.stringify(executor.runtime)} has no trusted materialization declaration or execution binding`);
|
|
5888
5892
|
if (pending !== void 0) {
|
|
5889
5893
|
if (pending.runtime !== executor.runtime || pending.binding.attemptId !== scopeOwnerExecutorNodeContext(scope).attemptId) throw new ValidationError("driveHarnessFromBackend: pending executor did not bind the kernel-minted attempt");
|
|
@@ -5929,12 +5933,26 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now) {
|
|
|
5929
5933
|
const acknowledgedBinding = runtimeOwnedExecutorExecutionBinding(executor);
|
|
5930
5934
|
if (acknowledged === void 0 || acknowledgedBinding === void 0) throw new ValidationError("driveHarnessFromBackend: external executor completed without a terminal materialization acknowledgement");
|
|
5931
5935
|
await publishMaterialization(acknowledged, acknowledgedBinding);
|
|
5936
|
+
ownerMaterializationPublished = true;
|
|
5932
5937
|
}
|
|
5933
5938
|
completed = true;
|
|
5934
5939
|
} catch (error) {
|
|
5935
5940
|
failed = true;
|
|
5936
5941
|
failure = error;
|
|
5937
5942
|
} finally {
|
|
5943
|
+
if (pending !== void 0 && !ownerMaterializationPublished) {
|
|
5944
|
+
const acknowledged = runtimeOwnedExecutorMaterialization(executor);
|
|
5945
|
+
const acknowledgedBinding = runtimeOwnedExecutorExecutionBinding(executor);
|
|
5946
|
+
if (acknowledged !== void 0 && acknowledgedBinding !== void 0) try {
|
|
5947
|
+
await publishMaterialization(acknowledged, acknowledgedBinding);
|
|
5948
|
+
ownerMaterializationPublished = true;
|
|
5949
|
+
} catch (error) {
|
|
5950
|
+
if (!failed) {
|
|
5951
|
+
failed = true;
|
|
5952
|
+
failure = error;
|
|
5953
|
+
}
|
|
5954
|
+
}
|
|
5955
|
+
}
|
|
5938
5956
|
recordRuntimeOwnedDriveHarnessProviderEvidence(drive, runtimeOwnedExecutorProviderEvidence(executor));
|
|
5939
5957
|
try {
|
|
5940
5958
|
await meterPending(failed && started && !terminalAccountingCaptured);
|
|
@@ -6107,6 +6125,16 @@ function captureSuperviseOptions(opts) {
|
|
|
6107
6125
|
});
|
|
6108
6126
|
}
|
|
6109
6127
|
/** A quarter of token and optional dollar capacity per worker; nested managers partition again. */
|
|
6128
|
+
/** A per-child budget may not exceed the conserved pool it is reserved from. */
|
|
6129
|
+
function assertPerWorkerWithinPool(perWorker, pool) {
|
|
6130
|
+
const over = (child, total, field) => child > total ? `supervise perWorker.${field} (${child}) exceeds budget.${field} (${total})` : null;
|
|
6131
|
+
const problems = [
|
|
6132
|
+
over(perWorker.maxTokens, pool.maxTokens, "maxTokens"),
|
|
6133
|
+
over(perWorker.maxIterations, pool.maxIterations, "maxIterations"),
|
|
6134
|
+
perWorker.maxUsd !== void 0 && pool.maxUsd !== void 0 ? over(perWorker.maxUsd, pool.maxUsd, "maxUsd") : null
|
|
6135
|
+
].filter((x) => x !== null);
|
|
6136
|
+
if (problems.length > 0) throw new ValidationError(`${problems.join("; ")} — a per-child ceiling cannot exceed the pool it draws from, and accepting it silently leaves the caller believing a knob is in effect when the reservation still clamps the child.`);
|
|
6137
|
+
}
|
|
6110
6138
|
function defaultPerWorker(budget) {
|
|
6111
6139
|
return {
|
|
6112
6140
|
maxIterations: Math.max(1, Math.floor(budget.maxIterations / 4)),
|
|
@@ -6242,6 +6270,7 @@ function superviseInternal(profile, task, opts, testBrain) {
|
|
|
6242
6270
|
const blobs = options.blobs ?? ctx.blobs;
|
|
6243
6271
|
const perWorker = options.perWorker ?? defaultPerWorker(options.budget);
|
|
6244
6272
|
assertValidBudget(perWorker, "supervise perWorker");
|
|
6273
|
+
assertPerWorkerWithinPool(perWorker, options.budget);
|
|
6245
6274
|
const journal = options.journal ?? ctx.journal;
|
|
6246
6275
|
const runId = options.runId ?? "supervise";
|
|
6247
6276
|
const runNamespace = supervisionRunNamespace(options.runDir, runId);
|
|
@@ -6539,4 +6568,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
|
|
|
6539
6568
|
//#endregion
|
|
6540
6569
|
export { DELEGATION_TRACE_MAX_BYTES as $, DELEGATION_HISTORY_INPUT_SCHEMA as A, defaultToolDetectors as At, DELEGATE_FEEDBACK_INPUT_SCHEMA as B, createMcpServer as C, plateauLength as Ct, createDelegationStatusHandler as D, createCoordinationTools as Dt, DELEGATION_STATUS_TOOL_NAME as E, canonicalFindingEvent as Et, DELEGATE_UI_AUDIT_INPUT_SCHEMA as F, createSupervisorSpanRecorder as Ft, DELEGATE_INPUT_SCHEMA as G, createDelegateFeedbackHandler as H, DELEGATE_UI_AUDIT_TOOL_NAME as I, gateOnDeliverable as It, validateDelegateArgs as J, DELEGATE_TOOL_NAME as K, createDelegateUiAuditHandler as L, mapExecutorResult as Lt, createDelegationHistoryHandler as M, createFileRunContext as Mt, validateDelegationHistoryArgs as N, createInMemoryRunContext as Nt, validateDelegationStatusArgs as O, normalizeAnalyzeOnSettle as Ot, DELEGATE_UI_AUDIT_DESCRIPTION as P, FileCoordinationLog as Pt, hashIdempotencyInput as Q, validateDelegateUiAuditArgs as R, createInProcessTransport as S, bestSoFar as St, DELEGATION_STATUS_INPUT_SCHEMA as T, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as Tt, validateDelegateFeedbackArgs as U, DELEGATE_FEEDBACK_TOOL_NAME as V, DELEGATE_DESCRIPTION as W, delegate as X, defaultDelegateBudget as Y, DelegationTaskQueue as Z, promptHandle as _, noProgressFor as _t, assertCoordinationBinding as a, DelegationPersistenceError as at, classifyDriverFailure as b, anytimeReport as bt, supervisorAgentWithTestBrain as c, InMemoryDelegationStore as ct, delegatesWorkerBriefPrompt as d, driverAgent as dt, DELEGATION_TRACE_MAX_SPANS as et, dumbContinuationFailPrompt as f, finalizeBestDelivered as ft, naiveContinuationPrompt as g, createProgressTracker as gt, kernelPromptRegistry as h, anyOf as ht, workerFromBackend as i, createDelegationTraceCollector as it, DELEGATION_HISTORY_TOOL_NAME as j, watchTrace as jt, DELEGATION_HISTORY_DESCRIPTION as k, createEventBus as kt, analyzesFindingsReportPrompt as l, InMemoryFeedbackStore as lt, formatPromptHandle as m, allWorkersStalled as mt, supervise as n, capDelegationTrace as nt, resolveSupervisorProfile as o, DelegationStateCorruptError as ot, dumbContinuationPassPrompt as p, allOf as pt, createDelegateHandler as q, superviseWithTestBrain as r, composeLoopTraceEmitters as rt, supervisorAgent as s, FileDelegationStore as st, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, buildDelegationTraceSpans as tt, createPromptRegistry as u, eventToSnapshot as ut, supervisorPolicyPrompt as v, plateau as vt, DELEGATION_STATUS_DESCRIPTION as w, renderAnytimeTable as wt, serveCoordinationMcp as x, areaUnderCurve as xt, DriverAttemptsExhaustedError as y, sampleFromSettled as yt, DELEGATE_FEEDBACK_DESCRIPTION as z };
|
|
6541
6570
|
|
|
6542
|
-
//# sourceMappingURL=supervise-
|
|
6571
|
+
//# sourceMappingURL=supervise-BNOccEtp.js.map
|