@anyswarm/core 0.5.2 → 0.6.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 (210) hide show
  1. package/AGENTS.md +19 -4
  2. package/README.md +68 -61
  3. package/dist/examples/README.md +134 -84
  4. package/dist/examples/autoresearch/README.md +106 -21
  5. package/dist/examples/autoresearch/REQUIREMENTS.zh.md +14 -6
  6. package/dist/examples/autoresearch/config.d.ts +48 -5
  7. package/dist/examples/autoresearch/config.js +57 -23
  8. package/dist/examples/autoresearch/demo.d.ts +12 -4
  9. package/dist/examples/autoresearch/demo.js +65 -22
  10. package/dist/examples/autoresearch/frontiercs2-config.d.ts +2 -2
  11. package/dist/examples/autoresearch/frontiercs2-config.js +13 -2
  12. package/dist/examples/autoresearch/frontiercs2.d.ts +18 -1
  13. package/dist/examples/autoresearch/frontiercs2.js +71 -14
  14. package/dist/examples/autoresearch/prepare-demo.js +34 -3
  15. package/dist/examples/autoresearch/prepare.d.ts +105 -53
  16. package/dist/examples/autoresearch/prepare.js +126 -57
  17. package/dist/examples/autoresearch/project.d.ts +6 -1
  18. package/dist/examples/autoresearch/project.js +130 -26
  19. package/dist/examples/autoresearch/research-service.d.ts +16 -1
  20. package/dist/examples/autoresearch/research-service.js +84 -44
  21. package/dist/examples/code/config.d.ts +1 -0
  22. package/dist/examples/first-harness/AGENTS.md +25 -0
  23. package/dist/examples/first-harness/README.md +136 -0
  24. package/dist/examples/first-harness/config.d.ts +9 -8
  25. package/dist/examples/first-harness/config.js +33 -26
  26. package/dist/examples/first-harness/eject.json +14 -0
  27. package/dist/examples/first-harness/handoff.js +3 -3
  28. package/dist/examples/first-harness/harness.d.ts +14 -18
  29. package/dist/examples/first-harness/harness.js +102 -77
  30. package/dist/examples/first-harness/input/README.md +7 -0
  31. package/dist/examples/first-harness/session.js +2 -1
  32. package/dist/examples/first-harness/tsconfig.json +2 -1
  33. package/dist/examples/harness-session/README.md +1 -1
  34. package/dist/examples/lead-worker/README.md +1 -1
  35. package/dist/examples/lead-worker/project-config.d.ts +1 -0
  36. package/dist/examples/messages/README.md +2 -2
  37. package/dist/examples/notes/README.md +2 -2
  38. package/dist/examples/notes/config.d.ts +1 -0
  39. package/dist/examples/parallel-swarm/AGENTS.md +32 -0
  40. package/dist/examples/parallel-swarm/README.md +136 -0
  41. package/dist/examples/parallel-swarm/board-service.js +25 -8
  42. package/dist/examples/parallel-swarm/board.d.ts +31 -1
  43. package/dist/examples/parallel-swarm/board.js +98 -13
  44. package/dist/examples/parallel-swarm/config.d.ts +11 -0
  45. package/dist/examples/parallel-swarm/config.js +39 -0
  46. package/dist/examples/parallel-swarm/eject.json +5 -0
  47. package/dist/examples/parallel-swarm/harness.d.ts +26 -20
  48. package/dist/examples/parallel-swarm/harness.js +77 -76
  49. package/dist/examples/parallel-swarm/report.d.ts +12 -0
  50. package/dist/examples/parallel-swarm/report.js +30 -0
  51. package/dist/examples/peermesh/README.md +1 -1
  52. package/dist/examples/peermesh/project-config.d.ts +1 -0
  53. package/dist/examples/services/agent-control/README.md +1 -1
  54. package/dist/examples/services/mathlib-search/README.md +1 -1
  55. package/dist/examples/services/mcp-managed/README.md +1 -1
  56. package/dist/examples/services/persistent-board/README.md +1 -1
  57. package/dist/examples/subagents/AGENTS.md +35 -0
  58. package/dist/examples/subagents/README.md +129 -93
  59. package/dist/examples/subagents/config.d.ts +2 -10
  60. package/dist/examples/subagents/config.js +8 -15
  61. package/dist/examples/subagents/eject.json +17 -0
  62. package/dist/examples/subagents/handoff-config.d.ts +41 -0
  63. package/dist/examples/subagents/handoff-config.js +13 -0
  64. package/dist/examples/subagents/model.d.ts +3 -0
  65. package/dist/examples/subagents/model.js +19 -0
  66. package/dist/examples/substrate/README.md +12 -6
  67. package/dist/examples/substrate/config.d.ts +1 -0
  68. package/dist/examples/substrate/project-config.d.ts +1 -0
  69. package/dist/examples/taskpool/README.md +1 -1
  70. package/dist/examples/taskpool/config.d.ts +1 -0
  71. package/dist/examples/taskpool/deploy/service-hosts/service-authority-snapshot.d.ts +4 -4
  72. package/dist/scripts/anyswarm-progress.js +36 -5
  73. package/dist/scripts/build-provenance.json +1 -1
  74. package/dist/scripts/generate-architecture-coverage.js +1 -1
  75. package/dist/scripts/generate-architecture-prompts.js +18 -10
  76. package/dist/scripts/local-environment.d.ts +3 -3
  77. package/dist/scripts/local-environment.js +6 -1
  78. package/dist/scripts/local-setup.js +25 -18
  79. package/dist/scripts/pack-release.js +27 -3
  80. package/dist/src/core/index.js +1 -1
  81. package/dist/src/core/sandbox/opensandbox-backend.js +10 -4
  82. package/dist/src/core/sandbox/sandbox-connection.d.ts +9 -2
  83. package/dist/src/core/sandbox/sandbox-connection.js +22 -7
  84. package/dist/src/harness/project-harness.js +3 -2
  85. package/dist/src/harness/project-rpc-client.js +19 -0
  86. package/dist/src/harness/typescript-loader.d.ts +2 -0
  87. package/dist/src/harness/typescript-loader.js +26 -8
  88. package/dist/src/trace-viewer/command.mjs +6 -3
  89. package/dist/src/trace-viewer/public/app.js +239 -59
  90. package/dist/src/trace-viewer/public/index.html +5 -0
  91. package/dist/src/trace-viewer/public/style.css +22 -0
  92. package/dist/src/trace-viewer/reader.mjs +242 -26
  93. package/dist/src/trace-viewer/run-root.d.mts +1 -0
  94. package/dist/src/trace-viewer/run-root.mjs +7 -0
  95. package/dist/src/trace-viewer/server.mjs +3 -1
  96. package/docs/INDEX.md +9 -8
  97. package/docs/architecture/06-observability-experiments.md +21 -7
  98. package/docs/architecture/07-run-configuration.md +97 -12
  99. package/docs/architecture/08-prompts.md +21 -2
  100. package/docs/architecture/10-service-api-reference.md +12 -5
  101. package/docs/architecture/12-code-coverage.md +129 -86
  102. package/docs/architecture/15-core-runtime.md +1 -1
  103. package/docs/architecture/16-pi-opensandbox-backend.md +2 -0
  104. package/docs/architecture/17-harness-reporting.md +78 -0
  105. package/docs/architecture/22-website.md +53 -18
  106. package/docs/architecture/23-project-harness.md +63 -16
  107. package/docs/architecture/28-autoresearch.md +16 -22
  108. package/docs/architecture/prompts/11-first-sdk-harness.md +9 -9
  109. package/docs/architecture/prompts/16-parallel-swarm.md +46 -13
  110. package/docs/architecture/prompts/22-autoresearch.md +9 -2
  111. package/docs/architecture/prompts/source-manifest.json +78 -54
  112. package/docs/architecture/source-map.json +396 -36
  113. package/docs/designs/core-harness/06-project-harness.md +1 -1
  114. package/docs/en/autoresearch.md +41 -0
  115. package/docs/en/blog/100b-tokens.md +157 -0
  116. package/docs/en/build-your-harness.md +47 -22
  117. package/docs/en/changelog.md +22 -1
  118. package/docs/en/first-harness.md +40 -32
  119. package/docs/en/harnesses/index.md +23 -23
  120. package/docs/en/harnesses/subagents.md +8 -29
  121. package/docs/en/latest.md +26 -5
  122. package/docs/en/overview.md +22 -22
  123. package/docs/en/quickstart.md +55 -21
  124. package/docs/en/reference/api.md +1 -1
  125. package/docs/en/trace-viewer.md +32 -12
  126. package/docs/operations/trace-viewer.md +25 -10
  127. package/docs/workflows/development.md +160 -120
  128. package/docs/workflows/release-and-docs-versioning.md +207 -55
  129. package/docs/workflows/release-cli-acceptance.md +124 -47
  130. package/docs/zh/autoresearch.md +41 -0
  131. package/docs/zh/blog/100b-tokens.md +102 -0
  132. package/docs/zh/build-your-harness.md +48 -23
  133. package/docs/zh/changelog.md +22 -1
  134. package/docs/zh/first-harness.md +43 -35
  135. package/docs/zh/harnesses/index.md +23 -23
  136. package/docs/zh/harnesses/subagents.md +8 -29
  137. package/docs/zh/latest.md +26 -5
  138. package/docs/zh/overview.md +23 -23
  139. package/docs/zh/quickstart.md +51 -21
  140. package/docs/zh/reference/api.md +1 -1
  141. package/docs/zh/trace-viewer.md +32 -12
  142. package/examples/README.md +134 -84
  143. package/examples/autoresearch/README.md +106 -21
  144. package/examples/autoresearch/REQUIREMENTS.zh.md +14 -6
  145. package/examples/autoresearch/config.ts +64 -25
  146. package/examples/autoresearch/demo.ts +75 -22
  147. package/examples/autoresearch/frontiercs2-config.ts +13 -2
  148. package/examples/autoresearch/frontiercs2.ts +64 -11
  149. package/examples/autoresearch/prepare-demo.ts +32 -3
  150. package/examples/autoresearch/prepare.ts +134 -60
  151. package/examples/autoresearch/project.ts +119 -26
  152. package/examples/autoresearch/research-service.ts +91 -41
  153. package/examples/first-harness/AGENTS.md +25 -0
  154. package/examples/first-harness/README.md +136 -0
  155. package/examples/first-harness/config.ts +41 -27
  156. package/examples/first-harness/eject.json +14 -0
  157. package/examples/first-harness/handoff.ts +3 -3
  158. package/examples/first-harness/harness.ts +104 -72
  159. package/examples/first-harness/input/README.md +7 -0
  160. package/examples/first-harness/session.ts +2 -1
  161. package/examples/first-harness/tsconfig.json +2 -1
  162. package/examples/harness-session/README.md +1 -1
  163. package/examples/lead-worker/README.md +1 -1
  164. package/examples/messages/README.md +2 -2
  165. package/examples/notes/README.md +2 -2
  166. package/examples/parallel-swarm/AGENTS.md +32 -0
  167. package/examples/parallel-swarm/README.md +136 -0
  168. package/examples/parallel-swarm/board-service.ts +28 -9
  169. package/examples/parallel-swarm/board.ts +107 -13
  170. package/examples/parallel-swarm/config.ts +47 -0
  171. package/examples/parallel-swarm/eject.json +5 -0
  172. package/examples/parallel-swarm/harness.ts +83 -71
  173. package/examples/parallel-swarm/report.ts +33 -0
  174. package/examples/peermesh/README.md +1 -1
  175. package/examples/services/agent-control/README.md +1 -1
  176. package/examples/services/mathlib-search/README.md +1 -1
  177. package/examples/services/mcp-managed/README.md +1 -1
  178. package/examples/services/persistent-board/README.md +1 -1
  179. package/examples/subagents/AGENTS.md +35 -0
  180. package/examples/subagents/README.md +129 -93
  181. package/examples/subagents/config.ts +8 -15
  182. package/examples/subagents/eject.json +17 -0
  183. package/examples/subagents/handoff-config.ts +14 -0
  184. package/examples/subagents/model.ts +20 -0
  185. package/examples/substrate/README.md +12 -6
  186. package/examples/taskpool/README.md +1 -1
  187. package/npm-shrinkwrap.development.json +9 -2
  188. package/npm-shrinkwrap.json +9 -2
  189. package/package.development.json +2 -1
  190. package/package.json +2 -1
  191. package/scripts/anyswarm-progress.ts +36 -6
  192. package/scripts/generate-architecture-coverage.ts +1 -1
  193. package/scripts/generate-architecture-prompts.ts +21 -10
  194. package/scripts/local-environment.ts +8 -1
  195. package/scripts/local-setup.ts +22 -17
  196. package/scripts/pack-release.ts +24 -3
  197. package/src/core/index.ts +1 -1
  198. package/src/core/sandbox/opensandbox-backend.ts +10 -4
  199. package/src/core/sandbox/sandbox-connection.ts +22 -7
  200. package/src/harness/project-harness.ts +3 -2
  201. package/src/harness/project-rpc-client.ts +23 -0
  202. package/src/harness/typescript-loader.ts +28 -8
  203. package/src/trace-viewer/command.mjs +6 -3
  204. package/src/trace-viewer/public/app.js +239 -59
  205. package/src/trace-viewer/public/index.html +5 -0
  206. package/src/trace-viewer/public/style.css +22 -0
  207. package/src/trace-viewer/reader.mjs +242 -26
  208. package/src/trace-viewer/run-root.d.mts +1 -0
  209. package/src/trace-viewer/run-root.mjs +7 -0
  210. package/src/trace-viewer/server.mjs +3 -1
