spur-board 0.67.0 → 0.69.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/{chunk-BywmJyLe.mjs → chunk-CxD6ZAl9.mjs} +2 -2
- package/dist/{chunk-D4cCKVAP.mjs → chunk-a_l5UPaU.mjs} +357 -22
- package/dist/{chunk-DawDZw1u.mjs → chunk-eiqYso44.mjs} +1 -1
- package/dist/cli.mjs +4 -4
- package/dist/client.mjs +1 -1
- package/dist/daemon.mjs +234 -72
- package/dist/mcp.mjs +3 -3
- package/package.json +1 -1
- package/skills/spur-board/references/how-board-works.md +38 -28
package/dist/mcp.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as CliError, r as requestOperation } from "./chunk-
|
|
3
|
-
import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-
|
|
1
|
+
import { Q as ERRORS, _ as renderMcpError, p as OPERATIONS } from "./chunk-a_l5UPaU.mjs";
|
|
2
|
+
import { o as CliError, r as requestOperation } from "./chunk-eiqYso44.mjs";
|
|
3
|
+
import { a as memoryVerdictCache, c as loadClientConfig, r as compareCatalogs, t as checkCatalog } from "./chunk-CxD6ZAl9.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
import { z } from "zod";
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
`todo`, `ready-for-dev`, `dev`, `review`, `product-review`,
|
|
6
6
|
`external-review`, `qa`, `ready-to-merge`, `done`.
|
|
7
|
-
`projects[].columns[].enabled`: disabled/omitted
|
|
7
|
+
`projects[].columns[].enabled`: disabled/omitted columns skip gates;
|
|
8
8
|
To Do, Dev, Done stay enabled.
|
|
9
9
|
|
|
10
10
|
Each column has one executor: `projects[].columns[].orchestrator`:
|
|
@@ -12,7 +12,11 @@ Each column has one executor: `projects[].columns[].orchestrator`:
|
|
|
12
12
|
`orchestrator` or `curator`. The worker owns the code and branch; others inspect/return, never push.
|
|
13
13
|
|
|
14
14
|
`projects[].spurProjects[].role` accepts `worker`, `operator`, `curator` and
|
|
15
|
-
`orchestrator`.
|
|
15
|
+
`orchestrator`.
|
|
16
|
+
|
|
17
|
+
Top-level `spurProjects[].columns` fills `none` columns board-wide;
|
|
18
|
+
`role: operator` there serves operatorless projects, one session acting in
|
|
19
|
+
each. A project-level binding wins.
|
|
16
20
|
|
|
17
21
|
## Gates and placement
|
|
18
22
|
|
|
@@ -21,14 +25,14 @@ per evaluation). Turns follow unmet entry gates, actionable post-submit failures
|
|
|
21
25
|
rerouting or Done wrap-up. Holds and existing turns can yield neither action.
|
|
22
26
|
|
|
23
27
|
Moves, turns and course checks need `projects[].dispatcher.mode: on`;
|
|
24
|
-
default is `shadow`:
|
|
28
|
+
default is `shadow`: no doorbells or blocks.
|
|
25
29
|
|
|
26
30
|
Gates are cumulative: each column checks its enabled gate and those to its left. At a turn boundary, failed gates return to the leftmost failing
|
|
27
|
-
column. Pending CI, unknown
|
|
31
|
+
column. Taken turns hold until submit, return or a new head. Pending CI, unknown
|
|
28
32
|
mergeability and incomplete comment history are waits. Downstream handoff waits
|
|
29
33
|
for settled prerequisites; Dev can receive a repair turn.
|
|
30
34
|
|
|
31
|
-
Dev needs an open non-draft PR, passing checks, no conflict, handled
|
|
35
|
+
Dev needs an open non-draft PR, passing checks, no conflict, handled
|
|
32
36
|
feedback, comment history and current-head submit. Feedback excludes
|
|
33
37
|
bots, approvals and `projects[].operatorGithubLogin` (agents' account), so worker
|
|
34
38
|
thread replies never count; others' posts do.
|
|
@@ -36,20 +40,26 @@ The repo owner's and the human operator's own accounts count too, unless one is
|
|
|
36
40
|
that login: a PR comment is a change request; talk to agents in Slack
|
|
37
41
|
(`@shortName`) or the Board. A review-thread reply is a new review. An approval
|
|
38
42
|
hides its inline comments; thread resolution and the head a comment was left on
|
|
39
|
-
change nothing. Bots (GitHub Apps) neither return a task, approve it nor block
|
|
40
|
-
an approval. Handled means handed by ID to a Dev turn, not answered; in shadow
|
|
43
|
+
change nothing for feedback. Bots (GitHub Apps) neither return a task, approve it nor block
|
|
44
|
+
an approval; their threads still count. Handled means handed by ID to a Dev turn, not answered; in shadow
|
|
41
45
|
mode, a later submit in Dev or an executor `none` column handles it.
|
|
42
46
|
A status comment whose last line is a hidden `board-reviewer-progress` or
|
|
43
47
|
`board-reviewer-unavailable` marker is not external feedback. No required checks: non-skipped count. `projects[].reposWithoutCi` waives absent checks
|
|
44
48
|
for listed repos; never failed/skipped required ones.
|
|
45
49
|
|
|
46
50
|
Review and Product Review need current-head internal review marks, separate from
|
|
47
|
-
External Review's external approval. QA: current-head submit; Ready to Merge awaits merge. Executor `none` may reuse same-head submits
|
|
48
|
-
except enabled
|
|
51
|
+
External Review's external approval. QA: current-head submit; Ready to Merge awaits merge. Executor `none` may reuse same-head submits of other worker columns. Fixed gate rules have no configuration switch
|
|
52
|
+
except enabled columns, no-CI and resolved threads.
|
|
53
|
+
|
|
54
|
+
`projects[].columns[].requireResolvedThreads` (default: `ready-to-merge` only)
|
|
55
|
+
gates that column and those right of it: an unresolved review thread, outdated
|
|
56
|
+
or by anyone, returns the task to Dev, whose turn lists each thread link. The
|
|
57
|
+
worker fixes or answers, then resolves each; reviewers never do. A
|
|
58
|
+
Dev submit on the same head moves right, keeping marks and approval. An
|
|
59
|
+
approval's inline notes are threads; it still passes External Review.
|
|
49
60
|
|
|
50
61
|
Review/Product Review mark lasts across visits on the current head. A visit
|
|
51
|
-
submission belongs to one column visit; moving left clears it and those to the right. New heads invalidate internal Review and Product Review marks
|
|
52
|
-
even old heads.
|
|
62
|
+
submission belongs to one column visit; moving left clears it and those to the right. New heads invalidate internal Review and Product Review marks.
|
|
53
63
|
|
|
54
64
|
PR closed without merge with no open PR, or closed
|
|
55
65
|
ticket with live work and no merged PR. `board status` lists them as operator block threads.
|
|
@@ -65,17 +75,16 @@ Unseen heads answer `pending`: that submit is final; do not resubmit or raise a
|
|
|
65
75
|
block. Confirm timeout: `projects[].dispatcher.submitConfirmMs`.
|
|
66
76
|
|
|
67
77
|
A new head closes taken turns outside Dev; taken Dev turns survive pushes.
|
|
68
|
-
Right of Dev, red CI, a draft, a conflict
|
|
69
|
-
task to Dev at once, unless a turn is taken; then after its submit or return.
|
|
78
|
+
Right of Dev, red CI, a draft, a conflict, an external comment or an unresolved
|
|
79
|
+
thread where required returns the task to Dev at once, unless a turn is taken; then after its submit or return.
|
|
70
80
|
The Dev turn hands the comments, beside a return's `code` block.
|
|
71
|
-
Operator turns: 1 inbox item + Slack thread until exit.
|
|
72
81
|
|
|
73
82
|
Closed turns receive no further Board sends; Obsolete queued rings are dropped;
|
|
74
83
|
a message already accepted by Spur cannot be retracted. Check `board inbox` and
|
|
75
84
|
act only on a current turn; reread after `turn_closed`.
|
|
76
85
|
|
|
77
86
|
Open-turn executors in `needs_input`, `error`, `rate_limited` or `stopped` raise
|
|
78
|
-
one question after `health.turnStallAfterMs` (default 600000
|
|
87
|
+
one question after `health.turnStallAfterMs` (default 600000): curator unless self, else
|
|
79
88
|
operator. Time starts at the later turn/state start; taking never resets it.
|
|
80
89
|
One frozen explanation/dismissal per turn/session/state episode. Recovery,
|
|
81
90
|
replacement, removal, archive or turn closure withdraws it. Blind Spur opens none,
|
|
@@ -102,10 +111,10 @@ curator questions move to operator.
|
|
|
102
111
|
|
|
103
112
|
## Course checks and cycle limits
|
|
104
113
|
|
|
105
|
-
`projects[].columns[].courseCheck` defaults to 3
|
|
114
|
+
`projects[].columns[].courseCheck` defaults to 3 returns to Dev;
|
|
106
115
|
`courseCheck: 0` disables it. `projects[].columns[].cycleLimit` defaults to 10 and
|
|
107
116
|
takes priority. Executor returns and external comments (a changes-requested
|
|
108
|
-
review is one) count; CI failures, conflicts and drafts alone do not count, nor
|
|
117
|
+
review is one) count, as do thread returns; CI failures, conflicts and drafts alone do not count, nor
|
|
109
118
|
reopened tickets or mode switches.
|
|
110
119
|
|
|
111
120
|
If returns keep hitting the same mechanism, fix the bug class once; cover its variants with one table test. Put remaining edges with no user-visible effect under Risk in the PR description. Still fix P0/P1 and user-visible findings in this PR.
|
|
@@ -119,12 +128,11 @@ answer keeps the question.
|
|
|
119
128
|
## Blocks and escalation
|
|
120
129
|
|
|
121
130
|
A question (`needs_input`): column orchestrator, else curator, else
|
|
122
|
-
operator. Routing avoids asking yourself
|
|
123
|
-
ask the operator.
|
|
131
|
+
operator. Routing avoids asking yourself; curators ask the operator.
|
|
124
132
|
|
|
125
133
|
A `code` block goes to the worker; `dependency` or `external` block stays with
|
|
126
134
|
its author's role. Escalation: column orchestrator to curator to
|
|
127
|
-
operator; other blocks escalate straight to the operator.
|
|
135
|
+
operator; other blocks escalate straight to the operator. Keyed
|
|
128
136
|
`board escalate <block>` if its addressee cannot resolve it.
|
|
129
137
|
|
|
130
138
|
Taskless: all roles, operator only:
|
|
@@ -138,27 +146,29 @@ operator: `board inbox`, keyed `board answer`. Answers reach a current curator s
|
|
|
138
146
|
## Slack now
|
|
139
147
|
|
|
140
148
|
`slack.channels.feed`: curator answers and operator items,
|
|
141
|
-
except
|
|
149
|
+
except delivery/health/ended-worker items and blocks.
|
|
142
150
|
`slack.channels.orchestrators`: block threads addressed to the operator by
|
|
143
151
|
others. Answer in the existing block thread.
|
|
144
152
|
|
|
145
153
|
## Slack addressing
|
|
146
154
|
|
|
147
|
-
With `projects[].spurProjects[].shortName`,
|
|
155
|
+
With a `projects[].spurProjects[].shortName`, `spurProjects[].shortName` or
|
|
156
|
+
board-wide operator, a new operator message in
|
|
148
157
|
`slack.channels.orchestrators` starts a conversation. A leading registered
|
|
149
158
|
`@shortName` selects that Spur project and is stripped. With absent or unknown
|
|
150
|
-
leading name,
|
|
151
|
-
unknown prefix
|
|
159
|
+
leading name, complete text, retaining any
|
|
160
|
+
unknown prefix, goes to `slack.defaultAddressee`, else board-wide operator, else
|
|
161
|
+
first project with an operator; else Board replies once with the valid prefixes.
|
|
152
162
|
Middle mentions or Slack `<@U…>` address nobody; unknown names cause no lookup
|
|
153
163
|
error. The operator checks short-name collisions with workspace names.
|
|
154
164
|
A task key after the prefix attaches it.
|
|
155
165
|
|
|
156
|
-
Read `board inbox`; reply
|
|
157
|
-
thread closes it. Replies use `projects[].spurProjects[].displayName` and `icon`,
|
|
158
|
-
else project
|
|
166
|
+
Read `board inbox`; reply via `board answer`. Each operator thread message rings again; `close` or ✅ in the
|
|
167
|
+
thread closes it. Replies use `projects[].spurProjects[].displayName` and `icon`, top-level ones too,
|
|
168
|
+
else project name and role icon (`board` for operator). No session:
|
|
159
169
|
`board status` lists it as waiting.
|
|
160
170
|
|
|
161
171
|
## Done follows the ticket
|
|
162
172
|
|
|
163
173
|
One linked PR merging does not by itself finish the task. Done: `projects[].tracker.doneStatuses` for Jira; for GitHub, the Issue must be
|
|
164
|
-
closed. If open
|
|
174
|
+
closed. If still open, link another PR.
|