Repository navigation
fix(train): settle as a no-op on a dataset with nothing ingested yet (#1186) - #1188
Merged
Merged
Conversation
3 tasks
#1186. A customer's first config publish on a never-ingested dataset enqueues `train`, which failed: `Table with name int_std_records does not exist`. An API-only tenant saw a failed job right after onboarding, though nothing was wrong. frontend/dev/seed.mjs works around it by pre-seeding with the CLI. - `Train` probes `int_std_records`. When it is absent, the task returns `Outcome::NoOp` with an empty `TrainedModel`. The active model stays until data exists. - `RegisterModel` registers nothing for an empty `model_path`. - `TrainedModel` derives Default; its doc says empty paths mean nothing was trained. The check is on the lake, not on delivery history in the publish handler: bring-your-own tenants ingest from drop directories without delivery rows and would have stopped retraining. pg_launch_proof now asserts the publish-time `train` succeeds and that `/models` shows no `trained-` row. Mutation-checked: disabling the no-op brings back the original failure. pg_train (training with data) is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7 tasks done
athvin
force-pushed
the
issue/1186-train-noop
branch
from
November 23, 2026 19:24
b018d44 to
420f291
Compare
athvin
marked this pull request as ready for review
November 23, 2026 19:24
athvin
temporarily deployed
to
marketing-preview
November 23, 2026 19:32 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1186
What
trainsettles as a no-op on a dataset with no standardized records yet, instead of failing on the missingint_std_recordstable.register_modelregisters nothing for that outcome, and the active model stays until data exists.Why
#1186, found by the #1013 launch proof. A customer's first config publish on a fresh dataset enqueued a
trainthat failed, so an API-only tenant saw a failed job right after onboarding. (frontend/dev/seed.mjspre-seeds the lake with the CLI to avoid it.) The check lives on the lake rather than on delivery history in the publish handler, because bring-your-own tenants ingest from drop directories without delivery rows.Proof
pg_launch_proofnow asserts the publish-timetrainsucceeds and/modelsshows notrained-row. Mutation-checked: disabling the no-op brings back the originalint_std_recordsfailure.pg_train(training with data registers a draft) is unchanged and passes.make check: exit 0, 1134 passed / 0 failed.Risk & rollback
int_std_recordstrains exactly as before.git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306onMac· 2026-11-23T20:04:25Zmainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not:
802127db. rust 45249930073, frontend 45249930190, infra 45249929999 and devcontainer 45249930147 are all success.imagesbuilt, or correctly never ran because nothing that goes intoan image changed: images 45249930164 success.
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: verified 2026-11-23 after SSO refresh: dev
ci/web-api-green-55b8644b5d-kh675and prodapp/web-api-blue-84f48dd5cb-g7jv9both runer-api@sha256:b6ed9097…, ECR-tagged802127db, and theirer-servercontainer emitted"message":"er-server listening","addr":"0.0.0.0:8000"(dev 21:50:56Z, prod 19:36:00Z). The dispatcher in both runs the same digest.802127dbcontains this merge (git merge-base --is-ancestor). Earlier evidence: deploy 45250458243 carriesDEPLOY_SHA 802127db; the new colour answered/readyz -> 200and traffic was verified in dev and prod. A pod log line could not be read: local SSO expired.deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: deploy is green. drift and kind have been red since before this change (the known kind-probe red).
Donethrough the automation rather than byhand, and the issue closed: First config publish on a never-ingested dataset enqueues a train job that fails #1186 CLOSED by the merge, and the card is
Done.(a skill, a reference, memory) — or nothing new was learned:
TrainedModel's doc andTrain's comment record the empty-lake no-op and why it is lake-based, not delivery-based.Specific to this change
Context — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files