@staix/agent-hub 0.43.0 → 0.44.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 (54) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +1 -1
  3. package/docs/agent-notes/daemon.md +3 -3
  4. package/docs/agent-notes/local-worker.md +1 -0
  5. package/docs/agent-notes/tasks.md +2 -1
  6. package/docs/agent-notes/tests.md +1 -1
  7. package/docs/design/agent-hub-architecture.md +2 -0
  8. package/docs/design/supervision.md +13 -1
  9. package/docs/design/task-board.md +7 -1
  10. package/docs/dogfood.md +8 -2
  11. package/docs/events.md +4 -2
  12. package/docs/memory.md +3 -3
  13. package/docs/operations.md +37 -17
  14. package/docs/quickstart.md +8 -2
  15. package/docs/research.md +2 -0
  16. package/docs/sdlc.md +5 -2
  17. package/docs/security.md +2 -2
  18. package/docs/verification/2026-11-11-supervision-pilot-1221.md +864 -0
  19. package/docs/verification/2026-11-19-0.44.0.md +60 -0
  20. package/docs/verified.json +22 -22
  21. package/package.json +2 -2
  22. package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
  23. package/plugins/agent-hub/kimi-hook.js +183 -105
  24. package/plugins/agent-hub/server.js +202 -121
  25. package/src/cli/main.ts +1 -1
  26. package/src/cli/output.ts +2 -2
  27. package/src/cli/sdlc-output.ts +7 -1
  28. package/src/cli/upgrade.ts +9 -3
  29. package/src/hub/board.ts +14 -1
  30. package/src/hub/bus.ts +4 -0
  31. package/src/hub/claude-shell-wrapper.ts +2 -1
  32. package/src/hub/control-write-trace.ts +39 -2
  33. package/src/hub/daemon.ts +66 -24
  34. package/src/hub/facts.ts +30 -0
  35. package/src/hub/hub-tools.ts +1 -1
  36. package/src/hub/quota-events.ts +40 -0
  37. package/src/hub/recovery-store.ts +21 -3
  38. package/src/hub/report.ts +1 -1
  39. package/src/hub/research-quality.ts +5 -1
  40. package/src/hub/research-record.ts +3 -2
  41. package/src/hub/restart.ts +49 -2
  42. package/src/hub/runtime-capture-prune.ts +9 -1
  43. package/src/hub/runtime-prune-health.ts +5 -1
  44. package/src/hub/sdlc-merge.ts +7 -3
  45. package/src/hub/sdlc-metrics.ts +15 -6
  46. package/src/hub/sdlc.ts +18 -6
  47. package/src/hub/snapshots.ts +43 -0
  48. package/src/hub/supervision-rules.ts +2 -2
  49. package/src/hub/task-shell-command.ts +124 -0
  50. package/src/hub/tasks.ts +124 -20
  51. package/src/hub/worktree-shelf.ts +2 -1
  52. package/src/local/sandbox.ts +2 -1
  53. package/src/local/shell-environment.ts +6 -0
  54. package/src/memory/brief.ts +10 -1
