@tangle-network/agent-runtime 0.321.0 → 0.322.4

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-BxOOvwjo.d.ts → activation-Bw6S7lI1.d.ts} +2 -2
  2. package/dist/{activation-CXFl5YVE.js → activation-ClHYiUF-.js} +2 -2
  3. package/dist/{activation-CXFl5YVE.js.map → activation-ClHYiUF-.js.map} +1 -1
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-Bpn05N-Y.js → coordination-driver-xq1y2G6E.js} +69 -2
  7. package/dist/coordination-driver-xq1y2G6E.js.map +1 -0
  8. package/dist/{delegate-BHlcTOdK.js → delegate-C9dMTZ8s.js} +2 -2
  9. package/dist/{delegate-BHlcTOdK.js.map → delegate-C9dMTZ8s.js.map} +1 -1
  10. package/dist/durable.d.ts +1 -1
  11. package/dist/durable.js +2 -2
  12. package/dist/{graph-DE2dLhDI.js → graph-DLgIEaDB.js} +4 -4
  13. package/dist/{graph-DE2dLhDI.js.map → graph-DLgIEaDB.js.map} +1 -1
  14. package/dist/{improvement-cycle-CyChbojL.js → improvement-cycle-C0N4tt1G.js} +3 -3
  15. package/dist/{improvement-cycle-CyChbojL.js.map → improvement-cycle-C0N4tt1G.js.map} +1 -1
  16. package/dist/{index-BxiHetnG.d.ts → index-BE5-_p0B.d.ts} +638 -543
  17. package/dist/index.d.ts +4 -4
  18. package/dist/index.js +7 -7
  19. package/dist/intelligence.d.ts +2 -2
  20. package/dist/intelligence.js +22 -6
  21. package/dist/intelligence.js.map +1 -1
  22. package/dist/kernel.d.ts +2 -2
  23. package/dist/kernel.js +9 -9
  24. package/dist/{loop-runner-bin-CT02Vzco.js → loop-runner-bin-B4QRhI5z.js} +3 -3
  25. package/dist/{loop-runner-bin-CT02Vzco.js.map → loop-runner-bin-B4QRhI5z.js.map} +1 -1
  26. package/dist/{loop-runner-bin-DInJZNgs.d.ts → loop-runner-bin-DeT99QWD.d.ts} +2 -2
  27. package/dist/loop-runner-bin.d.ts +1 -1
  28. package/dist/loop-runner-bin.js +1 -1
  29. package/dist/mcp/bin.js +3 -3
  30. package/dist/mcp/index.d.ts +2 -2
  31. package/dist/mcp/index.js +4 -4
  32. package/dist/{openai-tools-DLTw576v.d.ts → openai-tools-C80KeWl4.d.ts} +2 -2
  33. package/dist/profiles.d.ts +1 -1
  34. package/dist/{provision-supervisor-DvgBNtoJ.js → provision-supervisor-C40ye4h2.js} +3 -3
  35. package/dist/{provision-supervisor-DvgBNtoJ.js.map → provision-supervisor-C40ye4h2.js.map} +1 -1
  36. package/dist/{runtime-wLgjMOaj.js → runtime-zv5GK0m4.js} +77 -12
  37. package/dist/runtime-zv5GK0m4.js.map +1 -0
  38. package/dist/{search-executor-TEKWC579.js → search-executor-BtJktjPt.js} +2 -2
  39. package/dist/{search-executor-TEKWC579.js.map → search-executor-BtJktjPt.js.map} +1 -1
  40. package/dist/{server-qYhzITTm.js → server-DNnLa4KU.js} +3 -3
  41. package/dist/{server-qYhzITTm.js.map → server-DNnLa4KU.js.map} +1 -1
  42. package/dist/{supervise-C4bLIU7J.js → supervise-DLezpJcp.js} +172 -123
  43. package/dist/supervise-DLezpJcp.js.map +1 -0
  44. package/dist/{supervisor-bkq2b8k-.js → supervisor-dlufUXys.js} +268 -42
  45. package/dist/supervisor-dlufUXys.js.map +1 -0
  46. package/dist/testing.d.ts +1 -1
  47. package/dist/testing.js +12 -12
  48. package/dist/tui/index.d.ts +1 -1
  49. package/dist/tui/index.js +1 -1
  50. package/package.json +4 -4
  51. package/skills/profile-authoring/SKILL.md +4 -3
  52. package/dist/coordination-driver-Bpn05N-Y.js.map +0 -1
  53. package/dist/runtime-wLgjMOaj.js.map +0 -1
  54. package/dist/supervise-C4bLIU7J.js.map +0 -1
  55. package/dist/supervisor-bkq2b8k-.js.map +0 -1
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { An as RunGraphTestOptions, Pn as runGraphWithTestBrain, Ql as supervisorAgentWithTestBrain, Ul as SupervisorAgentTestDeps, Xn as DriverAgentOptions, Zn as driverAgent, hy as ToolLoopChat, il as SuperviseTestOptions, my as ToolLoopCallContext, ol as superviseWithTestBrain } from "./index-BxiHetnG.js";
1
+ import { Fn as RunGraphTestOptions, Sy as ToolLoopChat, Yl as SupervisorAgentTestDeps, fl as superviseWithTestBrain, iu as supervisorAgentWithTestBrain, nr as driverAgent, tr as DriverAgentOptions, ul as SuperviseTestOptions, xy as ToolLoopCallContext, zn as runGraphWithTestBrain } from "./index-BE5-_p0B.js";
2
2
  import { AgentImprovementProposal, AgentProfile, AgentProfileImprovementMeasuredComparison, SandboxSizePreset } from "@tangle-network/agent-interface";
