@anyswarm/core 0.5.1 → 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.
- package/AGENTS.md +20 -5
- package/README.md +69 -55
- package/dist/examples/README.md +138 -77
- package/dist/examples/authoring/README.md +4 -4
- package/dist/examples/autoresearch/README.md +108 -16
- package/dist/examples/autoresearch/REQUIREMENTS.zh.md +13 -12
- package/dist/examples/autoresearch/config.d.ts +48 -5
- package/dist/examples/autoresearch/config.js +57 -23
- package/dist/examples/autoresearch/demo.d.ts +12 -4
- package/dist/examples/autoresearch/demo.js +65 -22
- package/dist/examples/autoresearch/eject.json +2 -0
- package/dist/examples/autoresearch/frontiercs2-config.d.ts +2 -0
- package/dist/examples/autoresearch/frontiercs2-config.js +14 -0
- package/dist/examples/autoresearch/frontiercs2.d.ts +18 -1
- package/dist/examples/autoresearch/frontiercs2.js +71 -14
- package/dist/examples/autoresearch/prepare-demo.d.ts +1 -0
- package/dist/examples/autoresearch/prepare-demo.js +46 -0
- package/dist/examples/autoresearch/prepare.d.ts +105 -53
- package/dist/examples/autoresearch/prepare.js +126 -57
- package/dist/examples/autoresearch/project.d.ts +6 -95
- package/dist/examples/autoresearch/project.js +131 -45
- package/dist/examples/autoresearch/research-service.d.ts +16 -1
- package/dist/examples/autoresearch/research-service.js +84 -44
- package/dist/examples/code/README.md +25 -17
- package/dist/examples/code/REQUIREMENTS.zh.md +3 -3
- package/dist/examples/code/config.d.ts +1 -0
- package/dist/examples/first-harness/AGENTS.md +25 -0
- package/dist/examples/first-harness/README.md +136 -0
- package/dist/examples/first-harness/config.d.ts +9 -8
- package/dist/examples/first-harness/config.js +33 -26
- package/dist/examples/first-harness/eject.json +14 -0
- package/dist/examples/first-harness/handoff.js +3 -3
- package/dist/examples/first-harness/harness.d.ts +14 -18
- package/dist/examples/first-harness/harness.js +102 -77
- package/dist/examples/first-harness/input/README.md +7 -0
- package/dist/examples/first-harness/session.js +2 -1
- package/dist/examples/first-harness/tsconfig.json +2 -1
- package/dist/examples/harness-session/README.md +4 -4
- package/dist/examples/lead-worker/README.md +1 -1
- package/dist/examples/lead-worker/project-config.d.ts +1 -0
- package/dist/examples/messages/README.md +2 -2
- package/dist/examples/notes/README.md +5 -5
- package/dist/examples/notes/config.d.ts +1 -0
- package/dist/examples/parallel-swarm/AGENTS.md +32 -0
- package/dist/examples/parallel-swarm/README.md +136 -0
- package/dist/examples/parallel-swarm/board-service.js +25 -8
- package/dist/examples/parallel-swarm/board.d.ts +31 -1
- package/dist/examples/parallel-swarm/board.js +98 -13
- package/dist/examples/parallel-swarm/config.d.ts +11 -0
- package/dist/examples/parallel-swarm/config.js +39 -0
- package/dist/examples/parallel-swarm/eject.json +5 -0
- package/dist/examples/parallel-swarm/harness.d.ts +26 -20
- package/dist/examples/parallel-swarm/harness.js +77 -76
- package/dist/examples/parallel-swarm/report.d.ts +12 -0
- package/dist/examples/parallel-swarm/report.js +30 -0
- package/dist/examples/peermesh/README.md +1 -1
- package/dist/examples/peermesh/project-config.d.ts +1 -0
- package/dist/examples/services/agent-control/README.md +1 -1
- package/dist/examples/services/mathlib-search/README.md +1 -1
- package/dist/examples/services/mcp-managed/README.md +1 -1
- package/dist/examples/services/persistent-board/README.md +6 -3
- package/dist/examples/subagents/AGENTS.md +35 -0
- package/dist/examples/subagents/README.md +129 -93
- package/dist/examples/subagents/config.d.ts +2 -10
- package/dist/examples/subagents/config.js +9 -16
- package/dist/examples/subagents/eject.json +17 -0
- package/dist/examples/subagents/handoff-config.d.ts +41 -0
- package/dist/examples/subagents/handoff-config.js +13 -0
- package/dist/examples/subagents/model.d.ts +3 -0
- package/dist/examples/subagents/model.js +19 -0
- package/dist/examples/substrate/README.md +12 -6
- package/dist/examples/substrate/config.d.ts +1 -0
- package/dist/examples/substrate/project-config.d.ts +1 -0
- package/dist/examples/super/README.md +34 -22
- package/dist/examples/super/actions.d.ts +1 -1
- package/dist/examples/super/actions.js +11 -11
- package/dist/examples/super/config.js +3 -3
- package/dist/examples/super/eject.json +1 -1
- package/dist/examples/super/location.js +1 -1
- package/dist/examples/super/operator.d.ts +1 -0
- package/dist/examples/super/operator.js +31 -0
- package/dist/examples/super/project.d.ts +0 -107
- package/dist/examples/super/project.js +1 -3
- package/dist/examples/taskpool/README.md +1 -1
- package/dist/examples/taskpool/config.d.ts +1 -0
- package/dist/examples/taskpool/deploy/service-hosts/service-authority-snapshot.d.ts +4 -4
- package/dist/scripts/anyswarm-arguments.d.ts +7 -25
- package/dist/scripts/anyswarm-arguments.js +69 -97
- package/dist/scripts/anyswarm-eject.js +1 -1
- package/dist/scripts/anyswarm-harnesses.d.ts +0 -1
- package/dist/scripts/anyswarm-harnesses.js +1 -22
- package/dist/scripts/anyswarm-installation.d.ts +7 -40
- package/dist/scripts/anyswarm-installation.js +17 -291
- package/dist/scripts/anyswarm-launch.d.ts +6 -36
- package/dist/scripts/anyswarm-launch.js +32 -81
- package/dist/scripts/anyswarm-progress.d.ts +6 -0
- package/dist/scripts/anyswarm-progress.js +133 -0
- package/dist/scripts/anyswarm-project.d.ts +1 -9
- package/dist/scripts/anyswarm-project.js +40 -127
- package/dist/scripts/anyswarm-source-runner.js +9 -41
- package/dist/scripts/anyswarm.js +6 -26
- package/dist/scripts/build-provenance.json +1 -1
- package/dist/scripts/generate-architecture-coverage.js +1 -1
- package/dist/scripts/generate-architecture-prompts.js +18 -10
- package/dist/scripts/local-environment.d.ts +13 -7
- package/dist/scripts/local-environment.js +73 -21
- package/dist/scripts/local-setup.d.ts +3 -0
- package/dist/scripts/local-setup.js +153 -118
- package/dist/scripts/pack-release.js +31 -4
- package/dist/src/core/index.js +1 -1
- package/dist/src/core/sandbox/opensandbox-backend.js +10 -4
- package/dist/src/core/sandbox/sandbox-connection.d.ts +9 -2
- package/dist/src/core/sandbox/sandbox-connection.js +22 -7
- package/dist/src/core/worker-image.js +1 -1
- package/dist/src/harness/project-harness.d.ts +1 -0
- package/dist/src/harness/project-harness.js +5 -4
- package/dist/src/harness/project-rpc-client.js +19 -0
- package/dist/src/harness/project-runtime.js +3 -1
- package/dist/src/harness/typescript-loader.d.ts +2 -0
- package/dist/src/harness/typescript-loader.js +26 -8
- package/dist/src/trace-viewer/command.mjs +6 -3
- package/dist/src/trace-viewer/public/app.js +239 -59
- package/dist/src/trace-viewer/public/index.html +5 -0
- package/dist/src/trace-viewer/public/style.css +22 -0
- package/dist/src/trace-viewer/reader.mjs +242 -26
- package/dist/src/trace-viewer/run-root.d.mts +1 -0
- package/dist/src/trace-viewer/run-root.mjs +7 -0
- package/dist/src/trace-viewer/server.mjs +3 -1
- package/docs/INDEX.md +11 -9
- package/docs/architecture/04-services.md +1 -1
- package/docs/architecture/06-observability-experiments.md +21 -7
- package/docs/architecture/07-run-configuration.md +118 -19
- package/docs/architecture/08-prompts.md +21 -2
- package/docs/architecture/10-service-api-reference.md +12 -5
- package/docs/architecture/12-code-coverage.md +157 -115
- package/docs/architecture/15-core-runtime.md +1 -1
- package/docs/architecture/16-pi-opensandbox-backend.md +2 -0
- package/docs/architecture/17-harness-reporting.md +79 -1
- package/docs/architecture/22-website.md +52 -20
- package/docs/architecture/23-project-harness.md +109 -37
- package/docs/architecture/26-code.md +20 -5
- package/docs/architecture/27-personal.md +23 -8
- package/docs/architecture/28-autoresearch.md +18 -12
- package/docs/architecture/INDEX.md +1 -2
- package/docs/architecture/prompts/11-first-sdk-harness.md +9 -9
- package/docs/architecture/prompts/16-parallel-swarm.md +46 -13
- package/docs/architecture/prompts/22-autoresearch.md +9 -2
- package/docs/architecture/prompts/source-manifest.json +76 -52
- package/docs/architecture/source-map.json +445 -105
- package/docs/designs/core-harness/01-core.md +2 -2
- package/docs/designs/core-harness/06-project-harness.md +3 -3
- package/docs/designs/core-harness/README.md +2 -2
- package/docs/en/agents.md +1 -1
- package/docs/en/autoresearch.md +41 -0
- package/docs/en/blog/100b-tokens.md +157 -0
- package/docs/en/build-your-harness.md +47 -22
- package/docs/en/changelog.md +29 -1
- package/docs/en/first-harness.md +40 -32
- package/docs/en/harnesses/index.md +23 -23
- package/docs/en/harnesses/lead-worker.md +1 -1
- package/docs/en/harnesses/peermesh.md +2 -2
- package/docs/en/harnesses/subagents.md +10 -31
- package/docs/en/harnesses/substrate.md +4 -4
- package/docs/en/harnesses/taskpool.md +2 -2
- package/docs/en/latest.md +30 -5
- package/docs/en/overview.md +22 -22
- package/docs/en/quickstart.md +69 -56
- package/docs/en/reference/api.md +1 -1
- package/docs/en/reference/cli.md +47 -85
- package/docs/en/sandbox.md +3 -3
- package/docs/en/trace-viewer.md +32 -12
- package/docs/operations/trace-viewer.md +26 -11
- package/docs/third-party-notices.md +0 -1
- package/docs/workflows/development.md +160 -118
- package/docs/workflows/release-and-docs-versioning.md +207 -54
- package/docs/workflows/release-cli-acceptance.md +162 -0
- package/docs/zh/agents.md +1 -1
- package/docs/zh/autoresearch.md +41 -0
- package/docs/zh/blog/100b-tokens.md +102 -0
- package/docs/zh/build-your-harness.md +48 -23
- package/docs/zh/changelog.md +29 -1
- package/docs/zh/first-harness.md +43 -35
- package/docs/zh/harnesses/index.md +23 -23
- package/docs/zh/harnesses/lead-worker.md +1 -1
- package/docs/zh/harnesses/peermesh.md +2 -2
- package/docs/zh/harnesses/subagents.md +10 -31
- package/docs/zh/harnesses/substrate.md +4 -4
- package/docs/zh/harnesses/taskpool.md +2 -2
- package/docs/zh/latest.md +30 -5
- package/docs/zh/overview.md +23 -23
- package/docs/zh/quickstart.md +66 -57
- package/docs/zh/reference/api.md +1 -1
- package/docs/zh/reference/cli.md +19 -79
- package/docs/zh/sandbox.md +3 -3
- package/docs/zh/trace-viewer.md +32 -12
- package/examples/README.md +138 -77
- package/examples/authoring/README.md +4 -4
- package/examples/autoresearch/README.md +108 -16
- package/examples/autoresearch/REQUIREMENTS.zh.md +13 -12
- package/examples/autoresearch/config.ts +64 -25
- package/examples/autoresearch/demo.ts +75 -22
- package/examples/autoresearch/eject.json +2 -0
- package/examples/autoresearch/frontiercs2-config.ts +15 -0
- package/examples/autoresearch/frontiercs2.ts +64 -11
- package/examples/autoresearch/prepare-demo.ts +44 -0
- package/examples/autoresearch/prepare.ts +134 -60
- package/examples/autoresearch/project.ts +120 -44
- package/examples/autoresearch/research-service.ts +91 -41
- package/examples/code/README.md +25 -17
- package/examples/code/REQUIREMENTS.zh.md +3 -3
- package/examples/first-harness/AGENTS.md +25 -0
- package/examples/first-harness/README.md +136 -0
- package/examples/first-harness/config.ts +41 -27
- package/examples/first-harness/eject.json +14 -0
- package/examples/first-harness/handoff.ts +3 -3
- package/examples/first-harness/harness.ts +104 -72
- package/examples/first-harness/input/README.md +7 -0
- package/examples/first-harness/session.ts +2 -1
- package/examples/first-harness/tsconfig.json +2 -1
- package/examples/harness-session/README.md +4 -4
- package/examples/lead-worker/README.md +1 -1
- package/examples/messages/README.md +2 -2
- package/examples/notes/README.md +5 -5
- package/examples/parallel-swarm/AGENTS.md +32 -0
- package/examples/parallel-swarm/README.md +136 -0
- package/examples/parallel-swarm/board-service.ts +28 -9
- package/examples/parallel-swarm/board.ts +107 -13
- package/examples/parallel-swarm/config.ts +47 -0
- package/examples/parallel-swarm/eject.json +5 -0
- package/examples/parallel-swarm/harness.ts +83 -71
- package/examples/parallel-swarm/report.ts +33 -0
- package/examples/peermesh/README.md +1 -1
- package/examples/services/agent-control/README.md +1 -1
- package/examples/services/mathlib-search/README.md +1 -1
- package/examples/services/mcp-managed/README.md +1 -1
- package/examples/services/persistent-board/README.md +6 -3
- package/examples/subagents/AGENTS.md +35 -0
- package/examples/subagents/README.md +129 -93
- package/examples/subagents/config.ts +9 -15
- package/examples/subagents/eject.json +17 -0
- package/examples/subagents/handoff-config.ts +14 -0
- package/examples/subagents/model.ts +20 -0
- package/examples/substrate/README.md +12 -6
- package/examples/super/README.md +34 -22
- package/examples/super/actions.ts +11 -11
- package/examples/super/config.ts +3 -3
- package/examples/super/eject.json +1 -1
- package/examples/super/location.ts +1 -1
- package/examples/super/operator.ts +28 -0
- package/examples/super/project.ts +1 -3
- package/examples/taskpool/README.md +1 -1
- package/npm-shrinkwrap.development.json +46 -1538
- package/npm-shrinkwrap.json +10 -43
- package/package.development.json +3 -6
- package/package.json +3 -5
- package/scripts/anyswarm-arguments.ts +67 -96
- package/scripts/anyswarm-eject.ts +1 -1
- package/scripts/anyswarm-harnesses.ts +1 -18
- package/scripts/anyswarm-installation.ts +18 -294
- package/scripts/anyswarm-launch.ts +30 -102
- package/scripts/anyswarm-progress.ts +125 -0
- package/scripts/anyswarm-project.ts +31 -123
- package/scripts/anyswarm-source-runner.ts +9 -36
- package/scripts/anyswarm.ts +4 -24
- package/scripts/generate-architecture-coverage.ts +1 -1
- package/scripts/generate-architecture-prompts.ts +21 -10
- package/scripts/local-environment.ts +79 -21
- package/scripts/local-setup.ts +150 -105
- package/scripts/pack-release.ts +28 -4
- package/src/core/index.ts +1 -1
- package/src/core/sandbox/opensandbox-backend.ts +10 -4
- package/src/core/sandbox/sandbox-connection.ts +22 -7
- package/src/core/worker-image.ts +1 -1
- package/src/harness/project-harness.ts +5 -4
- package/src/harness/project-rpc-client.ts +23 -0
- package/src/harness/project-runtime.ts +2 -1
- package/src/harness/typescript-loader.ts +28 -8
- package/src/trace-viewer/command.mjs +6 -3
- package/src/trace-viewer/public/app.js +239 -59
- package/src/trace-viewer/public/index.html +5 -0
- package/src/trace-viewer/public/style.css +22 -0
- package/src/trace-viewer/reader.mjs +242 -26
- package/src/trace-viewer/run-root.d.mts +1 -0
- package/src/trace-viewer/run-root.mjs +7 -0
- package/src/trace-viewer/server.mjs +3 -1
- package/dist/scripts/anyswarm-applications.d.ts +0 -19
- package/dist/scripts/anyswarm-applications.js +0 -19
- package/dist/scripts/anyswarm-tui-config.d.ts +0 -36
- package/dist/scripts/anyswarm-tui-config.js +0 -189
- package/dist/scripts/anyswarm-tui-session.d.ts +0 -66
- package/dist/scripts/anyswarm-tui-session.js +0 -304
- package/dist/scripts/anyswarm-tui-terminal.d.ts +0 -41
- package/dist/scripts/anyswarm-tui-terminal.js +0 -154
- package/dist/scripts/anyswarm-tui.d.ts +0 -2
- package/dist/scripts/anyswarm-tui.js +0 -1012
- package/docs/architecture/25-foreground-tui.md +0 -51
- package/scripts/anyswarm-applications.ts +0 -39
- package/scripts/anyswarm-tui-config.ts +0 -174
- package/scripts/anyswarm-tui-session.ts +0 -295
- package/scripts/anyswarm-tui-terminal.ts +0 -147
- package/scripts/anyswarm-tui.ts +0 -912
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
# Code application
|
|
2
2
|
|
|
3
|
-
Code is
|
|
3
|
+
Code is an ejectable TypeScript Harness and an advanced SDK example. The [issue](https://github.com/AnySwarm/anyswarm/issues/336) combines the [reviewed project entry](https://github.com/AnySwarm/anyswarm/blob/45775d7312e62a791ab8a097c5e7715dc3c9d548/docs/designs/core-harness/06-project-harness.md) with interactive turn integration. The project on the host supplies the baseline and receives normal authorized changes. The Runtime owns the writable Root and any isolated editors it delegates to.
|
|
4
4
|
|
|
5
5
|
## Entry and team
|
|
6
6
|
|
|
7
|
-
`
|
|
7
|
+
`anyswarm eject code --dir ./code-src` exports the source project and its pinned SDK.
|
|
8
|
+
Install it with npm and run `npm run start -- --cwd <project> --prompt <task>` for
|
|
9
|
+
one task. The host resolves the directory, prepares a private output directory
|
|
10
|
+
and captures the initial project using the common admission policy. For later
|
|
11
|
+
turns, a caller uses `createHarnessSession` or starts the same source with
|
|
12
|
+
`--mode rpc --lifetime interactive` and submits subsequent inputs to that Session.
|
|
8
13
|
|
|
9
14
|
Code reads the executor, Sandbox, image, models, optional `model` alias and `maxEditors`. The alias defaults to `default`. `maxEditors` is 1 or 2 and defaults to 2. The first task seeds a writable Root from the project capture. Root reads and edits that copy and can run the available tools. The Root instructions call for direct work on ordinary tasks and delegation when the user asks for it. A simple task uses one Sandbox. Each delegated editor adds a separate Sandbox seeded from the same start-of-turn baseline, and is stopped once its result has been captured.
|
|
10
15
|
|
|
@@ -20,9 +25,19 @@ Code uses the same authenticated Service and Runtime spawn, send and settled-eve
|
|
|
20
25
|
|
|
21
26
|
Both roles can call `ask` when the owner client accepts questions. Pi exposes direct Service tools and Codex uses `swarm code` in the Sandbox. The Service also publishes live stage, turn, editor IDs and file counters. Session controls can steer or stop an individual running member. Interrupting an editor excludes its proposal while Root and other work can continue. Interrupting Root fences the active turn and requests interruptions for the other participants. Work waits default to 300 seconds per editor and an additional 60 seconds for Root. Runtime close waits default to 30 seconds.
|
|
22
27
|
|
|
23
|
-
The
|
|
28
|
+
The Session publishes Code's stage changes and each completed turn's writeback
|
|
29
|
+
outcome, changed paths, verification command and exit code where available.
|
|
30
|
+
An SDK/RPC client can enable questions and answer by question ID, steer or
|
|
31
|
+
interrupt a member, or stop and wait for cleanup. An interrupted turn leaves an
|
|
32
|
+
interactive Session available for later tasks. A one-shot process waits for
|
|
33
|
+
cleanup and prints the saved report path. A failed, partial or interrupted last
|
|
34
|
+
turn produces a failing exit status.
|
|
24
35
|
|
|
25
|
-
|
|
36
|
+
The input descriptor declares `diff`. A client can send `/diff` as a Session
|
|
37
|
+
input to retrieve the last completed turn, even while the next task is running.
|
|
38
|
+
It emits up to 12 paths, a preview of up to eight diff lines and the retained
|
|
39
|
+
patch path. It prefers the applied patch and falls back to the candidate. The
|
|
40
|
+
operation performs no capture, model request or worktree write.
|
|
26
41
|
|
|
27
42
|
## Integration, check and writeback
|
|
28
43
|
|
|
@@ -36,4 +51,4 @@ The current Core file transport needs a complete snapshot for result download an
|
|
|
36
51
|
|
|
37
52
|
## Evidence and authoring
|
|
38
53
|
|
|
39
|
-
`
|
|
54
|
+
`anyswarm eject code` copies the application manifest's TypeScript files and binds the exported SDK to the installed bytes. The source uses public Harness, Runtime, Service and file APIs. The same design supports one-shot benchmark tasks with an explicitly configured project and Worker. The focused native regression exercises the actual local Worker with a controlled model endpoint. It checks single-Root editing and reuse, user edits between turns, concurrent Root and editor work, a stopped editor with partial writeback, rejected verification and owned container cleanup. Archive acceptance checks the exported source before and after an author edit. Real-model acceptance and any ProgramBench results have separate evidence in the linked Issue or PR. The driver resolves the compiled Code module from the selected CLI package and starts it with an explicit one-shot prompt.
|
|
@@ -4,15 +4,18 @@ The Personal Harness accepts user requests from an explicitly configured GitHub
|
|
|
4
4
|
|
|
5
5
|
## Setup and ownership
|
|
6
6
|
|
|
7
|
-
The
|
|
7
|
+
The ejected `super` example provides `project.ts` for SDK callers and
|
|
8
|
+
`operator.ts` for explicit commands. After installing the ejected SDK, use
|
|
9
|
+
`npm exec -- anyswarm run ./operator.ts setup`, then `start`, `jobs` or `stop`
|
|
10
|
+
from the same launch directory. Setup accepts the repository, allowed requesters and file scope as arguments, infers the GitHub repository from `origin` when configured, and opts into automatic branch and PR writes only with `--publish`. The configured Pi installation and model come from the host. With no requester override it uses the authenticated login. The command reads the actual account, repository, comments, default branch and each selected file. It reports the credential permission sets and how to verify write authority on GitHub. GitHub tokens come from host environment or the existing GitHub CLI credential store. Model headers come from host configuration. Neither is included in settings, the source export or the work input.
|
|
8
11
|
|
|
9
12
|
`configured` means the GitHub settings were saved. The setup result marks the repository, comment and selected content reads as verified. Reply and publication writes remain unverified until real use. If GitHub denies repository push in its permissions response, Personal reports that denial and rejects setup with automatic publication enabled. Backend configuration is validated locally, separately from Worker and model connectivity. A Codex selection reports that Personal requires Pi. Missing or invalid model variables report the specific setting to fix. Setup performs GitHub reads and local checks. The first work item exercises Worker and model connectivity. A reply and an approved publication exercise their respective GitHub writes.
|
|
10
13
|
|
|
11
|
-
A private state directory is keyed by the launch project path.
|
|
14
|
+
A private state directory is keyed by the launch project path. `setup` validates GitHub read authority before acquiring ownership and atomically replacing settings. An exclusive Node SQLite transaction in `daemon.lock.sqlite` protects setup, daemon startup and foreground export runs without holding locks on the Inbox database. Node closes the lock connection at normal exit and the OS releases its file lock on process death. The lock file remains for later contenders. Stop a running older candidate before switching versions. The implementation uses POSIX Unix sockets and Node SQLite on Linux and macOS. The GitHub and Pi acceptance environment is Linux.
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
`start` probes for a live socket before spawning a detached Node process through the generic loader. The child obtains ownership, checks that an older observer is absent and removes a stale socket owned by the current user. It creates one interactive, question-capable HarnessSession and admits a Run from a private empty launch directory. The Unix socket serves JSONL using `runProjectRpc` with `detachOnDisconnect`. Closing a client ends its subscription. Stop sends the ordinary Session stop request and the stand-alone action waits for the final cleanup receipt. Socket startup failure stops admitted work before releasing ownership. The daemon log reports listening, exit outcome and cleanup. The detached command is the same operator entry with its internal serve action enabled by the application. The operator owns signals and exits after returning its JSON result or error.
|
|
14
17
|
|
|
15
|
-
Before launching the daemon,
|
|
18
|
+
Before launching the daemon, `start` validates the local backend configuration and locates the GitHub credential. A Run that fails during GitHub identity verification, backend configuration, Runtime initialization or processing records a stage, stable code and operator hint in the Inbox, the Harness event and the daemon log. An account mismatch stops before creating a Runtime. A Runtime initialization failure points to `anyswarm doctor --smoke` and the OpenSandbox and callback configuration. These messages use fixed text and omit credentials and underlying error data. `start` associates a failure with its own launch ID, including when the socket has already closed. `jobs` and `logs` include the latest saved failure. A new Run that reaches running clears the saved failure.
|
|
16
19
|
|
|
17
20
|
## Receipt and routing
|
|
18
21
|
|
|
@@ -28,7 +31,7 @@ The host pins a GitHub commit, reads only validated regular file blobs, and over
|
|
|
28
31
|
|
|
29
32
|
## Publication and restarts
|
|
30
33
|
|
|
31
|
-
Publication is optional. The outbox first records a branch checkpoint, then creates the dedicated work branch at the pinned base. It records a commit checkpoint and asks GitHub to update that branch with an exact expected head. It records a PR checkpoint and creates the Draft PR. A follow-up uses the same branch and PR. When automatic publication is disabled, the patch reply is delivered first. The latest eligible artifact then becomes available for an owner decision.
|
|
34
|
+
Publication is optional. The outbox first records a branch checkpoint, then creates the dedicated work branch at the pinned base. It records a commit checkpoint and asks GitHub to update that branch with an exact expected head. It records a PR checkpoint and creates the Draft PR. A follow-up uses the same branch and PR. When automatic publication is disabled, the patch reply is delivered first. The latest eligible artifact then becomes available for an owner decision. `approve <work>` records approval for that one artifact in the same SQLite transaction that queues publication. It wakes the poll loop and retains the original comment receipt. The later publication reply uses a distinct marker and receipt. `reject <work> [reason]` records a local reason and selects the most recent confirmed artifact as the follow-up baseline. Review of an already rejected artifact can begin with a new Router turn. Enabling automatic publication and restarting queues the last eligible pending artifact in each work. An uncertain external write stays under reconciliation even if the settings change. The operator can retry permission-denied publication after fixing GitHub authority. The reply is sent to the exact Issue or PR conversation that requested this turn. It includes the Router's response, available verified patch/PR evidence and validation details. The host records the returned GitHub comment URL as the delivery receipt. Work completion, publication, conversation reply and resource cleanup have independent status.
|
|
32
35
|
|
|
33
36
|
On restart, local execution without a prepared result can be rebuilt from the last verified artifact. Prepared results and outbox checkpoints remain in SQLite. For an uncertain mutation, the host reads the remote branch, expected commit marker, PR marker or comment marker to reconcile the same action. If it cannot establish the outcome, it shows the pending reconciliation and keeps that work fenced behind the unknown event. It keeps polling unrelated work. It does not replay the uncertain mutation. Runtime crash cleanup uses the original durable callback settings when configured and reports pending cleanup when it cannot verify deletion. Cross-host and cross-boot original Sandbox recovery are outside this contract.
|
|
34
37
|
|
|
@@ -36,8 +39,20 @@ Recording a PR number and marking that PR's feedback unread are one SQLite trans
|
|
|
36
39
|
|
|
37
40
|
## View and intervene
|
|
38
41
|
|
|
39
|
-
The Personal Service supplies the bounded live view of source health, active Agents, recent events and delivery.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
The Personal Service supplies the bounded live view of source health, active Agents, recent events and delivery. `jobs [work]` reads the durable queue, verified artifact path and digest, question, publication, reply, conflict and cleanup projections. Work selectors resolve `#<issue>` by the original Issue, or a unique hexadecimal prefix. Ambiguous prefixes require more characters.
|
|
43
|
+
|
|
44
|
+
SDK clients call `observe` in the daemon module to connect a
|
|
45
|
+
`HarnessRpcClient` to the private Unix socket. Disconnecting the client releases
|
|
46
|
+
its subscription and socket. The daemon continues to own the Run. Use
|
|
47
|
+
`anyswarm trace --root <state-directory>/runs` for Runtime evidence.
|
|
48
|
+
|
|
49
|
+
The application emits business receipts, Router questions and publish approvals
|
|
50
|
+
through the Session. An approval includes the saved diff statistic and Reviewer
|
|
51
|
+
findings. Each response is bound to the durable event and verifies that the
|
|
52
|
+
decision is still current. The live question expires after one hour. The durable
|
|
53
|
+
action remains available through `jobs` and the named operator command.
|
|
54
|
+
`ask #<issue> <text>` uses the same input queue as GitHub, `answer <work> <text>`
|
|
55
|
+
addresses the pending Router question, and `stop-work <work>` stops one work item
|
|
56
|
+
and its owned members.
|
|
42
57
|
|
|
43
58
|
The prompt text and send order are documented in [Prompts](08-prompts.md).
|
|
@@ -1,30 +1,36 @@
|
|
|
1
1
|
# AutoResearch
|
|
2
2
|
|
|
3
|
-
AutoResearch is a finite-run Harness with equal research peers. The search loop and research Service are shared by a custom trusted evaluator and the FrontierCS-2 demo.
|
|
3
|
+
AutoResearch is a finite-run Harness with equal research peers. The search loop and research Service are shared by a custom trusted evaluator and the FrontierCS-2 demo. It is the flagship one-shot CLI showcase and uses the common task Session, source runner and Trace records. The applicable product requirements are [#337](https://github.com/AnySwarm/anyswarm/issues/337), the owner’s subsequent four-peer decision, [#344](https://github.com/AnySwarm/anyswarm/issues/344) and the [integration review](https://github.com/AnySwarm/anyswarm/pull/342#issuecomment-7346884457), [#351](https://github.com/AnySwarm/anyswarm/issues/351), and the [Core and Harness design revision](https://github.com/AnySwarm/anyswarm/tree/45775d7312e62a791ab8a097c5e7715dc3c9d548/docs/designs/core-harness).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Configuration, preparation and launch
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The exported `frontiercs2-config.ts` builds a trusted configuration without loading prepared material. It uses a regular `ModelConfig`, the connection and Worker saved by `anyswarm setup`, and explicit overrides for the executor, image, Sandbox and callback. The template reads provider, model ID, HTTP request URL, optional bearer token and protocol from the environment. It sets two Peers, a 720-second work window, four train admissions and 128 Gateway attempts for the whole team. The caller can change budget and goal. The four-peer preset supplies 720 seconds and eight train admissions; a missing model-request cap is reported as uncapped. Prepared manifests do not select the model or budget, including on reads of existing version 2 manifests. K3's route rule applies only to the corresponding provider/model. The same exported configuration is used by both preparation and the normal foreground Harness.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
`anyswarm run ./prepare-demo.ts --config ./frontiercs2-config.ts --check` loads the chosen trusted module, checks Linux x86-64, Git, LFS, Python, the Pumpkin download and extraction tools, Docker Buildx, context, daemon and its containerd image store, CPU, memory, disk and inodes, authenticated OpenSandbox Lifecycle access, declared `dns+nft`, Worker image and callback. The report gives one action per unmet check, prints JSON, and exits 2 on configuration or preparation failure. It checks the immutable image recorded by local setup, or the explicit image in the configuration, and calls out that a remote provider must verify its own image and Worker capacity. The controller plan lists a bridge, one active judge, controller margin and image-build headroom for prepare, and counts each Worker at its placement for run. The benchmark still runs its official judge on the controller's Docker context. The model probe sends bounded HEAD, with five seconds, supplied headers and no redirect following. Denial and network failures have separate remedies. A successful HTTP check or a reachable POST-only endpoint does not establish actual inference. Inference awaits the first real turn. The check-only path skips downloading material and running the reference.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
The image-store check confirms the reported storage driver. Actual image import and digest tagging take place during the reference build. If Pumpkin reports a failed tag followed by `No such image`, the preparation report preserves the official error and suggests Docker Engine 29 with its official Buildx plugin and the containerd store. Other preparation errors retain their original diagnostic.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Dropping `--check` takes an exclusive state lock, uses sparse Git to fetch the pinned task and shared recipes, loads LFS files and verifies the Pumpkin pin. On cold preparation it bootstraps the checksum-pinned Pumpkin release under a private cache with a child-only `022` umask so the judge can execute `sandboxd`. If that release was already extracted with a restrictive umask, it restores only the missing executable bits on the cached `sandboxd` file. The caller’s umask and recorded run directories keep their original permissions. Preparation checks the official no-model reference in an independent record directory. It checks a positive train score, a legal final result tied to the submitted payload, zero model requests and confirmed cleanup. It copies the pinned materials into a host-owned bridge tree and adds a minimal model-free agent role. The bridge image uses a pinned Ubuntu base. This role receives the candidate tar in its writable `/pumpkin` scratch space, invokes its official grants and removes each temporary tar on exit. Prepare verifies the judge and bridge image identities, train grant, scratch access and that no role container remains. The atomic manifest records Docker context, source and bridge fingerprints, image identities and reference record. Repeat preparation reuses those records and images after checking them. A different context requires a separate state directory. The lock is removed on exit and prior reference records are retained.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
`anyswarm run ./project.ts --config ./frontiercs2-config.ts --prompt <objective>` resolves the configured starter path before workspace capture. The Harness compares the captured manifest against the verified tracked starter paths and hashes before any Runtime or evaluator starts. The evaluator starts the official workflow and finds exactly one container with the matching run and role labels. It verifies images and requested train admissions against the official grant. The Workers receive copies of the starter with callback-only egress. Reference, judge code, hidden final data and Docker access stay at the trusted boundary. The generic Harness supports `--harness autoresearch --config ./research.ts`, explicit `--cwd` and SDK/RPC workspace input. It uses the provided evaluator under task lifetime.
|
|
16
16
|
|
|
17
17
|
## Peer and evaluation lifecycle
|
|
18
18
|
|
|
19
|
-
The Harness creates one Runtime and
|
|
19
|
+
The Harness creates one Runtime and shared model alias. It starts all Peers concurrently, waits for all of them, records `team.ready` and starts the search clock and initial turns together. Official workflow and Worker lifetimes include startup, the work window and evaluation/cleanup margins. All new Gateway attempts share the configured cap and a replay with the same request identity is not a new attempt. Research turns stop on the deadline, target, shutdown, failed work or train budget. If `continueAfterTrainBudget` is enabled, remaining turns may review and run local checks within the same model and time limits. When those peers settle and the recorded Gateway attempts reach the cap, the stop event and result record `model-request-budget`. The recorded phase timestamps separate startup, work, final and cleanup.
|
|
20
20
|
|
|
21
|
-
The Harness registers its owned Runtime with the public Session controls.
|
|
21
|
+
The Harness registers its owned Runtime with the public Session controls. The SDK/RPC `agent.send` operation uses native steer on the selected member's active turn. An idle peer returns the native non-admission receipt and does not get an independent turn. `agent.interrupt` cancels the current native turn and pending native inputs. The peer loop can schedule a new turn after a confirmed interrupt and current-turn settlement. An unknown interrupt prevents automatic redispatch. `agent.stop` synchronously fences that peer's scheduler, aborts its wait and stops its allocated Agent. A retry reads the original stop state. The peer remains in the record, and the other peers and already queued evaluations retain their existing budget and state. An explicit stop of the entire Run fences all further work, aborts active train and final, and proceeds to cleanup.
|
|
22
22
|
|
|
23
|
-
Each peer can read the Board, claim a direction by normalized text, send a targeted message, publish findings, read segments of another candidate patch and record a review of a version it has read. Peers submit a patch by writing `.anyswarm-candidate.patch` inside their own workspace and passing a summary and optional predecessor identity to the research Service. Bridge authentication supplies caller identity. The host snapshots the file by request identity, hashes the bytes and stores an immutable candidate. Identical bytes reuse the original candidate identity. The host
|
|
23
|
+
Each peer can read the Board, claim a direction by normalized text, send a targeted message, publish findings, read segments of another candidate patch and record a review of a version it has read. Peers submit a patch by writing `.anyswarm-candidate.patch` inside their own workspace and passing a summary and optional predecessor identity to the research Service. Bridge authentication supplies caller identity. The host snapshots the file by request identity, hashes the bytes and stores an immutable candidate. Identical bytes reuse the original candidate identity. Per-caller mutation receipts bind the operation ID to the action and normalized payload. An identical retry receives the original result; a conflicting operation returns an error. The receipt table is bounded. A serialized host commit makes the bytes durable before charging a slot and queuing evaluation. A failed commit does not use a train slot. Identical patch bytes reuse the prior candidate. Once a new patch becomes readable, the Harness offers it to each other eligible peer who has yet to receive a review offer in this Run. It attempts conditional active steer if the executor supports it and no owner interrupt is pending. Accepted steer is recorded as a notice. The peer’s next regular turn can carry the prompt once if a matching review or derivative has not arrived. It can do so after the train quota has filled, while the work deadline and stop fences still apply. The notice never wakes an idle or stopped peer through steer. Publication of a review requires another peer’s candidate and a complete ordered read. The journal records the immutable SHA-256 on candidate registration, completion of a patch read, review publication and the corresponding parent hash on a derivative. Compare patch contents to check semantic adoption.
|
|
24
24
|
|
|
25
|
-
Train calls queue serially. The official adapter packages the exact patch as the single `payload/solution.patch` member of a deterministic bounded tar file. The official role returns a job number on admission. The host polls that job
|
|
25
|
+
Train calls queue serially. The official adapter packages the exact patch as the single `payload/solution.patch` member of a deterministic bounded tar file. The official role returns a job number on admission. The host polls that job and verifies the payload SHA-256 and size in the official admission log. It waits for the official job teardown event before another train or final can be admitted. After that event it records the public returned score and metrics and updates the best eligible candidate. The official task supplies 100 train calls and 12,000 cumulative train seconds, with 180 seconds per judge and one MiB per submission. Pumpkin’s train grant bounds the call at 181 seconds. The adapter permits extra time for observing its receipt. This task scores a failed correctness gate as zero, including responses without an explicit rejection field. Such candidates stay in result history and cannot become best. A missing admission, failed job or timeout is kept as an unknown outcome, with the original job identity when known. The Harness fences subsequent train and final admissions so an unresolved train cannot overlap another judge. It records the uncertainty and cleans up the run. The trusted evaluator has its own abort-bounded time; the prepared task enforces official payload, train quota and judge time limits.
|
|
26
26
|
|
|
27
|
-
At deadline, target
|
|
27
|
+
At deadline, target, quota or user stop, the Harness fences new work and stops Agents while the evaluator settles the active job. Research-queued train work without an official admission is cancelled when the pump is stopped. User stop also aborts active train and final. If an active train has an unknown outcome, the Harness retains the recorded job identity and avoids a second submission. On regular finish, the selected patch is the highest or lowest valid train score according to the configured direction. A Run without a valid patch records why final could not start. The adapter calls the final grant with the selected tar and `finalize=true`, waits on the original official outcome and checks the final payload digest, size and returned verdict. It never feeds final results back to a Worker.
|
|
28
|
+
|
|
29
|
+
A generic final callback declares `status` (`valid`, `rejected` or `unknown`), `score`, `meetsObjective` and `evidence`. A valid zero is representable. Plain JSON from an older evaluator is retained as unconfirmed evidence. A confirmed official submission, legal candidate, score and objective result have separate meanings. For FrontierCS-2, the adapter verifies the official score and legality separately from the reference comparison, and checks the application objective only when a target score is configured. The Run report preserves failures, business acceptance and both cleanup receipts. Cleanup uses bounded Runtime close and evaluator cancellation plus a container inventory check. The report retains Core’s Runtime ID, cleanup status and available report path on initialization failure, including when Core has already rolled back all allocated resources. Pending resources retain the available Runtime or Pumpkin identities. A subsequent Pumpkin cleanup check rebuilds its container inventory for the known run IDs. Candidate patches and research events are written under the Runtime directory. The atomic `research-result.json` in the Run directory records the chosen configuration, observed use, every candidate, selected patch, original Pumpkin path, phase timing and both cleanup outcomes.
|
|
30
|
+
|
|
31
|
+
## Trace evidence
|
|
32
|
+
|
|
33
|
+
The Viewer reads `research-events.jsonl` alongside Core, Service and Model records. It indexes candidate ID, hash, parent, event sequence, official job and payload digest as structured evidence. A candidate inspector follows matching versions across publication, full read, review, derivation, train and final. With a long review history, the bounded inspector retains evaluation evidence and the timeline search can retrieve the full history by hash. Files are limited to the recorded candidate namespace. The Viewer compares the active file to the recorded SHA-256 and exposes missing or changed bytes. Model overlap counts successful model request intervals across distinct Peers and the final result summarizes upstream model identifiers when the response recorded them. The CLI prints the Viewer command. Live and replay use the same recorded events.
|
|
28
34
|
|
|
29
35
|
## Source and verification
|
|
30
36
|
|
|
@@ -15,9 +15,8 @@ Start with [00 System overview](00-overview.md). For an SDK application, continu
|
|
|
15
15
|
| [04 Services](04-services.md) | How do Service interfaces, adapters, Bridge authorization, and TaskPool compatibility paths work? How do the domain Services apply their own state rules? |
|
|
16
16
|
| [17 Runtime evidence and Harness reports](17-harness-reporting.md) | How do SDK finalization, Messages, Notes, Subagents and foreground hosts record inputs, outputs, errors and cleanup? |
|
|
17
17
|
| [23 Project Harness entry](23-project-harness.md) | How does the installed CLI load a Harness, capture a project, run or stop it, and report results? |
|
|
18
|
-
| [25 Installed CLI and streaming terminal](25-foreground-tui.md) | How do the host aliases, generic Harness loading, live stream and terminal lifecycle fit together? |
|
|
19
18
|
| [26 Code](26-code.md) | How do the Root and editors have multiple turns, propose changes, verify the candidate and write it to the local project? |
|
|
20
|
-
| [27 Personal GitHub inbox](27-personal.md) | How does Personal run the Router, GitHub delivery and operator approvals
|
|
19
|
+
| [27 Personal GitHub inbox](27-personal.md) | How does Personal run the Router, GitHub delivery and operator approvals through its example operator and SDK? |
|
|
21
20
|
| [07 Launch and configuration](07-run-configuration.md) | How are the package, Worker, host, model endpoints, CLI, local setup and optional Services configured? |
|
|
22
21
|
| [06 Trace Viewer and evidence](06-observability-experiments.md) | How are saved and active Runs inspected, and what do those records establish? |
|
|
23
22
|
| [09 Known boundaries](09-known-boundaries.md) | Which current limitations would otherwise make the SDK or architecture misleading? |
|
|
@@ -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: `
|
|
7
|
+
Body SHA-256: `7e4b430eac1bb389a6ab2fb7db25b8b10eeb0733c42398ca1dbd7541467026b6`
|
|
8
8
|
|
|
9
9
|
````text
|
|
10
|
-
Read release-data.txt. Publish its reference and one short question asking
|
|
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: `
|
|
16
|
+
Body SHA-256: `44b23cc7d4249314026240b0658534f9a70bf25754b4aef6790b7ca5d9d65fe0`
|
|
17
17
|
|
|
18
18
|
````text
|
|
19
|
-
Run swarm service invoke handoff take using the exact
|
|
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: `
|
|
34
|
+
Body SHA-256: `452e1273e11f255c9fc48e58094cdd7c36983bd878c136d66dca74f5a7352a60`
|
|
35
35
|
|
|
36
36
|
````text
|
|
37
|
-
The user chose channel ${channel}. Run the following exact command with
|
|
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: `
|
|
45
|
+
Body SHA-256: `3547d4a006569daaca4bb4df2764adcc40822eb52334fe1a7c9f02d3e81d21df`
|
|
46
46
|
|
|
47
47
|
````text
|
|
48
|
-
Publish a release reference and
|
|
49
|
-
Save the release reference and
|
|
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: `
|
|
5
|
+
Body SHA-256: `296c3e15563f6e888dc618ad513b98d3d7f169baa595c21a0ce72e384631625b`
|
|
6
6
|
|
|
7
7
|
````text
|
|
8
|
-
|
|
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: `
|
|
12
|
+
Body SHA-256: `b194c0930d0220fe82b0cb79d277c5e24e7cc98b20a90a9123a4392131297eac`
|
|
13
13
|
|
|
14
14
|
````text
|
|
15
|
-
Use swarm service invoke board search to read the
|
|
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
|
-
|
|
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: `
|
|
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
|
-
|
|
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
|
|
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: `
|
|
66
|
+
Body SHA-256: `ae87ce374713e3cd95ab00a1a21b868261da1bff35624f6dbbb3f57d01c88b9d`
|
|
36
67
|
|
|
37
68
|
````text
|
|
38
|
-
|
|
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: `
|
|
77
|
+
Body SHA-256: `ecf3e427db9b4593262626428836b042a9d7a79600237756b05200d585f91a94`
|
|
45
78
|
|
|
46
79
|
````text
|
|
47
80
|
Publish, search, and cite findings across parallel swarm researchers.
|
|
48
|
-
Publish a
|
|
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.
|
|
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`
|