ticket-dispatch: the pump and the sweep read open tasks only (WR-89) #42
No reviewers
Labels
No labels
needs-info
needs-triage
ready-for-agent
ready-for-human
review
merge-ready
review
needs-fix
review
needs-human
review
needs-operator
review
needs-review
review
waiting
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/workshop!42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/WR-89-the-dispatch-sweep-fetches-only-open-tas"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements WR-89
Summary
The pump's and the sweep's board read asked Vikunja for every task in every bucket, done ones included, and the nodes then skipped them:
Vikunja filters the tasks inside each bucket and still returns every bucket (
GetTasksInBucketsForViewreads the buckets first, then queries each one's tasks as(filter) && bucket_id = <id>), so the Config's four bucket names keep resolving to their ids and the nodes read the same shapes.The fields could not be cut with the done tasks. Vikunja v2.7.0 has no sparse-field parameter —
fields=andselect=are ignored, anddescriptionandrelated_tasksare filled for every task unconditionally — and no other read carries bucket membership. That is a finding on the ticket, not a missing step.Evidence
Before, at
7800152— the base this change was written against — the full suites give pump 75/77 and notices 27/28, red on exactly the URL checks (two in the pump suite, one in the sweep suite).After, at
4f0f52f: 77/77 and 28/28, red→green on those three, every other suite at its own tally.At this head (
a378bf1, merged with main's WR-91 and WR-90): gate 79/79, pump 79/79, notices 30/30, retry 18/18, provision-buckets 50, parse 12/12, decide 95/95, protect-main 131, onboard-repo 41, scan 24, render 141,make docs-check3 assertions. Pump and notices sit two checks above the4f0f52ffigures because WR-91 added two to each; the filter assertions are unchanged, andretryarrives with WR-90.One run's bytes at the proxy (
proxy-host-40_access.log, the six board reads of the 16:30 pump tick): 932,884 + 993,075 + 1,629,021 + 617,419 + 625,581 + 1,373,556 = 6,171,536. The same six, from the captured n8n output, come to 6,188,926. Filtered on that capture: 864,444 (14%).The decisions, both ways: both suites now load
test-payloads/board-read-2026-11-06.json— the live pump tick'sGet queuesoutput (execution 70057) reduced to the fields the nodes read — once as captured and once with its done tasks dropped, and require the same dispatches, notices and ledger. On that board the pump dispatchesWR-89, which is the ticket this work came from.Merge Danger
Door: two-way
The export is the only artefact; the live n8n copy is updated after the merge, and rolling back is a re-import of the previous export.
Blast Radius: one workflow
A done task that is still parked in Doing no longer counts toward an implementer's occupancy or a stale line. Today's six boards have none — the capture checks every bucket — but it is the one decision the filter can move, and it moves toward the truth. It is pinned in both directions: pump
§16and notices§10run the same board whole and open-only and assert the gap is exactly that decision, with an open ticket beside it that must keep speaking.Follow-up, not in this change: the webhook path's
Get view tasksreads one board per assignment and still fetches its done tasks.Review started (round 1/5) on
12d689e5a7— reading the diff now.repo=olympus/workshop · PR #42 · head
12d689e5a7· round 1/5 (the thread has no earlier review) · verdict: merge, no blockerRecommendation: merge
Spec source: WR-89 (Vikunja project 5, index 89), its acceptance criteria and the triage Agent Brief in its comments, read live; the PR body and the ticket's handoff comment agree with each other. Standards source:
AGENTS.md(§Decisions: org ADRs underdocs/adr/bind),docs/adr/0001–0012,README.md(§test commands). None of the ADRs speaks to a workflow-export read URL; ADR 0009 governs infra repos' deploys, and the publish-to-n8n step is outside this diff. Beyond those: the smell baseline of thecode-reviewskill, judgement calls only.Reviewed delta:
git diff 7800152...12d689e(basemain@7800152, one commit). Four files: the export (3 nodes), two test files, one new capture.Pump readsandSweep urlschange their URL;Build pumpdiffers by comment lines only (identical once full-line//comments are stripped); every other node and all non-node keys of the export are identical (compared as JSON).Spec
One ADVISORY, no BLOCKER.
ticket-dispatch/tests/pump.test.js:497-527andticket-dispatch/tests/notices.test.js:170-211. The PR body (Merge Danger → Blast Radius) says a done task still parked in Doing/To-Do "no longer counts toward an implementer's occupancy or a stale line", and calls it "the one decision the filter can move". The capture has none (checked: 0 done tasks outside a Done bucket, 0 open tasks in a Done bucket), so both new sections compare two runs that cannot differ. They are not vacuous (I drove section 14: the pump dispatchesWR-89and posts one queue line, and section 8 finds the one Doing ticket), but they pin "no change where the filter has nothing to move", and the changed behaviour itself is argued in prose only. The criterion "identical decisions" is met on this board. Clearing it: one case in each suite that parks a done task in Doing (and one in To-Do with a dispatched entry) and asserts the whole-board read and the open-only read differ in exactly the documented way.Criteria against the ticket:
Pump readsandSweep urlsbuild…/buckets/tasks?filter=done%20%3D%20false&per_page=200;hooks_urlunchanged. New checks are red on the base export, green at head (below).activeVersion.sameAsDraft; next sweep succeedsStandards
standards: no rule of the repo is broken. One baseline smell, a judgement call.
ticket-dispatch/tests/pump.test.js:505-509andticket-dispatch/tests/notices.test.js:177-188. The capture loader and theopenOnlybucket filter are written twice, line for line.ticket-dispatch/tests/harness.jsis already the file both suites share. Nothing repo-written requires it; it is advice to move them there.What I verified, by my own hand
mise exec --on gate, pump, notices, provision-buckets, parse, decide,make docs-checkpr-checkscontextssuccess.Sweep urlsreverted to the unfiltered URLpump.test.jsprinting section 14's outputWR-89), 1 notice, 1 ledger entry/api/v1/projects/<p>/views/<v>/tasks?filter=done%20%3D%20false&per_page=200(same bucket model the PR cites), projects 5/20, 3/12, 4/16Doing:0); done tasks 50→0, 37→0, 47→0; bytes 2,038,512→235,112 (12%), 1,201,499→73,058 (6%), 1,257,941→103,009 (8%)What I could not verify
/api/v2/projects/<p>/views/<v>/buckets/tasks?filter=…answers 401 to the token this machine holds, as it did for the author, before and after the filter. The v1 read above corroborates the bucket-retention claim and the size drop, but it is not the route the nodes call. If v2 rejectedfilter(a 4xx),Get queueswould fail the pump. The ticket's own fourth criterion (next real run after publishing succeeds) is the check that closes this; the door is two-way (re-import of the previous export).fields=/select=are ignored on v2.7.0;expand=noneis a 422" — same route, same reason. I take it as the author's, uncharged.Named, not charged
Get view tasksstill reads whole boards: the author names it as a follow-up outside this change.docs/postmortems/2026-11-05-n8n-disk-full.mdstill describes the whole-board read; it is a record of a past incident and is rightly untouched.pr-checks(pre-existing; not this diff's).Summary
Two advisories: under the three-advisory line, so the recommendation is merge and the advisories travel as advice. Verdict: no blocker.
Fix advisories
Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.
New commits pushed, approval review dismissed automatically according to repository settings
Round 1/5 — both advisories taken; no blocker was filed. Head is now
4f0f52f(was12d689e). State labelreview/needs-fix→review/needs-review. Nothing disagreed with: I could not reproduce a reason to leave either finding standing.Minos's review is a merge recommendation with two advisories (Spec 1, Standards 1). Mapping:
4f0f52fopenOnlywritten twice, line for line1aa366cticket-dispatch/tests/harness.js, the file both suites already require for the gateWhat the Spec case pins
pump.test.js§15, both halves of the Blast Radius sentence, over the pump's code node:counts.running1) and frees it on the open-only read (WR-90dispatched,counts.running0);WR-92 ✗ dispatch produced no start — bot-efesto, 15 min in To-Do. Requeued (attempt 2/3)) and, on the open-only read, the entry is dropped silently (tasks['92']gone, no notice).notices.test.js§9, the same decision at the sweep: with a done ticket and a live one both in Doing, 62 minutes past dispatch, the whole-board read speaks both stale lines and writescounts = {waiting: 0, running: 2, stale: 2}; the open-only read speaks only the live one's and writes{waiting: 0, running: 1, stale: 1}. The live line surviving is the guard half — the filter must not silence the line it exists to keep.The red proof is a plausible-wrong variant, not the base export
The new case is a guard on "the read is where this decision lives", so the base export does not red it. I measured that instead of asserting it — the branch's full suites against
origin/main's export:§15 and §9 stay green there — guards, not proof of the URL. What reds them is the mistake they exist to catch, compensating client-side for what the read already does. Each variant is the head export with one line changed, driven through the suite's own
argv[2]:Build pump: occupancy loop also counts done tickets (if (t.done !== true && …doingId))FAIL a finished ticket in Doing spends the session on the whole-board read -> [1,1] (want [0,1])— 76/77Build pump: retire treats a done To-Do ticket as gone (here.t.done === truein the!heretest)FAIL a finished ticket in To-Do with a dispatch on the ledger is retired and requeued -> []— 76/77Sweep plan: Doing index skips done ticketsFAIL the whole-board read makes the finished ticket stale… -> [WR-84 only]andFAIL …the heartbeat counts both as running— 26/28The extraction is load-bearing in both suites
One mutation of the shared helper —
openOnlyhanding the tasks back unchanged — reds both suites, so neither bypasses the module: pump 74/77 (FAIL the filtered read carries none -> 18) and notices 26/28 (FAIL the open-only read keeps the live line and drops the finished one). Tallies do not move on the extraction itself; it adds no check.Verification at
4f0f52fAll through
mise exec --, each run unpiped andrc=0. The branch's delta is +4 checks per suite, quoted above beside the red proof for each.CI at the new head, run #57:
pr-checks / protect-main (pull_request)successpr-checks / loop-decide (pull_request)successThe three
ticket-dispatchsuites are not wired intopr-checks(pre-existing, unchanged by this round), so the tallies above are the record for them.Left alone, and edits outside the commits
fields=/select=/expand=noneclaim on v2 (unverifiable from here, and it is the author's, uncharged) and the webhook path'sGet view tasks(a stated follow-up). No blocker was filed on either.75/77/ notices27/28before and77/77/28/28after, since this round moved both. In the same bullet, the slip you named — "red on exactly the two URL checks" — now reads three, two in the pump suite and one in the sweep suite. Blast Radius gained one sentence saying the decision is pinned in both suites. Read back byte-for-byte after thePATCH.Loop stopped — the fix dispatch produced no outcome for 20 minutes. Nothing else happens on this PR until its state label changes.
Review started (round 1/5) on
4f0f52faad— reading the diff now.repo=olympus/workshop · PR #42 · head
4f0f52faad· round 2/5 · verdict: merge, no blocker, no advisoryThe dispatch said
round 1/5. The thread already holds my review 434 (head12d689e, APPROVED, since dismissed as stale by the push), so this is round 2 and the header counts it so. The1/5is the dispatch counter, which restarted when thereview/*label was moved by hand.Recommendation: merge
Spec source: WR-89 (Vikunja project 5, index 89), read live: its acceptance criteria and the triage Agent Brief in its comments. The Operator's PR comment "Fix advisories" governs this round's scope. Standards source:
AGENTS.md(§Decisions: org ADRs underdocs/adr/bind),README.md(§test commands). None speaks to a test helper's location. Beyond those: the smell baseline of thecode-reviewskill, judgement calls only.Fixed point:
12d689e(the head my review 434 examined).git merge-base --is-ancestor 12d689e 4f0f52fis true, so the fixer stacked and the round's delta isgit diff 12d689e 4f0f52f: three files,ticket-dispatch/tests/harness.js,notices.test.js,pump.test.js, +130 −25. No base merge (origin/mainis still7800152, an ancestor of head). The export (ticket-dispatch/workflows/vikunja-ticket-dispatch.json) and the capture (test-payloads/board-read-2026-11-06.json) are byte-identical to what I reviewed: emptygit diff --statover both paths. Nothing the delta touches can change what the workflow does.Round 1 findings, re-driven
4f0f52fpump.test.js:527-573(§15),notices.test.js:210-245(§9). Both halves of the Blast Radius sentence are now cases. Red/green below.openOnlywritten twice1aa366charness.js:47boardRead(),harness.js:56openOnly(), exported atharness.js:62. Both suites import them (pump.test.js:16,notices.test.js:8). Census of the tests dir: one definition ofopenOnly, one reader of the capture.Spec
No findings.
The new cases are not vacuous. I drove them as a red/green pair. Each variant is the head export with one line changed, run through the suite's own copy of the tree:
Build pump: occupancy loop skips done tickets client-sidea finished ticket in Doing spends the session on the whole-board read -> [1,1] (want [0,1])Build pump: retire loop treats a done To-Do ticket as gonea finished ticket in To-Do with a dispatch on the ledger is retired and requeued -> []Sweep plan: Doing index skips done ticketsthe whole-board read makes the finished ticket stale…and…the heartbeat counts both as runningharness.openOnlyhands the tasks back unchangedthe filtered read carries none -> 18,the open-only read keeps the live line and drops the finished one, and three moreharness.openOnlydrops emptied buckets (the server keeps them)the dispatches do not move(§14 catches a stand-in that diverges from the server's shape)Green at head: pump 77/77, notices 28/28. Against
main's export (7800152) the same suites give 75/77 and 27/28, red on exactly the three URL checks, and §15 and §9 stay green there. They guard "the read is where this decision lives"; the URL checks prove the URL. The author says the same.Tallies recounted: pump 73 → 77 and notices 24 → 28, +4 each, matching §15's four checks and §9's four. The PR body's "pump 75/77 and notices 27/28 before, 77/77 and 28/28 after" matches my runs, and "three" URL checks is now correct.
Criteria against WR-89, unchanged since round 1:
Pump reads,Sweep urls;hooks_urlunchanged)activeVersion.sameAsDraft; next sweep succeedsStandards
No findings. standards: no repo rule is broken. Baseline smells in the delta: Duplicated Code is gone;
harness.jsnow holds the stand-ins both suites share and its header says so (harness.js:1-5: no rule lives there, the stand-in is shared).boardRead()returns a fresh object per call, asharness.js:43-46claims: I mutated one read and a second read was untouched.What I verified, by my own hand
mise exec --, each unpiped, rc capturedmake docs-check3 assertions; all rc=0get_commit_statusesat4f0f52fpr-checks / protect-mainandpr-checks / loop-decide: success (run 57)ls-remote refs/pull/42/headand the fetched ref4f0f52f…/tmpgit status --porcelainWhat I could not verify
/api/v2/projects/<p>/views/<v>/buckets/tasks?filter=…still answers 401 to the token this machine holds (as it did for the author), so whether v2.7.0 honoursfilteron that route is the ticket's fourth criterion, closed by the first sweep after publishing. Unchanged from round 1 and not touched by this delta; the door is two-way.Named, not charged
Get view tasksstill reads whole boards: the author names it as a follow-up outside this change.ticket-dispatchsuites are not wired intopr-checks(pre-existing, not this diff's).gate.test.js:91still says the harness is "shared with pump.test.js"; it is also shared with notices now. True as written, so not a defect.Summary
Both round 1 advisories are resolved at the commits cited above. Zero advisories, so the volume rule does not trip. Verdict: no blocker.
Fix merge conflicts
Acknowledged (round 0/5) — fixing now; what changed and how I verified it follows.
New commits pushed, approval review dismissed automatically according to repository settings
Merge conflicts resolved — head is now
a378bf1. No textual finding was open: Minos' round-2 review (436, on4f0f52f) approved with zero blockers and zero advisories. The blocker on this round is the one the Operator filed —mergeable: false— becausemainmoved twice under the branch after that review.What changed
dd96b6eorigin/main99d8fb3(WR-91: Vikunja over its LAN origin) into the branch. Three conflicted files resolved by hand.78d7decnotices.test.js: the two sections that driveSweep urlsshare onerunUrls(config)stand-in instead of each building its own.a378bf1origin/main61cc3a2(WR-90: retry under the tick). Clean — no resolution needed.The conflict, node by node
dd96b6ePump reads.../buckets/tasks?' + OPENwithfilter=done = falseapiOrigin + '/api/v2/projects/…?per_page=200'apiOrigin + '…/buckets/tasks?' + OPENSweep urlsqueues_urlgains the filterapiOriginhooks_urlstays unfilteredBuild pumpdoneguardCFG.linkOriginon the ledger entrypump.test.jsnotices.test.jsTwo assertions had to move with the merge rather than be kept: WR-91's two "addresses come from Config" checks expected
?per_page=200, and at this head the node also appends the filter — so both now expect?filter=done%20%3D%20false&per_page=200. That is the two changes meeting, not either one being reverted. NoopenOnly,boardReador decision-neutrality case was dropped.Verification, run at
a378bf1with the tree cleanCI at
a378bf1(run 61):pr-checks / loop-decide (pull_request)pr-checks / protect-main (pull_request)The job log prints
95/95 checks passedand12/12 checks passedinloop-decide, andall 131 checks passinprotect-main. The PR readsmergeable: true.Not a commit, but part of this round
4f0f52ftallies as the head's; it now carries three figures, each against its own sha (7800152before,4f0f52fafter,a378bf1at the head) and says WR-91's two checks per suite and WR-90'sretrysuite are why the head totals are higher. The Blast Radius paragraph's section numbers moved with the renumbering (pump §16,notices §10). Read back byte for byte.388) — same tally block, plus the sentence that says why it moved.Disagreed / left alone
Nothing. No finding was declined, and no behaviour outside the merge was touched: the diff against each parent is only the other parent's change plus the two URL assertions that had to state both.
Review started (round 1/5) on
a378bf13ea— reading the diff now.repo=olympus/workshop · PR #42 · head
a378bf13ea· round 3/5 · verdict: merge, no blocker, no advisoryThe dispatch said
round 1/5. The thread already holds two of my reviews (434 on12d689e, 436 on4f0f52f, both APPROVED and since dismissed as stale by the pushes), so this is round 3 and the header counts it so. The1/5is the dispatch counter, which restarted when thereview/*label was moved by hand.Recommendation: merge
Spec source: WR-89 (Vikunja project 5, index 89), read live: its four acceptance criteria and the triage Agent Brief in its comments. The PR body cites it and agrees with it. Standards source:
AGENTS.md(§Decisions: org ADRs underdocs/adr/bind; none speaks to a workflow-export read URL or a test helper),README.md. Beyond those: the smell baseline of thecode-reviewskill, judgement calls only.Fixed point:
4f0f52f, the head my review 436 approved.git merge-base --is-ancestor 4f0f52f a378bf1is true, so the fixer stacked. The round's delta is two merges ofmainand one commit, which is exactly the Operator's "Fix merge conflicts":dd96b6emain@99d8fb3(WR-91, LAN origin); three files resolved by hand78d7decnotices.test.js: onerunUrls(config)stand-in for the two sections that driveSweep urlsa378bf1main@61cc3a2(WR-90, retry under the tick); cleanretry.test.js,fake-vikunja.py,README.md, the retry keys on the two HTTP nodes) are WR-90's to answer forRound 2 left no finding, so there is nothing to re-drive; the work is to prove the merge kept both sides.
Spec
No findings.
The export against
main@61cc3a2, compared as JSON: exactly three nodes differ,Pump reads,Build pump,Sweep urls. The node count is 43/43 and every non-node key hashes the same.Build pumpis identical once full-line//comments are stripped.hooks_urlis still the unfiltered/api/v1/.../webhooks. WR-91'sapiOriginand WR-90'sretryOnFail/maxTries/timeoutkeys sit on the nodes untouched by this PR, so neither side of the merge was lost.The resolution is proved per node as a red/green pair, run after the merge (head export with one read reverted, the suites driven through
argv[2]):Pump readsURL back to?per_page=200the pump reads each board on Config's API origin,the read filters out done tasks,...and no read asks for a whole board; notices stays 30/30Sweep urlsqueues_urlback to?per_page=200the sweep's reads are addressed from Config's API origin,the sweep read filters out done tasks; pump stays 79/79main's exportEach node's check reds on its own node and not on the other. The two WR-91 "addresses come from Config" assertions that had to move (
pump.test.js:487,notices.test.js:182) now expect the origin and the filter, and they still red when either is lost. The origin half of them is unchanged, so WR-91's pin survives.Nothing of
main's tests was dropped: of the 21 lines the PR removes fromharness.js,pump.test.jsandnotices.test.jsagainstmain, all are WR-89's own edits (the old URL strings, the per-section$stand-ins, thedriveGate-only export).§14–§16in the pump suite and§9–§10in the notices suite are the renumbered WR-89 sections; the cross-reference inpump.test.js§16 ("section 15") follows the renumbering.Criteria against WR-89, unchanged since round 2:
Pump readsandSweep urlscarryfilter=done%20%3D%20false, composed from the Config originactiveVersion.sameAsDraft; next sweep succeedsStandards
No findings. standards: no repo rule is broken. Baseline smells in the delta: none.
78d7decremoves a duplication rather than adding one:runUrlsreplaces two inline copies of the same stand-in, as the smell baseline's Duplicated Code would ask.What I verified, by my own hand
git ls-remote origin refs/pull/42/head, at fetch and again before postinga378bf13…both timesmise exec --, each unpiped with rc captured, worktree ata378bf1make docs-check3 assertions; all rc=04f0f52f's 77 and 28 (WR-91 added two to each), andretryis WR-90'scommits/a378bf1…/statuspr-checks / loop-decideandpr-checks / protect-main: successmainin three nodes onlyjq -Sper node, by namePump reads,Build pump,Sweep urlsgit status --porcelainfetch-vikunja-task.sh 5 89What I could not verify
filteron/api/v2/projects/<p>/views/<v>/buckets/tasksis the ticket's fourth criterion, closed by the first sweep after publishing. This host's token answered 401 on that route in rounds 1 and 2, and nothing in this delta changes the URL's shape; the door is two-way (re-import of the previous export).Named, not charged
75/77and27/28are anchored to7800152, where they hold. At this head the same reversion againstmain's export reds three checks in the pump suite and two in the notices suite, because WR-91's address check now carries the filter too. A different measurement, not a misstatement.Get view tasksstill reads whole boards: a stated follow-up outside this change.ticket-dispatchsuites are not wired intopr-checks(pre-existing, not this diff's), so the tallies above are the record for them.Summary
Zero advisories, so the volume rule does not trip. The conflict resolution kept both WR-91's and WR-90's work and WR-89's filter, and each node's filter is pinned by a check that reds on its own node. Verdict: no blocker.