@rallycry/conveyor-agent 11.1.12 → 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.
@@ -41,6 +41,7 @@ import {
41
41
  BRAINSTORM_TOOL_LIST_DEFAULT,
42
42
  BRAINSTORM_TOOL_LIST_MAX,
43
43
  CARD_DESCRIPTION_FIELD_HINT,
44
+ CARD_DESCRIPTION_MAX,
44
45
  CONTEXT_LINK_LOCATOR_MAX,
45
46
  CRITICAL_AUTOMATED_SOURCES,
46
47
  DEFAULT_CI_WAIT_TIMEOUT_MINUTES,
@@ -106,7 +107,7 @@ import {
106
107
  toMemberMentionRows,
107
108
  updateRemoteToken,
108
109
  verifyGitCredential
109
- } from "./chunk-F3OXRZBO.js";
110
+ } from "./chunk-2JW3ILVM.js";
110
111
  import {
111
112
  reportBootMilestone
112
113
  } from "./chunk-74BAVQKD.js";
@@ -7580,8 +7581,17 @@ function compileShape(z11, fields) {
7580
7581
  function defineToolContract(contract) {
7581
7582
  return contract;
7582
7583
  }
7584
+ function defineMcpToolContract(contract) {
7585
+ return contract;
7586
+ }
7583
7587
  var mcpProjectId = f.optional(f.string({ desc: "Target Conveyor project ID" }));
7584
7588
  var cardDescriptionDesc = (lead) => `${lead} \u2014 ${CARD_DESCRIPTION_FIELD_HINT}`;
7589
+ var mcpCardDescription = (lead) => f.optional(f.string({ desc: cardDescriptionDesc(lead), max: CARD_DESCRIPTION_MAX }));
7590
+ var mcpTextPath = (field, what) => f.optional(
7591
+ f.string({
7592
+ desc: `Absolute path to a local file holding the ${what}, read by the MCP server, instead of \`${field}\`: pass one of the two. At most 256 KB, UTF-8, not empty. The result ends with the sent text's length and sha256.`
7593
+ })
7594
+ );
7585
7595
  var storyPointValueDesc = "Story point value (1=Common, 2=Magic, 3=Rare, 5=Unique)";
7586
7596
  var priorityValueDesc = "Priority value from manage_priorities list (1 = the project's highest level; seeded defaults are 1=High, 2=Medium, 3=Low)";
7587
7597
  var MENTION_HOW = "To mention a teammate, write @[user:<name, email or user id>]; list_project_members gives exact tokens.";
@@ -7624,7 +7634,12 @@ var getTaskContract = defineToolContract({
7624
7634
  // project, where a bare slug already resolves, so the `agent` half of
7625
7635
  // this contract deliberately says nothing about it.
7626
7636
  desc: "The task ID or slug (the value in a card URL, /cards/<slug>), or a path-form reference '<project-slug>/<card-slug>' from the board's Copy path action"
7627
- })
7637
+ }),
7638
+ view: f.optional(
7639
+ f.enum(["full", "plan", "summary"], {
7640
+ desc: '"full" (default) is the whole card. "plan" leaves out the chat messages; "summary" leaves out the chat messages and the plan.'
7641
+ })
7642
+ )
7628
7643
  }
7629
7644
  }
7630
7645
  });
@@ -7663,7 +7678,8 @@ var postToChatContract = defineToolContract({
7663
7678
  f.string({
7664
7679
  desc: "Alias of `content` (the in-pod agent surface names this field `message`). Provide exactly one of the two."
7665
7680
  })
7666
- )
7681
+ ),
7682
+ contentPath: mcpTextPath("content", "message")
7667
7683
  }
7668
7684
  }
7669
7685
  });
@@ -7685,7 +7701,16 @@ var readTaskChatContract = defineToolContract({
7685
7701
  fields: {
7686
7702
  projectId: mcpProjectId,
7687
7703
  taskId: f.string({ desc: "The task ID" }),
7688
- limit: f.optional(f.number({ desc: "Max messages to return (default 50)" }))
7704
+ limit: f.optional(f.number({ desc: "Max messages to return (default 50, at most 200)" })),
7705
+ before: f.optional(
7706
+ f.string({
7707
+ desc: "Only messages older than this message id or ISO time: pass the first message's id to page back"
7708
+ })
7709
+ ),
7710
+ messageId: f.optional(f.string({ desc: "Read exactly this message, whole" })),
7711
+ full: f.optional(
7712
+ f.boolean({ desc: "Return each message whole instead of cut at 2,000 characters" })
7713
+ )
7689
7714
  }
7690
7715
  }
7691
7716
  });
