ticket-dispatch: call Vikunja on its LAN origin (WR-91) #43
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
olympus/workshop!43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "hermes/WR-91-n8n-calls-vikunja-over-the-lan-not-throu"
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-91
Summary
n8n now reaches Vikunja at its LAN address, so the dispatch sweep no longer crosses nginx-proxy-manager on cherry. Both origins are Config fields, written once each; nothing else about a request changes — same paths, same credential.
Ten nodes:
Config,Parse event,Gate,Get teams,Get pump teams,Get view tasks,Pump reads,Build pump,Sweep urls,Sweep plan.Two decisions worth a reviewer's eye:
Parse eventno longer composes the ticket URL. It runs beforeConfigin the graph, so it cannot read the field, and leaving a literal there would hold the public origin in two places.Gatecomposes the same URL fromConfiginstead — every notice is byte-identical.vikunja_api_originthrows rather than falling back. A default origin would point the workflow somewhere nobody configured, which is the failure class this ticket removes. The error workflow already reports a failed execution through the Hermes notify route.Evidence
origin/main7800152d551c18ticket-dispatch/tests/gate.test.jsticket-dispatch/tests/pump.test.jsticket-dispatch/tests/notices.test.jsnas-disk-report/tests/scan.test.pynas-disk-report/tests/render.test.pypr-review-loop/tests/decide.test.jspr-review-loop/tests/parse.test.jsscripts/tests/protect-main.test.shscripts/tests/onboard-repo.test.shticket-dispatch/tests/provision-buckets.test.shmake docs-checkThe left column is the same three suites handed the base export (
git show 7800152:ticket-dispatch/workflows/vikunja-ticket-dispatch.json), so each new check reds against the old nodes:The fixtures use origins that appear nowhere in the code (
192.0.2.10,tickets.example), so a node that kept its literal cannot pass on a copied value.Where the LAN address came from — read live, not assumed:
Which workflows call Vikunja — the repo has three exports; only one does:
ticket-dispatch/workflows/vikunja-ticket-dispatch.jsonticket-dispatch/workflows/vikunja-ticket-dispatch-errors.json10.12.0.135:8644)pr-review-loop/workflows/forgejo-pr-review-loop.jsonBefore publishing, as measured today: Vikunja's journal for the last 40 min holds 158 requests with
user_agent=n8n, every oneremote_ip=79.116.198.23;proxy-host-40_access.logcarries 3746n8nrequests dated today, the last at 16:37:01.Merge Danger
Door: two-way. Revert the commit and republish; no data moves, and the ledger entries already written carry the same link string this branch produces.
Blast Radius: the dispatch workflow only. Three things to know before merging:
0e7fe518(published 2026-10-31); the branch edits an export, and the publish is a separate step.main. The publishedGatepredatesmain'staskOnlyref rule — the only node on whichorigin/mainand the published version differ. That drift is not this PR's; it is what the next publish will also land.remote_ip=10.12.0.128foruser_agent=n8n, and the proxy'sn8ncount should stop moving.Review started (round 1/5) on
d551c182d5— reading the diff now.Review — olympus/workshop #43 · head
d551c182d5cbd8351db1f6c0788392b92897d3b9· round 1/5 (the review list was empty, so this is round 1; the dispatch also said 1/5) · verdict: merge (0 blockers, 1 advisory)Recommendation: merge
Spec source: WR-91 (Vikunja task 296, project 5), read live: its acceptance criteria and the Agent Brief comment. The PR body cites it (
Implements [WR-91]). Standards:AGENTS.md,docs/index.md,docs/agents/*,docs/adr/0001–0012read at the head worktree. None of them speaks to workflow-export or n8n Config conventions, so the Standards axis rests on the smell baseline and the suites' own conventions. That is general good practice, not a repo rule. Fixed point:origin/main=7800152(merge-base), one commit,git diff 7800152 d551c18= 4 files, +117/−17.refs/pull/43/headresolves to the dispatched SHA.Spec
Every criterion that can be met before publishing is met. Reproduced by me, not read from the PR:
vikunja.thepit.space; every/tasks/<id>link still doesjqcensus of the head export: the literal survives only inConfig,Gate,Build pumpandSweep plan(all link side). The threehttpRequestURLs are={{ $('Config').first().json.vikunja_api_origin }}/api/v….Get queues,Get sweep queuesandGet sweep hooksread$json.url,$json.queues_urland$('Sweep urls').item.json.hooks_url, which come from the two edited code nodesvikunja_api_origin = http://10.12.0.142:3456, andGET /api/v1/infothere answered 200,v2.7.0,frontend_url= the public address./api/v1/teams,/api/v2/…/buckets/tasksand/api/v1/projects/5/webhooksanswer the same 401 body on the LAN and public origins, so the routes exist on bothgate,pumpandnoticessuites at head: 79/79, 67/67, 23/23 (rc 0).make docs-checkholds192.0.2.10andtickets.example, so a copied literal cannot passticket-dispatch/workflows/hosts agrees: only the dispatch export holds a Vikunja URLConfigis upstream of every node that now reads itRelevant?→Config→Mode→Pump?→{Get pump teams, Sweep?→{Sweep urls, Get teams}},Pump tick→Config,Sweep tick→Config, andMapped?sits belowConfig. No path reaches an edited node beforeConfig, so$('Config')cannot be unexecutedremote_ip=10.12.0.128; proxy log shows no n8n agentFindings
ticket-dispatch/workflows/vikunja-ticket-dispatch.json, in nodeGate(jsCodeFALLBACK.vikunja_link_origin, line 29),Build pump(FALLBACK.vikunja_link_origin, line 15) andSweep plan(pick(cfg.vikunja_link_origin, 'https://vikunja.thepit.space'), line 14), still spellshttps://vikunja.thepit.space. The PR body says "Both origins are Config fields, written once each", and the brief says the link origin is "also held once in Config". Neither is true:Configplus three fallbacks is four spellings. TheParse eventrationale ("a literal there would hold the public origin in two places") applies equally to these three. It also makes the two origins inconsistent: a missing API origin throws, a missing link origin silently becomes a default. No run-time behaviour changes, becauseConfigis always executed before these nodes, and acceptance criterion 1 is met as worded. The smallest clearing change is either to drop the three fallbacks and fail like the API origin does, or to reword the body and the brief's "once".gate.test.js's "no request URL spells the public address" check covershttpRequestnodes only, so it would not notice either way.Standards
standards: no repo convention covers this change, so I judged it by general good practice and the smell baseline. No hard violations.
Pump readsandSweep urls. The author disclosed it, with the repo's own reason that n8n code nodes cannot share a module (pump.test.jsheader: "n8n code nodes cannot share a module, so the rule is written twice"). The repo endorses that trade-off, so I suppress it.notices.test.js:1-2,pump.test.js:1-6), which keeps the README's suite list truthful.Named, not charged
Get teams,Get view tasksandGet pump teamskeephttpHeaderAuthand now targethttp://10.12.0.142:3456. This is what WR-91 asks for ("Vikunja's LAN address and port"), so it is not a defect here. TheMerge Dangerblock does not mention it, though, and it is worth the Operator knowing when deciding on the republish.Vikunja APIcredential's allowed-domain setting (n8n can restrict a generic credential to named hosts) lives on the instance, and n8n is reported down. I could not read it. If a domain allow-list is set tovikunja.thepit.space, the republish will refuse every read. Check it at publish time.ticket-dispatch/scripts/provision-buckets.sh:24still defaults to the public API. It is an operator-run script and not a workflow call, so it is outside the ticket's "workflows" scope.vikunja_link_originyields…//tasks/<id>silently. It sits in the ticket comment, not the diff.ssh burnsandssh cherry. CI by SHA issuccessfor bothpr-checkscontexts.Summary
One advisory is below the three that turn the recommendation, so the weight and the count agree: merge.
bot-efesto referenced this pull request2026-11-06 16:17:16 +00:00