Skip to main content

Conservative provenance/confidence/lineage envelope with a taint-propagation combination law. Mock or low-confidence data cannot launder itself clean.

Project description

plumb-line-provenance (Python)

A conservative provenance / confidence / lineage envelope with a taint-propagation combination law: once any input is mock or low-confidence, every value derived from it inherits that taint automatically — there is no escape hatch that silently clears the flag.

from plumb_line_provenance import mark, derive, meta_of, audit_meta

base = mark(1000, source='real', confidence='high')
rate = mark(1.25, source='mock', confidence='low')
total = derive([base, rate], lambda a, r: a * r)

total['meta']['derived_from_mock']  # True  — inherited from rate, cannot be cleared
total['meta']['confidence']         # 'low' — only as certain as the weakest input
audit_meta(meta_of(total))          # []    — internally consistent

You can also copy the module files directly into a project and import them flat (from marked import mark); both styles work.

  • Specification: SPEC.md (envelope schema version 1)
  • Model, law, examples: README.md
  • License: Apache-2.0

JavaScript parity package: plumb-line-provenance on npm.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plumb_line_provenance-0.2.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plumb_line_provenance-0.2.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file plumb_line_provenance-0.2.0.tar.gz.

File metadata

  • Download URL: plumb_line_provenance-0.2.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for plumb_line_provenance-0.2.0.tar.gz
Algorithm Hash digest
SHA256 58d852e704c4b6a787c171950344a8bde4dcb7f83f81ece7f1f052e2542c0ffd
MD5 571956e2dfdd481c7de0c9a4954a4f38
BLAKE2b-256 765be95038ffd7dd6e852c6a4bc548409b198220da4338bf1ad2c8fc0680657b

See more details on using hashes here.

File details

Details for the file plumb_line_provenance-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for plumb_line_provenance-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca46db95498d8a2a4d5fb98a61eddd434a343745ccbf81bac57864f0463bfdab
MD5 20ab691870b80b97dbce3ac50225983a
BLAKE2b-256 d3d28eca134d349f1c0daa3a1e466aa58150232d935cbfeec4643dc4b128df70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page