Skip to main content

assurance-authority

tests PyPI License

May this task proceed for the person who asked, without borrowing someone else's access?

Install

pip install assurance-authority
# or: pip install assurance   # every tool

Quick start

$ assurance-authority --example
1 of 3 tasks may proceed for the person who asked — 1 moved owner — 1 refused

  team roster      priya           proceed
  Q3 margin memo   priya           escalate_ownership  -> CFO
      Priya (intern) may not receive finance-confidential, and CFO may. The task moves to CFO rather than the answer moving to Priya (intern).
  payroll extract  drafting-agent  refuse
      Drafting agent may not receive payroll, and nobody offered can. The task stops here.

These are three people in a built-in example, not your organisation. `assurance-authority --example --write team.json` saves the declaration that produced this, so you can edit it into yours.

As a library:

from assurance_authority import loads, review

declaration = loads("""
{
  "principals": [
    {"id": "intern-42", "name": "Priya", "may_receive": ["general"]},
    {"id": "cfo-1",     "name": "CFO",   "may_receive": ["general", "finance-confidential"]}
  ],
  "tasks": [
    {"name": "Q3 margin memo", "initiator": "intern-42", "requires": ["finance-confidential"]}
  ]
}
""")

result = review(declaration)
row = result.rows[0]

assert row.resolution.resolution.value == "escalate_ownership"
assert row.delivered is False
assert row.new_owner == "CFO"

What it checks

  • Whether the asker's clearance covers what the task requires
  • Escalate ownership (task moves) vs refuse (nobody may own it) vs proceed
  • That the answer never moves to someone who was not cleared — only the task may

In CI

assurance-authority team.json --fail-on-escalation
exit means
0 every task may proceed for the person who asked
1 --fail-on-escalation found a task that cannot be delivered to its initiator
2 declaration could not be read

Limits

  • Review of declarations, not runtime enforcement (that lives in assurance_core.principal).
  • Opaque label sets only — it never interprets what a clearance means.
  • Useless alone — with one principal and no permission model, everything proceeds.
  • Does not fetch context or produce answers; it only decides who may receive them.

See the root README and CHANGELOG.md.

Metadata

Release files for assurance-authority 0.1.5

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

Source distribution (sdist)

Source distribution for assurance-authority 0.1.5
File Size Uploaded Provenance Actions
assurance_authority-0.1.5.tar.gz 21.3 kB With provenance Details for assurance_authority-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for assurance-authority 0.1.5
File Interpreter ABI Platform Actions
assurance_authority-0.1.5-py3-none-any.whl Python 3 none any Details for assurance_authority-0.1.5-py3-none-any.whl

Total release size: 39.2 kB

Release files / assurance_authority-0.1.5.tar.gz

Download URL assurance_authority-0.1.5.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
42f3836f8a5c7d82035dd2570bb31144b608570c2727a488877b323bd991ccaa
BLAKE2b-256 checksum
How to use checksums
0c7a1ed428109f4f59d7cf67e419440259a6c4b78a6c992a69fc72ad51c5fb3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / assurance_authority-0.1.5-py3-none-any.whl

Download URL assurance_authority-0.1.5-py3-none-any.whl
Size 17.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f60567007f4709175e45869c496137d2f38332243834e5c369af19b65b3968ee
BLAKE2b-256 checksum
How to use checksums
58e6e7077c9d81096c1012c3da8633fb450edc958723e2ba1103ee20c27357f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for assurance-authority 0.1.5

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for assurance_authority-0.1.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

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.

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