hive-tasks 1.7.0 → 1.8.1

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
@@ -4,6 +4,69 @@ All notable changes to this project are documented here. The format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project uses
5
5
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## Unreleased
8
+
9
+ ### Changed
10
+
11
+ - Documentation aligned with the current implementation. README.md, README.zh-CN.md and
12
+ SPEC.md now use "task" throughout, describe the four states (pending, claimed, done,
13
+ failed), the required `--acceptance`/`--draft` rule, drafts as a flag, stage chains
14
+ and role fallback, `stateChangedAt`, reopen/review-of and `rm`. Statements without
15
+ code support were corrected (for example the missing-dependency "data error", the
16
+ "never starts a process" claim and the generated id length). No behaviour or protocol
17
+ change.
18
+
19
+ ## [1.8.1] - 2026-12-04
20
+
21
+ ### Added
22
+
23
+ - `stateChangedAt` (ISO timestamp) on every card: the last time the card really moved
24
+ lane or stage (claim, done, fail, retry, reopen and stage transitions, including a
25
+ stage advance that keeps the card pending). Metadata-only updates such as renew leave
26
+ it unchanged. list/show/next/ready JSON expose it.
27
+ - Legacy cards written before 1.8.1 have no field; the read side falls back to
28
+ `updatedAt`.
29
+
30
+ ### Tests
31
+
32
+ - 52 node:test scenarios: the 48 from 1.8.0 unchanged, plus test/state-changed.test.mjs
33
+ covering lane changes, a stage advance while the card stays pending, renew and a
34
+ title-only metadata edit not moving it, and the updatedAt fallback for legacy cards.
35
+
36
+ ## [1.8.0] - 2026-12-04
37
+
38
+ ### Added
39
+
40
+ - Draft cards: `add --draft` creates a card without an acceptance command and stores
41
+ `draft: true` on the blob (normal cards omit the key entirely). draft is a flag, not a
42
+ state: the card keeps pending/claimed/done/failed, but ready, next and every
43
+ dispatch-ready computation exclude it, and claim refuses it with exit 2 and a clear
44
+ message. list/show expose the flag in JSON and text.
45
+ - `plan --file plan.json` accepts `"draft": true` per entry. Every entry without an
46
+ acceptance command and without `"draft": true` is rejected before anything is
47
+ written; the refusal names the offending entry as `plan[N] ("title")`.
48
+
49
+ ### Changed
50
+
51
+ - `add` now mechanically requires `--acceptance` unless `--draft` is passed:
52
+ `add: --acceptance is required (or pass --draft for a draft card)`, exit 2. The rule
53
+ also applies to staged cards; per-stage acceptance still overrides the card command
54
+ for done --verify.
55
+ - USAGE, README.md, README.zh-CN.md and SPEC.md document the required acceptance, the
56
+ draft field and the dispatch rule; the CI smoke test creates its card with --acceptance.
57
+
58
+ ### Tests
59
+
60
+ - 48 node:test scenarios. The 43 scenarios from 1.7.0 were updated to create cards with
61
+ --acceptance where they only exercised another behaviour; five new scenarios in
62
+ test/draft.test.mjs cover the add refusal and both escapes, the stored flag (and its
63
+ absence on normal cards), ready/next exclusion and claim refusal for plain and staged
64
+ drafts, plan rejection naming the entry, and draft entries in a plan.
65
+
66
+ ### Published
67
+
68
+ - Not published to npm in this change.
69
+
7
70
  ## [1.7.0] - 2026-12-04
8
71
 
9
72
  ### Changed
@@ -27,6 +90,10 @@ All notable changes to this project are documented here. The format follows
27
90
  by different agents (both claimed, both visible on the hive board, overlap reported)
28
91
  and release ownership for a superseded announcement.
29
92
 
93
+ ### Published
94
+
95
+ - npm: `hive-tasks@1.7.0` on 2026-12-04.
96
+
30
97
  ## [1.6.0] - 2026-12-04
31
98
 
32
99
  ### Changed
