Skip to content

test(benchmark): frozen offline proposal-and-repair benchmark for agent-facing Nano - #97

Merged
AetherAI3 merged 5 commits into
mainfrom
claude/nano87-proposal-benchmark
Nov 8, 2026
Merged

AetherAI3 merged 5 commits into
mainfrom
claude/nano87-proposal-benchmark

Conversation

@AetherAI3

Copy link
Copy Markdown
Owner

Adds a deterministic offline benchmark under benchmarks/proposal/ that measures whether an agent proposal binds to the right typed task, abstains safely, or can be repaired — instead of counting syntax acceptance as success.

  • Dataset: 120 hand-written cases, 60 dev + 60 locked eval, each split 20 supported / 20 ambiguous-or-unsupported / 20 adversarial-or-malformed (ticker collisions, negation, trailing commands, wrong plan/backend/evidence bindings, unit errors, duplicate JSON keys, bool/non-finite quantities, resource violations, stale versions), with a separately counted non-quantum diagnostic subset.
  • Frozen before any candidate run: manifest of split IDs and SHA256s; a test pins the locked eval bytes.
  • Independent verifier: imports nothing from nano/nano_qsearch (enforced by a test); expectations are hand-written.
  • Metrics: syntactic, schema and exact-binding validity reported separately; per-class supported success and safe abstention; false executable acceptance; repair attempts/success/regressions; p50/p95 latency kept in separate telemetry, outside the canonical report.
  • Bounded repair: at most one equality-gated allowlisted fix per case; never changes operation, target, evidence identity, ceiling or authority.
  • Controls: no-model vs recorded-repair arms; a wrong-but-valid operation and a fabricated zero-budget result both fail.

Results: zero unauthorized executable proposals on every negative set in every arm; market/ATS canonical fixture unchanged; locked eval evaluated once (supported success 15/17 per split — the 2 misses are out-of-grammar requests Nano correctly refuses). Reports are canonical and hashed; repeat runs are byte-identical. The eval split is visible in the repo, so it is a locked regression set, not a blinded experiment. No parser vocabulary was added.

Evidence: 54 benchmark tests; full local suite on the integrated tree 3144 passed / 0 failed; conformance harness cap.proposal_benchmark 54/54 on two byte-identical runs. benchmarks/ is not packaged, so the wheel is unchanged.

Closes #87. Part of #67.

🤖 Generated with Claude Code

AetherAI3 and others added 5 commits November 7, 2026 22:11
…plit

Add the versioned dataset/case schema, hand-written case tables, frozen
dev (60) and locked eval (60) splits, the synthetic quantum catalog, the
allowlisted repair policy and a hashed manifest, before any candidate run.
Add the independent task verifier and strict proposal decoder, neither of
which imports the implementation under test, plus a lock test that pins
the eval split bytes literally.

Part of #87.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…report

Add the deterministic three-arm runner (no-model control, recorded
proposal, recorded repair), Nano admission adapters, explicit-denominator
metrics, a report integrity check and separate latency telemetry. The
repair gate is present but derives no correction yet (baseline).

The committed dev baseline uses repair policy "none" and replays byte for
byte. Hard acceptance holds on dev in all arms.

Part of #87.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Derive at most one correction from the first proposal alone: one
string-aware trailing-comma removal, one closing brace for an unclosed
object, one missing constant field, or the #65 missing-paren policy for
strategy source. A recorded candidate is accepted only when it equals
that correction under strict native types; the policy never reads task
expectations, hints or suggestions, and never runs after a diagnostic
abstention, duplicate key or nonfinite payload.

Dev candidate 1: quantum expected-execute 17/17 (baseline 15/17),
strategy 4/4 (baseline 3/4), one post-repair semantic regression scored
as a failure, hard acceptance holds.

Part of #87.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…uide

Evaluate dev and the locked eval split once with allowlist-v1 and commit
the canonical final report, its hash sidecar and separate latency
telemetry. Every committed report is replayed byte for byte by the tests.
Document the dataset, metrics, repair contract, replay commands, results,
iteration log, findings and the locked-not-blinded limitation.

Part of #87.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sion

CI on Python 3.10 failed to replay the committed reports: json_syntax
rejections hashed the decoder's own message and offset text, which CPython
3.13 words differently (trailing commas). Record only the category so the
canonical report bytes are interpreter independent.

Reports regenerated with the documented replay commands. Every metric and
row is unchanged; only the json_syntax output hashes and the report digests
moved. The locked eval split was replayed deterministically, not retuned.
Verified byte-identical replay on CPython 3.10, 3.11, 3.12 and 3.13.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

[P1][hillclimb] Freeze an offline proposal-and-repair benchmark for agent-facing Nano

1 participant