@@ -7847,8 +7872,9 @@ var updateTaskContract = defineToolContract({
7847
7872
  projectId: mcpProjectId,
7848
7873
  taskId: f.string({ desc: "The task ID" }),
7849
7874
  title: f.optional(f.string({ desc: "New title" })),
7850
- description: f.optional(f.string({ desc: cardDescriptionDesc("New description") })),
7875
+ description: mcpCardDescription("New description"),
7851
7876
  plan: f.optional(f.string({ desc: "New plan (markdown)" })),
7877
+ planPath: mcpTextPath("plan", "new plan (markdown)"),
7852
7878
  status: f.optional(f.enum(STATUS_ENUM, { desc: "New status" })),
7853
7879
  risk: f.optional(
7854
7880
  f.nullable(
@@ -8204,8 +8230,9 @@ var createSubtaskContract = defineToolContract({
8204
8230
  projectId: mcpProjectId,
8205
8231
  parentTaskId: f.string({ desc: "The parent task ID" }),
8206
8232
  title: f.string({ desc: "Subtask title" }),
8207
- description: f.optional(f.string({ desc: cardDescriptionDesc("Subtask description") })),
8233
+ description: mcpCardDescription("Subtask description"),
8208
8234
  plan: f.optional(f.string({ desc: "Subtask implementation plan (markdown)" })),
8235
+ planPath: mcpTextPath("plan", "subtask's plan (markdown)"),
8209
8236
  ordinal: f.optional(f.number({ desc: "Ordering position among siblings" })),
8210
8237
  storyPointValue: f.optional(f.number({ desc: SP_DESCRIPTION })),
8211
8238
  followParentStatus: f.optional(f.boolean({ desc: MCP_FOLLOW_PARENT_STATUS })),
@@ -8257,8 +8284,9 @@ var updateSubtaskContract = defineToolContract({
8257
8284
  projectId: mcpProjectId,
8258
8285
  subtaskId: f.string({ desc: "The subtask ID" }),
8259
8286
  title: f.optional(f.string({ desc: "New title" })),
8260
- description: f.optional(f.string({ desc: cardDescriptionDesc("New description") })),
8287
+ description: mcpCardDescription("New description"),
8261
8288
  plan: f.optional(f.string({ desc: "New plan (markdown)" })),
8289
+ planPath: mcpTextPath("plan", "new plan (markdown)"),
8262
8290
  status: f.optional(f.enum(MCP_STATUS_ENUM, { desc: "New status" })),
8263
8291
  ordinal: f.optional(f.number({ desc: "New ordering position among siblings" })),
8264
8292
  storyPointValue: f.optional(f.number({ desc: SP_DESCRIPTION })),
@@ -8300,10 +8328,13 @@ var listSubtasksContract = defineToolContract({
8300
8328
  }
8301
8329
  },
8302
8330
  mcp: {
8303
- description: "List all subtasks of a parent task with their status and ordering. Pass projectId to target a specific project; otherwise the configured default project is used.",
8331
+ description: "List all subtasks of a parent task with their status and ordering. Rows are summaries: each says whether the subtask has a plan (hasPlan), its story points and branch, and its dependencies; get_task reads one subtask's plan. Pass includePlans to get every plan inline (large on a big pack). Pass projectId to target a specific project; otherwise the configured default project is used.",
8304
8332
  fields: {
8305
8333
  projectId: mcpProjectId,
8306
- taskId: f.string({ desc: "The parent task ID" })
8334
+ taskId: f.string({ desc: "The parent task ID" }),
8335
+ includePlans: f.optional(
8336
+ f.boolean({ desc: "Include each subtask's plan text. Default: summaries only." })
8337
+ )
8307
8338
  }
8308
8339
  }
8309
8340
  });
@@ -9735,14 +9766,14 @@ var listSiteAssetTargetsContract = defineToolContract({
9735
9766
  var uploadSiteAssetsContract = defineToolContract({
9736
9767
  name: "upload_site_assets",
9737
9768
  agent: {
9738
- description: "Upload up to 50 workspace image or video files (25 MiB each) to a registered site using Conveyor identity. Call list_site_asset_targets first for the registered siteId. Returns verified immutable keys and public URLs per file.",
9769
+ description: "Upload up to 50 workspace image, video or PDF files (25 MiB each) to a registered site using Conveyor identity. Call list_site_asset_targets first for the registered siteId. Returns verified immutable keys and public URLs per file.",
9739
9770
  fields: {
9740
9771
  siteId: f.string({ min: 1, max: 100 }),
9741
9772
  paths: f.array(f.string({ min: 1 }), { min: 1, max: 50 })
9742
9773
  }
9743
9774
  },
9744
9775
  mcp: {
9745
- description: "Upload up to 50 workspace image or video files (25 MiB each) to a registered site using Conveyor identity. Call list_site_asset_targets first for the registered siteId. Returns verified immutable keys and public URLs per file.",
9776
+ description: "Upload up to 50 workspace image, video or PDF files (25 MiB each) to a registered site using Conveyor identity. Call list_site_asset_targets first for the registered siteId. Returns verified immutable keys and public URLs per file.",
9746
9777
  fields: {
9747
9778
  projectId: mcpProjectId,
9748
9779
  siteId: f.string({ min: 1, max: 100 }),
@@ -9824,6 +9855,76 @@ async function transferSiteAsset(capability, bytes, expected) {
9824
9855
  status: put.status === 201 ? "uploaded" : "existing"
9825
9856
  };
9826
9857
  }
9858
+ var TASK_ID = f.string({ desc: "The task ID" });
9859
+ var messageAgentContract = defineMcpToolContract({
9860
+ name: "message_agent",
9861
+ mcp: {
9862
+ description: "Send a message to a card's agent and wake it. The message is stored in the card's chat as post_to_chat stores it, then delivered: to the live agent at once, or to its slept environment, which wakes on your account and reads it. It never boots a card that has no environment (start_task does that), and it wakes nothing while a code review runs on the card or when the card's builder did not push its pull request. Use post_to_chat to leave a note without waking anything. Pass interrupt to reach a busy agent in its running turn instead of after it. Pass projectId to target a specific project; otherwise the configured default project is used.",
9863
+ fields: {
9864
+ projectId: mcpProjectId,
9865
+ taskId: TASK_ID,
9866
+ content: f.string({
9867
+ desc: "The message. Mention people as @[user:<name, email or id>].",
9868
+ min: 1
9869
+ }),
9870
+ interrupt: f.optional(
9871
+ f.boolean({ desc: "Deliver into the agent's running turn rather than after it." })
9872
+ )
9873
+ }
9874
+ }
9875
+ });
9876
+ var answerAgentQuestionContract = defineMcpToolContract({
9877
+ name: "answer_agent_question",
9878
+ mcp: {
9879
+ description: `Answer the question a card's agent is blocked on. The open question is the card's chat message whose metadata.type is "agent_question" (read_task_chat shows it): its metadata carries the requestId and each question with its options. The answers post as your chat message and reach the agent, waking its environment if it slept. A question answered already is refused. For anything that is not an answer, use message_agent.`,
9880
+ fields: {
9881
+ taskId: TASK_ID,
9882
+ requestId: f.string({ desc: "The requestId in the agent_question message's metadata" }),
9883
+ answers: f.array(
9884
+ f.object({
9885
+ question: f.string({ desc: "The question's exact text: its `question` field" }),
9886
+ answer: f.string({ desc: "The chosen option's label, or your own words" })
9887
+ }),
9888
+ { desc: "One answer per question", min: 1 }
9889
+ )
9890
+ }
9891
+ }
9892
+ });
9893
+ var agentMessagingContracts = [
9894
+ messageAgentContract,
9895
+ answerAgentQuestionContract
9896
+ ];
9897
+ var getBoardDigestContract = defineMcpToolContract({
9898
+ name: "get_board_digest",
9899
+ mcp: {
9900
+ description: "Read the whole board in one call: every card in Planning, Open, InProgress or ReviewPR, plus any card that is new, moved, merged or got a person's post since `since`, each with its pull request, pod, agent, review and open-question signals; the card counts per status; the project's review mode, auto-merge, open pull request limit and idle window; and your free pod slots. Pass the previous read's `asOf` as `since` to see only what changed. Returns compact text, about one line a card; format \"json\" returns the rows, about 1 KB a card, so pair it with a small limit. A change from up to two minutes before since can show again. Pass projectId to target a specific project; otherwise the configured default project is used.",
9901
+ fields: {
9902
+ projectId: mcpProjectId,
9903
+ since: f.optional(
9904
+ f.string({
9905
+ desc: "An ISO time, usually the previous digest's asOf: what changed after it"
9906
+ })
9907
+ ),
9908
+ scope: f.optional(
9909
+ f.enum(["all", "mine"], {
9910
+ desc: '"mine": only cards you created or are assigned. Default "all"'
9911
+ })
9912
+ ),
9913
+ format: f.optional(
9914
+ f.enum(["text", "json"], { desc: "Compact text (default) or the JSON rows" })
9915
+ ),
9916
+ limit: f.optional(
9917
+ f.number({
9918
+ desc: "At most this many cards (default 300, at most 500)",
9919
+ int: true,
9920
+ min: 1,
9921
+ max: 500
9922
+ })
9923
+ )
9924
+ }
9925
+ }
9926
+ });
9927
+ var boardContracts = [getBoardDigestContract];
9827
9928
  var TOOL_CONTRACTS = Object.fromEntries(
9828
9929
  [
9829
9930
  ...tasksContracts,
@@ -9849,6 +9950,9 @@ var TOOL_CONTRACTS = Object.fromEntries(
9849
9950
  ...siteAssetsContracts
9850
9951
  ].map((contract) => [contract.name, contract])
9851
9952
  );
9953
+ var MCP_TOOL_CONTRACTS = Object.fromEntries(
9954
+ [...agentMessagingContracts, ...boardContracts].map((contract) => [contract.name, contract])
9955
+ );
9852
9956
 
9853
9957
  // src/tools/contract-tool.ts
9854
9958
  import { z as z3 } from "zod";
@@ -8,7 +8,7 @@ import {
8
8
  readWorkspaceBytes,
9
9
  statWorkspacePath,
10
10
  workspacePathExists
11
- } from "./chunk-F3OXRZBO.js";
11
+ } from "./chunk-2JW3ILVM.js";
12
12
  import {
13
13
  reportBootMilestone
14
14
  } from "./chunk-74BAVQKD.js";
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  WorkspaceCommandSupervisor,
8
8
  startWorkspaceCommandsAfterConnect,
9
9
  stopWorkspaceCommands
10
- } from "./chunk-5VXHCD4V.js";
10
+ } from "./chunk-CWGU7HVC.js";
11
11
  import {
12
12
  PtyHarness,
13
13
  SessionRunner,
@@ -25,7 +25,7 @@ import {
25
25
  resolveTuiKindFromEnv,
26
26
  sampleKeyUsage,
27
27
  usesNativeUsageReporting
28
- } from "./chunk-HF4HW4LR.js";
28
+ } from "./chunk-6FEFEVVF.js";
29
29
  import "./chunk-VYE7XV6U.js";
30
30
  import {
31
31
  inheritedEnv,
@@ -41,7 +41,7 @@ import {
41
41
  createServiceLogger,
42
42
  loadAndAnnotateDiscoveredPorts,
43
43
  loadConveyorConfig
44
- } from "./chunk-F3OXRZBO.js";
44
+ } from "./chunk-2JW3ILVM.js";
45
45
  import "./chunk-74BAVQKD.js";
46
46
  import "./chunk-W4LZ7R6Z.js";
47
47
  import "./chunk-372R6E4C.js";
@@ -1424,7 +1424,7 @@ if (!RUNNER_MODES.includes(CONVEYOR_MODE)) {
1424
1424
  process.exit(1);
1425
1425
  }
1426
1426
  if (CONVEYOR_MODE === "serving") {
1427
- const { runServingSession } = await import("./serve-boot-4YQ6JVKU.js");
1427
+ const { runServingSession } = await import("./serve-boot-MHESEHYF.js");
1428
1428
  exitContext.runnerMode = "serving";
1429
1429
  exitContext.sessionId = process.env.CONVEYOR_SESSION_ID ?? exitContext.sessionId;
1430
1430
  const outcome = await runServingSession({
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SessionRunner,
3
3
  unshallowRepo
4
- } from "./chunk-HF4HW4LR.js";
4
+ } from "./chunk-6FEFEVVF.js";
5
5
  import "./chunk-VYE7XV6U.js";
6
6
  import "./chunk-76JCOHPE.js";
7
7
  import {
@@ -17,7 +17,7 @@ import {
17
17
  stageAndCommit,
18
18
  updateRemoteToken,
19
19
  workspacePathExists
20
- } from "./chunk-F3OXRZBO.js";
20
+ } from "./chunk-2JW3ILVM.js";
21
21
  import "./chunk-74BAVQKD.js";
22
22
  import {
23
23
  runAuthTokenCommand,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WorkspaceCommandSupervisor
3
- } from "./chunk-5VXHCD4V.js";
3
+ } from "./chunk-CWGU7HVC.js";
4
4
  import {
5
5
  AgentConnection,
6
6
  DEFAULT_LIFECYCLE_CONFIG,
@@ -11,7 +11,7 @@ import {
11
11
  ensureOnTaskBranch,
12
12
  loadAndAnnotateDiscoveredPorts,
13
13
  loadConveyorConfig
14
- } from "./chunk-F3OXRZBO.js";
14
+ } from "./chunk-2JW3ILVM.js";
15
15
  import "./chunk-74BAVQKD.js";
16
16
  import "./chunk-W4LZ7R6Z.js";
17
17
  import "./chunk-L2E4EMEP.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rallycry/conveyor-agent",
3
- "version": "11.1.12",
3
+ "version": "11.1.13",
4
4
  "description": "Conveyor Agent Runner v10 - PTY harness for the task chat (SDK harness for audit/project-chat). Agent-as-User architecture with BaseService patterns. Works locally too.",
5
5
  "keywords": [
6
6
  "agent",
@@ -101,8 +101,10 @@ live loop is still working.
101
101
  claimable — take its children one at a time instead; a card with a
102
102
  `parentTaskId` only while the parent's status is neither InProgress nor
103
103
  ReviewPR (see ground rules).
104
- Skip `followParentStatus` mirror children. A blocker counts as met only
105
- when merged-or-beyond (ReviewDev/ReviewLive/Complete) or Cancelled — a
104
+ Skip `followParentStatus` mirror children. A card whose title starts
105
+ `[manager]` is never claimable: it is a `/conveyor-manager` run's duty
106
+ card, and its plan is a charter, not work to build. A blocker counts as met
107
+ only when merged-or-beyond (ReviewDev/ReviewLive/Complete) or Cancelled — a
106
108
  blocker sitting in ReviewPR is NOT met until its PR merges.
107
109
  2. Claim: re-confirm via `get_task` it is still Open, take the checkout claim
108
110
  (`checkout acquire --card <slug>`; `held` → do not claim, arm the wait),
@@ -275,7 +277,8 @@ depth each iteration so the user can offload manually.
275
277
  the loop takes turns on it through the checkout claim.
276
278
  - Not a parallel executor: one card (or one pack) at a time is the point (the
277
279
  full machine per gate). Backlogged? That is what claudespaces — or the
278
- offload valve — are for.
280
+ offload valve — are for. Running pods side by side and landing their work
281
+ is `/conveyor-manager`.
279
282
 
280
283
  ## Improve This Skill
281
284
 
@@ -0,0 +1,261 @@
1
+ ---
2
+ name: conveyor-manager
3
+ description: Run this session as the manager of a Conveyor board the owner has delegated — turn their vision and feedback into planned cards and packs, decide what starts next and what may run side by side, run cloud pods and one local build lane, review and land pull requests, and keep the owner informed on the cards where they read. One invocation = one wake of the routine; run continuously with "/loop /conveyor-manager". Use when the user says "/conveyor-manager", "manage this board", "run the board for me", "babysit the board", "be my project manager", or hands over a whole project rather than one card. Local/MCP surface only; inside a pod the skill says so instead of failing. For one card use conveyor-plan, conveyor-build or conveyor-review; for a serial local queue with no pods use conveyor-local-loop.
4
+ ---
5
+
6
+ # Conveyor Manager
7
+
8
+ Builders, planners and reviewers each see one card. You are the one session
9
+ that sees the board: what should start next, what must not run side by side,
10
+ what is drifting, and what the owner is waiting on. The owner has handed you
11
+ the project so that they only answer the questions that are really theirs.
12
+
13
+ You do not do the work yourself. [conveyor-plan](../conveyor-plan/SKILL.md),
14
+ [conveyor-start](../conveyor-start/SKILL.md),
15
+ [conveyor-build](../conveyor-build/SKILL.md),
16
+ [conveyor-review](../conveyor-review/SKILL.md),
17
+ [conveyor-triage](../conveyor-triage/SKILL.md) and
18
+ [conveyor-prune](../conveyor-prune/SKILL.md) do it, in pods and sub-agents, and
19
+ each stays the source of truth for its own procedure. This skill adds what none
20
+ of them has: the charter, the wake routine, the lanes and their limits, and
21
+ when to stop the line.
22
+
23
+ > **Environment — this skill does not apply inside a pod.** It needs
24
+ > `start_task`, `sleep_task`, `resume_task`, `approve_and_merge_pr`,
25
+ > `create_task` and `list_projects`, which exist only on the external
26
+ > `conveyor-mcp` surface. If `mcp__conveyor__get_connection_context` reports a
27
+ > task binding and no user account, you are in a pod: say so and stop.
28
+
29
+ ## Ground rules
30
+
31
+ - **The board is the state; this session is disposable.** It will be compacted,
32
+ restarted and rate-limited. Whatever you would need afterwards lives on a
33
+ card, on origin, or in the ledger ([references/recovery.md](references/recovery.md)) —
34
+ never only in your context, and never under `/tmp`.
35
+ - **Read it, then write it.** A hash, card id, link, file name, clock time or
36
+ "still waiting on X" is read from its source in the same turn you use it.
37
+ A manager that wrote these from memory was wrong in every one of those forms.
38
+ - **Listen before you act.** Every wake starts with what people did since the
39
+ last one, before you act on whatever woke you — including when what woke you
40
+ is the owner typing in this session.
41
+ - **Finish before you start.** Landing reviewed work, unsticking a pod and
42
+ closing a finished pack come before any new start. A free slot is capacity,
43
+ not a reason.
44
+ - **Nothing is built on unmerged work.** A dependency is met when it has
45
+ merged. When nothing can merge, stop starting.
46
+ - **The owner's words stay the owner's.** Keep the charter and every later
47
+ instruction verbatim on the manager card. Never record an exception to one,
48
+ never reorder a stated order, and never read silence as consent to a change
49
+ of scope. A rule in your way is a question for them.
50
+ - **A limit you stated binds you** — pods, lanes, spend, "no new starts until
51
+ X" — until you have told the owner it changed.
52
+ - **A refusal is a stop sign.** When the board, a merge gate or a permission
53
+ check refuses an action, do not find another route to the same effect.
54
+ - **Your own ideas are unreviewed work.** A fix round carries the review's
55
+ findings. A rule, threshold or design you thought of becomes its own card, or
56
+ is measured first.
57
+ - **One manager per board, one writer per checkout.** Look for a live manager
58
+ before becoming one (step 1). The main checkout has one writer at a time
59
+ under the checkout claim; a worktree is temporary and read-only.
60
+ - **You are not the builder.** If an hour goes to merging branches, resolving
61
+ conflicts or re-running gates, the structure is wrong: shrink the pack, cut
62
+ the work in flight, or fix the file every card rewrites.
63
+ - **Keep your own context small.** Builds run in pods and sub-agents, hand-backs
64
+ are short and point at files, and a tool result too large to read is saved
65
+ and searched, never read whole.
66
+ - **All Conveyor tools fully-qualified** (`mcp__conveyor__list_tasks`), and
67
+ most are deferred: one ToolSearch `select:` with every name you expect, and
68
+ again after each compaction.
69
+
70
+ ## Goal and finish line
71
+
72
+ **Goal:** the board moves toward the outcome in the charter, and the owner is
73
+ needed only for decisions that are theirs.
74
+
75
+ **Finish line of a wake:** every lane is working, waiting on a named event, or
76
+ blocked on the owner with the ask posted where they read; nothing reviewed is
77
+ waiting to land; and the manager card says what is true now.
78
+
79
+ **A turn may end only when:** (a) the finish line holds and a wake is armed
80
+ (step 7); (b) an `AskUserQuestion` is pending for the charter; or (c) the
81
+ charter's outcome is reached or the owner stopped the run — the final report is
82
+ on the manager card, the card is `Open` (paused) or `Complete` (over), and
83
+ nothing is armed. Anything else is a stalled board, not a paused one.
84
+
85
+ **Runtime:** *Claude Code* — run `/loop /conveyor-manager` (no interval); each
86
+ firing is one wake. Invoked bare, run one wake, report, and suggest the loop.
87
+ *Codex CLI* — there is no `ScheduleWakeup`: create a thread goal whose
88
+ objective is the finish-line sentence, and wait by holding step 7's
89
+ `conveyor-wait` command open in the foreground.
90
+
91
+ ## The wake routine
92
+
93
+ A wake runs every step in order. Each is short when nothing changed.
94
+
95
+ ### 1. Orient
96
+
97
+ Read the clock (`date`). After a compaction, a restart or a long gap, do the
98
+ full version in [references/recovery.md](references/recovery.md) before anything
99
+ else — a context summary is a pointer, never the state.
100
+
101
+ Resolve the project with `mcp__conveyor__get_connection_context` (pass
102
+ `projectId` on every call when more than one project is reachable), then find
103
+ the manager card: `mcp__conveyor__search_tasks` with
104
+ `searchQuery: "[manager] Board manager"`, keeping only rows whose title is
105
+ exactly that — the search also matches descriptions.
106
+
107
+ - **None, or only `Complete` or `Cancelled` ones** → this is a new run. Follow
108
+ [references/charter.md](references/charter.md), then come back.
109
+ - **`InProgress`** → a manager is on duty. If its status line shows another
110
+ session swept the board in the last 30 minutes, stop and tell the user: one
111
+ manager per board. Otherwise it is yours: re-read its plan (the charter) and
112
+ your ledger.
113
+ - **`Open`** → the run is paused. Take it up: set it `InProgress`, post
114
+ `[manager] on duty`, re-read the charter.
115
+
116
+ ### 2. Listen
117
+
118
+ What did people do since the ledger's cursor?
119
+
120
+ - **One read.** `mcp__conveyor__get_board_digest` with `since` set to the
121
+ ledger's cursor (omit it on a first run). Its `CHANGED SINCE` rows are what
122
+ happened: `human` is a person's post (in the app, from Slack or Discord;
123
+ a post through the Conveyor MCP, yours included, never counts), `new` a card
124
+ filed, `status` a move, `merged` a merge. Read a `human` row's whole thread
125
+ with `mcp__conveyor__read_task_chat` only when its one-line preview is not
126
+ enough, back to your own last note. If the tool is absent, or says the API
127
+ predates it, fall back to `mcp__conveyor__list_tasks` for `Planning`, `Open`,
128
+ `InProgress` and `ReviewPR` with `read_task_chat` on every row whose
129
+ `updatedAt` passed the cursor.
130
+ - **New cards.** A `new` row you did not file is intake:
131
+ [references/owner.md](references/owner.md).
132
+ - **Out-of-band actions.** A card that moved, a pull request that merged or a
133
+ pod that started without you: the owner did it. Take it as given and adjust;
134
+ never redo or undo it.
135
+
136
+ Then move the cursor to the digest's `asOf` (the exact time in its first
137
+ line). A change from the two minutes before `since` can show twice; take it
138
+ once.
139
+
140
+ ### 3. Unblock
141
+
142
+ Read the same digest's `ATTENTION` rows, which are true now whether or not
143
+ they changed: `question` (the agent waits on an answer), `conflict`, `failed`
144
+ (a review, a pod or an agent), `idle` (a pod up, its agent not working, no pull
145
+ request) and `no pod` (InProgress with no pod and no pull request: a local
146
+ session's card, or nobody's). Then look past them for a pod still running for a
147
+ card already reviewed or merged, a red pull request, and a blocker only the
148
+ owner can clear. Each has one move in [references/lanes.md](references/lanes.md).
149
+ A `question` the charter lets you answer gets
150
+ `mcp__conveyor__answer_agent_question`; any other is the owner's. Without the
151
+ digest, use `mcp__conveyor__get_build_status` on each card whose pod runs.
152
+
153
+ A blocker the owner holds gets a check of its own trace (the key, the setting,
154
+ the push) added to the ledger, so every wake tests it and you see it clear
155
+ without being told.
156
+
157
+ ### 4. Land
158
+
159
+ Every `ReviewPR` card gets a verdict this wake, or a line on its card saying
160
+ what it is waiting for: review at its risk tier, at most one fix round, then
161
+ merge within your authority —
162
+ [references/landing.md](references/landing.md).
163
+
164
+ A pack whose last child just merged is closed in this wake. After a merge into
165
+ the base branch, read the base branch's own CI run and its deploy, and fold
166
+ what the card changed into the plans of the cards that depend on it.
167
+
168
+ ### 5. Launch
169
+
170
+ Only when no row of *Stop the line* applies and the limits in
171
+ [references/lanes.md](references/lanes.md) leave room. For each start: the plan
172
+ is still true of the merged code, its dependencies have merged, nothing in
173
+ flight touches the same files, and the card carries everything its builder must
174
+ know. Then start it and confirm it is working.
175
+
176
+ One canary before any fan-out: the first pod, the first card through a new
177
+ merge path, the first start after an outage.
178
+
179
+ ### 6. Shape
180
+
181
+ With the lanes full, or nothing ready: plan the cards that start next, and only
182
+ those; triage and prune (use [conveyor-prune](../conveyor-prune/SKILL.md)'s
183
+ dispositions — parking and regrouping are yours, cancelling a card someone else
184
+ filed is theirs to confirm); and run the macro pass in
185
+ [references/lanes.md](references/lanes.md). This is the work no builder can do.
186
+ Do not trade it for a status report.
187
+
188
+ ### 7. Report and arm
189
+
190
+ 1. Rewrite the manager card's one-line status (its `description`) if it
191
+ changed, and post a fresh owner digest if the set of asks changed
192
+ ([references/owner.md](references/owner.md)).
193
+ 2. Run step 2 once more. Anything new that you did not cause means the wake is
194
+ not over. Keep this digest's `asOf`: it is the cursor.
195
+ 3. Write the ledger: the cursor, and under *Armed* the wait below.
196
+ 4. Arm, from the ledger and never from memory, exactly one board wait and one
197
+ fallback:
198
+
199
+ ```bash
200
+ node_modules/.bin/conveyor-wait --watch human,new,status,pr,review,pod --since <asOf> --timeout 1740 < <(sleep 1800)
201
+ ```
202
+
203
+ Launch it with Bash `run_in_background: true`; its completion is the wake.
204
+ Keep `< <(sleep 1800)` on it, and on the `npx` fallback too: the CLI reads
205
+ the end of its input as its caller leaving, and a Bash tool's input is
206
+ empty, so without it the wait answers `{"reason":"interrupted"}` at once.
207
+ It fires on a person's reply, a new card, a move, a pull request opened or
208
+ merged, a review verdict, and a pod that starts or stops, on every card in
209
+ Planning, Open, InProgress and ReviewPR; one line names them all. Your own
210
+ writes come back as events too, which is why `--since` is the last digest's
211
+ `asOf`. The fallback `ScheduleWakeup` is 1500–1800s in every state. On a
212
+ team board use `--scope mine,unclaimed`. An older CLI without `--watch`
213
+ gets the legacy wait (`--types task --scope all --statuses Planning,ReviewPR`)
214
+ and a 600–900s fallback while a pod runs or an ask is open, because it hears
215
+ neither a reply nor a stopped pod.
216
+ The bin's fallbacks and failure modes are in
217
+ [conveyor-local-loop](../conveyor-local-loop/SKILL.md) ("Waking on board
218
+ events"). The result is advisory: step 2 is the source of truth.
219
+ 5. End the turn in at most three lines: what moved, and what is waiting on
220
+ whom. Never a message that says only that things are still running.
221
+
222
+ ## Stop the line
223
+
224
+ | When | Do |
225
+ | --- | --- |
226
+ | The merge path is down (CI not starting, billing, credentials), or 60 minutes pass with reviewed work waiting and nothing merging | Start nothing new. Send the owner ONE decision request: the options, your default, a deadline. It leads every message until cleared, with its age. Keep landing, planning and reviewing. |
227
+ | A card could only start on an unmerged branch | It waits. |
228
+ | The board, a gate or a permission check refused something | Report it on the card. Do not reach the same effect another way. |
229
+ | A gate would run a second time on the same commit, or a card would enter a third fix round | Stop. Merge with the leftovers on a named card, or re-plan. |
230
+ | Pods fail the same way twice (key, image, capacity) | Stop starting. After the fix, one canary. |
231
+ | You broke a limit or a commitment you gave the owner | Say so first, in the first sentence, on the card where you gave it. |
232
+ | Your own upkeep outweighs the building | Restructure — smaller packs, less in flight, the shared file fixed — and tell the owner what you changed. |
233
+
234
+ ## Lanes at a glance
235
+
236
+ | Lane | Use it for | Limit |
237
+ | --- | --- | --- |
238
+ | Pods | Any card a pod can build. The default. | The charter's cap and the instance's capacity; cards building plus cards in review never exceed the slots. |
239
+ | Local write lane | What needs this machine (a GPU, a real browser, hardware), work alongside the owner, a spike, a small fix to a pull request. | One writer under the checkout claim, given back between cards. |
240
+ | Read-only helpers | Planning, review, audits. | They write only in their own scratch folder and start no server, browser or database. |
241
+
242
+ Detail, and the rules for packs: [references/lanes.md](references/lanes.md).
243
+ Briefs for local helpers: [references/briefs.md](references/briefs.md).
244
+
245
+ ## What this skill is not
246
+
247
+ - **Not a builder.** If the work should happen here, hand one card to
248
+ `/conveyor-build` in the local lane. You keep watching the board.
249
+ - **Not the owner.** Scope, money, accounts outside the project, a release to
250
+ production, a matter of taste they reserved, and cancelling their cards are
251
+ theirs at every authority level.
252
+ - **Not a merge button.** What you may merge comes from the charter, and never
253
+ includes a pull request you wrote into the base branch.
254
+ - **Not for other people's work.** On a team board a teammate's card in flight
255
+ is context. It is never yours to start, steer or merge.
256
+
257
+ ## Improve This Skill
258
+
259
+ If this skill was insufficient or slowed the work down, file it with
260
+ `mcp__conveyor__create_suggestion` on the Conveyor project: the issue,
261
+ evidence, and proposed fix.