@tangle-network/agent-runtime 0.300.0 → 0.301.0
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-Bhp8dYV5.d.ts → activation-CRgEJutr.d.ts} +3 -3
- package/dist/{activation-DqWmWTyB.js → activation-V6aaOlZV.js} +2 -2
- package/dist/{activation-DqWmWTyB.js.map → activation-V6aaOlZV.js.map} +1 -1
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-DzTvehd6.js → coordination-driver-vNrdQBSH.js} +317 -211
- package/dist/coordination-driver-vNrdQBSH.js.map +1 -0
- package/dist/{delegate-vJ2g76r6.js → delegate-B-jFJcbW.js} +5 -5
- package/dist/delegate-B-jFJcbW.js.map +1 -0
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +2 -2
- package/dist/{graph-BDQh3qry.js → graph-Dwv_hQB_.js} +5 -5
- package/dist/graph-Dwv_hQB_.js.map +1 -0
- package/dist/{improvement-cycle-D6cPLi6k.js → improvement-cycle-Cf37Kexd.js} +3 -3
- package/dist/{improvement-cycle-D6cPLi6k.js.map → improvement-cycle-Cf37Kexd.js.map} +1 -1
- package/dist/{index-sC6sl88d.d.ts → index-CxBVmgqL.d.ts} +149 -71
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +3 -3
- package/dist/intelligence.js +4 -4
- package/dist/kernel.d.ts +4 -4
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-bin-DQIHnCL0.js → loop-runner-bin-C8MI8N1A.js} +3 -3
- package/dist/{loop-runner-bin-DQIHnCL0.js.map → loop-runner-bin-C8MI8N1A.js.map} +1 -1
- package/dist/{loop-runner-bin-DZglq4Cf.d.ts → loop-runner-bin-DiTNiJNs.d.ts} +3 -3
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +6 -6
- package/dist/mcp/index.js +5 -5
- package/dist/{openai-tools-DvR82zEo.d.ts → openai-tools-BeogJ6V8.d.ts} +2 -2
- package/dist/profiles.d.ts +2 -2
- package/dist/{provision-supervisor-IXBlLHE0.js → provision-supervisor-CS0fBIhp.js} +13 -24
- package/dist/provision-supervisor-CS0fBIhp.js.map +1 -0
- package/dist/{runtime-DpEt5v42.js → runtime-6VPSJVeg.js} +28 -36
- package/dist/runtime-6VPSJVeg.js.map +1 -0
- package/dist/{search-method-DvU-fc-f.js → search-method-wTTS7mGG.js} +2 -2
- package/dist/{search-method-DvU-fc-f.js.map → search-method-wTTS7mGG.js.map} +1 -1
- package/dist/{server-CIE8s4AN.js → server-BfHD5iLD.js} +3 -3
- package/dist/{server-CIE8s4AN.js.map → server-BfHD5iLD.js.map} +1 -1
- package/dist/{stream-agent-turn-I3bb0eqF.d.ts → stream-agent-turn-B1ipFtOc.d.ts} +4 -2
- package/dist/{substrate-UjsxukjZ.d.ts → substrate-DKBMd0Dl.d.ts} +2 -2
- package/dist/{supervise-C5mktzrh.js → supervise-BJrEC2Mh.js} +195 -59
- package/dist/supervise-BJrEC2Mh.js.map +1 -0
- package/dist/{supervisor-CQSu5XGl.js → supervisor-DA_nvF-h.js} +563 -181
- package/dist/supervisor-DA_nvF-h.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +12 -12
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-C73caP0U.d.ts → types-jD9mNnJM.d.ts} +61 -11
- package/package.json +1 -1
- package/skills/profile-authoring/SKILL.md +3 -3
- package/skills/supervise/SKILL.md +2 -2
- package/dist/coordination-driver-DzTvehd6.js.map +0 -1
- package/dist/delegate-vJ2g76r6.js.map +0 -1
- package/dist/graph-BDQh3qry.js.map +0 -1
- package/dist/provision-supervisor-IXBlLHE0.js.map +0 -1
- package/dist/runtime-DpEt5v42.js.map +0 -1
- package/dist/supervise-C5mktzrh.js.map +0 -1
- package/dist/supervisor-CQSu5XGl.js.map +0 -1
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Ln as ToolLoopCallContext, Rn as ToolLoopChat } from "./stream-agent-turn-
|
|
1
|
+
import { $t as runGraphWithTestBrain, Bc as SuperviseTestOptions, Cn as driverAgent, Hc as superviseWithTestBrain, Sn as DriverAgentOptions, Yt as RunGraphTestOptions, bl as SupervisorAgentTestDeps, kl as supervisorAgentWithTestBrain } from "./index-CxBVmgqL.js";
|
|
2
|
+
import { Ln as ToolLoopCallContext, Rn as ToolLoopChat } from "./stream-agent-turn-B1ipFtOc.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 { N as immutableCandidateValue, k as canonicalCandidateDigest$1 } from "./workspace-streams-D5gHJdTb.js";
|
|
2
|
-
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-
|
|
2
|
+
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-Cf37Kexd.js";
|
|
3
3
|
import { i as applyExactAgentProfileDiff, p as parseExactAgentProfile } from "./profile-BetOB4_Q.js";
|
|
4
|
-
import { r as driverAgent } from "./coordination-driver-
|
|
5
|
-
import { a as superviseWithTestBrain, h as supervisorAgentWithTestBrain } from "./supervise-
|
|
6
|
-
import { i as runGraphWithTestBrain } from "./graph-
|
|
4
|
+
import { r as driverAgent } from "./coordination-driver-vNrdQBSH.js";
|
|
5
|
+
import { a as superviseWithTestBrain, h as supervisorAgentWithTestBrain } from "./supervise-BJrEC2Mh.js";
|
|
6
|
+
import { i as runGraphWithTestBrain } from "./graph-Dwv_hQB_.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:
|
|
11
|
+
digest: "sha256:0fa005d12f9556eed2c909015320a7e8eaee92a86e299662ff730b3d1b80e3bb",
|
|
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.
|
|
4582
|
+
"runtimeVersion": "0.301.0"
|
|
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:
|
|
4694
|
-
"runId": "agent-runtime-0.
|
|
4693
|
+
"recordDigest": "sha256:db93479b4b15a218b60d0fd4a72f0ec4144e110d736cc73814b04209452df10a",
|
|
4694
|
+
"runId": "agent-runtime-0.301.0-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.
|
|
4717
|
+
runId: "agent-runtime-0.301.0-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:
|
|
4723
|
+
digest: "sha256:befcc455b8bce4b55f6acefbd434b53db852162aff8f4d45dcf06caed70831d2",
|
|
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.
|
|
6357
|
+
"runtimeVersion": "0.301.0"
|
|
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:
|
|
6468
|
+
"recordDigest": "sha256:ea93c1de650242d69925b12a6fcc3917de5691ceecb336b7e7fa73acea818355",
|
|
6469
6469
|
"runId": "profile-improvement-1",
|
|
6470
6470
|
"schema": "agent-profile-improvement-experiment"
|
|
6471
6471
|
}
|
package/dist/tui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as
|
|
1
|
+
import { Ct as ProvisionedSupervisor, St as ProvisionSupervisorRequest, Tt as provisionSupervisor, wt as SupervisorCleanupReceipt, xt as ProvisionSupervisorConnection } from "../index-CxBVmgqL.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-
|
|
1
|
+
import { t as provisionSupervisor } from "../provision-supervisor-CS0fBIhp.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 };
|
|
@@ -2403,6 +2403,9 @@ interface DriverAttemptRecord {
|
|
|
2403
2403
|
readonly contract?: DriverContractState;
|
|
2404
2404
|
/** True when this COMPLETED attempt's unmet contract sent the loop back with a continuation. */
|
|
2405
2405
|
readonly reprompted?: boolean;
|
|
2406
|
+
/** For a completed attempt that left work open: how long the manager then waited, with no
|
|
2407
|
+
* model turn, before the wake that started the next attempt. */
|
|
2408
|
+
readonly waitedMs?: number;
|
|
2406
2409
|
/** Why an unmet contract did NOT re-enter the session. Absent when the contract was met, when
|
|
2407
2410
|
* the manager has no continuation policy, or when the continuation was sent. */
|
|
2408
2411
|
readonly repromptRefusedBy?: DriverRepromptRefusal;
|
|
@@ -2453,6 +2456,14 @@ type DriverReentry = {
|
|
|
2453
2456
|
readonly failure: string;
|
|
2454
2457
|
/** 1-based: which failure retry this is. */
|
|
2455
2458
|
readonly retry: number;
|
|
2459
|
+
} | {
|
|
2460
|
+
/** The previous turn ended with work open, and Runtime woke the manager when something
|
|
2461
|
+
* happened. Not a continuation: the manager chose to wait, and `input` is what it waited for. */
|
|
2462
|
+
readonly reason: 'wake';
|
|
2463
|
+
/** The wake input: every event since the last turn, or the heartbeat or deadline notice. */
|
|
2464
|
+
readonly input: string;
|
|
2465
|
+
/** 1-based: which wake this is. */
|
|
2466
|
+
readonly wake: number;
|
|
2456
2467
|
} | {
|
|
2457
2468
|
/** The upstream refused the previous drive for capacity, or the check could not run, and the
|
|
2458
2469
|
* loop paused before this one. Re-entered like a failure, with the original task and the
|
|
@@ -2523,6 +2534,10 @@ interface DriverLoopRecord {
|
|
|
2523
2534
|
readonly unavailableMs: number;
|
|
2524
2535
|
/** Re-entered drives, in a row at the end, that completed without a delivery. */
|
|
2525
2536
|
readonly barrenReentries: number;
|
|
2537
|
+
/** Turns started by a wake: the manager ended its turn with work open and Runtime resumed it. */
|
|
2538
|
+
readonly wakes: number;
|
|
2539
|
+
/** Time the manager waited between turns with no model turn, summed over its wakes. */
|
|
2540
|
+
readonly waitedMs: number;
|
|
2526
2541
|
/** Why the loop ended: its last record's stop, or `unrecorded` when it ended without one (an
|
|
2527
2542
|
* admission refusal before the first attempt, or a throw from outside the loop). */
|
|
2528
2543
|
readonly ended: DriverAttemptStop | 'unrecorded';
|
|
@@ -3297,13 +3312,12 @@ declare function sandboxSessionTraceSource(box: SessionTraceBox, sessionId: stri
|
|
|
3297
3312
|
* absolute `timeoutAtMs` passes (CI status, file existence, an HTTP probe, an
|
|
3298
3313
|
* inbox message).
|
|
3299
3314
|
*
|
|
3300
|
-
* ── How this differs from
|
|
3315
|
+
* ── How this differs from a manager's wake (`./wake`) ──
|
|
3301
3316
|
*
|
|
3302
|
-
* They look similar and are not the same mechanism.
|
|
3303
|
-
*
|
|
3304
|
-
*
|
|
3305
|
-
*
|
|
3306
|
-
* up, and nothing about that wait is recorded: kill the process and the wait is simply gone.
|
|
3317
|
+
* They look similar and are not the same mechanism. A wake is an IN-RUN RENDEZVOUS: a manager
|
|
3318
|
+
* that ends its turn with work open is resumed when the coordination bus delivers its next event.
|
|
3319
|
+
* It costs no model turn, but it lives in a process that must stay up, and nothing about that
|
|
3320
|
+
* wait is recorded: kill the process and the wait is simply gone.
|
|
3307
3321
|
*
|
|
3308
3322
|
* A wait-state is a NODE, not a call. It has a node id in the tree, a journal record carrying its
|
|
3309
3323
|
* ABSOLUTE deadline, and it settles through the same `Scope.next()` cursor as any worker. Nobody
|
|
@@ -3859,6 +3873,13 @@ interface Agent<Task, Out> {
|
|
|
3859
3873
|
*/
|
|
3860
3874
|
harnessTranscript?(): HarnessTranscriptCapture | undefined; /** Forwarded the same way: resolves once {@link harnessTranscript} is final (see `Executor`). */
|
|
3861
3875
|
harnessTranscriptSettled?(): Promise<void>;
|
|
3876
|
+
/**
|
|
3877
|
+
* True once this agent's result is committed: its completion check accepted a submission and
|
|
3878
|
+
* the coordination record holds it. `act` then resolves with that result once the turn that
|
|
3879
|
+
* submitted it has ended, so an abort that arrives after acceptance waits for it, bounded,
|
|
3880
|
+
* instead of discarding it (see `Executor.resultAccepted`).
|
|
3881
|
+
*/
|
|
3882
|
+
resultAccepted?(): boolean;
|
|
3862
3883
|
}
|
|
3863
3884
|
/**
|
|
3864
3885
|
* The leaf runtime — ONE open interface, not a closed union. `execute` returns a
|
|
@@ -4033,6 +4054,15 @@ interface Executor<Out> {
|
|
|
4033
4054
|
* Never rejects. An executor whose transcript is final when `execute` ends omits it.
|
|
4034
4055
|
*/
|
|
4035
4056
|
harnessTranscriptSettled?(): Promise<void>;
|
|
4057
|
+
/**
|
|
4058
|
+
* True once this execution's result is committed and `execute` will resolve with it: a
|
|
4059
|
+
* manager whose completion check accepted its submission. The scope does not settle such a node
|
|
4060
|
+
* `down` when its deadline or an abort arrives while the accepted turn is still ending; it waits
|
|
4061
|
+
* for `execute` to resolve, and the executor bounds that wait itself. Measured on Discovery Lab
|
|
4062
|
+
* run terraform-economics-20261005f: 5 of 20 nodes with accepted results were settled `down` by
|
|
4063
|
+
* deadlines that fell while their turns were still ending.
|
|
4064
|
+
*/
|
|
4065
|
+
resultAccepted?(): boolean;
|
|
4036
4066
|
}
|
|
4037
4067
|
/** Why Runtime cannot provide structured tool-call evidence for one settled execution. */
|
|
4038
4068
|
type WorkerTraceUnavailableReason = 'execution-did-not-start' | 'executor-did-not-expose-trace-source' | 'trace-source-unavailable' | 'no-tool-spans-captured' | 'invalid-tool-spans' | 'trace-collection-failed' | 'trace-persistence-failed' | 'legacy-settlement-without-trace-evidence' | 'not-an-executor';
|
|
@@ -4872,9 +4902,8 @@ interface Scope<Out> {
|
|
|
4872
4902
|
* predicate this run's registry cannot resolve), or `deadline-exceeded` (the wait would outlive
|
|
4873
4903
|
* the pool's hard wall-clock ceiling — a wait never extends a budget guard).
|
|
4874
4904
|
*
|
|
4875
|
-
* NOT
|
|
4876
|
-
*
|
|
4877
|
-
* and nothing about it survives a restart. See `supervise/wait.ts`.
|
|
4905
|
+
* NOT a manager's wake: that is an in-run rendezvous on the coordination bus in a process that
|
|
4906
|
+
* must stay up, and nothing about it survives a restart. See `supervise/wait.ts`.
|
|
4878
4907
|
*/
|
|
4879
4908
|
wait(spec: WaitSpec, opts: WaitOpts): {
|
|
4880
4909
|
ok: true;
|
|
@@ -5058,7 +5087,7 @@ interface NodeSnapshot {
|
|
|
5058
5087
|
readonly spent: Spend;
|
|
5059
5088
|
/**
|
|
5060
5089
|
* The node's executor has FINISHED and its settlement is queued for the manager to drain with
|
|
5061
|
-
*
|
|
5090
|
+
* its next wake/`next()`, but `status` still reads as it did while running because the settle
|
|
5062
5091
|
* transition happens at drain time. Present only in that window; absent once drained or while
|
|
5063
5092
|
* the executor is still live. Carries the terminal kind so a manager polling `observe_agent`
|
|
5064
5093
|
* can tell "still working" from "finished, waiting for you to read it".
|
|
@@ -5539,6 +5568,27 @@ type SpawnEvent = {
|
|
|
5539
5568
|
detail?: string;
|
|
5540
5569
|
seq: number;
|
|
5541
5570
|
at: string;
|
|
5571
|
+
} | {
|
|
5572
|
+
/** One end-of-turn workspace capture of this node's environment and where its time went.
|
|
5573
|
+
* Captures queue on one port that every recursive environment shares, so `queuedMs` is
|
|
5574
|
+
* the wait behind other nodes' captures and `captureMs` the capture and its verification.
|
|
5575
|
+
* Informational, like `workspace-checkpoint`; `seq` counts this node's records. */
|
|
5576
|
+
kind: 'workspace-capture';
|
|
5577
|
+
id: NodeId;
|
|
5578
|
+
/** The Runtime invocation the capture belongs to. */
|
|
5579
|
+
executionId: string;
|
|
5580
|
+
environmentId: string;
|
|
5581
|
+
/** Captures holding or waiting for a slot when this one was requested. */
|
|
5582
|
+
ahead: number;
|
|
5583
|
+
queuedMs: number;
|
|
5584
|
+
/** Absent when the capture never held a slot. */
|
|
5585
|
+
captureMs?: number;
|
|
5586
|
+
/** Bytes of the verified workspace archive. */
|
|
5587
|
+
archiveBytes?: number;
|
|
5588
|
+
outcome: 'captured' | 'failed';
|
|
5589
|
+
error?: string;
|
|
5590
|
+
seq: number;
|
|
5591
|
+
at: string;
|
|
5542
5592
|
} | {
|
|
5543
5593
|
/** One GRAPH-EDGE traversal (`runGraph`): what the runtime actually DELIVERED across a
|
|
5544
5594
|
* delegates/analyzes edge, with byte counts — the observability that makes an edge's
|
|
@@ -6168,4 +6218,4 @@ interface WidenGate<Out> {
|
|
|
6168
6218
|
}
|
|
6169
6219
|
//#endregion
|
|
6170
6220
|
export { SpawnJournal as $, AgentRuntimeEventSink as $a, LeakedReservation as $i, ReadableEnvironment as $n, checkVerdictOf as $r, RuntimeStreamEventCollector as $t, NodeExecutionIdentity as A, LoopWinner as Aa, RetainedInteractiveEnvironmentAdmission as Ai, RetainedPendingCause as An, classifyDriverFailure as Ar, TraceContext as At, ResultBlobStore as B, RuntimeRunCost as Ba, RetainedRunEventOptions as Bi, ReconnectRetainedInteractiveRunOptions as Bn, ContinuationAppend as Br, OtelSpan as Bt, ExecutorToolCall as C, LoopResult as Ca, NativeContextContinuationHandle as Ci, SessionTraceBox as Cn, DriverContractState as Cr, WorkspaceCheckpointMarker as Ct, MaterializedExecutionIdentity as D, LoopTokenUsage as Da, RecoverRetainedRunOptions as Di, decodeToolPart as Dn, DriverReentry as Dr, workerTraceEnv as Dt, HeldEnvironment as E, LoopTeardownFailedPayload as Ea, RecoverRetainedRunIntentOptions as Ei, createPushTraceSource as En, DriverProgressMark as Er, readWorkerTraceContext as Et, ProviderModelAttemptEvidence as F, SandboxClient as Fa, RetainedRunCancelOptions as Fi, ScopeProgressInput as Fn, CONTINUATIONS_DIR as Fr, LoopSpanNode as Ft, RootMaterialization as G, RuntimeRunStatus as Ga, RetainedRunStartMaterial as Gi, RetainedInteractiveStartMaterial as Gn, ContinuationPanelInput as Gr, createOpenInferenceFileExporter as Gt, ResumedWork as H, RuntimeRunOptions as Ha, RetainedRunIntentAdmission as Hi, RetainedInteractiveAdmissionHook as Hn, ContinuationEntry as Hr, buildLoopOtelSpans as Ht, ProviderModelExecutionEvidence as I, SelectionReceipt as Ia, RetainedRunCancellation as Ii, TeamProgress as In, CONTINUATION_FACTS as Ir, OtelAttribute as It, RootStreamReceipt as J, AgentBackendContext as Ja, StartRetainedRunOptions as Ji, HarnessTranscriptCapture as Jn, ContinuationProfile as Jr, loopEventToOtelSpan as Jt, RootProviderModelEvidence as K, startRuntimeRun as Ka, RetainedRunTurnInput as Ki, StartRetainedInteractiveRunOptions as Kn, ContinuationPanelResult as Kr, createOtelExporter as Kt, RecursiveReservationPolicy as L, ValidationCtx as La, RetainedRunDispatchedAdmission as Li, WorkerProgress as Ln, CheckRead as Lr, OtelExportConfig as Lt, NodeSnapshot as M, MountRecorder as Ma, RetainedInteractiveStartedAdmission as Mi, ActivityNote as Mn, upstreamUnavailableSignal as Mr, mergeTraceEnv as Mt, NodeStatus as N, OutputAdapter as Na, RetainedRunAdmission as Ni, DEFAULT_STALL_AFTER_MS as Nn, UnavailablePausePolicy as Nr, readTraceContextFromEnv as Nt, MaterializedModelIdentity as O, LoopTraceEmitter as Oa, RecoverRetainedRunResult as Oi, sandboxSessionTraceSource as On, DriverRepromptRefusal as Or, workerTraceHeaders as Ot, ProfileMaterializationReceipt as P, RunProvenance as Pa, RetainedRunAdmissionHook as Pi, ExecutorProgress as Pn, AdmittedFinding as Pr, traceContextToEnv as Pt, SpawnEvent as Q, AgentRuntimeEvent as Qa, BudgetReconcileFault as Qi, HarnessTranscriptUnavailableReason as Qn, admitFinding as Qr, RuntimeEventCollector as Qt, ResourceLimit as R, Validator as Ra, RetainedRunEffect as Ri, createActivityLog as Rn, CheckUnavailableError as Rr, OtelExportStats as Rt, ExecutorTeardownWarning as S, LoopPlanPayload as Sa, NativeContextContinuationExecution as Si, SessionMessageLike as Sn, DriverContinuationRecord as Sr, WorkerTraceUnavailableReason as St, Handle as T, LoopStartedPayload as Ta, ReconnectRetainedRunOptions as Ti, TraceSource as Tn, DriverLoopRecord as Tr, WorkerTraceSeamCarrier as Tt, RetainedExecutionState as U, RuntimeRunPersistenceAdapter as Ua, RetainedRunReplayPoint as Ui, RetainedInteractiveEnvironmentInput as Un, ContinuationNoteInput as Ur, buildLoopSpanNodes as Ut, ResumedKeyState as V, RuntimeRunHandle as Va, RetainedRunHandle as Vi, RecoverRetainedInteractiveRunOptions as Vn, ContinuationContext as Vr, RuntimeEventOtelOptions as Vt, RootHandle as W, RuntimeRunRow as Wa, RetainedRunSnapshot as Wi, RetainedInteractiveRunHandle as Wn, ContinuationPanel as Wr, buildRuntimeEventOtelSpans as Wt, Scope as X, AgentExecutionBackend as Xa, BudgetPoolRestore as Xi, HarnessTranscriptFile as Xn, VerdictSummary as Xr, padTraceId as Xt, Runtime as Y, AgentBackendInput as Ya, BudgetPool as Yi, HarnessTranscriptEvidence as Yn, PanelFinding as Yr, padSpanId as Yt, Settled as Z, AgentKnowledgeProvider as Za, BudgetReadout as Zi, HarnessTranscriptUnavailable as Zn, admitContinuationPolicy as Zr, toOtelAttributes as Zt, ExecutorMaterialization as _, LoopIterationDispatchPayload as _a, RuntimeRunStateError as _i, isWaitOutcome as _n, ProviderWorkspaceRetentionPort as _r, WaitOpts as _t, BudgetOverspend as a, ReservationTicket as aa, verdictFromJudgeScore as ai, createRuntimeEventCollector as an, KnowledgeReadinessDecision as ao, HarnessTranscriptReadOptions as ar, SpendGap as at, ExecutorRegistry as b, LoopLineageOptions as ba, WorkerSlots as bi, validateWaitSpec as bn, DriverAttemptsExhaustedError as br, WorkerInteractiveUnavailableReason as bt, EnvironmentTeardownReceipt as c, createBudgetPool as ca, BackendTransportError as ci, sanitizeKnowledgeReadinessReport as cn, OpenAIChatToolChoice as co, resolveHarnessTranscriptCapture as cr, SubtreeSummary as ct, ExecutorAccounting as d, DefaultVerdict$1 as da, NotFoundError as di, WaitOutcome as dn, RuntimeCanonicalStreamEvent as do, ProviderWorkspaceAttemptProvenance as dr, SupervisorOpts as dt, ReservationFloor as ea, composeContinuationNote as ei, RuntimeStreamEventSink as en, AgentTaskContext as eo, captureHarnessTranscript as er, SpawnOpts as et, ExecutorCancellation as f, Driver as fa, PlannerError as fi, WaitProbe as fn, RuntimeSession as fo, ProviderWorkspaceCaptureProvenance as fr, TokenUsageProvenance as ft, ExecutorFactory as g, LoopEndedPayload as ga, RetainedRunDispatchBindingError as gi, createWaitProbes as gn, ProviderWorkspaceRetentionContext as gr, UsageEvent as gt, ExecutorExecutionBinding as h, LoopDecisionPayload as ha, RetainedRunAdmissionError as hi, WaitSpec as hn, ProviderWorkspaceEntryMetadata as hr, UnknownMaterializationReason as ht, Budget as i, ReservationStage as ia, passedItems as ii, SanitizedKnowledgeRequirement as in, BackendErrorDetail as io, HarnessTranscriptReadLimits as ir, SpendChannel as it, NodeId as j, MountManifestEntry as ja, RetainedInteractiveIntentAdmission as ji, ActivityLog as jn, summarizeDriverAttempts as jr, createPropagatingTraceEmitter as jt, NoWinnerError as k, LoopTraceEvent as ka, RetainedInteractiveAdmission as ki, RetainedChildRecovery as kn, DriverRetryPolicy as kr, workerTraceSeamKey as kt, ExecutionBindingReceipt as l, spendFromUsageEvents as la, ConfigError as li, sanitizeRuntimeStreamEvent as ln, RunAgentTaskOptions as lo, retainHarnessTranscript as lr, SupervisedResult as lt, ExecutorContext as m, Iteration as ma, RetainedInteractiveBindingError as mi, WaitRejection as mn, RuntimeStreamEvent as mo, ProviderWorkspaceCaptureResult as mr, UnconfirmedTeardown as mt, AgentExecutionRef as n, ReservationRejection as na, expandQuestions as ni, RuntimeTelemetryOptions as nn, AgentTaskSpec as no, persistHarnessTranscript as nr, SpawnRejection as nt, BudgetViolation as o, ReservationWaitRefused as oa, AgentEvalError$1 as oi, createRuntimeStreamEventCollector as on, OpenAIChatResponseFormat as oo, RetainedHarnessTranscriptCapture as or, SteerableRootHandle as ot, ExecutorCancellationRequest as p, ExecCtx as pa, RetainedInteractiveAdmissionError as pi, WaitProbeRegistry as pn, RuntimeSessionStore as po, ProviderWorkspaceCaptureReceipt as pr, TreeView as pt, RootSignal as q, AgentAdapter as qa, StartRetainedRunInEnvironmentOptions as qi, HarnessTranscriptArtifact as qn, ContinuationPolicy as qr, generateSpanId as qt, AgentSpec as r, ReservationShortfall as ra, failedItems as ri, SanitizedKnowledgeReadinessReport as rn, AgentTaskStatus as ro, HarnessTranscriptMetadata as rr, Spend as rt, DefaultVerdict as s, ReserveOptions as sa, AgentEvalErrorCode as si, sanitizeAgentRuntimeEvent as sn, OpenAIChatTool as so, RetainedHarnessTranscriptDescriptor as sr, SubtreeResult as st, Agent as t, ReservationHolder as ta, distillFindings as ti, RuntimeStreamEventSummary as tn, AgentTaskRunResult as to, harnessTranscriptArtifact as tr, SpawnPrior as tt, Executor as u, AgentRunSpec as ua, JudgeError as ui, PendingWait as un, RunAgentTaskStreamOptions as uo, ProviderNativeCapturePhase as ur, Supervisor as ut, ExecutorNodeContext as v, LoopIterationEndedPayload as va, ValidationError as vi, pollFor as vn, DriverAttemptRecord as vr, WidenGate as vt, FleetYield as w, LoopSandboxPlacement as wa, NativeContextContinuationInput as wi, ToolStepInput as wn, DriverFailureClass as wr, WorkerTraceResolver as wt, ExecutorResult as x, LoopPlanDescription as xa, createWorkerSlots as xi, waitUntil as xn, DriverBudgetReadout as xr, WorkerTraceEvidence as xt, ExecutorProgressEvent as y, LoopIterationStartedPayload as ya, SlotPermit as yi, timerAt as yn, DriverAttemptStop as yr, WorkerInteractiveSession as yt, ResourceSpend as z, RuntimeRunCompleteInput as za, RetainedRunEnvironmentAdmission as zi, readWorkerProgress as zn, CheckVerdict as zr, OtelExporter as zt };
|
|
6171
|
-
//# sourceMappingURL=types-
|
|
6221
|
+
//# sourceMappingURL=types-jD9mNnJM.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.301.0",
|
|
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,9 +98,9 @@ Choose `maxBarren` from the task's measured feedback cadence; pending assessment
|
|
|
98
98
|
|
|
99
99
|
For managers, state how they wait for descendants and collect their artifacts before returning.
|
|
100
100
|
A nested manager returning can end its scope and cancel live descendants.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
A background shell timer does not establish Runtime re-entry.
|
|
101
|
+
A manager waits by ending its turn while required descendant work remains live: Runtime wakes it with each settlement, finding, or message from its lead, and with a notice before its deadline.
|
|
102
|
+
Ending a turn with work open is not completion; only an accepted `submit_result`, `report_blocked`, or a turn that ends with nothing open ends a manager.
|
|
103
|
+
A background shell timer or a polling loop does not establish Runtime re-entry, and it spends turns.
|
|
104
104
|
Require each descendant to retain partial work where its parent can recover it after interruption.
|
|
105
105
|
|
|
106
106
|
Retain certificates and partial work where the outside assessor can read exact bytes.
|
|
@@ -30,8 +30,8 @@ A research director also carries the [research authoring reference](../profile-a
|
|
|
30
30
|
1. Split the objective into independent artifacts with checkable outcomes.
|
|
31
31
|
2. Start each assignment with a stable semantic key and a deliberate budget.
|
|
32
32
|
Fill available capacity while distinct useful assignments remain.
|
|
33
|
-
3.
|
|
34
|
-
A
|
|
33
|
+
3. When you are waiting for workers, end your turn. You will be woken with what happened: each settlement and finding, a message from your lead, and a notice before your deadline.
|
|
34
|
+
A heartbeat wake with nothing new does not establish failure.
|
|
35
35
|
Use granted analysts on settled workers and inspect live detector findings when the configured backend supports them.
|
|
36
36
|
Record which finding changed an assignment, profile, claim, or check; give an evidence-backed reason for rejecting it.
|
|
37
37
|
4. Inspect quiet or stalled workers with `observe_agent` before steering them.
|