Repository navigation
Description
Phase 4 of docs/batch-orchestration-design.md deletes the legacy in-process
arm. Everything else in Phase 4 is ready; this is the one thing that is not,
and it is a decision, not an implementation.
The problem
After Phase 4 there is no legacy arm, so a dispatcher can only work through the
executor — and executor::from_env has three return (None, None) paths, all
of which require an in-cluster Kubernetes identity
(er_k8s::KubeApi::in_cluster). The only non-Kubernetes PodApi
implementations in the tree are a test double
(rust/crates/er-server/tests/fake_pod_api.rs) and an observer helper
(er-k8s/src/observer.rs).
So local development loses job execution entirely.
That matters because frontend/dev/seed.mjs depends on it. Its own comment:
So something has to put a corpus in the lake before the first publish, and
the CLI is the only thing that can. Afterwards the publish-triggered rebuild
has data, succeeds, and leaves thejobs/runsrows the UI reads.
The frontend full-stack tier reads those rows, so it is downstream of this.
Why the obvious fix is closed off
§13 Non-goals, verbatim:
A local or in-process executor, an
ER_EXECUTORflag, or any production path
other thaner-server exec-taskin a Kubernetes Job.
So promoting FakePodApi into the product contradicts a stated non-goal. What
is left is choosing which capability to give up locally, which is why this is a
decision rather than a task.
Options
- Local dev points at kind for anything needing real job execution.
make kind-upexists andscripts/check_kind.shproves it works end to end
(five phases, including a seven-pod pipeline). Costs a slower loop and
requires docker + kind. Recommended. seed.mjsproduces the rows through the CLI — it already shells out to
the CLI for the corpus, "because the CLI is the only thing that can" — and
the full-stack tier keeps asserting on rows rather than on execution. Cheap
if the tier only reads rows, which its comment suggests. Good complement
to (1).- Keep a narrow local-only legacy arm. Contradicts §13 and keeps a second
execution path alive. Argued against.
Context
ER_DISPATCH_IN_PROCESS is already gone from the dev scripts (#630) — local
dev runs er-dispatcher as its own process, which is correct today because the
legacy arm still exists. This ticket is the step after that.
Blocks the Phase 4 deletion ticket.
Activity
athvin commentedon Nov 7, 2026
Claimed — working in #746 (draft). Closing that PR releases the claim.
docs(batch): decide how local development runs jobs once Phase 4 lands
refactor(dispatcher): delete the legacy in-process arm
refactor(dispatcher): delete the legacy in-process arm
refactor(dispatcher): delete the legacy in-process arm
refactor(dispatcher): delete the legacy in-process dispatch arm (#645)