@@ -4,19 +4,19 @@
4
4
 
5
5
  The Harness supplies the fresh reference in the Publisher FileTree. This Profile can only publish a handoff.
6
6
 
7
- Body SHA-256: `13a34f145feb381c6fd3f6f08be0a4fbacdd0c5f91a50f94e9561d88d5c878f6`
7
+ Body SHA-256: `7e4b430eac1bb389a6ab2fb7db25b8b10eeb0733c42398ca1dbd7541467026b6`
8
8
 
9
9
  ````text
10
- Read release-data.txt. Publish its reference and one short question asking the user for a release channel. Run swarm service invoke handoff publish --help for arguments. Use the workspace for reading files.
10
+ Read release-data.txt. Publish its reference and one short question asking for a release channel. The Harness supplies the preset channel or asks its explicit question client. Run swarm service invoke handoff publish --help for arguments. Use the workspace for reading files.
11
11
  ````
12
12
  ## Writer Profile
13
13
 
14
14
  The Writer receives the initial project FileTree and can take the handoff. The reference itself reaches the Writer through the Service.
15
15
 
16
- Body SHA-256: `3a0542d4cd34195627be5c8452929e2c379ceaba4be7bb1b689bb7c3d9d508ed`
16
+ Body SHA-256: `44b23cc7d4249314026240b0658534f9a70bf25754b4aef6790b7ca5d9d65fe0`
17
17
 
