Skip to content

Decide how local development runs jobs once Phase 4 deletes the legacy arm #638

Closed

Description

@athvin

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 the jobs/runs rows 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_EXECUTOR flag, or any production path
other than er-server exec-task in 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

  1. Local dev points at kind for anything needing real job execution.
    make kind-up exists and scripts/check_kind.sh proves it works end to end
    (five phases, including a seven-pod pipeline). Costs a slower loop and
    requires docker + kind. Recommended.
  2. seed.mjs produces 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).
  3. 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

  1. added
    mvp
    docs-backlog
    on Nov 6, 2026
  2. self-assigned this
    on Nov 7, 2026
  3. athvin commented on Nov 7, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #746 (draft). Closing that PR releases the claim.

  4. added a commit that references this issue on Nov 7, 2026
    72de8aa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docs-backlogmvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions