spur-board 0.62.1 → 0.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mcp.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { C as renderMcpError, X as ERRORS, y as OPERATIONS } from "./chunk-CzdGYlBy.mjs";
2
- import { o as CliError, r as requestOperation } from "./chunk-Czc8fVqW.mjs";
3
- import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-DyPssI65.mjs";
1
+ import { Z as ERRORS, _ as renderMcpError, p as OPERATIONS } from "./chunk-BONq7Qxa.mjs";
2
+ import { o as CliError, r as requestOperation } from "./chunk-CDacbdk2.mjs";
3
+ import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-B1XoUsys.mjs";
4
4
  import { randomUUID } from "node:crypto";
5
5
  import { readFileSync } from "node:fs";
6
6
  import { z } from "zod";
@@ -0,0 +1,7 @@
1
+ -- A turn submit the board accepted before it could confirm the head waits for a later poll.
2
+ -- pending_until is the ISO-8601 UTC deadline for a PR to appear; NULL means not pending, which is
3
+ -- every row recorded before this migration and every submit whose head was confirmed. The board
4
+ -- clears it when a poll confirms the head and voids the row when it hands the turn back.
5
+ -- A null pr_repo / pr_number, which 0014 reserved for a submit recorded before it, now also marks
6
+ -- a pending submit made before the board linked a PR; confirmation fills them in.
7
+ ALTER TABLE submission ADD COLUMN pending_until TEXT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spur-board",
3
- "version": "0.62.1",
3
+ "version": "0.63.0",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": "^24.12.0 || ^26.0.0"
@@ -147,7 +147,7 @@ Other errors: `wrong_id_kind`, `not_found`, `block_not_open`, `task_archived`, `
147
147
 
148
148
  ### `board submit`
149
149
 
150
- Purpose: Submit the commit at the head of the task's pull request for a turn this session took; the turn closes.
150
+ Purpose: Submit the task's pull request head for a turn this session took; the turn closes; a pending result is final.
151
151
  Arguments: `<turn>`, `<sha>`.
152
152
  Flags: `--key <key>`, `--json`.
153
153
  Use when: Hand in the work of a turn you took, at the pull request head. While the project dispatcher is in shadow mode no turn opens: the column executor submits with the task key.
@@ -13,7 +13,7 @@
13
13
 
14
14
  - `not_found`: Check the ID with `board status` or `board task <KEY>`.
15
15
  - `wrong_id_kind`: Pass the ID kind the operation expects, e.g. B<n> for a block or a task key for a task.
16
- - `github_unavailable`: Wait until GitHub answers, then retry the operation.
16
+ - `github_unavailable`: Follow the message: ask the operator to fix what it names, or retry a read or link once GitHub answers the board's polls; repeat a submit only by task key in shadow mode.
17
17
  - `stale_comment_revision`: Read the latest comment revision, then acknowledge that revision.
18
18
  - `idempotency_key_mismatch`: Use a new key for a new command, or repeat the earlier input with the same key.
19
19
  - `task_archived`: Ask an operator to add the task to the board again if work continues.
@@ -21,5 +21,5 @@
21
21
  - `wrong_block_type`: Read the block type with `board task <KEY>` and use the operation for that type.
22
22
  - `turn_closed`: Read your open turns with `board inbox` and act only on a turn listed there.
23
23
  - `not_turn_taker`: Take the turn with `board inbox ack` first; only the session that took it can submit or return it.
24
- - `head_mismatch`: Push the commit to the task's pull request branch and submit its head; if the task has none, ask the operator to link the pull request with `board link` first.
24
+ - `head_mismatch`: Push the commit to the task's pull request branch and submit the head GitHub shows.
25
25
  - `return_not_allowed`: In Dev, ask with `board ask` instead.
@@ -1,14 +1,14 @@
1
1
  # How the Board works
2
2
 
3
3
  Start with `board task <task> --why`: it explains the gates, holds, open turn and
4
- last moves behind the task's position. Read `board inbox` before acting on a ring.
4
+ last moves behind the task's position.
5
5
 
6
6
  ## Columns and executors
7
7
 
8
8
  The fixed order is `todo`, `ready-for-dev`, `dev`, `review`, `product-review`,
9
9
  `external-review`, `qa`, `ready-to-merge`, `done`.
10
- `projects[].columns[].enabled` skips a column and its gate when false; To Do, Dev
11
- and Done must stay enabled. Omitted optional columns are skipped too.
10
+ `projects[].columns[].enabled` false, or omitting an optional column, skips it and
11
+ its gate; To Do, Dev and Done must stay enabled.
12
12
 
13
13
  Each column has one executor, selected by `projects[].columns[].orchestrator`:
14
14
  `none` uses the task's live worker, falling back to the operator; `operator` uses
@@ -59,6 +59,9 @@ with keyed `board inbox ack <entries>`. Only the acknowledging session may submi
59
59
  or return it: keyed `board submit <turn> <sha>` accepts the head, and keyed
60
60
  `board return <turn> <reason>` sends findings back to Dev. A worker submits a fresh
61
61
  PR head after pushing. In shadow mode, use keyed `board submit <task> <sha>`.
62
+ An unseen head answers `pending`: that submit is final,
63
+ so do not resubmit or raise a block; the Board confirms it or hands the turn back
64
+ (`projects[].dispatcher.submitConfirmMs`).
62
65
 
63
66
  A new head closes taken turns outside Dev; a taken Dev turn survives the worker's
64
67
  push so that worker can submit it. An unacknowledged turn does not hold back a
@@ -111,8 +114,8 @@ ID). Role addresses follow the current session filling the role.
111
114
 
112
115
  ## Slack now
113
116
 
114
- `slack.channels.feed` carries summaries such as curator answers and operator
115
- items, with exceptions for items represented elsewhere or delivery problems.
117
+ `slack.channels.feed` carries summaries like curator answers and operator
118
+ items, except items shown elsewhere and delivery problems.
116
119
  `slack.channels.orchestrators` carries block threads addressed to the operator by
117
120
  someone else. Answer in the existing block thread to preserve its task context.
118
121
 
@@ -120,19 +123,20 @@ someone else. Answer in the existing block thread to preserve its task context.
120
123
 
121
124
  Once a `projects[].spurProjects[].shortName` is set, a new operator message in
122
125
  `slack.channels.orchestrators` starts a conversation. A leading registered
123
- `@shortName` selects that Spur project and is stripped from the text. With an
126
+ `@shortName` selects that Spur project and is stripped. With an
124
127
  absent or unknown leading name, `slack.defaultAddressee` receives the complete
125
128
  text, retaining any unknown prefix; without it the Board replies once with the
126
129
  valid prefixes. A mention in the middle, or a Slack `<@U…>` mention, addresses
127
130
  nobody; an unknown name causes no lookup error. The operator checks short-name
128
- collisions with workspace names. A task key right after the prefix attaches the
129
- conversation to that task.
130
-
131
- The addressee is rung with the block ID, reads the text in `board inbox` and
132
- replies in the thread with `board answer`. An operator-role addressee posts as
133
- `board`, a column orchestrator on its column's task as orchestrator. Each
134
- operator thread message rings it again; `close` or ✅ in the thread closes it.
135
- While no live session can take it, `board status` lists it as waiting.
131
+ collisions with workspace names. A task key right after the prefix attaches
132
+ that task.
133
+
134
+ The addressee is rung with the block ID, reads it in `board inbox` and replies
135
+ in the thread with `board answer`. Each operator thread message rings it again;
136
+ `close` or ✅ in the thread closes it. Replies use
137
+ `projects[].spurProjects[].displayName` and `icon`, else the project name and
138
+ role icon (`board` for operator roles). With no live session,
139
+ `board status` lists it as waiting.
136
140
 
137
141
  ## Done follows the ticket
138
142