18
18
  ````text
19
- Run swarm service invoke handoff take using the exact Bash command supplied in your task. Use the bash tool in your writable workspace. The command reads the reference from the Service and writes delivery.txt with two newline-terminated lines.
19
+ Run swarm service invoke handoff take using the exact shell command supplied in your task. Use your command execution tool in the writable workspace. The command reads the reference from the Service and writes delivery.txt with two newline-terminated lines.
20
20
  ````
21
21
  ## Publisher follow-up
22
22
 
@@ -31,10 +31,10 @@ Body SHA-256: `c9cb6fe483bcc179012d7c4686fd64edab618684813b4107e0d93423942ac400`
31
31
 
32
32
  The Harness interpolates channel after validating the reply from the current Session question or the configured noninteractive channel. runInput sends it to the spawned Writer.
33
33
 
34
- Body SHA-256: `35164d4ba8c2ae6c773e9008eee6fb1ab3c1ad7df93714b595df8f477756746c`
34
+ Body SHA-256: `452e1273e11f255c9fc48e58094cdd7c36983bd878c136d66dca74f5a7352a60`
35
35
 
36
36
  ````text
37
- The user chose channel ${channel}. Run the following exact command with the bash tool in your workspace:
37
+ The user chose channel ${channel}. Run the following exact command with your command execution tool in your workspace:
38
38
  swarm service invoke handoff take --request-id take-release | node -e 'const { reference } = JSON.parse(require("node:fs").readFileSync(0, "utf8")).result; console.log("reference=" + reference); console.log("channel=${channel}");' > delivery.txt
