Skip to content

fix(train): an account dataset trains on the account corpus (#1369) - #1430

Merged
athvin merged 2 commits into
mainfrom
fix/1369-account-training
Nov 29, 2026
Merged

athvin merged 2 commits into
mainfrom
fix/1369-account-training

Conversation

@athvin

@athvin athvin commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Closes #1369

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

  • er_cli::TrainInputs gains entity_type. run_train fits on er_cli::std_relation(entity_type), which is acct_int_std_records for an account lake.
  • The train DAG task probes that same relation and passes run.config.entity_type. The CLI train command 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 to std_relation, so the mapping lives in one place.
  • New 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") and run_train's account fit could never run. Found by the #547 support audit.

Proof

  • pg_train_acct_dag: a real train job runs through the DAG on an operator-created entity_type: account dataset with acct_base imported. It registers one new version, trained-{job}, as an account draft whose comparisons differ from the acct_model_v1 template.
  • With std_relation pinned to int_std_records, the same test fails: training registered a version (a NoOp registers none): [].
  • make check: exit 0. The person lake_e2e train 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 is git revert <merge-sha>.

Post-merge ledger

Closed by: merge 23898c53 (squash of #1430)

Specific to this change

🤖 Generated with Claude Code

bmoore813 and others added 2 commits November 29, 2026 01:39
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]>
@athvin
athvin merged commit 23898c5 into main Nov 29, 2026
43 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 29, 2026 09:58 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — 7aee40d2 Deployed Nov 29, 2026 by athvin via remove closed PR previews #158
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.

Account datasets: training silently no-ops (fits on int_std_records only)

2 participants