dsh-hive-runner 1.0.1 → 1.0.2
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/CHANGELOG.md +22 -2
- package/README.md +3 -0
- package/SPEC.md +4 -2
- package/docs/DESIGN.md +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,21 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
Version 0.6.0 is the first public snapshot; 0.1.0-0.5.0 were local development
|
|
8
8
|
iterations of the plugin before this repository was published.
|
|
9
9
|
|
|
10
|
+
## [1.0.2] - 2026-12-05
|
|
11
|
+
|
|
12
|
+
### Tests
|
|
13
|
+
|
|
14
|
+
- Integration test proving the queen tool guard is scoped to the queen's own tool calls:
|
|
15
|
+
a direct `subagent` tool call from the queen Session is denied while the supervisor
|
|
16
|
+
can still dispatch a worker from the same queen Session (`ctx.subagents.startActivation`
|
|
17
|
+
is a service call, not a tool call) and that worker Session can delegate again; the
|
|
18
|
+
guard invocation count proves the dispatch path bypasses the guard. 210 tests pass.
|
|
19
|
+
|
|
20
|
+
### Documentation
|
|
21
|
+
|
|
22
|
+
- README, SPEC and docs/DESIGN state the boundary explicitly: only the queen's own tool
|
|
23
|
+
calls are vetoed, never the swarm dispatch or a worker's subagent capability.
|
|
24
|
+
|
|
10
25
|
## [1.0.1] - 2026-12-05
|
|
11
26
|
|
|
12
27
|
### Added
|
|
@@ -17,8 +32,13 @@ iterations of the plugin before this repository was published.
|
|
|
17
32
|
`女王不改代码,请用 hive_tasks 建任务`, the attempt is appended to
|
|
18
33
|
`<repo>/.hive/events.jsonl` as `queen_boundary_violation`, pushed as a
|
|
19
34
|
`queen-boundary-violation` anomaly digest, and counted in status
|
|
20
|
-
(`queenBoundaryViolations` / `lastQueenBoundaryViolation`).
|
|
21
|
-
|
|
35
|
+
(`queenBoundaryViolations` / `lastQueenBoundaryViolation`). The veto covers only
|
|
36
|
+
the queen's own tool calls: supervisor dispatch via `ctx.subagents.startActivation`
|
|
37
|
+
and a worker's own subagent calls are not tool calls and keep working.
|
|
38
|
+
### Published
|
|
39
|
+
|
|
40
|
+
- npm: `dsh-hive-runner@1.0.1` on 2026-12-05.
|
|
41
|
+
|
|
22
42
|
## [1.0.0] - 2026-12-04
|
|
23
43
|
|
|
24
44
|
### Stable
|
package/README.md
CHANGED
|
@@ -107,6 +107,9 @@ DSH `ctx.tools.guard`, so a queen Session calling `subagent`, `subagent_fork` or
|
|
|
107
107
|
`女王不改代码,请用 hive_tasks 建任务`, and the attempt is recorded as a
|
|
108
108
|
`queen_boundary_violation` event (with an anomaly digest for self-correction). Task
|
|
109
109
|
metadata (add/reopen/retry/rm), roles and lessons are coordination state, not code.
|
|
110
|
+
The veto covers only the queen's own tool calls: supervisor dispatch
|
|
111
|
+
(`ctx.subagents.startActivation`) and a worker's own subagent calls are not tool
|
|
112
|
+
calls and remain allowed.
|
|
110
113
|
|
|
111
114
|
### When the queen hears from the supervisor
|
|
112
115
|
|
package/SPEC.md
CHANGED
|
@@ -353,8 +353,10 @@ equals `queenSessionId` and the tool is `subagent`, `subagent_fork` or
|
|
|
353
353
|
runs. The attempt is appended to `<repo>/.hive/events.jsonl` with
|
|
354
354
|
`kind: "queen_boundary_violation"` (`ts`, `actor`, `tool`, `message`, `sessionId`),
|
|
355
355
|
pushed as a `queen-boundary-violation` anomaly so the digest reaches the queen, and
|
|
356
|
-
counted in status (`queenBoundaryViolations`, `lastQueenBoundaryViolation`).
|
|
357
|
-
|
|
356
|
+
counted in status (`queenBoundaryViolations`, `lastQueenBoundaryViolation`). The
|
|
357
|
+
guard sees model-requested tool executions only; supervisor dispatch through
|
|
358
|
+
`ctx.subagents.startActivation` and a worker's own subagent calls do not pass through
|
|
359
|
+
it, so the swarm and worker delegation keep working.
|
|
358
360
|
|
|
359
361
|
## 8.7 Gates and release readiness
|
|
360
362
|
|
package/docs/DESIGN.md
CHANGED
|
@@ -297,8 +297,11 @@ needed and is not implemented.
|
|
|
297
297
|
- it also becomes a `queen-boundary-violation` anomaly, so the coalesced anomaly digest
|
|
298
298
|
tells the queen to self-correct; `status` exposes `queenBoundaryViolations` and
|
|
299
299
|
`lastQueenBoundaryViolation`;
|
|
300
|
-
-
|
|
301
|
-
|
|
300
|
+
- it only vetoes **model-requested tool calls from the queen Session**. The
|
|
301
|
+
supervisor's swarm dispatch (`ctx.subagents.startActivation`) is a service call,
|
|
302
|
+
not a tool execution, so it bypasses `tools.guard` and keeps working from the same
|
|
303
|
+
queen Session; worker/child Sessions and their own subagent tools are unaffected
|
|
304
|
+
(PTC nested tool calls share the same pipeline and are covered by the predicate).
|
|
302
305
|
|
|
303
306
|
Tests: `test/queen-boundary.test.js` covers all three vetoed tools, the queen-only
|
|
304
307
|
predicate, the durable event, and the status counters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-hive-runner",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "DSH host plugin for Hive: a resident supervisor that runs one DSH subagent per ready task card, with per-role worker limits, pause/resume and Hive tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|