@tangle-network/agent-runtime 0.283.0 → 0.284.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.
Files changed (55) hide show
  1. package/dist/{activation-DL1VoNrT.d.ts → activation-CxiJixSO.d.ts} +2 -2
  2. package/dist/{activation-B_vuAOSo.js → activation-DXFzDCmr.js} +2 -2
  3. package/dist/{activation-B_vuAOSo.js.map → activation-DXFzDCmr.js.map} +1 -1
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +2 -2
  6. package/dist/candidate-execution/index.d.ts +2 -38
  7. package/dist/{coordination-driver-BmkANXc5.js → coordination-driver-BJzVI1oV.js} +2 -2
  8. package/dist/{coordination-driver-BmkANXc5.js.map → coordination-driver-BJzVI1oV.js.map} +1 -1
  9. package/dist/{delegate-BfHKdHzV.js → delegate-CfoEXPam.js} +2 -2
  10. package/dist/{delegate-BfHKdHzV.js.map → delegate-CfoEXPam.js.map} +1 -1
  11. package/dist/durable.d.ts +1 -1
  12. package/dist/durable.js +2 -2
  13. package/dist/{graph-XmlRTlaI.js → graph-RCV6ri8A.js} +4 -4
  14. package/dist/{graph-XmlRTlaI.js.map → graph-RCV6ri8A.js.map} +1 -1
  15. package/dist/{improvement-cycle-BFerq3l4.js → improvement-cycle-DxBnEP8q.js} +3 -3
  16. package/dist/{improvement-cycle-BFerq3l4.js.map → improvement-cycle-DxBnEP8q.js.map} +1 -1
  17. package/dist/{index-CkLB8mJF.d.ts → index-BmGVkjsc.d.ts} +66 -5
  18. package/dist/index.d.ts +13 -6
  19. package/dist/index.js +51 -9
  20. package/dist/index.js.map +1 -1
  21. package/dist/intelligence.d.ts +4 -4
  22. package/dist/intelligence.js +4 -4
  23. package/dist/kernel.d.ts +3 -3
  24. package/dist/kernel.js +9 -9
  25. package/dist/{loop-runner-bin-D8P3T5rT.js → loop-runner-bin-BPy7y5rd.js} +3 -3
  26. package/dist/{loop-runner-bin-D8P3T5rT.js.map → loop-runner-bin-BPy7y5rd.js.map} +1 -1
  27. package/dist/{loop-runner-bin-CINywrHK.d.ts → loop-runner-bin-CqwbQ0et.d.ts} +2 -2
  28. package/dist/loop-runner-bin.d.ts +1 -1
  29. package/dist/loop-runner-bin.js +1 -1
  30. package/dist/mcp/bin.js +3 -3
  31. package/dist/mcp/index.d.ts +2 -2
  32. package/dist/mcp/index.js +4 -4
  33. package/dist/{protected-model-port-BlLP8ja6.d.ts → protected-model-port-DDnU39ul.d.ts} +2 -2
  34. package/dist/{provision-supervisor-BNUmrHwC.js → provision-supervisor-CqRp0Rzo.js} +3 -3
  35. package/dist/{provision-supervisor-BNUmrHwC.js.map → provision-supervisor-CqRp0Rzo.js.map} +1 -1
  36. package/dist/{runtime-CM3KCe9V.js → runtime-lin_kRwN.js} +102 -10
  37. package/dist/runtime-lin_kRwN.js.map +1 -0
  38. package/dist/{search-method-Dlor0kKQ.js → search-method-Hjmqa4B8.js} +2 -2
  39. package/dist/{search-method-Dlor0kKQ.js.map → search-method-Hjmqa4B8.js.map} +1 -1
  40. package/dist/{server-BnMcTE7J.js → server-a2wdjRG1.js} +3 -3
  41. package/dist/{server-BnMcTE7J.js.map → server-a2wdjRG1.js.map} +1 -1
  42. package/dist/{stream-agent-turn-Bk79CnTw.d.ts → stream-agent-turn-IIqBKeLB.d.ts} +149 -5
  43. package/dist/{supervise-DL_Hj1uk.js → supervise-C71s4_OJ.js} +3 -3
  44. package/dist/{supervise-DL_Hj1uk.js.map → supervise-C71s4_OJ.js.map} +1 -1
  45. package/dist/{supervisor-YAc4U8HQ.js → supervisor-D4NnNHZd.js} +470 -70
  46. package/dist/supervisor-D4NnNHZd.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-CuXu5zuS.d.ts → workspace-archive-DpyZV2Cj.d.ts} +38 -2
  52. package/package.json +5 -4
  53. package/skills/profile-authoring/SKILL.md +1 -1
  54. package/dist/runtime-CM3KCe9V.js.map +0 -1
  55. package/dist/supervisor-YAc4U8HQ.js.map +0 -1