39
39
  Finish when the command succeeds.
40
40
  ````
@@ -42,10 +42,10 @@ Finish when the command succeeds.
42
42
 
43
43
  Startup discovery includes the purpose and the description for the operation granted to that Agent.
44
44
 
45
- Body SHA-256: `4de116958a1628b617a4019cfbde0dc74fea07dd9167eb208a74043e3084876c`
45
+ Body SHA-256: `3547d4a006569daaca4bb4df2764adcc40822eb52334fe1a7c9f02d3e81d21df`
46
46
 
47
47
  ````text
48
- Publish a release reference and user question for the next Agent.
49
- Save the release reference and ask the user for a channel.
48
+ Publish a release reference and an optional client question for the next Agent.
49
+ Save the release reference and a question for clients that support channel questions.
50
50
  Fetch the reference and question together.
51
51
  ````
@@ -2,49 +2,82 @@
2
2
 
3
3
  ## Researcher Profile
4
4
 
5
- Body SHA-256: `28c5c1fe98518e01f78d6c31ddd71da1eaac9a4ac6ef52b376695b1d3238e870`
5
+ Body SHA-256: `296c3e15563f6e888dc618ad513b98d3d7f169baa595c21a0ce72e384631625b`
6
6
 
7
7
  ````text
8
- Inspect the workspace. Publish concrete findings with swarm service invoke board publish. Read peer findings with swarm service invoke board search.
8
+ Investigate the user's question in the captured local repository. Publish concrete findings with swarm service invoke board publish. Each finding needs evidence: relative path, 1-based startLine/endLine, and an exact short excerpt (1–40 lines, at most 4096 bytes; omit the final newline). Distinguish facts, inferences and unverified questions in the summary. Do not modify source files or invent a defect. Read peer findings with swarm service invoke board search.
9
9
  ````
10
10
  ## Synthesizer Profile
11
11
 
12
- Body SHA-256: `f77121f6b888808184bb7d32004d3c524229552db39a1d3f605d686ef93c53aa`
12
+ Body SHA-256: `b194c0930d0220fe82b0cb79d277c5e24e7cc98b20a90a9123a4392131297eac`
13
13
 
14
14
  ````text
15
- Use swarm service invoke board search to read the findings and citations. Write a concise report.md in your workspace.
15
+ Use swarm service invoke board search to read the research and reviews. Answer the user's question in report.md: give conclusions, relative source paths and line numbers, finding IDs, disagreements and unverified items. Separate facts from inference. The host checks the Board's source locations and the report export; it does not establish that your conclusions are correct. Do not modify other project files.
16
16
  ````
17
- ## First research round
17
+ ## First research round: researcher 1
18
18
 
19
- Each researcher receives the prompt supplied in the Run input.
19
+ The user question comes from context.input.prompt; the focus is selected by this researcher’s host-assigned index.
20
20
 
21
- Body SHA-256: `c29a56b0e13ce862a3cb2f6490c63f88002dfa1b20e04fc4bba4a45cf2492d82`
21
+ Body SHA-256: `c5b6237e3e55e161ffc166b9527036197cd02f5a476f3f70669336dfda8df05b`
22
22
 
23
23
  ````text
24
24
  <ORIGINAL_USER_PROMPT>
25
+
26
+ Your focus: Entry points, configuration and how to run the relevant behavior.
27
+ Publish at least one source-backed finding.
28
+ ````
29
+
30
+ ## First research round: researcher 2
31
+
32
+ The user question comes from context.input.prompt; the focus is selected by this researcher’s host-assigned index.
33
+
34
+ Body SHA-256: `0561ae1a8d786297ac1f881995478651d275869158a6fd648f8c00f912aee095`
35
+
36
+ ````text
37
+ <ORIGINAL_USER_PROMPT>
38
+
39
+ Your focus: Core modules, data flow and dependencies relevant to the question.
40
+ Publish at least one source-backed finding.
41
+ ````
42
+
43
+ ## First research round: researcher 3
44
+
45
+ The user question comes from context.input.prompt; the focus is selected by this researcher’s host-assigned index.
46
+
47
+ Body SHA-256: `43e4cd895a98e351b46c851b6a3e3a5ee528bd4c52dc492480c958586d10bb1c`
48
+
49
+ ````text
50
+ <ORIGINAL_USER_PROMPT>
51
+
52
+ Your focus: Existing tests, observable guarantees and checks still needed.
53
+ Publish at least one source-backed finding.
25
54
  ````
26
55
  ## Peer review round
27
56
 
