From b6e20cddb954ec9f19fcb0105ab44eea62777655 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 24 Nov 2026 13:15:52 +0000 Subject: [PATCH] docs: refresh CAPABILITIES.md and llms-full.txt --- CAPABILITIES.md | 2 + capabilities/CAPABILITIES.md.sha256 | 2 +- llms-full.txt | 462 ++++++++++++++++------------ 3 files changed, 266 insertions(+), 200 deletions(-) diff --git a/CAPABILITIES.md b/CAPABILITIES.md index 6ec3bf4cfc..3302108604 100644 --- a/CAPABILITIES.md +++ b/CAPABILITIES.md @@ -194,6 +194,7 @@ improvising or retrying when something is off. | Install the write checker alone: `pip install openadapt-verify` (21 distributions, about 41 MB, no vision, OCR, browser, GUI or NumPy stack; Flow 3 moved those to its `vision` extra) runs Flow's own verifier, ledger, journal, SQL guards and receipts. `openadapt-verify quickstart` checks three scripted agent writes (correct, wrong value, claimed but not saved) against REST, SQLite, FHIR, PostgreSQL and MySQL, each `CONFIRMED`, `REFUTED` or `UNCERTAIN` with a checked signed receipt; `@verified` and `checked_write` wrap a plain Python write in one line | On main | Synthetic (disposable local stores and PostgreSQL and MySQL containers; a clean-venv CI job enforces the install budget and an import test refuses the vision modules) | [packages/verify](packages/verify/README.md), `openadapt_verify/quickstart.py`, `openadapt_verify/guard.py` | | Fail closed by construction: one verdict kernel (`openadapt_flow.verdict`: obligations fixed from the plan, `settle`, allow-list codes, run binding, trust labels) that never passes an empty set, a short read, a raised probe, another run's result or an unknown code; a fail-open harness that runs 15 generic mutations against every registered `@verdict_site` and checks the verdict at three levels (refuted, not checked, held); and a CI ratchet that fails when the repository-wide count of a hand-written fold kind rises, including swallowed exceptions and "nothing else changed" tests over a possibly partial read | On main | Synthetic: the harness flags 14 fail-open bugs rebuilt from this repository's history (pinned pre-fix copies) plus one live connector site, and passes every fix; 8 registered sites (the hard-invariant layer, the version check, `verify-run`'s folds and the receipt's line judge and tally among them) and 2 owned; 12 of 12 kernel mutants killed | [FAIL_CLOSED.md](packages/flow/docs/FAIL_CLOSED.md), `packages/flow/tests/failopen`, `packages/flow/scripts/check_verdict_folds.py` | | Steps drawn as links, tabs or menu items, and the commit point learned from the demonstration: a step's role (commit, navigate, in place) comes from the writes the backend counted, never its words; a commit holds only on exactly the demonstrated writes, and a backend that cannot count writes never attempts one | On main ([#2499](https://github.com/OpenAdaptAI/OpenAdapt/pull/2499)) | Synthetic: a web form, an EMR-like chart, a SaaS settings page (headless Chromium) and a spreadsheet-like grid with no browser | `openadapt_flow.gui.steps`, `packages/flow/tests/gui` | +| Checkbox attestations declared in pack data: a declared box is ticked only on a person's grant for its pinned statement digest, never through an intake value or derived fact; an undeclared box, changed wording, a missing grant or an attestation bound to a field stops the run before anything is ticked | On main ([#2501](https://github.com/OpenAdaptAI/OpenAdapt/pull/2501)) | Synthetic: a web form, an EMR-like chart dialog, a SaaS switch (headless Chromium) and a spreadsheet-like grid dialog with no browser | `openadapt_flow.gui.attestations`, `packages/flow/tests/gui` | | Audit your own automation's success check: `openadapt-verify audit` puts an HTTP proxy in front of the app, runs your command through it N times, changes the save (the first write whose body carries a declared value, or that matches `--write-path`) once per run (not saved with a replayed success reply, rejected, a value blanked or changed, saved twice, an extra changed copy, the reply lost after the save, and a rewritten record field when given one), and counts the runs where the command reported success but the contract's independent read path shows a wrong or missing save, plus false alarms; table and JSON report. HTTP/1.x only, no app code, no WebSocket or server-sent events; a stale overwrite and a change outside the read path are not run | On main | Synthetic (two scripted HTTP clients against the quickstart's REST store: a script that trusts the 2xx reply reported success on 10 of 12 bad saves and failure on 2 saves that landed, one that reads its record back through the app on 4 of 12, missing the duplicate and extra writes) | `openadapt-verify audit`, [packages/verify](packages/verify/README.md#audit-your-automations-success-check), `openadapt_verify/audit.py` | | Never send a write twice while its outcome is unknown: an append-only ledger on local disk (pluggable backend), keyed by the write's identity, that every adapter, the MCP tools and the CLI consult before sending; a read-back against the attempt's own baseline resolves it, and a refuted write waits for a person (`openadapt verify ledger list`, `reconcile`, `release`) | Released | Synthetic (MockMed's fault server: a worker killed between the send and the read-back, killed during a timed-out send, killed before the send, a late write, and two worker processes started together on one write) | `openadapt_flow/write_ledger.py`, [VERIFIER_API.md](packages/flow/docs/VERIFIER_API.md#the-uncertain-write-ledger) | | Commit one record update through a transaction lens: `openadapt-verify tx-run` (or `tx_verified` in Python) reads the target record, sends the update, reads it back and judges the intended fields and every other field (frame) with one comparison policy, and signs a receipt. Without a separately supplied SQLite row authority every HTTP write is refused; `--prototype-unqualified` runs it with an `UNCERTAIN` result at best and no automatic undo. `tx-induce` proposes a lens from a HAR trace and can probe a declared sandbox, but its probe report never authorizes execution, and an observed mismatch never becomes an accepted value mapping. Induction takes route roles from what each request did, so a create sent as `PUT` and an update sent as `POST` are recognized, and the sandbox probe checks an update route of any method for replace semantics. A field that only looks like a timestamp stays in the frame unless the probe sees the server change it. Induction refuses a trace that shows no write it can attribute to a record (an update at the record's URL, or a create whose record is then read there) instead of guessing a route; the CLI allows a guessed item route only when it certifies the lens on a sandbox. When the probe cannot create its own record, an update lens is left in replace mode (whole-record writes), and a certification fault the server refuses is reported as not delivered, never as a pass. Undo refuses to overwrite a change made after the write. The wire tap hands a redirect that stays on the tapped origin back to the client and refuses one that leaves it; it never follows a redirect itself. A field the server is seen rewriting between `NULL` and `""` gets a `null_empty` codec, learned per field by the probe or from the trace, so that change alone is not a clobber; any other change on the field still is. The wire tap counts a GraphQL query (on `/graphql` or `/$graphql`) and a batch of `GET`s as reads. Another `POST` counts as a read only when it matches a read route declared as data; `probe_read_routes` learns those by replaying a trace on a sandbox reset to its pre-trace state and requiring that a whole-store digest not change. An app whose calls all go to one RPC endpoint gets a lens whose read and write carry their arguments in the body (`body_template`), whose record is found at a path such as `result.0`, and whose 2xx answer with an `error` member counts as a failed call; induction learns it from a read that returns the named records and a write that a later read confirms, and reads back the fields the trace itself read. Not checked: server-side effects outside the target record, such as triggers or background jobs | On main ([#2293](https://github.com/OpenAdaptAI/OpenAdapt/pull/2293)) | Synthetic (local SQLite and HTTP fixture servers), plus induction and the replace probe on one open-source task app (recorded trace in CI, live tests in the lab) | `openadapt-verify tx-induce`, `tx-run`, `openadapt_flow/tx/`, `openadapt_verify/tx.py` | @@ -339,6 +340,7 @@ improvising or retrying when something is off. | Capability | Status | Evidence | Where | | --- | --- | --- | --- | +| Test any agent on real apps with planted faults, in CI: `openadapt test run --app APP --agent AGENT` (apps: OpenEMR, Dolibarr, EspoCRM; agents: `scripted`, `scripted-readback`, `claude-cu`, `openai-cu`, `claude-code-mcp`, `mcp:CMD`, `browser-use:SCRIPT`, or `--agent-cmd`) runs the agent through stateful scenarios in local containers, plants one fault per save at a front-door proxy (partial, wrong value, duplicate, no_persist, collateral loss or edit, late revert, lost response, refused), grades the app's database before and after, and reports completed correctly, silent corruption, collateral edits, false success and safe stops as `results.json`, `report.html` and a digest-bound receipt (optionally Ed25519-signed). `baseline` and `gate` fail a build when silent corruption or false success rises; a composite GitHub Action (`.github/actions/openadapt-test`) wraps it. Apps and 24 scenarios are YAML data; app images are pulled by reference | In PR [#2419](https://github.com/OpenAdaptAI/OpenAdapt/pull/2419) | Real apps (Dolibarr 20.0.2, OpenEMR 8.0.0.3, EspoCRM 8.4 in Docker, synthetic records): all 20 faulted scenarios delivered their fault with the model-free agents; through the Action on Dolibarr, Claude Sonnet 5.5 with a read-back instruction scored 10% false success (2/20), and the gate failed both the same agent without the instruction (39%, 7/18) and GPT-6.1-sol (42%, 8/19), mostly collateral changes and duplicates said done; the late revert was said done by every agent that saved; 0 of 130 runs disagreed with an independent re-read of the raw tables (by the building agent, not a person); hosted-runner self-test 5 min 18 s cold. Not yet: a Medplum or openIMIS pack, significance testing in the gate, OpenEMR and EspoCRM with model agents | `openadapt test`, [AGENT_TEST.md](packages/flow/docs/AGENT_TEST.md), `openadapt_flow/agent_test/`, [proof runs](packages/flow/benchmark/agent_test_proof/README.md), `packages/flow/tests/test_agent_test.py` | | Compile a computer-use agent's successful run into a program (JIT); later runs make no model calls | Released | Synthetic (a recorded Claude run on MockMed) | `openadapt_flow.jit`, [JIT.md](packages/flow/docs/JIT.md) | | Reuse a compiled program only for the record check and app environment it was admitted under (a changed record check or a new app version at the same origin is refused) | Released ([#1360](https://github.com/OpenAdaptAI/OpenAdapt/pull/1360)) | Unit tests | `TaskSignature(record_check=, environment=)`, `WebApp(environment_id=)`, [JIT.md](packages/flow/docs/JIT.md) | | Code as action is the default run-1 agent (compile-agent, and `teach_run` in the MCP teach tools): one terminal tool (structure first, actions by role and name, a sandboxed read-only shell, screenshots on request); every action is a structured step checked against the compiled program, and every save the gate detects is read back from the system of record | Released ([#1305](https://github.com/OpenAdaptAI/OpenAdapt/pull/1305)) | Real app (local OpenEMR) and synthetic | `ClaudeAgent(vision="code")`, `CODE_AS_ACTION.md` ([#1305](https://github.com/OpenAdaptAI/OpenAdapt/pull/1305)) | diff --git a/capabilities/CAPABILITIES.md.sha256 b/capabilities/CAPABILITIES.md.sha256 index a92d0aaaf1..2ca484ae16 100644 --- a/capabilities/CAPABILITIES.md.sha256 +++ b/capabilities/CAPABILITIES.md.sha256 @@ -1 +1 @@ -6df073cac92b3e1998b04f9e83520994614d253611d8f1f6597499ba8746651e +f6acc45e2083b45dffe46ed433f9a74f9f52f63df0fa09610644130650ad5894 diff --git a/llms-full.txt b/llms-full.txt index d219a8e21a..e5dbd9e9e7 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -1,4 +1,4 @@ -# OpenAdapt: review brief for openadapt-flow 3.4.0 +# OpenAdapt: review brief for openadapt-flow 4.0.0 This file describes the current OpenAdapt release. It is generated from the repository (scripts/build_llms_full.py) and refreshed with every release. Pages, posts and repositories that describe earlier versions are outdated; where they disagree with this file, this file is current. @@ -16,7 +16,7 @@ Source: https://github.com/OpenAdaptAI/OpenAdapt The open-source, verified execution layer for computer-use agents. -[![CI](https://github.com/OpenAdaptAI/OpenAdapt/actions/workflows/main.yml/badge.svg)](https://github.com/OpenAdaptAI/OpenAdapt/actions/workflows/main.yml) [![Packages CI](https://github.com/OpenAdaptAI/OpenAdapt/actions/workflows/packages.yml/badge.svg)](https://github.com/OpenAdaptAI/OpenAdapt/actions/workflows/packages.yml) [![PyPI](https://img.shields.io/pypi/v/openadapt.svg)](https://pypi.org/project/openadapt/) [![Python 3.10–3.12](https://img.shields.io/badge/python-3.10%E2%80%933.12-blue)](https://www.python.org/downloads/) [![License: MIT](https://img.shields.io/badge/license-MIT-3e6b4f.svg)](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/LICENSE) [![Discord](https://img.shields.io/badge/Discord-community-5865F2?logo=discord&logoColor=white)](https://discord.gg/yF527cQbDG) +[![CI](https://github.com/OpenAdaptAI/OpenAdapt/actions/workflows/main.yml/badge.svg)](https://github.com/OpenAdaptAI/OpenAdapt/actions/workflows/main.yml) [![Packages CI](https://github.com/OpenAdaptAI/OpenAdapt/actions/workflows/packages.yml/badge.svg)](https://github.com/OpenAdaptAI/OpenAdapt/actions/workflows/packages.yml) [![PyPI](https://img.shields.io/pypi/v/openadapt.svg)](https://pypi.org/project/openadapt/) [![Python 3.11–3.12](https://img.shields.io/badge/python-3.11%E2%80%933.12-blue)](https://www.python.org/downloads/) [![License: MIT](https://img.shields.io/badge/license-MIT-3e6b4f.svg)](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/LICENSE) [![Discord](https://img.shields.io/badge/Discord-community-5865F2?logo=discord&logoColor=white)](https://discord.gg/yF527cQbDG) [What it can do](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/CAPABILITIES.md) · [Documentation](https://docs.openadapt.ai) · [Quickstart](https://docs.openadapt.ai/tutorials/quickstart/) · [Live demo](https://app.openadapt.ai/demo) · [Website](https://openadapt.ai) · [Get updates](https://openadapt.ai/#updates) · [Discord](https://discord.gg/yF527cQbDG) @@ -58,33 +58,46 @@ has every run. On a test copy of openIMIS, the open-source insurance and claims system that runs Nepal's national health insurance scheme, the compiled program entered 149 synthetic claims with no model calls: 148 read back correct and none were -saved wrong. Each saved claim was read back by SQL through a read-only -database role on the test copy; the 149th stopped before saving +saved wrong. Each saved claim was checked through a read-only database role on +the test copy; the 149th stopped before saving ([SCOREBOARD.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/scoreboard/SCOREBOARD.md#openimis)). -A screen can't show a save that went wrong behind it. On a test copy of -OpenEMR, with faults injected in its database (a field blanked, a value changed, a -duplicate chart, a chart removed, another chart deleted or edited), the agent -claimed success on all 30 bad saves. Reading the record back caught 25 of the -30 and confirmed all 5 clean saves, with no false alarms. On MockMed, a test app -that shows a save as done before its server answers, the agent also claimed -all 30 bad saves, and the read-back caught all 30 -([details below](#why-the-read-back-matters)). - ## One harness, three modes | Mode | What happens | Model calls | |---|---|---| -| **Explore** | A person records the task (once, or several times with `openadapt compile --induce` for variations), or an AI agent runs it once while OpenAdapt records every action, ideally on test data. The save is read back before anything compiles. | Your agent's, on your own key | -| **Run** | The compiled program repeats the task with new inputs. It checks the record before each save and reads it back after. | None | +| **Explore** | A person records the task (once, or several times with `openadapt compile --induce` for variations), or an AI agent runs it once while OpenAdapt records every action, ideally on test data. The save is checked before anything compiles. | Your agent's, on your own key | +| **Run** | The compiled program repeats the task with new inputs. It checks the record before each save and reads the result back after. | None | | **Repair** | When the app changes, the run stops before saving. An agent shows the fix, the program tries it up to the save without saving, and a person approves it. | Only when something changed, on your own key | -## Why the read-back matters - -A success screen is not proof of a save. We injected 8 kinds of bad save into -a test app (a save that never landed, landed partly, landed twice, went to the -wrong record, or changed another record), 9 runs each, alongside clean runs. -Each check below was asked whether those 72 bad saves had succeeded: +## The 3-level verification ladder + +Most enterprise deployments do not give an automation tool direct SQL access, +and OpenAdapt does not require it. OpenAdapt picks the strongest layer the app +supports: + +- **Promote to API or MCP when an endpoint exists:** Record the task in the + GUI, compile it into direct form/RPC calls and MCP tools (`openadapt-agent serve`) + whenever the app exposes an endpoint, and avoid replaying pixels where a + compiled API step is ~7x faster (3.3 s vs. 22.5 s on OpenEMR above). +- **Level 1 (Before-click local guard: 100% of apps, 0 DB needed):** Checks + the active record and entity identity across tabs, enforces policy and + consent gates before consequential writes, and checks screenshots locally for + UI drift or prompt injection. If anything looks wrong, it stops and asks a + person instead of guessing. +- **Level 2 (Post-action UI and confirmation read-back: ~90% of portals, 0 DB needed):** + Reads back submitted fields, server confirmation IDs, or generated PDFs in a + separate session to confirm what the portal actually recorded. +- **Level 3 (Direct API or DB read-back: optional upgrade):** When you own the + system or have read-only FHIR, REST, or SQL access, reads the system of + record directly and mints a signed `VERIFIED` receipt. + +### Why independent checks beat a "Saved" screen + +In controlled fault tests, a success banner on screen is not enough to prove a +write landed. We injected 8 kinds of bad save into a test app (a save that +never landed, landed partly, landed twice, went to the wrong record, or changed +another record), 9 runs each, alongside clean runs: | How the save was checked | Bad saves reported as saved | |---|---| @@ -94,26 +107,17 @@ Each check below was asked whether those 72 bad saves had succeeded: The test app's database is SQLite with two record tables, so "every table" there is two tables; a real system has many more. Separately, 9 of the 18 -correct saves stopped in every arm: the server committed the save but its -answer timed out, so the write step halted before any read-back ran. Most -deployments give no database access at all. Where the app's own screens are -the only independent read, the check covers at most the target record, read -in a separate session, and the same user's changes in the app's activity log -within a stated window, where the app shows one and the program is set up to -read it. - +correct saves stopped in every arm because the server committed the save after +its response timed out, so the write step halted before any read-back ran. [EFFECT_E2E.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/effect_e2e/EFFECT_E2E.md) has the fault set, the method and the raw results. -An agent working alone can't see these faults either. Claude Sonnet 5.5, using -computer use, did a task on a test app whose server broke the save in 6 ways, -5 times each. The agent reported all 30 bad saves as done. Given the agent's -run, `openadapt-flow verify-run` read each record back: it flagged all 30 and -confirmed all 10 clean saves, with no false alarms. The test app shows "saved" -before the server answers, so the screen gave the agent nothing to notice. That -gap is what the read-back closes. -[SCOREBOARD.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/scoreboard/SCOREBOARD.md#the-agents-claims-versus-the-read-back) -has the method, the raw runs and the cost. +An agent working alone misses the same faults. In controlled runs on OpenEMR +and MockMed with 30 injected bad saves each, Claude Sonnet 5.5 computer use +reported all 30 bad saves as done. Running `openadapt-flow verify-run` caught +25 of 30 on OpenEMR and 30 of 30 on MockMed, while confirming all clean saves +with zero false alarms +([SCOREBOARD.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/scoreboard/SCOREBOARD.md#the-agents-claims-versus-the-read-back)). ## Try it in one command @@ -123,7 +127,7 @@ uvx --python 3.12 openadapt@latest quickstart --break-it No account or API key. [uv](https://docs.astral.sh/uv/getting-started/installation/) fetches Python 3.12 if you need it, and `@latest` runs the newest release. With -Python 3.10 to 3.12 already installed, `python -m pip install --upgrade openadapt` +Python 3.11 or 3.12 already installed, `python -m pip install --upgrade openadapt` then `openadapt quickstart --break-it` does the same. The browser runs hidden and progress shows in the terminal; add `--watch` to see the browser window. @@ -388,13 +392,19 @@ it. [Run outcomes](https://docs.openadapt.ai/reference/outcomes/) lists every va ## When to use something else -- **The app has an API for the task.** Call the API. -- **Every task is new.** Use a computer-use agent. OpenAdapt pays off when the - same entry repeats. -- **There's no way to read the record back.** The record check needs read - access to the system of record: an API, the database, FHIR, or a separate - signed-in session. Without one, a run can only end as finished but not - checked. +- **You already have a clean, documented API client for the task.** Call the + API directly. (If the app only exposes an internal form or RPC endpoint, + OpenAdapt can record it in the GUI and compile it into a direct API/MCP + step instead of replaying pixels.) +- **Every task is one-off.** Use a computer-use agent. OpenAdapt pays off when + the same entry repeats or needs repeatable verification. +- **You need a `VERIFIED` receipt with zero read-back path at all.** Level 1 + before-click guards work on 100% of apps with no database access, and Level 2 + UI confirmation read-back covers ~90% of portals with no database access. + Level 3 direct API/FHIR/SQL read-back is an optional upgrade when you own the + system. If a target exposes neither a UI read-back nor an API/DB read-back, a + run finishes as checked-before-click (`COMPLETED_UNVERIFIED`) rather than + `VERIFIED`. ## Packages @@ -666,9 +676,12 @@ improvising or retrying when something is off. | Check that the saved record matches its source document, not only the parameters: intake keeps each value's line, a second reading must agree before a guarded save, and a round trip compares the read-back with the document | Released | Synthetic (MockMed, text referral) | `openadapt_flow/provenance.py`, `intake`, `verify-run --provenance`, guarded save | | Check one write from Python, without the CLI: one API (`openadapt_flow.verifier`: `begin_write`, `verify_write`; 2.4.1's `capture` form still works, deprecated) with one outcome (`CONFIRMED`, `REFUTED`, `UNCERTAIN`), the receipt, which parts were checked, and the result's scope (read path, stores read, time window, what it doesn't cover) | Released | Synthetic (SQLite; MockMed's fault server over real HTTP) | `openadapt_flow/verifier.py`, [VERIFIER_API.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFIER_API.md) | | Install the write checker alone: `pip install openadapt-verify` (21 distributions, about 41 MB, no vision, OCR, browser, GUI or NumPy stack; Flow 3 moved those to its `vision` extra) runs Flow's own verifier, ledger, journal, SQL guards and receipts. `openadapt-verify quickstart` checks three scripted agent writes (correct, wrong value, claimed but not saved) against REST, SQLite, FHIR, PostgreSQL and MySQL, each `CONFIRMED`, `REFUTED` or `UNCERTAIN` with a checked signed receipt; `@verified` and `checked_write` wrap a plain Python write in one line | On main | Synthetic (disposable local stores and PostgreSQL and MySQL containers; a clean-venv CI job enforces the install budget and an import test refuses the vision modules) | [packages/verify](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/verify/README.md), `openadapt_verify/quickstart.py`, `openadapt_verify/guard.py` | +| Fail closed by construction: one verdict kernel (`openadapt_flow.verdict`: obligations fixed from the plan, `settle`, allow-list codes, run binding, trust labels) that never passes an empty set, a short read, a raised probe, another run's result or an unknown code; a fail-open harness that runs 15 generic mutations against every registered `@verdict_site` and checks the verdict at three levels (refuted, not checked, held); and a CI ratchet that fails when the repository-wide count of a hand-written fold kind rises, including swallowed exceptions and "nothing else changed" tests over a possibly partial read | On main | Synthetic: the harness flags 14 fail-open bugs rebuilt from this repository's history (pinned pre-fix copies) plus one live connector site, and passes every fix; 8 registered sites (the hard-invariant layer, the version check, `verify-run`'s folds and the receipt's line judge and tally among them) and 2 owned; 12 of 12 kernel mutants killed | [FAIL_CLOSED.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/FAIL_CLOSED.md), `packages/flow/tests/failopen`, `packages/flow/scripts/check_verdict_folds.py` | +| Steps drawn as links, tabs or menu items, and the commit point learned from the demonstration: a step's role (commit, navigate, in place) comes from the writes the backend counted, never its words; a commit holds only on exactly the demonstrated writes, and a backend that cannot count writes never attempts one | On main ([#2499](https://github.com/OpenAdaptAI/OpenAdapt/pull/2499)) | Synthetic: a web form, an EMR-like chart, a SaaS settings page (headless Chromium) and a spreadsheet-like grid with no browser | `openadapt_flow.gui.steps`, `packages/flow/tests/gui` | +| Checkbox attestations declared in pack data: a declared box is ticked only on a person's grant for its pinned statement digest, never through an intake value or derived fact; an undeclared box, changed wording, a missing grant or an attestation bound to a field stops the run before anything is ticked | On main ([#2501](https://github.com/OpenAdaptAI/OpenAdapt/pull/2501)) | Synthetic: a web form, an EMR-like chart dialog, a SaaS switch (headless Chromium) and a spreadsheet-like grid dialog with no browser | `openadapt_flow.gui.attestations`, `packages/flow/tests/gui` | | Audit your own automation's success check: `openadapt-verify audit` puts an HTTP proxy in front of the app, runs your command through it N times, changes the save (the first write whose body carries a declared value, or that matches `--write-path`) once per run (not saved with a replayed success reply, rejected, a value blanked or changed, saved twice, an extra changed copy, the reply lost after the save, and a rewritten record field when given one), and counts the runs where the command reported success but the contract's independent read path shows a wrong or missing save, plus false alarms; table and JSON report. HTTP/1.x only, no app code, no WebSocket or server-sent events; a stale overwrite and a change outside the read path are not run | On main | Synthetic (two scripted HTTP clients against the quickstart's REST store: a script that trusts the 2xx reply reported success on 10 of 12 bad saves and failure on 2 saves that landed, one that reads its record back through the app on 4 of 12, missing the duplicate and extra writes) | `openadapt-verify audit`, [packages/verify](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/verify/README.md#audit-your-automations-success-check), `openadapt_verify/audit.py` | | Never send a write twice while its outcome is unknown: an append-only ledger on local disk (pluggable backend), keyed by the write's identity, that every adapter, the MCP tools and the CLI consult before sending; a read-back against the attempt's own baseline resolves it, and a refuted write waits for a person (`openadapt verify ledger list`, `reconcile`, `release`) | Released | Synthetic (MockMed's fault server: a worker killed between the send and the read-back, killed during a timed-out send, killed before the send, a late write, and two worker processes started together on one write) | `openadapt_flow/write_ledger.py`, [VERIFIER_API.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFIER_API.md#the-uncertain-write-ledger) | -| Commit one record update through a transaction lens: `openadapt-verify tx-run` (or `tx_verified` in Python) reads the target record, sends the update, reads it back and judges the intended fields and every other field (frame) with one comparison policy, and signs a receipt. Without a separately supplied SQLite row authority every HTTP write is refused; `--prototype-unqualified` runs it with an `UNCERTAIN` result at best and no automatic undo. `tx-induce` proposes a lens from a HAR trace and can probe a declared sandbox, but its probe report never authorizes execution, and an observed mismatch never becomes an accepted value mapping. Induction takes route roles from what each request did, so a create sent as `PUT` and an update sent as `POST` are recognized, and the sandbox probe checks an update route of any method for replace semantics. A field that only looks like a timestamp stays in the frame unless the probe sees the server change it. Induction refuses a trace that shows no write it can attribute to a record (an update at the record's URL, or a create whose record is then read there) instead of guessing a route; the CLI allows a guessed item route only when it certifies the lens on a sandbox. When the probe cannot create its own record, an update lens is left in replace mode (whole-record writes), and a certification fault the server refuses is reported as not delivered, never as a pass. Undo refuses to overwrite a change made after the write. The wire tap hands a redirect that stays on the tapped origin back to the client and refuses one that leaves it; it never follows a redirect itself. A field the server is seen rewriting between `NULL` and `""` gets a `null_empty` codec, learned per field by the probe or from the trace, so that change alone is not a clobber; any other change on the field still is. The wire tap counts a GraphQL query (on `/graphql` or `/$graphql`) and a batch of `GET`s as reads. Another `POST` counts as a read only when it matches a read route declared as data; `probe_read_routes` learns those by replaying a trace on a sandbox reset to its pre-trace state and requiring that a whole-store digest not change. Not checked: server-side effects outside the target record, such as triggers or background jobs | On main ([#2293](https://github.com/OpenAdaptAI/OpenAdapt/pull/2293)) | Synthetic (local SQLite and HTTP fixture servers), plus induction and the replace probe on one open-source task app (recorded trace in CI, live tests in the lab) | `openadapt-verify tx-induce`, `tx-run`, `openadapt_flow/tx/`, `openadapt_verify/tx.py` | +| Commit one record update through a transaction lens: `openadapt-verify tx-run` (or `tx_verified` in Python) reads the target record, sends the update, reads it back and judges the intended fields and every other field (frame) with one comparison policy, and signs a receipt. Without a separately supplied SQLite row authority every HTTP write is refused; `--prototype-unqualified` runs it with an `UNCERTAIN` result at best and no automatic undo. `tx-induce` proposes a lens from a HAR trace and can probe a declared sandbox, but its probe report never authorizes execution, and an observed mismatch never becomes an accepted value mapping. Induction takes route roles from what each request did, so a create sent as `PUT` and an update sent as `POST` are recognized, and the sandbox probe checks an update route of any method for replace semantics. A field that only looks like a timestamp stays in the frame unless the probe sees the server change it. Induction refuses a trace that shows no write it can attribute to a record (an update at the record's URL, or a create whose record is then read there) instead of guessing a route; the CLI allows a guessed item route only when it certifies the lens on a sandbox. When the probe cannot create its own record, an update lens is left in replace mode (whole-record writes), and a certification fault the server refuses is reported as not delivered, never as a pass. Undo refuses to overwrite a change made after the write. The wire tap hands a redirect that stays on the tapped origin back to the client and refuses one that leaves it; it never follows a redirect itself. A field the server is seen rewriting between `NULL` and `""` gets a `null_empty` codec, learned per field by the probe or from the trace, so that change alone is not a clobber; any other change on the field still is. The wire tap counts a GraphQL query (on `/graphql` or `/$graphql`) and a batch of `GET`s as reads. Another `POST` counts as a read only when it matches a read route declared as data; `probe_read_routes` learns those by replaying a trace on a sandbox reset to its pre-trace state and requiring that a whole-store digest not change. An app whose calls all go to one RPC endpoint gets a lens whose read and write carry their arguments in the body (`body_template`), whose record is found at a path such as `result.0`, and whose 2xx answer with an `error` member counts as a failed call; induction learns it from a read that returns the named records and a write that a later read confirms, and reads back the fields the trace itself read. Not checked: server-side effects outside the target record, such as triggers or background jobs | On main ([#2293](https://github.com/OpenAdaptAI/OpenAdapt/pull/2293)) | Synthetic (local SQLite and HTTP fixture servers), plus induction and the replace probe on one open-source task app (recorded trace in CI, live tests in the lab) | `openadapt-verify tx-induce`, `tx-run`, `openadapt_flow/tx/`, `openadapt_verify/tx.py` | | Verify a write to an API or SaaS system with no database to diff: `openadapt proxy --api systems.tx.yaml` serves `api_read` and `api_write` beside the SQL tools on the same MCP endpoint and keeps the API credentials out of the agent's environment. Each write is sent once under a key derived from the task and the record, never the payload. A retry returns the first result, a regenerated payload is refused, and a crash between the send and the ledger is recovered by finding the write. The key goes out as `Idempotency-Key` where the API honors one, or as a FHIR conditional create. The record is then read back and judged with the tx codecs, including `null_empty`. The system's own event or audit log is read from an id-placed cursor, and the write's own event must appear with no other resource changed by the same credentials. A FHIR `AuditEvent` search, an event stream and a REST activity feed are all declared as data in the tx file. Every outcome gets a `record/run/v1` receipt. Scope is the resource and the actor: changes by other callers, and changes the log doesn't record, aren't checked. A whole-record (`replace`) update or a delete over another caller's edit is refused by the server when the route declares a `precondition` (`If-Match` from the read's `ETag` or a version field) with enforcement evidence: a probe recorded in the pack, or one the adapter runs once per route. Without a precondition it is never `VERIFIED`, only `COMPLETED_UNVERIFIED` (`unconditional_write`; `precondition_unproven` without evidence), and `api_write` reports it as an error. A retry that returns a stored result is capped the same way | [#2437](https://github.com/OpenAdaptAI/OpenAdapt/pull/2437), stacked on [#2428](https://github.com/OpenAdaptAI/OpenAdapt/pull/2428) | Real apps (Medplum 5.2.8 `AuditEvent`, Gitea 1.24.6 activity feed, synthetic data): 0 of 400 clean writes stopped on each; Medplum rerun with its `If-Match` probe recorded in the pack, 400 of 400 `VERIFIED`. Every planted fault the log exposes was stopped: wrong value, duplicate, partial write and same-actor collateral change, 50 of 50 per class, except that on Medplum a duplicate update no longer lands (the server refused all 50 second PUTs with 412). Known misses: a collateral title edit on Gitea, which its feed doesn't record (0 of 50 stopped), and another caller's change on either system (0 of 50). 50 of 50 regenerated-payload retries were refused on each. Stripe not run (no test-mode key) | [API_VERIFICATION.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_VERIFICATION.md), [benchmark/api_scoped](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/api_scoped/RESULTS.md), `openadapt_flow/txplan/scoped.py`, `openadapt_flow/txplan/audit.py` | | Reconcile one prior authorization or claim across the EHR (FHIR), the clearinghouse (X12 278 and 277 files) and the payer (Da Vinci PAS): each leg is a verifier contract judged by the same record checks, and the result names each break (`not_received`, `mismatch`, `not_written_back`, `duplicate`, `not_accepted`) with `CONFIRMED`/`REFUTED`/`UNCERTAIN` and a Scope; absence before a deadline is `UNCERTAIN`, an unreadable store is never agreement, a rejected or returned 277 is never agreement, and a judged record or value with two distinct candidates in the read (repeated segments, list elements, join targets, a group's latest) is never `CONFIRMED` | On main | HL7 Da Vinci PAS reference implementation and Medplum run locally, synthetic X12: 36 of 36 planted breaks found, 0 of 27 faulty units `CONFIRMED`, 17 of 17 clean units `CONFIRMED` (units 1 to 47; the 3 status-category units added later are covered by unit tests); a Hypothesis property test over generated multi-candidate reads; Epic's public sandbox read-only as the EHR leg | `openadapt-flow reconcile`, [RECONCILE.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/RECONCILE.md), [results](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/reconcile/RESULTS.md) | | Catch a write that lands after the verdict (a background job, a trigger, a delayed side record): a `CONFIRMED` with a recheck due is provisional (`provisional`, `recheck_due_at`); the recheck reads the whole database again and refutes the earlier result when a change since the post-save read has no explanation, and a recheck that doesn't confirm holds the write in the ledger. Run it from Python (`verifier.recheck`) or MCP (`verify_recheck`). A write after the recheck's read is not seen (`frame.database.recheck_after_s`, no default window) | Released ([#1639](https://github.com/OpenAdaptAI/OpenAdapt/pull/1639)); provisional result, MCP tool and ledger hold ([#1669](https://github.com/OpenAdaptAI/OpenAdapt/pull/1669)) | Real app (Dolibarr 21 and EspoCRM 10 on MariaDB 11.4, 180 s window: 4 of 4 planted late writes at 125 to 130 s refuted at the recheck, correct writes confirmed; EspoCRM's cron daemon needs its job tables declared; Redmine 6.1 on PostgreSQL 17, 180 s window: the first-contact study's late writes F19 and F20 refuted at the recheck, correct writes confirmed); synthetic (SQLite); opt-in live OpenEMR test | `openadapt_flow/verifier.py`, `runtime/effects/late_write.py`, [VERIFY_RUN.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFY_RUN.md#writes-that-land-later) | @@ -749,6 +762,7 @@ improvising or retrying when something is off. | Lift look-alike identity stops with a complete known-ID list | Released | Synthetic (rendered record list) | `openadapt-flow known-ids` | | Take extra looks before stopping on a look-alike record ID: fresh frames, the known-ID list, and a select-and-copy of the ID where the surface allows it | Released ([#1333](https://github.com/OpenAdaptAI/OpenAdapt/pull/1333)) | Synthetic (dense record list in a browser) | `runtime.identity_copy_look` in deployment.yaml; [IDENTITY_LOOKS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/identity_looks/IDENTITY_LOOKS.md) | | Check an icon-only click target's hover response (highlight, tooltip) before clicking on a pixel surface, and re-check the target and identity regions on a fresh frame right before every pixel click | Released ([#1334](https://github.com/OpenAdaptAI/OpenAdapt/pull/1334)) | Synthetic (in-process kiosk) | `Recorder(capture_hover=True)`; [hover_identity](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/hover_identity/README.md) | +| Chrome MV3 Co-Pilot Extension (`sidePanel` live run/conflict/receipt UI, run-scoped child pop-up / estimator window tracking & focus return, zero-credential-capture sign-in / MFA pause & resume with native-host ack, and Chrome Web Store submission package) | Experimental, PR [#2575](https://github.com/OpenAdaptAI/OpenAdapt/pull/2575) | Real native-host pause/resume handler tests + Node VM extension tests + CWS packager validation (`packages/flow/tests/test_chrome_extension_cws.py`); headless Chrome E2E pending | [chrome_extension](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/chrome_extension/), [STORE_LISTING.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/chrome_extension/STORE_LISTING.md), [package_chrome_extension.py](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/scripts/package_chrome_extension.py) | ## The fastest layer the app allows @@ -757,6 +771,7 @@ improvising or retrying when something is off. | Page structure (DOM, UI Automation, Accessibility) first, then template, OCR and geometry | Released | Real apps on the web; synthetic on Windows and macOS | [RESOLUTION_LADDER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/RESOLUTION_LADDER.md) | | Run a step as a direct API call (`ApiActuator`, `ApiBinding`) | Released, hand-authored bindings | Synthetic benchmarks | `runtime/actuators/api.py` | | Capture a recording's network traffic and compile a clean save into an API step, with the same record check | Released ([#1269](https://github.com/OpenAdaptAI/OpenAdapt/pull/1269)) | Synthetic patients on a local OpenEMR test copy | network capture, `ApiBinding` | +| Keep captured bodies off disk: `network.jsonl` and saved wire-tap HARs keep only declared field values (a recording's `--param` and `--identifier` fields; a wire policy's id and version fields) and a per-capture keyed hash of everything else, including URL query values; HTML, text and binary bodies keep only size and hash, taken from the bytes as sent (only a body labelled JSON, or with no content type, is parsed as JSON); the recording's `app_url` query and URL-valued HAR headers are minimized too, and a HAR marked minimized that carries a raw body is refused on load. Raw bodies (`--capture-network-bodies raw`, `save_har(raw_bodies=True)`), which API step proposals need, are refused unless sealed at rest or plaintext is explicitly allowed (`OPENADAPT_FLOW_PLAINTEXT_AT_REST`, warned and logged). Not covered: URL path segments and header values beyond credential redaction | On main (this PR) | Synthetic PHI in request and response bodies, absent from every file after decryption in raw, percent, JSON-escaped, base64 and gzip forms; positive controls with raw | `openadapt_flow/capture_privacy.py`, [NETWORK_CAPTURE.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/NETWORK_CAPTURE.md#bodies-minimized-by-default) | | Fall back from the API step to page structure when the API is unavailable, before anything is sent | Released ([#1269](https://github.com/OpenAdaptAI/OpenAdapt/pull/1269)) | Synthetic | [#1269](https://github.com/OpenAdaptAI/OpenAdapt/pull/1269) | | Run a form's own script before an API save instead of refusing the form: field handlers, `onsubmit`, submit listeners and custom validate.js rules (OpenEMR's `pastDate`) run on the run's values in a scratch copy of the session with every write blocked, and the save is sent only when the page lets the submit through and would send the same body | On main | Synthetic (headless Chromium against a local test page) | [API_TIER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_TIER.md#what-happens-at-run-time), `runtime/actuators/form_eval.py` | | Compare paired GUI/API database changes with `api admit --footprint`: changed rows retain their identity and before/after values, and unexplained field differences refuse. Variation alone does not establish server ownership. | This PR | Synthetic headless Chromium and SQLite; generated insert ID/time differences conservatively refuse | `openadapt_flow/api_footprint.py` | @@ -809,6 +824,7 @@ improvising or retrying when something is off. | Capability | Status | Evidence | Where | | --- | --- | --- | --- | +| Test any agent on real apps with planted faults, in CI: `openadapt test run --app APP --agent AGENT` (apps: OpenEMR, Dolibarr, EspoCRM; agents: `scripted`, `scripted-readback`, `claude-cu`, `openai-cu`, `claude-code-mcp`, `mcp:CMD`, `browser-use:SCRIPT`, or `--agent-cmd`) runs the agent through stateful scenarios in local containers, plants one fault per save at a front-door proxy (partial, wrong value, duplicate, no_persist, collateral loss or edit, late revert, lost response, refused), grades the app's database before and after, and reports completed correctly, silent corruption, collateral edits, false success and safe stops as `results.json`, `report.html` and a digest-bound receipt (optionally Ed25519-signed). `baseline` and `gate` fail a build when silent corruption or false success rises; a composite GitHub Action (`.github/actions/openadapt-test`) wraps it. Apps and 24 scenarios are YAML data; app images are pulled by reference | In PR [#2419](https://github.com/OpenAdaptAI/OpenAdapt/pull/2419) | Real apps (Dolibarr 20.0.2, OpenEMR 8.0.0.3, EspoCRM 8.4 in Docker, synthetic records): all 20 faulted scenarios delivered their fault with the model-free agents; through the Action on Dolibarr, Claude Sonnet 5.5 with a read-back instruction scored 10% false success (2/20), and the gate failed both the same agent without the instruction (39%, 7/18) and GPT-6.1-sol (42%, 8/19), mostly collateral changes and duplicates said done; the late revert was said done by every agent that saved; 0 of 130 runs disagreed with an independent re-read of the raw tables (by the building agent, not a person); hosted-runner self-test 5 min 18 s cold. Not yet: a Medplum or openIMIS pack, significance testing in the gate, OpenEMR and EspoCRM with model agents | `openadapt test`, [AGENT_TEST.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/AGENT_TEST.md), `openadapt_flow/agent_test/`, [proof runs](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/agent_test_proof/README.md), `packages/flow/tests/test_agent_test.py` | | Compile a computer-use agent's successful run into a program (JIT); later runs make no model calls | Released | Synthetic (a recorded Claude run on MockMed) | `openadapt_flow.jit`, [JIT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/JIT.md) | | Reuse a compiled program only for the record check and app environment it was admitted under (a changed record check or a new app version at the same origin is refused) | Released ([#1360](https://github.com/OpenAdaptAI/OpenAdapt/pull/1360)) | Unit tests | `TaskSignature(record_check=, environment=)`, `WebApp(environment_id=)`, [JIT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/JIT.md) | | Code as action is the default run-1 agent (compile-agent, and `teach_run` in the MCP teach tools): one terminal tool (structure first, actions by role and name, a sandboxed read-only shell, screenshots on request); every action is a structured step checked against the compiled program, and every save the gate detects is read back from the system of record | Released ([#1305](https://github.com/OpenAdaptAI/OpenAdapt/pull/1305)) | Real app (local OpenEMR) and synthetic | `ClaudeAgent(vision="code")`, `CODE_AS_ACTION.md` ([#1305](https://github.com/OpenAdaptAI/OpenAdapt/pull/1305)) | @@ -826,6 +842,7 @@ improvising or retrying when something is off. | Try `openadapt wrap` with one command: `uvx --python 3.12 'openadapt[wrap]@latest' wrap --example` (the `wrap` extra brings the agent SDK; the base launcher leaves it out) starts a bundled synthetic clinic app (MockMed) on 127.0.0.1, has OpenAdapt's built-in Claude agent save one note in a headless browser, reads the save back, compiles the run, runs a canary, and admits it with a throwaway key made in the example's own folder (the proposed checks are confirmed automatically, which only a synthetic app allows). Then a new note runs the compiled program over its emitted MCP server with no model calls, and it prints the app's record and the cost of both runs. It needs `ANTHROPIC_API_KEY` (or `OPENAI_API_KEY` with `--provider openai`, `--model` and reviewed `--price` values); the task is packaged data (`openadapt_flow/wrap/examples/`). Because the data is synthetic, screenshots go to the model unscrubbed under the recorded opt-out. Emitted MCP tools now run the program off the server's event loop, so a compiled browser program runs when called over MCP (it failed with Playwright's "Sync API inside the asyncio loop" error before) | In PR | Synthetic (the bundled app, headless Chromium and the real `build_agent` Claude loop with its token-count reservation and spend cap; CI uses a scripted model client in place of the Anthropic SDK). One real run (Claude Opus 5.5, macOS, before release): run 1 made 5 model calls for $0.15 and was admitted; run 2 made none and was read back `VERIFIED` ([benchmark/wrap_example](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/wrap_example/real-run-2026-11-21.json)) | [WRAP.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/WRAP.md), `openadapt_flow.wrap.example`, `openadapt_flow.compile_agent.run_compiled_tool`, `packages/flow/tests/e2e/test_wrap_example_e2e.py` | | Wrapped tasks that sign in: during `openadapt wrap`'s first run the recorder finds a password field (`type=password`, or `autocomplete` `current-password`/`new-password`) and the username field paired with it (`autocomplete=username`, or a unique text, email or phone candidate paired across all password controls in the composed form; ambiguous or unreadable controls refuse declared inputs) from the page's markup alone. Automatic withholding requires that observation seam; a missing or noncallable seam refuses before capture or actor entry. Screen-only native backends use the existing explicit person-secret handoff instead of this automatic path. Their inputs become secret parameters: the recording, program, run records, receipts and publish upload keep the name and never the value, the observed field regions are blacked out in recording frames (arbitrary field movement or echoes are not proven redacted), a credential field given text that matches no declared input is refused before typing, a form with exactly a username and current password is classified as sign-in without lowering independent keyword risk, and replay run screenshots contain black frames while checks use the original pixels in memory, and no compiled pixel check covers a withheld field's black box (it is clipped clear of it or dropped). Secret environment/vault aliases must be unambiguous, and managed params files cannot supply secret values. The canary and cached runs type them from `OPENADAPT_FLOW_SECRET_`, set from memory for one run; `publish` lists them as `secret_parameters`, outside the call's inputs | On main ([#2294](https://github.com/OpenAdaptAI/OpenAdapt/pull/2294), merged 2026-11-20) | Synthetic (a sign-in notes app in headless Chromium through the real wrap path: first run, canary, admission, publish staging, and a cached run under mcp 2, with a byte scan for the values in every file; unit tests with a fake backend for detection, frame redaction, refusals and the sign-in submit rule). Genuine RDP/Citrix backends refuse automatic withholding before input; explicit person-secret handoff remains tested. Hosted runs need an endpoint vault set (openadapt-cloud) | `openadapt_flow.recorder` (`withhold_credentials`), `openadapt_flow.secret_inputs`, [WRAP_PUBLISH.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/WRAP_PUBLISH.md#tasks-that-sign-in), `packages/flow/tests/test_wrap_sign_in.py`, `packages/flow/tests/e2e/test_wrap_sign_in_e2e.py` | | Sign-ins with a second factor: a `second_factor` step (`code` for a text-message, email or authenticator code, `approval` for a push approval) waits for a person when it runs, through the runner's control plane, a local command, or the run's own terminal when it has one (on a POSIX terminal or the Windows console; the code is never echoed, and normal input comes back however the read ends). Before anyone is asked, the focused field must be an empty `autocomplete="one-time-code"` input and the page draws it as dots; after the answer the same field must still have focus and be empty. The code is filled once into that element (a field split into one box per character is refused), never retried, and never stored, logged, shown to a model or drawn on screen. No source, a late or malformed answer, a decline, a field that changed, or a backend that can't bind the field stops the step before typing with a closed `second_factor_*` code; an older runtime refuses the bundle. Over the control plane the code is sealed in the person's browser to a one-step key the control plane can't open. The wrap recorder finds a code field from `autocomplete="one-time-code"` alone; it doesn't detect push approvals, and only the local browser backend can take a code | In PR | Synthetic (a notes app with an authenticator page in headless Chromium through the real wrap path: first run, canary, admission, publish staging, a cached run and a declined run, with a byte scan for the TOTP secret and recent codes; headless-browser tests that two codes render the same pixels and that a focus change, a prefilled field or an auto-submitting page are handled; unit tests for every source, late answers, the step shape and every refusal; pty tests that a terminal prompt hides the code, restores echo after a timeout and answers the next prompt; the Windows console reader's deadline and discard logic on a fake keyboard). The hosted dashboard answer is in openadapt-cloud | `openadapt_flow.second_factor`, `openadapt_flow.runtime.second_factor_step`, [SECOND_FACTOR.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/SECOND_FACTOR.md), `packages/flow/tests/test_second_factor.py`, `packages/flow/tests/test_second_factor_browser.py`, `packages/flow/tests/test_second_factor_terminal.py`, `packages/flow/tests/test_second_factor_console.py`, `packages/flow/tests/e2e/test_wrap_second_factor_e2e.py` | +| Wrap any agent process: `openadapt wrap --task TASK --param ... -- COMMAND` starts the command for the first run with `OPENADAPT_MCP_URL` (a streamable-HTTP MCP endpoint on 127.0.0.1), `OPENADAPT_MCP_TOKEN` (a random per-run bearer token, compared in constant time, never printed) and `OPENADAPT_TASK`. The endpoint's tools (`observe`, `click`, `type_text`, `press_key`, `scroll`, `finish`) go through compile-agent's harness: the save gate, the read-back after every save, the task's origin limits and the recorder. The command gets no browser handle (no DevTools endpoint), so the draft carries the signed capture admission requires; the endpoint closes when the command exits, a nonzero exit makes no program and is passed through as wrap's exit status, and the command's process group is stopped after `--command-timeout`. Run 1's cost is reported as unknown (the command's model calls are its own). `openadapt wrap run --task TASK` runs only the admitted program, never an agent | In PR | Synthetic (an outside Python process with the `mcp` client SDK and no model does the bundled clinic task through the endpoint in headless Chromium: save gate, read-back, canary, admission by a registered admitter key under a signed teach authorization, then the emitted tool with no model calls; a failing command and a request without the token make no program) | [WRAP.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/WRAP.md#wrap-your-own-agent), `openadapt_flow.wrap.process`, `packages/flow/examples/wrap_command/agent.py`, `packages/flow/tests/e2e/test_wrap_command_e2e.py` | | Verified write tools for agent frameworks: `verified(tool, contract=...)` wraps a Claude Agent SDK, OpenAI Agents SDK, LangGraph or CrewAI write tool in one line. The contract and any values the operator pins come from the operator, never the agent's arguments; the store is read before and after; the agent gets a receipt or a refusal, and a refused write is held instead of retried | Released | Synthetic (each framework's own agent loop with a scripted model, writing through the example app's order form over real HTTP: verified save, a save the app drops, a save it keeps twice); one real-model run per framework, opt-in | `openadapt_flow.integrations.agents`, extras `claude-agent-sdk`, `openai-agents`, `langgraph` (CrewAI: install `crewai` beside it); [AGENT_FRAMEWORKS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/AGENT_FRAMEWORKS.md) | | Teach a browser write as a verified tool: with write contracts and a person's signed teach authorization (`serve --teach-browser --contracts DIR --teach-authorization STATEMENT`), the agent teaches a save once. Run 1 starts only when the statement covers the write (origin, contract, write adapter, the record's fields and values) and runs under it; it is verified in the system of record before the `taught_` tool exists. Every call checks the statement and the tool's signature again, makes the write and returns a verified receipt or a refusal. Sign-in values come from the server's environment and never reach the agent or the program. Controls in named iframes are found through their frame | On main ([#1589](https://github.com/OpenAdaptAI/OpenAdapt/pull/1589), [#1763](https://github.com/OpenAdaptAI/OpenAdapt/pull/1763)) | Synthetic (the example app's sign-in and order form in headless Chromium over MCP: verified save, a save the app drops, a save it keeps twice, a page that swaps the record during run 1; refusals for a missing, uncovering, expired, edited or wrongly signed statement) | `openadapt-agent serve --teach-browser --contracts --teach-authorization`, [VERIFY_WRITES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFY_WRITES.md#teach-a-write-as-a-tool) | | Guard an agent you already run: attach to its own Chromium over CDP (one added line), hold each save until the record on screen is the one the task names, block it and tell the agent why when it isn't, read the save back; a run that reads back correctly becomes a draft program with a record check from scaffold-verifier, which a person confirms and admits, then a `taught_*` tool with no model calls. `--observe-only` never blocks. The approval card shows each field's value now, the value the held save sends (read by the app's `write_adapter`; without one the card says the values were not read and not checked before saving, and shows a screenshot and the form's values on screen taken when the save is held; with neither a value nor a readable screenshot no approval is offered and the run ends `ESCALATED` `values_unread`), the task's value beside it and its source; each save gets a ledger row with no values whose outcome follows the guard's own verdict, and a 0600 diff; the read-back goes through a `ReadbackProvider` where only an independent read can verify | Released ([#1357](https://github.com/OpenAdaptAI/OpenAdapt/pull/1357), stacked on [#1335](https://github.com/OpenAdaptAI/OpenAdapt/pull/1335)); card values, ledger row and `ReadbackProvider` in PR [#2492](https://github.com/OpenAdaptAI/OpenAdapt/pull/2492) | Synthetic (MockMed, scripted Playwright agent, `effect_e2e` faults; the approval card in headless Chromium with and without MockMed's write adapter) | `openadapt-flow guard`, [GUARD_AN_AGENT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/GUARD_AN_AGENT.md) | @@ -2538,161 +2555,208 @@ automation into an independently certified transaction system. --- - + + +## What changed in openadapt-flow 4.0.0 + +### Breaking Changes + +- **Encryption at rest is now enabled by default** (`#2423`): recordings, + compiled bundles, and run directories are written as sealed-set v3 + encrypted containers unless `OPENADAPT_ENCRYPT_AT_REST=0` or `--no-encrypt` + is set. Released `openadapt` launcher `1.23.0` (`openadapt-flow<4`) reads + run files via plain paths, so this major bump keeps `1.23.0` on Flow 3.4.0 + while pairing Flow 4.0.0 with `openadapt 1.24.0` (`>=4.0.0,<5.0.0`). + +### Encryption at rest by default + +- Recordings (web, the quickstart and tutorial, and desktop once converted), + compiled bundles and every run directory (report, step screenshots, crops, + frames, evidence, `REPORT.md`) are now encrypted at rest by default, with + no setup, as sealed-set version 3: a data key per set, wrapped with HPKE + (P-256, HKDF-SHA256, AES-256-GCM) to a per-set bucket key, and files as + Tink AES-256-GCM-HKDF 1 MiB streams. The bucket key is wrapped to the + device runtime key (only while the set is written; bundles keep it), the + device viewer key, organization keys and a recovery key. +- Organization mode, from a machine policy (MDM profile, Group Policy, a + root-owned `/etc/openadapt/policy.json`): organization recipients (P-256 + or RSA-OAEP-3072) and a key archive are required, and recording stops + without them. Solo users can make a recovery key + (`openadapt-flow at-rest recovery create`). +- `openadapt-flow at-rest status` shows the keys and policy; + `at-rest shred` destroys a set's tracked bucket-key copies. +- The device key is a software P-256 key in the OS keychain through + `keyring` (a 0600 file with a warning where there is none). Secure + Enclave, TPM, Touch ID and Windows Hello providers are interfaces with test + doubles, not built yet. +- A configured `OPENADAPT_BUNDLE_KEY` or `OPENADAPT_RECORDING_KEY` still wins + outside organization mode (deprecated), and `~/.openadapt/keys/at-rest.key` + keeps working. Version 1 and 2 sets and plaintext folders still read. +- `OPENADAPT_ENCRYPT_AT_REST=0`, or `--no-encrypt` on `record`, `compile`, + `run` and `replay`, turns it off with a one-line warning and a ledger line. +- Receipts (`seal.json`, `receipt.*`, `public-seal.json`) stay plaintext and + are now written for encrypted runs too; their digests are over the + plaintext `report.json`. `seal verify`, `inspect report-run`, the receipt + page and the quickstart read encrypted runs. The receipt page embeds the + report, so beside an encrypted run it is logged as a plaintext copy. +- Core dependency: `cryptography>=50` (HPKE). The keychain store uses `keyring`, which `pip install openadapt` includes; a bare `openadapt-flow` install needs the `keychain` extra, and otherwise keeps the device key in a 0600 file with a warning. +- Fail-closed key lifecycle: an organization key archive counts as + reachable only with its `.openadapt-key-archive` marker, each record and + header names the archive it went to, and shredding authenticates the + header first and reports complete only once every tracked copy and store + file is gone. Organization mode requires `records: archive`. Durable + checkpoints in an encrypted run are keyed from the run's own data key. + `--no-encrypt` lasts for one command, and the Python recorders follow the + at-rest policy by default. A solo set opens silently only with the device + key that wrote it; a backup that only the recovery code opens needs + `openadapt-flow at-rest restore DIR --yes`. Rollback records in an + encrypted run stay inside its sealed set. -## What changed in openadapt-flow 3.4.0 ### Features -- Agent-to-agent handoffs. `openadapt-flow handoff send` attaches a run's - `record/run/v1` receipt to what one agent hands another: inline, detached - beside a file (`FILE.handoff.json`), or POSTed to a webhook. - `openadapt-flow handoff verify` checks one against the receiver's pinned - keys and returns a verdict (`openadapt.handoff-verdict/v1`). The verdict - gives the signer role, integrity, the checks passed and not checked, and - counterparty confirmation lines. It always says that a valid signature - proves who signed, not that the claim is true. `send` binds the payload as - the receipt's `payload` subject, re-signed by the run's own key, so a - receiver refuses other bytes (`payload_mismatch`) or a receipt that names - no payload (`payload_not_bound`). The private openings file never - travels (docs/HANDOFFS.md, docs/HANDOFF_RECEIPTS.md). -- `openadapt-agent serve --handoffs` adds the MCP tools `get_handoff` and - `verify_handoff`. `serve --a2a` serves the same workflows over the A2A - (Agent2Agent) protocol 1.0 with the official `a2a-sdk` (new `a2a` extra): - - an Agent Card at `/.well-known/agent-card.json`; - - JSON-RPC and HTTP+JSON bindings; - - one skill per workflow plus `verify_handoff`; - - the draft extension `https://openadapt.ai/extensions/handoff-receipt/v1`. - - It listens on 127.0.0.1 by default, needs a bearer token on any other - address, and refuses browser `Origin` and unknown `Host` headers. Every A2A - call goes through the MCP server's gate (`agent/contract_call.py`). Person - confirmations are not served, and only `done` is `TASK_STATE_COMPLETED` - (docs/A2A.md). - -- Dropdowns, searchable selects, type-aheads and native selects are recorded, - compiled and run as one model, a choice (`OptionChoice` on a - `SELECT_OPTION` step, docs/CHOICES.md). A click on an option of a list the - previous action opened is a choice when the control showed the option - afterwards; recording judges this from behaviour (an option role, or - same-shaped siblings that appeared after the previous press), never from a - widget library. Replay opens the control, types the wanted value when the - person searched, waits for the options to settle, clicks the one enabled - option whose label or value matches, and reads the control back against an - independent named field and an - exact expected committed value. A new label with no observable code mapping - stops before selection. Search folding requires causal opener/input-session - evidence and preserves the opening control's identity guards. A - missing, duplicate or disabled option, or a control that does not show the - choice, halts before the next step (`choice_missing`, `choice_ambiguous`, - `choice_disabled`, `choice_changed`, `choice_unverified`). The option is - resolved again by label or value before actuation, so a reordered list cannot - redirect a saved position. Native selection revalidates the semantic - option atomically before emitting change events and selects that exact - option even when different labels share a value. It avoids extra focus - callbacks and revalidates after `input` before emitting `change`. Native and - listed read-back require one stable shown/committed state inside a fixed - deadline. Failures after any backend-owned mutation retain uncertain - delivery, including opening, search and final confirmation. Native selects respect - disabled option groups and fieldsets. A choice on a field passed to - `--param` becomes that parameter. Interactive and attached recording no - longer refuse a native `