@tangle-network/agent-runtime 0.286.0 → 0.287.1

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.
Files changed (56) hide show
  1. package/dist/{activation-KvioC2fx.d.ts → activation-Dyv1dMkl.d.ts} +3 -3
  2. package/dist/{activation-ByUQM5wd.js → activation-v8YzadAV.js} +2 -2
  3. package/dist/{activation-ByUQM5wd.js.map → activation-v8YzadAV.js.map} +1 -1
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-CLqj3s53.js → coordination-driver-JuhaM7h9.js} +4 -2
  7. package/dist/coordination-driver-JuhaM7h9.js.map +1 -0
  8. package/dist/{delegate-SSnnbyKu.js → delegate-mU1hNp4x.js} +2 -2
  9. package/dist/{delegate-SSnnbyKu.js.map → delegate-mU1hNp4x.js.map} +1 -1
  10. package/dist/durable.d.ts +2 -2
  11. package/dist/durable.js +3 -3
  12. package/dist/{graph-to6d8CPK.js → graph-BrbDHk_N.js} +4 -4
  13. package/dist/{graph-to6d8CPK.js.map → graph-BrbDHk_N.js.map} +1 -1
  14. package/dist/{improvement-cycle-Cm_YPUwJ.js → improvement-cycle-DBvwFjzV.js} +3 -3
  15. package/dist/{improvement-cycle-Cm_YPUwJ.js.map → improvement-cycle-DBvwFjzV.js.map} +1 -1
  16. package/dist/{index-BspUvwtx.d.ts → index-bw6F9zYu.d.ts} +4 -4
  17. package/dist/index.d.ts +6 -6
  18. package/dist/index.js +7 -7
  19. package/dist/intelligence.d.ts +3 -3
  20. package/dist/intelligence.js +4 -4
  21. package/dist/kernel.d.ts +3 -3
  22. package/dist/kernel.js +8 -8
  23. package/dist/{loop-runner-bin-By_D4FLz.js → loop-runner-bin-DnzN8uSs.js} +3 -3
  24. package/dist/{loop-runner-bin-By_D4FLz.js.map → loop-runner-bin-DnzN8uSs.js.map} +1 -1
  25. package/dist/{loop-runner-bin-CvOEO1dE.d.ts → loop-runner-bin-aBNPvBlN.d.ts} +3 -3
  26. package/dist/loop-runner-bin.d.ts +1 -1
  27. package/dist/loop-runner-bin.js +1 -1
  28. package/dist/mcp/bin.js +3 -3
  29. package/dist/mcp/index.d.ts +5 -5
  30. package/dist/mcp/index.js +4 -4
  31. package/dist/{openai-tools-BCS5D37j.d.ts → openai-tools-lQtFkNKQ.d.ts} +2 -2
  32. package/dist/profiles.d.ts +2 -2
  33. package/dist/{provision-supervisor-CoXCyrZX.js → provision-supervisor-Cqsvapjc.js} +3 -3
  34. package/dist/{provision-supervisor-CoXCyrZX.js.map → provision-supervisor-Cqsvapjc.js.map} +1 -1
  35. package/dist/{runtime-HbOyntiw.js → runtime-hBrhhci-.js} +8 -8
  36. package/dist/{runtime-HbOyntiw.js.map → runtime-hBrhhci-.js.map} +1 -1
  37. package/dist/{search-method-D2H7J_CE.js → search-method-qqof5BPa.js} +2 -2
  38. package/dist/{search-method-D2H7J_CE.js.map → search-method-qqof5BPa.js.map} +1 -1
  39. package/dist/{server-Bgy1lt_A.js → server-t5Xne9Nn.js} +3 -3
  40. package/dist/{server-Bgy1lt_A.js.map → server-t5Xne9Nn.js.map} +1 -1
  41. package/dist/{stream-agent-turn-CaLVbKSY.d.ts → stream-agent-turn-CUMwVuOz.d.ts} +5 -3
  42. package/dist/{substrate-E5mSYCU7.d.ts → substrate-CdOWExde.d.ts} +2 -2
  43. package/dist/{supervise-Dgfve4nM.js → supervise-C-OUl-0_.js} +4 -4
  44. package/dist/{supervise-Dgfve4nM.js.map → supervise-C-OUl-0_.js.map} +1 -1
  45. package/dist/{supervisor-Ds1NgT-A.js → supervisor-DCSxS4UB.js} +9917 -9814
  46. package/dist/supervisor-DCSxS4UB.js.map +1 -0
  47. package/dist/testing.d.ts +2 -2
  48. package/dist/testing.js +12 -12
  49. package/dist/tui/index.d.ts +1 -1
  50. package/dist/tui/index.js +1 -1
  51. package/dist/{types-wIVzqXdQ.d.ts → types-D5n136cu.d.ts} +8 -1
  52. package/package.json +12 -12
  53. package/skills/profile-authoring/SKILL.md +13 -1
  54. package/skills/profile-authoring/references/execution-and-credentials.md +73 -0
  55. package/dist/coordination-driver-CLqj3s53.js.map +0 -1
  56. package/dist/supervisor-Ds1NgT-A.js.map +0 -1
