Skip to main content

Carry an AlgoVoi keystone decision into a crewAI run: a recomputable execution_ref under algovoi.keystone.*, verifiable offline

Project description

algovoi-keystone-crewai

Carry an AlgoVoi keystone decision into a crewAI run. The decision's content-addressed execution_ref is recorded into the crew's run under algovoi.keystone.* (never inside a crewAI reserved field), so anyone reading the run recomputes it offline with only JCS (RFC 8785) and SHA-256 and confirms the action is consistent with the decision that authorized it.

from algovoi_keystone_crewai import keystone_step_callback, verify_trace_execution_ref

sink = []
crew = Crew(
    agents=[...], tasks=[...],
    step_callback=keystone_step_callback(
        decision_ref="sha256:2a444c62...", action_type="payment", scope="bilateral",
        outcome="COMMITTED", executed_at_ms=1716460800000, sink=sink,
    ),
)
crew.kickoff()
verify_trace_execution_ref(sink[0])   # True iff execution_ref recomputes

keystone_trace_metadata(...) returns the framework-neutral attribute dict. The package never imports crewAI (the callback is a plain callable), so there is no version coupling. Apache-2.0.

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

algovoi_keystone_crewai-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

algovoi_keystone_crewai-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file algovoi_keystone_crewai-0.1.0.tar.gz.

File metadata

  • Download URL: algovoi_keystone_crewai-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for algovoi_keystone_crewai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4dfe7063b8b57caef5d668615f7e1d39d59f6c76d182c673d8f4e4bdfb86a235
MD5 2048e5bdce356bfb23ec41d861ef1afb
BLAKE2b-256 9cc79f31c7f534b3af81b8f109ee34d591e9a25cdff40edfee4481dea465d1a4

See more details on using hashes here.

File details

Details for the file algovoi_keystone_crewai-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for algovoi_keystone_crewai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 125a2aa56eb7dc3bd9b7c1d7ff95b9752b958a785377f9a23dddcdb4e4a29812
MD5 3bd9ede8334153a72a286c50d4556495
BLAKE2b-256 9e2677ca8d8ca6f8c6da60deee450dda15deaf6af47347320cc00ca0b2ac77fa

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