Repository navigation
test(#1096): driver conformance suite — registry-enumerated, six contract items per driver, real codex sandbox probes - #1116
Merged
admarble merged 7 commits intoSep 20, 2026
Conversation
…ex error fixtures Entire-Checkpoint: 550a32dd5fb4
…er-authoring guide Entire-Checkpoint: b8df00ec8104
Entire-Checkpoint: 30cca2da1a9a
Entire-Checkpoint: 3382f6c81b5a
Entire-Checkpoint: f57f9b58437c
Entire-Checkpoint: 476978b4ffb8
…vers-conformance-suite-every-agent-driver-
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1096
A conformance suite every agent driver must pass, enumerated from the driver registry rather than a hand-written list. Six contract items per driver: commit inside the sandbox, network, typed error mapping, env injection, structured outcome, and skill loading. The Codex probes run the real
codex sandbox(0.154.0) with the writable roots the driver itself computed.listDriverNames()is the only registry change. Adocs/guides/writing-an-agent-driver.mdpage states the contract.Skips are typed and every gap skip names its tracking issue: aider and opencode report no token usage and no typed errors (#1115); structural skips state why the item cannot apply (no sandbox policy in the Claude Agent SDK, aider and opencode).
Acceptance criteria
npx vitest run src/lib/workflow/drivers/__tests__/driver-conformance.test.ts→ 32 passed, 2 expected fail; mutation-verified belowcodex sandboxwithsandbox_mode="workspace-write"and the driver's writable roots —codex > commitpassed (ran, not skipped; codex 0.154.0 on PATH)it.fails(expected to fail until bug(codex): usage-limit turn failures classified 'unknown' — quality loop re-runs into the same quota, --auto-wait can't engage #1087 lands, per the issue's plan section), the third passes; the AC-3 mutation is therefore not applicable until bug(codex): usage-limit turn failures classified 'unknown' — quality loop re-runs into the same quota, --auto-wait can't engage #1087 flips them to plainitclaude-codegroup green (commit item is a structural skip: the SDK applies no sandbox policy)opencodegroup green; every gap skip readsgap: #1115 …docs/driver-authoring page lists the six contract items and points at the suite —grep -rc driver-conformance docsfinds 2 filesnpm run build && npm testgreen — run by the runner from a clean shell before merge (PLAN I-1)Mutation-verified: AC-1 — registered a
stub-1096driver inDRIVERSwith no conformance adapter;src/lib/workflow/drivers/__tests__/driver-conformance.test.ts > driver conformance > registry > every registered driver has a conformance adapterfailed (2 failed | 1 passed); restored, 3 passed.Test plan
-t registryafter the AC-1 mutation: 2 failed; restored: 3 passednpm testfrom a clean shell by the runner🤖 Generated with Claude Code
Runner verification (guard-2026-09 wave 1, 2026-09-20)
1b1f9dca): the driver-authoring guide is now indexed indocs/README.md(qa Finding 2). Left for review: the twoit.failscodex cases pass on any throw (Finding 1, resolves with bug(codex): usage-limit turn failures classified 'unknown' — quality loop re-runs into the same quota, --auto-wait can't engage #1087); the AC-3 mutation is recorded as not applicable while those cases areit.fails.npm testfrom a clean shell on this branch: 323 files, 6581 passed, 3 expected fail, 3 skipped, 364 s.