dsh-hive-runner 0.6.7 → 0.7.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/CHANGELOG.md CHANGED
@@ -7,6 +7,69 @@ 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
+ ## [Unreleased]
11
+
12
+ ### Documentation
13
+
14
+ - Aligned `README.md`, `README.zh-CN.md`, `SPEC.md`, `docs/DESIGN.md`, `CONTRIBUTING.md`
15
+ and `SECURITY.md` with the 0.7 code: task/agent terminology, queen-session parenting
16
+ rules, the panel's agent-concurrency and resume controls, intervention/arch-review
17
+ event shapes, the Node 22.19 floor and the current test count. No behaviour change.
18
+
19
+ ## [0.7.0] - 2026-12-04
20
+
21
+ The queen becomes a coordinator: the supervisor now feeds her the anomalies she has to
22
+ act on, and the plugin gives her the tools to order, triage, review and govern the swarm
23
+ without editing code or claiming cards.
24
+
25
+ ### Added
26
+
27
+ - **Queen message injection.** Supervision events (`card-failed`, `card-timeout`,
28
+ `heartbeat-warn`, `worker-aborted`, `round-failed`, `auto-paused`,
29
+ `environment-error`) are coalesced into one digest and injected into the registered
30
+ queen Session through DSH's public Agent inbox
31
+ (`agent.followup({ id, role: 'user', content, source: { kind: 'hive-runner' } })`;
32
+ `steer`/`inject` fallbacks). A healthy swarm delivers nothing; when no queen Session is
33
+ live the digest stays in a pending list.
34
+ - **Queen patrol.** `patrolMs` (default 5 minutes) re-reads the supervisor status and
35
+ reports auto-paused repositories, stalled heartbeats and workers past their deadline;
36
+ it delivers only when something is pending. `anomalyDebounceMs`/`anomalyMax` bound the
37
+ digest queue.
38
+ - **Queen tool surface.** `hive_tasks` (list/show/add/reopen/retry/rm, with the last-run
39
+ record), `hive_arch_review`, `hive_events`, `hive_lesson_add`, `hive_recall`,
40
+ `hive_roles`, `hive_supervisor_control` (pause/resume/limits), `hive_anomalies`
41
+ (list/ack/patrol) and `hive_intervene`.
42
+ - **Gate pipeline.** Cards tagged `gate:group` dispatch only when every base card is
43
+ done, `gate:overall` only when every group gate is done; status exposes
44
+ `gate.phase`/`releaseReady` and reports `no-overall` when a repository does not
45
+ declare a release gate. Manual `hive_run_round` obeys the same order.
46
+ - **Architecture-review audit.** A done card without an `arch_review` event older than
47
+ `archReviewGraceMs` (default 10 minutes) becomes an `arch-review-missing` anomaly
48
+ (warning + pending digest).
49
+ - **Interventions.** `hive_intervene` records `queen_intervention { card, action, reason }`
50
+ for reopen/split/reassign/pause/fail/guide/remove/rebuild/escalate; a deletion stores
51
+ the removed card's title/state/scope in the event, a rebuild is limited to two per card,
52
+ and more than three interventions on one stuck card write `queen_escalation` and raise
53
+ the red-flag anomaly.
54
+ - New tools are allowlisted through fixed argv templates: `hive-tasks
55
+ list/add/reopen/retry/rm` (add supports an optional `--draft`), `hive lesson add`,
56
+ `hive roles list/add/rm` (umbrella `@d86e/hive`, `rolesBin`).
57
+
58
+ ### Changed
59
+
60
+ - Reopen reasons are rendered at the top of the retried worker prompt as
61
+ `## Queen guidance for this attempt`.
62
+ - Status adds `pendingAnomalies` and the per-repository `gate` snapshot; the HTTP route
63
+ adds `GET ?op=pending` and `POST ?op=ack`.
64
+ - Commands never forward `--force` for the queen's `rm`.
65
+
66
+ ### Compatibility
67
+
68
+ - DSH 0.2.2-rc.5: `Agent.followup/steer/inject` and the session-log source-kind rule are
69
+ the APIs used by the notifier. No DSH change is required.
70
+ - Existing configurations keep working: every new key is defaulted, and
71
+ `notifyQueen: false` leaves delivery in the pending list.
72
+
10
73
  ## [0.6.7] - 2026-12-04
11
74
 
12
75
  ### Fixed
@@ -27,6 +90,10 @@ iterations of the plugin before this repository was published.
27
90
  queen Session and every panel snapshot re-registers it after a plugin restart.
28
91
 
29
92
 
93
+ ### Published
94
+
95
+ - npm: `dsh-hive-runner@0.6.7` on 2026-12-04.
96
+
30
97
  ## [0.6.6] - 2026-12-04
31
98
 
32
99
  ### Changed