@tangle-network/agent-runtime 0.295.4 → 0.297.2

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 (69) hide show
  1. package/dist/{activation-b7b_lmhE.js → activation-Bsa9KIms.js} +3 -3
  2. package/dist/{activation-b7b_lmhE.js.map → activation-Bsa9KIms.js.map} +1 -1
  3. package/dist/{activation-DZMqUGrJ.d.ts → activation-rMt8OhcX.d.ts} +3 -3
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{bundle-CDR0caM4.js → bundle-C9v5TH_H.js} +2 -2
  7. package/dist/{bundle-CDR0caM4.js.map → bundle-C9v5TH_H.js.map} +1 -1
  8. package/dist/candidate-execution/index.js +5 -5
  9. package/dist/{coordination-driver-IBnJrG35.js → coordination-driver-C3ox4-8J.js} +78 -20
  10. package/dist/coordination-driver-C3ox4-8J.js.map +1 -0
  11. package/dist/{delegate-D3_pGiGW.js → delegate-C4OXzzuI.js} +2 -2
  12. package/dist/{delegate-D3_pGiGW.js.map → delegate-C4OXzzuI.js.map} +1 -1
  13. package/dist/durable.d.ts +2 -2
  14. package/dist/durable.js +3 -3
  15. package/dist/{graph-BbsdhFNv.js → graph-Nr_j33Ko.js} +4 -4
  16. package/dist/{graph-BbsdhFNv.js.map → graph-Nr_j33Ko.js.map} +1 -1
  17. package/dist/{improvement-cycle-C2IuQaRp.js → improvement-cycle-7rd18eW9.js} +6 -6
  18. package/dist/{improvement-cycle-C2IuQaRp.js.map → improvement-cycle-7rd18eW9.js.map} +1 -1
  19. package/dist/{index-D5p4txpC.d.ts → index-CrLf_h23.d.ts} +26 -5
  20. package/dist/index.d.ts +6 -6
  21. package/dist/index.js +9 -9
  22. package/dist/intelligence.d.ts +3 -3
  23. package/dist/intelligence.js +8 -8
  24. package/dist/kernel.d.ts +4 -4
  25. package/dist/kernel.js +9 -9
  26. package/dist/{loop-runner-bin-CIxUa3W_.d.ts → loop-runner-bin-DNAb0fqu.d.ts} +3 -3
  27. package/dist/{loop-runner-bin-DTCYtNxx.js → loop-runner-bin-Dt5Tm0LL.js} +3 -3
  28. package/dist/{loop-runner-bin-DTCYtNxx.js.map → loop-runner-bin-Dt5Tm0LL.js.map} +1 -1
  29. package/dist/loop-runner-bin.d.ts +1 -1
  30. package/dist/loop-runner-bin.js +1 -1
  31. package/dist/mcp/bin.js +3 -3
  32. package/dist/mcp/index.d.ts +6 -6
  33. package/dist/mcp/index.js +4 -4
  34. package/dist/{openai-tools-Dlws03EW.d.ts → openai-tools-CrfETZkV.d.ts} +2 -2
  35. package/dist/{prepare-Dzkj4AGj.js → prepare-CGVNMb1o.js} +3 -3
  36. package/dist/{prepare-Dzkj4AGj.js.map → prepare-CGVNMb1o.js.map} +1 -1
  37. package/dist/{profile-BubsrYhR.js → profile-BetOB4_Q.js} +2 -2
  38. package/dist/{profile-BubsrYhR.js.map → profile-BetOB4_Q.js.map} +1 -1
  39. package/dist/profiles.d.ts +2 -2
  40. package/dist/{protected-model-port-_Daje74V.js → protected-model-port-CuVHkhti.js} +4 -4
  41. package/dist/{protected-model-port-_Daje74V.js.map → protected-model-port-CuVHkhti.js.map} +1 -1
  42. package/dist/{provision-supervisor-DRl8doHG.js → provision-supervisor-DVjTqpF1.js} +3 -3
  43. package/dist/{provision-supervisor-DRl8doHG.js.map → provision-supervisor-DVjTqpF1.js.map} +1 -1
  44. package/dist/{runtime-Bgf9mm__.js → runtime-C-jN8ONc.js} +9 -9
  45. package/dist/{runtime-Bgf9mm__.js.map → runtime-C-jN8ONc.js.map} +1 -1
  46. package/dist/{search-method-D3WdgmuN.js → search-method-CLfmCMeT.js} +3 -3
  47. package/dist/{search-method-D3WdgmuN.js.map → search-method-CLfmCMeT.js.map} +1 -1
  48. package/dist/{server-B3nNSFlK.js → server-Di-qMU3Q.js} +3 -3
  49. package/dist/{server-B3nNSFlK.js.map → server-Di-qMU3Q.js.map} +1 -1
  50. package/dist/{stream-agent-turn-D6lDcAYs.d.ts → stream-agent-turn-LDA8JK7E.d.ts} +5 -178
  51. package/dist/{substrate-VEJrCLxe.d.ts → substrate-Bd4FFbim.d.ts} +2 -2
  52. package/dist/{supervise-D5yxnDzD.js → supervise-Bnqm88tQ.js} +5 -5
  53. package/dist/{supervise-D5yxnDzD.js.map → supervise-Bnqm88tQ.js.map} +1 -1
  54. package/dist/{supervisor-B1jEhBXU.js → supervisor-Rov7xW0j.js} +339 -53
  55. package/dist/supervisor-Rov7xW0j.js.map +1 -0
  56. package/dist/testing.d.ts +2 -2
  57. package/dist/testing.js +14 -14
  58. package/dist/tui/index.d.ts +1 -1
  59. package/dist/tui/index.js +1 -1
  60. package/dist/{types-C2MBdgd_.d.ts → types-CwGpKzG1.d.ts} +285 -9
  61. package/dist/{workspace-streams-D4TMTrJV.js → workspace-streams-D5gHJdTb.js} +78 -60
  62. package/dist/workspace-streams-D5gHJdTb.js.map +1 -0
  63. package/package.json +1 -1
  64. package/skills/profile-authoring/SKILL.md +10 -6
  65. package/skills/profile-authoring/references/research-directors.md +48 -0
  66. package/skills/supervise/SKILL.md +6 -0
  67. package/dist/coordination-driver-IBnJrG35.js.map +0 -1
  68. package/dist/supervisor-B1jEhBXU.js.map +0 -1
  69. package/dist/workspace-streams-D4TMTrJV.js.map +0 -1