package/dist/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Ec as superviseWithTestBrain, Tn as driverAgent, Zt as RunGraphTestOptions, il as SupervisorAgentTestDeps, pl as supervisorAgentWithTestBrain, tn as runGraphWithTestBrain, wc as SuperviseTestOptions, wn as DriverAgentOptions } from "./index-CkLB8mJF.js";
2
- import { Hn as ToolLoopChat, Vn as ToolLoopCallContext } from "./stream-agent-turn-Bk79CnTw.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-BmGVkjsc.js";
2
+ import { Gn as ToolLoopCallContext, Kn as ToolLoopChat } from "./stream-agent-turn-IIqBKeLB.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-BFerq3l4.js";
2
+ import { f as verifyAgentImprovementProposal } from "./improvement-cycle-DxBnEP8q.js";
3
3
  import { i as applyExactAgentProfileDiff, p as parseExactAgentProfile } from "./profile-C4NDjZyB.js";
4
- import { r as driverAgent } from "./coordination-driver-BmkANXc5.js";
5
- import { a as superviseWithTestBrain, h as supervisorAgentWithTestBrain } from "./supervise-DL_Hj1uk.js";
6
- import { i as runGraphWithTestBrain } from "./graph-XmlRTlaI.js";
4
+ import { r as driverAgent } from "./coordination-driver-BJzVI1oV.js";
5
+ import { a as superviseWithTestBrain, h as supervisorAgentWithTestBrain } from "./supervise-C71s4_OJ.js";
6
+ import { i as runGraphWithTestBrain } from "./graph-RCV6ri8A.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:24b06130f501fc1549a401b5028ad906b904cf7160e8dd5c2d6c13275021cc9e",
11
+ digest: "sha256:6e092cdcf84dce191849f88cd673bc7581b7ba1bb58816c29f285ab199733da9",
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.283.0"
4582
+ "runtimeVersion": "0.284.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:b838e249a3609829a8a25d0feb0051cc1b44216755a1346faa4966158082ad65",
4694
- "runId": "agent-runtime-0.283.0-proposal-fixture",
4693
+ "recordDigest": "sha256:baded4ce75df774b96fefd0a4991bc62047a4511d2ee8fd5dd1827995b8a3b60",
4694
+ "runId": "agent-runtime-0.284.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.283.0-proposal-fixture"
4717
+ runId: "agent-runtime-0.284.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:d03808711b3c91755afae8a05c5a1150ddd5d5ef318d779f75667f138a91f295",
4723
+ digest: "sha256:d0280d07dd9605035b5c4169ab8c8040bbb17c5da827990cd72f66ec935ad489",
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.283.0"
6357
+ "runtimeVersion": "0.284.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:d057f52fe0bfae992ec4e4dd3b9de62de0a6e66482c972ad2242611086624c8b",
6468
+ "recordDigest": "sha256:a0dd7dca1d25d6024526387dd5cde07677d69c4ca1b2bd1796089cf8620add2f",
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-CkLB8mJF.js";
1
+ import { Ct as ProvisionSupervisorConnection, Dt as provisionSupervisor, Et as SupervisorCleanupReceipt, Tt as ProvisionedSupervisor, wt as ProvisionSupervisorRequest } from "../index-BmGVkjsc.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-BNUmrHwC.js";
1
+ import { t as provisionSupervisor } from "../provision-supervisor-CqRp0Rzo.js";
2
2
  import { a as renderTopFrameWithLayout, i as renderTopFrame, n as runTopApp, r as loadTopSnapshot, t as renderTopOnce } from "../top-app-VAOrBskv.js";
3
3
  export { loadTopSnapshot, provisionSupervisor, renderTopFrame, renderTopFrameWithLayout, renderTopOnce, runTopApp };
@@ -503,5 +503,41 @@ declare const CANDIDATE_TRACE_ENV: {
503
503
  readonly traceRunId: "TANGLE_TRACE_RUN_ID";
504
504
  };
505
505
  //#endregion
