Skip to main content

harnessweaver-cel

A first-party HarnessWeaver plugin for CEL policies. It contributes cel.policy, a PolicyEngine that evaluates policy.rules in full CEL through cel-python.

It is built on the same plugin contract any third-party plugin uses: one hw.Plugin object, published through the harnessweaver.plugins entry point under the namespace cel (see DESIGNS.md No. 13).

uv add harnessweaver-cel        # or: uv add "harnessweaver[cel]"
policy:
  use: cel.policy
  default_effect: allow
  rules:
    - { id: big-refunds, when: "args.amount_usd > 100", effect: require_approval }
    - { id: contractors, when: "principal.roles.exists(r, r == 'contractor')", effect: deny }

Rules combine exactly as they do in the built-in cel_lite engine (ADR-0025), and both pass the shared governor fixtures. Full CEL is stricter than cel-lite: it doesn't mix ints and doubles (1 + 0.5 is an error), and an error in a rule counts as unevaluable, so deny and require_approval rules still apply. The tests list every expr fixture where cel-python 0.5 and cel-lite differ, and why.

Rules are compiled when the harness loads, so invalid CEL fails then. Importing the plugin imports nothing from cel-python (S8).

Conformance

From this package's directory (at the repository root, make conformance checks every first-party plugin):

uv run pytest --harnessweaver-conformance=cel

Metadata

Release files for harnessweaver-cel 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for harnessweaver-cel 0.1.1
File Size Uploaded Provenance Actions
harnessweaver_cel-0.1.1.tar.gz 9.3 kB Without provenance Details for harnessweaver_cel-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for harnessweaver-cel 0.1.1
File Interpreter ABI Platform Actions
harnessweaver_cel-0.1.1-py3-none-any.whl Python 3 none any Details for harnessweaver_cel-0.1.1-py3-none-any.whl

Total release size: 17.7 kB

Release files / harnessweaver_cel-0.1.1.tar.gz

Download URL harnessweaver_cel-0.1.1.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0daaf3dc37465d6c6c27dd1596b63d37a575d9376dbdc6e76aafc194e1d5a224
BLAKE2b-256 checksum
How to use checksums
9bab843b78c6d6681a60c141aae83c789aa086addf181031662e12dbd5350e02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / harnessweaver_cel-0.1.1-py3-none-any.whl

Download URL harnessweaver_cel-0.1.1-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9144fae3ee468099635c9a506239fb7c9b73f149d536d35532ec37fa7b68c02a
BLAKE2b-256 checksum
How to use checksums
980cf46240153e405c8bb8b9c2ff0e2bd156fa077ed4911d8b3cfa88c851f14c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for harnessweaver-cel 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page