@@ -0,0 +1,48 @@
1
+ # Research director authoring
2
+
3
+ Use when creating one or more research directors, revising their profiles, or continuing a program with changed instructions or capabilities. The operator commissions the research and supplies sources, authority, and resources; directors choose and revise questions, methods, specialists, and topology.
4
+
5
+ ## Define the research responsibility
6
+
7
+ Read the actual commission and prior artifacts before composing a profile. State the decision a result could change, the source material, accepted outcome classes, and the unresolved assumptions. A program name or “find novel research” leaves those decisions unspecified.
8
+
9
+ Give each director a reason to exist: a distinct scientific question, method, competing hypothesis, or independent check. Require it to select domain skills and resources from the maintained catalog, explain that selection, and author its children's complete profiles. Reuse a profile unchanged when its responsibilities and capabilities fit; different names alone add no scientific diversity. A specialist's result must name how it changes the shared question.
10
+
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
+
13
+ ## Give analysis a working execution path
14
+
15
+ 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:
16
+
17
+ | Need | Existing owner and path |
18
+ | --- | --- |
19
+ | Analyze a settled child's execution | Eval registry through Runtime `analystsFromRegistry`; explicitly grant the served `list_analysts` and `run_analyst` coordination tools. |
20
+ | Author a new analysis question | `define_analyst`, when the registry was constructed with authoring and an authorized engine resolver. Definitions, model requests, evidence rules, and limits are data retained by Runtime. |
21
+ | Run a native, subscription-backed analysis agent | Runtime `analyzeOnSettle: [{ kind, agent, directive, over?, to? }]` with a complete analyst `AgentProfile`. This uses the existing worker execution path, budget, identity, and finding delivery. |
22
+ | Receive registry analysis automatically | Runtime `analyzeOnSettle` routes naming a configured lens. Select matching workers and the recipient; verify its `finding` events reach the director. |
23
+ | Detect trouble during execution | Runtime `watchWorkers` with a backend that supplies live traces; directors inspect findings and choose interventions. `run_analyst` accepts settled workers only. |
24
+ | Reassess retained runs | Runtime observation/corpus integration with Eval's registry, using the same retained evidence and analyst definitions. |
25
+
26
+ Choose the analysis route the configured provider can execute. A native analyst profile uses worker execution; registry tools require an actual configured investigation engine. A provider chat client that rejects tool-bearing requests cannot serve a recursive tool-using analyst merely by selecting a model. Keep that capability gap explicit; use the native agent route when appropriate.
27
+
28
+ Use the actual coordination names exposed by the chosen harness when authoring grants. Inspect the analyst menu: generic failure and efficiency summaries do not assess the commission's scientific claims. Select or author analyses for the particular uncertainty, with access to original artifacts and sources where the question requires them. A trace-only reviewer cannot establish physical validity or field novelty from a researcher's assertion.
29
+
30
+ Choose the existing Eval investigation engine and lower-level driver appropriate to the evidence, including recursive analysis where supported. Record its model, definition version, tools, budget, evidence scope, and findings. Missing trace coverage, inaccessible artifacts, a failed analyst, and an unreviewed claim remain different outcomes. A finding is advice with cited evidence; independent acceptance remains outside the producing lineage.
31
+
32
+ ## Check the profile before scaling
33
+
34
+ Compare authored instructions, effective profile, materialized resources, and served tools for the root and a representative child. Retain component sizes and exact versions from existing profile/trace summaries. Identify measured versus estimated tokens and unavailable harness context. Confirm the child received the full authoring skill and this reference when it can create research directors.
35
+
36
+ Inspect one real analysis result and the director's response during the first authorized research work. It must cite the evidence and either change the work or explain why the finding does not justify a change. Delivery of a finding alone proves neither consumption nor improvement. Preserve blocked capabilities in the run record and fix their owning package; the operator's manual critique must not be credited to the director.
37
+
38
+ ## Keep research and execution assessable
39
+
40
+ The director maintains a concise research account in the existing knowledge/artifact store throughout execution: the question, strongest supported answer, assumptions, reproducible evidence, prior art, disagreements, and next valuable experiment. It links individual claims to exact sources and independent checks. It separately explains execution choices, failure causes, wasted work, and proposed profile changes. These are research products; file counts and completed tasks do not substitute for them.
41
+
42
+ Read measured counters from the existing trace projection. For judgments such as instruction compliance, skill application, reward hacking, or wasted effort, name the analyst, rubric, cited examples, reviewed population, exclusions, and uncertainty. Use calibrated judgments for acceptance; leave unreviewed populations unassessed. Distinguish repeated attempts, continuations, and independent trials.
43
+
44
+ For every consequential endogenous or operator change, preserve who acted, why, the triggering evidence, before/after identities, and the affected execution or fork through existing records. Link knowledge revisions and profile changes to those records; record external deployment changes separately from authored research changes. Keep original evidence immutable. A missing event requires a capture fix, not a reconstructed claim of complete provenance.
45
+
46
+ ## Completion evidence
47
+
48
+ A configured skill proves instructions were supplied. A captured tool call proves an action occurred. A reviewed artifact supports a claim. An improvement claim additionally requires the declared comparison. Report each level separately, with unknown outside acceptance unchanged.
@@ -23,6 +23,7 @@ The authored profile must explain its own ability to delegate; Runtime does not
23
23
 
