Provenance Stamp
provenance_stampGenerate a .provenance.json sidecar for any artifact, recording sha256 checksum, file size, git metadata, author, tags, and notes to enable offline provenance tracking.
Instructions
Writes a .provenance.json sidecar next to a saved artifact (tox, recipe note, recipe bundle, component bundle). Records the sha256 checksum, file size, mtime, source COMP path, originating tdmcp tool, toolchain versions, best-effort git metadata, author, tags, and freeform notes. Offline — no TD bridge required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artifact_path | Yes | Absolute or vault-resolved path to the file to stamp. | |
| artifact_kind | No | What kind of artifact this is — hint only, not validated. | other |
| source | No | Where/what produced this artifact. | |
| author | No | Author label. Defaults to TDMCP_AUTHOR env var then os.userInfo().username. | |
| tags | No | Free-form tags for vault search. | |
| notes | No | Short human note to attach to the sidecar. | |
| extra | No | Tool-specific extras, e.g. {nodes:7, connections:9}. | |
| overwrite | No | Replace an existing sidecar. Set false to refuse if one exists. | |
| include_git | No | Capture git commit/branch/dirty from the artifact's directory (best-effort). |