@tangle-network/agent-runtime 0.297.6 → 0.298.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/{activation-CDoUN2CT.js → activation-CYHA4rRC.js} +2 -2
  2. package/dist/{activation-CDoUN2CT.js.map → activation-CYHA4rRC.js.map} +1 -1
  3. package/dist/agent.d.ts +1 -1
  4. package/dist/agent.js +2 -2
  5. package/dist/{coordination-driver-CeuM6euv.js → coordination-driver-zPyluAvO.js} +124 -19
  6. package/dist/coordination-driver-zPyluAvO.js.map +1 -0
  7. package/dist/{delegate-DII77j2f.js → delegate-BQBHhLst.js} +2 -2
  8. package/dist/{delegate-DII77j2f.js.map → delegate-BQBHhLst.js.map} +1 -1
  9. package/dist/durable.d.ts +1 -1
  10. package/dist/durable.js +2 -2
  11. package/dist/{graph-C_krm_xZ.js → graph-B5GC0B7N.js} +4 -4
  12. package/dist/{graph-C_krm_xZ.js.map → graph-B5GC0B7N.js.map} +1 -1
  13. package/dist/{improvement-cycle-WcuRt1tq.js → improvement-cycle-DB1d3Hay.js} +3 -3
  14. package/dist/{improvement-cycle-WcuRt1tq.js.map → improvement-cycle-DB1d3Hay.js.map} +1 -1
  15. package/dist/{index-CK0uaklJ.d.ts → index-DNc4puC0.d.ts} +27 -1
  16. package/dist/index.d.ts +2 -2
  17. package/dist/index.js +7 -7
  18. package/dist/intelligence.js +4 -4
  19. package/dist/kernel.d.ts +1 -1
  20. package/dist/kernel.js +8 -8
  21. package/dist/{loop-runner-bin-DdKZe6Tr.d.ts → loop-runner-bin-BYv3D9Uu.d.ts} +2 -2
  22. package/dist/{loop-runner-bin-QFNwSTIP.js → loop-runner-bin-DMMgy4n7.js} +3 -3
  23. package/dist/{loop-runner-bin-QFNwSTIP.js.map → loop-runner-bin-DMMgy4n7.js.map} +1 -1
  24. package/dist/loop-runner-bin.d.ts +1 -1
  25. package/dist/loop-runner-bin.js +1 -1
  26. package/dist/mcp/bin.js +3 -3
  27. package/dist/mcp/index.d.ts +1 -1
  28. package/dist/mcp/index.js +4 -4
  29. package/dist/{provision-supervisor-B5V2xXrm.js → provision-supervisor-SoJlaXXm.js} +3 -3
  30. package/dist/{provision-supervisor-B5V2xXrm.js.map → provision-supervisor-SoJlaXXm.js.map} +1 -1
  31. package/dist/{runtime-DNjgEVSC.js → runtime-CXz6E34n.js} +8 -8
  32. package/dist/{runtime-DNjgEVSC.js.map → runtime-CXz6E34n.js.map} +1 -1
  33. package/dist/{search-method-D2CPPGVX.js → search-method-D3KpsvEs.js} +2 -2
  34. package/dist/{search-method-D2CPPGVX.js.map → search-method-D3KpsvEs.js.map} +1 -1
  35. package/dist/{server-ff1ZlYVW.js → server-DFWQoBYk.js} +3 -3
  36. package/dist/{server-ff1ZlYVW.js.map → server-DFWQoBYk.js.map} +1 -1
  37. package/dist/{supervise-CPqRWClX.js → supervise-D-H4-BbE.js} +40 -8
  38. package/dist/supervise-D-H4-BbE.js.map +1 -0
  39. package/dist/{supervisor-Kn3lYWds.js → supervisor-Iea8J235.js} +22 -6
  40. package/dist/supervisor-Iea8J235.js.map +1 -0
  41. package/dist/testing.d.ts +1 -1
  42. package/dist/testing.js +12 -12
  43. package/dist/tui/index.d.ts +1 -1
  44. package/dist/tui/index.js +1 -1
  45. package/package.json +4 -4
  46. package/skills/profile-authoring/SKILL.md +1 -0
  47. package/skills/profile-authoring/references/research-directors.md +57 -0
  48. package/dist/coordination-driver-CeuM6euv.js.map +0 -1
  49. package/dist/supervise-CPqRWClX.js.map +0 -1
  50. package/dist/supervisor-Kn3lYWds.js.map +0 -1
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Ic as SuperviseTestOptions, Rc as superviseWithTestBrain, Tl as supervisorAgentWithTestBrain, Tn as driverAgent, Zt as RunGraphTestOptions, gl as SupervisorAgentTestDeps, tn as runGraphWithTestBrain, wn as DriverAgentOptions } from "./index-CK0uaklJ.js";
1
+ import { Ic as SuperviseTestOptions, Rc as superviseWithTestBrain, Tl as supervisorAgentWithTestBrain, Tn as driverAgent, Zt as RunGraphTestOptions, gl as SupervisorAgentTestDeps, tn as runGraphWithTestBrain, wn as DriverAgentOptions } from "./index-DNc4puC0.js";
2
2
  import { Ln as ToolLoopCallContext, Rn as ToolLoopChat } from "./stream-agent-turn-D-JUSWnD.js";