@@ -0,0 +1,60 @@
1
+ # 0.44.0 release verification
2
+
3
+ This is a release preparation record. It claims no installation, running-hub upgrade, live-agent acceptance or release consent.
4
+
5
+ ## Candidate
6
+
7
+ The candidate is based on main 7b5afdaf, with 15 commits since v0.43.0 and three feature commits. The minor release rule selects 0.44.0. The previous minor's latest published patch is @staix/agent-hub 0.43.0, with agent-mem 0.29.0 and protocol 17, minimum 16; the release N-1 fixture pins that published package. Protocol-16 coverage remains separately pinned at 0.25.0.
8
+
9
+ ## Commit and changelog coverage
10
+
11
+ Every commit in v0.43.0..7b5afdaf has a corresponding 0.44.0 CHANGELOG entry:
12
+
13
+ - 7b5afdaf, PR #1573: exact agent-mem 0.30.0 pin.
14
+ - 6024d087, PR #1572: sandboxed Bun and npm cache defaults.
15
+ - 71dc7598, PR #1571: bounded and yielding task intent screening.
16
+ - 0408c0c4, PR #1570: auto-pull ready reservations.
17
+ - 9ba53a7d, PR #1567: check total backstop.
18
+ - d46387b0, PR #1390: supervision shadow pilot results and limits, added during release preparation.
19
+ - 4f577c52, PR #1569: merge costs and security scan availability.
20
+ - 38668533, PR #1568: quota event heartbeat and suppression.
21
+ - b76f44fc, PR #1554: exhausted snapshot boundary cooldown.
22
+ - 902ef3a3, PR #1563: single CLI audit outcome.
23
+ - 0481c0a4, PR #1566: control-write span accounting.
24
+ - 7142cd38, PR #1565: runtime prune and recovery coordination.
25
+ - 5051ef8e, PR #1561: read receipts and shell write classifier.
26
+ - 890ff2cd, PR #1562: restart snapshot and retained copy bounds.
27
+ - 9f29385a, PR #1558: isolated check outcome evidence.
28
+
29
+ ## Reviews and acceptance
30
+
31
+ The named pull requests are merged in the candidate base. A per-PR audit of the exact merge-head review and hosted CI evidence is deferred; the list above does not assert those checks. The added receipt is `docs/verification/2026-11-11-supervision-pilot-1221.md`; it records a shadow pilot, not native or live release acceptance. The release PR needs its own exact-head review and hosted CI. Release consent remains a separate person decision.
32
+
33
+ ## Documentation review
34
+
35
+ `node scripts/check-docs.mjs --require-fresh` reported 22 stale documents. The review is delta-scoped: each document was read against what the release commits change under its governing paths since its stamp, not reread in full, and a restamp here certifies that delta only. The changes are isolated check outcomes (#1558), restart snapshot bounds (#1562), read receipts and the shell write classifier (#1561), runtime prune under recovery coordination (#1565), control-write span accounting (#1566), the single CLI audit outcome (#1563), the snapshot cooldown (#1554), quota row sampling (#1568), external merge costs (#1569), the check backstop (#1567), auto-pull triggers (#1570), yielding intent screening (#1571), sandbox cache defaults (#1572), the agent-mem 0.30.0 pin (#1573) and the 0.44.0 version bump made in release preparation.
36
+
37
+ - docs/operations.md: the `tasks.auto_pull` settings row named only a freed planner slot; it now names the four triggers (#1570). Added the same-turn and 16-hop span accounting with its lower-bound limit (#1566), the recovery-hold rules for runtime pruning (#1565), the Bun and npm cache defaults in the command temp dir (#1572) and the ten-minute snapshot cooldown (#1554), and corrected the `snapshot unavailable` log line, which a turn boundary now writes only when a cooldown starts. Its restart archive, quota row and agent-mem pin sentences were already updated by #1562, #1568 and #1573.
38
+ - docs/events.md: the `agent_cli` row said a later refusal by the hub is not recorded. The daemon records a conductor operation's outcome itself, and for any other task command the CLI adds a second `refused` record only when the reply carries `authorityRefused: true`, which the daemon sets only for conductor operations; a failed ordinary task command adds none (#1563). The `quota` row was already updated by #1568.
39
+ - docs/sdlc.md: the merge-time readback said a hand merge is always `unknown`. A PR merged outside the hub with merge mode `off` is now observed by the host (#1569).
40
+ - docs/security.md: the isolated check runner was described as pinned to Bun 1.4.2; `CHECK_IMAGE` in `src/hub/check-runner.ts` pins 1.4.4. The Bun 1.4.2 minimum for rooms earlier in the document is `ROOM_MIN_BUN_VERSION` and is unchanged.
41
+ - docs/dogfood.md: the opt-in auto pull row said at most one pull per capacity release; it is one per trigger and peer (#1570). Its other rows for these commits were added by the PRs that changed the sources.
42
+ - docs/agent-notes/daemon.md: added the CLI audit rule for commands that are not conductor operations (#1563) and the snapshot cooldown rule with its diagnostic (#1554); the task brief rule was updated by #1571.
43
+ - docs/agent-notes/tasks.md: added the external merge readback rule (#1569); the auto-pull rule was updated by #1570.
44
+ - docs/agent-notes/local-worker.md and docs/agent-notes/tests.md were updated by #1572 and #1567. docs/memory.md and docs/quickstart.md carry the agent-mem 0.30.0 pin from #1573, as do docs/operations.md and docs/security.md, and docs/quickstart.md gained the "Upgrading to 0.44.0" note.
45
+ - README.md, docs/adding-an-ai-tool.md, docs/addons/claude-mem.md (it names no pin version), docs/agent-notes/README.md, docs/agent-notes/adapters.md, docs/agent-notes/benchmarks.md, docs/agent-notes/budget.md, docs/agent-notes/bus.md, docs/agent-notes/security-review.md and docs/data-policy.md: searched for the behavior each release commit changes under their paths (not reread in full); no contradicting statement was found.
46
+ - src/cli/help.ts: the only change under its paths is the one-line audit predicate in `src/cli/main.ts` (#1563). No command, subcommand or flag was added, removed or renamed, so `ahub help` needs no change.
47
+
48
+ All 22 were restamped with `bun scripts/release-prepare.ts restamp <document>... --reviewed` in a commit after the one that holds these corrections.
49
+
50
+ ## Checks
51
+
52
+ - `bun scripts/release-prepare.ts --dry-run` selected 0.44.0 and listed all 15 commits; the subsequent preparation used pinned Bun 1.4.4.
53
+ - npm reported 0.43.0 as the latest published stable 0.43.x release and its exact agent-mem dependency as 0.29.0. The fixture lock was regenerated using Bun 1.4.4; published protocol constants are 17 and 16.
54
+ - `node scripts/check-docs.mjs --require-fresh` after the restamp: `docs: OK (0 stale documents)`.
55
+ - The published protocol compatibility fixture passed on a remote isolated working-tree snapshot: 5 pass, 0 fail, covering both N-1 directions and the protocol-16 floor.
56
+ - Exact-head remote changed gate and hosted CI results are recorded in the release PR and task; they are separate from these fixture results.
57
+
58
+ ## Known gaps
59
+
60
+ No release consent, merge, tag, publication, installation, live agent execution, mixed-version shared-home compatibility or rollback has been established. The documentation review covers the release delta only; statements outside it were not rechecked. The dependency's reader-lease identity change remains separate. No memory home or sync format floor is raised by this release preparation.
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "documents": {
4
4
  "README.md": {
5
- "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
5
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
14
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
15
15
  "paths": [
16
16
  "src/",
17
17
  "templates/"
18
18
  ]
19
19
  },
20
20
  "docs/operations.md": {
21
- "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
21
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
38
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
46
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
65
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
144
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
157
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
167
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
180
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
181
181
  "paths": [
182
182
  "package.json",
183
183
  "src/memory/",
@@ -232,7 +232,7 @@
232
232
  ]
233
233
  },
234
234
  "docs/sdlc.md": {
235
- "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
235
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
236
236
  "paths": [
237
237
  "src/hub/sdlc.ts",
238
238
  "src/hub/sdlc-merge.ts",
@@ -273,7 +273,7 @@
273
273
  ]
274
274
  },
275
275
  "docs/agent-notes/adapters.md": {
276
- "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
276
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
277
277
  "paths": [
278
278
  "src/adapters/",
279
279
  "src/pi/",
@@ -311,7 +311,7 @@
311
311
  ]
312
312
  },
313
313
  "docs/agent-notes/benchmarks.md": {
314
- "verifiedAgainst": "1485f322ca22fc2700110d71d7109992a3c276df",
314
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
315
315
  "paths": [
316
316
  "scripts/benchmarks/",
317
317
  "test/benchmarks/",
@@ -323,7 +323,7 @@
323
323
  ]
324
324
  },
325
325
  "docs/agent-notes/budget.md": {
326
- "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
326
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
350
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
365
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
456
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
476
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
524
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
525
525
  "paths": [
526
526
  "test/",
527
527
  "scripts/check.sh",
@@ -550,7 +550,7 @@
550
550
  ]
551
551
  },
552
552
  "docs/agent-notes/README.md": {
553
- "verifiedAgainst": "1485f322ca22fc2700110d71d7109992a3c276df",
553
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
554
554
  "paths": [
555
555
  "src/cli/console-state.ts",
556
556
  "src/cli/attention.ts",
@@ -559,7 +559,7 @@
559
559
  ]
560
560
  },
561
561
  "src/cli/help.ts": {
562
- "verifiedAgainst": "844b5cb39939607cec945a7e4108c67268251601",
562
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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": "844b5cb39939607cec945a7e4108c67268251601",
581
+ "verifiedAgainst": "250eb2d8ee7ea86254295e1b9e7515e3851d00c8",
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.43.0",
3
+ "version": "0.44.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.29.0"
20
+ "@staix/agent-mem": "0.30.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.43.0",
3
+ "version": "0.44.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",