dsh-hive-runner 0.6.7 → 0.8.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,102 @@ 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
+ ## [0.8.0] - 2026-12-04
11
+
12
+ ### Added
13
+
14
+ - **Task-tree lifecycle tools.** `hive_tasks` gains `edit` (partial update of
15
+ title/role/priority/acceptance/scope/after/tags/superseded on a pending or failed task;
16
+ goal and draft are not editable), `split` (at least two fine-grained tasks atomically
17
+ replace one, original superseded without a state change, replacedBy = first child) and
18
+ `supersede` (reason required; mark without changing the four-state state, allowed on a
19
+ claimed/running task). Backed by hive-tasks 1.9 `edit`/`split`/`supersede`; events
20
+ `task_edit`, `task_split` and `task_supersede` are written by hive-tasks.
21
+ - **Abort a live worker.** `runner.abortCard()` + `hive_intervene action=abort` stop one
22
+ card worker on request; that card is recorded `failed` with the queen's reason instead of
23
+ turning the round into an error. `pause` remains the repository-level throttle and
24
+ `supersede` the "let it finish but never dispatch again" path.
25
+ - **Goal evolution and autonomy** documented in README (en/zh) and SPEC §8.9: classify every
26
+ human message as a goal change before acting, state the interpretation, adjust the tree
27
+ live, evaluate the impact on running/claimed/done cards, record events and report
28
+ what/why/affected. Inside a confirmed goal the queen decides autonomously (splitting,
29
+ editing, ordering, pausing, retrying, arch reject, superseding); only a changed/ambiguous
30
+ goal, conflicting requirements, irreversible/high-cost actions, or three failed
31
+ interventions on one task go to the human.
32
+ - Superseded cards are excluded from gate phases exactly like drafts.
33
+
34
+ ### Changed
35
+
36
+ - `hive_intervene split` now uses the native atomic split (the original is superseded, not
37
+ reopened); `reassign`/`rebuild` keep their create-and-reopen/remove semantics.
38
+
39
+ ## [Unreleased]
40
+
41
+ ### Documentation
42
+
43
+ - Aligned `README.md`, `README.zh-CN.md`, `SPEC.md`, `docs/DESIGN.md`, `CONTRIBUTING.md`
44
+ and `SECURITY.md` with the 0.7 code: task/agent terminology, queen-session parenting
45
+ rules, the panel's agent-concurrency and resume controls, intervention/arch-review
46
+ event shapes, the Node 22.19 floor and the current test count. No behaviour change.
47
+
48
+ ## [0.7.0] - 2026-12-04
49
+
50
+ The queen becomes a coordinator: the supervisor now feeds her the anomalies she has to
51
+ act on, and the plugin gives her the tools to order, triage, review and govern the swarm
52
+ without editing code or claiming cards.
53
+
54
+ ### Added
55
+
56
+ - **Queen message injection.** Supervision events (`card-failed`, `card-timeout`,
57
+ `heartbeat-warn`, `worker-aborted`, `round-failed`, `auto-paused`,
58
+ `environment-error`) are coalesced into one digest and injected into the registered
59
+ queen Session through DSH's public Agent inbox
60
+ (`agent.followup({ id, role: 'user', content, source: { kind: 'hive-runner' } })`;
61
+ `steer`/`inject` fallbacks). A healthy swarm delivers nothing; when no queen Session is
62
+ live the digest stays in a pending list.
63
+ - **Queen patrol.** `patrolMs` (default 5 minutes) re-reads the supervisor status and
64
+ reports auto-paused repositories, stalled heartbeats and workers past their deadline;
65
+ it delivers only when something is pending. `anomalyDebounceMs`/`anomalyMax` bound the
66
+ digest queue.
67
+ - **Queen tool surface.** `hive_tasks` (list/show/add/reopen/retry/rm, with the last-run
68
+ record), `hive_arch_review`, `hive_events`, `hive_lesson_add`, `hive_recall`,
69
+ `hive_roles`, `hive_supervisor_control` (pause/resume/limits), `hive_anomalies`
70
+ (list/ack/patrol) and `hive_intervene`.
71
+ - **Gate pipeline.** Cards tagged `gate:group` dispatch only when every base card is
72
+ done, `gate:overall` only when every group gate is done; status exposes
73
+ `gate.phase`/`releaseReady` and reports `no-overall` when a repository does not
74
+ declare a release gate. Manual `hive_run_round` obeys the same order.
75
+ - **Architecture-review audit.** A done card without an `arch_review` event older than
76
+ `archReviewGraceMs` (default 10 minutes) becomes an `arch-review-missing` anomaly
77
+ (warning + pending digest).
78
+ - **Interventions.** `hive_intervene` records `queen_intervention { card, action, reason }`
79
+ for reopen/split/reassign/pause/fail/guide/remove/rebuild/escalate; a deletion stores
80
+ the removed card's title/state/scope in the event, a rebuild is limited to two per card,
81
+ and more than three interventions on one stuck card write `queen_escalation` and raise
82
+ the red-flag anomaly.
83
+ - New tools are allowlisted through fixed argv templates: `hive-tasks
84
+ list/add/reopen/retry/rm` (add supports an optional `--draft`), `hive lesson add`,
85
+ `hive roles list/add/rm` (umbrella `@d86e/hive`, `rolesBin`).
86
+
87
+ ### Changed
88
+
89
+ - Reopen reasons are rendered at the top of the retried worker prompt as
90
+ `## Queen guidance for this attempt`.
91
+ - Status adds `pendingAnomalies` and the per-repository `gate` snapshot; the HTTP route
92
+ adds `GET ?op=pending` and `POST ?op=ack`.
93
+ - Commands never forward `--force` for the queen's `rm`.
94
+
95
+ ### Compatibility
96
+
97
+ - DSH 0.2.2-rc.5: `Agent.followup/steer/inject` and the session-log source-kind rule are
98
+ the APIs used by the notifier. No DSH change is required.
99
+ - Existing configurations keep working: every new key is defaulted, and
100
+ `notifyQueen: false` leaves delivery in the pending list.
101
+
102
+ ### Published
103
+
104
+ - npm: `dsh-hive-runner@0.7.0` on 2026-12-04.
105
+
10
106
  ## [0.6.7] - 2026-12-04
11
107
 
12
108
  ### Fixed
@@ -27,6 +123,10 @@ iterations of the plugin before this repository was published.
27
123
  queen Session and every panel snapshot re-registers it after a plugin restart.
28
124
 
29
125
 
126
+ ### Published
127
+
128
+ - npm: `dsh-hive-runner@0.6.7` on 2026-12-04.
129
+
30
130
  ## [0.6.6] - 2026-12-04
31
131
 
32
132
  ### Changed