@rallycry/conveyor-skills 1.0.17 → 1.0.23

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,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.
@@ -14,10 +14,11 @@ The research and drafting below are identical everywhere. Only the two ends
14
14
  differ — resolving which project you are in, and where the finished plan lands
15
15
  — and both carry an **Environment** note.
16
16
 
17
- The division of labor is fixed: **you research and recommend; Conveyor's
18
- identification decides.** Moving the card to Open fires identification
19
- automatically (story points, icon, agent, and tags if you set none). Never set
20
- icon or story points yourself, and never `start_task` unless the user asks.
17
+ Conveyor identifies the card when it opens, assigning the icon, agent, and
18
+ tags if you set none. When creating a card from a local session, recommend
19
+ story points in chat and let identification set them. In a pod, set the
20
+ initial estimate before saving the plan. Never set the icon or call
21
+ `start_task` unless the user asks.
21
22
 
22
23
  ## Goal and finish line
23
24
 
@@ -25,8 +26,11 @@ icon or story points yourself, and never `start_task` unless the user asks.
25
26
  batched round of questions for a human when scope is genuinely ambiguous.
26
27
  **Finish line:** the plan is saved with `mcp__conveyor__update_task` AND the
27
28
  recommendation is posted with `mcp__conveyor__post_to_chat` and
28
- `milestone: "plan_ready"`. In a pod, story points and risk are also set
29
- (`mcp__conveyor__update_task_properties`) and plan mode is exited.
29
+ `milestone: "plan_ready"`. In a pod, set story points, risk, and title with
30
+ `mcp__conveyor__update_task_properties` before saving the final plan. Follow
31
+ the runner's completion instructions: Claude's Discovery planner also calls
32
+ its native plan-exit tool after posting the milestone. Codex and OpenCode end
33
+ the turn after the milestone. Conveyor handles the card transition.
30
34
  **A turn may end only when:** (a) the finish line above is true, or (b) an
31
35
  `AskUserQuestion` is pending. Nothing else. Anything else is a stalled run, not
32
36
  a paused one.
@@ -109,6 +113,9 @@ Scale to the idea's size; a one-file tweak needs minutes, not a survey.
109
113
  `mcp__conveyor__get_task` on the closest hits. You're looking for duplicates
110
114
  (stop and surface), related shipped work (reuse its patterns), and
111
115
  cancelled attempts (learn why before re-proposing).
116
+ When the project runs brainstorm tables, `mcp__conveyor__list_brainstorms`
117
+ then `mcp__conveyor__get_brainstorm` show whether the idea was pitched
118
+ before and where the team ranked it.
112
119
  - **Prod signals** (only when the feature touches live behavior):
113
120
  `mcp__conveyor__query_gcp_logs` / `mcp__conveyor__query_grafana_logs` for
114
121
  error rates, actual usage, current behavior. **Environment:** these are
@@ -197,15 +204,13 @@ touching Conveyor, unless they asked you to just ship it.
197
204
  > does not exist in a pod. In a pod, the card exists and you are on it: save
198
205
  > the plan with `mcp__conveyor__update_task` (`plan`, and `description` if it
199
206
  > needs sharpening), post the same recommendation message to chat with
200
- > `milestone: "plan_ready"`, and stop. "Stop" means end the turn with no
201
- > question about starting work — per *Goal and finish line*, the Builder is a
207
+ > `milestone: "plan_ready"`, and follow the runtime-specific finish line
208
+ > above. End the turn without asking about starting work. The Builder is a
202
209
  > separate session the system spawns, and every later turn here is a plan
203
210
  > iteration. A pod does not promote its own card to
204
211
  > Open. A parked plan is never `blocked`: that milestone means you cannot
205
212
  > continue until a human acts, and it pages nobody. To page a person, ask them
206
- > with AskUserQuestion. If the pod also has to leave
207
- > plan mode, note that `update_task` carries no story points or risk; those go
208
- > through `mcp__conveyor__update_task_properties`. Everything in Phases 1-3 is
213
+ > with AskUserQuestion. Everything in Phases 1-3 is
209
214
  > identical in both environments. To break a large pod card into a pack, use
