@tangle-network/agent-runtime 0.132.5 → 0.132.7
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-Djhlt6gA.js → activation-Cb1vGSdK.js} +2 -2
- package/dist/{activation-Djhlt6gA.js.map → activation-Cb1vGSdK.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{authoring-4Yyp4Get.js → authoring-CQP4S4uc.js} +2 -2
- package/dist/{authoring-4Yyp4Get.js.map → authoring-CQP4S4uc.js.map} +1 -1
- package/dist/{conversation-D95pue6P.js → conversation-BiII3X_6.js} +3 -3
- package/dist/{conversation-D95pue6P.js.map → conversation-BiII3X_6.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/conversation.js +1 -1
- package/dist/{environment-provider-DlYw_pjo.d.ts → environment-provider-CkSDxRZd.d.ts} +2 -2
- package/dist/environment-provider.d.ts +1 -1
- package/dist/{graph-C-2FjZYl.js → graph-DgDaI3KK.js} +2 -2
- package/dist/{graph-C-2FjZYl.js.map → graph-DgDaI3KK.js.map} +1 -1
- package/dist/{improvement-cycle-CcNYXtV3.js → improvement-cycle-DCBmuhht.js} +4 -4
- package/dist/{improvement-cycle-CcNYXtV3.js.map → improvement-cycle-DCBmuhht.js.map} +1 -1
- package/dist/{index-CcpNgmQY.d.ts → index-BsrFZu0N.d.ts} +4 -4
- package/dist/{index-iwZ0at5o.d.ts → index-Cdf9NET5.d.ts} +2 -2
- package/dist/{index-D9dVsozT.d.ts → index-DixXnx07.d.ts} +73 -7
- package/dist/index.d.ts +8 -8
- package/dist/index.js +9 -9
- package/dist/intelligence.d.ts +4 -4
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +6 -6
- package/dist/kernel.js +7 -7
- package/dist/{knowledge-DHC3bfYP.js → knowledge-B8pmbGqF.js} +3 -3
- package/dist/{knowledge-DHC3bfYP.js.map → knowledge-B8pmbGqF.js.map} +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-D9OAFkP_.d.ts → loop-runner-bin-BqJGlXju.d.ts} +3 -3
- package/dist/{loop-runner-bin-BDKC-Pfw.js → loop-runner-bin-D9qLc2dD.js} +3 -3
- package/dist/{loop-runner-bin-BDKC-Pfw.js.map → loop-runner-bin-D9qLc2dD.js.map} +1 -1
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/{materialization-DBXuH34A.js → materialization-JR_nN_oT.js} +18 -2
- package/dist/materialization-JR_nN_oT.js.map +1 -0
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-DWfAhx1n.js → openai-tools-C6KQ6aVK.js} +2 -2
- package/dist/{openai-tools-DWfAhx1n.js.map → openai-tools-C6KQ6aVK.js.map} +1 -1
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{redact-mWj5eu4X.d.ts → redact-BAnM2avI.d.ts} +3 -3
- package/dist/{runtime-B3Ty5dJP.js → runtime-B5z9C4gn.js} +65 -15
- package/dist/runtime-B5z9C4gn.js.map +1 -0
- package/dist/{runtime-aXvRThzL.d.ts → runtime-CKk_poJ-.d.ts} +3 -3
- package/dist/{stream-agent-turn-BxwZJVfZ.js → stream-agent-turn-Bo5ZSAUR.js} +2 -2
- package/dist/{stream-agent-turn-BxwZJVfZ.js.map → stream-agent-turn-Bo5ZSAUR.js.map} +1 -1
- package/dist/{stream-agent-turn-BXiMHdCf.d.ts → stream-agent-turn-By46GZlo.d.ts} +2 -2
- package/dist/{structural-rollout-lRYq5ra9.js → structural-rollout-DBYiyyE-.js} +4 -4
- package/dist/{structural-rollout-lRYq5ra9.js.map → structural-rollout-DBYiyyE-.js.map} +1 -1
- package/dist/{supervise-CxYIRLFa.js → supervise-oLZHae_v.js} +40 -5
- package/dist/supervise-oLZHae_v.js.map +1 -0
- package/dist/{supervisor-CRYhRmN7.js → supervisor-D5ar0Rs6.js} +6 -5
- package/dist/{supervisor-CRYhRmN7.js.map → supervisor-D5ar0Rs6.js.map} +1 -1
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +11 -11
- package/dist/{types-B9KAen_0.d.ts → types-BjUQODeG.d.ts} +21 -2
- package/package.json +1 -1
- package/dist/materialization-DBXuH34A.js.map +0 -1
- package/dist/runtime-B3Ty5dJP.js.map +0 -1
- package/dist/supervise-CxYIRLFa.js.map +0 -1
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dt as RunGraphTestOptions, Ga as SuperviseTestOptions, an as DriverAgentOptions, fo as supervisorAgentWithTestBrain, jt as runGraphWithTestBrain, on as driverAgent, qa as superviseWithTestBrain, ro as SupervisorAgentTestDeps } from "./index-
|
|
2
|
-
import { J as ToolLoopCallContext, Y as ToolLoopChat } from "./runtime-
|
|
1
|
+
import { Dt as RunGraphTestOptions, Ga as SuperviseTestOptions, an as DriverAgentOptions, fo as supervisorAgentWithTestBrain, jt as runGraphWithTestBrain, on as driverAgent, qa as superviseWithTestBrain, ro as SupervisorAgentTestDeps } from "./index-DixXnx07.js";
|
|
2
|
+
import { J as ToolLoopCallContext, Y as ToolLoopChat } from "./runtime-CKk_poJ-.js";
|
|
3
3
|
import { AgentImprovementProposal, AgentProfile, AgentProfileImprovementMeasuredComparison, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
4
4
|
//#region src/testing/index.d.ts
|
|
5
5
|
/** A proposal produced by Runtime's opaque profile-improvement path. */
|
package/dist/testing.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $ as parseExactAgentProfile, K as applyExactAgentProfileDiff, rt as canonicalCandidateDigest$1, st as immutableCandidateValue } from "./prepare-BQ82nG06.js";
|
|
2
|
-
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-
|
|
3
|
-
import { c as supervisorAgentWithTestBrain, dt as driverAgent, r as superviseWithTestBrain } from "./supervise-
|
|
4
|
-
import { i as runGraphWithTestBrain } from "./graph-
|
|
2
|
+
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-DCBmuhht.js";
|
|
3
|
+
import { c as supervisorAgentWithTestBrain, dt as driverAgent, r as superviseWithTestBrain } from "./supervise-oLZHae_v.js";
|
|
4
|
+
import { i as runGraphWithTestBrain } from "./graph-DgDaI3KK.js";
|
|
5
5
|
import { SANDBOX_SIZE_PRESET_NAMES } from "@tangle-network/agent-interface";
|
|
6
6
|
//#region src/testing/fixtures/agent-improvement-proposal.json
|
|
7
7
|
var agent_improvement_proposal_default = {
|
|
8
8
|
changedSurfaces: ["prompt"],
|
|
9
|
-
digest: "sha256:
|
|
9
|
+
digest: "sha256:0cc6d4c469a718a981f0d422023bba1d3508a2d08ea065fe677c1f6c06cf6cb8",
|
|
10
10
|
evaluation: {
|
|
11
11
|
"decision": {
|
|
12
12
|
"contributingChecks": [
|
|
@@ -4565,7 +4565,7 @@ var agent_improvement_proposal_default = {
|
|
|
4565
4565
|
],
|
|
4566
4566
|
"metadata": {
|
|
4567
4567
|
"fixture": "agent-improvement-proposal",
|
|
4568
|
-
"runtimeVersion": "0.132.
|
|
4568
|
+
"runtimeVersion": "0.132.7"
|
|
4569
4569
|
},
|
|
4570
4570
|
"objectives": [
|
|
4571
4571
|
{
|
|
@@ -4676,8 +4676,8 @@ var agent_improvement_proposal_default = {
|
|
|
4676
4676
|
"baselineContentHash": "sha256:5c21ee53e513fc604cb09754e21c392b24a424da0ef37dbf8f1ee4a8a0b08f09",
|
|
4677
4677
|
"candidateContentHash": "sha256:60fcbb1c728194bd51d7d19cb732d1c3f1881dce7e0a6266b41c8b98cfd65693",
|
|
4678
4678
|
"kind": "agent-eval-loop",
|
|
4679
|
-
"recordDigest": "sha256:
|
|
4680
|
-
"runId": "agent-runtime-0.132.
|
|
4679
|
+
"recordDigest": "sha256:12c9da8884d761c4cd8b6b2d26501c05f3a59a281e7c178a1d20293325cd751c",
|
|
4680
|
+
"runId": "agent-runtime-0.132.7-proposal-fixture",
|
|
4681
4681
|
"schema": "agent-candidate-experiment"
|
|
4682
4682
|
}
|
|
4683
4683
|
},
|
|
@@ -4700,13 +4700,13 @@ var agent_improvement_proposal_default = {
|
|
|
4700
4700
|
}],
|
|
4701
4701
|
kind: "agent-improvement-proposal",
|
|
4702
4702
|
proposedAt: "2026-07-10T01:00:00.000Z",
|
|
4703
|
-
runId: "agent-runtime-0.132.
|
|
4703
|
+
runId: "agent-runtime-0.132.7-proposal-fixture"
|
|
4704
4704
|
};
|
|
4705
4705
|
//#endregion
|
|
4706
4706
|
//#region src/testing/fixtures/agent-profile-improvement-proposal.json
|
|
4707
4707
|
var agent_profile_improvement_proposal_default = {
|
|
4708
4708
|
changedSurfaces: ["prompt", "skills"],
|
|
4709
|
-
digest: "sha256:
|
|
4709
|
+
digest: "sha256:cc0e1f36fd881534381ae2a57c220314aaa8ef0c4679b1c9a6c35f7cd2dad50c",
|
|
4710
4710
|
evaluation: {
|
|
4711
4711
|
"decision": {
|
|
4712
4712
|
"contributingChecks": [
|
|
@@ -6340,7 +6340,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6340
6340
|
],
|
|
6341
6341
|
"metadata": {
|
|
6342
6342
|
"fixture": "agent-profile-improvement-proposal",
|
|
6343
|
-
"runtimeVersion": "0.132.
|
|
6343
|
+
"runtimeVersion": "0.132.7"
|
|
6344
6344
|
},
|
|
6345
6345
|
"objectives": [
|
|
6346
6346
|
{
|
|
@@ -6451,7 +6451,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6451
6451
|
"baselineContentHash": "sha256:21c495a37c418c10bde64fbaa188beddeed31f1f051ea60a6a6582a9ee0db704",
|
|
6452
6452
|
"candidateContentHash": "sha256:103f77bc8481601eef1ad5fe6ba84a40dffabc3a44f421f8c8559121edab84e9",
|
|
6453
6453
|
"kind": "agent-eval-loop",
|
|
6454
|
-
"recordDigest": "sha256:
|
|
6454
|
+
"recordDigest": "sha256:51e9f057fffd6e784d2c586fd554d47c593f2ce25f30d45a31d3cca5b77caf73",
|
|
6455
6455
|
"runId": "profile-improvement-1",
|
|
6456
6456
|
"schema": "agent-profile-improvement-experiment"
|
|
6457
6457
|
}
|
|
@@ -1706,6 +1706,19 @@ interface SupervisorOpts {
|
|
|
1706
1706
|
readonly reason: 'no-env-channel' | 'no-worker-process' | 'caller-omitted';
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
|
+
/** Provider-observed model identity for the root manager's settled inference turns.
|
|
1710
|
+
* Runtime records this only from a Runtime-owned provider/bridge receipt; an authored profile
|
|
1711
|
+
* alias is never substituted when the provider omits the identity. */
|
|
1712
|
+
type RootProviderModelEvidence = {
|
|
1713
|
+
readonly status: 'known';
|
|
1714
|
+
/** Every settled root turn reported this identity; duplicates are retained only once. */
|
|
1715
|
+
readonly models: ReadonlyArray<string>;
|
|
1716
|
+
} | {
|
|
1717
|
+
readonly status: 'unknown';
|
|
1718
|
+
/** Known observations may remain useful for diagnostics, but cannot prove one identity. */
|
|
1719
|
+
readonly models: ReadonlyArray<string>;
|
|
1720
|
+
readonly reason: 'provider-model-missing';
|
|
1721
|
+
};
|
|
1709
1722
|
/**
|
|
1710
1723
|
* A driver's `act()` rejection, normalized to a serializable triple so it survives the typed
|
|
1711
1724
|
* no-winner boundary (an `Error` does not cross a structured-clone / JSON hop intact). A
|
|
@@ -1750,6 +1763,8 @@ type SupervisedResult<Out> = {
|
|
|
1750
1763
|
* record and every settled/metered record carried a complete receipt on that channel;
|
|
1751
1764
|
* `false` comes with the unaccounted nodes named in `spendGaps`. */
|
|
1752
1765
|
spentTotal: Spend;
|
|
1766
|
+
/** Runtime-owned provider evidence for the root manager, when the root executed inference. */
|
|
1767
|
+
readonly rootProviderModel?: RootProviderModelEvidence;
|
|
1753
1768
|
/** The journaled nodes whose usage accounting is incomplete — the named gaps behind a
|
|
1754
1769
|
* `false` `tokensKnown`/`usdKnown` on `spentTotal`. Present exactly when non-empty. */
|
|
1755
1770
|
spendGaps?: ReadonlyArray<SpendGap>;
|
|
@@ -1779,6 +1794,8 @@ type SupervisedResult<Out> = {
|
|
|
1779
1794
|
* off the same journal the `winner` path reads, with the same contract: wall-clock `ms`,
|
|
1780
1795
|
* explicit `tokensKnown`/`usdKnown`, gaps named in `spendGaps`. */
|
|
1781
1796
|
spentTotal: Spend;
|
|
1797
|
+
/** Runtime-owned provider evidence for the root manager, when the root executed inference. */
|
|
1798
|
+
readonly rootProviderModel?: RootProviderModelEvidence;
|
|
1782
1799
|
/** The journaled nodes whose usage accounting is incomplete — the named gaps behind a
|
|
1783
1800
|
* `false` `tokensKnown`/`usdKnown` on `spentTotal`. Present exactly when non-empty. */
|
|
1784
1801
|
spendGaps?: ReadonlyArray<SpendGap>;
|
|
@@ -1802,6 +1819,8 @@ type SupervisedResult<Out> = {
|
|
|
1802
1819
|
* off the same journal the `winner` path reads, with the same contract: wall-clock `ms`,
|
|
1803
1820
|
* explicit `tokensKnown`/`usdKnown`, gaps named in `spendGaps`. */
|
|
1804
1821
|
spentTotal: Spend;
|
|
1822
|
+
/** Runtime-owned provider evidence for the root manager, when the root executed inference. */
|
|
1823
|
+
readonly rootProviderModel?: RootProviderModelEvidence;
|
|
1805
1824
|
/** The journaled nodes whose usage accounting is incomplete — the named gaps behind a
|
|
1806
1825
|
* `false` `tokensKnown`/`usdKnown` on `spentTotal`. Present exactly when non-empty. */
|
|
1807
1826
|
spendGaps?: ReadonlyArray<SpendGap>;
|
|
@@ -1854,5 +1873,5 @@ interface WidenGate<Out> {
|
|
|
1854
1873
|
readonly judgeExempt?: boolean;
|
|
1855
1874
|
}
|
|
1856
1875
|
//#endregion
|
|
1857
|
-
export {
|
|
1858
|
-
//# sourceMappingURL=types-
|
|
1876
|
+
export { WorkerTraceEvidence as $, isWaitOutcome as $t, RootMaterialization as A, loopEventToOtelSpan as At, SpawnRejection as B, SanitizedKnowledgeRequirement as Bt, NodeStatus as C, buildLoopOtelSpans as Ct, ResumedKeyState as D, createOtelExporter as Dt, ResultBlobStore as E, createOpenInferenceFileExporter as Et, Settled as F, RuntimeStreamEventCollector as Ft, SupervisedResult as G, sanitizeRuntimeStreamEvent as Gt, SpendChannel as H, createRuntimeStreamEventCollector as Ht, SpawnEvent as I, RuntimeStreamEventSink as It, TreeView as J, WaitProbe as Jt, Supervisor as K, PendingWait as Kt, SpawnJournal as L, RuntimeStreamEventSummary as Lt, RootSignal as M, padTraceId as Mt, Runtime as N, toOtelAttributes as Nt, ResumedWork as O, exportEvalRuns as Ot, Scope as P, RuntimeEventCollector as Pt, WidenGate as Q, createWaitProbes as Qt, SpawnOpts as R, RuntimeTelemetryOptions as Rt, NodeSnapshot as S, RuntimeEventOtelOptions as St, Restart as T, buildRuntimeEventOtelSpans as Tt, SpendGap as U, sanitizeAgentRuntimeEvent as Ut, Spend as V, createRuntimeEventCollector as Vt, SteerableRootHandle as W, sanitizeKnowledgeReadinessReport as Wt, UsageEvent as X, WaitRejection as Xt, UnknownMaterializationReason as Y, WaitProbeRegistry as Yt, WaitOpts as Z, WaitSpec as Zt, MaterializedExecutionIdentity as _, createActivityLog as _n, LoopSpanNode as _t, DefaultVerdict as a, SessionTraceBox as an, workerTraceHeaders as at, NodeExecutionIdentity as b, OtelExporter as bt, ExecutorAccounting as c, createPushTraceSource as cn, createPropagatingTraceEmitter as ct, ExecutorFactory as d, ActivityLog as dn, traceContextToEnv as dt, pollFor as en, WorkerTraceUnavailableReason as et, ExecutorMaterialization as f, ActivityNote as fn, EvalRunEvent as ft, Handle as g, WorkerProgress as gn, INTELLIGENCE_WIRE_VERSION as gt, ExecutorResult as h, ScopeProgressInput as hn, EvalRunsExportResult as ht, Budget as i, SessionMessageLike as in, workerTraceEnv as it, RootProviderModelEvidence as j, padSpanId as jt, RootHandle as k, generateSpanId as kt, ExecutorContext as l, decodeToolPart as ln, mergeTraceEnv as lt, ExecutorRegistry as m, ExecutorProgress as mn, EvalRunsExportConfig as mt, AgentExecutionRef as n, validateWaitSpec as nn, WorkerTraceSeamCarrier as nt, ExecutionBindingReceipt as o, ToolStepInput as on, workerTraceSeamKey as ot, ExecutorNodeContext as p, DEFAULT_STALL_AFTER_MS as pn, EvalRunGeneration as pt, SupervisorOpts as q, WaitOutcome as qt, AgentSpec as r, waitUntil as rn, readWorkerTraceContext as rt, Executor as s, TraceSource as sn, TraceContext as st, Agent as t, timerAt as tn, WorkerTraceResolver as tt, ExecutorExecutionBinding as u, sandboxSessionTraceSource as un, readTraceContextFromEnv as ut, MaterializedModelIdentity as v, readWorkerProgress as vn, OtelAttribute as vt, ProfileMaterializationReceipt as w, buildLoopSpanNodes as wt, NodeId as x, OtelSpan as xt, NoWinnerError as y, OtelExportConfig as yt, SpawnPrior as z, SanitizedKnowledgeReadinessReport as zt };
|
|
1877
|
+
//# sourceMappingURL=types-BjUQODeG.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-runtime",
|
|
3
|
-
"version": "0.132.
|
|
3
|
+
"version": "0.132.7",
|
|
4
4
|
"description": "Shared task-lifecycle skeleton for agents: a recursive loop kernel for chat turns, one-shot tasks, and multi-attempt loops, with trace capture and eval-gated self-improvement. Domain behavior lives in adapters; scoring and ship-gates in @tangle-network/agent-eval.",
|
|
5
5
|
"homepage": "https://github.com/tangle-network/agent-runtime#readme",
|
|
6
6
|
"repository": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"materialization-DBXuH34A.js","names":[],"sources":["../src/runtime/supervise/executable-spec.ts","../src/runtime/supervise/materialization.ts"],"sourcesContent":["import { type AgentProfile, agentProfileSchema } from '@tangle-network/agent-interface'\nimport { assertExecutableAgentProfile } from './model-policy'\nimport { detachedSnapshot } from './snapshot'\nimport type { AgentSpec } from './types'\n\n/**\n * Parse one untrusted profile into the exact immutable value execution may consume.\n *\n * Snapshotting before schema parsing reads caller-owned fields once. Snapshotting the parsed\n * result prevents downstream custom code from changing any identity or authority field.\n */\nexport function executableAgentProfileSnapshot(raw: unknown, context: string): AgentProfile {\n const input = detachedSnapshot(raw, `${context}: AgentProfile input`)\n const profile = agentProfileSchema.parse(input)\n assertExecutableAgentProfile(profile, context)\n return detachedSnapshot(profile, `${context}: parsed AgentProfile`)\n}\n\n/** Snapshot an executable spec while retaining trusted callbacks by reference. */\nexport function executableAgentSpecSnapshot(raw: AgentSpec, context: string): AgentSpec {\n const {\n profile: rawProfile,\n harness,\n execution: rawExecution,\n ...runtimeExtensions\n } = raw as AgentSpec & Readonly<Record<string, unknown>>\n const profile = executableAgentProfileSnapshot(rawProfile, context)\n const execution =\n rawExecution === undefined\n ? undefined\n : detachedSnapshot(rawExecution, `${context}: execution attribution`)\n return Object.freeze({\n ...runtimeExtensions,\n profile,\n harness,\n ...(execution === undefined ? {} : { execution }),\n }) as AgentSpec\n}\n","import { randomUUID } from 'node:crypto'\nimport {\n agentProfileSchema,\n canonicalAgentProfileDigest,\n canonicalCandidateDigest,\n type Sha256Digest,\n} from '@tangle-network/agent-interface'\nimport { ValidationError } from '../../errors'\nimport { detachedSnapshot } from './snapshot'\nimport type {\n ExecutionBindingReceipt,\n Executor,\n ExecutorExecutionBinding,\n ExecutorMaterialization,\n ProfileMaterializationReceipt,\n Runtime,\n UnknownMaterializationReason,\n} from './types'\n\ntype RuntimeOwnedExecutorMaterialization =\n | {\n readonly kind: 'known'\n readonly declaration: ExecutorMaterialization\n readonly binding?: ExecutorExecutionBinding\n }\n | {\n /** A Runtime-owned external executor whose exact launch is known, but whose remote\n * materializer has not yet returned its terminal acknowledgement. This private state lets\n * Runtime validate the planned authority before execution without presenting it as proof\n * that the remote process actually used that plan. */\n readonly kind: 'pending'\n readonly runtime: Runtime\n readonly declaration: ExecutorMaterialization\n readonly binding: ExecutorExecutionBinding\n }\n | { readonly kind: 'deferred'; readonly runtime: Runtime }\n\ninterface RuntimeOwnedExecutorMaterializationRef {\n current: RuntimeOwnedExecutorMaterialization\n}\n\nconst runtimeOwnedExecutorMaterializations = new WeakMap<\n object,\n RuntimeOwnedExecutorMaterializationRef\n>()\nconst runtimeOwnedScopeOwners = new WeakMap<object, Runtime>()\n\ninterface KnownReceiptInput {\n readonly authoredProfileDigest: Sha256Digest\n readonly runtime: Runtime\n readonly declaration: ExecutorMaterialization\n}\n\ninterface UnknownReceiptInput {\n readonly authoredProfileDigest?: Sha256Digest\n readonly runtime: Runtime\n readonly reason: UnknownMaterializationReason\n}\n\nconst declarationKeys = new Set([\n 'effectiveProfile',\n 'backend',\n 'model',\n 'execution',\n 'materializer',\n 'plan',\n 'platformAttachments',\n])\n\n/**\n * Bind a declaration to a runtime-owned executor without putting an attestable method on the\n * public Executor interface. This module is not a package export: arbitrary caller executors stay\n * unknown even if they add a lookalike `materialization()` property.\n */\nexport function attestRuntimeOwnedExecutor<Out>(\n executor: Executor<Out>,\n declaration: ExecutorMaterialization,\n binding?: ExecutorExecutionBinding,\n): Executor<Out> {\n runtimeOwnedExecutorMaterializations.set(executor as object, {\n current: Object.freeze({\n kind: 'known',\n declaration: detachedSnapshot(declaration, 'runtime-owned executor materialization'),\n ...(binding === undefined\n ? {}\n : {\n binding: detachedSnapshot(binding, 'runtime-owned executor execution binding'),\n }),\n }),\n })\n return executor\n}\n\n/** Brand an external Runtime executor whose exact remote materialization is provable only after\n * its terminal protocol acknowledgement. The declaration is a planned authority check, never a\n * known receipt; callers must finalize this same object after validating the acknowledgement. */\nexport function attestRuntimeOwnedPendingExecutor<Out>(\n executor: Executor<Out>,\n runtime: Runtime,\n declaration: ExecutorMaterialization,\n binding: ExecutorExecutionBinding,\n): Executor<Out> {\n runtimeOwnedExecutorMaterializations.set(executor as object, {\n current: Object.freeze({\n kind: 'pending',\n runtime,\n declaration: detachedSnapshot(declaration, 'pending executor materialization'),\n binding: detachedSnapshot(binding, 'pending executor execution binding'),\n }),\n })\n return executor\n}\n\n/** Replace a private pending brand with terminally acknowledged evidence. A caller-owned executor\n * cannot enter this path because only this module can create the pending WeakMap entry. */\nexport function finalizeRuntimeOwnedPendingExecutor<Out>(\n executor: Executor<Out>,\n declaration: ExecutorMaterialization,\n binding: ExecutorExecutionBinding,\n): Executor<Out> {\n const ref = runtimeOwnedExecutorMaterializations.get(executor as object)\n if (ref?.current.kind !== 'pending' || ref.current.runtime !== executor.runtime) {\n throw new ValidationError(\n 'executor materialization: terminal acknowledgement has no matching Runtime-owned pending executor',\n )\n }\n ref.current = Object.freeze({\n kind: 'known',\n declaration: detachedSnapshot(declaration, 'runtime-owned executor materialization'),\n binding: detachedSnapshot(binding, 'runtime-owned executor execution binding'),\n })\n return executor\n}\n\n/** Mark a runtime-owned orchestration executor whose exact leaf declaration is published through\n * its private nested Scope before the first backend inference. Arbitrary executors cannot opt in. */\nexport function attestRuntimeOwnedDeferredExecutor<Out>(\n executor: Executor<Out>,\n runtime: Runtime,\n): Executor<Out> {\n runtimeOwnedExecutorMaterializations.set(executor as object, {\n current: Object.freeze({ kind: 'deferred', runtime }),\n })\n return executor\n}\n\n/** Preserve the runtime-owned attestation when a trusted wrapper changes result semantics only. */\nexport function inheritRuntimeOwnedExecutorAttestation<In, Out>(\n source: Executor<In>,\n wrapper: Executor<Out>,\n): Executor<Out> {\n const ref = runtimeOwnedExecutorMaterializations.get(source as object)\n if (ref !== undefined) {\n runtimeOwnedExecutorMaterializations.set(wrapper as object, ref)\n }\n return wrapper\n}\n\n/** Read a declaration only when Runtime itself branded this exact executor object. */\nexport function runtimeOwnedExecutorMaterialization<Out>(\n executor: Executor<Out>,\n): ExecutorMaterialization | undefined {\n const attestation = runtimeOwnedExecutorMaterializations.get(executor as object)?.current\n return attestation?.kind === 'known' ? attestation.declaration : undefined\n}\n\n/** Read one attempt binding only from the private brand on this exact executor object. */\nexport function runtimeOwnedExecutorExecutionBinding<Out>(\n executor: Executor<Out>,\n): ExecutorExecutionBinding | undefined {\n const attestation = runtimeOwnedExecutorMaterializations.get(executor as object)?.current\n return attestation?.kind === 'known' ? attestation.binding : undefined\n}\n\n/** Read a planned external declaration only for Runtime's private pending brand. This is useful for\n * pre-execution authority checks, but must never be turned into a known durable receipt. */\nexport function runtimeOwnedPendingExecutorMaterialization<Out>(executor: Executor<Out>):\n | {\n readonly runtime: Runtime\n readonly declaration: ExecutorMaterialization\n readonly binding: ExecutorExecutionBinding\n }\n | undefined {\n const attestation = runtimeOwnedExecutorMaterializations.get(executor as object)?.current\n return attestation?.kind === 'pending'\n ? {\n runtime: attestation.runtime,\n declaration: attestation.declaration,\n binding: attestation.binding,\n }\n : undefined\n}\n\n/** Read the expected leaf runtime only for a privately branded deferred orchestration executor. */\nexport function runtimeOwnedDeferredExecutorRuntime<Out>(\n executor: Executor<Out>,\n): Runtime | undefined {\n const attestation = runtimeOwnedExecutorMaterializations.get(executor as object)?.current\n return attestation?.kind === 'deferred' ? attestation.runtime : undefined\n}\n\n/** Propagate trust from a built-in driver adapter to the Agent and recursive executor it owns. */\nexport function attestRuntimeOwnedScopeOwner<T extends object>(owner: T, runtime: Runtime): T {\n runtimeOwnedScopeOwners.set(owner, runtime)\n return owner\n}\n\n/** Return a built-in scope owner's expected concrete leaf runtime; caller-owned functions/Agents\n * deliberately have no entry even if they add lookalike fields. */\nexport function runtimeOwnedScopeOwnerRuntime(owner: object): Runtime | undefined {\n return runtimeOwnedScopeOwners.get(owner)\n}\n\n/** Build one kernel-owned known receipt from a data-only executor declaration. */\nexport function knownMaterializationReceipt(\n input: KnownReceiptInput,\n): ProfileMaterializationReceipt {\n const declaration = detachedSnapshot(input.declaration, 'executor materialization')\n assertExactDeclaration(declaration)\n const effectiveProfile = agentProfileSchema.safeParse(declaration.effectiveProfile)\n if (!effectiveProfile.success) {\n throw new ValidationError('executor materialization: effectiveProfile must be an AgentProfile')\n }\n assertNonEmpty(declaration.backend, 'backend')\n assertNonEmpty(declaration.materializer, 'materializer')\n assertNonEmpty(declaration.execution?.kind, 'execution.kind')\n assertNonEmpty(declaration.execution?.id, 'execution.id')\n assertModel(declaration.model)\n\n let effectiveProfileDigest: Sha256Digest\n let materializationPlanDigest: Sha256Digest\n let platformAttachmentsDigest: Sha256Digest | undefined\n try {\n effectiveProfileDigest = canonicalAgentProfileDigest(effectiveProfile.data)\n materializationPlanDigest = canonicalCandidateDigest(jsonWireSnapshot(declaration.plan))\n platformAttachmentsDigest =\n declaration.platformAttachments === undefined\n ? undefined\n : canonicalCandidateDigest(jsonWireSnapshot(declaration.platformAttachments))\n } catch (error) {\n throw new ValidationError(\n 'executor materialization: profile, plan, and attachments must be finite RFC 8785 JSON',\n { cause: error },\n )\n }\n\n return Object.freeze({\n status: 'known' as const,\n authoredProfileDigest: input.authoredProfileDigest,\n effectiveProfileDigest,\n materializationPlanDigest,\n ...(platformAttachmentsDigest === undefined ? {} : { platformAttachmentsDigest }),\n runtime: input.runtime,\n backend: declaration.backend,\n model: declaration.model,\n execution: declaration.execution,\n materializer: declaration.materializer,\n })\n}\n\n/** Build an explicit unknown receipt without fabricating any executor-owned identity. */\nexport function unknownMaterializationReceipt(\n input: UnknownReceiptInput,\n): ProfileMaterializationReceipt {\n return Object.freeze({\n status: 'unknown' as const,\n ...(input.authoredProfileDigest === undefined\n ? {}\n : { authoredProfileDigest: input.authoredProfileDigest }),\n runtime: input.runtime,\n reason: input.reason,\n })\n}\n\n/** Mint a process-unique attempt id before executor construction. */\nexport function newExecutionAttemptId(nodeId: string): string {\n return `${nodeId}:attempt:${randomUUID()}`\n}\n\n/** Build the immutable safe receipt for a full, transient execution binding. */\nexport function knownExecutionBindingReceipt(\n materialization: ProfileMaterializationReceipt,\n bindingInput: ExecutorExecutionBinding,\n): ExecutionBindingReceipt {\n const binding = detachedSnapshot(bindingInput, 'executor execution binding')\n assertNonEmpty(binding.attemptId, 'binding.attemptId')\n assertSafeDescriptor(binding.descriptor)\n let materializationReceiptDigest: Sha256Digest\n let bindingDigest: Sha256Digest\n try {\n materializationReceiptDigest = canonicalCandidateDigest(materialization)\n // Bind the exact JSON document a backend receives. Optional AgentProfile fields are represented\n // as `undefined` in memory but omitted by JSON transport; normalize that one distinction while\n // rejecting every non-finite/non-data value instead of silently coercing it.\n bindingDigest = canonicalCandidateDigest(jsonWireSnapshot(binding.binding))\n } catch (error) {\n throw new ValidationError('executor binding must be finite RFC 8785 JSON', { cause: error })\n }\n return Object.freeze({\n status: 'known' as const,\n attemptId: binding.attemptId,\n materializationReceiptDigest,\n bindingDigest,\n descriptor: binding.descriptor,\n })\n}\n\n/** Preserve an attempt boundary even when its caller-owned transport cannot be attested. */\nexport function unknownExecutionBindingReceipt(\n materialization: ProfileMaterializationReceipt,\n attemptId: string,\n reason: UnknownMaterializationReason,\n): ExecutionBindingReceipt {\n assertNonEmpty(attemptId, 'binding.attemptId')\n return Object.freeze({\n status: 'unknown' as const,\n attemptId,\n materializationReceiptDigest: canonicalCandidateDigest(materialization),\n reason,\n })\n}\n\n/** Derive an authored-profile digest without turning non-canonical input into a fake identity. */\nexport function authoredProfileDigest(profile: unknown): Sha256Digest | undefined {\n try {\n return canonicalAgentProfileDigest(agentProfileSchema.parse(profile))\n } catch {\n return undefined\n }\n}\n\nfunction assertExactDeclaration(value: ExecutorMaterialization): void {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) {\n throw new ValidationError('executor materialization: declaration must be an object')\n }\n const unknown = Object.keys(value).filter((key) => !declarationKeys.has(key))\n if (unknown.length > 0) {\n throw new ValidationError(\n `executor materialization: unknown declaration fields: ${unknown.sort().join(', ')}`,\n )\n }\n if (!Object.hasOwn(value, 'plan')) {\n throw new ValidationError('executor materialization: plan is required')\n }\n}\n\nfunction assertModel(model: ExecutorMaterialization['model']): void {\n if (typeof model !== 'object' || model === null || Array.isArray(model)) {\n throw new ValidationError('executor materialization: model must be a known/unknown identity')\n }\n const keys = Object.keys(model).sort()\n if (model.status === 'known') {\n if (keys.join(',') !== 'id,status') {\n throw new ValidationError('executor materialization: known model accepts only status and id')\n }\n assertNonEmpty(model.id, 'model.id')\n return\n }\n if (model.status === 'unknown') {\n if (keys.join(',') !== 'reason,status') {\n throw new ValidationError(\n 'executor materialization: unknown model accepts only status and reason',\n )\n }\n assertNonEmpty(model.reason, 'model.reason')\n return\n }\n throw new ValidationError('executor materialization: model.status must be known or unknown')\n}\n\nfunction assertNonEmpty(value: unknown, field: string): asserts value is string {\n if (typeof value !== 'string' || value.trim().length === 0) {\n throw new ValidationError(`executor materialization: ${field} must be a non-empty string`)\n }\n}\n\nfunction assertSafeDescriptor(descriptor: ExecutorExecutionBinding['descriptor']): void {\n if (typeof descriptor !== 'object' || descriptor === null || Array.isArray(descriptor)) {\n throw new ValidationError('executor binding: descriptor must be an object')\n }\n for (const [key, value] of Object.entries(descriptor)) {\n if (/(url|uri|token|key|secret|bearer|credential|authorization)/i.test(key)) {\n throw new ValidationError(`executor binding: unsafe descriptor key ${JSON.stringify(key)}`)\n }\n if (\n value !== null &&\n typeof value !== 'string' &&\n typeof value !== 'number' &&\n typeof value !== 'boolean'\n ) {\n throw new ValidationError(\n `executor binding: descriptor ${JSON.stringify(key)} must be scalar`,\n )\n }\n if (typeof value === 'string' && (value.includes('://') || value.includes('@'))) {\n throw new ValidationError(\n `executor binding: descriptor ${JSON.stringify(key)} contains transport or credential text`,\n )\n }\n }\n}\n\nfunction jsonWireSnapshot(value: unknown, path = '$'): unknown {\n if (value === null || typeof value === 'string' || typeof value === 'boolean') return value\n if (typeof value === 'number') {\n if (!Number.isFinite(value)) {\n throw new ValidationError(`executor binding: ${path} must be finite`)\n }\n return value\n }\n if (Array.isArray(value)) {\n return value.map((item, index) => {\n if (item === undefined) {\n throw new ValidationError(`executor binding: ${path}[${index}] cannot be undefined`)\n }\n return jsonWireSnapshot(item, `${path}[${index}]`)\n })\n }\n if (typeof value !== 'object' || value === null) {\n throw new ValidationError(`executor binding: ${path} must be JSON data`)\n }\n const prototype = Object.getPrototypeOf(value)\n if (prototype !== Object.prototype && prototype !== null) {\n throw new ValidationError(`executor binding: ${path} must be a plain object`)\n }\n const out: Record<string, unknown> = {}\n for (const [key, item] of Object.entries(value as Record<string, unknown>)) {\n if (item === undefined) continue\n out[key] = jsonWireSnapshot(item, `${path}.${key}`)\n }\n return out\n}\n"],"mappings":";;;;;;;;;;;;AAWA,SAAgB,+BAA+B,KAAc,SAA+B;CAC1F,MAAM,QAAQ,iBAAiB,KAAK,GAAG,QAAQ,qBAAqB;CACpE,MAAM,UAAU,mBAAmB,MAAM,KAAK;CAC9C,6BAA6B,SAAS,OAAO;CAC7C,OAAO,iBAAiB,SAAS,GAAG,QAAQ,sBAAsB;AACpE;;AAGA,SAAgB,4BAA4B,KAAgB,SAA4B;CACtF,MAAM,EACJ,SAAS,YACT,SACA,WAAW,cACX,GAAG,sBACD;CACJ,MAAM,UAAU,+BAA+B,YAAY,OAAO;CAClE,MAAM,YACJ,iBAAiB,KAAA,IACb,KAAA,IACA,iBAAiB,cAAc,GAAG,QAAQ,wBAAwB;CACxE,OAAO,OAAO,OAAO;EACnB,GAAG;EACH;EACA;EACA,GAAI,cAAc,KAAA,IAAY,CAAC,IAAI,EAAE,UAAU;CACjD,CAAC;AACH;;;ACIA,MAAM,uDAAuC,IAAI,QAG/C;AACF,MAAM,0CAA0B,IAAI,QAAyB;AAc7D,MAAM,kCAAkB,IAAI,IAAI;CAC9B;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;;;;;;AAOD,SAAgB,2BACd,UACA,aACA,SACe;CACf,qCAAqC,IAAI,UAAoB,EAC3D,SAAS,OAAO,OAAO;EACrB,MAAM;EACN,aAAa,iBAAiB,aAAa,wCAAwC;EACnF,GAAI,YAAY,KAAA,IACZ,CAAC,IACD,EACE,SAAS,iBAAiB,SAAS,0CAA0C,EAC/E;CACN,CAAC,EACH,CAAC;CACD,OAAO;AACT;;;;AAKA,SAAgB,kCACd,UACA,SACA,aACA,SACe;CACf,qCAAqC,IAAI,UAAoB,EAC3D,SAAS,OAAO,OAAO;EACrB,MAAM;EACN;EACA,aAAa,iBAAiB,aAAa,kCAAkC;EAC7E,SAAS,iBAAiB,SAAS,oCAAo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