Skip to content

feat: agentic eval harness — Tier1 CI contracts, Tier2 live missions, Tier3 baselines - #76

Merged
ajianaz merged 1 commit into
developfrom
feat/agentic-evals
Sep 12, 2026
Merged

ajianaz merged 1 commit into
developfrom
feat/agentic-evals

Conversation

@ajianaz

@ajianaz ajianaz commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

What (description of the change)

Issue #73 deliverables: evals/ scaffold with three tiers.

  • Tier 1 (evals_tier1.rs, new Evals CI job, deterministic): wire-shape stability (pinned golden request body = prefix-cache contract), resume equivalence (crash mid-sandwich == uninterrupted outcome), abort-path contracts (resumable park + durable audit), approval interaction matrix incl. destructive-structural-refusal.
  • Tier 2 (evals/tier2/run.py, manual/nightly, live BYOK): read_and_report, echo_chain, crash_resume (real failure→recovery arc); scored on success/steps/usage-ledger tokens/tool-errors; timeout sentinel keeps the run alive on hangs.
  • Tier 3 (baselines/ + diff.py): per-release baseline; >25% metric growth or success drop exits 1 as a HARNESS regression.
  • request_body made pub so the wire contract is assertable externally.

Why (the problem you're solving)

arXiv:2607.03691 shows harness evolution itself causes quality regressions blamed on the model. tole had 159 mechanism tests and zero agentic-outcome tests; this gives regressions a measurement and a voice.

Testing (how you verified this works)

  • Tier 1: 4 contracts green in-repo and designed for the new Evals workflow (release profile, no network).
  • Tier 2: all three missions executed LIVE against the release binary — success true for each; crash_resume now genuinely exercises failure→create→re-read (6 tool calls) after CodeCora flagged the pre-existing fixture made the failure branch unreachable.
  • Tier 3: baseline stored (v0.3.0-unreleased.json); diff self-test PASS; a synthetic 2x-token regression correctly flagged REGRESS exit 1.
  • Full workspace suite green (170 tests), both feature profiles, fmt/clippy clean. CodeCora loop: 6 rounds (SystemExit no-ops, vacuous sessions=1, vacuous byte-stability assertion, missing-log KeyError, dead destructive assertion, fixture making failure unreachable — all real, all fixed).

Refs #73

… Tier3 baselines (issue #73)

Mandate (arXiv:2607.03691): harness evolution itself causes regressions
practitioners misattribute to the model; unit tests verify mechanisms,
not agentic outcomes.

- Tier 1 (evals_tier1.rs, wired into a new Evals CI job): deterministic
  behavioral contracts through the real turn loop + storage —
  wire-shape stability (pinned golden request body: KV-cache prefix
  stability), resume equivalence (crash-mid-sandwich outcome ==
  uninterrupted run), abort-path contracts (park resumable + durable
  audit), approval interaction matrix (allow/deny x risk, destructive
  structurally unregistrable).
- Tier 2 (evals/tier2/run.py): three live BYOK missions —
  read_and_report, echo_chain, crash_resume (real failure-recovery:
  read missing file, create it, re-read) — scored on success, steps,
  usage-ledger tokens, tool-error rate. Timeout sentinel records a
  failed mission without aborting the run; session count is real.
- Tier 3 (baselines/ + diff.py): per-release baselines, >25% metric
  growth or any success drop = REGRESS exit 1.
- request_body made pub for external wire-shape assertion.

Live: all three missions pass (crash_resume now 6 tool calls across
failure+recovery); baseline stored; diff self-test PASS and synthetic
regression flagged. CodeCora loop: 6 rounds clean.
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant