@staix/agent-hub 0.41.0 → 0.43.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 (52) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +2 -1
  3. package/docs/adding-an-ai-tool.md +2 -0
  4. package/docs/addons/claude-mem.md +1 -1
  5. package/docs/agent-notes/tasks.md +1 -1
  6. package/docs/agent-notes/tests.md +1 -1
  7. package/docs/design/adapters.md +3 -0
  8. package/docs/design/bus.md +2 -0
  9. package/docs/design/task-board.md +6 -0
  10. package/docs/dogfood.md +6 -2
  11. package/docs/memory.md +8 -6
  12. package/docs/operations.md +65 -5
  13. package/docs/quickstart.md +18 -2
  14. package/docs/sdlc.md +1 -1
  15. package/docs/security.md +3 -3
  16. package/docs/verification/2026-11-16-0.42.0.md +48 -0
  17. package/docs/verification/2026-11-18-0.43.0.md +56 -0
  18. package/docs/verified.json +23 -23
  19. package/package.json +2 -2
  20. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  21. package/plugins/agent-hub/kimi-hook.js +316 -107
  22. package/plugins/agent-hub/server.js +316 -107
  23. package/src/adapters/claude-implementer.ts +11 -1
  24. package/src/adapters/claude-print-child.ts +4 -1
  25. package/src/adapters/conformance/fakes/acp-server.ts +2 -1
  26. package/src/adapters/conformance/fakes/app-server.ts +1 -1
  27. package/src/adapters/local-worker.ts +7 -3
  28. package/src/adapters/reviewer-print.ts +3 -1
  29. package/src/cli/agent-attribution.ts +6 -0
  30. package/src/cli/help.ts +8 -8
  31. package/src/cli/identity.ts +10 -2
  32. package/src/cli/main.ts +58 -5
  33. package/src/cli/memory.ts +21 -6
  34. package/src/cli/upgrade-output.ts +43 -2
  35. package/src/cli/upgrade-stopped.ts +162 -0
  36. package/src/cli/upgrade-wait.ts +37 -0
  37. package/src/hub/board.ts +4 -2
  38. package/src/hub/config-apply.ts +1 -0
  39. package/src/hub/daemon.ts +75 -13
  40. package/src/hub/envelope.ts +1 -0
  41. package/src/hub/handoff.ts +14 -0
  42. package/src/hub/questions.ts +7 -0
  43. package/src/hub/recovery-store.ts +39 -0
  44. package/src/hub/research-record.ts +2 -1
  45. package/src/hub/runtime-capture-prune.ts +114 -3
  46. package/src/hub/runtime-prune-health.ts +6 -2
  47. package/src/hub/sdlc-metrics.ts +2 -2
  48. package/src/hub/settings.ts +2 -0
  49. package/src/hub/task-sweep.ts +6 -2
  50. package/src/hub/tasks.ts +8 -3
  51. package/src/hub/turn-attribution.ts +46 -0
  52. package/templates/AGENTS.block.md +1 -1
