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.

Download files

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

Source Distribution

commensa_audit-0.3.1.tar.gz (41.2 kB view details)

Uploaded Source

Built Distribution

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

commensa_audit-0.3.1-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

Details for the file commensa_audit-0.3.1.tar.gz.

File metadata

  • Download URL: commensa_audit-0.3.1.tar.gz
  • Upload date:
  • Size: 41.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for commensa_audit-0.3.1.tar.gz
Algorithm Hash digest
SHA256 e552d3dbbf3bce152fe877c37c415cec61e4f6346e5c2855e88a452904d1a147
MD5 6b333fcc04a7edfd3a75533fcf925cfe
BLAKE2b-256 133d1e53a1332dcedbc779c7a9d15bd1c001458360150626ae98e2c39c2de1f7

See more details on using hashes here.

File details

Details for the file commensa_audit-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: commensa_audit-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for commensa_audit-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be5a5a9d4508eb657a984d198f23a9b9c59f03e50b757892d1477d700a19b177
MD5 88297d82b587a82782d5fa505f0d96eb
BLAKE2b-256 b5a2ef8e24938ad9fe671d0ff053bac101b023c0641da5b4961c5d2003a78258

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

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