@rallycry/conveyor-agent 11.1.11 → 11.1.13

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.
@@ -0,0 +1,111 @@
1
+ # Landing — review, one fix round, merge, close
2
+
3
+ Part of [conveyor-manager](../SKILL.md), step 4. The procedure for reading a
4
+ diff and rendering a verdict is
5
+ [conveyor-review](../../conveyor-review/SKILL.md); this file says how deep to go,
6
+ when to stop, and what you may merge.
7
+
8
+ Review is where a managed board spends most of its time. One manager's builds
9
+ took 30 to 60 minutes and its reviews, rulings and fix rounds took 80 to 210;
10
+ over four days it ran 85 first reviews at full depth and every one asked for
11
+ fixes. Depth has to be chosen, not defaulted.
12
+
13
+ ## Depth follows risk
14
+
15
+ Use the card's `risk`. Set it yourself when it is missing or wrong
16
+ (`mcp__conveyor__update_task`).
17
+
18
+ | Risk | Who reviews | How |
19
+ | --- | --- | --- |
20
+ | `critical`, `high` | An independent reviewer with none of the builder's context ([briefs.md](briefs.md)) | Derives its checks from the plan's rules, not from the diff. Builds its own oracle before reading the builder's tests. Mutates the coverage the pull request claims. |
21
+ | `medium` | You | Read the whole diff against the plan. Run one targeted check on the riskiest claim. |
22
+ | `low` | Conveyor's own review where the project runs one; otherwise your skim | Does it do what the card says, and nothing else. |
23
+
24
+ A builder's "all gates pass" is a claim. Nine pull requests in one day were
25
+ handed back green with a real defect that only an independent reader found;
26
+ none was caught by a gate.
27
+
28
+ ## Before you rule
29
+
30
+ - Read the review whole, and the code it cites. A ruling written from the
31
+ summary is how a fix round makes things worse.
32
+ - **Get the full case table, then rule once.** Rulings issued piecemeal cost
33
+ one card three rounds and 81 minutes.
34
+ - **A ruling states the finding and the bar.** It cites the code or the command
35
+ it rests on. It does not design the fix, and it carries no number nobody
36
+ measured. Seven rules one manager invented mid-review were wrong, and they
37
+ were its largest single source of extra rounds.
38
+ - **Hold your own suspicions as questions for the reviewer**, not as fixes for
39
+ the builder.
40
+
41
+ ## One fix round
42
+
43
+ - It goes to the same builder — a pod by the steering recipe in
44
+ [lanes.md](lanes.md), a local builder by resuming it — as one consolidated,
45
+ self-contained list. A long list goes from a file: `feedbackPath` on
46
+ `request_changes`, or `contentPath` on `post_to_chat`, and the result's
47
+ `chars` and `sha256` confirm what was sent.
48
+ - It carries the review's findings only. An improvement you thought of is a new
49
+ card.
50
+ - The same reviewer re-checks, and only when the round added new logic. Wording
51
+ and tests get your own read.
52
+ - **There is no third round.** What is left goes onto a named card in the same
53
+ wake, with the reason, and the pull request merges or is re-planned.
54
+
55
+ ## Merging
56
+
57
+ Within the charter's authority, and only when all of these hold:
58
+
59
+ 1. **The head you reviewed is the head you merge.** Compare `headRefOid` from
60
+ `gh pr view <n> --json headRefOid,isDraft,mergeable,baseRefName,state`.
61
+ 2. **It is green on that head, by the repo's own policy.** Where CI runs only on
62
+ pull requests into the base branch, a pack child's pull request has none,
63
+ and the builder's local gate pass is the gate — conveyor-build says so. Do
64
+ not dispatch CI by hand for every child unless the charter asks for it. Wait
65
+ for checks with `gh pr checks <n> --watch`, never a hand-written loop.
66
+ 3. **Nothing is owed.** A check you said you would run has been run. A look the
67
+ owner reserved has been given.
68
+ 4. **You did not write it.** A pull request you authored into the base branch
69
+ gets an independent reviewer or Conveyor's review. Never your own approval.
70
+
71
+ Then `mcp__conveyor__approve_and_merge_pr` (the argument is named `childTaskId`
72
+ but any ReviewPR card with a pull request works). It queues the merge; the
73
+ landing shows as the card entering ReviewDev at your next Listen. Give the
74
+ queue a couple of minutes before concluding it cannot land.
75
+
76
+ - **When Conveyor's own reviewer merges on approval** (the charter's *Merge
77
+ model* says so), a pull request you mean to read first is held as a draft:
78
+ `gh pr ready <n> --undo`. Automated review skips a draft and nothing merges
79
+ one. Mark it ready (`gh pr ready <n>`) just before you merge:
80
+ `approve_and_merge_pr` refuses a draft. Tell the owner you are doing this —
81
+ it changes who merges on their project.
82
+ - **Never advance a shared branch red.** One lint-red fast-forward left a pack
83
+ red for over an hour and pushed a pod into bypassing its hook.
84
+ - **A conflict that merges clean can still be wrong.** After joining two
85
+ branches, run the typecheck and the touched tests on the result before it is
86
+ pushed.
87
+
88
+ ## After a merge into the base
89
+
90
+ - Read the base branch's own run, not only the pull request's:
91
+ `gh run list --branch <base> --limit 3`. A test that passed on the pull
92
+ request failed the base twice before a builder mentioned it.
93
+ - If merging deploys, confirm the deploy and the entry path a person would use.
94
+ - Amend the plans of cards that depend on what just landed
95
+ ([lanes.md](lanes.md), readiness check 3). A builder's note left on its own
96
+ card is not read by the cards that need it.
97
+ - Post the merge record on the card: what merged, at which head, how it was
98
+ verified, and what was deferred to which card. Three to six lines, on the
99
+ card — not appended to the pull request body.
100
+ - Update any tag whose meaning the change altered.
101
+
102
+ ## Closing a pack
103
+
104
+ When a runner owns the pack, you review its one finale pull request like any
105
+ other. When you coordinate it, the finale is
106
+ [conveyor-build's pack path](../../conveyor-build/references/pack-path.md): one
107
+ base sync, one verification pass, one pull request.
108
+
109
+ Either way, in the wake the last child lands: count the children by status,
110
+ confirm nothing is deferred without a card, close the pack, and tell the owner
111
+ on the pack card in one line. Do not start side work first.
@@ -0,0 +1,211 @@
1
+ # Lanes — what runs where, how much at once, and in what order
2
+
3
+ Part of [conveyor-manager](../SKILL.md): steps 3 (Unblock), 5 (Launch) and 6
4
+ (Shape).
5
+
6
+ ## What starts next
7
+
8
+ Take the first that applies. This order is the whole of prioritisation; do not
9
+ invent another.
10
+
11
+ 1. **A fix round whose review is back.** It is the work closest to landing.
12
+ 2. **The next card on the critical path.** Name the longest serial chain or the
13
+ scarcest resource (one GPU, one checkout, one person's ear) at the start of
14
+ each day and say so on the manager card. Its next card is planned and staged
15
+ before the current one lands, and nothing else disturbs that resource while
16
+ it is measuring.
17
+ 3. **The remaining cards of a pack already open.** The last card of a pack
18
+ outranks everything but 1 and 2.
19
+ 4. **What the owner asked for today**, in the order they gave. A question from
20
+ them about priority is a directive: restate the commitment on the card, and
21
+ announce any exception before you take it.
22
+ 5. **Ready cards by board priority.** The digest's `READY` section is already
23
+ in that order (Open, with a plan, dependencies met).
24
+
25
+ A free slot never moves a card up this list, and never justifies opening a new
26
+ pack. Opening one is a change of scope ([charter.md](charter.md)).
27
+
28
+ ## The readiness check
29
+
30
+ Run it for every start, pod or local. Say which check failed instead of
31
+ starting anyway.
32
+
33
+ 1. **Startable.** `Open`, with a plan a context-free reader can build from. A
34
+ thin plan goes to `/conveyor-plan`, not to a pod.
35
+ 2. **Dependencies merged.** `mcp__conveyor__get_dependencies`: met means
36
+ ReviewDev or beyond. A pull request in review is not a foundation.
37
+ 3. **The plan is still true.** Ask git what moved under it:
38
+ `git log --oneline <planned-against>..origin/<base> -- <files the plan cites>`.
39
+ If anything moved, amend the plan text itself, under a dated `## Amended`
40
+ block at its top, and say in one chat line what changed. Do not stack chat
41
+ addenda: a card that is "plan plus twelve messages, the last three
42
+ overriding the plan" is a card nobody can build from.
43
+ 4. **Nothing in flight touches the same files.** Compare the files this plan
44
+ cites with those of every card building or in review (their plans, and
45
+ `gh pr diff <n> --name-only`). Overlap in source files → serialize with
46
+ `mcp__conveyor__add_dependency`. Overlap only in shared prose (a guide, a
47
+ status table) → allowed, but decide the merge order now and tell both.
48
+ 5. **The card carries everything.** A pod reads its card at boot and may never
49
+ read a later post. What moved since the plan, the rulings that bind it and
50
+ who is working beside it go on the card before the start.
51
+
52
+ ## Limits
53
+
54
+ - **Pods:** the charter's cap, and the instance's capacity, which other
55
+ projects and Conveyor's own reviewer share.
56
+ - **Work in flight:** cards building plus cards in review never exceed the
57
+ slots. A fix round then has a slot the moment its review lands, instead of
58
+ queueing behind a new build.
59
+ - **Your reading:** never more starts in an hour than you can review in the
60
+ next one. Leaving a slot empty on purpose is a correct move.
61
+ - **Capacity:** read the digest's `Compute` line before a start, not the
62
+ refusal after one: your live pods against the per-user limit, and each
63
+ Personal Compute instance's live builds against its limit (`offline` takes
64
+ nothing). When a start is refused anyway, put the card in the ledger's
65
+ queue; the next pod to stop frees the slot. Never retry in a loop.
66
+ - **A limit you gave the owner** ("two at a time") is a limit until you tell
67
+ them otherwise.
68
+
69
+ ## Pods
70
+
71
+ - **Start** with [conveyor-start](../../conveyor-start/SKILL.md)'s checks, one
72
+ card at a time. That skill reserves concurrency and spend for a person; the
73
+ charter is that person's decision, made once.
74
+ - **Confirm.** `get_build_status` until the pod is provisioning or running,
75
+ then one look at `mcp__conveyor__get_task_logs` (`source: "agent"`,
76
+ `limit: 20`) a minute later: it is working, and on the card you meant.
77
+ - **Hand-back** is the card entering ReviewPR. Read the card's last three
78
+ messages, not one: the hand-back can sit above a system line.
79
+ - **A pod with an open pull request holds its slot while it idles.** When slots
80
+ are short, `mcp__conveyor__sleep_task` it for the length of the review.
81
+ - **Steering a running pod.** `mcp__conveyor__post_to_chat` only stores a
82
+ note. To redirect the agent, send the whole instruction, self-contained, with
83
+ `mcp__conveyor__message_agent` and read its outcome: `delivered` (the live
84
+ agent has it), `waking` (its slept pod is waking and reads it at connect),
85
+ `no_target` (nothing to revive; a start is the move), `review_running` or
86
+ `external_head` (nothing was woken; wait for the verdict, or reach whoever
87
+ pushed the pull request), `failed` (the message is stored; resume the pod).
88
+ A revived pod runs on your account. `mcp__conveyor__request_changes` now
89
+ delivers its feedback the same way, after it returns the card to InProgress
90
+ (raising its risk to at least `medium` unless you pass `risk`). If
91
+ `message_agent` is absent, or says the API predates it, use the old recipe:
92
+ `request_changes`, then `sleep_task`, wait until `get_build_status` shows it
93
+ stopped, `resume_task`, and read its log a minute later.
94
+ - **Idle, no pull request, no hand-back:** read the chat tail and the log
95
+ before deciding it is stuck. If it is, steer it as above.
96
+ - **An agent waiting on a question** blocks until someone answers it. Answer
97
+ what the charter lets you answer with
98
+ `mcp__conveyor__answer_agent_question` (the question and its `requestId` are
99
+ in the card's newest `agent_question` message); take the rest to the owner.
100
+ - **Failed to start:** the cause is on the card. A terminal cause (quota, a
101
+ missing credential) fails the same way again, so do not retry it.
102
+ - **Never write to a builder's branch without telling its card first.** Two
103
+ writers on one branch, one of them a pod that wakes on CI results, cost a
104
+ redone merge and a round of rework.
105
+ - Conveyor tears down the pod of a card that reaches ReviewDev. A pod that is
106
+ running for a merged card was woken by a stale event: sleep it.
107
+
108
+ ## The local write lane
109
+
110
+ It is the owner's own machine, so the first rule is that they can still use it.
111
+
112
+ - **Mine to use** (the charter says so): hold the checkout claim only while
113
+ something is writing. Between cards, restore the base branch, release the
114
+ claim, and say on the manager card which branch the checkout is on.
115
+ - **Shared** (they are working here too): never switch branches without asking,
116
+ stage by path, and commit only what you wrote.
117
+ - **One writer:** you, or one builder sub-agent running `/conveyor-build` on
118
+ one card. The claim protocol is in
119
+ [conveyor-build's checkout-claim reference](../../conveyor-build/references/checkout-claim.md).
120
+ - **As visible as a pod.** A local build posts its claim, its milestones and
121
+ its hand-back on the card. One manager's local lane ran eleven hours while
122
+ its pack card said nothing, and the owner asked whether the pack was blocked.
123
+ - **Push every commit.** There is no snapshot here; an outage once found
124
+ fourteen commits that existed on one disk.
125
+ - **A teardown receipt** closes every local build: `git status --short`, the
126
+ branch, the ports freed, no process of yours left running.
127
+
128
+ ## Read-only worktrees
129
+
130
+ For reading another branch while the main checkout is busy, comparing two
131
+ states, or bisecting — nothing else.
132
+
133
+ ```bash
134
+ git worktree add --detach ../<repo>-review-<slug> origin/<branch>
135
+ ```
136
+
137
+ Nothing is committed or pushed from one. No dev stack and no database runs in
138
+ one. List each in the ledger when you create it and remove it
139
+ (`git worktree remove`) when the review is done. If the repo's `CLAUDE.md`
140
+ forbids worktrees outright, it wins: read with `git show` and `git diff`
141
+ instead.
142
+
143
+ ## Packs or cards
144
+
145
+ - **Independent files → standalone cards into the base branch.** They run in
146
+ parallel pods, each gets Conveyor's own review, and the base stays current.
147
+ This is the default.
148
+ - **One feature whose parts touch the same files → a pack with one runner.**
149
+ Start the parent and a pod works every child in order, or run it in the local
150
+ lane with [conveyor-build's pack path](../../conveyor-build/references/pack-path.md).
151
+ One session owns the pack; you review its one pull request.
152
+ - **Hands off a pack that has a runner.** A parent in InProgress or ReviewPR is
153
+ being coordinated: never start, steer or merge its children.
154
+ - **Size a pack to fold in about two days**, eight children or fewer.
155
+ Follow-ups found on the way are new cards, not new children.
156
+ - **Owner-gated and terminal cards stay outside packs** — a launch, a final
157
+ sweep, anything waiting on a person — so a pack can always close.
158
+ - **Close it in the wake its last child lands.** A finished pack left open is
159
+ drift waiting to happen.
160
+ - **Never land a pack on the base in slices**, and never use a pack branch as
161
+ the head of any pull request but its finale. A manager that kept three large
162
+ packs "level" with the base this way spent about a quarter of its shell
163
+ commands on merges, and lost a pack branch to the merge bot.
164
+
165
+ *Fanning a pack's children out to separate pods* is allowed only when the
166
+ charter says so and the children touch disjoint files. You are then the pack's
167
+ coordinator: the parent stays parked, you are reviewer of record for each child
168
+ pull request, and setup, merges and the finale follow the pack path.
169
+
170
+ ## Planning in waves
171
+
172
+ Plans written far ahead go stale: one manager planned 60 cards on day one and
173
+ corrected 52 of them before building, then kept correcting the rest by chat
174
+ addenda for two more days.
175
+
176
+ - **Stubs first.** A future card needs an objective, acceptance criteria and
177
+ its dependencies. Nothing more.
178
+ - **The executable plan is written when the card is next up**, against the
179
+ merged code, while the card before it builds — so the build lane never waits
180
+ on a plan.
181
+ - **Interfaces before fan-out.** Plan the upstream piece and the names others
182
+ depend on first; spike what is unverified; then plan what leans on it.
183
+ - **Record what the plan was written against:** `Planned against <short sha> of
184
+ <base>, <date>` in its Notes. That line is what makes the readiness check a
185
+ one-line git command.
186
+ - **Reconcile before you file.** When several planners return, settle the order
187
+ between their plans before creating any card.
188
+ - **A planner writes onto the card** with `/conveyor-plan` and stops in
189
+ Planning. You read the plan against the bar before promoting it to Open.
190
+
191
+ ## The macro pass
192
+
193
+ Once a day, or every ten merges. Look for what no single builder can see, and
194
+ turn each finding into a card or a question — never a note to yourself.
195
+
196
+ - **Two cards counting the same thing** (a table, a limit, a list of names).
197
+ The second to merge gets a ruling before it merges.
198
+ - **A file every card rewrites.** A status paragraph or a padded table that
199
+ conflicts on every merge is a structure problem: one card to fix the file.
200
+ - **A gate growing.** Runtime creeping, a suite that restates the code, the
201
+ same check run at three layers.
202
+ - **A flake seen twice.** The second sighting of the same class gets one card,
203
+ and that card jumps the queue. A red first run where two cards meet is a
204
+ regression suspect, not a flake.
205
+ - **Plans that drifted.** Cards not yet started whose cited files have moved.
206
+ - **Deferred findings with no home.** Every "later" from a review is on a named
207
+ card, or it is lost.
208
+ - **Board hygiene.** A card InProgress with no pod and no local claim (the
209
+ manager card aside); a pull request aging in review; a card someone forgot
210
+ was finished.
211
+ - **The glossary.** Tags whose meaning a merge changed.
@@ -0,0 +1,114 @@
1
+ # The owner — where they speak, how you ask, what you report
2
+
3
+ Part of [conveyor-manager](../SKILL.md): steps 2 (Listen) and 7 (Report).
4
+
5
+ The owner reads the board, not this session. One manager wrote 177 session
6
+ messages in a day against one from its owner. On another day the card its
7
+ owner was watching went more than eleven hours without a post, and answers the
8
+ owner had left on cards sat unread for up to fourteen hours.
9
+
10
+ ## Where they speak
11
+
12
+ Three places, and step 2 covers all of them at every wake:
13
+
14
+ 1. **A reply on a card** — usually the one you asked on, sometimes another.
15
+ 2. **A new card**, filed in Planning with a sentence or two and no plan.
16
+ 3. **This session**, when they are at the keyboard.
17
+
18
+ Their words go onto the card they concern, verbatim, in the wake you read them.
19
+ If you read something late, say so in your first sentence, with how late and
20
+ what you changed so it does not recur.
21
+
22
+ ## Intake: feedback and new cards
23
+
24
+ 1. **Acknowledge on their card in the same wake:** what will happen, how it
25
+ will be built, and the defaults you chose. No clock promise — "within the
26
+ hour" is a promise this session cannot keep through a restart.
27
+ 2. **Triage each point** into exactly one of: folded into an existing card
28
+ (amend that card's plan and say where), a new card, or a question back.
29
+ Flag anything you are doing more narrowly or differently than they asked.
30
+ 3. **The work happens ON their card.** Write the plan onto it, or, when it is
31
+ several pieces, make them its children with
32
+ `mcp__conveyor__create_subtask`. Never leave their card standing beside new
33
+ top-level cards — it will not move as the work does, and they will cancel it.
34
+ 4. **A report of something broken** is not planned from its description: it
35
+ goes to [conveyor-triage](../../conveyor-triage/SKILL.md) first.
36
+
37
+ ## Asking
38
+
39
+ - **One ask per message, on the card it concerns, with an `@[user:…]` mention.**
40
+ `mcp__conveyor__list_project_members` gives the token. A single concrete ask
41
+ was answered in two minutes; the same ask bundled into a status note waited
42
+ 25 hours.
43
+ - **Make it answerable without a follow-up:** the exact command or setting to
44
+ paste, or two or three options with the picture, diff or number that lets
45
+ them choose.
46
+ - **Give a default and when it takes effect**, tied to an event rather than a
47
+ clock: "built this way when <card> starts unless you say otherwise". Proceed
48
+ on the default where the choice is reversible. Where it is not, wait.
49
+ - **A real fork is a decision card.** Two or three defensible options, rework
50
+ if wrong, somebody else lives with it: `mcp__conveyor__create_decision`, per
51
+ [product-decisions](../../conveyor-plan/references/product-decisions.md).
52
+ `mcp__conveyor__list_decisions` with `status: "Open"` is then the list of
53
+ what is waiting on them, and a settled one is never asked again.
54
+ - **A blocker only they can clear** leads every message until it clears: what
55
+ it is, its age, the one action. Add a check of its trace to the ledger.
56
+ - **Read the card before you post to it.** A manager that wrote "still waiting
57
+ on you" without reading the thread was wrong about it for hours at a time,
58
+ and once re-asked a question the owner had answered nine hours earlier.
59
+
60
+ ## What never to do
61
+
62
+ - **Argue the premise of a priority question.** "Are we blocked on X?" means
63
+ finish X. Say what state X is in, restate the commitment, and do it.
64
+ - **Take silence as consent to a change of scope.** "Until you say otherwise
65
+ I'll sequence it that way" is a question, asked as one.
66
+ - **State a hypothesis as a fact.** Label it, or check it first.
67
+ - **Answer from memory.** A question about the board is answered from the
68
+ board, read in that turn.
69
+ - **Announce an exception after taking it.** If you told them "no new starts
70
+ until X", the exception is asked for first.
71
+ - **Put their name or email address into a request to an outside service**, or
72
+ let a helper do so. This goes into every brief.
73
+
74
+ ## The owner digest
75
+
76
+ Posted on the manager card when the set of asks changes — not on a timer.
77
+ Rebuild it whole each time from the board; never append to the last one. An
78
+ answered item shows once, then drops.
79
+
80
+ ```markdown
81
+ @[user:<owner>] **<Nothing here blocks the build | N things wait on you>.**
82
+ <k> cards reached <base> since <last digest>.
83
+
84
+ **Needs you** (oldest first)
85
+ 1. [blocks <card>] <question> · default: <…> · <card URL> · asked <date>
86
+ 2. [built by default] <question> · default: <…> · <card URL> · asked <date>
87
+
88
+ **Yours when you have a minute** (paste-ready)
89
+ - `<exact command or setting>` — <what it fixes> · <card URL>
90
+
91
+ **To see or try:** <what, at which URL, what you are asked to judge>
92
+ **In flight:** building <cards>; in review <cards>; next <cards>
93
+ **Answered since last time:** <question> — "<their words>"; <what you did>
94
+ **Not verified by anyone:** <what has not been tried, in plain words>
95
+ ```
96
+
97
+ ## The status line
98
+
99
+ The manager card's `description` — at most 255 characters, readable by someone
100
+ who is not an engineer — is rewritten whenever it stops being true:
101
+
102
+ > On duty. 3 pods building, 2 pull requests in review, 1 question waiting on
103
+ > you. Last sweep 19:03.
104
+
105
+ It is the board's answer to "is anyone driving?". A card whose status line is
106
+ hours old tells the owner the manager is gone.
107
+
108
+ ## This session's chat
109
+
110
+ - At most three lines at the end of a wake: what moved, what is waiting on whom.
111
+ - Never a message that says only that work is still running.
112
+ - When the owner is here and asks something, the answer comes first — the
113
+ verdict, then the detail — and the board is updated in the same turn so it
114
+ agrees with what you said.
@@ -0,0 +1,122 @@
1
+ # State and recovery — surviving compaction, crashes and limits
2
+
3
+ Part of [conveyor-manager](../SKILL.md), step 1. A manager session runs for
4
+ days. One was compacted 32 times, lost eight hours to an API error, a night to
5
+ a power cut and 31 hours to a usage limit. It recovered in minutes wherever the
6
+ state was on the board, and lost hours wherever it was somewhere else.
7
+
8
+ ## What lives where
9
+
10
+ | Kind of state | Lives | Never |
11
+ | --- | --- | --- |
12
+ | A card's status, plan, branch, pull request, pod | The board and origin. Read fresh. | Copied into notes |
13
+ | The owner's instructions | The manager card's plan, verbatim and dated | Paraphrased; in this session's memory only |
14
+ | What is waiting on the owner | The card it concerns, open decision cards, and the latest digest on the manager card | A private list |
15
+ | A ruling, a fix request, a merge record | Posted self-contained on its card | In a local file only |
16
+ | A finding put off for later | A named card, created when it is put off | "Later" in chat |
17
+ | Helper ids, armed waits, the read cursor, queued starts | The ledger | In context only |
18
+ | Work in progress | Committed and pushed | On this disk only |
19
+ | Helper scripts | Beside the ledger | Under `/tmp` |
20
+ | How this owner likes to work | The session's long-term memory, with why | The ledger |
21
+
22
+ Anything that is on the board is never also carried by hand: hashes, pull
23
+ request numbers, pod states and the ids of merged cards do not belong in notes
24
+ or summaries.
25
+
26
+ ## The ledger
27
+
28
+ One small file, `ledger.md` in the directory below, overwritten in place — not
29
+ a diary.
30
+
31
+ ```bash
32
+ mkdir -p "$(git rev-parse --git-dir)/conveyor-manager"
33
+ ```
34
+
35
+ It sits in the git dir, like the checkout claim, so it is never committed,
36
+ never shows in `git status`, and survives a reboot. Write it at the end of
37
+ every wake, with the time read from `date` in that same command.
38
+
39
+ ```markdown
40
+ updated: <output of date>
41
+ cursor: <the asOf of the last board digest, exactly as it printed>
42
+ manager card: <slug>
43
+ seen: <slugs of Planning and Open cards already taken in>
44
+
45
+ ## In flight
46
+ | card | lane | helper id or pod | last instruction, and was it taken | next step, and its condition |
47
+
48
+ ## Queue
49
+ <cards waiting for a slot, in order>
50
+
51
+ ## Asks open
52
+ | card | what was asked | default | asked at | blocks |
53
+
54
+ ## Checks each wake
55
+ <a blocker's trace to test; the base branch's CI after a merge>
56
+
57
+ ## Armed
58
+ <the exact wait and fallback commands that must be running: the
59
+ `conveyor-wait --watch … --since <cursor>` line and the ScheduleWakeup>
60
+
61
+ ## Local
62
+ checkout claim: <held for which card | free>; worktrees to remove: <paths>;
63
+ unpushed commits: <none | which>
64
+ ```
65
+
66
+ A *next step* names its condition ("merge when #92 is green on `abc123`") so a
67
+ later wake checks the condition instead of trusting the note.
68
+
69
+ ## Full orient
70
+
71
+ After a compaction, a restart, or any gap longer than your fallback wake. Finish
72
+ it before any write to the board: two minutes after one compaction, a manager
73
+ posted to three pods that had already handed back, working from the summary.
74
+
75
+ 1. `date`. Compare with the ledger's `updated`. The difference is how long the
76
+ board ran without you.
77
+ 2. Reload the Conveyor tools in one ToolSearch. Re-read the manager card (the
78
+ charter and standing orders) and the ledger. The context summary tells you
79
+ where to look; it is not what is true.
80
+ 3. **People first.** Step 2 of the wake routine, in full: every thread with an
81
+ open ask, every changed card, every new card, open decisions.
82
+ 4. **The board.** Status and pod state of everything in flight. Where the board
83
+ and the ledger disagree, the board wins.
84
+ 5. **Git.** `git fetch`; the base branch's head and its last CI run; open pull
85
+ requests; push anything that exists only here.
86
+ 6. **Each card in flight:** read its last three messages before you post to it.
87
+ An instruction sent just before the gap may never have been taken — send it
88
+ again, whole.
89
+ 7. **Re-arm** everything under *Armed*. A wait dies with the process that
90
+ started it; a resume notice naming dead tasks is an instruction to restart
91
+ them.
92
+ 8. Write the ledger, refresh the status line, and tell the owner in one message
93
+ how long you were away and what waited — the first sentence, not the last.
94
+
95
+ ## After an outage
96
+
97
+ - Survey before restarting anything: the checkout, origin, the pods, the cards.
98
+ - Put a recovery note on each affected card before its pod restarts: where its
99
+ branch stands, what to pick up.
100
+ - Start ONE pod and watch it authenticate and work before the rest. Three pods
101
+ restarted together onto a dead credential cost an hour.
102
+ - If the fix is the owner's, add a check of its trace to the ledger, so you see
103
+ it land.
104
+
105
+ ## Before you might stop
106
+
107
+ A usage limit ends the session mid-sentence. So, at all times:
108
+
109
+ - No promise on a card depends on this session surviving. Say what will happen
110
+ and on what event, never by when.
111
+ - Before a fan-out of helpers, write the ledger and the status line first.
112
+ - When a limit warning shows, stop launching, finish landing what is reviewed,
113
+ set the manager card `Open` and post `[manager] off duty` with what is in
114
+ flight.
115
+
116
+ ## If you write a script
117
+
118
+ Prefer not to. If a sequence must be repeatable, it is a file beside the
119
+ ledger, run with `bash`, starting `set -euo pipefail`. A git sequence typed
120
+ into the shell built an empty commit and threw away a tree's edits; the same
121
+ sequence as a checked script did not. Never pipe a gate or a push through
122
+ `tail` or `head`: the exit code you read is the pipe's.
@@ -225,6 +225,14 @@ touching Conveyor, unless they asked you to just ship it.
225
225
  > therefore: children (with their plans and `dependsOn` edges) → parent plan
226
226
  > LAST.
227
227
 
228
+ **Loop in a tag's Consulted people.** The card's Reference Guides list each
229
+ card tag's RACI people, and `get_tag` returns them with mention tokens. When
230
+ the plan changes how a tag's area behaves (not a refactor, test-only or
231
+ docs-only plan), end the `plan_ready` post with the mention token of each
232
+ Consulted person on that tag and one line on what changes for them. Skip
233
+ anyone already in the card's conversation. Responsible and Accountable people
234
+ are the ones to ask when scope is unclear.
235
+
228
236
  Identification fires the moment the card lands beyond Planning and reads task
229
237
  chat for your recommendation — so chat BEFORE the status flip:
230
238
 
@@ -33,6 +33,7 @@ Already stored? The existing field or relation that holds this fact today, or "n
33
33
 
34
34
  ## Notes
35
35
  - Dependencies, risks, blockers, or files likely touched.
36
+ - Planned against <short sha> of <base>, <date>.
36
37
 
37
38
  ## Builder briefing
38
39
  - **Start here:** the one or two files to open first.
@@ -71,6 +72,9 @@ touches code:
71
72
  than paraphrasing it.
72
73
  - For a file that does not exist yet, write `NEW: path/to/new-file.ts` and
73
74
  describe the module it fits into.
75
+ - Record the commit the citations were read at: `Planned against <short sha>
76
+ of <base>, <date>` in Notes. One `git log <sha>..origin/<base> -- <cited
77
+ files>` then shows a later reader what moved under the plan.
74
78
 
75
79
  ## The Testing section is a definition of done
76
80
 
@@ -73,7 +73,10 @@ mutation applied before the reply — is a stalled run, not a paused one.
73
73
  the parent's disposition;
74
74
  - rows with a non-null `workspaceStatus` — something is running on it;
75
75
  - rows with a `githubPRUrl` — work exists; that is a review question, not
76
- a prune question.
76
+ a prune question;
77
+ - rows whose title starts `[manager]` — a `/conveyor-manager` run's duty
78
+ card; its status says whether a manager is on duty, so it is never
79
+ backlog.
77
80
  5. `mcp__conveyor__list_tags` once — the project's vocabulary, and whether a
78
81
  `duplicate` tag exists (step 3 uses it, and never creates it).
79
82
 
@@ -29,7 +29,9 @@ worked, until you check an hour later.
29
29
  human's subscription key and reassigns the card; doing that to the wrong card
30
30
  is expensive and confusing to undo.
31
31
  - **One card per invocation.** Starting several is a decision about spend and
32
- concurrency that belongs to a person, not to a convenience loop.
32
+ concurrency that belongs to a person, not to a convenience loop. A session
33
+ running `/conveyor-manager` under a charter is the delegated exception: the
34
+ charter is that person's decision about spend and concurrency, made once.
33
35
 
34
36
  ## 1. Resolve and qualify the card
35
37
 
@@ -48,6 +50,9 @@ starting anyway:
48
50
  - **Its dependencies are met.** `mcp__conveyor__get_dependencies` — a blocker
49
51
  counts as met only at ReviewDev or beyond. Starting a blocked card produces an
50
52
  agent that cannot finish.
53
+ - **It is not a manager card.** A card whose title starts `[manager]` is a
54
+ `/conveyor-manager` run's duty card. Its plan is a charter; a pod has nothing
55
+ to build from it.
51
56
 
52
57
  If any check fails, report which one and what would fix it. Do not start.
53
58
 
@@ -94,7 +99,9 @@ Give the person, in one short message:
94
99
 
95
100
  Then stop. You are not the build's babysitter — the card is where it reports,
96
101
  and a loop that watches a cloud build from a local session just spends tokens
97
- narrating something the card already shows.
102
+ narrating something the card already shows. A session running
103
+ `/conveyor-manager` under a charter is the delegated exception: watching what
104
+ it started, and landing it, is the work the owner handed it.
98
105
 
99
106
  ## What this skill is not
100
107
 
@@ -159,6 +159,7 @@ labels. Each tag carries a `description` (≤255 — the summary), an `overview`
159
159
  | Audit a release before it ships | `conveyor-release-review` → evidence-backed findings, filed by priority as a blocker pack and a suggestions pack (local surface only — it needs `create_task`, `manage_priorities`, and `add_dependency` on another card) |
160
160
  | Work a whole queue locally | `conveyor-local-loop` → selection and pacing over the above |
161
161
  | Keep the board honest | `conveyor-prune` → one disposition per open card, applied only after confirmation (local surface only — it needs `set_task_parent`, `create_task`, and the on-hold flag) |
162
+ | Run a whole board for its owner | `conveyor-manager` → plans, starts, reviews and lands cards under the owner's charter, one wake of its routine per invocation (local surface only — it needs `start_task`, `sleep_task`, `resume_task`, and `approve_and_merge_pr`) |
162
163
 
163
164
  `conveyor-start` and `conveyor-build` are the same phase reached two ways —
164
165
  hand the card off, or do it in this checkout — so the choice is about where
@@ -213,7 +214,10 @@ sync-spawned duplicate.
213
214
  ## Monitor and review
214
215
 
215
216
  - Monitor with `mcp__conveyor__get_task`, `mcp__conveyor__read_task_chat`,
216
- and `mcp__conveyor__get_build_status`.
217
+ and `mcp__conveyor__get_build_status`. A whole board is one
218
+ `mcp__conveyor__get_board_digest`, and `mcp__conveyor__message_agent`
219
+ delivers a message to a card's live or slept agent, where `post_to_chat`
220
+ only stores it.
217
221
  - Reviewing a ReviewPR card: inspect the diff and task chat; approve with
218
222
  `mcp__conveyor__approve_task` only if the PR implements the plan and
219
223
  follows repo patterns — it advances the card through the review pipeline