[EPIC] pipekit-experiment: registry lifecycle, trackers and lineage

Open
#151 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend, databases

Research direction

Start with the symbols and destinations in the issue’s table, then inspect the referenced source at 7c446f1; the epic says its claims were checked there except where marked unverified. The work spans registry lifecycle, tracking, adapters, training, reruns, and lineage, so first identify which child issue has been filed before choosing an entry point. Done means each proposed row is filed and closed or removed with a reason, and the listed lifecycle, tracker, and lineage requirements are met.

Written by the indexing model from the issue text.

Description

area:code priority:p2 type:epic-theme

Theme

pipekit-experiment gets a registry with a lifecycle, trackers that exist, and artifacts that can be rerun and traced to their parents.

Parent Wave

None. This comes from geostack report 12, workstreams A to E, and report 17, workstream B.

Motivation

pipekit-experiment defines the ExperimentTracker protocol at 7c446f1 but ships no tracker, so nothing writes a run's metrics out of the box.
Its registry can store and tag, but it can't delete, garbage-collect or say which model depends on which.
Later waves that need versioned packaged pipelines (jejjohnson/geostack#73, jejjohnson/geostack#76) will build on this package, so it matters that its contract is settled first.

This epic sets the scope only.
Its children aren't filed yet, because nothing depends on them today; each row below becomes one issue when the work starts, and the claims in "At 7c446f1" were checked against the source.

Issues

Proposed issue Symbols and destination At 7c446f1
feat(experiment): rebuild a model with weights on load load(ref, like=None) calls like.from_registry(self, ref) load(self, ref) has no like
fix(experiment): put a weightless model's architecture in its hash JaxModelOp.state, EquinoxModelOp.state, or a check in store Per report 12, Linear(40, 40) and Linear(3, 7) share a hash without weights (unverified at this pin)
feat(experiment): registry lifecycle gc(keep=...), delete(hash), untag(name), and _tags/_history.jsonl recording each tag move None exist
feat(experiment): a public registry address ModelRegistry.location, used for model_registry_uri in callbacks.py _where() is private, and Checkpoint writes registry://<hash>, which doesn't say which registry
feat(experiment): JSONLTracker pipekit_experiment.trackers: a directory per run with config.json, metrics.jsonl and artifacts.json No tracker ships
feat(experiment): MLflow and W&B adapters MLflowTracker, WandbTracker, MLflowModelRegistry in adapters/ adapters/ holds only dvc.py, hydra.py and metaflow.py
fix(train): normalise the tracker run id _run_id(handle) in loop.py, and log_artifact at train end loop.py stores repr(run) and only when run has __getitem__
feat(experiment): rerun and hash-only pins TrainingArtifact.rerun(build_loop), and hash-only pins in InferenceArtifact No rerun exists
feat(experiment): lineage in the hashed payload store(op, *, parents=()) writes lineage.json; ArtifactLineage; dependents(hash), descendants(hash) None exist
feat(experiment): run records RunMetrics.to_dataframe(), and RunArtifacts.attach accepting a Path or Operator attach(name, uri) takes a string; no to_dataframe
fix(experiment): orchestration adapters Nested _target_ in hydra.py, self.next(...) in metaflow.py, YAML parsing of .dvc pointers in dvc.py Per report 12 (unverified at this pin)

Execution Notes

Lineage goes in the hash, so it changes hashes, and it should land before anything depends on them long-term.
JSONLTracker should come before the MLflow and W&B adapters, because it is the testable offline reference.

Parallelism

  • Can run in parallel with: #152, although report 15's ArtifactStore should share this epic's storage layout.
  • Blocked by (inside this wave): none.
  • Must complete before: the pipeline primitives of jejjohnson/geostack#73, if jejjohnson/geostack#76 chooses external provenance.

Definition of Done

  • Every row above is filed as a sub-issue and closed, or removed with a reason.
  • A tag moves only with force=True, and each move appends to the history.
  • JSONLTracker writes a run that a test reads back.
  • Replacing a tag can't change a model's lineage, because the lineage is inside the hash.

Relationships

  • Parent: none.
  • Related: geostack docs/reports/12_pipekit_experiment.md, geostack docs/reports/17_cycle.md, jejjohnson/geostack#76, #152
Dominant language
Python
Stars
0
Forks
0
Avg merge
3h 50m
Merged PRs (30d)
143

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jejjohnson/pipekit

All issues in jejjohnson/pipekit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.