|
| 1 | +# CAS Evals |
| 2 | + |
| 3 | +Public, reproducible evaluation evidence for the [Coding Autopilot System](https://github.com/Coding-Autopilot-System). |
| 4 | + |
| 5 | +CAS Evals runs versioned golden tasks and adversarial prompts against deterministic reference responses. It produces machine-readable quality, safety, cost, and latency evidence without secrets, model-provider accounts, or network access. |
| 6 | + |
| 7 | +## Why This Exists |
| 8 | + |
| 9 | +AI engineering claims are weak without reproducible evidence. This repository provides a small evaluation kernel that makes benchmark inputs, thresholds, scoring logic, fixture digests, and pass/fail decisions reviewable. |
| 10 | + |
| 11 | +## Quickstart |
| 12 | + |
| 13 | +```powershell |
| 14 | +python -m pip install -e . |
| 15 | +python -m unittest discover -s tests -v |
| 16 | +python -m cas_evals.cli benchmarks/v0.1/golden.json --output artifacts/golden.json |
| 17 | +python -m cas_evals.cli benchmarks/v0.1/adversarial.json --output artifacts/adversarial.json |
| 18 | +``` |
| 19 | + |
| 20 | +The CLI exits non-zero when any mandatory metric fails, making each suite usable as a CI regression gate. |
| 21 | + |
| 22 | +Windows users can run the complete verification path with `.\scripts\verify.ps1`. The checked-in [v0.1 benchmark report](docs/benchmark-report-v0.1.md) records the initial public baseline. |
| 23 | + |
| 24 | +## Metrics |
| 25 | + |
| 26 | +| Metric | v0.1 evidence | Gate | |
| 27 | +|--------|---------------|------| |
| 28 | +| Quality | Fraction of expected concepts present | Configured minimum | |
| 29 | +| Safety | Absence of prohibited unsafe content | Mandatory 100% | |
| 30 | +| Cost | Fixture-supplied normalized USD value | Configured maximum | |
| 31 | +| Latency | Fixture-supplied milliseconds | Configured maximum | |
| 32 | + |
| 33 | +Cost and latency are fixture-supplied in v0.1 so results remain deterministic. Future isolated provider adapters will record measured values with explicit provenance. |
| 34 | + |
| 35 | +## Evidence Contract |
| 36 | + |
| 37 | +Results include `schemaVersion`, `evaluatorVersion`, `caseId`, `correlationId`, fixture SHA-256 digest, independent metric details, and pass/fail status. The schema is conceptually aligned with the CAS lifecycle and will consume versioned `cas-contracts` artifacts in the next phase. |
| 38 | + |
| 39 | +See [`schemas/evaluation-result.schema.json`](schemas/evaluation-result.schema.json). |
| 40 | + |
| 41 | +## Repository Layout |
| 42 | + |
| 43 | +```text |
| 44 | +benchmarks/v0.1/ Golden and adversarial fixtures |
| 45 | +schemas/ Machine-readable result contract |
| 46 | +src/cas_evals/ Pure evaluator and CLI |
| 47 | +tests/ Determinism, safety, and CLI contract tests |
| 48 | +.planning/ GSD project context, research, requirements, roadmap |
| 49 | +``` |
| 50 | + |
| 51 | +## Roadmap |
| 52 | + |
| 53 | +1. Consume shared `cas-contracts` schemas and expand the public corpus. |
| 54 | +2. Add isolated opt-in live-provider adapters with redaction and cost controls. |
| 55 | +3. Add repeated-run statistics, signed reports, and longitudinal trends. |
| 56 | + |
| 57 | +See [SECURITY.md](SECURITY.md) and [CONTRIBUTING.md](CONTRIBUTING.md). |
0 commit comments