Skip to content

fix(dags): apply_corrections applied nothing and reported success (#760) - #769

Merged
athvin merged 2 commits into
mainfrom
fix/760-staged-action-handoff
Nov 7, 2026
Merged

athvin merged 2 commits into
mainfrom
fix/760-staged-action-handoff

Conversation

@athvin

@athvin athvin commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Closes #760 · unblocks #645

The bug

apply_staged read the actions it applies from order.params["staged_actions"]. Nothing in the tree ever wrote that key — compose_input builds the order as {"pins": pins, "params": job.params}, the job's params verbatim, and the only other mention of the key was the reader. An absent array was an empty pass rather than a failure.

So every correction pass applied nothing and settled succeeded. The actions stayed pending, so each later pass re-drained and re-discarded them. deploy.yml lists every kind in DAG_KINDS, so dev and production have been on this path: assertions, merges, unmerges and bulk resolves with apply_now were going nowhere, and the approval sweep feeds the same path. The job's own success is what hid it.

The fix

The payloads travel along drain_actions' typed edge instead.

  • DrainActions already read full PendingAction rows and kept only the ids. It keeps both.
  • drained becomes a direct upstream of apply_staged. compose_input pins direct upstreams only, which is the mechanical reason the data could not arrive via init — whose RunPlan does not carry it and was never going to.
  • The params reader is deleted rather than left as a second channel.

A typed pin cannot fail this way: the edge is declared in Input, the DAG wires it, dag_assembly.rs checks the wiring, and dag_task_coverage.rs checks the arm.

Evidence

tests/pg_apply_corrections_dag.rs — a real control plane, a real DuckLake, the real exec-task binary in a fake pod, two actions staged through the real endpoints, and the staged rows read back afterwards.

Observed failing with the payloads dropped again, and the reproduction is the bug's own signature — all seven task rows succeeded while pending_count is still 2:

assertion `left == right` failed: the pass must apply AND mark every staged action;
task rows [("drain_actions","succeeded",None), ("init","succeeded",None),
           ("apply_staged","succeeded",None), ("reconcile","succeeded",None),
           ("assemble","succeeded",None), ("settle_actions","succeeded",None),
           ("finish","succeeded",None)]
  left: 2
 right: 0

make check green. Full 104-test er-server tier green against a real Postgres and DuckLake.

The first commit is a cherry-pick, deliberately

80baa85d is the scope fix from the #645 branch, because this acceptance test cannot pass without it: DrainActions was passing order.org_id to the dataset-scoped pending_actions, so it drained nothing even before reaching the missing hand-off. Three control tasks had the same confusion (subjects_for_tag, unapply_tag, matching_model::read::list). #645 is blocked, so the fix lands here where it is provable; it drops out of that branch on rebase.

Known gap, filed separately

The task path never emits entity.write_back. write_back_resolutions lives only in the legacy arm, and porting it needs a pod to read the corrected corpus plus a control task to queue the event, since a control task may not open a lake (control_tasks_no_engine.rs). That is a decomposition rather than a fix. This test registers no subscriber, so it makes no claim about it.

Note on in-flight jobs

DrainedActions gaining a field changes the apply_corrections structural fingerprint, so a job planned against the old graph is refused by plan.sql's guard with "clear into a new job" — the intended behaviour, not a migration. actions carries #[serde(default)] so an older row rehydrates rather than panicking on the way to that refusal.

…the dataset

`pg::pending_actions`, `pg::subjects_for_tag`, `pg::unapply_tag` and
`matching_model::read::list` all take their scope as a bare `&str` named
`dataset_id`. Three of the six control tasks passed `ctx.order.org_id`. That
compiles, matches no rows, and reports success:

- `DrainActions` → `pending_actions`: an `apply_corrections` job drained
  nothing. Observed directly — the task's output went from `action_ids: []` to
  both ids once the scope was right.
- `StageApproved` → `subjects_for_tag`: no approved review is ever found, so
  the approval sweep stages nothing; and `unapply_tag` could not have removed
  a tag it could not see.
- `RegisterModel` → `matching_model::read::list`: the §9.1 idempotence probe
  reads a registry it cannot see, so a retried `train` cannot recognise its own
  prior draft.

`tag_by_name` stays org-scoped and is correct: the tag VOCABULARY belongs to
the org, while tag APPLICATION is dataset-scoped. The fix is the idiom the
legacy arm used at all three of its equivalent sites,
`dataset_id.unwrap_or(org_id)` — the dataset when the job names one, the org id
as the pre-dataset fallback — bound to a named `scope` so the next reader sees
the decision rather than re-deriving it.

This is the class er-server-control-plane warns about in as many words: the
parameters are all `&str`, so passing an org id where a dataset id belongs
compiles cleanly and silently returns the wrong rows.

Found while porting `pg_drain_dispatcher.rs` off the legacy arm for #645. That
port is NOT in this commit: it uncovered a second, separate defect that it
cannot be landed around — `apply_staged` reads its payloads from
`order.params["staged_actions"]`, and nothing in the tree writes that key, so
`apply_corrections` still applies nothing even with the scope corrected.
`compose_input` passes `job.params` verbatim. That needs a decision about where
the hand-off belongs and is reported separately.

The shared `pump` is extracted to `tests/executor_harness.rs` because it was
already copied verbatim into two files; the rest of the harness waits for a
path a ported test can actually pass on.

`make check` green, and the full 107-test er-server tier green against a real
Postgres and DuckLake — so none of the four corrected scopes regressed a
caller that was relying on the org id.

Refs #645
`apply_staged` read the actions it applies from
`order.params["staged_actions"]`. Nothing in the tree ever wrote that key:
`compose_input` builds the order as `{"pins": pins, "params": job.params}` —
the job's params verbatim — and the only other mention of the key was the
reader. An absent array was treated as an empty pass rather than a failure, so
every correction pass applied nothing and settled `succeeded`.

The actions stayed pending, so each later pass re-drained and re-discarded
them. `deploy.yml` lists every kind in `DAG_KINDS`, so dev and production have
been on this path: assertions, merges, unmerges and bulk resolves with
`apply_now` were going nowhere, and the approval sweep fed the same path. The
job's own success is what hid it.

The payloads now travel along `drain_actions`' typed edge. `DrainActions`
already read full `PendingAction` rows and kept only the ids; it keeps both.
`drained` becomes a DIRECT upstream of `apply_staged` — `compose_input` pins
direct upstreams only, which is the mechanical reason the data could not arrive
through `init`, whose `RunPlan` does not carry it and was never going to. The
params reader is deleted rather than left as a second channel.

A typed pin cannot fail this way: the edge is declared in `Input`, the DAG
wires it, `dag_assembly.rs` checks the wiring, and `dag_task_coverage.rs`
checks the arm. The old comment claiming the control plane "put the payloads
where a pod can read them" is replaced by the mechanism that actually does.

`tests/pg_apply_corrections_dag.rs` is the acceptance test: a real control
plane, a real DuckLake, the real `exec-task` binary in a fake pod, two actions
staged through the real endpoints, and the staged rows read back afterwards.
Observed failing with the payloads dropped again, and the reproduction is the
bug's own signature — every one of the seven task rows reads `succeeded` while
`pending_count` is still 2.

Deliberately out of scope, and filed separately: the task path never emits
`entity.write_back`. `write_back_resolutions` lives only in the legacy arm and
needs a pod to read the corrected corpus plus a control task to queue the
event, since a control task may not open a lake (`control_tasks_no_engine.rs`).
That is a decomposition, not a fix, and this test registers no subscriber so it
makes no claim about it.

`DrainedActions` gaining a field changes the `apply_corrections` structural
fingerprint, so a job planned against the old graph is refused by `plan.sql`'s
guard with "clear into a new job" — the intended behaviour. `actions` carries
`#[serde(default)]` so an older row still rehydrates rather than panicking on
the way to that refusal.

The first commit on this branch is the scope fix cherry-picked off the #645
branch, because this acceptance test cannot pass without it: `DrainActions`
was passing `order.org_id` to the dataset-scoped `pending_actions`, so it
drained nothing even before reaching the missing hand-off.

`make check` green; the full 107-test er-server tier green against a real
Postgres and DuckLake.

Closes #760
Refs #645
@athvin

athvin commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

The entity.write_back gap this PR names is now #770, so the claim in the commit message resolves.

@athvin
athvin merged commit b946522 into main Nov 7, 2026
41 checks passed
athvin pushed a commit that referenced this pull request Nov 7, 2026
…lowlist

`executor_harness.rs` arrived on `main` with #769, which was cut before the
allowlist came out, so it set `ExecutorConfig::dag_kinds` to every kind in the
registry. That field no longer exists after this branch's first step, so the
rebase left the test binary not compiling.

Belongs with the allowlist removal rather than on its own, but amending a
commit four deep buys nothing when the PR squashes.

Refs #645
athvin pushed a commit that referenced this pull request Nov 7, 2026
…EM-only

`er_entities::pair_label::read::all` takes its scope as a bare `&str` named
`dataset_id` — it is called that way everywhere else, `&d.id` at lib.rs:2640
and 5688 — and the attempt channel's work-order route passed
`current.org_id`. It matched nothing.

The damage is quiet. The surrounding code degrades a label READ FAILURE to an
EM-only estimate on purpose, and zero rows is indistinguishable from "this
tenant has no labels", so every `train` on the task path estimated `m` without
labels and recorded `m_from_labels: 0` — which the registry then reports as
provenance, truthfully describing a training pass that could not have used
them. A steward labelling pairs to improve a model was feeding a path that
threw the labels away.

Fourth instance of one class. The other three (`pending_actions`,
`subjects_for_tag`, `unapply_tag`, plus `matching_model::read::list`) went in
with #769. The shape is always the same: scope is a `&str`, an org id is a
valid `&str`, and the wrong one returns an empty set rather than an error.

`pg_train.rs` is ported off `dispatcher::train_and_register` onto a real
`train` job, and it is what caught this: `m_from_labels` was 0 against an
expected 2.

Two things the port had to change beyond the call:

- **The env moves onto the org row.** `ensure_org` left it unset because the
  legacy arm took the env as an argument; a job on the task path reads it from
  its dataset, so the fixture now stores it with `upsert_org_byo` BEFORE
  `converge_default_datasets` copies it down. It also gains ER_MODEL_PATH and
  ER_LEXICON_PATH, which `Train`'s run context resolves and the legacy half
  did not need. ER_TF_PATH stays the test's own copy, because training appends
  its snapshot to that file.
- **The run id is no longer the test's to choose.** On this path the run id IS
  the job id, so the version label and the provenance are named after a value
  only `enqueue` knows. `Harness::run_kind` returns it and the assertions use
  it, where they used to hard-code `01TRAINJOB…`.

Four of the eight ports. `make check` green.

Refs #645
athvin pushed a commit that referenced this pull request Nov 7, 2026
…lowlist

`executor_harness.rs` arrived on `main` with #769, which was cut before the
allowlist came out, so it set `ExecutorConfig::dag_kinds` to every kind in the
registry. That field no longer exists after this branch's first step, so the
rebase left the test binary not compiling.

Belongs with the allowlist removal rather than on its own, but amending a
commit four deep buys nothing when the PR squashes.

Refs #645
athvin pushed a commit that referenced this pull request Nov 7, 2026
…EM-only

`er_entities::pair_label::read::all` takes its scope as a bare `&str` named
`dataset_id` — it is called that way everywhere else, `&d.id` at lib.rs:2640
and 5688 — and the attempt channel's work-order route passed
`current.org_id`. It matched nothing.

The damage is quiet. The surrounding code degrades a label READ FAILURE to an
EM-only estimate on purpose, and zero rows is indistinguishable from "this
tenant has no labels", so every `train` on the task path estimated `m` without
labels and recorded `m_from_labels: 0` — which the registry then reports as
provenance, truthfully describing a training pass that could not have used
them. A steward labelling pairs to improve a model was feeding a path that
threw the labels away.

Fourth instance of one class. The other three (`pending_actions`,
`subjects_for_tag`, `unapply_tag`, plus `matching_model::read::list`) went in
with #769. The shape is always the same: scope is a `&str`, an org id is a
valid `&str`, and the wrong one returns an empty set rather than an error.

`pg_train.rs` is ported off `dispatcher::train_and_register` onto a real
`train` job, and it is what caught this: `m_from_labels` was 0 against an
expected 2.

Two things the port had to change beyond the call:

- **The env moves onto the org row.** `ensure_org` left it unset because the
  legacy arm took the env as an argument; a job on the task path reads it from
  its dataset, so the fixture now stores it with `upsert_org_byo` BEFORE
  `converge_default_datasets` copies it down. It also gains ER_MODEL_PATH and
  ER_LEXICON_PATH, which `Train`'s run context resolves and the legacy half
  did not need. ER_TF_PATH stays the test's own copy, because training appends
  its snapshot to that file.
- **The run id is no longer the test's to choose.** On this path the run id IS
  the job id, so the version label and the provenance are named after a value
  only `enqueue` knows. `Harness::run_kind` returns it and the assertions use
  it, where they used to hard-code `01TRAINJOB…`.

Four of the eight ports. `make check` green.

Refs #645
athvin pushed a commit that referenced this pull request Nov 7, 2026
…lowlist

`executor_harness.rs` arrived on `main` with #769, which was cut before the
allowlist came out, so it set `ExecutorConfig::dag_kinds` to every kind in the
registry. That field no longer exists after this branch's first step, so the
rebase left the test binary not compiling.

Belongs with the allowlist removal rather than on its own, but amending a
commit four deep buys nothing when the PR squashes.

Refs #645
athvin pushed a commit that referenced this pull request Nov 7, 2026
…EM-only

`er_entities::pair_label::read::all` takes its scope as a bare `&str` named
`dataset_id` — it is called that way everywhere else, `&d.id` at lib.rs:2640
and 5688 — and the attempt channel's work-order route passed
`current.org_id`. It matched nothing.

The damage is quiet. The surrounding code degrades a label READ FAILURE to an
EM-only estimate on purpose, and zero rows is indistinguishable from "this
tenant has no labels", so every `train` on the task path estimated `m` without
labels and recorded `m_from_labels: 0` — which the registry then reports as
provenance, truthfully describing a training pass that could not have used
them. A steward labelling pairs to improve a model was feeding a path that
threw the labels away.

Fourth instance of one class. The other three (`pending_actions`,
`subjects_for_tag`, `unapply_tag`, plus `matching_model::read::list`) went in
with #769. The shape is always the same: scope is a `&str`, an org id is a
valid `&str`, and the wrong one returns an empty set rather than an error.

`pg_train.rs` is ported off `dispatcher::train_and_register` onto a real
`train` job, and it is what caught this: `m_from_labels` was 0 against an
expected 2.

Two things the port had to change beyond the call:

- **The env moves onto the org row.** `ensure_org` left it unset because the
  legacy arm took the env as an argument; a job on the task path reads it from
  its dataset, so the fixture now stores it with `upsert_org_byo` BEFORE
  `converge_default_datasets` copies it down. It also gains ER_MODEL_PATH and
  ER_LEXICON_PATH, which `Train`'s run context resolves and the legacy half
  did not need. ER_TF_PATH stays the test's own copy, because training appends
  its snapshot to that file.
- **The run id is no longer the test's to choose.** On this path the run id IS
  the job id, so the version label and the provenance are named after a value
  only `enqueue` knows. `Harness::run_kind` returns it and the assertions use
  it, where they used to hard-code `01TRAINJOB…`.

Four of the eight ports. `make check` green.

Refs #645
athvin pushed a commit that referenced this pull request Nov 7, 2026
…lowlist

`executor_harness.rs` arrived on `main` with #769, which was cut before the
allowlist came out, so it set `ExecutorConfig::dag_kinds` to every kind in the
registry. That field no longer exists after this branch's first step, so the
rebase left the test binary not compiling.

Belongs with the allowlist removal rather than on its own, but amending a
commit four deep buys nothing when the PR squashes.

Refs #645
athvin pushed a commit that referenced this pull request Nov 7, 2026
…EM-only

`er_entities::pair_label::read::all` takes its scope as a bare `&str` named
`dataset_id` — it is called that way everywhere else, `&d.id` at lib.rs:2640
and 5688 — and the attempt channel's work-order route passed
`current.org_id`. It matched nothing.

The damage is quiet. The surrounding code degrades a label READ FAILURE to an
EM-only estimate on purpose, and zero rows is indistinguishable from "this
tenant has no labels", so every `train` on the task path estimated `m` without
labels and recorded `m_from_labels: 0` — which the registry then reports as
provenance, truthfully describing a training pass that could not have used
them. A steward labelling pairs to improve a model was feeding a path that
threw the labels away.

Fourth instance of one class. The other three (`pending_actions`,
`subjects_for_tag`, `unapply_tag`, plus `matching_model::read::list`) went in
with #769. The shape is always the same: scope is a `&str`, an org id is a
valid `&str`, and the wrong one returns an empty set rather than an error.

`pg_train.rs` is ported off `dispatcher::train_and_register` onto a real
`train` job, and it is what caught this: `m_from_labels` was 0 against an
expected 2.

Two things the port had to change beyond the call:

- **The env moves onto the org row.** `ensure_org` left it unset because the
  legacy arm took the env as an argument; a job on the task path reads it from
  its dataset, so the fixture now stores it with `upsert_org_byo` BEFORE
  `converge_default_datasets` copies it down. It also gains ER_MODEL_PATH and
  ER_LEXICON_PATH, which `Train`'s run context resolves and the legacy half
  did not need. ER_TF_PATH stays the test's own copy, because training appends
  its snapshot to that file.
- **The run id is no longer the test's to choose.** On this path the run id IS
  the job id, so the version label and the provenance are named after a value
  only `enqueue` knows. `Harness::run_kind` returns it and the assertions use
  it, where they used to hard-code `01TRAINJOB…`.

Four of the eight ports. `make check` green.

Refs #645
athvin pushed a commit that referenced this pull request Nov 7, 2026
…lowlist

`executor_harness.rs` arrived on `main` with #769, which was cut before the
allowlist came out, so it set `ExecutorConfig::dag_kinds` to every kind in the
registry. That field no longer exists after this branch's first step, so the
rebase left the test binary not compiling.

Belongs with the allowlist removal rather than on its own, but amending a
commit four deep buys nothing when the PR squashes.

Refs #645
athvin pushed a commit that referenced this pull request Nov 7, 2026
…EM-only

`er_entities::pair_label::read::all` takes its scope as a bare `&str` named
`dataset_id` — it is called that way everywhere else, `&d.id` at lib.rs:2640
and 5688 — and the attempt channel's work-order route passed
`current.org_id`. It matched nothing.

The damage is quiet. The surrounding code degrades a label READ FAILURE to an
EM-only estimate on purpose, and zero rows is indistinguishable from "this
tenant has no labels", so every `train` on the task path estimated `m` without
labels and recorded `m_from_labels: 0` — which the registry then reports as
provenance, truthfully describing a training pass that could not have used
them. A steward labelling pairs to improve a model was feeding a path that
threw the labels away.

Fourth instance of one class. The other three (`pending_actions`,
`subjects_for_tag`, `unapply_tag`, plus `matching_model::read::list`) went in
with #769. The shape is always the same: scope is a `&str`, an org id is a
valid `&str`, and the wrong one returns an empty set rather than an error.

`pg_train.rs` is ported off `dispatcher::train_and_register` onto a real
`train` job, and it is what caught this: `m_from_labels` was 0 against an
expected 2.

Two things the port had to change beyond the call:

- **The env moves onto the org row.** `ensure_org` left it unset because the
  legacy arm took the env as an argument; a job on the task path reads it from
  its dataset, so the fixture now stores it with `upsert_org_byo` BEFORE
  `converge_default_datasets` copies it down. It also gains ER_MODEL_PATH and
  ER_LEXICON_PATH, which `Train`'s run context resolves and the legacy half
  did not need. ER_TF_PATH stays the test's own copy, because training appends
  its snapshot to that file.
- **The run id is no longer the test's to choose.** On this path the run id IS
  the job id, so the version label and the provenance are named after a value
  only `enqueue` knows. `Harness::run_kind` returns it and the assertions use
  it, where they used to hard-code `01TRAINJOB…`.

Four of the eight ports. `make check` green.

Refs #645
athvin added a commit that referenced this pull request Nov 7, 2026
* wip: claim #645 — delete the legacy in-process dispatch arm

* fix(dags): profile's first task had no body, so every profile job failed

`profile`'s DAG opens with a `reconcile_schema` source, but the arm for that
task in `run_pod_task` named `lake_maintain`, `lake_migrate` and `train` and
not `profile`. `deploy.yml` has listed `profile` in `DAG_KINDS` throughout, so
every profile job routed to the executor, planned, launched — and then failed
at its first task with "the executor does not yet run task 'reconcile_schema'
of kind 'profile'", in dev and in production.

Nothing caught it because nothing compared the compiled DAGs against the
dispatch tables. `dispatch_coverage.rs` proves each job KIND has a destination
and stops one level short of the tasks.

So `tests/dag_task_coverage.rs` walks `dag_for` for all eleven kinds and
asserts every node has an arm in the table its `NodeKind` selects. It parses
the tables, for the reason the file states at length: calling `run_pod_task`
to see whether an arm exists would execute the real body of every arm that is
not refused. Observed failing on the unfixed tree, naming exactly the one gap;
`the_two_tables_are_separate` is likewise observed failing when the region
boundaries are made to overlap, because a control node satisfied by a pod arm
would otherwise read as routed.

This matters more as #645 proceeds: with the legacy in-process arm deleted
there is no second path a kind can fall back to, so "every node has a body"
stops being a nicety.

Two false doc comments in the same file, found while reading it. The module
note still said Phase 1 shipped the graphs with "no executor" and bodies that
"refuse to run until `er-server exec-task` lands in Phase 2". And
`run_pod_task`'s own doc block had come adrift above `run_control_task`, so
that function carried two concatenated comments while `run_pod_task` carried
none — which is how "Phase 2 runs the maintenance kinds; every other body
still refuses" survived being wrong.

Refs #645

* refactor(executor): retire the per-kind allowlist, so every kind is the executor's

Phase 4 of #645, first step. The legacy in-process arm cannot be deleted while
`executor.dagKinds` still gates routing: a kind off the allowlist would fall
through to a `run_job` that no longer exists. So the allowlist goes first.

`ER_EXECUTOR_DAG_KINDS` is gone, along with `ExecutorConfig::dag_kinds` and
`Executor::handles`. `dispatch_once_with_executor` now plans every claim
instead of consulting a set, which is safe because `plan_claimed` already
refuses a kind the DAG registry cannot parse — terminally, with that reason on
the row. That is a better answer than the legacy arm's generic "dispatcher does
not handle job kind", and it is the only answer available once the arm is gone.

`ExecutorConfig::from_env` no longer returns `None` for a missing variable; it
returns `None` only when a configured task template cannot be read. What still
disables the executor is the absence of a namespace or an in-cluster identity,
which is what keeps a host dispatcher out of the business of creating Jobs.

The allowlist had a second consumer worth naming: `AppState.executor_kinds`,
which the cancel route read to choose `cancel.sql`'s `canceling` over a direct
`mark(…, "canceled")`. Every kind now takes the `canceling` path, so a cancel
holds the dataset slot until its pods are provably gone. The direct arm
survives only for a kind that does not parse, which cannot have been planned
and so has no pods to revoke.

`LEGACY_ARM_KINDS` in dispatch_coverage.rs is emptied, which is the exit that
file documents for itself — its legacy half returns immediately rather than
failing. The list was stale in any case: it named correct, train, profile,
apply_approved and apply_corrections as legacy while deploy.yml had been
routing all eleven kinds to the executor.

Six configuration sites carried the value and are removed together: both
deployment templates, `values.yaml`, `values-kind.yaml`, the job-level
`DAG_KINDS` env in deploy.yml, and the `--set executor.dagKinds=` in
deploy-inactive-colour.sh and deploy-cutover.sh.

One behavioural consequence to expect on kind: `values-kind.yaml` listed three
kinds, so `make check-kind` now routes all eleven through the executor there.

`make check` green. The in-process arm still runs when there is no executor;
its deletion, and the guard that stops a dispatcher claiming work it cannot
execute, are the next step.

Refs #645

* fix(executor): send the run report, which stopped being sent when kinds moved

`run_report_messages` had exactly one caller: `dispatch_claimed`, the legacy
in-process arm. The executor's settle emitted the `job.<state>` webhook and the
`entity.*` aggregate and nothing else. Since `deploy.yml` lists every kind, every
job in dev and production has been taking the executor path — so the run report
has not been sent for some time, and nothing reported it, because an email that
is never sent looks exactly like a tenant who never configured one.

Phase 4 (#645) would have deleted the only caller and made that permanent. So
the report moves to where jobs actually settle, riding after the outcome
webhook and the aggregate, because a subscriber watching all three should see
the outcome first. `Executor` grows a `Mailer` built in `connect`, which keeps
the signature the integration tests already call; with no SES configuration it
is the `off` mailer and `send` is a no-op.

`run_report_messages` itself is unchanged and stays where it is — pure, and
already covered by seven unit tests that need no mailer. Only its visibility
widens to `pub(crate)`.

The entity counts are now read out of `finish`'s output unconditionally rather
than inside an `if let`, because the report wants them too and an empty vector
is the honest "nothing to announce". The aggregate's own emit is still gated on
a non-empty list, so its behaviour does not change.

`tests/settle_consequences.rs` closes the class rather than the instance: each
settle consequence is named with the CALL that must appear in executor.rs. Call
site, not mention — the first version of the gate asked only whether the name
appeared, and it passed when the call was deleted while the method and the
`run_report_messages` inside it sat there unreached. It would have caught this
bug and not the next one. Observed failing on both mutations: the call removed
with the method kept, and the method removed entirely.

`make check` green.

Refs #645

* fix(test): the harness stops opting kinds in, now that there is no allowlist

`executor_harness.rs` arrived on `main` with #769, which was cut before the
allowlist came out, so it set `ExecutorConfig::dag_kinds` to every kind in the
registry. That field no longer exists after this branch's first step, so the
rebase left the test binary not compiling.

Belongs with the allowlist removal rather than on its own, but amending a
commit four deep buys nothing when the PR squashes.

Refs #645

* test(pg): three correction-pass tests move onto the executor path

`pg_mass_update`, `pg_protect_master` and `pg_record_overlays` each reached the
engine through `dispatcher::drain_and_correct` — the legacy in-process arm this
branch deletes. Each now enqueues a real `apply_corrections` job and runs it
through the executor as its own task pods.

Their assertions are untouched. They were always about outcomes — the override
value lands and a clear nulls the field, protect pins the master and retract
restores the policy, suppress excludes the record and retract restores it — and
never about which arm produced them. That is what makes these ports rather
than rewrites.

`Harness::apply_corrections` is the one-line stand-in for a `drain_and_correct`
call, because there were six call sites across the three files. It panics with
every task row rather than just the state: a pass that settles without doing
its work is the failure mode this path has already had once (#760), and
"succeeded" on its own never explains it.

All three fixtures gain the model artefacts a correction pass resolves through
`RunContext` — ER_MODEL_PATH, ER_TF_PATH, ER_LEXICON_PATH and the two version
ids. They carried only the lake and the config, because the legacy
`run_correct` needed only those, which made every one of them thinner than any
real org; a provisioned org declares all of them, in both
`scripts/check_kind.sh` and `scripts/frontend-dev/env.sh`. The TF fixture is
COPIED, never pointed at, since a snapshot appends to it.

Observed passing against a real Postgres and DuckLake: 51s, 42s and 47s
respectively, which is seven pods' worth of cold DuckDB opens rather than an
in-process call — the point of the exercise.

Three of the eight ports #645 needs. `pg_drain_dispatcher.rs` stays on the
legacy arm until #770, because it is the only one that asserts
`entity.write_back` and the task path does not emit it yet.

Refs #645

* fix(server): train read its pair labels for the org, so m was always EM-only

`er_entities::pair_label::read::all` takes its scope as a bare `&str` named
`dataset_id` — it is called that way everywhere else, `&d.id` at lib.rs:2640
and 5688 — and the attempt channel's work-order route passed
`current.org_id`. It matched nothing.

The damage is quiet. The surrounding code degrades a label READ FAILURE to an
EM-only estimate on purpose, and zero rows is indistinguishable from "this
tenant has no labels", so every `train` on the task path estimated `m` without
labels and recorded `m_from_labels: 0` — which the registry then reports as
provenance, truthfully describing a training pass that could not have used
them. A steward labelling pairs to improve a model was feeding a path that
threw the labels away.

Fourth instance of one class. The other three (`pending_actions`,
`subjects_for_tag`, `unapply_tag`, plus `matching_model::read::list`) went in
with #769. The shape is always the same: scope is a `&str`, an org id is a
valid `&str`, and the wrong one returns an empty set rather than an error.

`pg_train.rs` is ported off `dispatcher::train_and_register` onto a real
`train` job, and it is what caught this: `m_from_labels` was 0 against an
expected 2.

Two things the port had to change beyond the call:

- **The env moves onto the org row.** `ensure_org` left it unset because the
  legacy arm took the env as an argument; a job on the task path reads it from
  its dataset, so the fixture now stores it with `upsert_org_byo` BEFORE
  `converge_default_datasets` copies it down. It also gains ER_MODEL_PATH and
  ER_LEXICON_PATH, which `Train`'s run context resolves and the legacy half
  did not need. ER_TF_PATH stays the test's own copy, because training appends
  its snapshot to that file.
- **The run id is no longer the test's to choose.** On this path the run id IS
  the job id, so the version label and the provenance are named after a value
  only `enqueue` knows. `Harness::run_kind` returns it and the assertions use
  it, where they used to hard-code `01TRAINJOB…`.

Four of the eight ports. `make check` green.

Refs #645

* test(pg): the approval and entity-event tests move onto the executor path

`pg_entity_events` and `pg_approval` drove the engine through
`dispatcher::dispatch_once_with` — the legacy claim-and-run path. Both now run
real jobs through the executor: two `run_all_full` runs as seven pods each, and
an `apply_approved` per phase.

**The harness now claims on every iteration, which is what `run_loop` does.**
Claiming once was wrong as soon as the queue held more than the job under test,
and `pg_approval` is exactly that case: its phase 2 stages approvals, which
enqueues an `apply_corrections`, and `pg::claim` takes the OLDEST queued row
for an org with no active job. So the harness claimed that one, pumped it, and
the job under test sat `queued` while the budget ran down.

The legacy tests could not see this. `dispatch_once_with` returns whether
SOMETHING was claimed, and `assert!(run().await)` asked only that — never
which job. So `pg_approval`'s closure returns the state its own job SETTLED in
now, because on the task path "claimed" means planned and an `apply_approved`
whose control task failed would have been claimed just the same.

`queued` therefore joins `running` and `dispatching` as a non-terminal state
for the settlement loop: a job waiting behind another is not finished, and
neither is one a retry put back.

Six of the eight ports, and the full 108-test er-server tier is green against a
real Postgres and DuckLake — so the harness change did not disturb the four
already ported.

The two that remain are blocked on something this branch should not decide
alone:

- `pg_drain_dispatcher.rs` — #770, the task path emits no `entity.write_back`.
- `pg_provision.rs` — there is no profile-injection seam. `CreateCatalog` calls
  `provision::Profile::from_env()` directly, and `dispatch_once_with` exists
  precisely because a test cannot set env (`set_var` is unsafe under edition
  2024 and the workspace denies `unsafe_code`). Nothing under `tests/` so much
  as mentions `create_catalog` or `lake_init`, so provisioning has NO coverage
  on the path that runs it, and this is the only provisioning test.

Refs #645

* refactor(server): delete ER_DISPATCH_IN_PROCESS and the spawn it gated

occurrence was prose or a comment. So the 53-line `in_process_dispatcher`
spawn in `main.rs`, and the 20-line join that waited for it, were unreachable:
`dsn.filter(|_| env_flag("ER_DISPATCH_IN_PROCESS"))` could not yield `Some`.
`env_flag` goes with it, having had no other caller.

That makes this a deletion of dead code rather than a change of behaviour,
which is why it does not wait on the rest of Phase 4.

The prose is the part that was actively misleading, because several documents
described the flag as live:

- `main.rs`'s own comment claimed `scripts/frontend-dev/env.sh` was "the only
  thing that sets this". It was not; nothing was.
- `er-obs`'s `Role::Api` was documented as "the control-plane API (and, under
  `ER_DISPATCH_IN_PROCESS`, a dispatcher beside it)".
- `deployment-web-api.yaml` said the flag "is gone from this pod", implying it
  exists elsewhere.
- `docs/parity-roadmap.md` described the local stack as one process draining
  the queue under the flag — which also made the half-up state it mentions
  sound unreachable, when `up.sh` has two processes and checks for exactly it.
- `images.yml` explained a deleted ECR repo with "the in-process dispatcher
  runs the pipeline itself".
- `scripts/frontend-dev/{env,up}.sh` both described the flag as something
  Phase 4 *would* delete.

**`batch-orchestration-design.md`'s §dispatcher paragraph is rewritten**, and
it is the one that mattered most: it was the design doc's own account of what
the dispatcher IS, and it still described claiming, marking `running`,
reconciling in `spawn_blocking` and running the kind in-process under
`ER_DISPATCH_IN_PROCESS=1` inside the merged `web-api` pod. None of that has
been true since §6.7 split the Deployment and Phase 3 moved the work into
pods. It now describes claim-and-plan, the per-attempt Jobs, and the four
things a settle emits — including the `entity.write_back` events added in

`docs/research-runner-startup.md` keeps its historical claim deliberately: it
is a measurement record and says so ("left standing because the measurements
that follow were taken under it"). Only its own correction block is extended.

`make check` green.

Refs #645

* docs(control-plane): the skill said the dispatcher runs kinds in-process

`.claude/skills/er-server-control-plane/SKILL.md` is loaded at the start of
every session that touches the control plane, and its §dispatcher said the
dispatcher does "claim → mark running → reconcile → open the dataset's lake →
run the matching `er-cli` operation **in-process**", ending with "There are no
per-run Kubernetes jobs."

Every clause of that has been false since Phase 3. A skill is worse than a
stale doc when it is wrong, because it is read before the code rather than
after.

It now describes claim-and-plan, one Job per task attempt, the absence of both
the allowlist and the in-process arm, and the four things a settle emits —
noting that three of those four once lived only on the in-process arm and were
silently not happening for as long as that was true, which is the part a reader
needs in order to distrust the right things. The profile seam gets a line,
because "a control task reading the environment itself is a control task
nothing can test" is the kind of constraint that gets re-broken otherwise.

Its references were checked and are clean — which is worth saying, because the
body itself warns that they drift, and names the time they described the queue
as one-active-per-ORG long after the body said per-DATASET.

**`architecture.md` credited an advisory lock with the one-writer-per-dataset
guarantee.** Three partial unique indexes on `jobs` do that
(`jobs_one_active_per_dataset`, `jobs_one_active_org_level`,
`jobs_idempotency`). The advisory lock `pg::claim` takes serves the per-org
COUNT cap, because a COUNT is not index-enforceable. The distinction is not
pedantic: as written, the invariant appeared to depend on a lock that can be
absent while it still holds.

`make check` green (the skills gate included).

Refs #645

* refactor(dispatcher): delete the legacy in-process arm

The thing #645 is named for. `dispatcher.rs` goes from 2,617 lines to 919, and
`reporter.rs`'s 545 go with it.

Thirteen functions, 1,698 lines: `dispatch_claimed` (the whole if-chain),
`run_job` and its kind arms, `dispatch_once_with`, `drain_and_correct`,
`train_and_register` with `train_half` and `register_half`,
`apply_approved_merges`, `provision_tenant`, `provision_dataset`,
`write_back_resolutions`, `apply_and_correct` and `config_from_env`.

`dispatch_once` now claims and plans, and nothing else — the dispatcher runs no
pipeline stage. `dispatch_once_with_executor` folds into it, because with one
path there is nothing to route between. Its mailer and provisioning profile
parameters are gone: the executor owns the settle that sends the run report and
the control task that provisions.

**Without an executor it claims nothing, deliberately.** A dispatcher with no
namespace and no in-cluster identity — every host, so every `make run` — has
nothing to execute a job with, and claiming one would mark a row `running` that
nothing could advance. It returns `Ok(false)` and the loop idles. That is what
the Phase 4 decision (#638) chose for local development, and it is the one
behavioural consequence of this commit that is not simply "less code".

`reporter.rs` is deleted whole, and with it the two guards that existed only to
exempt its synthetic `inproc` launch identity: the executor's cancel sweep no
longer special-cases a `k8s_job_name` of `inproc`, and the attempt-channel's
pod binding no longer excludes that literal — the prefix match would have
refused it anyway, since no Job yields a pod named `inproc-…`.

`pg_attempt_reporter.rs` is deleted rather than ported, as the ticket asks: it
asserts the `inproc` identity, which is the one thing here with no successor.
Every other test that reached the engine through this arm was PORTED first,
across eight files and four earlier commits, which is why this commit can be a
deletion and not a rewrite. That ordering was the whole point: the arm's
coverage moved before the arm went.

What survives in `dispatcher.rs` is what was never the arm: `run_loop`, the
scheduler and S3 ticks, `emit_entity_aggregates`, `run_report_messages` and its
seven unit tests, `entity_event_name`, `create_tenant_database`,
`append_tf_snapshot`, `unix_now`/`fmt_epoch`, and `MAX_APPROVED` — each with a
live caller in the executor, a control task or a pod task.

`dispatch_pg` and `pg::FailureClass` stay. The ticket lists `classify` for
deletion, but `dispatch_pg` is the injected-runner queue harness for
`pg_dispatch`, `pg_profile` and `pg_webhook_deliver` — none of which touch the
pipeline — and it is the only coverage of `pg::claim`'s one-active-per-dataset
enforcement at that level. `fail_or_retry.sql`'s retry branch is production-dead
now and is its own commit, with `pg_job_retry.rs`'s rewrite.

Two generated skill references move with the code: the `ER_TEST_PG_DSN` count
drops to 52, and `reporter.rs` leaves the observability surface listing.

`make check` green. `cargo clippy --all-targets` clean, which is the check that
matters most for a deletion this size — nothing was left orphaned.

Refs #645

* fix(dags): the reconcile had #778's bug too, and a failed one went unrecorded

Three defects and a ninth test port, all surfaced by deleting the legacy arm.

## ReconcileSchema held two sessions — #778's fix did not go far enough

`reconcile_lake_env` opens its own session while the ctx session is attached to
the same catalog, and the ctx session lives to the end of
`exec_task::run_inner`, so it is dropped LAST and writes its earlier view back
over the committed metadata. #778 fixed that in `LakeInit` and stopped there.
The identical pattern was in `ReconcileSchema` — the task `lake_migrate`,
`lake_maintain`, `train` AND `profile` all open with — so the schema reconcile
never persisted on the task path for any kind.

What it looked like: the deploy's tenant sweep reported `migrated` with the
same 22 relations applied on every single run, never converging to `current`.

The legacy arm hid it by reconciling in the dispatcher's own process, one
session. Porting the test is what made it reachable.

One caveat on both fixes: `open_lake_env` honours `ER_LAKE_CATALOG_SCHEMA` and
the pod's `open_order_session` does not. Not a factor for a file catalog, but it
means a pod's session ignores that key — worth knowing before a lake shares a
metadata database.

## A failed reconcile recorded no tenant position

The finish handler writes `tenant_schema_states` from the task's output doc, and
a FAILING task publishes no output. So a breaking lake left the tenant's
recorded position at whatever the last good sweep said — `current` — while the
job correctly failed. The deploy report and the drift check read that table
precisely so they need not open a lake, and they were being told a breaking
tenant was fine.

The legacy arm recorded this "whatever the outcome was", in as many words. The
task path recorded it only on success. Now both: a `reconcile_schema` or
`lake_init` failure records `breaking` for ERR_SCHEMA_BREAKING and `errored`
otherwise, matching what `schema::tenant_state` derives.

## review.resolved had no emit site left

It was emitted ONLY by the legacy arm, so the deletion left a catalogued event
nothing fires. `pg_webhook_catalog.rs` caught it — the gate earning its keep,
because a webhook that stops being sent is invisible from the inside. Ported
into `settle_actions`, which already holds the receipt carrying the
resolutions. Fourth settle consequence found this way, after the run report,
the entity aggregate and `entity.write_back`.

That gate also only scanned `lib.rs` and `dispatcher.rs`; the emit sites have
MOVED to the executor and the control tasks, so it now scans those too.

## pg_migrate_tenants, the ninth port

It passed `None` for the executor and relied on the arm. With the arm gone a
dispatcher without an executor claims nothing, deliberately, so the sweep needs
a real one.

Two expectations changed, both deliberately:

- The retype that makes phase 3's lake breaking is flushed with `DETACH lake`,
  because the reconcile now runs in another process and reads the catalog from
  disk rather than inheriting this one's view.
- `error_class` is `data` where it was `internal`. The class changed with the
  classifier, not the behaviour: `internal` was `pg::FailureClass`'s
  UNCLASSIFIED DEFAULT, and the rules that moved to the executor boundary call
  a schema mismatch what it is. Terminality — what the assertion beside it is
  actually about — is unchanged, since `data` maps to `StageFailure` and is not
  retryable.

## One gate floor lowered

`span_boundaries::the_wrapper_is_actually_used`: 9 → 3. Six of the nine blocking
hops were the arm; the three left are `match_preview`, `resolve` and
`blocking_estimate`, all on the HTTP read path. The test's own message asks for
a deliberate lowering, and the floor still does its job — it stops the
bare-`spawn_blocking` scan beside it from passing vacuously.

`make check` green; the full 107-test er-server tier green against a real
Postgres and DuckLake.

Refs #645

* refactor(jobs): fail_or_retry records a terminal failure; retry is per task

Steps 5 and 6 of #645. The statement decided retry in the same UPDATE that
recorded the failure — a retryable class with attempts left went back to
`queued` behind an exponential backoff, clearing the attempt's stamps — and
that branch WAS the legacy in-process arm's retry. With the arm deleted it had
no production caller left: on the task path a job reaches a terminal state
through `job/update/settle.sql`, and retry is per attempt in
`task_instance/update/{archive_try,insert_retry_try}.sql` with Airflow's budget
arithmetic.

So the branch goes and the statement becomes what its one surviving caller
needs: `state = 'failed'`, `finished_at = now()`, the class and the detail. The
`retryable` param goes with it, which drops `pg::FailureClass::retryable` —
`fail_or_retry` was its ONLY caller, in the whole workspace. An `assert!` that
`TransientIo` is the retryable one would have been decoration after this, so
the four asserts are deleted rather than carried: nothing reads the method, so
nothing could break it. `er_dag::TaskError::retryable` is the live verdict now,
and it is a different type on a different path.

`FailureClass` itself stays, and so does `classify`, for `dispatch_pg` — the
injected-runner queue harness for `pg_dispatch`, `pg_profile` and
`pg_webhook_deliver`. Its arm docs are rewritten, because each one asserted a
retry consequence this type no longer has ("the ONLY class that retries, which
is what makes the UI's 'transient failures retry automatically' true"). What it
carries now is what a steward is TOLD, not what happens next.

**The name overstates what the statement does and is kept anyway.** Renaming it
renames the generated `job::update::fail_or_retry` and every caller with it;
the `or_retry` half is contradicted in the doc comment instead. Statement names
are not append-only here — only lint-rule codes are — so this is a judgement
about blast radius, not a rule.

`jobs.max_attempts` is the column that paid for it: every statement's RETURNING
list still selects it and NONE of them consult it, the requeue branch having
been its only reader. Its description said "Maximum attempts before the job
fails", which is now false, so it says what it is. The column stays — dropping
one is a breaking change the reconciler refuses, and `attempt` is still counted
by `claim` and still spent by `resume`. That description change is why
`openapi.json`, `schema.d.ts` and `Job.ts` move: it reaches the API contract.

## pg_job_retry.rs is pg_job_failure.rs

The file name was the last thing in the tree asserting that a job retries. Its
job-requeue phases are not ported, because what they asserted against is gone;
`pg_task_instances.rs` Phase C already owns the successor behaviour in more
detail than this ever did — the deterministic jitter, the lineage, the M → L
OOM escalation, the exhausted budget.

What is rewritten rather than deleted is the half that was always the point: a
steward can see WHY a job failed. Two assertions are sharper than their
predecessors on purpose:

- the transient failure asserts `failed`, where it used to assert `queued`.
  That is the behaviour change, stated as such.
- "it left the queue" now CLEARS `not_before` before asserting `claim` returns
  nothing. The old assertion held for the retry too — that row was merely
  behind a deadline — so as written it could not tell a terminal failure from a
  backed-off one. Reinstating the requeue branch now fails this test.

The classification table stays, and its duplicate in
`dags::tasks::engine_error_class` is left duplicated deliberately: two
implementations, pinned by two tables, because a shared fixture would pass on
the day they stopped agreeing. Both doc comments now say so and point at each
other.

`make check` green.

Refs #645

* docs(infra): record Phase 4 in the decision log, and re-justify the dispatcher

Step 7 of #645, and the dispatcher's chart resources with it.

## D-ARGO's own revisit trigger fired

"Revisit when a run ever becomes a genuine multi-pod DAG." It is one now, so
the decision is amended rather than left to read as current — and the honest
part is that its STRONGEST argument is void. "The DAG is inside the process",
"no artifact to pass between pods", "Argo would have nothing to orchestrate":
there is a graph now, there are edges, and the edges carry references.

It stands on the two that survive. Two sources of truth for run state is still
fatal, now about a richer table — `task_instances` carries the fingerprints a
resume is checked against. And the retry policy got HARDER to express
elsewhere, not easier: per-attempt budget with Airflow's arithmetic,
deterministic jitter, per-kind base and cap, OOM class escalation, and a
separate `launches` counter for infrastructure failures that ran no user code.
The revisit trigger is restated, since the original is spent: dynamic fan-out
inside a stage, which is the one thing the design refuses outright.

D-JOBSPEC, D-PROGRESS, D-SIZING and D-TENANCY are amended per the plan's table.
D-DISRUPT and D-SPILL are re-affirmed with their reasons stated rather than
left silent — D-DISRUPT's `consolidateAfter` linger is now what makes a per-task
pod cost ~1s instead of a cold node, so it is coupled to D-TASKJOB and must not
be tuned for cost alone.

New: D-TASKJOB, D-CHANNEL, D-FUSION, D-KUEUE. The plan named them and nothing
defined them; each is derived from the design doc's own sections (§3.7, §6.2,
§6.4, §7.3) rather than invented.

## One error had been copied to four places

`architecture.md`, D-TENANCY's title clause, `infrastructure.md` §6's head
paragraph and its §6.4 bullet each credited a session-scoped ADVISORY LOCK with
one-writer-per-dataset. Three partial unique indexes on `jobs` do that. The
advisory lock `pg::claim` takes serves the per-org COUNT cap, because a COUNT is
not index-enforceable.

It matters beyond pedantry in both directions: as written the invariant appeared
to depend on a lock that can be absent while it still holds, and §6's head
paragraph used "a dying pod releases it with no cleanup path" as one of three
arguments FOR pod-per-run. Two of those three still argue for an ephemeral pod.
That one never did. All four are corrected, and the common ancestor is named —
the deleted Python `tenant_lock`.

## infrastructure.md §6

Amended per subsection: `pods/log` out and `events: list` in, Job per task
attempt, TTL 300, progress through the attempt channel rather than a DSN, the
ServiceAccount parameter realised as `er-runner`.

The RBAC paragraph is read off `rbac-dispatcher.yaml` rather than off the
ticket's summary of it, which omitted the `patch` verbs on both `jobs` and
`pods`. Dropping `pods/log` is written up as a containment win and not just
tidiness: it let the control plane read whatever a stage wrote to stderr, which
is tenant data, and the old paragraph's warning that the read "must never
become" a progress stream is now enforced by the API server instead of by
prose.

TTL 300 rather than the sketch's 3600 gets the arithmetic that makes it matter:
a finished Job holds a `count/jobs.batch` slot against no work, and a
seven-task run retains seven of them.

§6 also opens with a dated banner saying the `server/src/erserver/*.py` paths
through it are historical. They are NOT corrected here. Re-deriving every one
is its own pass, and a half-updated map is worse than a clearly dated one.

## The dispatcher's chart resources

`terminationGracePeriodSeconds` 300 -> 60, memory limit 3Gi -> 768Mi, requests
512Mi -> 256Mi. Both were justified ENTIRELY by the legacy arm — "a killed
legacy run strands its row holding the dataset's writer lock", and "runs whole
legacy pipelines in-process (DuckDB included)" — which is the evaporation the
ticket predicted.

What replaces the 300s is not optimism: planning is one transaction that rolls
back to `queued` with `attempt` unchanged and zero task rows, the work itself is
in Jobs that outlive the pod, and `Executor::adopt` re-stamps `owner_epoch` on
both the job and the task_instance rows at startup — so the next dispatcher
takes over what this one was driving instead of leaving it for `resume_job` and
a human. What is left to drain is one pass of Postgres writes plus at worst one
SES send and a webhook drain.

The memory ceiling goes because this arm opens no lake at all: the reconcile
moved onto the task path, and a control task is structurally barred from linking
engine code. DuckDB is still linked into the shared multicall image, which is
why the comment says so — nothing on this arm calls it.

## Two things found while doing it

**The `ships` column in the generated observability surface is a substring
grep.** `skills-check` decides whether an `er_obs::init::Role` ships as a
workload with `grep -rqlF "$service" infra/k8s/charts`, so writing the words
`dedupe_core` in a chart COMMENT — explaining what a control task may not link
— flipped `Dedupe` from "no — local tool" to "yes" in a generated table, against
`is_unattended`'s own `Dedupe => false`. Worked around by keeping engine crate
names out of that file, with a comment saying why so the next person does not
re-trip it. The detector is still wrong for anyone who legitimately needs the
word, and that is worth its own change rather than a drive-by here.

**`CLAUDE.md` and `agent-skills.md` are regenerated**, not hand-edited. The
rebase replayed this branch's older copies of their generated blocks over
`main`'s `a241585b`, which had set `claim-ticket`'s `disable-model-invocation:
false` and so dropped the "(user-invoked only)" tail from the derived rows. The
frontmatter arrived correct and the tables did not, which is exactly the drift
the byte-comparison exists to catch.

`make check` green.

Refs #645

---------

Co-authored-by: bmoore813 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apply_corrections applies nothing on the executor path and reports success

2 participants