Repository navigation
fix(train): an account dataset trains on the account corpus (#1369) - #1430
Merged
Merged
Conversation
run_train fitted on int_std_records and the train DAG task probed only that
relation, so on an account lake training returned NoOp ("nothing to train")
and never fitted. TrainInputs now carries the lake's entity type, run_train
registers er_cli::std_relation(entity_type), and the train task probes the
same relation. The CLI's train command stays person, its only lake shape.
pg_train_acct_dag runs a train job through the DAG on an operator-created
account dataset: it registers an account draft whose comparisons differ from
the template. With std_relation pinned to the person relation, the job is a
NoOp and the test fails (no version registered).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
temporarily deployed
to
marketing-preview
November 29, 2026 09:58 — 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 #1369
What
er_cli::TrainInputsgainsentity_type.run_trainfits oner_cli::std_relation(entity_type), which isacct_int_std_recordsfor an account lake.trainDAG task probes that same relation and passesrun.config.entity_type. The CLItraincommand stays on the person relation, its only lake shape.std_corpus(config)(from Account datasets: match-preview and blocking-estimate read only int_std_records #1368) now delegates tostd_relation, so the mapping lives in one place.pg_train_acct_dag.Why
The train task's probe checked only
int_std_records, so on an account dataset it returned NoOp ("nothing to train") andrun_train's account fit could never run. Found by the #547 support audit.Proof
pg_train_acct_dag: a realtrainjob runs through the DAG on an operator-createdentity_type: accountdataset withacct_baseimported. It registers one new version,trained-{job}, as anaccountdraft whosecomparisonsdiffer from theacct_model_v1template.std_relationpinned toint_std_records, the same test fails:training registered a version (a NoOp registers none): [].make check: exit 0. The personlake_e2etrain tests are updated and pass.Risk & rollback
A new required field on
TrainInputs, and every caller is updated. Person training reads the same relation as before. Rollback isgit revert <merge-sha>.Post-merge ledger
Closed by: merge
23898c53(squash of #1430)mainis 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:
23898c53: rust 46249955144, frontend 46249955116, infra 46249955188, devcontainer 46249955174, images 46249955170 all success.imagesbuilt, or correctly never ran because nothing that goes intoan image changed: built: images 46249955170 success, er-api
23898c53 -> sha256:77ba6c06….deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: deploy 46250397121. The API launch gate printed
production now serves the contract of 23898c53514cf88d7911809358b93d29f2c87794.deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: deploy green. drift stays knowingly red on
alert path (a confirmed subscriber), which waits on the operator's SNS email confirmation (The er-alerts SNS email subscription has never been confirmed — 19 armed alarms reach nobody #1107) and is unrelated to this change.Donethrough the automation rather than byhand, and the issue closed: Account datasets: training silently no-ops (fits on int_std_records only) #1369 CLOSED by the merge, Product Roadmap → Done via automation.
(a skill, a reference, memory) — or nothing new was learned: nothing new:
er_cli::std_relation(entity_type)is now the single map from entity type to standardized relation, recorded in its doc comment.Specific to this change
🤖 Generated with Claude Code