3
3
  import { AgentImprovementProposal, AgentProfile, AgentProfileImprovementMeasuredComparison, SandboxSizePreset } from "@tangle-network/agent-interface";
4
4
  //#region src/testing/index.d.ts
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-WcuRt1tq.js";
2
+ import { f as verifyAgentImprovementProposal } from "./improvement-cycle-DB1d3Hay.js";
3
3
  import { i as applyExactAgentProfileDiff, p as parseExactAgentProfile } from "./profile-BetOB4_Q.js";
4
- import { r as driverAgent } from "./coordination-driver-CeuM6euv.js";
5
- import { a as superviseWithTestBrain, h as supervisorAgentWithTestBrain } from "./supervise-CPqRWClX.js";
6
- import { i as runGraphWithTestBrain } from "./graph-C_krm_xZ.js";
4
+ import { r as driverAgent } from "./coordination-driver-zPyluAvO.js";
5
+ import { a as superviseWithTestBrain, h as supervisorAgentWithTestBrain } from "./supervise-D-H4-BbE.js";
6
+ import { i as runGraphWithTestBrain } from "./graph-B5GC0B7N.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:55c0cb52286b185fc3f6dc9a3eec822a93364f9449d0830f7542219933c11796",
11
+ digest: "sha256:05dcc5e0c4ef163ebe705ccd9ddf612dd8da0a8af101e7a51b31832a9f0864f7",
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.297.6"
4582
+ "runtimeVersion": "0.298.1"
4583
4583
  },
4584
4584
  "objectives": [
4585
4585
  {
@@ -4690,8 +4690,8 @@ var agent_improvement_proposal_default = {
4690
4690
  "baselineContentHash": "sha256:5c21ee53e513fc604cb09754e21c392b24a424da0ef37dbf8f1ee4a8a0b08f09",
4691
4691
  "candidateContentHash": "sha256:60fcbb1c728194bd51d7d19cb732d1c3f1881dce7e0a6266b41c8b98cfd65693",
4692
4692
  "kind": "agent-eval-loop",
4693
- "recordDigest": "sha256:afc11bcce2753f0559422428128205e11d5c5613b13068fb8a2f3ed93559fa7d",
4694
- "runId": "agent-runtime-0.297.6-proposal-fixture",
4693
+ "recordDigest": "sha256:9acccaa74c6c64d7d447935d71b34b0b678e4049cd614168ea4772b63a419111",
4694
+ "runId": "agent-runtime-0.298.1-proposal-fixture",
4695
4695
  "schema": "agent-candidate-experiment"
4696
4696
  }
4697
4697
  },
@@ -4714,13 +4714,13 @@ var agent_improvement_proposal_default = {
4714
4714
  }],
4715
4715
  kind: "agent-improvement-proposal",
4716
4716
  proposedAt: "2026-07-10T01:00:00.000Z",
4717
- runId: "agent-runtime-0.297.6-proposal-fixture"
4717
+ runId: "agent-runtime-0.298.1-proposal-fixture"
4718
4718
  };
