spur-board 0.121.1 → 0.123.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/daemon.mjs +13 -9
- package/dist/web/assets/index-D-DxUQUR.js +64 -0
- package/dist/web/assets/index-D8NPbngE.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/skills/spur-board/references/how-board-works-columns.md +10 -2
- package/skills/spur-board/references/how-board-works-turns.md +10 -0
- package/dist/web/assets/index-BECqdFJ8.css +0 -1
- package/dist/web/assets/index-CnkQl4yN.js +0 -64
package/dist/daemon.mjs
CHANGED
|
@@ -15124,7 +15124,7 @@ function executorDone(column, facts, columns) {
|
|
|
15124
15124
|
const onHead = facts.marks.filter((mark) => mark.headSha === head);
|
|
15125
15125
|
if (onHead.some((mark) => mark.column === column)) return true;
|
|
15126
15126
|
if (orchestratorOf$1(column, columns) !== "none") return false;
|
|
15127
|
-
return onHead.some((mark) => mark.kind === "submit" && orchestratorOf$1(mark.column, columns) === "none");
|
|
15127
|
+
return onHead.some((mark) => mark.kind === "submit" && !(column === "dev" && mark.column === "qa") && orchestratorOf$1(mark.column, columns) === "none");
|
|
15128
15128
|
}
|
|
15129
15129
|
/**
|
|
15130
15130
|
* The leftmost enabled column that requires resolved threads: `requireResolvedThreads`, by default
|
|
@@ -15374,9 +15374,9 @@ function nextColumn(project, column) {
|
|
|
15374
15374
|
const group = groupOf(column);
|
|
15375
15375
|
return project.columns.find((c) => c.enabled && indexOf$2(c.id) > indexOf$2(column) && (group === null || groupOf(c.id) !== group))?.id;
|
|
15376
15376
|
}
|
|
15377
|
-
/** A left move
|
|
15377
|
+
/** A left move voids visit submits of `to` and right of it; review marks and QA stay. */
|
|
15378
15378
|
function dropSubmits(marks, to) {
|
|
15379
|
-
return marks.filter((mark) => mark.kind === "mark" || indexOf$2(mark.column) < indexOf$2(to));
|
|
15379
|
+
return marks.filter((mark) => mark.kind === "mark" || mark.column === "qa" || indexOf$2(mark.column) < indexOf$2(to));
|
|
15380
15380
|
}
|
|
15381
15381
|
/** Whether work on the task started: it has an open PR, or a live worker and no reopen. */
|
|
15382
15382
|
function workStarted(input) {
|
|
@@ -16623,20 +16623,22 @@ const modeSchema = z.enum(DISPATCHER_MODES);
|
|
|
16623
16623
|
/** Columns whose submissions are marks: they last for their head across visits. */
|
|
16624
16624
|
const MARK_COLUMNS = COLUMNS.filter((c) => c.marks).map((c) => c.id);
|
|
16625
16625
|
const isMarkColumn = (column) => MARK_COLUMNS.includes(column);
|
|
16626
|
+
/** Evidence that lasts for its head across visits. QA remains a submit. */
|
|
16627
|
+
const HEAD_COLUMNS = [...MARK_COLUMNS, "qa"];
|
|
16626
16628
|
const indexOf = (column) => COLUMN_IDS.indexOf(column);
|
|
16627
16629
|
/**
|
|
16628
|
-
* Sets `voided_at` on the unvoided submits of `columns`. Review and
|
|
16629
|
-
* not voided by
|
|
16630
|
+
* Sets `voided_at` on the unvoided submits of `columns`. Review marks and QA submits are
|
|
16631
|
+
* not voided by an ordinary move; a new PR head voids them (`voidMarksOffHead`). A pending submit is never
|
|
16630
16632
|
* voided here: it settles only when its hand-back turn opens, as confirmed, or as superseded by
|
|
16631
16633
|
* a merge (`readPendingSubmit`), and counts as no mark until then.
|
|
16632
16634
|
*/
|
|
16633
16635
|
async function voidColumns(trx, taskId, columns, at) {
|
|
16634
|
-
const voided = columns.filter((column) => !
|
|
16636
|
+
const voided = columns.filter((column) => !HEAD_COLUMNS.includes(column));
|
|
16635
16637
|
if (voided.length === 0) return;
|
|
16636
16638
|
await trx.updateTable("submission").set({ voided_at: at.toISOString() }).where("task_id", "=", taskId).where("voided_at", "is", null).where("pending_until", "is", null).where("column", "in", voided).execute();
|
|
16637
16639
|
}
|
|
16638
16640
|
/**
|
|
16639
|
-
* Sets `voided_at` on the unvoided Review
|
|
16641
|
+
* Sets `voided_at` on the unvoided Review/Product Review marks and QA submits of PR `repo#number` that are
|
|
16640
16642
|
* not on `head`, for the PR's new head: a mark lasts only while its head stays the PR's head, so
|
|
16641
16643
|
* a head that comes back to an earlier commit needs fresh marks. Marks made before submissions
|
|
16642
16644
|
* recorded their PR count for the tasks linked to the PR. A pending mark is left to the
|
|
@@ -16644,7 +16646,7 @@ async function voidColumns(trx, taskId, columns, at) {
|
|
|
16644
16646
|
*/
|
|
16645
16647
|
async function voidMarksOffHead(trx, input) {
|
|
16646
16648
|
const repo = input.repo.toLowerCase();
|
|
16647
|
-
await trx.updateTable("submission").set({ voided_at: input.at }).where("voided_at", "is", null).where("column", "in",
|
|
16649
|
+
await trx.updateTable("submission").set({ voided_at: input.at }).where("voided_at", "is", null).where("column", "in", HEAD_COLUMNS).where("pending_until", "is", null).where(sql`lower(commit_sha) != ${input.head.toLowerCase()}`).where((eb) => eb.or([eb.and([eb(sql`lower(pr_repo)`, "=", repo), eb("pr_number", "=", input.number)]), eb.and([eb("pr_repo", "is", null), eb("task_id", "in", eb.selectFrom("link").select("task_id").where("entity", "=", "pr").where(sql`lower(repo) = ${repo}`).where("number", "=", input.number))])])).execute();
|
|
16648
16650
|
}
|
|
16649
16651
|
/** Voids the submits of `to` and every column right of it, as a left move does. */
|
|
16650
16652
|
async function voidSubmits(trx, taskId, to, at) {
|
|
@@ -16776,7 +16778,8 @@ async function syncModes(trx, config, at) {
|
|
|
16776
16778
|
* The operator's correction of a task's column to `to`, as a new visit of `to`. It first applies
|
|
16777
16779
|
* a pending dispatcher mode switch, so the switch cannot overwrite the correction. In `on` mode it
|
|
16778
16780
|
* sets the column and bumps `column_epoch`, voids the submits of `to` and right of it, closes the
|
|
16779
|
-
* task's turns as `corrected` and journals `task_corrected`;
|
|
16781
|
+
* task's turns as `corrected` and journals `task_corrected`; correction into QA also voids
|
|
16782
|
+
* confirmed and pending QA evidence. In shadow mode it sets only the shadow
|
|
16780
16783
|
* column. The feedback a closed untaken turn handed over counts as unhandled again
|
|
16781
16784
|
* (`turnFeedbackCursors`), so the next Dev turn hands it over, whenever it opens. It is
|
|
16782
16785
|
* not a dispatcher move: no `task_moved`, no `left_moves` and no cycle count. The caller settles
|
|
@@ -16798,6 +16801,7 @@ async function correctColumn(trx, input) {
|
|
|
16798
16801
|
last_change_at: taskChangeAt(at.toISOString())
|
|
16799
16802
|
}).where("id", "=", task.id).execute();
|
|
16800
16803
|
await voidSubmits(trx, task.id, to, at);
|
|
16804
|
+
if (to === "qa") await trx.updateTable("submission").set({ voided_at: at.toISOString() }).where("task_id", "=", task.id).where("column", "=", "qa").where("voided_at", "is", null).execute();
|
|
16801
16805
|
if (!shadow) await closeTurns(trx, {
|
|
16802
16806
|
taskId: task.id,
|
|
16803
16807
|
reason: "corrected",
|