package/dist/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Ac as SuperviseTestOptions, Mc as superviseWithTestBrain, Tn as driverAgent, Zt as RunGraphTestOptions, tn as runGraphWithTestBrain, ul as SupervisorAgentTestDeps, wn as DriverAgentOptions, yl as supervisorAgentWithTestBrain } from "./index-BspUvwtx.js";
2
- import { Kn as ToolLoopCallContext, qn as ToolLoopChat } from "./stream-agent-turn-CaLVbKSY.js";
1
+ import { Ac as SuperviseTestOptions, Mc as superviseWithTestBrain, Tn as driverAgent, Zt as RunGraphTestOptions, tn as runGraphWithTestBrain, ul as SupervisorAgentTestDeps, wn as DriverAgentOptions, yl as supervisorAgentWithTestBrain } from "./index-bw6F9zYu.js";
2
+ import { Kn as ToolLoopCallContext, qn as ToolLoopChat } from "./stream-agent-turn-CUMwVuOz.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,14 +1,14 @@
1
1
  import { O as immutableCandidateValue, w as canonicalCandidateDigest$1 } from "./workspace-archive-MhowMCmp.js";
2
- import { f as verifyAgentImprovementProposal } from "./improvement-cycle-Cm_YPUwJ.js";
2
+ import { f as verifyAgentImprovementProposal } from "./improvement-cycle-DBvwFjzV.js";
3
3
  import { i as applyExactAgentProfileDiff, p as parseExactAgentProfile } from "./profile-C4NDjZyB.js";
4
- import { r as driverAgent } from "./coordination-driver-CLqj3s53.js";
5
- import { a as superviseWithTestBrain, h as supervisorAgentWithTestBrain } from "./supervise-Dgfve4nM.js";
6
- import { i as runGraphWithTestBrain } from "./graph-to6d8CPK.js";
4
+ import { r as driverAgent } from "./coordination-driver-JuhaM7h9.js";
5
+ import { a as superviseWithTestBrain, h as supervisorAgentWithTestBrain } from "./supervise-C-OUl-0_.js";
6
+ import { i as runGraphWithTestBrain } from "./graph-BrbDHk_N.js";
7
7
  import { SANDBOX_SIZE_PRESET_NAMES, canonicalAgentProfileDigest } from "@tangle-network/agent-interface";
8
8
  //#region src/testing/fixtures/agent-improvement-proposal.json
