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

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
data

Research direction

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.

Written by the indexing model from the issue text.

Description

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

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.