@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.
- package/AGENTS.md +19 -4
- package/README.md +68 -61
- package/dist/examples/README.md +134 -84
- package/dist/examples/autoresearch/README.md +106 -21
- package/dist/examples/autoresearch/REQUIREMENTS.zh.md +14 -6
- 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/frontiercs2-config.d.ts +2 -2
- package/dist/examples/autoresearch/frontiercs2-config.js +13 -2
- package/dist/examples/autoresearch/frontiercs2.d.ts +18 -1
- package/dist/examples/autoresearch/frontiercs2.js +71 -14
- package/dist/examples/autoresearch/prepare-demo.js +34 -3
- 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 -1
- package/dist/examples/autoresearch/project.js +130 -26
- package/dist/examples/autoresearch/research-service.d.ts +16 -1
- package/dist/examples/autoresearch/research-service.js +84 -44
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +8 -15
- 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/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-progress.js +36 -5
- 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 +3 -3
- package/dist/scripts/local-environment.js +6 -1
- package/dist/scripts/local-setup.js +25 -18
- package/dist/scripts/pack-release.js +27 -3
- 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/harness/project-harness.js +3 -2
- package/dist/src/harness/project-rpc-client.js +19 -0
- 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 +9 -8
- package/docs/architecture/06-observability-experiments.md +21 -7
- package/docs/architecture/07-run-configuration.md +97 -12
- 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 +129 -86
- 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 +78 -0
- package/docs/architecture/22-website.md +53 -18
- package/docs/architecture/23-project-harness.md +63 -16
- package/docs/architecture/28-autoresearch.md +16 -22
- 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 +78 -54
- package/docs/architecture/source-map.json +396 -36
- package/docs/designs/core-harness/06-project-harness.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 +22 -1
- package/docs/en/first-harness.md +40 -32
- package/docs/en/harnesses/index.md +23 -23
- package/docs/en/harnesses/subagents.md +8 -29
- package/docs/en/latest.md +26 -5
- package/docs/en/overview.md +22 -22
- package/docs/en/quickstart.md +55 -21
- package/docs/en/reference/api.md +1 -1
- package/docs/en/trace-viewer.md +32 -12
- package/docs/operations/trace-viewer.md +25 -10
- package/docs/workflows/development.md +160 -120
- package/docs/workflows/release-and-docs-versioning.md +207 -55
- package/docs/workflows/release-cli-acceptance.md +124 -47
- 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 +22 -1
- package/docs/zh/first-harness.md +43 -35
- package/docs/zh/harnesses/index.md +23 -23
- package/docs/zh/harnesses/subagents.md +8 -29
- package/docs/zh/latest.md +26 -5
- package/docs/zh/overview.md +23 -23
- package/docs/zh/quickstart.md +51 -21
- package/docs/zh/reference/api.md +1 -1
- package/docs/zh/trace-viewer.md +32 -12
- package/examples/README.md +134 -84
- package/examples/autoresearch/README.md +106 -21
- package/examples/autoresearch/REQUIREMENTS.zh.md +14 -6
- package/examples/autoresearch/config.ts +64 -25
- package/examples/autoresearch/demo.ts +75 -22
- package/examples/autoresearch/frontiercs2-config.ts +13 -2
- package/examples/autoresearch/frontiercs2.ts +64 -11
- package/examples/autoresearch/prepare-demo.ts +32 -3
- package/examples/autoresearch/prepare.ts +134 -60
- package/examples/autoresearch/project.ts +119 -26
- package/examples/autoresearch/research-service.ts +91 -41
- 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 +1 -1
- package/examples/lead-worker/README.md +1 -1
- package/examples/messages/README.md +2 -2
- package/examples/notes/README.md +2 -2
- 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 +1 -1
- package/examples/subagents/AGENTS.md +35 -0
- package/examples/subagents/README.md +129 -93
- package/examples/subagents/config.ts +8 -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/taskpool/README.md +1 -1
- package/npm-shrinkwrap.development.json +9 -2
- package/npm-shrinkwrap.json +9 -2
- package/package.development.json +2 -1
- package/package.json +2 -1
- package/scripts/anyswarm-progress.ts +36 -6
- package/scripts/generate-architecture-coverage.ts +1 -1
- package/scripts/generate-architecture-prompts.ts +21 -10
- package/scripts/local-environment.ts +8 -1
- package/scripts/local-setup.ts +22 -17
- package/scripts/pack-release.ts +24 -3
- 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/harness/project-harness.ts +3 -2
- package/src/harness/project-rpc-client.ts +23 -0
- 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
|
@@ -1,159 +1,199 @@
|
|
|
1
|
-
# Development workflow
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
# Development workflow
|
|
2
|
+
|
|
3
|
+
Develop and merge focused changes on `main`; verify installable candidates before
|
|
4
|
+
publication; group stable releases when their changes are ready for users.
|
|
5
|
+
[CONTRIBUTING.md](../../CONTRIBUTING.md) is the contributor entry point.
|
|
6
|
+
[AGENTS.md](../../AGENTS.md) adds the owner/Agent decision boundary and architecture
|
|
7
|
+
requirements for coding agents.
|
|
8
|
+
|
|
9
|
+
## The development loop
|
|
10
|
+
|
|
11
|
+
1. Establish the problem and acceptance in the relevant Issue or explicit owner
|
|
12
|
+
instruction. A small documentation correction can go directly to a PR.
|
|
13
|
+
Keep one Issue per complete implementation PR unless the owner asks otherwise.
|
|
14
|
+
2. Create an isolated branch or worktree. Implement the change together with
|
|
15
|
+
relevant tests, public instructions, examples and architecture explanation.
|
|
16
|
+
3. Run focused checks while iterating. Review the behavior and the generated
|
|
17
|
+
documentation diff, and fix failures within the authorized scope.
|
|
18
|
+
4. Open a focused PR with actual verification results. Required Core and Website
|
|
19
|
+
CI check the merge candidate; installed-package checks use the recorded archive.
|
|
20
|
+
5. After review and authorized merge, continue development on `main`. Ordinary
|
|
21
|
+
PRs leave formal package versions unchanged and add user-visible changes to
|
|
22
|
+
the root `CHANGELOG.md` `Unreleased` section. This is the canonical pending
|
|
23
|
+
record; a release PR prepares the bilingual changelogs. A main push does not
|
|
24
|
+
publish a stable npm version.
|
|
25
|
+
6. For opt-in external testing, a maintainer can separately authorize a manual
|
|
26
|
+
`next` publication. A stable release uses a release PR and a matching tag.
|
|
27
|
+
See [release and documentation versioning](release-and-docs-versioning.md).
|
|
28
|
+
|
|
29
|
+
Use the [architecture manual](../architecture/INDEX.md), [Runtime](../en/runtime.md),
|
|
30
|
+
[SDK reference](../en/reference/api.md) and [GLOSSARY](../../GLOSSARY.md) for the
|
|
31
|
+
current implementation. Reviewed designs and the full Issue discussion define
|
|
32
|
+
intended changes. Keep progress and evidence in the Issue/PR. Update affected
|
|
33
|
+
architecture in the implementation PR; a source link does not replace the
|
|
34
|
+
explanation of behavior.
|
|
35
|
+
|
|
36
|
+
## Local setup and focused tests
|
|
37
|
+
|
|
38
|
+
Use Node.js 24 to match CI. The declared package minimum is 22.19. Install locked
|
|
39
|
+
dependencies with `npm ci --ignore-scripts`; deterministic checks do not need a
|
|
40
|
+
model account or a running Sandbox.
|
|
34
41
|
|
|
35
42
|
```sh
|
|
43
|
+
npm ci --ignore-scripts
|
|
44
|
+
npm run typecheck
|
|
36
45
|
npm run test:focus -- test/core-input-ledger.test.ts test/core-pi-input.test.ts
|
|
37
46
|
npm run test:focus -- 'test/core-thinking-*.test.ts'
|
|
47
|
+
git diff --check
|
|
38
48
|
```
|
|
39
49
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
50
|
+
Pass source test paths or quoted globs under `test/`. The focused command rejects
|
|
51
|
+
missing or unmatched selections and matches outside `test/`, builds once, then
|
|
52
|
+
runs the selected compiled files serially. Choose the affected behavior and its
|
|
53
|
+
callers. `npm run build` refreshes JavaScript and declarations under `dist/`;
|
|
54
|
+
local CLI entry points use `dist/scripts/`.
|
|
55
|
+
|
|
56
|
+
`npm run docs:check` builds before checking documentation. `npm test` builds and
|
|
57
|
+
checks documentation before the full local suite. Run the full suite locally
|
|
58
|
+
when required by the Issue, when reproducing a suite-wide failure, or when CI
|
|
59
|
+
cannot provide the required evidence. Report unrun checks rather than marking
|
|
60
|
+
all template boxes regardless of relevance.
|
|
61
|
+
|
|
62
|
+
Native integration tests have their own opt-in variables and environment
|
|
63
|
+
requirements in [the test guide](../../test/README.md). A controlled-model test
|
|
64
|
+
can verify transport and tool behavior without a paid provider; it does not prove
|
|
65
|
+
performance with a real model or support on an untested host.
|
|
44
66
|
|
|
45
67
|
## Repository CI checks
|
|
46
68
|
|
|
47
69
|
[CI](../../.github/workflows/ci.yml) runs on PRs targeting `main` and pushes to
|
|
48
|
-
`main
|
|
49
|
-
|
|
70
|
+
`main`, using Linux and Node.js 24. A newer push cancels the previous run for the
|
|
71
|
+
same PR. The [CI ruleset](https://github.com/AnySwarm/anyswarm/rules/28146126)
|
|
72
|
+
requires `Core CI`, `Website CI`, and a PR, including for the owner. The
|
|
50
73
|
[merge ruleset](https://github.com/AnySwarm/anyswarm/rules/28373790) allows only
|
|
51
|
-
`LuNa-shi` to merge
|
|
52
|
-
[CI ruleset](https://github.com/AnySwarm/anyswarm/rules/28146126) applies to the
|
|
53
|
-
owner as well. Collaborators with write access can push feature branches and open PRs.
|
|
74
|
+
`LuNa-shi` to merge. Collaborators can push feature branches and open PRs.
|
|
54
75
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
to see the jobs it selects. An unavailable base or an unknown path selects full
|
|
58
|
-
coverage.
|
|
76
|
+
From the checkout under test, run `bash .github/ci-scope.sh <base-commit>` to see
|
|
77
|
+
the selected jobs. An unavailable base or unknown path selects full coverage.
|
|
59
78
|
|
|
60
79
|
| Changed inputs | Checks |
|
|
61
80
|
| --- | --- |
|
|
62
81
|
| README, internal Markdown or architecture inventory | Generated references and repository links |
|
|
63
|
-
| Website, bilingual guides or documentation images |
|
|
64
|
-
| Homepage npm
|
|
65
|
-
| Core, tests, workflow or other inputs | Typecheck, full tests,
|
|
82
|
+
| Website, bilingual guides or documentation images | References, links and website build |
|
|
83
|
+
| Homepage npm command or either Quickstart | Website build, focused npm command checks and documentation checks |
|
|
84
|
+
| Core, tests, workflow or other inputs | Typecheck, full tests, references, links and website build |
|
|
85
|
+
|
|
86
|
+
For full Core CI, one job packs the candidate. Three test shards download that
|
|
87
|
+
same candidate, check its SHA-256, and use it for the installed-package tests.
|
|
88
|
+
The workflow preserves the archive with `SHA256SUMS` and `source.json`; use the
|
|
89
|
+
run's Core CI result to determine whether verification passed. An uploaded
|
|
90
|
+
candidate by itself is not a successful release.
|
|
66
91
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
92
|
+
`ANYSWARM_TEST_PACKAGE_ARCHIVE` and `ANYSWARM_TEST_PACKAGE_SHA256` bind frozen
|
|
93
|
+
package tests to the candidate. They must be present in the selected CI/release
|
|
94
|
+
paths, so archive-based installation and eject checks do not silently skip.
|
|
95
|
+
Source tests and installed-package tests answer different questions: the latter
|
|
96
|
+
also check the files, lockfiles, exports and commands that a user receives.
|
|
71
97
|
|
|
72
|
-
|
|
73
|
-
cache and install the packed Core in a temporary consumer before running tests.
|
|
98
|
+
The full Linux cold-cache sequence can be reproduced from the repository root:
|
|
74
99
|
|
|
75
100
|
```sh
|
|
76
101
|
(
|
|
77
102
|
set -e
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
npm ci --no-audit --no-fund
|
|
103
|
+
candidate_dir=$(mktemp -d)
|
|
104
|
+
export npm_config_cache="$candidate_dir/npm-cache"
|
|
105
|
+
npm ci --ignore-scripts --no-audit --no-fund
|
|
82
106
|
npm run typecheck
|
|
83
|
-
npm run pack:release -- "$
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
npm install --prefix "$
|
|
107
|
+
candidate_archive=$(npm run --silent pack:release -- "$candidate_dir")
|
|
108
|
+
export ANYSWARM_TEST_PACKAGE_ARCHIVE="$candidate_archive"
|
|
109
|
+
export ANYSWARM_TEST_PACKAGE_SHA256="$(sha256sum "$candidate_archive" | cut -d ' ' -f 1)"
|
|
110
|
+
npm install --prefix "$candidate_dir/consumer" --prefer-offline --omit=dev --ignore-scripts --no-audit --no-fund "$candidate_archive"
|
|
111
|
+
tar -xzf "$candidate_archive" -C "$candidate_dir" package/examples/harness-session/package.json
|
|
112
|
+
npm install --prefix "$candidate_dir/package/examples/harness-session" --prefer-offline --no-save --ignore-scripts --no-audit --no-fund "$candidate_archive"
|
|
87
113
|
npm test
|
|
114
|
+
sha256sum "$candidate_archive"
|
|
88
115
|
)
|
|
89
116
|
```
|
|
90
117
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
install
|
|
95
|
-
registry
|
|
96
|
-
|
|
97
|
-
For **Website CI**,
|
|
98
|
-
run `npm ci` inside `website/`, then
|
|
99
|
-
`BASE_PATH=/anyswarm SITE_URL=https://anyswarm.github.io npm run build`. The job
|
|
100
|
-
checks for both `dist/index.html` and `dist/zh/index.html`. The Pages workflow
|
|
101
|
-
deploys the merged site separately.
|
|
102
|
-
|
|
103
|
-
## Release verification
|
|
104
|
-
|
|
105
|
-
For a local candidate, record the clean source commit, Node and npm versions, the
|
|
106
|
-
`npm ci` and `npm run pack:release` commands, and the archive SHA-256. Use those
|
|
107
|
-
same tool versions when reproducing a candidate. The release pack script builds
|
|
108
|
-
and stages with `umask 022` and normalizes staged regular-file modes to `0755` for
|
|
109
|
-
executables and `0644` for other files, including files from restrictive checkouts.
|
|
118
|
+
This leaves the candidate directory available for reproduction. Record the clean
|
|
119
|
+
source commit, Node/npm versions, archive and checksum. `npm ci` can fetch locked
|
|
120
|
+
tarballs without caching the registry metadata needed for an offline consumer
|
|
121
|
+
install. The temporary consumer seeds that metadata; the by-name test serves the
|
|
122
|
+
candidate through a local registry. These checks do not publish to npm.
|
|
110
123
|
|
|
111
|
-
|
|
112
|
-
candidate and download the two tarball filenames and their SHA-256 checksums from
|
|
113
|
-
the workflow artifact. The verifier installs the exact tarball globally with npm and installs it by package name through a local registry outside the checkout. It runs local setup, the README Quickstart with a controlled model, and the first SDK Harness through the SDK, the RPC client, the one-shot CLI, and direct JSONL RPC with a question and answer. The README test checks actual file-tool bytes, CLI and installed Viewer agreement, and Sandbox deletion. Manual runs can verify a candidate with the same version as an existing release. After the source repository is
|
|
114
|
-
public and the release owner approves the tested revision, `LuNa-shi` pushes a
|
|
115
|
-
`v<version>` tag for the matching stable package version under the
|
|
116
|
-
[version-tag ruleset](https://github.com/AnySwarm/anyswarm/rules/28373821).
|
|
124
|
+
## Website and documentation checks
|
|
117
125
|
|
|
118
|
-
The
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
publishing it. An older stable tag can still be published as a pinned Release.
|
|
123
|
-
npm resolves CLI installs and updates using its configured registry. Verify that the candidate installs and upgrades in the same isolated global npm prefix, exposes only `anyswarm` on the host, and can be removed with npm.
|
|
124
|
-
|
|
125
|
-
After GitHub publication, the npm job downloads and verifies the same public
|
|
126
|
-
archive. It uses [npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers/)
|
|
127
|
-
registered to `AnySwarm/anyswarm` and `release.yml`. Direct `npm publish`
|
|
128
|
-
must be enabled for that publisher. The job publishes the current GitHub
|
|
129
|
-
Latest version and checks its public npm integrity and `latest` tag.
|
|
130
|
-
|
|
131
|
-
If the GitHub Release is available and npm publication needs a retry, use the
|
|
132
|
-
Release workflow dispatch from `main`:
|
|
126
|
+
The default `/docs/` and `/zh/docs/` guides come from the stable manifest in
|
|
127
|
+
`website/docs-release.json`. Current `docs/en/` and `docs/zh/` render under
|
|
128
|
+
`/docs/next/` and `/zh/docs/next/`, marked as development documentation. Keep both
|
|
129
|
+
languages, navigation and affected example READMEs aligned.
|
|
133
130
|
|
|
134
131
|
```sh
|
|
135
|
-
|
|
132
|
+
npm ci --prefix website
|
|
133
|
+
npm --prefix website run dev
|
|
134
|
+
BASE_PATH=/anyswarm SITE_URL=https://anyswarm.github.io npm --prefix website run build
|
|
136
135
|
```
|
|
137
136
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
See [
|
|
143
|
-
for retry handling, Trusted Publishing and the proposed website version selector.
|
|
137
|
+
The website prepares the manifest's immutable source snapshots for its build.
|
|
138
|
+
Use a Git checkout containing the pinned revisions; CI fetches the required
|
|
139
|
+
history. Review both channels when changing navigation or rendering. A stable
|
|
140
|
+
guide correction updates its reviewed documentation inputs without changing the
|
|
141
|
+
npm version. See [the manifest procedure](release-and-docs-versioning.md#stable-and-development-documentation).
|
|
144
142
|
|
|
145
|
-
|
|
143
|
+
Write relative Markdown file links so guides work on GitHub; the website
|
|
144
|
+
transforms them to the selected language and channel. Examples advertised as
|
|
145
|
+
installed SDK consumers must use public package exports and the source bundled
|
|
146
|
+
with that same package.
|
|
146
147
|
|
|
147
|
-
|
|
148
|
+
For implementation changes, update the architecture narrative, full affected
|
|
149
|
+
prompt text and source inventory. Run `npm run docs:generate`, inspect the diff,
|
|
150
|
+
then run `npm run docs:check` and `git diff --check`. Generation checks coverage
|
|
151
|
+
and drift; it does not approve the semantic description.
|
|
148
152
|
|
|
149
|
-
|
|
153
|
+
## Release verification
|
|
150
154
|
|
|
151
|
-
|
|
155
|
+
Run the [Release workflow](../../.github/workflows/release.yml) manually with
|
|
156
|
+
both `publish_next` and `publish_npm` off to verify a candidate without publishing.
|
|
157
|
+
For example:
|
|
152
158
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
- **Keep implementation progress and verification evidence in the originating GitHub Issue/PR.** At meaningful milestones, link the exact tested commit, evidence level and result, remaining gaps and next decision. Do not file separate updates after each debugging attempt. At Issue closeout, summarize the accepted behavior and unresolved limitations in the Issue/PR, and reconcile affected Architecture.
|
|
157
|
-
- Update the affected [Architecture](../architecture/INDEX.md) in the implementation PR: the owner must be able to understand the changed runtime without reading code. Include full prompt changes, state/contract/default/error effects and code-to-chapter mappings. Run `npm run docs:generate`, review its diff, then `npm run docs:check` and `git diff --check`. At Issue/stage closeout, reconcile the complete flow with the final merged revision and evidence; regeneration alone does not establish semantic accuracy.
|
|
158
|
-
- Do not merge, close unrelated Issues, or run unapproved paid experiments without explicit user permission. Retire obsolete documentation through Git history, not an `archive/` directory.
|
|
159
|
+
```sh
|
|
160
|
+
gh workflow run release.yml --ref main
|
|
161
|
+
```
|
|
159
162
|
|
|
163
|
+
The verifier uses the exact packed archive outside the checkout: global install,
|
|
164
|
+
by-name install through a controlled registry, frozen install/eject tests, local
|
|
165
|
+
setup, the README Quickstart and the first SDK Harness with a controlled model.
|
|
166
|
+
The native checks require Docker/OpenSandbox and an executor; a local environment
|
|
167
|
+
without them cannot supply that evidence. Record the limitation and use the
|
|
168
|
+
workflow's native verification results before a release.
|
|
169
|
+
|
|
170
|
+
The release pack script builds and stages with `umask 022`, normalizes file modes,
|
|
171
|
+
and bundles Worker build materials. Candidates can share a version with an
|
|
172
|
+
existing release, so archive SHA-256 and source commit remain essential.
|
|
173
|
+
The [CLI acceptance guide](release-cli-acceptance.md) covers manual host, upgrade
|
|
174
|
+
and interactive checks that supplement automation.
|
|
175
|
+
|
|
176
|
+
Authorized preview publication uses `publish_next=true` from `main`. Stable
|
|
177
|
+
publication uses an approved `vX.Y.Z` tag; `publish_npm=true` retries the current
|
|
178
|
+
GitHub Latest archive on npm. The two manual publication flags are mutually
|
|
179
|
+
exclusive. All publication, public-registry verification, documentation promotion
|
|
180
|
+
and recovery details belong to the [release guide](release-and-docs-versioning.md).
|
|
181
|
+
|
|
182
|
+
## Coding agents and research runs
|
|
183
|
+
|
|
184
|
+
Coding agents follow [AGENTS.md](../../AGENTS.md), including the documented
|
|
185
|
+
worktree layout and owner decisions. Use installed Matt Pocock engineering skills
|
|
186
|
+
when available and relevant, without claiming an unavailable skill ran. Those
|
|
187
|
+
skills are not a prerequisite for human contributors.
|
|
188
|
+
|
|
189
|
+
Keep experiments within the approved provider/model, inputs, checker, budget and
|
|
190
|
+
time limits. Use Kimi K3 (`PI_PROVIDER=kimi_proxy`, `PI_MODEL=k3`) for real-Agent
|
|
191
|
+
development tests when the existing authorization permits it; a pinned experiment
|
|
192
|
+
configuration takes precedence. Formal research follows the
|
|
193
|
+
[experiment workflow](experiment.md). Bounded authorized deterministic checks and
|
|
194
|
+
diagnostic probes do not require an EXP ID or a report after each iteration.
|
|
195
|
+
|
|
196
|
+
Keep raw conversations, credentials, private state and local paths out of Git.
|
|
197
|
+
At meaningful milestones, record exact revisions, verification evidence and
|
|
198
|
+
remaining gaps in the originating Issue/PR. Do not merge, publish, close unrelated
|
|
199
|
+
Issues, or expand paid experiments without the owner's authorization.
|