Skip to main content

Validate keystone execution evidence (recompute, decision-binding, tamper) with structured error logging -- the verifier companion to the keystone connectors (keystone-only edition, Apache-2.0)

Project description

algovoi-keystone-validate

Keystone Integration

Validate a batch of keystone execution_ref records -- recompute each offline, check decision-binding, detect tampering -- and log what failed and why. The verifier companion to the keystone connectors. Open, keystone-only edition, Apache-2.0. Available on request -- see https://docs.algovoi.co.uk/keystone-connectors

keystone-validate records.jsonl --log errors.jsonl --decision-ref sha256:...
# keystone-validate: 14 records | 12 ok | 1 integrity | 1 operational | 0 malformed | trustworthy=False
from algovoi_keystone_validate import validate_records
report = validate_records(connector_records, expected_decision_ref="sha256:...")
report["trustworthy"]   # False if any integrity / malformed error

It separates two failure classes operators must not confuse:

  • Integrity error -- the recorded fields do not recompute to the claimed execution_ref (tampering / corruption); the evidence cannot be trusted.
  • Operational error -- the execution_ref is valid, but it records an operation whose outcome was FAILED (a real runtime failure the connector captured -- trustworthy evidence of a failure).

Plus malformed (missing fields / bad outcome / bad timestamp). The validator never trusts the claimed hash; it always recomputes. Exit 0 unless an integrity/malformed error is present (--strict also fails on operational failures).

License

Apache-2.0. Copyright AlgoVoi.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

algovoi_keystone_validate-0.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (257.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

algovoi_keystone_validate-0.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (268.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

algovoi_keystone_validate-0.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (245.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

algovoi_keystone_validate-0.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (230.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file algovoi_keystone_validate-0.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for algovoi_keystone_validate-0.2.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 db02fa69eed0133e6451af62ce265a7be9f0040ff2e123b39964c57d41a95067
MD5 1fc5d27c32cfc40a96c6a59119b954c5
BLAKE2b-256 5d62dc8bd26b9877e5cebc2cdbbded70b44c287aeb1f1f0715c1364ae92a2f0f

See more details on using hashes here.

File details

Details for the file algovoi_keystone_validate-0.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for algovoi_keystone_validate-0.2.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7f26b28165d0260308d27c472bfe1503033833eca723aefbbe1d236c03be3fc4
MD5 eaa78ea9c94a4c7b17638417396caed5
BLAKE2b-256 25ab7b3ed5be86af823c404ee60eb6db0e62367556b69133ddc3bf9e1e7e7411

See more details on using hashes here.

File details

Details for the file algovoi_keystone_validate-0.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for algovoi_keystone_validate-0.2.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6c2dcc958c135fecdf988074272a8570cc840bd57d121acd4171965cef5e9c60
MD5 96bf95cdb901cb68a45e9237479347ac
BLAKE2b-256 f7a76312e6341c4779b328e3c016b7a7039064ef33475fdec25cf95da4b43324

See more details on using hashes here.

File details

Details for the file algovoi_keystone_validate-0.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for algovoi_keystone_validate-0.2.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9b96781cf30576505965d2e51a76ce8d89d293567964886ffa30c990c0b8addf
MD5 475b7248d263a0beca113e6b29b0c440
BLAKE2b-256 a16f0062ffe50b793c95b74b518e0ff7166bb371060a711ee915e551a44d7521

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