Repository navigation
Closed
Labels
docs-backlogverified-open work found in docs/mvpRequired for the usable configurable deduplication API product
Description
Phase 4 of docs/batch-orchestration-design.md: remove the in-process arm now
that every kind runs as per-attempt Kubernetes Jobs.
Blocked by #638 — with no legacy arm, a dispatcher without an in-cluster
identity can run nothing, and local dev is currently downstream of that.
The deletion surface, measured
| What | Where |
|---|---|
run_job and its kind arms |
dispatcher.rs, 213 lines (1230–1442) |
AttemptReporter + ChannelObserver + RunReport |
reporter.rs, 545 lines; 14 references |
ER_DISPATCH_IN_PROCESS |
one real reader, main.rs:125 (rest are comments) |
executor.dagKinds / Executor::handles |
chart values, deploy.yml (TWO places), executor.rs |
pg::FailureClass::classify |
reporter.rs ×2, dispatcher.rs, lib.rs (dispatch_pg) |
jobs/update/fail_or_retry.sql retry branch |
declared pair + regenerated er-entities |
jobs/update/mark.sql |
declared pair; 9 non-legacy callers |
tests/pg_attempt_reporter.rs |
delete, not port — it asserts the inproc identity |
tests/pg_job_retry.rs |
rewrite against tasks |
Two prerequisites are already done
dispatch_coverage.rsno longer blocks it (refactor(server): unblock Phase 4's two structural obstacles #611). It used to hard-assert
a textualmatcharm forlake_maintainas its own self-check, so deleting
the arms would have failed the file that proves kinds are routed. It is now
registry-backed, and its legacy half retires itself whenLEGACY_ARM_KINDS
empties — observed standing down.classifyno longer has a new-arm caller (refactor(server): unblock Phase 4's two structural obstacles #611).dags/tasks.rsproduces
er_errors::ErrorClassdirectly; the substring rules moved to the executor
boundary with a differential test over 29 strings proving the move changed
nothing.
Entanglements that are NOT mechanical
pg::markhas nine non-legacy callers, includingdispatch_pg
(lib.rs), the cancel route, and three tests.settle.sqlcannot stand in
formark(job, "running")— itsWHERE state IN ('running','canceling')
guard is the wrong shape forqueued → running. Confirm whetherplan.sql
already commits that transition before deleting anything.dispatch_pg's fate needs deciding. It is the injected-runner test helper,
not the legacy pipeline arm, andpg_profile.rs:212-221explicitly asserts it
records no reason ("if it starts to, assert on it here").- Deleting
executor.dagKindsmust not land before the arm, or a kind off
the allowlist falls through to arun_jobthat no longer exists. values.yaml's dispatcherresourcesandterminationGracePeriodSeconds: 300
are justified entirely by "a killed legacy run strands its row holding the
dataset's writer lock". That justification evaporates here.
Docs
Amend D-ARGO (context), D-JOBSPEC, D-PROGRESS, D-SIZING, D-TENANCY and add
D-TASKJOB, D-CHANNEL, D-FUSION, D-KUEUE in infrastructure-decisions.md;
infrastructure.md §6; architecture.md line 82 (three indexes, not an
advisory lock). images.yml:11 ("the in-process dispatcher runs the pipeline
itself") becomes wrong.
Accept
make check with the deletions, and make check-kind observed failing once
(a deliberately broken classifier row) before it becomes a required check.
Metadata
Metadata
Assignees
Labels
docs-backlogverified-open work found in docs/mvpRequired for the usable configurable deduplication API product
Activity
docs(batch): decide how local development runs jobs once Phase 4 lands
athvin commentedon Nov 7, 2026
#638 is resolved (PR #746), so the decision this ticket was blocked on is recorded beside Phase 4 in
docs/batch-orchestration-design.md.Two things in it change what Phase 4 has to do:
ER_DISPATCH_IN_PROCESSis already unused. It is assigned nowhere in the tree — every occurrence is prose or a comment — andscripts/frontend-dev/up.shalready runser-dispatcheras its own host process. So "RemoveER_DISPATCH_IN_PROCESS" in this ticket's list is removing the reader inmain.rsand the prose, not a live local-dev path. Three documents claimed otherwise and are corrected in docs(batch): decide how local development runs jobs once Phase 4 lands (#638) #746.Local dev's loss is the executor, not the flag.
executor::from_env's thirdreturn (None, None)needsKubeApi::in_cluster, so after this ticket a host dispatcher can claim a job and execute nothing. The decision is that job execution points at kind;make runand the host stack keep API-only work.One consequence to land deliberately rather than discover: the full-stack tier goes from five passing specs to four, because
grow-your-dataexecutes three jobs and cannot be row-seeded. Tracked as #747 so it is not folded into this deletion silently.docs(batch): decide how local development runs jobs once Phase 4 lands (
athvin commentedon Nov 7, 2026
Claimed — working in #756 (draft). Closing that PR releases the claim.
fix(dags): profile's first task had no body, so every profile job failed
refactor(executor): retire the per-kind allowlist, so every kind is t…
fix(executor): send the run report, which stopped being sent when kin…
fix(control): three control tasks scoped their reads to the org, not …
fix(dags): apply_corrections applied nothing and reported success (#760)
wip: claim #645 — delete the legacy in-process dispatch arm
fix(dags): profile's first task had no body, so every profile job failed
refactor(executor): retire the per-kind allowlist, so every kind is t…
48 remaining items
fix(executor): send the run report, which stopped being sent when kin…
fix(test): the harness stops opting kinds in, now that there is no al…
test(pg): three correction-pass tests move onto the executor path
fix(server): train read its pair labels for the org, so m was always …
test(pg): the approval and entity-event tests move onto the executor …
refactor(server): delete ER_DISPATCH_IN_PROCESS and the spawn it gated
docs(control-plane): the skill said the dispatcher runs kinds in-process
refactor(dispatcher): delete the legacy in-process arm
fix(dags): the reconcile had #778's bug too, and a failed one went un…
refactor(jobs): fail_or_retry records a terminal failure; retry is pe…
docs(infra): record Phase 4 in the decision log, and re-justify the d…
refactor(dispatcher): delete the legacy in-process dispatch arm (#645)
docs(engine): the Phase 5 measurement record — S/M/L on er-dev, no qu…
chore(chart): the dispatcher's grace period and memory, measured (#820)…