@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
@@ -40,7 +40,9 @@
40
40
  ".github/workflows/release.yml",
41
41
  ".github/publish-npm-release.sh",
42
42
  "examples/taskpool/.npmignore",
43
- "benchmarks/programbench-pastel/pastel-code.ts"
43
+ "benchmarks/programbench-pastel/pastel-code.ts",
44
+ ".github/release-plan.mjs",
45
+ ".github/verify-npm-release.mjs"
44
46
  ],
45
47
  "excluded": [
46
48
  {
@@ -487,7 +489,7 @@
487
489
  "chapters": [
488
490
  "docs/architecture/07-run-configuration.md"
489
491
  ],
490
- "role": "Stage the npm allowlist and publish a production-only shrinkwrap while preserving service build inputs"
492
+ "role": "Stage the npm allowlist, production and development shrinkwraps, and consistent optional preview versions without modifying the checkout"
491
493
  },
492
494
  {
493
495
  "path": "package.json",
@@ -1474,6 +1476,7 @@
1474
1476
  "path": "src/core/sandbox/opensandbox-backend.ts",
1475
1477
  "category": "Core runtime",
1476
1478
  "chapters": [
1479
+ "docs/architecture/07-run-configuration.md",
1477
1480
  "docs/architecture/16-pi-opensandbox-backend.md",
1478
1481
  "docs/architecture/15-core-runtime.md",
1479
1482
  "docs/architecture/08-prompts.md",
@@ -1883,6 +1886,22 @@
1883
1886
  ],
1884
1887
  "role": "Local subagents host model, resource and deadline configuration"
1885
1888
  },
1889
+ {
1890
+ "path": "examples/subagents/handoff-config.ts",
1891
+ "category": "Harness integration",
1892
+ "chapters": [
1893
+ "docs/architecture/17-harness-reporting.md"
1894
+ ],
1895
+ "role": "Opt-in repository handoff work, model request and report collection limits"
1896
+ },
1897
+ {
1898
+ "path": "examples/subagents/model.ts",
1899
+ "category": "Harness integration",
1900
+ "chapters": [
1901
+ "docs/architecture/07-run-configuration.md"
1902
+ ],
1903
+ "role": "Shared environment model route for Subagents and doctor"
1904
+ },
1886
1905
  {
1887
1906
  "path": "examples/peermesh/harness/router.ts",
1888
1907
  "category": "Harness integration",
@@ -2560,7 +2579,7 @@
2560
2579
  "chapters": [
2561
2580
  "docs/architecture/22-website.md"
2562
2581
  ],
2563
- "role": "Site navigation, mobile menu, theme and search controls"
2582
+ "role": "Render branding, channel/version selection, channel-preserving locale links, theme and search controls"
2564
2583
  },
2565
2584
  {
2566
2585
  "path": "website/src/content.config.ts",
@@ -2568,7 +2587,7 @@
2568
2587
  "chapters": [
2569
2588
  "docs/architecture/22-website.md"
2570
2589
  ],
2571
- "role": "Documentation loader and frontmatter schema"
2590
+ "role": "Load and validate stable and next English and Chinese guide collections"
2572
2591
  },
2573
2592
  {
2574
2593
  "path": "website/src/layouts/BaseLayout.astro",
@@ -2665,7 +2684,7 @@
2665
2684
  "docs/architecture/07-run-configuration.md",
2666
2685
  "docs/architecture/22-website.md"
2667
2686
  ],
2668
- "role": "Run scoped Core and website checks on pull requests and main"
2687
+ "role": "Build one candidate artifact for all Core shards and gate scoped Core and bilingual documentation-channel checks"
2669
2688
  },
2670
2689
  {
2671
2690
  "path": ".github/ci-scope.sh",
@@ -2681,7 +2700,7 @@
2681
2700
  "chapters": [
2682
2701
  "docs/architecture/22-website.md"
2683
2702
  ],
2684
- "role": "Build, upload and deploy the static website to GitHub Pages from main"
2703
+ "role": "Verify the selected public stable package, build both documentation channels and deploy the complete Pages artifact"
2685
2704
  },