9
9
  var agent_improvement_proposal_default = {
10
10
  changedSurfaces: ["prompt"],
11
- digest: "sha256:0bdb2ee4bdd9dbd1423a6b9460a239d360b287e9a999fc9de112abbcd6d9a179",
11
+ digest: "sha256:74a384270db9ec81273d835f9a5ca58bfcae65fd1a3c6726d8a76de202792a4f",
12
12
  evaluation: {
13
13
  "decision": {
14
14
  "contributingChecks": [
@@ -4579,7 +4579,7 @@ var agent_improvement_proposal_default = {
4579
4579
  ],
4580
4580
  "metadata": {
4581
4581
  "fixture": "agent-improvement-proposal",
4582
- "runtimeVersion": "0.286.0"
4582
+ "runtimeVersion": "0.287.1"
4583
4583
  },
4584
4584
  "objectives": [
4585
4585
  {
@@ -4690,8 +4690,8 @@ var agent_improvement_proposal_default = {
4690
4690
  "baselineContentHash": "sha256:5c21ee53e513fc604cb09754e21c392b24a424da0ef37dbf8f1ee4a8a0b08f09",
4691
4691
  "candidateContentHash": "sha256:60fcbb1c728194bd51d7d19cb732d1c3f1881dce7e0a6266b41c8b98cfd65693",
4692
4692
  "kind": "agent-eval-loop",
4693
- "recordDigest": "sha256:62fe853c8ba86a49e7297389cd7d045f53a98b396500db9160aa94b2a3da9969",
4694
- "runId": "agent-runtime-0.286.0-proposal-fixture",
4693
+ "recordDigest": "sha256:4fbd49f487cdc3c39227e5a0f1edc5fddc026de81f8316b4a32a738507399c55",
4694
+ "runId": "agent-runtime-0.287.1-proposal-fixture",
4695
4695
  "schema": "agent-candidate-experiment"
4696
4696
  }
4697
4697
  },
@@ -4714,13 +4714,13 @@ var agent_improvement_proposal_default = {
4714
4714
  }],
4715
4715
  kind: "agent-improvement-proposal",
4716
4716
  proposedAt: "2026-07-10T01:00:00.000Z",
4717
- runId: "agent-runtime-0.286.0-proposal-fixture"
4717
+ runId: "agent-runtime-0.287.1-proposal-fixture"
4718
4718
  };
4719
4719
  //#endregion
4720
4720
  //#region src/testing/fixtures/agent-profile-improvement-proposal.json
4721
4721
  var agent_profile_improvement_proposal_default = {
4722
4722
  changedSurfaces: ["prompt", "skills"],
4723
- digest: "sha256:ed9681233c29af4fb29019b51588ff5140844b92b0327fa9227275d0fb6a0847",
4723
+ digest: "sha256:07a9787d1b86722e3772e344ff4475f5843ef3adfbae51713a7975337155f48d",
4724
4724
  evaluation: {
4725
4725
  "decision": {
4726
4726
  "contributingChecks": [
@@ -6354,7 +6354,7 @@ var agent_profile_improvement_proposal_default = {
6354
6354
  ],
6355
6355
  "metadata": {
6356
6356
  "fixture": "agent-profile-improvement-proposal",
6357
- "runtimeVersion": "0.286.0"
6357
+ "runtimeVersion": "0.287.1"
6358
6358
  },
6359
6359
  "objectives": [
6360
6360
  {
@@ -6465,7 +6465,7 @@ var agent_profile_improvement_proposal_default = {
6465
6465
  "baselineContentHash": "sha256:21c495a37c418c10bde64fbaa188beddeed31f1f051ea60a6a6582a9ee0db704",
6466
6466
  "candidateContentHash": "sha256:103f77bc8481601eef1ad5fe6ba84a40dffabc3a44f421f8c8559121edab84e9",
6467
6467
  "kind": "agent-eval-loop",
6468
- "recordDigest": "sha256:e2bdfd2d42a76497049c35a618ef9511a07cb558e1622b62541fc0b63da94798",
6468
+ "recordDigest": "sha256:9dfb96341ebe388ed169662248fb7a4a437d57e41e3b40720667d172cedcb362",
6469
6469
  "runId": "profile-improvement-1",
6470
6470
  "schema": "agent-profile-improvement-experiment"
6471
6471
  }
@@ -1,4 +1,4 @@
1
- import { Ct as ProvisionSupervisorConnection, Dt as provisionSupervisor, Et as SupervisorCleanupReceipt, Tt as ProvisionedSupervisor, wt as ProvisionSupervisorRequest } from "../index-BspUvwtx.js";
1
+ import { Ct as ProvisionSupervisorConnection, Dt as provisionSupervisor, Et as SupervisorCleanupReceipt, Tt as ProvisionedSupervisor, wt as ProvisionSupervisorRequest } from "../index-bw6F9zYu.js";
2
2
  //#region src/tui/top-app.d.ts
3
3
  /**
4
4
  * The interactive side of the supervisor-run TUI: a keypress/mouse loop over the frames
package/dist/tui/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as provisionSupervisor } from "../provision-supervisor-CoXCyrZX.js";
1
+ import { t as provisionSupervisor } from "../provision-supervisor-Cqsvapjc.js";
2
2
  import { a as renderTopFrameWithLayout, i as renderTopFrame, n as runTopApp, r as loadTopSnapshot, t as renderTopOnce } from "../top-app-DaiR4LXM.js";
3
3
  export { loadTopSnapshot, provisionSupervisor, renderTopFrame, renderTopFrameWithLayout, renderTopOnce, runTopApp };
@@ -4839,6 +4839,13 @@ type SpawnEvent = {
4839
4839
  verdict?: DefaultVerdict;
4840
4840
  seq: number;
4841
4841
  at: string;
4842
+ } | {
4843
+ /** Capture output retained independently of terminal outcome, spend, and recovery state. */
4844
+ kind: 'execution-evidence';
4845
+ id: NodeId;
4846
+ outRef: string;
4847
+ seq: number;
4848
+ at: string;
4842
4849
  } | {
4843
4850
  /** Volatile transport/session binding for exactly one attempt. The full binding is retained
4844
4851
  * only by digest; descriptor fields are safe structural labels, never credential-bearing URLs. */
@@ -5820,4 +5827,4 @@ interface WidenGate<Out> {
5820
5827
  }
5821
5828
  //#endregion
5822
5829
  export { SpawnJournal as $, RuntimeStreamEvent as $a, Iteration as $i, ReadableEnvironment as $n, RetainedInteractiveBindingError as $r, RuntimeStreamEventCollector as $t, NodeExecutionIdentity as A, RuntimeRunStatus as Aa, RetainedRunStartMaterial as Ai, RetainedPendingCause as An, ContinuationPanelInput as Ar, TraceContext as At, ResultBlobStore as B, AgentTaskRunResult as Ba, ReservationHolder as Bi, ReconnectRetainedInteractiveRunOptions as Bn, distillFindings as Br, OtelSpan as Bt, ExecutorToolCall as C, Validator as Ca, RetainedRunEffect as Ci, SessionTraceBox as Cn, CheckUnavailableError as Cr, WorkspaceCheckpointMarker as Ct, MaterializedExecutionIdentity as D, RuntimeRunOptions as Da, RetainedRunIntentAdmission as Di, decodeToolPart as Dn, ContinuationEntry as Dr, workerTraceEnv as Dt, HeldEnvironment as E, RuntimeRunHandle as Ea, RetainedRunHandle as Ei, createPushTraceSource as En, ContinuationContext as Er, readWorkerTraceContext as Et, ProviderModelAttemptEvidence as F, AgentExecutionBackend as Fa, BudgetPoolRestore as Fi, ScopeProgressInput as Fn, VerdictSummary as Fr, LoopSpanNode as Ft, RootMaterialization as G, OpenAIChatResponseFormat as Ga, ReservationWaitRefused as Gi, RetainedInteractiveStartMaterial as Gn, AgentEvalError$1 as Gr, createOpenInferenceFileExporter as Gt, ResumedWork as H, AgentTaskStatus as Ha, ReservationShortfall as Hi, RetainedInteractiveAdmissionHook as Hn, failedItems as Hr, buildLoopOtelSpans as Ht, ProviderModelExecutionEvidence as I, AgentKnowledgeProvider as Ia, BudgetReadout as Ii, TeamProgress as In, admitContinuationPolicy as Ir, OtelAttribute as It, RootStreamReceipt as J, RunAgentTaskOptions as Ja, spendFromUsageEvents as Ji, HarnessTranscriptCapture as Jn, ConfigError as Jr, loopEventToOtelSpan as Jt, RootProviderModelEvidence as K, OpenAIChatTool as Ka, ReserveOptions as Ki, StartRetainedInteractiveRunOptions as Kn, AgentEvalErrorCode as Kr, createOtelExporter as Kt, RecursiveReservationPolicy as L, AgentRuntimeEvent as La, BudgetReconcileFault as Li, WorkerProgress as Ln, admitFinding as Lr, OtelExportConfig as Lt, NodeSnapshot as M, AgentAdapter as Ma, StartRetainedRunInEnvironmentOptions as Mi, ActivityNote as Mn, ContinuationPolicy as Mr, mergeTraceEnv as Mt, NodeStatus as N, AgentBackendContext as Na, StartRetainedRunOptions as Ni, DEFAULT_STALL_AFTER_MS as Nn, ContinuationProfile as Nr, readTraceContextFromEnv as Nt, MaterializedModelIdentity as O, RuntimeRunPersistenceAdapter as Oa, RetainedRunReplayPoint as Oi, sandboxSessionTraceSource as On, ContinuationNoteInput as Or, workerTraceHeaders as Ot, ProfileMaterializationReceipt as P, AgentBackendInput as Pa, BudgetPool as Pi, ExecutorProgress as Pn, PanelFinding as Pr, traceContextToEnv as Pt, SpawnEvent as Q, RuntimeSessionStore as Qa, ExecCtx as Qi, HarnessTranscriptUnavailableReason as Qn, RetainedInteractiveAdmissionError as Qr, RuntimeEventCollector as Qt, ResourceLimit as R, AgentRuntimeEventSink as Ra, LeakedReservation as Ri, createActivityLog as Rn, checkVerdictOf as Rr, OtelExportStats as Rt, ExecutorTeardownWarning as S, ValidationCtx as Sa, RetainedRunDispatchedAdmission as Si, SessionMessageLike as Sn, CheckRead as Sr, WorkerTraceUnavailableReason as St, Handle as T, RuntimeRunCost as Ta, RetainedRunEventOptions as Ti, TraceSource as Tn, ContinuationAppend as Tr, WorkerTraceSeamCarrier as Tt, RetainedExecutionState as U, BackendErrorDetail as Ua, ReservationStage as Ui, RetainedInteractiveEnvironmentInput as Un, passedItems as Ur, buildLoopSpanNodes as Ut, ResumedKeyState as V, AgentTaskSpec as Va, ReservationRejection as Vi, RecoverRetainedInteractiveRunOptions as Vn, expandQuestions as Vr, RuntimeEventOtelOptions as Vt, RootHandle as W, KnowledgeReadinessDecision as Wa, ReservationTicket as Wi, RetainedInteractiveRunHandle as Wn, verdictFromJudgeScore as Wr, buildRuntimeEventOtelSpans as Wt, Scope as X, RuntimeCanonicalStreamEvent as Xa, DefaultVerdict$1 as Xi, HarnessTranscriptFile as Xn, NotFoundError as Xr, padTraceId as Xt, Runtime as Y, RunAgentTaskStreamOptions as Ya, AgentRunSpec as Yi, HarnessTranscriptEvidence as Yn, JudgeError as Yr, padSpanId as Yt, Settled as Z, RuntimeSession as Za, Driver as Zi, HarnessTranscriptUnavailable as Zn, PlannerError as Zr, toOtelAttributes as Zt, ExecutorMaterialization as _, MountRecorder as _a, RetainedInteractiveStartedAdmission as _i, isWaitOutcome as _n, upstreamUnavailableSignal as _r, WaitOpts as _t, BudgetOverspend as a, LoopLineageOptions as aa, WorkerSlots as ai, createRuntimeEventCollector as an, DriverAttemptsExhaustedError as ar, SpendGap as at, ExecutorRegistry as b, SandboxClient as ba, RetainedRunCancelOptions as bi, validateWaitSpec as bn, CONTINUATIONS_DIR as br, WorkerInteractiveUnavailableReason as bt, EnvironmentTeardownReceipt as c, LoopResult as ca, NativeContextContinuationHandle as ci, sanitizeKnowledgeReadinessReport as cn, DriverContractState as cr, SubtreeSummary as ct, ExecutorAccounting as d, LoopTeardownFailedPayload as da, RecoverRetainedRunIntentOptions as di, WaitOutcome as dn, DriverProgressMark as dr, SupervisorOpts as dt, LoopDecisionPayload as ea, RetainedRunAdmissionError as ei, RuntimeStreamEventSink as en, captureHarnessTranscript as er, SpawnOpts as et, ExecutorCancellation as f, LoopTokenUsage as fa, RecoverRetainedRunOptions as fi, WaitProbe as fn, DriverReentry as fr, TokenUsageProvenance as ft, ExecutorFactory as g, MountManifestEntry as ga, RetainedInteractiveIntentAdmission as gi, createWaitProbes as gn, summarizeDriverAttempts as gr, UsageEvent as gt, ExecutorExecutionBinding as h, LoopWinner as ha, RetainedInteractiveEnvironmentAdmission as hi, WaitSpec as hn, classifyDriverFailure as hr, UnknownMaterializationReason as ht, Budget as i, LoopIterationStartedPayload as ia, SlotPermit as ii, SanitizedKnowledgeRequirement as in, DriverAttemptStop as ir, SpendChannel as it, NodeId as j, startRuntimeRun as ja, RetainedRunTurnInput as ji, ActivityLog as jn, ContinuationPanelResult as jr, createPropagatingTraceEmitter as jt, NoWinnerError as k, RuntimeRunRow as ka, RetainedRunSnapshot as ki, RetainedChildRecovery as kn, ContinuationPanel as kr, workerTraceSeamKey as kt, ExecutionBindingReceipt as l, LoopSandboxPlacement as la, NativeContextContinuationInput as li, sanitizeRuntimeStreamEvent as ln, DriverFailureClass as lr, SupervisedResult as lt, ExecutorContext as m, LoopTraceEvent as ma, RetainedInteractiveAdmission as mi, WaitRejection as mn, DriverRetryPolicy as mr, UnconfirmedTeardown as mt, AgentExecutionRef as n, LoopIterationDispatchPayload as na, RuntimeRunStateError as ni, RuntimeTelemetryOptions as nn, persistHarnessTranscript as nr, SpawnRejection as nt, BudgetViolation as o, LoopPlanDescription as oa, createWorkerSlots as oi, createRuntimeStreamEventCollector as on, DriverBudgetReadout as or, SteerableRootHandle as ot, ExecutorCancellationRequest as p, LoopTraceEmitter as pa, RecoverRetainedRunResult as pi, WaitProbeRegistry as pn, DriverRepromptRefusal as pr, TreeView as pt, RootSignal as q, OpenAIChatToolChoice as qa, createBudgetPool as qi, HarnessTranscriptArtifact as qn, BackendTransportError as qr, generateSpanId as qt, AgentSpec as r, LoopIterationEndedPayload as ra, ValidationError as ri, SanitizedKnowledgeReadinessReport as rn, DriverAttemptRecord as rr, Spend as rt, DefaultVerdict as s, LoopPlanPayload as sa, NativeContextContinuationExecution as si, sanitizeAgentRuntimeEvent as sn, DriverContinuationRecord as sr, SubtreeResult as st, Agent as t, LoopEndedPayload as ta, RetainedRunDispatchBindingError as ti, RuntimeStreamEventSummary as tn, harnessTranscriptArtifact as tr, SpawnPrior as tt, Executor as u, LoopStartedPayload as ua, ReconnectRetainedRunOptions as ui, PendingWait as un, DriverLoopRecord as ur, Supervisor as ut, ExecutorNodeContext as v, OutputAdapter as va, RetainedRunAdmission as vi, pollFor as vn, UnavailablePausePolicy as vr, WidenGate as vt, FleetYield as w, RuntimeRunCompleteInput as wa, RetainedRunEnvironmentAdmission as wi, ToolStepInput as wn, CheckVerdict as wr, WorkerTraceResolver as wt, ExecutorResult as x, SelectionReceipt as xa, RetainedRunCancellation as xi, waitUntil as xn, CONTINUATION_FACTS as xr, WorkerTraceEvidence as xt, ExecutorProgressEvent as y, RunProvenance as ya, RetainedRunAdmissionHook as yi, timerAt as yn, AdmittedFinding as yr, WorkerInteractiveSession as yt, ResourceSpend as z, AgentTaskContext as za, ReservationFloor as zi, readWorkerProgress as zn, composeContinuationNote as zr, OtelExporter as zt };
5823
- //# sourceMappingURL=types-wIVzqXdQ.d.ts.map
5830
+ //# sourceMappingURL=types-D5n136cu.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-runtime",
3
- "version": "0.286.0",
3
+ "version": "0.287.1",
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": {
@@ -98,10 +98,10 @@
98
98
  "@arethetypeswrong/cli": "0.18.5",
99
99
  "@biomejs/biome": "^2.5.11",
100
100
  "@modelcontextprotocol/sdk": "1.30.0",
101
- "@tangle-network/agent-eval": "0.199.0",
102
- "@tangle-network/agent-interface": "^2.14.0",
103
- "@tangle-network/agent-provider-tangle": "1.7.0",
104
- "@tangle-network/sandbox": ">=0.36.4 <0.48.0",
101
+ "@tangle-network/agent-eval": "0.203.0",
102
+ "@tangle-network/agent-interface": "^2.15.0",
103
+ "@tangle-network/agent-provider-tangle": "2.0.0",
104
+ "@tangle-network/sandbox": ">=0.58.4 <0.59.0",
105
105
  "@types/node": "26.4.0",
106
106
  "@types/tar-stream": "3.1.4",
107
107
  "miniflare": "4.20260722.0",
@@ -122,17 +122,17 @@
122
122
  },
123
123
  "license": "MIT",
124
124
  "peerDependencies": {
125
- "@tangle-network/agent-eval": ">=0.199.0 <0.200.0",
126
- "@tangle-network/agent-interface": "^2.14.0",
127
- "@tangle-network/sandbox": ">=0.36.4 <0.48.0 || ^0.49.0-0 || ^0.50.0 || ^0.51.0 || ^0.52.0 || ^0.53.0 || ^0.54.0 || ^0.55.0 || ^0.56.0 || ^0.57.0 || ^0.58.0"
125
+ "@tangle-network/agent-eval": ">=0.201.0 <0.204.0",
126
+ "@tangle-network/agent-interface": "^2.15.0",
127
+ "@tangle-network/sandbox": ">=0.58.4 <0.59.0"
128
128
  },
129
129
  "dependencies": {
130
- "@tangle-network/agent-core": ">=0.9.6 <0.10.0",
131
- "@tangle-network/agent-knowledge": "^17.1.10",
130
+ "@tangle-network/agent-core": ">=0.10.2 <0.11.0",
131
+ "@tangle-network/agent-knowledge": "^18.0.0",
132
132
  "@tangle-network/agent-profile-materialize": ">=0.20.1 <0.21.0",
133
- "@tangle-network/agent-trace-contract": "^1.2.0",
133
+ "@tangle-network/agent-trace-contract": "^2.0.0",
134
134
  "tar-stream": "3.2.1",
135
- "zod": "4.5.4"
135
+ "zod": "4.6.5"
136
136
  },
137
137
  "scripts": {
138
138
  "build": "tsdown",
@@ -123,7 +123,9 @@ Hard limits live in Runtime options and per-assignment budgets: `budget`, `worke
123
123
  Prompt text enforces no limit.
124
124
  `maxTokens` is settled after the work: an overspent child keeps its output and carries a `budgetViolation`.
125
125
  A child's total counts input tokens on every turn, so reserve turns times context.
126
- Give each paid job its own named key with a dollar cap, and state the dollars before launch.
126
+ For paid calls, use the execution owner's named credential and enforceable dollar limit.
127
+ For subscriptions, retain token, iteration, time, and compute bounds that the installed path can enforce.
128
+ An unmeasured dollar cost stays unknown; an unsupported dollar cap is not protection.
127
129
 
128
130
  ## 8. Register arms, a control and outcomes
129
131
 
@@ -153,6 +155,16 @@ Group retries of the same assignment into one lineage when comparing teams.
153
155
  Grant `submit_result` only when Runtime gives that node an independent check; otherwise its settlement stays unassessed.
154
156
  Grant only the observation, steering and journal tools that the assignment needs.
155
157
  Set `harness`, `model.default` and `model.provider` explicitly, and validate against the current `agentProfileSchema`.
158
+
159
+ For subscription execution, select a harness and model that the granted account can serve.
160
+ The private executor resolves the authorized credential and materializes the harness's authentication files.
161
+ Keep credential references in supported configuration; keep credential values outside profiles, tasks, resources, and journals.
162
+ Runtime descendants use the same configured provider and credential resolver; author their profiles rather than copying login files.
163
+ Check the child's materialization receipt and actual session before claiming that account or harness executed.
164
+ Grant only the models and authentication routes the execution owner authorized.
165
+ When the run requires cloud execution, place its controller, root, and descendants through the maintained managed-cloud deployment.
166
+ When mounted, [execution and credentials](references/execution-and-credentials.md) explains binding, renewal, and recovery in more detail.
167
+
156
168
  A tool name must be one the harness publishes, and a refused name fails the same way on retry.
157
169
  `ls`, `list` and `find` are not tool names; select paths with a glob tool and search contents with a grep tool.
158
170
  Inspect materialized permissions and served tools before relying on a restriction.
@@ -0,0 +1,73 @@
1
+ # Execution and credentials
2
+
3
+ ## Choose the profile; inherit the authorized execution
4
+
5
+ The profile defines the harness, model, instructions, capabilities, and research behavior.
6
+ The private executor supplies authentication and placement under the run's authority.
7
+ An account credential does not select a different model or grant additional tools.
8
+
9
+ Select the harness and model explicitly from the installed capability contract.
10
+ Use the granted provider for the root and its Runtime descendants.
11
+ Let its credential resolver select an authorized account for each exact profile and creation identity.
12
+ Use the installed provider's supported static binding when no dynamic selector is configured.
13
+ Account selection, quota, validity, and renewal belong to that account owner.
14
+
15
+ The executor materializes credentials in the format the selected harness requires.
16
+ Authentication files are private execution inputs, even when they are ordinary files inside the sandbox.
17
+ Keep their values outside public profiles, mounted research inputs, prompts, and evidence archives.
18
+ Use supported secret references or private backend configuration at the execution boundary.
19
+ Read the current schema before naming a profile field; metadata alone does not configure authentication.
20
+
21
+ The director authors each descendant's profile and grants its permitted capabilities.
22
+ It does not need to perform an interactive login or export a parent's token.
23
+ A descendant that can spawn receives the complete profile-authoring skill and the same authorized execution path.
24
+ Changing its harness requires a granted authentication route for that harness.
25
+ Native harness subagents and Runtime descendants remain distinct observation units.
26
+
27
+ ## Cloud execution and persistence
28
+
29
+ When the run requires cloud execution, place its controller, root, and descendants in the managed cloud.
30
+ Use the maintained managed-process deployment and ingress rather than a detached host process.
31
+ Choose a distinct run identity and immutable controller image for each commission.
32
+ The ingress binds each Runtime actor to its own authenticated listener.
33
+ Research policy stays in profiles and the registered method, not the ingress.
34
+
35
+ Retain the original workspace and native session through the execution owner's supported continuation path.
36
+ Record account changes, renewal, reconnects, and native-session changes separately.
37
+ A fresh environment with copied files is not proof that the original native session resumed.
38
+ Preserve partial artifacts before environment cleanup and archive them through the existing storage path.
39
+ Check that retained capture excludes authentication files and other private credentials.
40
+
41
+ ## What proves execution
42
+
43
+ Separate configuration, materialization, model execution, research progress, and outside acceptance.
44
+ For a root and a recursively spawned child, inspect:
45
+
46
+ - The exact authored profile and materialization receipt.
47
+ - The cloud placement, Runtime actor, and native session identities.
48
+ - The granted account reference and actual harness/model evidence, without credential values.
49
+ - The first model invocation and a real tool action.
50
+ - The child-to-grandchild edge when claiming recursion.
51
+ - Retrievable trace and artifact bytes after capture.
52
+
53
+ A merged source change or published package does not prove a running deployment supports it.
54
+ A supported deployment does not prove an account was used.
55
+ An agent's claim of delegation does not prove that its child executed.
56
+ Keep missing identity, usage, cost, and renewal evidence unknown.
57
+
58
+ The operator establishes the execution path before research begins.
59
+ When an authorized capability fails inside a run, retain its receipt and use the granted reporting or recovery tool.
60
+ Continue useful research through capabilities that remain available within the same authority.
61
+
62
+ ## Maintained contracts
63
+
64
+ Use these owners for changing fields and commands instead of copying an API catalog into this skill.
65
+
66
+ - [Runtime profile and execution composition](https://github.com/tangle-network/agent-runtime/blob/main/docs/canonical-api.md#15-the-agentprofile-rule-author-the-profile-the-substrate-materializes-it).
67
+ - [Runtime managed compute](https://github.com/tangle-network/agent-runtime/blob/main/docs/agent-managed-compute/README.md).
68
+ - [Portable profile schema](https://github.com/tangle-network/agent-sdk/blob/main/packages/agent-interface/src/profile-schema.ts).
69
+ - [Tangle provider credentials and execution](https://github.com/tangle-network/agent-sdk/blob/main/packages/agent-provider-tangle/README.md).
70
+ - [Discovery cloud submission and retention](https://github.com/tangle-network/discovery-lab/blob/master/README.md).
71
+
72
+ Read the installed provider's contract before using a newer source-only resolver or capability.
73
+ The core skill remains sufficient to author a child; mount this reference when its assignment includes execution integration.