3
3
  //#region src/testing/index.d.ts
4
4
  /** A proposal produced by Runtime's opaque profile-improvement path. */
package/dist/testing.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { L as immutableCandidateValue, N as canonicalCandidateDigest$1 } from "./workspace-streams-DFAhW7hF.js";
2
- import { f as verifyAgentImprovementProposal } from "./improvement-cycle-CyChbojL.js";
2
+ import { f as verifyAgentImprovementProposal } from "./improvement-cycle-C0N4tt1G.js";
3
3
  import { i as applyExactAgentProfileDiff, p as parseExactAgentProfile } from "./profile-BTbpdL9h.js";
4
- import { r as driverAgent } from "./coordination-driver-Bpn05N-Y.js";
5
- import { a as superviseWithTestBrain, m as supervisorAgentWithTestBrain } from "./supervise-C4bLIU7J.js";
6
- import { i as runGraphWithTestBrain } from "./graph-DE2dLhDI.js";
4
+ import { r as driverAgent } from "./coordination-driver-xq1y2G6E.js";
5
+ import { a as superviseWithTestBrain, m as supervisorAgentWithTestBrain } from "./supervise-DLezpJcp.js";
6
+ import { i as runGraphWithTestBrain } from "./graph-DLgIEaDB.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:1c06a178d9e43fa1ecb23b7d21e4aad90f94f0eaa3a8ee9b91c6c80e0b18e91c",
11
+ digest: "sha256:0b19b2683a1dd4f68fc79bd499b4bd275c6186168b37b4b3148a3b70d483092d",
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.321.0"
4582
+ "runtimeVersion": "0.322.4"
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:6e57ebd056c163878f4c5e7581be5823c0134249823765a65845d3a2288defd8",
4694
- "runId": "agent-runtime-0.321.0-proposal-fixture",
4693
+ "recordDigest": "sha256:5f9fd2ff0e39c680190f770ef050297181aa06bb0d05b16174723949d6efad74",
4694
+ "runId": "agent-runtime-0.322.4-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.321.0-proposal-fixture"
4717
+ runId: "agent-runtime-0.322.4-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:165753d56c3238f55b4d4e09f0a59c415b4cddd8085a78b79e69547777641cc4",
4723
+ digest: "sha256:99acba076f689380dadb5c07deadf506d70095449ca1f1f62719205a63916d3f",
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.321.0"
6357
+ "runtimeVersion": "0.322.4"
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:9c4ba0ba1e67a855d06157d4301bd042af656ec89f26121ce9aa0eb5fdeb8135",
6468
+ "recordDigest": "sha256:3eaf40bb7ba2e05ad2d93acf600040285b75abdb3c7f5b049b88fb538f6df798",
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-BxiHetnG.js";
1
+ import { At as ProvisionedSupervisor, Mt as provisionSupervisor, Ot as ProvisionSupervisorConnection, jt as SupervisorCleanupReceipt, kt as ProvisionSupervisorRequest } from "../index-BE5-_p0B.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-DvgBNtoJ.js";
1
+ import { t as provisionSupervisor } from "../provision-supervisor-C40ye4h2.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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-runtime",
3
- "version": "0.321.0",
3
+ "version": "0.322.4",
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": {
@@ -141,15 +141,15 @@
141
141
  "license": "MIT",