28
- Body SHA-256: `c512ebd0bb62d7f869ebf66fa536b627ecbf5c6249079c1cb62465a4edaf4c05`
57
+ The host sends this to all three original researchers only after every first-round contribution passes.
58
+
59
+ Body SHA-256: `d29d05f66f864ceb1e170951421ab472fc0d8849ad26415ff1efd5a00227e306`
29
60
 
30
61
  ````text
31
- Read the other researchers’ findings and publish a follow-up addressing a gap or disagreement. Cite the entries you relied on.
62
+ Read the other researchers' first-round findings. Check their source evidence and publish at least one NEW follow-up addressing a gap, disagreement or corroboration relevant to the user's question. Include your own exact source evidence and cite at least one first-round finding by ANOTHER author in cites. A first-round publication does not count as this review.
32
63
  ````
33
64
  ## Synthesis round
34
65
 
35
- Body SHA-256: `e865a2ac842028bc239a69905c248349e0f7eef4000c69ad4e18b666cfd9d1e6`
66
+ Body SHA-256: `ae87ce374713e3cd95ab00a1a21b868261da1bff35624f6dbbb3f57d01c88b9d`
36
67
 
37
68
  ````text
38
- Summarize the board findings and citations in report.md.
69
+ Read the Board, integrate the research and cross-author reviews, and write report.md for the task below. Cite source paths, line numbers and finding IDs; mark anything not verified.
70
+
71
+ <ORIGINAL_USER_PROMPT>
39
72
  ````
40
73
  ## Board discovery
41
74
 
42
75
  Each Profile receives guidance for the admitted operations. The shared board stores the actual authenticated caller.
43
76
 
44
- Body SHA-256: `cc92fd8edcb9efdcf61de735cae2bbf84fff04f86494beb40819ca98f16fa67f`
77
+ Body SHA-256: `ecf3e427db9b4593262626428836b042a9d7a79600237756b05200d585f91a94`
45
78
 
46
79
  ````text
47
80
  Publish, search, and cite findings across parallel swarm researchers.
48
- Publish a verified finding and optionally cite prior finding IDs.
81
+ Publish a finding with exact source references. During review, cite another researcher's first-round finding. Source locations are checked; conclusions are not.
49
82
  Search findings published on the shared board (empty returns all).
50
83
  ````
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Generated by `node dist/scripts/generate-architecture-prompts.js`; edit source or generator, then regenerate. Check without writing: `node dist/scripts/generate-architecture-prompts.js --check`.
4
4
 
5
- All peers receive the same Profile instructions. Their first native input uses the peer label, trusted configuration goal and the Run input. Each later turn uses a fixed nudge. An immutable patch can trigger a review notice by active steer or in the next regular input. The demo objective is also the default Run input.
5
+ All peers receive the same Profile instructions. Their first native input uses the peer label, trusted configuration goal and the Run input. Later native inputs choose a fixed nudge based on the shared train allowance. An immutable patch can trigger a review notice by active steer or appended to the next regular input. The demo objective is also the default Run input.
6
6
 
7
7
  These are repository-owned texts and deterministic examples, not transcripts of an actual experiment. Synthetic examples use explicit fixture inputs; other blocks preserve literal repository text, including its own placeholders and fallback markers. Complete bodies are shown without truncation. The body hash excludes Markdown framing.
8
8
  ## Shared Profile instruction
@@ -35,13 +35,20 @@ You are <PEER_LABEL>. Team objective: <RESEARCH_GOAL>
35
35
  <RUN_INPUT>
36
36
  Read the project task statement and the board, claim an open direction and work toward a first testable patch promptly.
37
37
  ````
38
- ## Follow-up peer input
38
+ ## Follow-up peer input while train is available
39
39
 
40
40
  Body SHA-256: `bf91b7aaaf231d0ba9c6e805bd6bc2adf6bedb8db2e39acd94baba14b25f4ae6`
41
41
 
42
42
  ````text
43
43
  Check updates, review or build on promising peers’ work, and propose the next evidence-backed improvement.
44
44
  ````
45
+ ## Follow-up peer input after the train budget is used
46
+
47
+ Body SHA-256: `94f4c98c8d1fcbaa6d5e514aed0392310dcfbcb974d43af2e16068194ffbc6c3`
48
+
49
+ ````text
50
+ Train capacity is exhausted. Review another peer’s candidate, run local checks and publish concrete findings.
51
+ ````
45
52
  ## Candidate review notice
46
53
 
47
54
  Body SHA-256: `6fbebd24133ed08a8f954e428527f44bc58f7188e2f31686b25ab2cd6fafcb50`
@@ -19,11 +19,11 @@
19
19
  },
20
20
  {
21
21
  "path": "examples/autoresearch/project.ts",
22
- "sha256": "07314016d47bdbb19e12a0492d949152865ab55c718263be605bd0e2345e8aa1"
22
+ "sha256": "e4bd23e5168e8dcdb70e9b095085cc10f424634309ce317321e81541b3cf02ec"
23
23
  },
24
24
  {
25
25
  "path": "examples/autoresearch/config.ts",
26
- "sha256": "a4ea74dacbaee15fc369b030abf460b208d934989de94c2adec113ff50f9685f"
26
+ "sha256": "5a62900f4ab09ba8969ffd3ff565cb5505dd495f83f1f59e9052192c2cf1efcf"
27
27
  },
