Repository navigation
Description
agent-note:v1 — filed by queue task 15303 (lane any-c) as required disposition (b) of the Phase 4 closing inventory on #6449 (design #6448). Filed, not silently fixed, per that issue's acceptance criteria.
pm-stack/dispatch is a direct PostgREST producer that bypasses the packet validator and the queue broker (Phase 4 disposition (b) of #6449)
Finding
Design #6448 decision 2 left the SQL layer unchanged because every evidenced path into the queue passed through the validator or the broker. The Phase 4 inventory searched the repo and the claimant for direct producers and found one:
pm-stack/dispatch/src/queue.ts—QueueClient.rpc()POSTs directly to${baseUrl}/rest/v1/rpc/${name}with the service-role key.enqueue()callsenqueue_repo_task/enqueue_repo_task_fleetforwardingp_title,p_body,p_payload,p_dedupe_key,p_priority, andp_max_attemptstaken frompacket.payload.max_attempts— with NOvalidate_packetpass: an unvalidatedmax_attempts,priority,not_before-class value, or mistyped payload field reaches the RPC exactly as the pre-Validate what you forward — one validation contract for the fleet queue's packets and verb values #6448 gap allowed.- The same client also PATCHes task rows directly (
patchTask,rest/v1/tasks?id=eq.<id>) to "assign immediately" — a claim-equivalent write that bypassesclaim_repo_task's eligibility predicate entirely. - It is wired live in code:
pm-stack/dispatch/src/server.tsconstructsQueueClientwhenever a Supabase service-role key is configured (server.ts:51) and enqueues through it (server.ts:241,server.ts:503);launch_annotations.ts:53usespatchTask.
The opencode claimant (pm-stack/opencode-claimant) was searched too: it has no Supabase/PostgREST/direct-RPC path — it reads and writes through the broker. No other direct producer was found in the repo (searches for the RPC names, rest/v1/rpc, rest/v1/tasks outside pkgs/fleet/crates/fleet-queue).
What this reopens
Per #6449 disposition (b): only a found direct producer reopens the SQL-guard question, and it is filed, not fixed in Phase 4. The open questions for this follow-up:
- Is pm-dispatch still deployed with a service-role key against a live queue store? The live queue backend is now Turso (the broker's PostgREST path is the legacy backend); if the dispatch server still runs against the old Supabase project, determine whether that store is live, read, or a zombie.
- If it is live: route its enqueue through the broker (or run
validate_packetsemantics before the RPC) and replace the claim-PATCH with a broker claim path; if the SQL layer becomes the only guard for a live path, the migration-guard question from Validate what you forward — one validation contract for the fleet queue's packets and verb values #6448 decision 2 is back on the table with this evidence. - If it is retired: remove or quarantine the client so the next audit does not have to re-derive its liveness.
Evidence
Audit at code origin/main d7ad9d0, recorded in full on #6449 by task 15303. File:line — queue.ts rpc() (:72), :92), enqueue() (patchTask() (~:115); server.ts:51,241,503.
Activity
developing-today commentedon Nov 12, 2026
CODE-2760
dezren39 commentedon Nov 17, 2026
🤖 Agent note · picked up + triaged
pm-stack/dispatch/src/queue.tsstill POSTsenqueue_repo_task/enqueue_repo_task_fleetviarpc()(:85–108) and PATCHes rows via:129) with the service-role key;patchTask()(server.tsconstructsQueueClientwhenever the key is configured.task/small-fix· priority/high · effort/m · kind/bug (labels applied this run, plus status/triaged and queue/queued for the follow-on).pm-dispatch.serviceis loaded, active, and running on the laptop (NixOS-packagedpkgs/pm-dispatch; restarted 2026-11-16 18:24 in a deploy switch; bun runningserver.ts).SUPABASE_URLandSUPABASE_SERVICE_ROLE_KEY(variable names read from the /proc environ key list only — values never read), soQueueClientis constructed at startup and every dispatch session launch enqueues + claim-PATCHes through it (launch flow:enqueueDispatchTask, workerdispatch-opencode).fleet queue health: projectfleet-queue-…turso.io, claim eventsclaim_repo_task_turso); the fleet-queue client's docs state "no direct Supabase access",queue_broker.rslabels the Supabase PostgREST path the legacy backend, and no Supabase↔Turso bridge exists in the repo. Dispatch's tasks therefore land where no lane will ever claim them — zombie writes, and unvalidated ones (max_attempts,priorityforwarded with novalidate_packetpass).repo-health:v1:fix:developing-today/code:issue:9028→ enqueued as task 20268 (queue repo-health-code-pilot, status queued, priority 20).dezren39 commentedon Nov 17, 2026
🤖 Agent note · in-progress (parked for capacity — resume state below)
Verified fresh (2026-11-16):
cfg.supabaseServiceRoleKey ? new QueueClient(...) : null. The live queue store is Turso (fleet queue health/claims resolve there), so these writes land in the legacy store where no lane claims — as filed by task 18812's triage.Why parked, and the resume plan:
Issue #9028 stays open; task 20268 is parked (capacity) and will surface to a fresh full-budget shift.
152 remaining items
dezren39 commentedon Nov 19, 2026
agent-note:v1
task: 20268
issue: #9028
lane: oc-code-05
worker: repo-worker-code
origin: openchamber-scheduled-lane
stage: picked-up -> verified
Claimed and checkpointed task 20268. Fresh GitHub checks confirm #9028/#6449 are CLOSED, PR #10986 is MERGED at bb02d18, and #6449 records the #6448 decision-2 disposition. Latest #9028 operator evidence remains the 2026-11-19T21:43:33Z note, which says the deployment gate is unresolved. Still required: NixOS switch/restart on the merged build, deployed-build health, absence of SUPABASE_* process-environment names (names only), and a dispatch enqueue visible in Turso. No deploy, secret-value inspection, production dispatch, source change, or protected-worktree access. I will preserve the existing branch/worktree and re-park pending verifiable operator evidence.
dezren39 commentedon Nov 19, 2026
agent-note:v1
task: 20268
issue: #9028
lane: oc-code-05
worker: repo-worker-code
origin: openchamber-scheduled-lane
stage: verified -> parked
Fresh GitHub verification confirms #9028/#6449 CLOSED and PR #10986 MERGED; #6449 records the #6448 decision-2 disposition. No operator evidence resolves the live deployment gate: NixOS switch/restart on the merged build, deployed-build health, absence of SUPABASE_* process-environment names (names only), and a dispatch enqueue visible in Turso. Task 20268 parked for 30 minutes. No deploy, secret-value inspection, production dispatch, source changes, or protected-worktree access. Preserve branch queue/20268-9028-deploy-verification and worktree /home/user/git/fleet/queue-20268-9028-deploy-verification. Resume only after verifiable operator evidence for all four checks, then revalidate. Sandbox bookkeeping deferred to fleet reconciliation.
dezren39 commentedon Nov 19, 2026
agent-note:v1
task: 20268
issue: #9028
lane: oc-code-05
worker: repo-worker-code
origin: openchamber-scheduled-lane
state: picked-up -> escalated-to-user (blocked)
Fresh revalidation (2026-11-19T22:55Z, laptop-local, read-only): #9028 and #6449 remain CLOSED, PR #10986 MERGED at bb02d18, #6448 decision-2 disposition recorded on #6449. The live deployment gate is still unmet, verified directly: pm-dispatch.service active since Nov 16 18:24 CST on the pre-merge build (/health version 7d3dceb, not the merge commit), and its process environment still contains SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY (names only; values never read). No dispatch enqueue was exercised; no deploy, restart, secret-value inspection, or source change performed.
Why blocking instead of re-parking: this task has cycled park→reclaim→park across five-plus lanes since 13:00Z today with no operator evidence arriving. The four outstanding checks (NixOS switch/restart on the merged build, deployed-build health, SUPABASE_* names absent, Turso-visible dispatch enqueue) all require a privileged live-service deploy on this laptop — a decision and action that is genuinely the operator's, per the fleet's standing no-unauthorized-deploy discipline.
My read for Drew: the code outcome is done and merged (dispatch now talks only to the queue broker; the direct PostgREST producer is gone from source). Two ways to close this out:
Task 20268 blocked (escalated-to-user) with this evidence; branch queue/20268-9028-deploy-verification and worktree /home/user/git/fleet/queue-20268-9028-deploy-verification preserved. Sandbox bookkeeping deferred to fleet reconciliation.
dezren39 commentedon Nov 22, 2026
agent-note:v1
task: 20268
issue: #9028
lane: oc-code-05
worker: repo-worker-code
origin: openchamber-scheduled-lane
state: claimed -> hands-blocked
The code change is already merged (#10986), while the remaining post-merge gate requires a live NixOS operator login and deployment action. Reclassified only that step as an interactive-login hands item; task 20268 is blocked in the queue, not waiting on a decision. Required evidence remains the merged-build switch/restart and health, absence of SUPABASE_* environment names (names only), and a Turso-visible dispatch enqueue. No deployment, secret-value inspection, production dispatch, or protected-worktree access was performed.