210
215
  > `mcp__conveyor__create_subtask` rather than `create_task`, and set child→child
211
216
  > ordering through its `dependsOn` field — `mcp__conveyor__add_dependency` is
@@ -220,6 +225,14 @@ touching Conveyor, unless they asked you to just ship it.
220
225
  > therefore: children (with their plans and `dependsOn` edges) → parent plan
221
226
  > LAST.
222
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
+
223
236
  Identification fires the moment the card lands beyond Planning and reads task
224
237
  chat for your recommendation — so chat BEFORE the status flip:
225
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
 
@@ -54,6 +54,14 @@ and let Conveyor's own automation do the linking.
54
54
  stop. Most forks are not decisions — an assumption you can simply state
55
55
  belongs in the plan as a GIVEN / WHEN / THEN line. The full bar is in
56
56
  [../conveyor-plan/references/product-decisions.md](../conveyor-plan/references/product-decisions.md).
57
+ - **Brainstorms**: a brainstorm table is where a team writes ideas face-down,
58
+ pitches them, sorts them into tag piles and stack-ranks them.
59
+ `mcp__conveyor__list_brainstorms` and `mcp__conveyor__get_brainstorm` read a
60
+ table as a ranked brief; face-down cards are never returned.
61
+ `mcp__conveyor__add_brainstorm_idea` puts an idea in your user's hand, and
62
+ `mcp__conveyor__link_brainstorm_idea` records the card an idea became. No
63
+ brainstorm tool creates a card: the `/conveyor-brainstorm-review` skill
64
+ turns a finished table into cards, one confirmed item at a time.
57
65
  - **Mechanics**: `create_task` takes the title, description, `plan`
58
66
  (markdown), and optional status/tags; cards start in `Planning`. Every
59
67
  status change you make goes through `mcp__conveyor__update_task`
@@ -101,6 +109,14 @@ labels. Each tag carries a `description` (≤255 — the summary), an `overview`
101
109
  write `@[tag:<name>]` with the tag's exact name — chat posts and card
102
110
  plans/descriptions are canonicalized to the id token at write time, so you
103
111
  never need the id. An unknown name stays plain text.
112
+ - **Mention people**: a project member, as a Conveyor user, is the only person
113
+ you can mention. Write `@[user:<name, email or user id>]` in `post_to_chat`
114
+ or `post_channel_message`; `mcp__conveyor__list_project_members` gives each
115
+ member's exact token. Conveyor turns it into a real Slack/Discord ping (and an
116
+ in-app alert for a card post). A name that matches nobody, or several
117
+ members, fails the post with suggestions — fix the token and post again.
118
+ Never guess raw Slack or Discord IDs (`<@U…>`): only an id that belongs to a
119
+ Conveyor user still pings, and any other renders as plain text.
104
120
  - **Write**: `mcp__conveyor__manage_tags` (Moderate+). Whenever your work
105
121
  changes how a tagged system behaves, update that tag's `overview` and pass a
106
122
  one-line `reason` — it lands in the tag's revision history (in-pod agents
@@ -143,6 +159,7 @@ labels. Each tag carries a `description` (≤255 — the summary), an `overview`
143
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) |
144
160
  | Work a whole queue locally | `conveyor-local-loop` → selection and pacing over the above |
145
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`) |
146
163
 
147
164
  `conveyor-start` and `conveyor-build` are the same phase reached two ways —
148
165
  hand the card off, or do it in this checkout — so the choice is about where
@@ -197,7 +214,10 @@ sync-spawned duplicate.
197
214
  ## Monitor and review
198
215
 
199
216
  - Monitor with `mcp__conveyor__get_task`, `mcp__conveyor__read_task_chat`,
200
- 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.
201
221
  - Reviewing a ReviewPR card: inspect the diff and task chat; approve with
202
222
  `mcp__conveyor__approve_task` only if the PR implements the plan and
203
223
  follows repo patterns — it advances the card through the review pipeline