2686
2705
  {
2687
2706
  "path": "src/trace-viewer/server.mjs",
@@ -2698,7 +2717,7 @@
2698
2717
  "docs/architecture/06-observability-experiments.md",
2699
2718
  "docs/architecture/28-autoresearch.md"
2700
2719
  ],
2701
- "role": "Incremental Run index, member and explicit evidence validation, configuration and result projections, bounded search and source-checked reads"
2720
+ "role": "Incremental Run index, member and candidate evidence validation, configuration and result projections, bounded search and source-checked reads"
2702
2721
  },
2703
2722
  {
2704
2723
  "path": "src/trace-viewer/public/index.html",
@@ -2773,6 +2792,24 @@
2773
2792
  ],
2774
2793
  "role": "License for the bundled space-grotesk font"
2775
2794
  },
2795
+ {
2796
+ "path": "src/trace-viewer/run-root.mjs",
2797
+ "category": "Trace Viewer",
2798
+ "chapters": [
2799
+ "docs/architecture/06-observability-experiments.md",
2800
+ "docs/architecture/23-project-harness.md"
2801
+ ],
2802
+ "role": "Shared standard Harness, terminal replay and Trace discovery root resolution"
2803
+ },
2804
+ {
2805
+ "path": "src/trace-viewer/run-root.d.mts",
2806
+ "category": "Trace Viewer",
2807
+ "chapters": [
2808
+ "docs/architecture/06-observability-experiments.md",
2809
+ "docs/architecture/23-project-harness.md"
2810
+ ],
2811
+ "role": "TypeScript declaration for shared Run root resolution"
2812
+ },
2776
2813
  {
2777
2814
  "path": "src/trace-viewer/command.mjs",
2778
2815
  "category": "Trace Viewer",
@@ -2872,7 +2909,7 @@
2872
2909
  {
2873
2910
  "path": "website/src/lib/markdown-doc-links.mjs",
2874
2911
  "category": "public documentation website",
2875
- "role": "Resolve canonical Markdown file links into locale-aware website routes and repository source links.",
2912
+ "role": "Rewrite guide and download links within the selected locale/channel and pin source links to the correct immutable revision",
2876
2913
  "chapters": [
2877
2914
  "docs/architecture/22-website.md"
2878
2915
  ]
@@ -3064,7 +3101,7 @@
3064
3101
  "chapters": [
3065
3102
  "docs/architecture/07-run-configuration.md"
3066
3103
  ],
3067
- "role": "Verified npm publication, retry integrity and stable distribution tag checks"
3104
+ "role": "Verify npm publication integrity, preserve the opposite dist-tag and recover stable or next uploads idempotently"
3068
3105
  },
3069
3106
  {
3070
3107
  "path": ".github/workflows/release.yml",
@@ -3072,7 +3109,7 @@
3072
3109
  "chapters": [
3073
3110
  "docs/architecture/07-run-configuration.md"
3074
3111
  ],
3075
- "role": "Release archive verification, stable GitHub publication and npm Trusted Publishing"
3112
+ "role": "Plan and verify candidates, publish stable or opt-in next archives, and verify exact public registry consumers"
3076
3113
  },
3077
3114
  {
3078
3115
  "path": "website/src/pages/latest.astro",
@@ -3162,13 +3199,29 @@
3162
3199
  ],
3163
3200
  "role": "Bounded static Trace Viewer demo export with complete-window validation and matching search/timeline API shim"
3164
3201
  },
3202
+ {
3203
+ "path": "website/scripts/trace-handoff.test.mjs",
3204
+ "category": "public documentation website",
3205
+ "chapters": [
3206
+ "docs/architecture/22-website.md"
3207
+ ],
3208
+ "role": "Tests the handoff replay's publication fields, evidence links and original report identity"
3209
+ },
3210
+ {
3211
+ "path": "website/trace-replays/p-limit-handoff.json",
3212
+ "category": "public documentation website",
3213
+ "chapters": [
3214
+ "docs/architecture/22-website.md"
3215
+ ],
3216
+ "role": "Reviewed public projection of the recorded p-limit Subagents handoff and its original report"
3217
+ },
3165
3218
  {
3166
3219
  "path": "website/src/components/InstallBar.astro",
3167
3220
  "category": "public documentation website",
3168
3221
  "chapters": [
3169
3222
  "docs/architecture/22-website.md"
3170
3223
  ],
3171
- "role": "Bilingual global npm and shell CLI install commands with a separate SDK guide and copy feedback"
3224
+ "role": "Render the manifest-pinned stable npm install command and clipboard feedback on both landing pages"
3172
3225
  },
