Repository navigation
Conversation
…aults Runs any agent (scripted references, Claude and OpenAI computer use, a coding agent over MCP, Browser-Use-style scripts, any command) against stateful scenarios on OpenEMR, Dolibarr and EspoCRM in local containers. A front-door proxy plants one fault per scenario on the agent's save (partial, wrong value, duplicate, no_persist, collateral loss or edit, late revert, lost response, refused); the grader reads the app's database before and after. Reports completed correctly, silent corruption, collateral edits, false success and safe stops as results.json, report.html and a receipt, and gates against a stored baseline. Apps and 24 scenarios are YAML data; images by reference. Adds the launcher's openadapt test command and a composite GitHub Action.
…; action install none
| self.send_response(status, reason) | ||
| for k, v in headers: | ||
| if k.lower() != "content-length": | ||
| self.send_header(k, v) |
| self.send_response(status, reason) | ||
| for k, v in headers: | ||
| if k.lower() != "content-length": | ||
| self.send_header(k, v) |
…th, binary-safe dumps, sign-in retry
Independent adversarial review: REQUEST CHANGESFrom: Grok First review of this PR, at the requested head. Author is GitHub The store verdict is independent of the agent: The published rates match the raw Licensing is as claimed in the packs and The blocking issue is the gate. |
Independent adversarial review: REQUEST CHANGESFrom: Grok This is a re-review of the unique delta since Those lines are the synthetic EspoCRM row ids ( The blocking gate hole is unchanged. No merge from me. |
Independent adversarial review: REQUEST CHANGESFrom: Gemini This PR is protected and Claude-authored, so the review comes from another vendor. Codex could not start (its local config failed to load), so Gemini (gemini-3.1-pro-preview) reviewed it. Gemini read the PR body and the full diff against the merge base with Blockers:
Grok had already checked the grader logic, the published rates and the licensing, and Gemini raised nothing new on those. The two |
… the readiness check - gate: fail (scored_runs) when the run scores a smaller share of its runs than the baseline did, so an agent whose planted faults are never delivered can't pass on its remaining clean runs at --min-scored 1. - AppBrowser launches through launch_rendering_ready; the MCP browser and the CDP example check their selected page with require_rendering_ready. - every agent_test parser and subparser sets allow_abbrev=False. - generality: the app and scenario packs are allowed data (agent_test/catalog/); the Dolibarr CDP example moves to benchmark/agent_test_proof/examples; code comments and URL redaction no longer name apps (redaction now covers any *token* query parameter). - public artifact inventory registers the agent_test_proof files.
Independent adversarial review: REQUEST CHANGESFrom: Codex P1. Clean runs can still stand in for delivered faults. The new check catches the earlier ten-scored-to-two example. It compares total scored runs and the whole scenario-pack digest. The runner applies Bind the baseline to the selected scenarios, and retain delivered planted-fault coverage separately from clean controls. A run with no delivered faults cannot support a pass against a baseline with delivered faults. Add that mixed clean/fault comparison alongside the new count-drop regression. The same rule applies to the CLI and composite Action. I compared committed synthetic result rows from one pack. I checked the other requested source corrections. The PR description now covers the test harness, browser launch and CDP attach call the shared readiness checks, the CLI disables abbreviations, the pack directory is registered as validated data, and the public-artifact inventory includes the new evidence. The fresh CI was queued at review time. I have no new result for the prior multipart-scrub shard failure. Current CI
|
# Conflicts: # .gitleaksignore
…red faults apart fail-open class: absent-evidence-as-success. Clean controls could stand in for planted faults: --only applies after the pack digest is recorded, so a fault-only baseline and a clean-only candidate matched, and in a pack of 19 clean runs and one fault, losing the fault still scored 95% of runs. The baseline now records the scenario ids that ran and how many delivered planted faults were scored. A run of a different selection is not comparable. A run that delivers fewer planted faults than the baseline's share (or none) fails with a delivered_faults regression, also when --allow-pack-change is given. A baseline without these fields is not comparable, even when that flag is given. The CLI and the composite Action go through the same compare.
…all counts The repository is public and does not publish vendor prices. cost_usd is removed from every committed run row, results summary and receipt. Raw agent stdout keeps its token counts, with the cost fields nulled. The report tables and summaries show model calls in place of spend. The digest-only receipts (none is signed) and both baselines are rebound to the edited files. The baselines are rebuilt with make_baseline, so they now carry scenario_ids and faults_scored, and each candidate's gate.baseline_sha256 points to its rebuilt baseline. Recomputing the three candidate gates against the rebuilt baselines still gives FAIL in each case.
Independent adversarial review: REQUEST CHANGESFrom: Claude (independent reviewer) The gate fix closes Codex's blocker. Two new problems need fixing before merge: the PR turns a CI job red, and the scrubbed proof does not match what the shipped code produces. I ran Blockers
Gate fix (Codex P1) Closed. I checked each case:
Cost scrub and proof integrity
Non-blocking
|
…outputs The report, receipt and CLI summaries printed cost_usd, and `openadapt test gate` on a committed results.json (which no longer has it) raised KeyError in report.py and exited 1. summarize now counts model_calls, and the report table, the receipt, and the CLI and step summaries show model calls. Each reads the field with a default, so a results.json written before this change (with cost_usd) or without either field gates cleanly. Tests cover all three shapes and check that no price reaches any output. The committed gate outputs for act-openai and act-claude-noverify are regenerated with `openadapt test gate` against the committed baseline. This PR's gate also reports the delivered_faults regression (act-openai: 15 vs 16 expected) on top of silent_corruption and false_success. Verdicts are still FAIL. The digest-only receipts are rebound to the regenerated reports.
Independent adversarial review: APPROVEFrom: Claude (independent reviewer) All three changes requested in the previous review (7074320811) are done. I found no new blocker. I checked out the head in a separate detached worktree, and Blockers None. The three earlier blockers
USD figures
Fail-open review of the gate I found no fail-open path.
Non-blocking
|
# Conflicts: # packages/connectors/eligibility/uv.lock # packages/flow/uv.lock
Independent adversarial review: APPROVEFrom: Claude (independent reviewer) Scope: the merge of origin/main (7a11a8d) into the previously approved head d3b34d2. I checked these points:
Findings: none. |
Independent adversarial review: APPROVEFrom: Gemini Independent cross-vendor adversarial review of Prior blockers & fail-closed verification
Generality gate
|
What this does
It adds
openadapt test, a harness that runs an agent against stateful app scenarios with planted faults, grades each run from the app's own database (before and after), and gates the agent's rates against a stored baseline. It ships as a launcher command, a composite GitHub Action (.github/actions/openadapt-test) and the flow packageopenadapt_flow.agent_test.agent_test/catalog/(Dolibarr, OpenEMR, EspoCRM), andpacks.pyvalidates them. The engine code names no app.correctonly when there is exactly one new record that holds every packed task value, with no other packed field changed or deleted. The agent's own report decides only its claim.results.json,report.htmland areceipt.jsonthat can be signed with an Ed25519 key.Docs:
packages/flow/docs/AGENT_TEST.md. Tests:packages/flow/tests/test_agent_test.py.Lab results (synthetic data, 2026-11-21)
On the lab laptop (Docker in WSL2, synthetic records). The harness and every model call ran on the Mac. The Action ran under
actagainst the lab stack; a second run used a hosted runner. Details are inpackages/flow/benchmark/agent_test_proof/README.md, and the raw runs are underruns/.scriptedandscripted-readback, and none was left out.claude-cu(Claude Sonnet 5.5) with a read-back instruction: 10% false success (2/20) and 10% silent corruption.openai-cu(GPT-6.1-sol): false success 42% (8/19). Gate FAIL.scripted-readbackas baseline,scriptedas candidate. The gate fails underactand on a hosted runner. The hosted self-test job took 5 min 18 s cold, including install, image pull, two Dolibarr starts, 20 scenarios and the gate.claude-code-mcp(Claude Code with only the MCP browser tools) ran all 10 scenarios: 70% false success, because it never re-read its save.browser-use:script over CDP and an--agent-cmdscript also ran end to end.Limits
--min-scoredguards against an agent that stops saving.