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.3.1.tar.gz (9.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.3.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plumb_line_provenance-0.3.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for plumb_line_provenance-0.3.1.tar.gz
Algorithm Hash digest
SHA256 14a7b8a4f6249da822b2681137b26846e4985fb9c02d7d4167a21fe9af52d41c
MD5 0d7098b6817aa6bc9abbf81177b3c295
BLAKE2b-256 29b20f6a58c710bda2a6abd31dc7e7160254c168da3d816d366a67d86f8ffa53

See more details on using hashes here.

Provenance

The following attestation bundles were made for plumb_line_provenance-0.3.1.tar.gz:

Publisher: release.yml on effythealien/plumb-line

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for plumb_line_provenance-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 025bf579ad7a88563cf19657a9795b4fd3e0f78740c70ac131fb04de4b3c2264
MD5 d1fd62a858cbfc8513959b16b2014bbd
BLAKE2b-256 bba511c70448d554f56893b353cffc88b09bb60d08ec7699664f9eee30b695e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for plumb_line_provenance-0.3.1-py3-none-any.whl:

Publisher: release.yml on effythealien/plumb-line

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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