@tangle-network/agent-runtime 0.231.1 → 0.232.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-DVqSBfe1.js → activation-BXjgjus6.js} +2 -2
- package/dist/{activation-DVqSBfe1.js.map → activation-BXjgjus6.js.map} +1 -1
- package/dist/{activation-Dltkq5S8.d.ts → activation-LJ33ygpS.d.ts} +2 -2
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-CUdEC2Qh.js → coordination-driver-hXWuo-1n.js} +14 -13
- package/dist/{coordination-driver-CUdEC2Qh.js.map → coordination-driver-hXWuo-1n.js.map} +1 -1
- package/dist/{delegate-BN0cSSUT.js → delegate-B8b6oHnj.js} +2 -2
- package/dist/{delegate-BN0cSSUT.js.map → delegate-B8b6oHnj.js.map} +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +9 -3
- package/dist/durable.js.map +1 -1
- package/dist/{graph-D4wgK3ns.js → graph-Ce7g744w.js} +3 -3
- package/dist/{graph-D4wgK3ns.js.map → graph-Ce7g744w.js.map} +1 -1
- package/dist/{improvement-cycle-CjIeWuyB.js → improvement-cycle-CGAPVMst.js} +3 -3
- package/dist/{improvement-cycle-CjIeWuyB.js.map → improvement-cycle-CGAPVMst.js.map} +1 -1
- package/dist/{index-BW6lJXnH.d.ts → index-BnEWL76W.d.ts} +26 -20
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +3 -3
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +4 -4
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-bin-BcqlGNW-.d.ts → loop-runner-bin-BdobVmHx.d.ts} +3 -3
- package/dist/{loop-runner-bin-BodmUPOf.js → loop-runner-bin-Q47flacp.js} +3 -3
- package/dist/{loop-runner-bin-BodmUPOf.js.map → loop-runner-bin-Q47flacp.js.map} +1 -1
- 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 +5 -5
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-avHT8eq3.d.ts → openai-tools-Dl5AKEtq.d.ts} +2 -2
- package/dist/profiles.d.ts +2 -2
- package/dist/{provision-supervisor-DyNDlA2I.js → provision-supervisor-BXnC4uwd.js} +3 -3
- package/dist/{provision-supervisor-DyNDlA2I.js.map → provision-supervisor-BXnC4uwd.js.map} +1 -1
- package/dist/{runtime-BxZHapmG.js → runtime-CcMvprwa.js} +8 -8
- package/dist/{runtime-BxZHapmG.js.map → runtime-CcMvprwa.js.map} +1 -1
- package/dist/{server-C9pa2tSq.js → server-ClTO4X79.js} +3 -3
- package/dist/{server-C9pa2tSq.js.map → server-ClTO4X79.js.map} +1 -1
- package/dist/{stream-agent-turn-hiU4vgGX.d.ts → stream-agent-turn-nAvemLZR.d.ts} +2 -11
- package/dist/{structural-rollout-DQoLyth9.js → structural-rollout-C9z5pjxN.js} +2 -2
- package/dist/{structural-rollout-DQoLyth9.js.map → structural-rollout-C9z5pjxN.js.map} +1 -1
- package/dist/{substrate-CBo6TWOl.d.ts → substrate-ijm9h_79.d.ts} +2 -2
- package/dist/{supervise-Cl_-IsVc.js → supervise-CLkM45VY.js} +13 -10
- package/dist/supervise-CLkM45VY.js.map +1 -0
- package/dist/{supervisor-DFsXULnE.js → supervisor-BVAM5glY.js} +379 -168
- package/dist/supervisor-BVAM5glY.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-DBovefLD.d.ts → types-C8Fj6hNL.d.ts} +136 -24
- package/package.json +1 -1
- package/dist/supervise-Cl_-IsVc.js.map +0 -1
- package/dist/supervisor-DFsXULnE.js.map +0 -1
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $a as SuperviseTestOptions, $t as runGraphWithTestBrain, Ao as supervisorAgentWithTestBrain, Tn as driverAgent, Yt as RunGraphTestOptions, to as superviseWithTestBrain, wn as DriverAgentOptions, xo as SupervisorAgentTestDeps } from "./index-
|
|
2
|
-
import { Dn as ToolLoopChat, En as ToolLoopCallContext } from "./stream-agent-turn-
|
|
1
|
+
import { $a as SuperviseTestOptions, $t as runGraphWithTestBrain, Ao as supervisorAgentWithTestBrain, Tn as driverAgent, Yt as RunGraphTestOptions, to as superviseWithTestBrain, wn as DriverAgentOptions, xo as SupervisorAgentTestDeps } from "./index-BnEWL76W.js";
|
|
2
|
+
import { Dn as ToolLoopChat, En as ToolLoopCallContext } from "./stream-agent-turn-nAvemLZR.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
|
-
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-
|
|
1
|
+
import { f as verifyAgentImprovementProposal } from "./improvement-cycle-CGAPVMst.js";
|
|
2
2
|
import { o as canonicalCandidateDigest$1, u as immutableCandidateValue } from "./protected-redaction-wGo44k2K.js";
|
|
3
3
|
import { M as parseExactAgentProfile, w as applyExactAgentProfileDiff } from "./prepare-Dc30WRB0.js";
|
|
4
|
-
import { p as supervisorAgentWithTestBrain, r as superviseWithTestBrain } from "./supervise-
|
|
5
|
-
import { r as driverAgent } from "./coordination-driver-
|
|
6
|
-
import { i as runGraphWithTestBrain } from "./graph-
|
|
4
|
+
import { p as supervisorAgentWithTestBrain, r as superviseWithTestBrain } from "./supervise-CLkM45VY.js";
|
|
5
|
+
import { r as driverAgent } from "./coordination-driver-hXWuo-1n.js";
|
|
6
|
+
import { i as runGraphWithTestBrain } from "./graph-Ce7g744w.js";
|
|
7
7
|
import { SANDBOX_SIZE_PRESET_NAMES } 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:201a9a98fbdc078d03c35314e4e03f34abaa36d7db394a11c4b1110bd036521c",
|
|
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.232.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:d26f696c1a140606d4e75b1ade7a03f08ce13f4fc4fdfe0527d2fbb4717e438d",
|
|
4694
|
+
"runId": "agent-runtime-0.232.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.232.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:702dc1a85ce46804d67de7fd179bd69f6af0027dca7b6a99c46ab7f159bf7f5f",
|
|
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.232.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:6a55eeeef02f261ce41fa35063839ec37d0b64815dae2517e9d92c75dd2585ce",
|
|
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 ProvisionedSupervisor, St as ProvisionSupervisorRequest, Tt as provisionSupervisor, wt as SupervisorCleanupReceipt, xt as ProvisionSupervisorConnection } from "../index-
|
|
1
|
+
import { Ct as ProvisionedSupervisor, St as ProvisionSupervisorRequest, Tt as provisionSupervisor, wt as SupervisorCleanupReceipt, xt as ProvisionSupervisorConnection } from "../index-BnEWL76W.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-BXnC4uwd.js";
|
|
2
2
|
import { a as renderTopFrameWithLayout, i as renderTopFrame, n as runTopApp, r as loadTopSnapshot, t as renderTopOnce } from "../top-app-CMMd8DgR.js";
|
|
3
3
|
export { loadTopSnapshot, provisionSupervisor, renderTopFrame, renderTopFrameWithLayout, renderTopOnce, runTopApp };
|
|
@@ -1743,34 +1743,121 @@ type RecoverRetainedRunResult = {
|
|
|
1743
1743
|
readonly environment: AgentEnvironment;
|
|
1744
1744
|
};
|
|
1745
1745
|
//#endregion
|
|
1746
|
-
//#region src/runtime/
|
|
1747
|
-
declare const
|
|
1748
|
-
interface
|
|
1746
|
+
//#region src/runtime/harness-transcript.d.ts
|
|
1747
|
+
declare const HARNESS_TRANSCRIPT_SCHEMA_VERSION: 1;
|
|
1748
|
+
interface HarnessTranscriptFile {
|
|
1749
1749
|
readonly path: string;
|
|
1750
1750
|
readonly bytes: number;
|
|
1751
1751
|
readonly content: string;
|
|
1752
1752
|
}
|
|
1753
|
-
interface
|
|
1754
|
-
readonly schemaVersion: typeof
|
|
1753
|
+
interface HarnessTranscriptArtifact {
|
|
1754
|
+
readonly schemaVersion: typeof HARNESS_TRANSCRIPT_SCHEMA_VERSION;
|
|
1755
1755
|
readonly harness: string;
|
|
1756
|
-
readonly files: readonly
|
|
1756
|
+
readonly files: readonly HarnessTranscriptFile[];
|
|
1757
1757
|
/** Paths found but not read, with why — a gap named is a gap an operator can act on. */
|
|
1758
1758
|
readonly skipped: readonly {
|
|
1759
1759
|
readonly path: string;
|
|
1760
1760
|
readonly reason: string;
|
|
1761
1761
|
}[];
|
|
1762
1762
|
}
|
|
1763
|
-
|
|
1763
|
+
/** Why no transcript reached a record, from either the capture or the settle path. */
|
|
1764
|
+
type HarnessTranscriptUnavailableReason = 'unsupported-environment' | 'unknown-harness' | 'no-transcript' | 'enumeration-failed' |
|
|
1765
|
+
/** No environment was ever created for this child, so there is no transcript and never
|
|
1766
|
+
* was one. The admission refusal of #1240 is the measured case: a budget pool that
|
|
1767
|
+
* refuses an unknown dollar cost kills the child before it runs. Distinct from
|
|
1768
|
+
* `unsupported-environment`, which means a box existed and could not be read. */
|
|
1769
|
+
'execution-never-started' |
|
|
1770
|
+
/** An environment WAS created and the child ran, but the capture never executed — the
|
|
1771
|
+
* deadline/abort path closes the stream with `iterator.return()`, which runs the
|
|
1772
|
+
* generator's `finally` and skips its `catch`. Says only what is known: this child had a
|
|
1773
|
+
* transcript and nobody read it. Never collapse it into `execution-never-started`; that
|
|
1774
|
+
* would report a child that reasoned for twenty seconds as one that never ran. */
|
|
1775
|
+
'capture-did-not-run' |
|
|
1776
|
+
/** This executor implements no transcript port at all: a CLI, in-process, bridge, or
|
|
1777
|
+
* sandbox-session executor that has no capture yet. An absence by construction, never a
|
|
1778
|
+
* failure — and never a claim that the harness wrote nothing. */
|
|
1779
|
+
'executor-exposes-no-transcript' |
|
|
1780
|
+
/** Session files were found and none was carried: every path was refused, over budget,
|
|
1781
|
+
* unreadable, or skipped by an abort. The `skipped` list beside this reason names each one,
|
|
1782
|
+
* so "there was a transcript and it was not kept" never reads as "no transcript". */
|
|
1783
|
+
'nothing-carried' |
|
|
1784
|
+
/** The capture succeeded and the blob write did not. The transcript existed in memory and
|
|
1785
|
+
* never reached disk; mirrors `trace-persistence-failed` on the tool-span receipt. */
|
|
1786
|
+
'transcript-persistence-failed';
|
|
1787
|
+
interface HarnessTranscriptUnavailable {
|
|
1788
|
+
readonly status: 'unavailable';
|
|
1789
|
+
readonly reason: HarnessTranscriptUnavailableReason;
|
|
1790
|
+
/** Present with `nothing-carried`: the paths that existed and why each was not read. */
|
|
1791
|
+
readonly skipped?: readonly {
|
|
1792
|
+
readonly path: string;
|
|
1793
|
+
readonly reason: string;
|
|
1794
|
+
}[];
|
|
1795
|
+
}
|
|
1796
|
+
/**
|
|
1797
|
+
* What the executor holds in memory between the read and the settle: the files, inline.
|
|
1798
|
+
*
|
|
1799
|
+
* Never journaled and never inside a result blob. The scope persists it under its own content
|
|
1800
|
+
* ref and records the {@link HarnessTranscriptEvidence} receipt instead, so the settlement stays
|
|
1801
|
+
* small and a replay pays nothing for a transcript nobody opens.
|
|
1802
|
+
*/
|
|
1803
|
+
type HarnessTranscriptCapture = {
|
|
1804
|
+
readonly status: 'captured';
|
|
1805
|
+
readonly artifact: HarnessTranscriptArtifact;
|
|
1806
|
+
readonly fileCount: number;
|
|
1807
|
+
readonly totalBytes: number;
|
|
1808
|
+
/** Non-zero when some transcript was found but deliberately not carried. */
|
|
1809
|
+
readonly skippedCount: number;
|
|
1810
|
+
} | HarnessTranscriptUnavailable;
|
|
1811
|
+
/**
|
|
1812
|
+
* The durable receipt on a settlement: a content-addressed pointer to a persisted
|
|
1813
|
+
* {@link HarnessTranscriptArtifact}, or the exact reason there is none. A SIBLING of the tool-span
|
|
1814
|
+
* `trace` receipt, never nested inside it — a dropped child has zero tool spans and an
|
|
1815
|
+
* unavailable trace, and it is precisely the child whose transcript this exists to keep.
|
|
1816
|
+
*/
|
|
1817
|
+
type HarnessTranscriptEvidence = {
|
|
1764
1818
|
readonly status: 'available';
|
|
1765
|
-
|
|
1819
|
+
/** Content-addressed pointer to a persisted `HarnessTranscriptArtifact` in the run's blobs. */
|
|
1820
|
+
readonly transcriptRef: string;
|
|
1821
|
+
readonly harness: string;
|
|
1766
1822
|
readonly fileCount: number;
|
|
1767
1823
|
readonly totalBytes: number;
|
|
1768
1824
|
/** Non-zero when some transcript was found but deliberately not carried. */
|
|
1769
1825
|
readonly skippedCount: number;
|
|
1770
|
-
} |
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1826
|
+
} | HarnessTranscriptUnavailable;
|
|
1827
|
+
/** The two optional environment reads the capture needs. Public because `captureHarnessTranscript`
|
|
1828
|
+
* is, so a BYO executor can satisfy it with any box that offers a bounded `read` and an `exec`. */
|
|
1829
|
+
interface ReadableEnvironment {
|
|
1830
|
+
readonly read?: (path: string, options?: {
|
|
1831
|
+
readonly signal?: AbortSignal;
|
|
1832
|
+
}) => Promise<string>;
|
|
1833
|
+
readonly exec?: (command: string, options?: Record<string, unknown>) => Promise<{
|
|
1834
|
+
readonly stdout?: string;
|
|
1835
|
+
readonly exitCode?: number;
|
|
1836
|
+
}>;
|
|
1837
|
+
}
|
|
1838
|
+
/**
|
|
1839
|
+
* Read the harness transcript out of one LIVE environment.
|
|
1840
|
+
*
|
|
1841
|
+
* Call this before the environment is destroyed — on the settled path that means before the
|
|
1842
|
+
* result is built, since the `finally` that destroys runs after. It never throws: a teardown
|
|
1843
|
+
* must not fail because evidence could not be collected, and every failure mode is a named
|
|
1844
|
+
* `reason` the settled receipt carries instead of an empty artifact that reads as coverage.
|
|
1845
|
+
*/
|
|
1846
|
+
declare function captureHarnessTranscript(environment: ReadableEnvironment | undefined, harness: string | undefined, signal?: AbortSignal): Promise<HarnessTranscriptCapture>;
|
|
1847
|
+
/**
|
|
1848
|
+
* Persist a capture under its own content ref and return the receipt a settlement carries.
|
|
1849
|
+
*
|
|
1850
|
+
* The scope calls this, not the executor: storage stays out of every provider and destroy site,
|
|
1851
|
+
* exactly as the tool-span trace is persisted by `captureWorkerTraceEvidence` and not by the
|
|
1852
|
+
* source that collected it. A capture that is already unavailable passes through untouched.
|
|
1853
|
+
*/
|
|
1854
|
+
declare function persistHarnessTranscript(capture: HarnessTranscriptCapture, blobs: Pick<ResultBlobStore, 'put'>): Promise<HarnessTranscriptEvidence>;
|
|
1855
|
+
/**
|
|
1856
|
+
* Rehydrate the exact persisted transcript a receipt points at, or `undefined` when the receipt
|
|
1857
|
+
* says there is none. Throws only when the receipt claims a blob the store does not hold — that
|
|
1858
|
+
* is corruption, not absence, and must not read as "no transcript".
|
|
1859
|
+
*/
|
|
1860
|
+
declare function harnessTranscriptArtifact(evidence: HarnessTranscriptEvidence, blobs: Pick<ResultBlobStore, 'get'>): Promise<HarnessTranscriptArtifact | undefined>;
|
|
1774
1861
|
//#endregion
|
|
1775
1862
|
//#region src/runtime/retained-interactive-types.d.ts
|
|
1776
1863
|
/** Environment and exact AgentProfile used to start one native coding-agent process. @stable */
|
|
@@ -2729,6 +2816,18 @@ interface Executor<Out> {
|
|
|
2729
2816
|
* executors omit it (returns `undefined`).
|
|
2730
2817
|
*/
|
|
2731
2818
|
metered?(): Spend | undefined;
|
|
2819
|
+
/**
|
|
2820
|
+
* The child's OWN harness transcript, read out of its environment while that environment was
|
|
2821
|
+
* still live. Read on settle, valid after `execute` resolves OR throws — the throw half is the
|
|
2822
|
+
* point: a child that drops produces no result artifact, so before this the only carrier was
|
|
2823
|
+
* the settled result and a dropped child's reasoning died with its box (#1244).
|
|
2824
|
+
*
|
|
2825
|
+
* An executor with no transcript to offer omits the method entirely; the settle path then
|
|
2826
|
+
* records `executor-exposes-no-transcript` rather than an empty artifact that reads as
|
|
2827
|
+
* coverage. Never throws. Returns the in-memory capture; the SCOPE persists it under its own
|
|
2828
|
+
* content ref and settles the receipt, so no executor ever learns about storage.
|
|
2829
|
+
*/
|
|
2830
|
+
harnessTranscript?(): HarnessTranscriptCapture | undefined;
|
|
2732
2831
|
}
|
|
2733
2832
|
/** Why Runtime cannot provide structured tool-call evidence for one settled execution. */
|
|
2734
2833
|
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';
|
|
@@ -2738,16 +2837,6 @@ type WorkerTraceEvidence = {
|
|
|
2738
2837
|
/** Content-addressed pointer to a persisted `WorkerToolTraceArtifact`. */
|
|
2739
2838
|
readonly traceRef: string;
|
|
2740
2839
|
readonly spanCount: number;
|
|
2741
|
-
/**
|
|
2742
|
-
* The child's OWN harness transcript, read out of its environment before destroy.
|
|
2743
|
-
*
|
|
2744
|
-
* `traceRef` above points at the supervisor's tool spans: toolName, args, status,
|
|
2745
|
-
* callId, with startedAt === endedAt. It carries no assistant text, no reasoning and
|
|
2746
|
-
* no tool results, so `status: 'available'` on this object never meant the child's
|
|
2747
|
-
* session survived — it was destroyed with the environment. This says whether it did.
|
|
2748
|
-
* Absent on a settlement recorded before the capture existed.
|
|
2749
|
-
*/
|
|
2750
|
-
readonly nativeSession?: NativeSessionEvidence;
|
|
2751
2840
|
} | {
|
|
2752
2841
|
readonly status: 'unavailable';
|
|
2753
2842
|
readonly reason: WorkerTraceUnavailableReason;
|
|
@@ -3390,6 +3479,12 @@ type Settled<Out> = {
|
|
|
3390
3479
|
providerModel?: ProviderModelExecutionEvidence;
|
|
3391
3480
|
/** Structured tool evidence captured before this settlement was journaled. */
|
|
3392
3481
|
trace: WorkerTraceEvidence;
|
|
3482
|
+
/** Whether the child's OWN harness transcript survived its environment, or why it did not.
|
|
3483
|
+
* A SIBLING of `trace`, not a field inside it: `trace` carries the supervisor's tool spans
|
|
3484
|
+
* (toolName, args, status, callId, startedAt === endedAt) and nothing the child said, and a
|
|
3485
|
+
* child with zero tool spans has an UNAVAILABLE trace — so a receipt nested inside the
|
|
3486
|
+
* available arm could never describe exactly the children that need it most (#1244). */
|
|
3487
|
+
harnessTranscript?: HarnessTranscriptEvidence;
|
|
3393
3488
|
/** Present when the measured spend exceeded this child's reservation. */
|
|
3394
3489
|
budgetViolation?: BudgetViolation;
|
|
3395
3490
|
/** Epoch ms parsed from the durable settlement record when available. */
|
|
@@ -3406,6 +3501,11 @@ type Settled<Out> = {
|
|
|
3406
3501
|
infra: boolean;
|
|
3407
3502
|
/** Partial structured tool evidence captured before this failure was journaled. */
|
|
3408
3503
|
trace: WorkerTraceEvidence;
|
|
3504
|
+
/** The child's own harness transcript, read out of its environment at the last moment it
|
|
3505
|
+
* was live, or the named reason it could not be. This is the path the capture existed
|
|
3506
|
+
* for and never covered: a dropped child produces no result artifact, so before #1244
|
|
3507
|
+
* its reasoning was destroyed with its box. */
|
|
3508
|
+
harnessTranscript?: HarnessTranscriptEvidence;
|
|
3409
3509
|
/** Partial provider model evidence survives an aborted or failed execution. */
|
|
3410
3510
|
providerModel?: ProviderModelExecutionEvidence;
|
|
3411
3511
|
/** Present when the spend reconciled for this child exceeded its reservation. */
|
|
@@ -3744,6 +3844,10 @@ type SpawnEvent = {
|
|
|
3744
3844
|
reason?: string;
|
|
3745
3845
|
/** Structured tool evidence. Optional only for journals written before trace capture. */
|
|
3746
3846
|
trace?: WorkerTraceEvidence;
|
|
3847
|
+
/** Whether this child's harness transcript survived, or the named reason it did not.
|
|
3848
|
+
* Absent on journals written before the capture existed — which is not the same fact as
|
|
3849
|
+
* a recorded `unavailable`, and is why this stays optional rather than defaulting. */
|
|
3850
|
+
harnessTranscript?: HarnessTranscriptEvidence;
|
|
3747
3851
|
/** Present when the reconciled spend exceeded the reservation, on either status. */
|
|
3748
3852
|
budgetViolation?: BudgetViolation;
|
|
3749
3853
|
seq: number;
|
|
@@ -3757,6 +3861,9 @@ type SpawnEvent = {
|
|
|
3757
3861
|
spent?: Spend;
|
|
3758
3862
|
providerModel?: ProviderModelExecutionEvidence;
|
|
3759
3863
|
trace?: WorkerTraceEvidence;
|
|
3864
|
+
/** The child's harness transcript receipt, when the executor could still be read at the
|
|
3865
|
+
* cancel. The settle path writes it on this record exactly as on `settled`. */
|
|
3866
|
+
harnessTranscript?: HarnessTranscriptEvidence;
|
|
3760
3867
|
outRef?: string;
|
|
3761
3868
|
budgetViolation?: BudgetViolation;
|
|
3762
3869
|
seq: number;
|
|
@@ -3868,6 +3975,11 @@ type SpawnEvent = {
|
|
|
3868
3975
|
kind: 'reconciled';
|
|
3869
3976
|
id: NodeId;
|
|
3870
3977
|
spent: Spend;
|
|
3978
|
+
/** The transcript receipt of a retained-pending child. This record is the ONLY durable home
|
|
3979
|
+
* it has: the node writes no `settled` record while its slot stays open, and these are the
|
|
3980
|
+
* #1244 children exactly — dropped mid-run with a live box the capture read. A later
|
|
3981
|
+
* terminal record for the node carries the same receipt forward. */
|
|
3982
|
+
harnessTranscript?: HarnessTranscriptEvidence;
|
|
3871
3983
|
seq: number;
|
|
3872
3984
|
at: string;
|
|
3873
3985
|
} | {
|
|
@@ -4341,5 +4453,5 @@ interface WidenGate<Out> {
|
|
|
4341
4453
|
readonly judgeExempt?: boolean;
|
|
4342
4454
|
}
|
|
4343
4455
|
//#endregion
|
|
4344
|
-
export { Spend as $,
|
|
4345
|
-
//# sourceMappingURL=types-
|
|
4456
|
+
export { Spend as $, NativeContextContinuationHandle as $n, LoopTokenUsage as $r, RuntimeStreamEventSummary as $t, NodeSnapshot as A, BackendErrorDetail as Ai, ExecutorProgress as An, ReservationHolder as Ar, EvalRunsExportConfig as At, RootHandle as B, RuntimeStreamEvent as Bi, RetainedInteractiveStartMaterial as Bn, Iteration as Br, buildLoopSpanNodes as Bt, ExecutorToolCall as C, AgentKnowledgeProvider as Ci, TraceSource as Cn, StartRetainedRunInEnvironmentOptions as Cr, TraceContext as Ct, NoWinnerError as D, AgentTaskRunResult as Di, ActivityLog as Dn, BudgetReadout as Dr, traceContextToEnv as Dt, MaterializedModelIdentity as E, AgentTaskContext as Ei, sandboxSessionTraceSource as En, BudgetPoolRestore as Er, readTraceContextFromEnv as Et, ResourceLimit as F, RunAgentTaskOptions as Fi, ReconnectRetainedInteractiveRunOptions as Fn, spendFromUsageEvents as Fr, OtelExportConfig as Ft, Runtime as G, HarnessTranscriptFile as Gn, LoopIterationStartedPayload as Gr, generateSpanId as Gt, RootProviderModelEvidence as H, HarnessTranscriptArtifact as Hn, LoopEndedPayload as Hr, createOpenInferenceFileExporter as Ht, ResourceSpend as I, RunAgentTaskStreamOptions as Ii, RecoverRetainedInteractiveRunOptions as In, AgentRunSpec as Ir, OtelExporter as It, SpawnEvent as J, ReadableEnvironment as Jn, LoopPlanPayload as Jr, padTraceId as Jt, Scope as K, HarnessTranscriptUnavailable as Kn, LoopLineageOptions as Kr, loopEventToOtelSpan as Kt, ResultBlobStore as L, RuntimeCanonicalStreamEvent as Li, RetainedInteractiveAdmissionHook as Ln, DefaultVerdict$1 as Lr, OtelSpan as Lt, ProfileMaterializationReceipt as M, OpenAIChatResponseFormat as Mi, WorkerProgress as Mn, ReservationStage as Mr, INTELLIGENCE_WIRE_VERSION as Mt, ProviderModelAttemptEvidence as N, OpenAIChatTool as Ni, createActivityLog as Nn, ReservationTicket as Nr, LoopSpanNode as Nt, NodeExecutionIdentity as O, AgentTaskSpec as Oi, ActivityNote as On, BudgetReconcileFault as Or, EvalRunEvent as Ot, ProviderModelExecutionEvidence as P, OpenAIChatToolChoice as Pi, readWorkerProgress as Pn, createBudgetPool as Pr, OtelAttribute as Pt, SpawnRejection as Q, NativeContextContinuationExecution as Qn, LoopTeardownFailedPayload as Qr, RuntimeStreamEventSink as Qt, ResumedKeyState as R, RuntimeSession as Ri, RetainedInteractiveEnvironmentInput as Rn, Driver as Rr, RuntimeEventOtelOptions as Rt, ExecutorTeardownWarning as S, AgentExecutionBackend as Si, ToolStepInput as Sn, RetainedRunTurnInput as Sr, workerTraceSeamKey as St, MaterializedExecutionIdentity as T, AgentRuntimeEventSink as Ti, decodeToolPart as Tn, BudgetPool as Tr, mergeTraceEnv as Tt, RootSignal as U, HarnessTranscriptCapture as Un, LoopIterationDispatchPayload as Ur, createOtelExporter as Ut, RootMaterialization as V, StartRetainedInteractiveRunOptions as Vn, LoopDecisionPayload as Vr, buildRuntimeEventOtelSpans as Vt, RootStreamReceipt as W, HarnessTranscriptEvidence as Wn, LoopIterationEndedPayload as Wr, exportEvalRuns as Wt, SpawnOpts as X, harnessTranscriptArtifact as Xn, LoopSandboxPlacement as Xr, RuntimeEventCollector as Xt, SpawnJournal as Y, captureHarnessTranscript as Yn, LoopResult as Yr, toOtelAttributes as Yt, SpawnPrior as Z, persistHarnessTranscript as Zn, LoopStartedPayload as Zr, RuntimeStreamEventCollector as Zt, ExecutorMaterialization as _, RuntimeRunStatus as _i, timerAt as _n, RetainedRunHandle as _r, WorkerTraceResolver as _t, BudgetOverspend as a, OutputAdapter as ai, sanitizeAgentRuntimeEvent as an, RetainedInteractiveAdmission as ar, SupervisorOpts as at, ExecutorRegistry as b, AgentBackendContext as bi, SessionMessageLike as bn, RetainedRunSnapshot as br, workerTraceEnv as bt, EnvironmentTeardownReceipt as c, SelectionReceipt as ci, PendingWait as cn, RetainedInteractiveStartedAdmission as cr, UnconfirmedTeardown as ct, ExecutorAccounting as d, RuntimeRunCompleteInput as di, WaitProbeRegistry as dn, RetainedRunCancelOptions as dr, WaitOpts as dt, LoopTraceEmitter as ei, RuntimeTelemetryOptions as en, NativeContextContinuationInput as er, SpendChannel as et, ExecutorCancellation as f, RuntimeRunCost as fi, WaitRejection as fn, RetainedRunCancellation as fr, WidenGate as ft, ExecutorFactory as g, RuntimeRunRow as gi, pollFor as gn, RetainedRunEventOptions as gr, WorkerTraceUnavailableReason as gt, ExecutorExecutionBinding as h, RuntimeRunPersistenceAdapter as hi, isWaitOutcome as hn, RetainedRunEnvironmentAdmission as hr, WorkerTraceEvidence as ht, Budget as i, MountRecorder as ii, createRuntimeStreamEventCollector as in, RecoverRetainedRunResult as ir, Supervisor as it, NodeStatus as j, KnowledgeReadinessDecision as ji, ScopeProgressInput as jn, ReservationRejection as jr, EvalRunsExportResult as jt, NodeId as k, AgentTaskStatus as ki, DEFAULT_STALL_AFTER_MS as kn, LeakedReservation as kr, EvalRunGeneration as kt, ExecutionBindingReceipt as l, ValidationCtx as li, WaitOutcome as ln, RetainedRunAdmission as lr, UnknownMaterializationReason as lt, ExecutorContext as m, RuntimeRunOptions as mi, createWaitProbes as mn, RetainedRunEffect as mr, WorkerInteractiveUnavailableReason as mt, AgentExecutionRef as n, LoopWinner as ni, SanitizedKnowledgeRequirement as nn, RecoverRetainedRunIntentOptions as nr, SteerableRootHandle as nt, BudgetViolation as o, RunProvenance as oi, sanitizeKnowledgeReadinessReport as on, RetainedInteractiveEnvironmentAdmission as or, TokenUsageProvenance as ot, ExecutorCancellationRequest as p, RuntimeRunHandle as pi, WaitSpec as pn, RetainedRunDispatchedAdmission as pr, WorkerInteractiveSession as pt, Settled as q, HarnessTranscriptUnavailableReason as qn, LoopPlanDescription as qr, padSpanId as qt, AgentSpec as r, MountManifestEntry as ri, createRuntimeEventCollector as rn, RecoverRetainedRunOptions as rr, SupervisedResult as rt, DefaultVerdict as s, SandboxClient as si, sanitizeRuntimeStreamEvent as sn, RetainedInteractiveIntentAdmission as sr, TreeView as st, Agent as t, LoopTraceEvent as ti, SanitizedKnowledgeReadinessReport as tn, ReconnectRetainedRunOptions as tr, SpendGap as tt, Executor as u, Validator as ui, WaitProbe as un, RetainedRunAdmissionHook as ur, UsageEvent as ut, ExecutorNodeContext as v, startRuntimeRun as vi, validateWaitSpec as vn, RetainedRunIntentAdmission as vr, WorkerTraceSeamCarrier as vt, Handle as w, AgentRuntimeEvent as wi, createPushTraceSource as wn, StartRetainedRunOptions as wr, createPropagatingTraceEmitter as wt, ExecutorResult as x, AgentBackendInput as xi, SessionTraceBox as xn, RetainedRunStartMaterial as xr, workerTraceHeaders as xt, ExecutorProgressEvent as y, AgentAdapter as yi, waitUntil as yn, RetainedRunReplayPoint as yr, readWorkerTraceContext as yt, ResumedWork as z, RuntimeSessionStore as zi, RetainedInteractiveRunHandle as zn, ExecCtx as zr, buildLoopOtelSpans as zt };
|
|
4457
|
+
//# sourceMappingURL=types-C8Fj6hNL.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.232.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": {
|