142
142
  "peerDependencies": {
143
143
  "@tangle-network/agent-eval": ">=0.214.0 <0.215.0",
144
- "@tangle-network/agent-interface": "^5.2.1",
145
- "@tangle-network/sandbox": ">=0.58.4 <0.61.0"
144
+ "@tangle-network/agent-interface": ">=5.2.1 <5.3.0",
145
+ "@tangle-network/sandbox": ">=0.58.4 <0.60.59"
146
146
  },
147
147
  "dependencies": {
148
148
  "@earendil-works/pi-codemode": "1.0.4",
149
149
  "@tangle-network/agent-core": ">=0.12.0 <0.13.0",
150
150
  "@tangle-network/agent-knowledge": "^22.0.2",
151
151
  "@tangle-network/agent-profile-materialize": ">=0.25.2 <0.26.0",
152
- "@tangle-network/agent-trace-contract": "^2.0.0",
152
+ "@tangle-network/agent-trace-contract": "^2.1.0",
153
153
  "tar-stream": "3.2.1",
154
154
  "zod": "4.6.5"
155
155
  },
@@ -29,13 +29,13 @@ Native tool ids (agent-container `packages/agent-profile-materialize/src/control
29
29
 
30
30
  | Harness | Accepted | Refused |
31
31
  |---|---|---|
32
- | opencode | read, write, edit, apply_patch (or patch), bash, glob, grep, webfetch, websearch, todowrite, skill, question, codesearch; its native subagent switch only as `"task": false` | list, ls, find, lsp, any other name |
33
- | claude-code | Read, Write, Edit, Bash, Glob, Grep, WebFetch, WebSearch, TodoWrite, NotebookEdit, Skill, AskUserQuestion; leave out its native subagent tools | any other name, every `mcp__` name included |
32
+ | opencode | read, write, edit, apply_patch (or patch), bash, glob, grep, webfetch, websearch, todowrite, skill, question, codesearch; the tool key `"task": true` turns native subagents on (`"task": false` turns them off) | list, ls, find, lsp, any other name |
33
+ | claude-code | Read, Write, Edit, Bash, Glob, Grep, WebFetch, WebSearch, TodoWrite, NotebookEdit, Skill, AskUserQuestion; Agent, Task and TaskOutput when the profile wants native subagents | any other name, every `mcp__` name included |
34
34
  | codex | `web_search` (true or false); `web_fetch` only as false | every other key, and any `permissions` entry |
35
35
  | pi | names in Pi's own registry: read, bash, edit, write (glob becomes find, shell becomes bash); a named tool Pi lacks ends the session | names Pi lacks |
36
36
  | any other | no `tools` and no `permissions` | every entry |
37
37
 
38
- A harness's own subagent runs outside Runtime: no journal row, no reservation from the shared budget, no grade.
38
+ A harness's own subagent runs outside Runtime: no journal row, no reservation from the shared budget, no grade. Turn native subagents on when the agent needs internal throughput (split and merge, maker and critic, best of N) and separate Runtime identity, budget and grading are unnecessary; their work counts only through the delivered artifact. Use Runtime spawn (`agent_runtime_coordination_spawn_worker`) when a child needs its own record, budget or check. agent-dev-container maps these tools in `packages/agent-profile-materialize/src/control-maps.ts`.
39
39
 
40
40
  Runtime keys (agent-runtime `src/runtime/supervise/provider-visible-profile.ts`; verbs from `coordinationVerbNames` in `src/mcp/tools/coordination.ts`):
41
41
 
@@ -128,6 +128,7 @@ For continued research, read the installed continuation contract first and choos
128
128
 
129
129
  Write each trap as what the held-back acceptance refuses, never as what the proxy passes: "the outside check does not count a c = 0 instance" is a trap; "the checker passed c = 0 claims" is a recipe. Give the rule, not the incident: the operator owns the stack.
130
130
  Typical traps beyond the gap probe's canaries: wrong-field comparators, tests versus users, a demo versus a customer, a rater versus an expert.
131
+ A profile that imitates a person (an operator, a reviewer, a voice) is not accepted on checks written from its own rules; those measure obedience. The held-back acceptance is the person's own next action on held-out turns, scored against a control arm, a blind judge, and the best predictor that uses no persona at all. Matching the person's voice does not establish matching their judgment.
131
132
  Record each new trap where the next author reads it, in the same change as its fix.
132
133
 
133
134
  ## 7. Set budget and caps