24
24
  Before creating or changing any profile, follow [profile authoring](../profile-authoring/SKILL.md): the audience and its acceptance test, the probed proxy gap, the referee, the honest null, and the profile contract.
25
25
  The task names the concrete artifact and completion check; the profile names the method and granted capabilities.
26
+ A research director also carries the [research authoring reference](../profile-authoring/references/research-directors.md); mount it with the skill and preserve its digest.
26
27
 
27
28
  ## Direct the work
28
29
 
@@ -31,10 +32,13 @@ The task names the concrete artifact and completion check; the profile names the
31
32
  Fill available capacity while distinct useful assignments remain.
32
33
  3. Pull settlements, findings, and questions with `await_event`.
33
34
  A bounded wait returning does not establish failure.
35
+ Use granted analysts on settled workers and inspect live detector findings when the configured backend supports them.
36
+ Record which finding changed an assignment, profile, claim, or check; give an evidence-backed reason for rejecting it.
34
37
  4. Inspect quiet or stalled workers with `observe_agent` before steering them.
35
38
  Correct an observed wrong path, missing requirement, or new evidence.
36
39
  5. Check each returned artifact before using it.
37
40
  Preserve failed attempts and change the profile or assignment when evidence supports another attempt.
41
+ Retain the actor, reason, cited evidence, prior profile digest, and successor identity through the existing change and execution records.
38
42
  6. After recovery, reconcile the journal, roster, settlements, questions, findings, and spend before creating replacements.
39
43
 
40
44
  Use `continuity: 'resume'` to continue the most recent settled worker with that profile name.
@@ -46,6 +50,8 @@ A quiet worker alone is not a reason to invent a deadline.
46
50
  ## Accept delivery
47
51
 
48
52
  Inspect the artifact and its independent completion result.
53
+ For research, keep a readable account current: the question, what the evidence establishes, limitations, disputed claims, and the next consequential check.
54
+ Link exact artifacts and separate the scientific result from execution critique and external acceptance.
49
55
  Preserve profile identities, assignment keys, parent-child links, continuations, costs, failures, and missing accounting.
50
56
  Worker prose cannot approve its own result.
51
57
  Use `submit_result` only when the attached check can validate this agent's artifact.