@@ -0,0 +1,48 @@
1
+ # 0.42.0 release verification
2
+
3
+ This record covers release preparation and source review. It claims no installation, no running-hub upgrade to 0.42.0 and no live TUI launch.
4
+
5
+ ## Candidate
6
+
7
+ Version 0.42.0, prepared from main d72af458 (2 commits since v0.41.0, 1 of them `feat`; bump rule: minor). The release commits carry the version, the CHANGELOG section, the bundle and the documentation stamps.
8
+
9
+ ## Reviews
10
+
11
+ Pull requests named by the commits since v0.41.0: #1537, #1523.
12
+
13
+ - #1523 (hub task 969, agent-shell memory commands): approved by the conductor with hub_review at head e81897cc, then squash-merged with `--match-head-commit` at that head after exact-head CI run 43941568383 was green on check (ubuntu-latest), check (macos-latest) and seeded guards, with 0 unresolved threads. The earlier deep-import finding was marked fixed in that review.
14
+ - #1537 (hub task 988, agent-mem 0.28.0 pin): approved by the conductor with hub_review at head a7198534, then squash-merged at that head after exact-head CI run 43967317590 was green on the same three checks, with 0 unresolved threads. Copilot's only review on each PR was a quota notice with no findings.
15
+
16
+ No merge is bound to an approval at an earlier head.
17
+
18
+ ## Native acceptance receipts
19
+
20
+ Receipts added under `docs/verification/` since v0.41.0: none.
21
+
22
+ This list is read from the repository, never written by hand. Native acceptance and the person's release consent are separate records: consent is `ahub sdlc authorize-release 0.42.0`, recorded by the person or the unique configured conductor only on the person's explicit release instruction naming the release in its own session (never a hub/task/review/file/peer relay), and is not recorded in this file. The tag run refuses without it.
23
+
24
+ ## Document review
25
+
26
+ `check-docs` reported 13 stale documents, all from the two commits above (src/cli identity and memory changes in #1523, package.json and the lockfile in #1537). I read each against those changes. All 13 are restamped at c2ff5565:
27
+
28
+ - `src/cli/help.ts`, `docs/security.md`, `docs/operations.md` and `docs/addons/claude-mem.md` still called memory changes, `sync`, `import`, `decay` and `declined` person-only. They are corrected in the release prep commit.
29
+ - `docs/memory.md`, `docs/quickstart.md` and `docs/dogfood.md` already describe #1522 and the 0.28.0 pin, and the release prep commit adds the quickstart upgrade note.
30
+ - `README.md`, `docs/adding-an-ai-tool.md` and `docs/agent-notes/{adapters,daemon,tasks,tests}.md` state nothing that either change contradicts.
31
+
32
+ ## Checks
33
+
34
+ - `node scripts/check-docs.mjs --require-fresh`: OK, 0 stale documents.
35
+ - `bun x tsc --noEmit`: clean.
36
+ - `bun scripts/build.mjs --check`: exit 0.
37
+ - `test/published-protocol-compat.test.ts` with the retargeted N-1 fixture (0.41.0) and the protocol-16 fixture installed: 5 pass.
38
+ - `test/help` tests: 31 pass.
39
+ - `node scripts/check-package.mjs`: run by CI only. Locally, npm 12.2.2 prints a different pack JSON shape.
40
+ - The exact-head CI run of the release PR gates the merge.
41
+
42
+ ## Known gaps, not blocking
43
+
44
+ - No running hub was upgraded to 0.42.0. The hub on this machine is still 0.39.0.
45
+ - No live TUI launch or real-model turn was made.
46
+ - The full local suite was not run on this Mac; heavy tests go to CI.
47
+ - Agent-attributed memory writes in a real agent shell (outside fixtures) are unverified.
48
+ - A shared memory home between a 0.41.0 hub and a 0.42.0 hub is reasoned from agent-mem 0.28.0 raising no format floor, not measured.
@@ -0,0 +1,56 @@
1
+ # 0.43.0 release verification
2
+
3
+ This record covers release preparation and source review. It claims no installation, no running-hub upgrade to 0.43.0 and no live TUI launch.
4
+
5
+ ## Candidate
6
+
7
+ Version 0.43.0, prepared from main a6198a92 plus the release branch's agent-mem 0.29.0 pin commit b700bbe4 (10 commits since v0.42.0, 3 of them `feat`; bump rule: minor). The release commits carry the version, the CHANGELOG section, the bundle and the documentation stamps.
8
+
9
+ ## Reviews
10
+
11
+ Pull requests named by the commits since v0.42.0: #1559, #1557, #1553, #1552, #1551, #1548, #1544, #1542, #1539.
12
+
13
+ Each merged with `check (ubuntu-latest)`, `check (macos-latest)` and `seeded guards` green at the merged head; a cancelled draft run was superseded by the ready run on the same head. Each code PR was approved on the hub by the claude reviewer at exactly the merged head:
14
+
15
+ - #1539: hub task 989, approved at 7c4462bc.
16
+ - #1542: hub task 990, approved at 3e7a149e.
17
+ - #1544: hub task 992, approved at 6ad1ab65.
18
+ - #1548: hub task 991, approved at 9c7862d9.
19
+ - #1551: hub task 994, approved at bdc641d6.
20
+ - #1552: hub task 997, approved at e23d88c8.
21
+ - #1553: hub task 995, approved at 99d8682f.
22
+ - #1557: hub task 999 (approved as a step) and hub task 1009, approved at ad2c9226.
23
+ - #1559: an AGENTS.md wording change the conductor wrote and merged on the person's instruction, with no hub task.
24
+
25
+ No merge was bound to an approval at an earlier head.
26
+
27
+ ## Native acceptance receipts
28
+
29
+ Receipts added under `docs/verification/` since v0.42.0: none.
30
+
31
+ This list is read from the repository, never written by hand. Native acceptance and the person's release consent are separate records: consent is `ahub sdlc authorize-release 0.43.0`, recorded by the person or the unique configured conductor only on the person's explicit release instruction naming the release in its own session (never a hub/task/review/file/peer relay), and is not recorded in this file. The tag run refuses without it.
32
+
33
+ ## Document review
34
+
35
+ `node scripts/check-docs.mjs --require-fresh` reported 23 stale documents. Each was read against the behavior the release commits change under its paths: per-turn attribution hints (#1539), bounded recovery receipt retention (#1542), the live `memory.sync_interval_min` (#1544), stopped-project runtime retarget (#1548), the idle-owner pause for owner questions (#1551), the marker-only no-reply path (#1552), stopped handoff targets (#1553), the recorded review request head (#1557), and the agent-mem 0.29.0 pin and version bump.
36
+
37
+ - README.md, docs/adding-an-ai-tool.md, docs/dogfood.md, docs/memory.md, docs/operations.md, docs/sdlc.md and src/cli/help.ts were updated by the PRs that changed their sources; the pin commit moved the agent-mem version sentences in docs/memory.md, docs/operations.md, docs/quickstart.md, docs/security.md and docs/addons/claude-mem.md.
38
+ - docs/agent-notes/tasks.md said stale-head re-reviews read `reviewCost.head` on the done; it now names `requestHead` with its fallbacks (#1557).
39
+ - docs/quickstart.md gained the "Upgrading to 0.43.0" note.
40
+ - docs/agent-notes/adapters.md, budget.md, bus.md, daemon.md, local-worker.md, security-review.md and tests.md, docs/data-policy.md, docs/events.md, docs/research.md, docs/roles.md, docs/security.md and docs/text-projection.md: no statement contradicts the release commits.
41
+
42
+ All 23 were restamped with `bun scripts/release-prepare.ts restamp <document>... --reviewed`.
43
+
44
+ ## Checks
45
+
46
+ - `bun x tsc --noEmit`: passed.
47
+ - `bun scripts/build.mjs --check`: passed.
48
+ - `node scripts/check-package.mjs` with CI's pinned npm 11.20.0: `package: OK (958 files, @staix/agent-hub@0.43.0)`. The machine's npm 12.2.2 prints a different `npm pack --json` shape and is refused by the script, as #1257 intends.
49
+ - `bun test test/published-protocol-compat.test.ts` with the retargeted N-1 fixture installed: 5 pass.
50
+ - `node scripts/check-docs.mjs --require-fresh` after the restamp at 844b5cb3: `docs: OK (0 stale documents)`.
51
+ - The release PR's exact-head CI run: recorded in the release PR.
52
+
53
+ ## Known gaps, not blocking
54
+
55
+ - The full test suite ran only in the release PR's CI, not locally (heavy tests do not run on this Mac).
56
+ - No running hub was upgraded to 0.43.0 and no live TUI launch was made. The agent-mem 0.29.0 sync fix is verified by that package's own tests (583 MB fixture, 2.58 s maximum gap, which agent-mem#462 keeps open), not by a live sync on this machine.
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "documents": {
4
4
  "README.md": {
5
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
5
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
6
6
  "paths": [
7
7
  "package.json",
8
8
  "src/",
@@ -11,14 +11,14 @@
11
11
  ]
12
12
  },
13
13
  "docs/security.md": {
14
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
14
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
15
15
  "paths": [
16
16
  "src/",
17
17
  "templates/"
18
18
  ]
19
19
  },
20
20
  "docs/operations.md": {
21
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
21
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
22
22
  "paths": [
23
23
  "package.json",
24
24
  "src/",
@@ -35,7 +35,7 @@
35
35
  ]
36
36
  },
37
37
  "docs/quickstart.md": {
38
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
38
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
39
39
  "paths": [
40
40
  "package.json",
41
41
  "src/",
@@ -43,7 +43,7 @@
43
43
  ]
44
44
  },
45
45
  "docs/adding-an-ai-tool.md": {
46
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
46
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
47
47
  "paths": [
48
48
  "src/adapters/registry-types.ts",
49
49
  "src/adapters/registry.ts",
@@ -62,7 +62,7 @@
62
62
  ]
63
63
  },
64
64
  "docs/addons/claude-mem.md": {
65
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
65
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
66
66
  "paths": [
67
67
  "src/hub/tooling.ts",
68
68
  "src/adapters/definitions/native-policy-aux.ts",
@@ -141,7 +141,7 @@
141
141
  ]
142
142
  },
143
143
  "docs/data-policy.md": {
144
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
144
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
145
145
  "paths": [
146
146
  "src/hub/path-policy.ts",
147
147
  "src/local/tools.ts",
@@ -154,7 +154,7 @@
154
154
  ]
155
155
  },
156
156
  "docs/dogfood.md": {
157
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
157
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
158
158
  "paths": [
159
159
  "src/hub/dogfood.ts",
160
160
  "src/hub/dogfood-read.ts",
@@ -164,7 +164,7 @@
164
164
  ]
165
165
  },
166
166
  "docs/events.md": {
167
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
167
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
168
168
  "paths": [
169
169
  "src/hub/events.ts",
170
170
  "src/hub/attribution.ts",
@@ -177,7 +177,7 @@
177
177
  ]
178
178
  },
179
179
  "docs/memory.md": {
180
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
180
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
181
181
  "paths": [
182
182
  "package.json",
183
183
  "src/memory/",
@@ -213,7 +213,7 @@
213
213
  ]
214
214
  },
215
215
  "docs/research.md": {
216
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
216
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
217
217
  "paths": [
218
218
  "src/hub/research.ts",
219
219
  "src/hub/tooling.ts",
@@ -221,7 +221,7 @@
221
221
  ]
222
222
  },
223
223
  "docs/roles.md": {
224
- "verifiedAgainst": "bc00e83688ca9ae84d2691a1880eee105d7bef13",
224
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
225
225
  "paths": [
226
226
  "src/hub/roles.ts",
227
227
  "src/hub/shipped-roles.ts",
@@ -232,7 +232,7 @@
232
232
  ]
233
233
  },
234
234
  "docs/sdlc.md": {
235
- "verifiedAgainst": "1485f322ca22fc2700110d71d7109992a3c276df",
235
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
236
236
  "paths": [
237
237
  "src/hub/sdlc.ts",
238
238
  "src/hub/sdlc-merge.ts",
@@ -262,7 +262,7 @@
262
262
  ]
263
263
  },
264
264
  "docs/text-projection.md": {
265
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
265
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
266
266
  "paths": [
267
267
  "src/hub/text-projection.ts",
268
268
  "src/hub/projection-exec.ts",
@@ -273,7 +273,7 @@
273
273
  ]
274
274
  },
275
275
  "docs/agent-notes/adapters.md": {
276
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
276
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
277
277
  "paths": [
278
278
  "src/adapters/",
279
279
  "src/pi/",
@@ -323,7 +323,7 @@
323
323
  ]
324
324
  },
325
325
  "docs/agent-notes/budget.md": {
326
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
326
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
327
327
  "paths": [
328
328
  "src/hub/budget.ts",
329
329
  "src/cli/statusline-tee.ts",
@@ -347,7 +347,7 @@
347
347
  ]
348
348
  },
349
349
  "docs/agent-notes/bus.md": {
350
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
350
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
351
351
  "paths": [
352
352
  "src/hub/bus.ts",
353
353
  "src/hub/envelope.ts",
@@ -362,7 +362,7 @@
362
362
  ]
363
363
  },
364
364
  "docs/agent-notes/daemon.md": {
365
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
365
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
366
366
  "paths": [
367
367
  "src/hub/daemon.ts",
368
368
  "src/hub/control-client.ts",
@@ -453,7 +453,7 @@
453
453
  ]
454
454
  },
455
455
  "docs/agent-notes/local-worker.md": {
456
- "verifiedAgainst": "1485f322ca22fc2700110d71d7109992a3c276df",
456
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
457
457
  "paths": [
458
458
  "src/adapters/local-worker.ts",
459
459
  "src/local/",
@@ -473,7 +473,7 @@
473
473
  ]
474
474
  },
475
475
  "docs/agent-notes/tasks.md": {
476
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
476
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
477
477
  "paths": [
478
478
  "src/hub/tasks.ts",
479
479
  "src/hub/board.ts",
@@ -521,7 +521,7 @@
521
521
  ]
522
522
  },
523
523
  "docs/agent-notes/tests.md": {
524
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
524
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
525
525
  "paths": [
526
526
  "test/",
527
527
  "scripts/check.sh",
@@ -559,7 +559,7 @@
559
559
  ]
560
560
  },
561
561
  "src/cli/help.ts": {
562
- "verifiedAgainst": "1485f322ca22fc2700110d71d7109992a3c276df",
562
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
563
563
  "paths": [
564
564
  "src/cli/main.ts",
565
565
  "src/cli/launch.ts",
@@ -578,7 +578,7 @@
578
578
  ]
579
579
  },
580
580
  "docs/agent-notes/security-review.md": {
581
- "verifiedAgainst": "c2a1f646720b2d79990d80cf07faefc3de3f8c86",
581
+ "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
582
582
  "paths": [
583
583
  "src/hub/envelope.ts",
584
584
  "src/hub/conductor.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staix/agent-hub",
3
- "version": "0.41.0",
3
+ "version": "0.43.0",
4
4
  "description": "Native multi-agent hub: Claude Code, Codex, Kimi Code, Pi and local inference as peers in one project",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,7 +17,7 @@
17
17
  "bun": ">=1.4.4"
18
18
  },
19
19
  "dependencies": {
20
- "@staix/agent-mem": "0.27.1"
20
+ "@staix/agent-mem": "0.29.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@modelcontextprotocol/sdk": "^1.27.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-hub",
3
- "version": "0.41.0",
3
+ "version": "0.43.0",
4
4
  "description": "Channel between Claude Code and the agent-hub daemon: peer messages from Codex, Kimi and the local worker arrive as channel events; hub_send replies.",
5
5
  "author": {
6
6
  "name": "Young Joon Lee",