Skip to main content

commensa-audit

Current status: This package is an earlier public snapshot of the deterministic git-audit method behind today's Commensa Report. Version 0.3.1 clarifies the product identity and public links; it does not contain the current private Commensa engine, Cockpit, Commensa Manager, Project X-Ray, or other licensed capabilities.

The current product is Commensa Report + Cockpit. See the current documentation for supported installation, terminology, capabilities, privacy boundaries, and purchasing.

commensa-audit reads GitHub pull-request history and produces a local, self-contained snapshot containing:

  • corrective share by pull request and changed line;
  • superseded merged work;
  • attempts closed without merging;
  • chains of pull requests rewriting earlier work;
  • line survival;
  • corrective hotspots by module; and
  • a lower-bound count of explicit coding-agent markers.

The current product calls the corrective share of changed lines the Commensa Drift Index. This historical package predates parts of the current vocabulary, evidence model, local-clone workflow, and product architecture.

Install & run

pip install commensa-audit
commensa-audit --repo owner/name --token $GH_TOKEN

Output: report_<repo>.html (self-contained, forwardable), audit_<repo>.json (raw numbers), units.csv (per-PR data).

Scoping large repos

By default the audit covers the newest 500 PRs — a safety cap so a naive run on a huge repo stays fast and bounded. When it truncates, the run prints a notice telling you how to raise it. Two optional flags control the window (both newest-first):

commensa-audit --repo frappe/erpnext --since 2026-03-14 --max-prs 150
  • --since YYYY-MM-DD — only PRs created on/after this UTC date
  • --max-prs N — cap to the N newest PRs (default 500; use --max-prs 0 for no cap)

Both early-stop pagination, so --max-prs 150 costs ~150 PRs' worth of API calls, not the repo's entire history. Run with no flags on a repo under 500 PRs and you get everything, exactly as before.

Privacy boundary of this snapshot

  • Read-only. GET requests only; a token with read scope is sufficient.
  • Local output. Reports are generated on your machine. The package sends no telemetry to Commensa; repository mode calls GitHub's API with the token and repository name you provide.
  • Inspectable distribution. The published wheel and source distribution contain the snapshot's Python source and its declared dependencies.

How classification works (and its honest limits)

Every PR is classified by a transparent signal cascade — explicit corrective titles/reverts → self-correction (a PR predominantly undoing lines added in the prior N days) → churn-cluster membership → otherwise generative. Every classification in the output carries the signal that fired and a human-readable why. Thresholds live in one config block; tune them and re-run offline with --reuse.

Known limits (also printed in the report footer): classification is heuristic; squash merges blur attribution; survival windows mean young repos read optimistic; agent-marked share is a lower bound — absence of a marker is not evidence of human authorship. We grade our own certainty rather than fake precision — that's the whole point of the project.

Where this fits now

Commensa is the management system for AI. Report and Cockpit give the accountable person evidence and visibility for understanding AI-assisted work. Commensa Manager is a separate product that carries human management practice into AI delegation. This historical package is part of the Report lineage; it is not Commensa Manager and does not represent the complete current product system.

measure the durable work, not the noise.

MIT licensed.

Metadata

Release files for commensa-audit 0.3.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 commensa-audit 0.3.1
File Size Uploaded Provenance Actions
commensa_audit-0.3.1.tar.gz 41.2 kB Without provenance Details for commensa_audit-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for commensa-audit 0.3.1
File Interpreter ABI Platform Actions
commensa_audit-0.3.1-py3-none-any.whl Python 3 none any Details for commensa_audit-0.3.1-py3-none-any.whl

Total release size: 76.3 kB

Release files / commensa_audit-0.3.1.tar.gz

Download URL commensa_audit-0.3.1.tar.gz
Size 41.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e552d3dbbf3bce152fe877c37c415cec61e4f6346e5c2855e88a452904d1a147
BLAKE2b-256 checksum
How to use checksums
133d1e53a1332dcedbc779c7a9d15bd1c001458360150626ae98e2c39c2de1f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / commensa_audit-0.3.1-py3-none-any.whl

Download URL commensa_audit-0.3.1-py3-none-any.whl
Size 35.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be5a5a9d4508eb657a984d198f23a9b9c59f03e50b757892d1477d700a19b177
BLAKE2b-256 checksum
How to use checksums
b5a2ef8e24938ad9fe671d0ff053bac101b023c0641da5b4961c5d2003a78258
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for commensa-audit 0.3.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.

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