Skip to main content

⚖️ Fleet court — agent judgment, dispute resolution, and quality scoring

Project description

⚖️ 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

Project details


Download files

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

Source Distribution

court-0.3.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

court-0.3.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file court-0.3.2.tar.gz.

File metadata

  • Download URL: court-0.3.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for court-0.3.2.tar.gz
Algorithm Hash digest
SHA256 2f089f939b3340ae6136884934723358ba257c1aca5dbfe5ed16ccca87c96bc0
MD5 9eb9e387f03403775d02de0ad4b2f0b3
BLAKE2b-256 e1661c1e34f9f13c5531c2fa2f804b1045bbf5056b678b33d8ece0221bd815d8

See more details on using hashes here.

File details

Details for the file court-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: court-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for court-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 afe9fb5e14a943c9d00eeaabaa74d64d2625d73e1012bde6e39cd17b69002b5e
MD5 b2e9bc02bd71726e86dd8036f220ce39
BLAKE2b-256 c605d5ace96c5d51a64d5400604fd3e851e07839ba706cce9067a1fd5bad035d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page