3173
3226
  {
3174
3227
  "path": "website/src/components/ConceptsDiagram.astro",
@@ -3660,7 +3713,9 @@
3660
3713
  "path": "examples/first-harness/handoff.ts",
3661
3714
  "category": "SDK example",
3662
3715
  "chapters": [
3663
- "docs/architecture/07-run-configuration.md"
3716
+ "docs/architecture/07-run-configuration.md",
3717
+ "docs/architecture/17-harness-reporting.md",
3718
+ "docs/architecture/23-project-harness.md"
3664
3719
  ],
3665
3720
  "role": "Registers the first Harness handoff operations and records authorized caller evidence"
3666
3721
  },
@@ -3678,9 +3733,10 @@
3678
3733
  "chapters": [
3679
3734
  "docs/architecture/07-run-configuration.md",
3680
3735
  "docs/architecture/08-prompts.md",
3681
- "docs/architecture/23-project-harness.md"
3736
+ "docs/architecture/23-project-harness.md",
3737
+ "docs/architecture/17-harness-reporting.md"
3682
3738
  ],
3683
- "role": "Canonical two-Agent release handoff with a trusted Session question and verified file export"
3739
+ "role": "Canonical preset or explicit-question Service handoff with exact byte verification and original cleanup receipts"
3684
3740
  },
3685
3741
  {
3686
3742
  "path": "examples/first-harness/session.ts",
@@ -3711,14 +3767,6 @@
3711
3767
  ],
3712
3768
  "role": "Shared editable Root and Child collaboration, ownership, work and Runtime reconciliation"
3713
3769
  },
3714
- {
3715
- "path": "website/src/pages/downloads/first-harness/v2/[file].ts",
3716
- "category": "website",
3717
- "chapters": [
3718
- "docs/architecture/22-website.md"
3719
- ],
3720
- "role": "Versioned download of the candidate author definition and Session terminal client"
3721
- },
3722
3770
  {
3723
3771
  "path": "scripts/anyswarm-installation.ts",
3724
3772
  "category": "launch and composition",
@@ -3750,16 +3798,20 @@
3750
3798
  "path": "examples/parallel-swarm/board.ts",
3751
3799
  "category": "launch and composition",
3752
3800
  "chapters": [
3753
- "docs/architecture/07-run-configuration.md"
3801
+ "docs/architecture/07-run-configuration.md",
3802
+ "docs/architecture/17-harness-reporting.md",
3803
+ "docs/architecture/23-project-harness.md"
3754
3804
  ],
3755
- "role": "Parallel tutorial shared findings and citation state"
3805
+ "role": "Authenticated member phases, per-researcher reviews and captured-source reference validation"
3756
3806
  },
3757
3807
  {
3758
3808
  "path": "examples/parallel-swarm/board-service.ts",
3759
3809
  "category": "launch and composition",
3760
3810
  "chapters": [
3761
3811
  "docs/architecture/07-run-configuration.md",
3762
- "docs/architecture/08-prompts.md"
3812
+ "docs/architecture/08-prompts.md",
3813
+ "docs/architecture/17-harness-reporting.md",
3814
+ "docs/architecture/23-project-harness.md"
3763
3815
  ],
3764
3816
  "role": "Authenticated board operations and discovery manifest"
3765
3817
  },
@@ -3768,17 +3820,11 @@
3768
3820
  "category": "launch and composition",
