spur-board 0.121.1 → 0.122.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
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",
|
package/package.json
CHANGED
|
@@ -74,8 +74,16 @@ worker fixes or answers, then resolves each; reviewers never do. A
|
|
|
74
74
|
Dev submit on the same head moves right, keeping marks and approval. An
|
|
75
75
|
approval's inline notes are threads; it still passes External Review.
|
|
76
76
|
|
|
77
|
-
Review/Product Review mark lasts across visits on the current head.
|
|
78
|
-
|
|
77
|
+
Review/Product Review mark lasts across visits on the current head. QA submissions
|
|
78
|
+
also survive returns and corrections to Dev on the same head. Other visit
|
|
79
|
+
submissions belong to one column visit; moving left clears them and those to the
|
|
80
|
+
right. A different observed PR head permanently invalidates its internal Review,
|
|
81
|
+
Product Review and QA evidence, even if the head later returns to that commit.
|
|
82
|
+
Explicit operator correction into QA clears confirmed and pending QA evidence,
|
|
83
|
+
keeping review marks. With passing upstream gates and a QA orchestrator or operator,
|
|
84
|
+
this opens a fresh QA turn. Executor `none` keeps worker-column reuse: a valid Dev
|
|
85
|
+
submit can satisfy QA after correction. Retained QA cannot supply Dev's submit
|
|
86
|
+
requirement: after returning to Dev, submit the current Dev visit before advancing.
|
|
79
87
|
|
|
80
88
|
PR closed without merge with no open PR, or closed
|
|
81
89
|
ticket with live work and no merged PR. `board status` lists them as operator block threads.
|
|
@@ -11,6 +11,16 @@ shadow mode, use keyed `board submit <task> <sha>`.
|
|
|
11
11
|
Unseen heads answer `pending`: that submit is final; do not resubmit or raise a
|
|
12
12
|
block. Confirm timeout: `projects[].dispatcher.submitConfirmMs`.
|
|
13
13
|
|
|
14
|
+
QA on the same head holds a taken turn through upstream failures until submit or
|
|
15
|
+
return. Leaving QA closes its turn; a late submit with a new key gets `turn_closed`.
|
|
16
|
+
An unseen-head QA submit closes the turn while pending and gives no gate credit
|
|
17
|
+
until confirmed. Confirmation survives upstream revalidation: completing Dev and
|
|
18
|
+
reviews on that head needs no second QA submit. Confirmed QA survives same-head
|
|
19
|
+
returns and corrections to Dev. Correction into QA clears even pending QA evidence:
|
|
20
|
+
with upstream gates passing, a QA orchestrator or operator gets a fresh turn;
|
|
21
|
+
executor `none` may instead reuse a valid worker submit without a new QA turn.
|
|
22
|
+
Retained QA cannot satisfy Dev: a return to Dev needs the current Dev visit's submit.
|
|
23
|
+
|
|
14
24
|
Submissions declare provenance with `--basis tested|carried|skipped`; omitted means
|
|
15
25
|
`tested`. This records the submitter's declaration, not a claim that checks passed.
|
|
16
26
|
`carried` requires `--from <full lowercase SHA>` and `--reason <text>`: the source
|