4719
4719
  //#endregion
4720
4720
  //#region src/testing/fixtures/agent-profile-improvement-proposal.json
4721
4721
  var agent_profile_improvement_proposal_default = {
4722
4722
  changedSurfaces: ["prompt", "skills"],
4723
- digest: "sha256:5000016d40be79281bdfefb7a9c482f56bf3f65dc3a7698dd47e207c31ebefcc",
4723
+ digest: "sha256:dfa311c17af501696aa5fee015b328a99dc680216860b37ee3d92d7875472143",
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.297.6"
6357
+ "runtimeVersion": "0.298.1"
6358
6358
  },
6359
6359
  "objectives": [
6360
6360
  {
@@ -6465,7 +6465,7 @@ var agent_profile_improvement_proposal_default = {
6465
6465
  "baselineContentHash": "sha256:21c495a37c418c10bde64fbaa188beddeed31f1f051ea60a6a6582a9ee0db704",
6466
6466
  "candidateContentHash": "sha256:103f77bc8481601eef1ad5fe6ba84a40dffabc3a44f421f8c8559121edab84e9",
6467
6467
  "kind": "agent-eval-loop",
6468
- "recordDigest": "sha256:435f9c0ef53bc35dcc56df27d898f07907e991fd6a22435b346e8e7498707f96",
6468
+ "recordDigest": "sha256:e381e680ec81ab00518120991de84bc815711b91eee1af618e72db88f9a99ccb",
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-CK0uaklJ.js";
1
+ import { Ct as ProvisionSupervisorConnection, Dt as provisionSupervisor, Et as SupervisorCleanupReceipt, Tt as ProvisionedSupervisor, wt as ProvisionSupervisorRequest } from "../index-DNc4puC0.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-B5V2xXrm.js";
1
+ import { t as provisionSupervisor } from "../provision-supervisor-SoJlaXXm.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.297.6",
3
+ "version": "0.298.1",
4
4
  "description": "Shared task-lifecycle skeleton for agents: a recursive loop kernel for chat turns, one-shot tasks, and multi-attempt loops, with trace capture and eval-gated self-improvement. Domain behavior lives in adapters; scoring and ship-gates in @tangle-network/agent-eval.",
5
5
  "homepage": "https://github.com/tangle-network/agent-runtime#readme",
6
6
  "repository": {
@@ -104,7 +104,7 @@
104
104
  "@biomejs/biome": "^2.5.11",
105
105
  "@modelcontextprotocol/sdk": "1.30.0",
106
106
  "@tangle-network/agent-eval": "0.205.1",
107
- "@tangle-network/agent-interface": "^2.17.0",
107
+ "@tangle-network/agent-interface": "^2.19.0",
108
108
  "@tangle-network/agent-provider-tangle": "2.0.0",
109
109
  "@tangle-network/sandbox": "^0.60.0",
110
110
  "@types/node": "26.4.0",
@@ -128,12 +128,12 @@
128
128
  "license": "MIT",
129
129
  "peerDependencies": {
130
130
  "@tangle-network/agent-eval": ">=0.203.0 <0.206.0",
131
- "@tangle-network/agent-interface": "^2.17.0",
131
+ "@tangle-network/agent-interface": "^2.19.0",
132
132
  "@tangle-network/sandbox": ">=0.58.4 <0.61.0"
133
133
  },
134
134
  "dependencies": {
135
135
  "@tangle-network/agent-core": ">=0.10.2 <0.11.0",
136
- "@tangle-network/agent-knowledge": "^19.0.1",
136
+ "@tangle-network/agent-knowledge": "^19.1.0",
137
137
  "@tangle-network/agent-profile-materialize": ">=0.20.1 <0.21.0",
138
138
  "@tangle-network/agent-trace-contract": "^2.0.0",
139
139
  "tar-stream": "3.2.1",
@@ -188,6 +188,7 @@ Hand a file by path in `resources.files`, and compare the returned sha256 with y
188
188
 
189
189
  The outer `path` is the child's mount; the nested `resource.path` is a UTF-8 source file in your workspace, under 4 MiB.
190
190
  Every profile that can spawn carries this complete skill as an immutable inline `resources.skills` entry, with `resources.failOnError: true`.
191
+ For research work, carry the complete research-director reference and the mounted capability inventory as well; it gives children the lookup and source selection procedure.
191
192
  Copy the mounted bytes; never retype them.
192
193
 
193
194
  ## Checklist
@@ -10,6 +10,63 @@ Give each director a reason to exist: a distinct scientific question, method, co
10
10
 
11
11
  Put standing responsibility in the profile and the current question in the assignment. A continuation carries established results, failed routes, unresolved disagreements, and the next decision. Compare predecessor and successor profiles explicitly; preserve the earlier registration and use the execution owner's existing continuation or fork contract.
12
12
 
13
+ ## Find, retain, and select capabilities
14
+
15
+ Resolve installed skill symlinks to their owning source before pinning a capability.
16
+ Use the maintained discovery surfaces: `skills <topic>` for installed skills,
17
+ `drewstone/dotfiles` under `claude/skills` for public skills, the authorized
18
+ `tangle-network/skills-internal` marketplace for private skills, and each package's
19
+ current skill or API catalog. Runtime owns this profile-authoring skill.
20
+ A catalog entry names a candidate; read its complete instructions and requirements
21
+ before selecting it. A research proof, checker, dataset, or method can also be a
22
+ capability source. Preserve its original authorship and limits.
23
+
24
+ For Disco research, look up the retained program and its sources through the
25
+ existing Knowledge intake:
26
+
27
+ ```bash
28
+ skills research
29
+ skills calibrate
30
+ disco research list
31
+ disco research show program:math-theory
32
+ # Use an exact source ID returned by the program lookup:
33
+ disco research show source:the-retained-source-id --content
34
+ ```
35
+
36
+ Use the operator's existing `--store` and `--db` pair. Original source content must
37
+ be present in the private projection for `--content`; the operator can rebuild it
38
+ with `disco research refresh --content`. A missing projection, unavailable CLI,
39
+ access refusal, and an absent source are separate gaps. In a sandbox without these
40
+ CLIs, read the mounted catalog snapshot and selected full source files. The snapshot
41
+ must name its owner, source revision, lookup command, capture time, and coverage;
42
+ it is navigation evidence, not a replacement registry.
43
+
44
+ Retain newly consulted material as `kind: source` records through
45
+ `disco research record`, linked to the existing program. Record the repository or
46
+ artifact URI, immutable revision, SHA-256 and byte count, complete source output,
47
+ producer, prerequisites, allowed authority, and known evidence limits. Use the
48
+ existing `original.metadata` for these source observations. Keep selection separate:
49
+ a prepared registration is an `idea` record linked to the source IDs, with the
50
+ reason each source fits this question and the capabilities that remain unavailable.
51
+ Use the existing intake owner and configured write authority; prepare a batch when
52
+ write authority is absent. Private material stays in the authorized private archive.
53
+
54
+ Mount the selected full bytes through `AgentProfile.resources` and include a small
55
+ inventory pointing to the retained source IDs, hashes, and available resource paths.
56
+ Every spawn-capable node receives the complete current profile-authoring skill and
57
+ this research-director reference with `resources.failOnError: true`. Give it the
58
+ inventory and authority needed to select domain resources for its own children.
59
+ A child copies those immutable authoring resources when it can spawn, and selects
60
+ its other resources from the question and actual tool access. Names in an inventory
61
+ grant no tool, credential, installation permission, or extra budget.
62
+
63
+ For a continuation, identify the latest actual execution and its current operator
64
+ before preparing a successor. Preserve useful predecessor artifacts with their
65
+ qualifications. A prepared successor remains gated on reconciliation of any active
66
+ predecessor; new evidence that changes the assignment requires a new immutable
67
+ registration. Record which source set was available at preparation and which newer
68
+ output is still missing. Keep that operator gate outside the research handoff.
69
+
13
70
  ## Give analysis a working execution path
14
71
 
15
72
  A request to reflect grants no tool, trace access, or model budget. Before launch, inspect the installed interfaces and connect the analysis required by the commission: