feat(experiment): RecipeStamp — record the recipe on every product

Aperta
#235 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
data

Direzione di ricerca

Start by reading pipekit_ops/hashing.py at the referenced pipeline_hash and sha256_hex implementations, then review the Recipe registries design page for context. Implement the frozen RecipeStamp, stamping and attribute conversion APIs, and the requested top-level export. Done means deterministic stamps, a changed hash for a config change, an attrs round trip, and lock_hash=None when no lockfile is present.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:code priority:p2 type:feature

Problem / Request

A product does not say which operator graph, weights, package versions or lockfile produced it.

Proposed API

import pipekit_experiment as pke

# proposed (G)
recipe = pke.stamp(pipeline, weights=weights, registry_uri=uri)
recipe.pipeline_hash, recipe.registry_uri, recipe.versions, recipe.lock_hash
recipe.to_attrs()                               # dict for Zarr / STAC

References & Existing Code

Implementation Steps

  1. Frozen RecipeStamp(pipeline_hash, registry_uri, versions, lock_hash).
  2. stamp() uses pipeline_hash and pipekit_ops.hashing.sha256_hex; export sha256_hex at the top level.
  3. to_attrs / from_attrs for Zarr attributes and STAC properties.

Definition of Done

  • Same pipeline + weights → same stamp; one config change → different hash.

Testing

Determinism; attrs round trip; lockfile absent → lock_hash=None.

Documentation

  • Docstring with a doctested example; a line in the package README.
  • Update the design page's status for this workstream.

Relationships

  • Parent: #234

Pins checked: geostack 343d60e, geotoolz 640670c, pipekit 9e86a56.


Generated by Claude Code

Lingua principale
Python
Stelle
0
Fork
0
Merge medio
3h 50m
PR unite (30g)
143

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di jejjohnson/pipekit

Tutte le issue di jejjohnson/pipekit

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.