3769
3821
  "chapters": [
3770
3822
  "docs/architecture/07-run-configuration.md",
3771
- "docs/architecture/08-prompts.md"
3772
- ],
3773
- "role": "Parallel public SDK author example and report verification"
3774
- },
3775
- {
3776
- "path": "website/src/pages/downloads/parallel-swarm/v1/[file].ts",
3777
- "category": "website",
3778
- "chapters": [
3779
- "docs/architecture/22-website.md"
3823
+ "docs/architecture/08-prompts.md",
3824
+ "docs/architecture/17-harness-reporting.md",
3825
+ "docs/architecture/23-project-harness.md"
3780
3826
  ],
3781
- "role": "Static parallel author example source downloads from the SDK tree"
3827
+ "role": "Configured two-round repository investigation with bounded Runtime ownership and scoped acceptance"
3782
3828
  },
3783
3829
  {
3784
3830
  "path": "src/core/service-observation-types.ts",
@@ -4171,7 +4217,7 @@
4171
4217
  "chapters": [
4172
4218
  "docs/architecture/28-autoresearch.md"
4173
4219
  ],
4174
- "role": "Typed custom evaluator configuration, Kimi identity and default shared budgets"
4220
+ "role": "Typed evaluator configuration, model and executor compatibility, and shared budgets"
4175
4221
  },
4176
4222
  {
4177
4223
  "path": "examples/autoresearch/demo.ts",
@@ -4469,6 +4515,320 @@
4469
4515
  "docs/architecture/27-personal.md"
4470
4516
  ],
4471
4517
  "role": "Personal setup, Slash Action and TypeScript export guide"