28
28
  {
29
29
  "path": "examples/services/agent-control/run.ts",
@@ -43,19 +43,19 @@
43
43
  },
44
44
  {
45
45
  "path": "examples/first-harness/harness.ts",
46
- "sha256": "82d0528f2631c0e0de81739e4368f7209ee81d8fb84926a925e6ae4357db45e6"
46
+ "sha256": "cbbdd8769420d24e48cca63c5392d3b374049988b3e68ad37e185af744f7eb0c"
47
47
  },
48
48
  {
49
49
  "path": "examples/first-harness/handoff.ts",
50
- "sha256": "ad81100cf91b3a3bc58d2e6dd524780ec6ffa1fc4640eba3c1ca2c71dfeeae75"
50
+ "sha256": "47d9cd699707929b8fa8014292bc3c7bd9ffac789917f82fc221acae17a51068"
51
51
  },
52
52
  {
53
53
  "path": "examples/parallel-swarm/harness.ts",
54
- "sha256": "e6e92f11e4ac8cd48617c0b6edabff4a9827b89796b405140126dba9267a7b42"
54
+ "sha256": "f82faf8dca74bb6f78c65561ef7bf5137d716df730275c34f04edd735e65d60d"
55
55
  },
56
56
  {
57
57
  "path": "examples/parallel-swarm/board-service.ts",
58
- "sha256": "ade9f2c31d191739b73fa12e1b7a7b2f15dbec2b6e1d2fa14e0669d6f756a1e0"
58
+ "sha256": "a3905c35211b3f16b88efc9ea869e7d9212f321b2a5a2e8576215bfb7396b4aa"
59
59
  },
60
60
  {
61
61
  "path": "test-support/taskpool-legacy/capability-profile.ts",
@@ -75,7 +75,7 @@
75
75
  },
76
76
  {
77
77
  "path": "src/core/index.ts",
78
- "sha256": "a78f159604cb21264b987079532cf295832420374297d976e1f838e536a103d0"
78
+ "sha256": "29736fc683275f3df70b1766af60185d36a453a0e69a3eefbbd20578963d1495"
79
79
  },
80
80
  {
81
81
  "path": "src/core/bridge.ts",
@@ -87,7 +87,7 @@
87
87
  },
88
88
  {
89
89
  "path": "src/core/sandbox/opensandbox-backend.ts",
90
- "sha256": "a7aa96e86f1d193929123872432d23454882a014839cd95f23d2a19a3c5cf634"
90
+ "sha256": "14eb1d758acbc59ecad2aba7d12c288b5ff33d224710973e59543bd678d9cc10"
91
91
  },
