⚖️ Court
Fleet governance — agent judgment, dispute resolution, and quality scoring
Every fleet needs a court. Judge agent actions, track trust scores over time, and review knowledge tiles for quality before they enter PLATO.
Install
pip install court
Quick Start
Judge Actions
from court import Judge
judge = Judge()
verdict = judge.evaluate("oracle1", "submit_tile", {"confidence": 0.92})
print(f"{verdict.severity.value}: {verdict.reason}")
Track Trust
from court import TrustLedger
ledger = TrustLedger()
ledger.record("oracle1", "tile_accepted", delta=0.02, reason="High quality")
ledger.record("oracle1", "tile_rejected", delta=-0.05, reason="Absolute claim")
print(f"Trust: {ledger.trust_score('oracle1'):.2f}")
print(f"Level: {ledger.trust_level('oracle1')}")
Review Tiles
from court import Review
review = Review()
result = review.check_tile({
"question": "What is X?",
"answer": "X is always Y.",
"confidence": 0.5,
})
print(f"{result.status.value}: {result.feedback}")
API Reference
| Class | Purpose |
|---|---|
Judge |
Evaluate actions → Verdict (severity + score) |
TrustLedger |
Track trust scores (0-1) with history |
Review |
Check tiles for quality (absolute claims, missing fields) |
Part of Cocapn · Agent Infrastructure
Metadata
Release files for court 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| court-0.3.2.tar.gz | 8.0 kB | Without provenance | Details for court-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| court-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for court-0.3.2-py3-none-any.whl |
Total release size: 15.7 kB
Release files / court-0.3.2.tar.gz
| Download URL | court-0.3.2.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f089f939b3340ae6136884934723358ba257c1aca5dbfe5ed16ccca87c96bc0
|
|
BLAKE2b-256 checksum How to use checksums |
e1661c1e34f9f13c5531c2fa2f804b1045bbf5056b678b33d8ece0221bd815d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / court-0.3.2-py3-none-any.whl
| Download URL | court-0.3.2-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
afe9fb5e14a943c9d00eeaabaa74d64d2625d73e1012bde6e39cd17b69002b5e
|
|
BLAKE2b-256 checksum How to use checksums |
c605d5ace96c5d51a64d5400604fd3e851e07839ba706cce9067a1fd5bad035d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for court 0.3.2
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.