4518
+ },
4519
+ {
4520
+ "path": "examples/first-harness/eject.json",
4521
+ "category": "SDK example",
4522
+ "chapters": [
4523
+ "docs/architecture/23-project-harness.md"
4524
+ ],
4525
+ "role": "Explicit complete source export for the Service handoff and question clients"
4526
+ },
4527
+ {
4528
+ "path": "examples/first-harness/AGENTS.md",
4529
+ "category": "SDK example",
4530
+ "chapters": [
4531
+ "docs/architecture/23-project-harness.md"
4532
+ ],
4533
+ "role": "Downstream Harness author instructions shipped in the handoff export"
4534
+ },
4535
+ {
4536
+ "path": "examples/first-harness/README.md",
4537
+ "category": "SDK example",
4538
+ "chapters": [
4539
+ "docs/architecture/07-run-configuration.md",
4540
+ "docs/architecture/17-harness-reporting.md"
4541
+ ],
4542
+ "role": "Preset foreground use, explicit question clients, exact delivery and evidence limits"
4543
+ },
4544
+ {
4545
+ "path": "examples/first-harness/input/README.md",
4546
+ "category": "SDK example",
4547
+ "chapters": [
4548
+ "docs/architecture/07-run-configuration.md"
4549
+ ],
4550
+ "role": "Nonsecret input directory for the self-contained Service handoff tutorial"
4551
+ },
4552
+ {
4553
+ "path": "examples/parallel-swarm/config.ts",
4554
+ "category": "SDK example",
4555
+ "chapters": [
4556
+ "docs/architecture/07-run-configuration.md"
4557
+ ],
4558
+ "role": "Local explicit configuration, saved executor inheritance and model protocol guards"
4559
+ },
4560
+ {
4561
+ "path": "examples/parallel-swarm/report.ts",
4562
+ "category": "SDK example",
4563
+ "chapters": [
4564
+ "docs/architecture/17-harness-reporting.md"
4565
+ ],
4566
+ "role": "Independent report byte checks that preserve pending export and cleanup receipts"
4567
+ },
4568
+ {
4569
+ "path": "examples/parallel-swarm/eject.json",
4570
+ "category": "SDK example",
4571
+ "chapters": [
4572
+ "docs/architecture/23-project-harness.md"
4573
+ ],
4574
+ "role": "Complete editable parallel investigation source export without sibling dependencies"
4575
+ },
4576
+ {
4577
+ "path": "examples/parallel-swarm/AGENTS.md",
4578
+ "category": "SDK example",
4579
+ "chapters": [
4580
+ "docs/architecture/23-project-harness.md"
4581
+ ],
4582
+ "role": "Downstream instructions for changing collaboration, evidence and completion checks"
4583
+ },
4584
+ {
4585
+ "path": "examples/parallel-swarm/README.md",
4586
+ "category": "SDK example",
4587
+ "chapters": [
4588
+ "docs/architecture/07-run-configuration.md",
4589
+ "docs/architecture/17-harness-reporting.md"
4590
+ ],
4591
+ "role": "Real repository investigation recipe, configuration and objective verification limits"
4592
+ },
4593
+ {
4594
+ "path": "examples/subagents/eject.json",
4595
+ "category": "SDK example",
4596
+ "chapters": [
4597
+ "docs/architecture/23-project-harness.md"
4598
+ ],
4599
+ "role": "Complete dynamic delegation controller, Service, prompts and config source export"
4600
+ },
4601
+ {
4602
+ "path": "website/src/components/UseCases.astro",
4603
+ "category": "website",
4604
+ "chapters": [
4605
+ "docs/architecture/22-website.md"
4606
+ ],
4607
+ "role": "Bilingual real repository and AutoResearch input, collaboration, artifact and evidence cards"
4608
+ },
4609
+ {
4610
+ "path": "website/public/blog/anyswarm-run-observability.png",
4611
+ "category": "public documentation website",
4612
+ "chapters": [
4613
+ "docs/architecture/22-website.md"
4614
+ ],
4615
+ "role": "Public blog illustration of Run observability and retained evidence"
4616
+ },
4617
+ {
4618
+ "path": "website/public/blog/anyswarm-system-architecture.png",
4619
+ "category": "public documentation website",
4620
+ "chapters": [
4621
+ "docs/architecture/22-website.md"
4622
+ ],
4623
+ "role": "Public blog illustration of the Harness, Runtime and host Service architecture"
4624
+ },
4625
+ {
4626
+ "path": "website/public/videos/anyswarm-intro-en.mp4",
4627
+ "category": "public documentation website",
4628
+ "chapters": [
4629
+ "docs/architecture/22-website.md"
4630
+ ],
4631
+ "role": "English introductory film embedded in the landing page"
4632
+ },
4633
+ {
4634
+ "path": "website/public/videos/anyswarm-intro-zh.mp4",
4635
+ "category": "public documentation website",
4636
+ "chapters": [
4637
+ "docs/architecture/22-website.md"
4638
+ ],
4639
+ "role": "Chinese introductory film embedded in the landing page"
4640
+ },
4641
+ {
4642
+ "path": "website/src/components/BlogIndexPage.astro",
4643
+ "category": "public documentation website",
4644
+ "chapters": [
4645
+ "docs/architecture/22-website.md"
4646
+ ],
4647
+ "role": "Shared bilingual Blog index layout and article entry links"
4648
+ },
4649
+ {
4650
+ "path": "website/src/components/BlogPostPage.astro",
4651
+ "category": "public documentation website",
4652
+ "chapters": [
4653
+ "docs/architecture/22-website.md"
4654
+ ],
4655
+ "role": "Shared bilingual Blog article rendering, metadata and navigation"
4656
+ },
4657
+ {
4658
+ "path": "website/src/components/ChangelogPage.astro",
4659
+ "category": "public documentation website",
4660
+ "chapters": [
4661
+ "docs/architecture/22-website.md"
4662
+ ],
4663
+ "role": "Shared bilingual Changelog rendering and release navigation"
4664
+ },
4665
+ {
4666
+ "path": "website/src/pages/blog/index.astro",
4667
+ "category": "public documentation website",
4668
+ "chapters": [
4669
+ "docs/architecture/22-website.md"
4670
+ ],
4671
+ "role": "English Blog index route"
4672
+ },
4673
+ {
4674
+ "path": "website/src/pages/blog/100b-tokens.astro",
4675
+ "category": "public documentation website",
4676
+ "chapters": [
4677
+ "docs/architecture/22-website.md"
4678
+ ],
4679
+ "role": "English architecture essay route using its Markdown source"
4680
+ },
4681
+ {
4682
+ "path": "website/src/pages/changelog.astro",
4683
+ "category": "public documentation website",
4684
+ "chapters": [
4685
+ "docs/architecture/22-website.md"
4686
+ ],
4687
+ "role": "English top-level Changelog route"
4688
+ },
4689
+ {
4690
+ "path": "website/src/pages/zh/blog/index.astro",
4691
+ "category": "public documentation website",
4692
+ "chapters": [
4693
+ "docs/architecture/22-website.md"
4694
+ ],
4695
+ "role": "Chinese Blog index route"
4696
+ },
4697
+ {
4698
+ "path": "website/src/pages/zh/blog/100b-tokens.astro",
4699
+ "category": "public documentation website",
4700
+ "chapters": [
4701
+ "docs/architecture/22-website.md"
4702
+ ],
4703
+ "role": "Chinese architecture essay route using its Markdown source"
4704
+ },
4705
+ {
4706
+ "path": "website/src/pages/zh/changelog.astro",
4707
+ "category": "public documentation website",
4708
+ "chapters": [
4709
+ "docs/architecture/22-website.md"
4710
+ ],
4711
+ "role": "Chinese top-level Changelog route"
4712
+ },
4713
+ {
4714
+ "path": ".github/release-plan.mjs",
4715
+ "category": "launch and composition",
4716
+ "chapters": [
4717
+ "docs/architecture/07-run-configuration.md"
4718
+ ],
4719
+ "role": "Validate release events, publication authority, mutually exclusive channels and immutable preview version identity"
4720
+ },
4721
+ {
4722
+ "path": ".github/verify-npm-release.mjs",
4723
+ "category": "launch and composition",
4724
+ "chapters": [
4725
+ "docs/architecture/07-run-configuration.md"
4726
+ ],
4727
+ "role": "Compare public registry bytes with the candidate and verify exact-version SDK and CLI installs in isolated consumers"
4728
+ },
4729
+ {
4730
+ "path": "website/README.md",
4731
+ "category": "public documentation website",
4732
+ "chapters": [
4733
+ "docs/architecture/22-website.md"
4734
+ ],
4735
+ "role": "Explain documentation channel preparation, stable promotion and local website verification"
4736
+ },
4737
+ {
4738
+ "path": "website/docs-corrections/README.md",
4739
+ "category": "public documentation website",
4740
+ "chapters": [
4741
+ "docs/architecture/22-website.md"
4742
+ ],
4743
+ "role": "Define compatible stable-guide correction review and provenance requirements"
4744
+ },
4745
+ {
4746
+ "path": "website/docs-corrections/v0.5.2-channels.patch",
4747
+ "category": "public documentation website",
4748
+ "chapters": [
4749
+ "docs/architecture/22-website.md"
4750
+ ],
4751
+ "role": "Pin 0.5.2 installation commands and direct main-source instructions to Next without changing released CLI behavior"
4752
+ },
4753
+ {
4754
+ "path": "website/docs-release.json",
4755
+ "category": "public documentation website",
4756
+ "chapters": [
4757
+ "docs/architecture/22-website.md"
4758
+ ],
4759
+ "role": "Select the stable package, immutable source and compatible guide revisions, and correction patches"
4760
+ },
4761
+ {
4762
+ "path": "website/scripts/check-doc-channels.mjs",
4763
+ "category": "public documentation website",
4764
+ "chapters": [
4765
+ "docs/architecture/22-website.md"
4766
+ ],
4767
+ "role": "Verify built channel labels, navigation, search boundaries, homepage version and example download bytes"
4768
+ },
4769
+ {
4770
+ "path": "website/scripts/docs-channels.test.mjs",
4771
+ "category": "public documentation website",
4772
+ "chapters": [
4773
+ "docs/architecture/22-website.md"
4774
+ ],
4775
+ "role": "Deterministic verification fixtures for manifest validation, snapshot preparation and channel link rewriting"
4776
+ },
4777
+ {
4778
+ "path": "website/scripts/docs-release.mjs",
4779
+ "category": "public documentation website",
4780
+ "chapters": [
4781
+ "docs/architecture/22-website.md"
4782
+ ],
4783
+ "role": "Validate stable documentation selections and resolve required immutable Git source objects"
4784
+ },
4785
+ {
4786
+ "path": "website/scripts/prepare-docs.mjs",
4787
+ "category": "public documentation website",
4788
+ "chapters": [
4789
+ "docs/architecture/22-website.md"
4790
+ ],
4791
+ "role": "Materialize stable sources, apply guide-only corrections, remove stale snapshots and record channel provenance"
4792
+ },
4793
+ {
4794
+ "path": "website/scripts/verify-public-release.mjs",
4795
+ "category": "public documentation website",
4796
+ "chapters": [
4797
+ "docs/architecture/22-website.md"
4798
+ ],
4799
+ "role": "Gate Pages on exact npm integrity, canonical GitHub release checksum and matching source tag"
4800
+ },
4801
+ {
4802
+ "path": "website/src/lib/docs.ts",
4803
+ "category": "public documentation website",
4804
+ "chapters": [
4805
+ "docs/architecture/22-website.md"
4806
+ ],
4807
+ "role": "Expose channel metadata, available slugs, content collection selection and source revisions"
4808
+ },
4809
+ {
4810
+ "path": "website/src/pages/docs-metadata.json.ts",
4811
+ "category": "public documentation website",
4812
+ "chapters": [
4813
+ "docs/architecture/22-website.md"
4814
+ ],
4815
+ "role": "Publish documented versions, immutable revisions, correction hashes and route lists"
4816
+ },
4817
+ {
4818
+ "path": "website/src/pages/downloads/[...path].ts",
4819
+ "category": "public documentation website",
4820
+ "chapters": [
4821
+ "docs/architecture/22-website.md"
4822
+ ],
4823
+ "role": "Serve stable and next example sources and retain released-source legacy download aliases"
4824
+ },
4825
+ {
4826
+ "path": "website/docs-corrections/v0.5.2-source-rpc-trace.patch",
4827
+ "category": "public documentation website",
4828
+ "chapters": [
4829
+ "docs/architecture/22-website.md"
4830
+ ],
4831
+ "role": "Stable 0.5.2 source RPC and Trace compatibility corrections"
4472
4832
  }