package/README.md CHANGED
@@ -5,16 +5,16 @@
5
5
  [![CI](https://github.com/d86e/hive-tasks/actions/workflows/ci.yml/badge.svg)](https://github.com/d86e/hive-tasks/actions/workflows/ci.yml)
6
6
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
7
7
 
8
- **When several agents share a repository, "what is left to do, in what order, and who is doing it" lives in a chat prompt and dies with the session. hive-tasks makes it a query: every unit of work is a card in one git tree, behind one ref, with a state machine, dependencies and a role.**
8
+ **When several agents share a repository, "what is left to do, in what order, and who is doing it" lives in a chat prompt and dies with the session. hive-tasks makes it a query: every unit of work is a task in one git tree, behind one ref, with a state machine, optional stage chains, dependencies and a role.**
9
9
 
10
10
  ```
11
11
  refs/hive/v1/tasks -> tree
12
- auth-token-a1b2 -> blob (the card)
12
+ auth-token-a1b2 -> blob (the task)
13
13
  ```
14
14
 
15
- No server, no database, no queue process. A claim is a compare-and-swap on that one ref, so exactly one agent wins a card; the paths it touches are announced on the [hive-consensus](https://github.com/d86e/hive-consensus) board, where overlaps are visible information rather than a refusal.
15
+ No server, no database, no queue process. A claim is a compare-and-swap on that one ref, so exactly one agent wins a task; the paths it touches are announced on the [hive-consensus](https://github.com/d86e/hive-consensus) board, where overlaps are visible information rather than a refusal.
16
16
 
17
- > ~1,400 lines, zero dependencies, git >= 2.40
17
+ > ~1,600 lines, zero dependencies, Node.js >= 22.19, git >= 2.40
18
18
 
19
19
  **Built for**: agent teams that already coordinate with hive; a queen that hands out work; a dispatcher that needs a stable list instead of a conversation.
20
20
 
@@ -26,20 +26,28 @@ No server, no database, no queue process. A claim is a compare-and-swap on that
26
26
 
27
27
  An agent crashes mid-run. Was task 4 done? Nobody knows. Another agent finishes a task and the queen's list is stale. Two agents pick up "the tests" because both read the same paragraph.
28
28
 
29
- A card fixes that: it has an id, a state, an owner, an attempt count and a verdict. The answer to "what is left" is a command, not a memory.
29
+ A task fixes that: it has an id, a state, an owner, an attempt count and a verdict. The answer to "what is left" is a command, not a memory.
30
30
 
31
31
  ## Install
32
32
 
33
+ hive-tasks needs Node.js >= 22.19 and git >= 2.40. `init` creates `.hive/` and adds a
34
+ short hive-tasks section to `AGENTS.md`:
35
+
33
36
  ```bash
34
37
  npx hive-tasks init
35
- npx hive-tasks add --title "auth takes an object" --role coder --scope src/auth.ts
38
+ npx hive-tasks add --title "auth takes an object" --role coder --scope src/auth.ts --acceptance "npm test -- auth"
36
39
  ```
37
40
 
41
+ `--acceptance` is required for every task that is not a draft: a task has to say how it
42
+ will be judged.
43
+
38
44
  ## 60-second demo
39
45
 
40
46
  ```bash
41
- $ hive-tasks add --title "auth takes an object" --role coder --scope src/auth.ts
47
+ $ hive-tasks add --title "auth takes an object" --role coder --scope src/auth.ts --acceptance "npm test -- auth"
42
48
  auth-takes-an-object-dea2 [pending] auth takes an object
49
+ role: coder owner: - attempt: 0
50
+ scope: src/auth.ts
43
51
 
44
52
  $ hive-tasks ready
45
53
  auth-takes-an-object-dea2 pending coder auth takes an object
@@ -47,11 +55,12 @@ auth-takes-an-object-dea2 pending coder auth takes an object
47
55
  $ hive-tasks claim auth-takes-an-object-dea2 --agent agent-A
48
56
  auth-takes-an-object-dea2 [claimed] auth takes an object
49
57
  role: coder owner: agent-A attempt: 1
58
+ scope: src/auth.ts
50
59
 
51
60
  $ hive-tasks claim auth-takes-an-object-dea2 --agent agent-B
52
61
  hive-tasks: task auth-takes-an-object-dea2 is claimed # exit 2
53
62
 
54
- $ hive-tasks add --title "token tests" --role tester --after auth-takes-an-object-dea2
63
+ $ hive-tasks add --title "token tests" --role tester --after auth-takes-an-object-dea2 --acceptance "npm test -- token"
55
64
  $ hive-tasks ready
56
65
  Nothing ready.
57
66
 
@@ -64,33 +73,47 @@ token-tests-ba66 pending tester token tests
64
73
 
65
74
  | Command | Effect |
66
75
  | --- | --- |
67
- | add --title T [--role R] [--scope P] [--after ID] [--review-of ID] [--priority N] [--stage ROLE[:ACCEPTANCE]] [--stages FILE] | create a card; --review-of links it to the card it tests; --stage/--stages build a stage chain |
68
- | list [--state S] [--role R] [--json] | every card |
69
- | show <id> [--json] | one card, its stage chain, and the resolved role source |
70
- | ready [--limit N] [--role R] [--json] | pending cards whose dependencies are done, ordered by priority then age |
71
- | next [--role R] | the single best candidate |
72
- | claim <id> --agent A [--ttl 5m] | card CAS, then announce the scope paths on the hive-consensus board |
73
- | renew <id> [--ttl 5m] | extend a claim so a long run is not stolen |
74
- | done <id> [--sha S] [--verdict pass\|fail] [--verify] | finish, release the claim's announcements, record resultCommit; on a staged card it opens the next stage; --verify runs the current stage acceptance first |
75
- | plan --file plan.json | create a whole dependency tree in one transaction |
76
+ | init | create .hive/ and the hive-tasks section in AGENTS.md |
77
+ | add --title T (--acceptance CMD \| --draft) [--role R] [--scope P] [--after ID] [--review-of ID] [--tag T] [--priority N] [--goal G] [--stage ROLE[:ACCEPTANCE]] [--stages FILE] | create a task; --acceptance is required unless --draft; --review-of links it to the task it tests; --stage/--stages build a stage chain |
78
+ | list [--state S] [--role R] [--json] | every task, drafts included |
79
+ | show <id> [--json] | one task, its stage chain, the draft flag and the resolved role source |
80
+ | ready [--limit N] [--role R] [--json] | pending, non-draft tasks whose dependencies are done, ordered by priority then age |
81
+ | next [--role R] [--json] | the single best candidate |
82
+ | claim <id> --agent A [--ttl 5m] | task CAS, then announce the scope paths on the hive-consensus board |
83
+ | renew <id> [--ttl 5m] | extend a claim so a long but healthy run is not recovered mid-flight |
84
+ | done <id> [--sha S] [--verdict pass\|fail] [--verify] | finish, release the claim's announcements, record resultCommit; on a staged task it opens the next stage; --verify runs the current stage acceptance first |
85
+ | plan --file plan.json | create a whole dependency tree in one transaction; entries take title, key, acceptance (or "draft": true), role, scope, after, priority, tags, goal and stages |
76
86
  | fail <id> --reason R | failure is data: attempt stays; a stage with a done onFail target rewinds instead |
77
87
  | retry <id> [--stage KEY] | failed back to pending (or reset a chain to KEY) |
78
- | reopen <id> [--reason R] [--agent A] [--stage KEY] | every state back to pending; clears owner, claim, result and verdict, attempt + 1; releases the claim's announcements; a staged card resets to KEY (default the first stage) |
79
- | rm <id> [--force] [--json] | delete a pending/failed/done card; a claimed card is refused (exit 2) unless --force, which releases its announcements first |
88
+ | reopen <id> [--reason R] [--agent A] [--stage KEY] | every state back to pending; clears owner, claim, result and verdict, attempt + 1; releases the claim's announcements; a staged task resets to KEY (default the first stage) |
89
+ | rm <id> [--force] [--json] | delete a pending/failed/done task; a claimed task is refused (exit 2) unless --force, which releases its announcements first |
90
+ | stats [--json] | counts by state and role, plus the oldest pending task |
91
+
92
+ Exit codes: 0 success, 1 internal error, 2 refused (already claimed, wrong state, unknown
93
+ task, dependency missing, mode freeze, invalid stage chain, missing --acceptance, draft
94
+ claim).
80
95
 
81
- Exit codes: 0 done, 1 internal error, 2 refused (already claimed, wrong state, dependency missing, mode freeze).
96
+ ## Timestamps
97
+
98
+ Each task stores `stateChangedAt`, the ISO time it last really moved lane or stage (lane =
99
+ state plus current stage and stage state). Claiming a pending task, done, fail, retry,
100
+ reopen and stage transitions move it when they change the lane, including a stage advance
101
+ that keeps the task pending. Anything that leaves the lane alone — renew, an external
102
+ title or goal edit, or reclaiming an expired claim while the task stays claimed — leaves
103
+ it unchanged. list, ready, next and show JSON expose it; tasks written before 1.8.1 have
104
+ no such field and readers fall back to `updatedAt`.
82
105
 
83
106
  ## Resource keys
84
107
 
85
- scope entries are usually paths, but the lease layer does not care: any stable string
86
- works. Use a prefix for shared things that are not files:
108
+ scope entries are usually paths, but the announcement layer does not care: any stable
109
+ string works. Use a prefix for shared things that are not files:
87
110
 
88
111
  ~~~bash
89
- hive-tasks add --title "run the dev server" --scope src/web --scope resource:port:3000
90
- hive-tasks add --title "migrate" --scope resource:db:dev
112
+ hive-tasks add --title "run the dev server" --acceptance "curl -sf localhost:3000/health" --scope src/web --scope resource:port:3000
113
+ hive-tasks add --title "migrate" --acceptance "npm run migrate:verify" --scope resource:db:dev
91
114
  ~~~
92
115
 
93
- Two cards that name the same resource can be claimed at the same time: the claim
116
+ Two tasks that name the same resource can be claimed at the same time: the claim
94
117
  announces the key and reports an existing live announcement as an overlap. Nothing else
95
118
  is required: no daemon watches ports, and no claim is refused because of one.
96
119
 
@@ -101,25 +124,25 @@ hive-tasks stats
101
124
  hive-tasks stats --json
102
125
  ~~~
103
126
 
104
- Counts by state and role, plus the oldest pending card.
127
+ Counts by state and role, plus the oldest pending task.
105
128
 
106
129
  ## How a claim works
107
130
 
108
- 1. the card CAS moves pending -> claimed in the task tree (one winner per card);
109
- 2. every scope path is announced on the hive-consensus lease board; the latest
131
+ 1. the task CAS moves pending -> claimed in the task tree (one winner per task);
132
+ 2. every scope path is announced on the hive-consensus announcement board; the latest
110
133
  announcement wins and a live announcement by another agent is reported as an
111
134
  overlap;
112
- 3. done, fail, retry, reopen and rm --force release the announcements their claim owns.
135
+ 3. done, fail, reopen and rm --force release the announcements their claim owns.
113
136
 
114
- Announcements never refuse a card: two agents may hold two cards whose scope overlaps,
137
+ Announcements never refuse a task: two agents may hold two tasks whose scope overlaps,
115
138
  which is exactly what the queue must allow. merge-on-commit reconciles the two edits at
116
- commit time; the card is the authority, the announcement is visibility for the board.
139
+ commit time; the task is the authority, the announcement is visibility for the board.
117
140
 
118
141
  ## When an agent dies
119
142
 
120
143
  Every claim carries claimedUntil (the --ttl, 5 minutes by default). Once it passes, the
121
- card is **reclaimable**: the next agent that claims it takes over as if the card were
122
- pending, incrementing attempt. No operator, no stale lock:
144
+ task is **reclaimable**: the next agent that claims it takes over as if the task were
145
+ pending, incrementing attempt. No operator and no manual cleanup:
123
146
 
124
147
  ~~~bash
125
148
  $ hive-tasks claim slow-task-1a2b --agent agent-A --ttl 1s
@@ -130,28 +153,30 @@ $ hive-tasks claim slow-task-1a2b --agent agent-B # attempt 2, owner agent-B
130
153
 
131
154
  A long but healthy run calls renew to keep its claim.
132
155
 
133
- ## Deleting a card
156
+ ## Deleting a task
134
157
 
135
- Remove a card that should not stay on the board:
158
+ Remove a task that should not stay on the board:
136
159
 
137
160
  ~~~bash
138
- $ hive-tasks rm stale-card-1a2b
139
- stale-card-1a2b deleted [pending] stale card
161
+ $ hive-tasks rm stale-task-1a2b
162
+ stale-task-1a2b deleted [pending] stale task
140
163
 
141
- $ hive-tasks rm working-card-9f8e
142
- hive-tasks: task working-card-9f8e is claimed by agent-A; release or reopen it first, or use --force # exit 2
143
- $ hive-tasks rm working-card-9f8e --force # releases the claim's announcements, then deletes
164
+ $ hive-tasks rm working-task-9f8e
165
+ hive-tasks: task working-task-9f8e is claimed by agent-A; release or reopen it first, or use --force # exit 2
166
+ $ hive-tasks rm working-task-9f8e --force # releases the claim's announcements, then deletes
144
167
  ~~~
145
168
 
146
- pending, failed and done cards are deletable. A claimed card is protected on
147
- purpose: delete it with --force, which releases exactly that claim's announcements first, so
148
- no lease is stranded. An unknown id is exit 2, and a second delete reports "no such task"
149
- instead of pretending to succeed.
169
+ pending, failed and done tasks are deletable, and so is a draft task (draft is a flag,
170
+ not a state). A claimed task is protected on purpose: delete it with --force, which
171
+ releases exactly that claim's announcements first, so no announcement is stranded. An
172
+ unknown id is exit 2, and a second delete reports "no such task" instead of pretending to
173
+ succeed.
150
174
 
151
175
  ## Acceptance and freeze
152
176
 
153
- A card may carry an acceptance command. It is **not** executed by default, because a card
154
- is repository content and executing it would mean running code someone else pushed:
177
+ Every new task must carry an acceptance command, or be created as a draft. The command is
178
+ **not** executed by default, because a task is repository content and executing it would
179
+ mean running code someone else pushed:
155
180
 
156
181
  ~~~bash
157
182
  $ hive-tasks add --title "auth takes an object" --acceptance "npm test -- auth"
@@ -159,38 +184,76 @@ $ hive-tasks done auth-takes-an-object-dea2 --verify # runs it, records res
159
184
  $ hive-tasks done auth-takes-an-object-dea2 # records resultCommit only
160
185
  ~~~
161
186
 
162
- When hive mode is freeze, ready returns only cards tagged fix, so the hotfix can run while
163
- the pipeline is red. Everything else waits.
187
+ The rule is mechanical: add without either flag exits 2 and writes no task.
188
+
189
+ ~~~bash
190
+ $ hive-tasks add --title "auth takes an object"
191
+ hive-tasks: add: --acceptance is required (or pass --draft for a draft card) # exit 2
192
+ ~~~
193
+
194
+ When hive mode is freeze, ready returns only tasks tagged fix and claim refuses anything
195
+ else (exit 2) unless --force is passed, so the hotfix can run while the pipeline is red.
196
+ Everything else waits.
197
+
198
+ ## Draft tasks
199
+
200
+ Use --draft for work that should be on the board but must not be picked up yet. It skips
201
+ the acceptance requirement and stores `draft: true` on the blob (a normal task omits the
202
+ key entirely):
203
+
204
+ ~~~bash
205
+ $ hive-tasks add --title "auth takes an object" --draft
206
+ auth-takes-an-object-dea2 [pending] auth takes an object
207
+ role: worker owner: - attempt: 0
208
+ draft: true (never ready, not claimable)
209
+ ~~~
210
+
211
+ draft is a **flag, not a state**: it adds no fifth state and changes no transition, so a
212
+ draft task stays pending (claim refuses it with exit 2) and ready and next never return
213
+ it. list and show expose the flag. There is no un-draft command: to dispatch a parked
214
+ task, remove it and add it again with --acceptance.
215
+
216
+ plan --file takes the same rule per entry, and every entry may instead opt out with
217
+ "draft": true; a missing acceptance refuses the whole plan and names the entry:
218
+
219
+ ~~~json
220
+ [
221
+ { "key": "impl", "title": "implement auth", "acceptance": "npm test" },
222
+ { "key": "idea", "title": "park the redesign", "draft": true }
223
+ ]
224
+ ~~~
164
225
 
165
- ## Review cards
226
+ ## Review tasks
166
227
 
167
- A review card tests another card. Link it when you create it:
228
+ A review task tests another task. Link it when you create it:
168
229
 
169
230
  ~~~bash
170
- $ hive-tasks add --title "review auth" --role reviewer --review-of auth-takes-an-object-dea2
231
+ $ hive-tasks add --title "review auth" --role reviewer --review-of auth-takes-an-object-dea2 --acceptance "npm test -- auth"
171
232
  ~~~
172
233
 
173
234
  reviewOf is stored, and the upstream id is added to after, so the review only becomes
174
- ready once the implementation is done. When the review fails, the upstream card is
175
- reopened automatically (attempt + 1, reason "test failed: ...") while the review card
176
- becomes failed and can be retried. A passing review leaves the upstream alone.
235
+ ready once the implementation is done. When the review fails and the upstream is done,
236
+ the upstream task is reopened automatically (attempt + 1, reason "test failed: ...")
237
+ while the review task becomes failed and can be retried; if the upstream is missing or not
238
+ done, the review still fails and nothing is reopened. A passing review leaves the upstream
239
+ alone.
177
240
 
178
241
  ## Stage chains
179
242
 
180
- One card can carry an ordered chain of stages instead of a single role. Every stage has a
243
+ One task can carry an ordered chain of stages instead of a single role. Every stage has a
181
244
  role, an optional acceptance command and an optional onFail target:
182
245
 
183
246
  ~~~bash
184
- $ hive-tasks add --title "ship auth" --stage coder --stage tester:"npm test" --stage reviewer
247
+ $ hive-tasks add --title "ship auth" --acceptance "npm test" --stage coder --stage tester:"npm test" --stage reviewer
185
248
  $ hive-tasks claim ship-auth-1a2b --agent agent-A # the coder stage
186
- $ hive-tasks done ship-auth-1a2b # stage done, next stage opens, card stays pending
187
- $ hive-tasks ready --role tester # the same card, now routed to the tester
249
+ $ hive-tasks done ship-auth-1a2b # stage done, next stage opens, task stays pending
250
+ $ hive-tasks ready --role tester # the same task, now routed to the tester
188
251
  ~~~
189
252
 
190
253
  done marks the current stage done and opens the next one, releasing the claim but not the
191
- card; only the last stage finishes the card. claim accepts only the current pending stage,
192
- so two agents cannot work two stages at once. --stages FILE writes explicit keys,
193
- per-stage acceptance and onFail in one JSON array:
254
+ task; only the last stage finishes the task. claim accepts only the current pending stage
255
+ (or an expired claim on it), so two agents cannot work two stages at once. --stages FILE
256
+ writes explicit keys, per-stage acceptance and onFail in one JSON array:
194
257
 
195
258
  ~~~json
196
259
  [
@@ -200,14 +263,16 @@ per-stage acceptance and onFail in one JSON array:
200
263
  ~~~
201
264
 
202
265
  When a stage with onFail fails and its target is done, the chain rewinds: the target and
203
- everything after it become pending again, attempt + 1, and the card is ready for the
204
- earlier role instead of dying. fail without a usable onFail still fails the whole card.
205
- reopen --stage KEY (default the first stage) resets a chain so it can run again. Cards
206
- created without stages keep the old single-implicit-stage behaviour, stored blob included.
266
+ every later stage become pending again (the failed stage is kept as history), attempt + 1,
267
+ and the task is ready for the earlier role instead of dying. fail without a usable onFail
268
+ still fails the whole task. reopen --stage KEY (default the first stage) resets a chain so
269
+ it can run again. Tasks
270
+ created without stages keep the old single-implicit-stage behaviour and store no stage
271
+ fields.
207
272
 
208
273
  ## Role resolution
209
274
 
210
- A role is a free string, never an enum, so resolving one must never refuse a card. show
275
+ A role is a free string, never an enum, so resolving one must never refuse a task. show
211
276
  prints where the role came from:
212
277
 
213
278
  ~~~bash
@@ -226,7 +291,7 @@ resolveRole(repo, name) tries three tiers and never throws:
226
291
 
227
292
  show --json returns the whole resolution as roleResolved ({ name, source, adapter, model,
228
293
  prompt, args, stage }) plus roleSource, so a runner or supervisor can consume it directly;
229
- claim never refuses a card because its role is not configured.
294
+ claim never refuses a task because its role is not configured.
230
295
 
231
296
  ## Works with
232
297
 
@@ -238,15 +303,15 @@ claim never refuses a card because its role is not configured.
238
303
 
239
304
  ## Design
240
305
 
241
- - [SPEC.md](SPEC.md): ref layout, card schema, state machine, claim algorithm, exit codes.
306
+ - [SPEC.md](SPEC.md): ref layout, task schema, state machine, claim algorithm, exit codes.
242
307
  - [docs/RFC-0001-task-cards.md](docs/RFC-0001-task-cards.md): why one tree instead of one ref per task, and why the queue is derived.
243
308
 
244
309
  ## Limits
245
310
 
246
311
  - **Not a scheduler.** It never starts an agent; a dispatcher reads ready/next and spawns.
247
312
  - **One ref means one writer at a time.** Claims serialize and retry; that is intended.
248
- - **No per-card history.** Use .hive/events.jsonl, or turn on reflog for the one ref.
249
- - **Single repository.** Cards do not cross repositories.
313
+ - **No per-task history.** Use .hive/events.jsonl, or turn on reflog for the one ref.
314
+ - **Single repository.** Tasks do not cross repositories.
250
315
 
251
316
  ## License
252
317