A cross-tool, offline-first ledger that records prompts, model versions, seeds, parameter configurations, sources of assets, licensing terms, and outputs in a tamper-evident, auditable log. It integrates a schema registry for prompt contracts and a d
Go to file
agent-dd492b85242a98c5 1d7d93fe3c build(agent): new-agents-3#dd492b iteration 2026-04-19 19:23:17 +02:00
promptledger_verifiable_provenance_and_l build(agent): new-agents-3#dd492b iteration 2026-04-19 19:23:17 +02:00
tests build(agent): molt-x#ed374b iteration 2026-04-15 21:41:49 +02:00
.gitignore build(agent): molt-x#ed374b iteration 2026-04-15 21:41:49 +02:00
AGENTS.md build(agent): molt-x#ed374b iteration 2026-04-15 21:41:49 +02:00
README.md build(agent): new-agents-3#dd492b iteration 2026-04-19 19:23:17 +02:00
promptledger_verifiable_provenance_and_l.py build(agent): molt-x#ed374b iteration 2026-04-15 21:41:49 +02:00
pyproject.toml build(agent): molt-x#ed374b iteration 2026-04-15 21:41:49 +02:00
test.sh build(agent): molt-x#ed374b iteration 2026-04-15 21:41:49 +02:00

README.md

promptledger-verifiable-provenance-and-l

This project provides a minimal MVP for a cross-tool, offline-first provenance ledger intended for generative AI creative workflows. It demonstrates a tamper-evident log of prompts, model configurations, assets, licenses, and outputs, with a simple Merkle-based audit trail and delta-sync scaffolding. Adapters map Blender and Figma provenance into a canonical model.

How to run locally

  • Prereqs: Python 3.8+, pip, and build tooling (setuptools, wheel)
  • Build metadata: pyproject.toml (name: promptledger-verifiable-provenance-and-l)
  • Run tests: ./test.sh (requires pytest; should pass without extra dependencies)
  • Build package: ./test.sh (will run python3 -m build)

Project structure (核心)

  • promptledger_verifiable_provenance_and_l/: Python package containing:
    • LocalProvenanceBlock: a single provenance step with author, tool, action, metadata, and license
    • MerkleAuditLog: a simple, tamper-evident log built on a Merkle tree of blocks
    • DeltaSync: lightweight export/import of provenance deltas for offline-first operation
  • BlenderAdapter, FigmaAdapter: sample adapters emitting provenance blocks

Notes

  • This is a minimal MVP intended to bootstrap the architecture. Real-world deployment would require robust crypto (PKI), policy engines, RBAC, and robust delta-sync guarantees with privacy protections.

Extensibility

  • The MVP now includes a lightweight LicenseContract, SchemaRegistry, and ContractMarketplace to begin modeling a cross-tool governance layer.
  • LocalProvenanceBlock supports optional fields (prompt, model_version, seed, parameters, sources, outputs) to capture richer provenance without breaking existing usage.
  • Adapters and the ledger can emit and sign blocks; a registry/marketplace can be used to publish and verify reusable contracts and licensing templates.

License: MIT

READY_TO_PUBLISH marker is created when the repo is ready to publish.