4473
4833
  ]
4474
4834
  }
@@ -17,7 +17,7 @@
17
17
 
18
18
  ## #337 AutoResearch
19
19
 
20
- [#337](https://github.com/AnySwarm/anyswarm/issues/337) 采用 [45775d7 的 Core 和 Harness 合同](https://github.com/AnySwarm/anyswarm/tree/45775d7312e62a791ab8a097c5e7715dc3c9d548/docs/designs/core-harness)。demo 使用四个平级 Kimi K3 成员,成员自行认领方向、交流、复核与采用候选。宿主负责共享预算、可信评测和收尾。[#351](https://github.com/AnySwarm/anyswarm/issues/351) 为 demo 保留单次任务入口和 Trace,成员控制由 SDK/RPC 提供。自定义 evaluator 配置与正式 benchmark 适配复用同一 Harness。包外、正式评测和资源验收沿用 #337。[AutoResearch 实现](../../architecture/28-autoresearch.md)
20
+ [#337](https://github.com/AnySwarm/anyswarm/issues/337) 采用 [45775d7 的 Core 和 Harness 合同](https://github.com/AnySwarm/anyswarm/tree/45775d7312e62a791ab8a097c5e7715dc3c9d548/docs/designs/core-harness)。正式案例可配置四个平级成员,并提供同一任务的两成员配置。用户选择受支持的模型,Kimi K3 是可选配置。成员自行认领方向、交流、复核与采用候选。宿主负责共享预算、可信评测和收尾。[#351](https://github.com/AnySwarm/anyswarm/issues/351) 为 demo 保留单次任务入口和 Trace,成员控制由 SDK/RPC 提供。自定义 evaluator 配置与正式 benchmark 适配复用同一 Harness。包外、正式评测和资源验收沿用 #337,其中模型验收使用获准的真实模型。[AutoResearch 实现](../../architecture/28-autoresearch.md)
21
21
 
22
22
  ## 模块与路径
23
23
 
@@ -0,0 +1,41 @@
1
+ ---
2
+ title: AutoResearch
3
+ description: Independent research peers, shared patch reviews, and official FrontierCS-2 evaluation with a configurable model and budget.
4
+ section: APPLICATIONS
5
+ order: 9
6
+ ---
7
+
8
+ AutoResearch is a finite research application built on the same SDK as the simpler examples. Equal peers work in separate Sandboxes, choose directions, propose patches, and inspect and review one another’s candidates. The host owns the shared research Service, budget and Evaluator. See the [application README](../../examples/autoresearch/README.md) and [implementation manual](../architecture/28-autoresearch.md).
9
+
10
+ ## What the application delivers
11
+
12
+ The input is a target project, a research goal, a scoring direction and budget, plus trusted evaluation code. Peers receive working copies and can share candidate findings through the research Service. Before evaluation the host freezes the candidate; an evaluator result is attached to that candidate identity rather than accepted from the Agent’s own claimed score.
13
+
14
+ The result retains candidate authors and hashes, reviews, admitted training evaluations, selection and final evaluation records, and cleanup status. Inspect those records together in `anyswarm trace --root ./runs`. A valid low-scoring candidate is different from an invalid candidate or a Run without one. A review comment is not an evaluator result.
15
+
16
+ ## Run the official FrontierCS-2 task
17
+
18
+ The prepared example uses the pinned `binary_fuse_filter` task. Use an AnySwarm build containing [#359](https://github.com/AnySwarm/anyswarm/pull/359), a Linux x86-64 controller, Git LFS, Python 3, Docker Engine and Buildx with the containerd image store, and an authenticated OpenSandbox deployment with `dns+nft` egress. Prepare the Worker for your selected executor and configure a supported model. See the [setup instructions](../../examples/autoresearch/README.md#1-install-and-choose-your-backend) for the Docker, capacity and callback requirements.
19
+
20
+ ```bash
21
+ anyswarm eject autoresearch --dir ./research-demo
22
+ cd ./research-demo
23
+ npm install
24
+ # Set your model credentials and edit frontiercs2-config.ts as needed.
25
+ npm exec -- anyswarm run ./prepare-demo.ts --config ./frontiercs2-config.ts --check
26
+ npm exec -- anyswarm run ./prepare-demo.ts --config ./frontiercs2-config.ts
27
+ npm run start -- --config ./frontiercs2-config.ts \
28
+ --prompt 'Run the FrontierCS-2 task.' --output-dir ./runs
29
+ ```
30
+
31
+ The template starts with two peers, a shared 12-minute work window, four training admissions and up to 128 new model requests across the team. `--check` probes dependencies, routing and capacity without model inference. Preparation builds the official judge images and runs an independent no-model reference. Consult the [application README](../../examples/autoresearch/README.md#3-check-and-prepare) for the resource plan and reference requirements.
32
+
33
+ For another project, supply a `ResearchConfiguration` and trusted `train` and `final` evaluator callbacks. Run candidates in the evaluator's isolation and choose baseline material and scoring rules independently of the peers. [Run your own project](../../examples/autoresearch/README.md#use-your-own-project-and-evaluator)
34
+
35
+ ## Recorded evidence
36
+
37
+ - A native four-peer GPT-6.1 Sol run reached **53.071242 / strict PASS** on the independent final. The record links exact candidate bytes to official train and final payloads, and confirms cleanup. [Four-peer evidence](https://github.com/AnySwarm/anyswarm/pull/359#issuecomment-7383137655)
38
+ - The native two-peer GPT-6.1 Sol run finished with a valid independent final at **51.564952 / strict FAIL** against the official reference. The record shows cross-peer review, a derived candidate, and separate Runtime and evaluator cleanup. [Two-peer evidence](https://github.com/AnySwarm/anyswarm/pull/359#issuecomment-7384158140)
39
+ - A clean Debian VM reached official reference evaluation after setup and image builds. Train and final reached their time limits under QEMU-TCG. [VM evidence](https://github.com/AnySwarm/anyswarm/pull/359#issuecomment-7384227687)
40
+
41
+ The public website's `release-notes` fixture illustrates how to navigate Trace. The benchmark results above come from the separately linked Run records. To learn the SDK with fewer dependencies, use [First Harness](first-harness.md) or [Parallel Swarm](build-your-harness.md).