506
- export { AgentCandidateWorkspacePort as A, ResolvedAgentCandidateContainer as B, AgentCandidateProtectedModelSettlement as C, AgentCandidateRunFinalization as D, AgentCandidateRepositoryPort as E, PreparedAgentCandidateExecution as F, VerifiedAgentCandidateTaskOutcome as H, PreparedAgentCandidateInstruction as I, PreparedAgentCandidateKnowledge as L, CANDIDATE_TRACE_TAGS as M, CanonicalCandidateDocument as N, AgentCandidateTaskExecution as O, PersistedTaskOutcomeEvidence as P, PreparedAgentCandidateLaunch as R, AgentCandidateProtectedModelReservation as S, AgentCandidateProtectedRunCapture as T, AgentCandidateExecutionRoots as U, VerifiedAgentCandidate as V, AgentCandidateModelLimits as _, AgentCandidateExecutionPorts as a, AgentCandidateOutputPurpose as b, AgentCandidateExecutorPort as c, AgentCandidateExecutorStopRequest as d, AgentCandidateExecutorTaskOutcomeCapture as f, AgentCandidateMemoryResetResult as g, AgentCandidateMemoryPort as h, AgentCandidateContainerPort as i, CANDIDATE_TRACE_ENV as j, AgentCandidateVerificationPorts as k, AgentCandidateExecutorProfileFile as l, AgentCandidateExecutorWorkspaceInput as m, AgentCandidateBenchmarkGraderIdentity as n, AgentCandidateExecutorFinalCapture as o, AgentCandidateExecutorWorkspaceFile as p, AgentCandidateBenchmarkGraderPort as r, AgentCandidateExecutorMemoryCapture as s, AgentCandidateArtifactPort as t, AgentCandidateExecutorRequest as u, AgentCandidateModelPort as v, AgentCandidateProtectedModelSettlementCall as w, AgentCandidateProtectedModelActivation as x, AgentCandidateOutputArtifactPort as y, PreparedAgentCandidateTrace as z };
507
- //# sourceMappingURL=types-CuXu5zuS.d.ts.map
506
+ //#region src/candidate-execution/workspace-archive.d.ts
507
+ interface AgentCandidateWorkspaceArchiveLimits {
508
+ maxArchiveBytes: number;
509
+ maxEmbeddedArtifactBytes: number;
510
+ maxFiles: number;
511
+ maxFileBytes: number;
512
+ maxTotalFileBytes: number;
513
+ maxPathBytes: number;
514
+ maxRepositoryBundleBytes: number;
515
+ }
516
+ interface CaptureAgentCandidateWorkspaceOptions {
517
+ /** Include Git HEAD so task preparation can prove its exact commit and tree. */
518
+ includeRepository?: boolean;
519
+ limits?: Partial<AgentCandidateWorkspaceArchiveLimits>;
520
+ /** Use the evaluator-owned artifact store when manifest or archive bytes should not be embedded. */
521
+ artifactPersistence?: {
522
+ executionId: string;
523
+ outputArtifacts: AgentCandidateOutputArtifactPort;
524
+ signal?: AbortSignal;
525
+ };
526
+ }
527
+ interface CreateAgentCandidateWorkspacePortOptions {
528
+ limits?: Partial<AgentCandidateWorkspaceArchiveLimits>;
529
+ }
530
+ interface CapturedAgentCandidateWorkspace {
531
+ readonly snapshot: AgentCandidateWorkspaceSnapshotEvidence;
532
+ /** Caller-owned bytes accepted by createAgentCandidateWorkspacePort. */
533
+ readonly archive: Uint8Array;
534
+ }
535
+ /** Capture one exact regular-file workspace for immutable candidate execution. */
536
+ declare function captureAgentCandidateWorkspace(rootInput: string, options?: CaptureAgentCandidateWorkspaceOptions): Promise<CapturedAgentCandidateWorkspace>;
537
+ /** Capture detached files returned by a remote executor into the standard archive. */
538
+ declare function captureAgentCandidateWorkspaceFiles(input: readonly AgentCandidateExecutorWorkspaceFile[], options?: Omit<CaptureAgentCandidateWorkspaceOptions, 'includeRepository'>): Promise<CapturedAgentCandidateWorkspace>;
539
+ /** Create the standard bounded materializer for candidate execution ports. */
540
+ declare function createAgentCandidateWorkspacePort(options?: CreateAgentCandidateWorkspacePortOptions): AgentCandidateWorkspacePort;
541
+ //#endregion
542
+ export { AgentCandidateProtectedModelSettlement as A, CanonicalCandidateDocument as B, AgentCandidateMemoryResetResult as C, AgentCandidateOutputPurpose as D, AgentCandidateOutputArtifactPort as E, AgentCandidateTaskExecution as F, PreparedAgentCandidateLaunch as G, PreparedAgentCandidateExecution as H, AgentCandidateVerificationPorts as I, VerifiedAgentCandidate as J, PreparedAgentCandidateTrace as K, AgentCandidateWorkspacePort as L, AgentCandidateProtectedRunCapture as M, AgentCandidateRepositoryPort as N, AgentCandidateProtectedModelActivation as O, AgentCandidateRunFinalization as P, CANDIDATE_TRACE_ENV as R, AgentCandidateMemoryPort as S, AgentCandidateModelPort as T, PreparedAgentCandidateInstruction as U, PersistedTaskOutcomeEvidence as V, PreparedAgentCandidateKnowledge as W, AgentCandidateExecutionRoots as X, VerifiedAgentCandidateTaskOutcome as Y, AgentCandidateExecutorRequest as _, captureAgentCandidateWorkspace as a, AgentCandidateExecutorWorkspaceFile as b, AgentCandidateArtifactPort as c, AgentCandidateContainerPort as d, AgentCandidateExecutionPorts as f, AgentCandidateExecutorProfileFile as g, AgentCandidateExecutorPort as h, CreateAgentCandidateWorkspacePortOptions as i, AgentCandidateProtectedModelSettlementCall as j, AgentCandidateProtectedModelReservation as k, AgentCandidateBenchmarkGraderIdentity as l, AgentCandidateExecutorMemoryCapture as m, CaptureAgentCandidateWorkspaceOptions as n, captureAgentCandidateWorkspaceFiles as o, AgentCandidateExecutorFinalCapture as p, ResolvedAgentCandidateContainer as q, CapturedAgentCandidateWorkspace as r, createAgentCandidateWorkspacePort as s, AgentCandidateWorkspaceArchiveLimits as t, AgentCandidateBenchmarkGraderPort as u, AgentCandidateExecutorStopRequest as v, AgentCandidateModelLimits as w, AgentCandidateExecutorWorkspaceInput as x, AgentCandidateExecutorTaskOutcomeCapture as y, CANDIDATE_TRACE_TAGS as z };
543
+ //# sourceMappingURL=workspace-archive-DpyZV2Cj.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-runtime",
3
- "version": "0.283.0",
3
+ "version": "0.284.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": {
@@ -99,7 +99,7 @@
99
99
  "@biomejs/biome": "^2.5.11",
100
100
  "@modelcontextprotocol/sdk": "1.30.0",
101
101
  "@tangle-network/agent-eval": "0.199.0",
102
- "@tangle-network/agent-interface": "^2.13.0",
102
+ "@tangle-network/agent-interface": "^2.14.0",
103
103
  "@tangle-network/agent-provider-tangle": "1.7.0",
104
104
  "@tangle-network/sandbox": ">=0.36.4 <0.48.0",
105
105
  "@types/node": "26.4.0",
@@ -123,7 +123,7 @@
123
123
  "license": "MIT",
124
124
  "peerDependencies": {
125
125
  "@tangle-network/agent-eval": ">=0.199.0 <0.200.0",
126
- "@tangle-network/agent-interface": "^2.13.0",
126
+ "@tangle-network/agent-interface": "^2.14.0",
127
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"
128
128
  },
129
129
  "dependencies": {
@@ -131,7 +131,8 @@
131
131
  "@tangle-network/agent-knowledge": "^17.1.10",
132
132
  "@tangle-network/agent-profile-materialize": ">=0.20.1 <0.21.0",
133
133
  "@tangle-network/agent-trace-contract": "^1.2.0",
134
- "tar-stream": "3.2.1"
134
+ "tar-stream": "3.2.1",
135
+ "zod": "4.5.4"
135
136
  },
136
137
  "scripts": {
137
138
  "build": "tsdown",
@@ -80,7 +80,7 @@ The pass rule is fixed: each rerun row equals the recorded row, field for field,
80
80
  Credit only the cells that the check reran and matched; a sample can refuse a certificate, never extend credit.
81
81
  A null that is no search, such as a spec conflict or a gap list, names each item with evidence; it counts when the held-back check reproduces each.
82
82
  A null without a certificate, or without a registered reproducer, is recorded as "stopped, unverified", never as success.
83
- A null inside the range the source already checked adds nothing.
83
+ A null inside a range the source checked or an earlier reproduced null covered adds nothing.
84
84
  Tell agents the checker may be wrong; credit a checker-defect report the same way, once someone outside the run reproduces the defect.
85
85
  Measured elsewhere: a credited exit cut one model's test cheating from 54% to 9%, while prohibitions barely moved another's.
86
86
  Measured: an in-run check that accepted a documented null made it the cheapest hack in 11 of 16 blind judgments.