1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# A plan: a whole dependency graph, written down before it is filed.
#
# hird plan apply examples/plan.toml --dry-run # read it first
# hird plan apply examples/plan.toml # file it
#
# Everything here is what `hird add` takes, with names in place of queue
# numbers — so this file means the same thing in a fresh database as in one
# that already holds two hundred tasks, and it can live in the repository next
# to the code it describes.
#
# There is nothing else. No conditionals, no loops, no retries, no "run this
# after that fails": hird hands work out because an agent asked for it, and
# a plan that could say *when* to run something would be describing a
# scheduler this queue does not have. Nothing goes in a plan that is not
# already a column.
# Names the plan. Applying the same plan again recognizes the tasks it filed
# last time and adds only what the file has gained since, so this is a file to
# edit and re-run rather than a script you get one shot at.
= "serde-migration"
# `name` is how the rest of this file refers to the task; it never reaches the
# queue. `title` is what a human sees on the board.
[[]]
= "schema"
= "Design the storage schema"
= 3
= ["src/db.rs"]
# A brief worth writing goes in `body`, as markdown. This is the whole of what
# the agent is handed when it claims the task, so say what "done" means.
[[]]
= "repos"
= "Port the repository layer"
= """
Keep the env-var precedence: `--db` beats `HIRD_DB` beats the XDG default.
Tests in tests/config.rs must pass unchanged.
"""
= ["src/repo/**"]
= ["schema"]
# `paths` is what lets the queue keep two agents out of one file — globs, not
# files, because nothing has been written yet.
# `requires` names hard worker capabilities. Sessions advertise them through
# HIRD_CAPABILITIES; task_next routes around a task that does not fit.
#
# `review = true` says this work should not be the last word of whoever does
# it: finishing files a review of exactly what moved, and the queue refuses
# that review to the harness that moved it. Which work deserves a second pair
# of eyes is a property of the job, decided once, here — not something anybody
# has to remember at the moment they finish.
[[]]
= "renderer"
= "Rewrite the renderer"
= 2
= ["src/tui/**"]
= ["browser"]
= true
# This one overlaps `renderer` and waits for nothing, which `--dry-run` will
# point out: the two look parallel here and will be handed out one at a time.
# Give it `needs = ["renderer"]` to say so on purpose, or leave it and let the
# queue sequence them.
[[]]
= "audit"
= "Audit the renderer tests"
= ["src/tui/view.rs"]
# `needs` may name any task in the file, in any order — forwards or backwards.
[[]]
= "notes"
= "Write the release notes"
= ["repos", "renderer"]