92
92
  {
93
93
  "path": "scripts/opensandbox-agent-worker.ts",
@@ -314,31 +314,37 @@
314
314
  {
315
315
  "path": "examples/autoresearch/project.ts",
316
316
  "anchor": "const instructions = `",
317
- "line": 9,
317
+ "line": 11,
318
318
  "sha256": "2f161c47284693d2dd415481a96d5de010b254e87cf9dfc977a6a07b7b9f151c"
319
319
  },
320
320
  {
321
321
  "path": "examples/autoresearch/project.ts",
322
322
  "anchor": "? `",
323
- "line": 301,
323
+ "line": 351,
324
324
  "sha256": "d6dd74e7a80cd89685befe2a715c6fa092fedde92ee4d4365376576ee8dce32e"
325
325
  },
326
326
  {
327
327
  "path": "examples/autoresearch/project.ts",
328
328
  "anchor": ": '",
329
- "line": 302,
329
+ "line": 349,
330
330
  "sha256": "bf91b7aaaf231d0ba9c6e805bd6bc2adf6bedb8db2e39acd94baba14b25f4ae6"
331
331
  },
332
+ {
333
+ "path": "examples/autoresearch/project.ts",
334
+ "anchor": "? '",
335
+ "line": 348,
336
+ "sha256": "94f4c98c8d1fcbaa6d5e514aed0392310dcfbcb974d43af2e16068194ffbc6c3"
337
+ },
332
338
  {
333
339
  "path": "examples/autoresearch/project.ts",
334
340
  "anchor": "return `",
335
- "line": 28,
341
+ "line": 30,
336
342
  "sha256": "adb341b2f26bf63f341fc67f54ea94d6137fe5af09777bfc5211c8f3d261d191"
337
343
  },
338
344
  {
339
345
  "path": "examples/autoresearch/config.ts",
340
346
  "anchor": "export const demoGoal = '",
341
- "line": 39,
347
+ "line": 44,
342
348
  "sha256": "7d89f3c7b930c66cdbf0d103d9d1537fe8562cbddfdfc39241657c3786f5771a"
343
349
  },
344
350
  {
@@ -758,38 +764,38 @@
758
764
  {
759
765
  "path": "examples/first-harness/harness.ts",
760
766
  "anchor": "addedSystemPrompt: '",
761
- "line": 26,
762
- "sha256": "13a34f145feb381c6fd3f6f08be0a4fbacdd0c5f91a50f94e9561d88d5c878f6"
767
+ "line": 54,
768
+ "sha256": "7e4b430eac1bb389a6ab2fb7db25b8b10eeb0733c42398ca1dbd7541467026b6"
763
769
  },
764
770
  {
765
771
  "path": "examples/first-harness/harness.ts",
766
772
  "anchor": "addedSystemPrompt: '",
767
- "line": 30,
768
- "sha256": "3a0542d4cd34195627be5c8452929e2c379ceaba4be7bb1b689bb7c3d9d508ed"
773
+ "line": 58,
774
+ "sha256": "44b23cc7d4249314026240b0658534f9a70bf25754b4aef6790b7ca5d9d65fe0"
769
775
  },
770
776
  {
771
777
  "path": "examples/first-harness/harness.ts",
772
778
  "anchor": "runInput(runtime, publisher.id, [",
773
- "line": 50,
774
- "sha256": "ba61e775a7276c3e3442bfc68cc11f3d4cd785b83c2ebcc0ce7ca36efe778f7a"
779
+ "line": 70,
780
+ "sha256": "df09264cfdc45575ae230d9c582dc3937adcb6a421d42c878bd6cabb5e1425a8"
775
781
  },
776
782
  {
777
783
  "path": "examples/first-harness/harness.ts",
778
784
  "anchor": "runInput(runtime, writer.id, `",
779
- "line": 73,
780
- "sha256": "35164d4ba8c2ae6c773e9008eee6fb1ab3c1ad7df93714b595df8f477756746c"
785
+ "line": 95,
786
+ "sha256": "452e1273e11f255c9fc48e58094cdd7c36983bd878c136d66dca74f5a7352a60"
781
787
  },
782
788
  {
783
789
  "path": "examples/first-harness/handoff.ts",
784
790
  "anchor": "description: '",
785
791
  "line": 11,
786
- "sha256": "8e0e92e8d6a4ff95f96f52a08f96243283f39b7c2401dc3434e82952eadff8d2"
792
+ "sha256": "96743ef4513f58980e705662fb8a06cd53ab90dc0336b9e61291b0097983fc76"
787
793
  },
788
794
  {
789
795
  "path": "examples/first-harness/handoff.ts",
790
796
  "anchor": "publish: { description: '",
791
797
  "line": 13,
792
- "sha256": "ee04a6bec5ef6ff1acefd770b8a678ebdd96b1a60d0fdcaa5bb580abd0bd8111"
798
+ "sha256": "1dae3a18cb3e0fd360c989a142358da99c3968d7cffe18585099ea2d3c0ec5f1"
793
799
  },
794
800
  {
795
801
  "path": "examples/first-harness/handoff.ts",
@@ -799,45 +805,63 @@
799
805
  },
800
806
  {
801
807
  "path": "examples/parallel-swarm/harness.ts",
802
- "anchor": "const researcherPrompt = '",
803
- "line": 11,
804
- "sha256": "28c5c1fe98518e01f78d6c31ddd71da1eaac9a4ac6ef52b376695b1d3238e870"
808
+ "anchor": "const researchFocuses = ",
809
+ "line": 12,
810
+ "sha256": "4c3b6ed29b2b0218881035eac9522209de4d45cecb2dbbc26c86ce8e25bd9d63"
805
811
  },
806
812
  {
807
813
  "path": "examples/parallel-swarm/harness.ts",
808
- "anchor": "const synthesizerPrompt = '",
809
- "line": 12,
810
- "sha256": "f77121f6b888808184bb7d32004d3c524229552db39a1d3f605d686ef93c53aa"
814
+ "anchor": "runInput(runtime, peer.id,\n `",
815
+ "line": 56,
816
+ "sha256": "1ed54ed3cb8b926a71a3bfc50adb911829d5bedeff758f07651763a825bb9aa0"
817
+ },
818
+ {
819
+ "path": "examples/parallel-swarm/harness.ts",
820
+ "anchor": "runInput(runtime, synth.id, `",
821
+ "line": 70,
822
+ "sha256": "640002335d93b25081c58ab7d6f9c0d30cc8d3e70a4fedf927ec7c2578c9fcc9"
811
823
  },
812
824
  {
813
825
  "path": "examples/parallel-swarm/harness.ts",
814
- "anchor": "const reviewInput = '",
826
+ "anchor": "const researcherPrompt = ",
827
+ "line": 10,
828
+ "sha256": "7234006e346a8a204914da276d3ce2503519a6befe2d0f51dd15bacbdcc2b807"
829
+ },
830
+ {
831
+ "path": "examples/parallel-swarm/harness.ts",
832
+ "anchor": "const synthesizerPrompt = ",
833
+ "line": 11,
834
+ "sha256": "8a4d03a76ab401c90c027d5c2d173e777e5a5b87a9326ba4873e1002c569bd19"
835
+ },
836
+ {
837
+ "path": "examples/parallel-swarm/harness.ts",
838
+ "anchor": "const reviewInput = ",
815
839
  "line": 13,
816
- "sha256": "c512ebd0bb62d7f869ebf66fa536b627ecbf5c6249079c1cb62465a4edaf4c05"
840
+ "sha256": "aefdcf2daa6146484207923bb2021c5652a26359c321f2d99d184fe9b009494e"
817
841
  },
818
842
  {
819
843
  "path": "examples/parallel-swarm/harness.ts",
820
- "anchor": "const synthesisInput = '",
844
+ "anchor": "const synthesisInput = ",
821
845
  "line": 14,
822
- "sha256": "e865a2ac842028bc239a69905c248349e0f7eef4000c69ad4e18b666cfd9d1e6"
846
+ "sha256": "cbea4fe1685f590669d8079a49769a1695049f665b6afb638b26a5c9a2b65390"
823
847
  },
824
848
  {
825
849
  "path": "examples/parallel-swarm/board-service.ts",
826
- "anchor": "purpose: '",
827
- "line": 28,
828
- "sha256": "8913a617881e975bfa9fd68e42a4c3e6176e7270899cc0e20dcdf4b8a3ff315e"
850
+ "anchor": "purpose: ",
851
+ "line": 44,
852
+ "sha256": "911e0d4c340a4729c11cd251020041cea219a80ac28a8100638184934b8f259f"
829
853
  },
830
854
  {
831
855
  "path": "examples/parallel-swarm/board-service.ts",
832
- "anchor": "description: '",
833
- "line": 35,
834
- "sha256": "08ebca875208b37bba52997d2f12371b73a8822fe8f42d6379d7e2364c49f7f2"
856
+ "anchor": "description: ",
857
+ "line": 51,
858
+ "sha256": "db7fd29b7072840a051ba1c3b28a8ad02c7c033d1c04786c5430d34198cc8413"
835
859
  },
836
860
  {
837
861
  "path": "examples/parallel-swarm/board-service.ts",
838
- "anchor": "description: '",
839
- "line": 55,
840
- "sha256": "c761c3e2a734d9722c292d404513cea142d77c6e94ac9ddfccb78d6a3488d59a"
862
+ "anchor": "description: ",
863
+ "line": 73,
864
+ "sha256": "e1a9abdbdf2be2cba8f5732f534cc8db4873f88c012092e2ee32bf8657a5b42e"
841
865
  },
842
866
  {
843
867
  "path": "examples/services/persistent-board/run.ts",
@@ -922,28 +946,28 @@
922
946
  },
923
947
  {
924
948
  "path": "examples/first-harness/harness.ts",
925
- "line": 50,
949
+ "line": 70,
926
950
  "expression": "await runInput(runtime, publisher.id, ["
927
951
  },
928
952
  {
929
953
  "path": "examples/first-harness/harness.ts",
930
- "line": 73,
931
- "expression": "await runInput(runtime, writer.id, `The user chose channel ${channel}. Run the following exact command with the bash tool in your workspace:"
954
+ "line": 95,
955
+ "expression": "await runInput(runtime, writer.id, `The user chose channel ${channel}. Run the following exact command with your command execution tool in your workspace:"
932
956
  },
933
957
  {
934
958
  "path": "examples/parallel-swarm/harness.ts",
935
- "line": 55,
936
- "expression": "runInput(runtime, peer.id, context.input.prompt, { ...turn, requestId: `research-${index + 1}` })));"
959
+ "line": 56,
960
+ "expression": "await Promise.all(peers.map((peer, index) => runInput(runtime, peer.id,"
937
961
  },
938
962
  {
939
963
  "path": "examples/parallel-swarm/harness.ts",
940
- "line": 59,
941
- "expression": "runInput(runtime, peer.id, reviewInput, { ...turn, requestId: `review-${index + 1}` })));"
964
+ "line": 61,
965
+ "expression": "await Promise.all(peers.map((peer, index) => runInput(runtime, peer.id, reviewInput,"
942
966
  },
943
967
  {
944
968
  "path": "examples/parallel-swarm/harness.ts",
945
- "line": 64,
946
- "expression": "await runInput(runtime, synth.id, synthesisInput, { ...turn, requestId: 'synthesize' });"
969
+ "line": 70,
970
+ "expression": "await runInput(runtime, synth.id, `${synthesisInput}\\n\\n${context.input.prompt}`, { ...turn, requestId: 'synthesize' });"
947
971
  },
948
972
  {
949
973
  "path": "examples/services/persistent-board/run.ts",
@@ -1059,7 +1083,7 @@
1059
1083
  "generated_bodies": [
1060
1084
  {
1061
1085
  "path": "docs/architecture/prompts/22-autoresearch.md",
1062
- "sha256": "a4f73778553daa56703356d6c1ac9c7e9ae502d23f0f1b5b910cb5006cb3f56f"
1086
+ "sha256": "34d4c3bf9b7570d4a6229b38e8c1f5077217bb4705bb24cb20df20a0db7d1c37"
1063
1087
  },
1064
1088
  {
1065
1089
  "path": "docs/architecture/prompts/02-task-loop-and-tools.md",
@@ -1119,11 +1143,11 @@
1119
1143
  },
1120
1144
  {
1121
1145
  "path": "docs/architecture/prompts/11-first-sdk-harness.md",
1122
- "sha256": "b755eb14b7e0e705a9c8aea80e51f05715e934131f12d8924e9265270af3f828"
1146
+ "sha256": "e03bfaaed1c712f5cf2a858cfbf5791cfad5ab3cc6e3c2582d7a72e7d7139625"
1123
1147
  },
1124
1148
  {
1125
1149
  "path": "docs/architecture/prompts/16-parallel-swarm.md",
1126
- "sha256": "5b4acd4c52161c6a0f15e17c0ac490e1e686cff3a1c688832e113deb9d5b2193"
1150
+ "sha256": "9467b27bc570c1dde946818571b788bdd7e330ca7baa9c77e5fe548409e4f022"
1127
1151
  },
1128
1152
  {
1129
1153
  "path": "docs/architecture/prompts/17-persistent-board.md",