Repository navigation
Expand file tree
/
Copy pathllms-full.txt
More file actions
2432 lines (2085 loc) · 329 KB
/
Copy pathllms-full.txt
File metadata and controls
2432 lines (2085 loc) · 329 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# OpenAdapt: review brief for openadapt-flow 4.1.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.
Source: https://github.com/OpenAdaptAI/OpenAdapt
---
<!-- README: README.md -->
<div align="center">
# OpenAdapt
**Verify, compile, and replay any GUI workflow or AI agent, with a receipt for every write.**
[](https://pypi.org/project/openadapt/)
[](https://chromewebstore.google.com/detail/openadapt-co-pilot/bcpliibliddclnibacbjbmbpgffkjefd)
[](https://huggingface.co/OpenAdapt/openadapt-veto-4b-r6)
[](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/LICENSE)
[](https://docs.openadapt.ai)
[Website](https://openadapt.ai) · [Docs](https://docs.openadapt.ai) · [Chrome Extension](https://chromewebstore.google.com/detail/openadapt-co-pilot/bcpliibliddclnibacbjbmbpgffkjefd) · [Watch Real Runs](https://app.openadapt.ai/demo) · [Proof](https://openadapt.ai/proof) · [Discord](https://discord.gg/yF527cQbDG)
</div>
---
OpenAdapt wraps browser and desktop agents with before-click verification, post-write read-back, an on-disk write-ahead log, deterministic compiled replay, and a receipt for each write that records how it was checked.
## Quickstart
### Install
```bash
# Run directly with uvx (no install, fetches Python 3.12 if needed)
uvx --python 3.12 openadapt@latest quickstart
# Or install the CLI
pip install --upgrade openadapt
# macOS / Linux via Homebrew
brew install openadaptai/tap/openadapt
```
For browser workflows with zero CLI setup, install the 1-click Chrome extension: **[OpenAdapt Co-Pilot on the Chrome Web Store](https://chromewebstore.google.com/detail/openadapt-co-pilot/bcpliibliddclnibacbjbmbpgffkjefd)**.
### Wrap Any Python Agent or Tool in 2 Lines
Add pinned record checks, duplicate-submit protection on uncertain writes, a post-action check, and a signed Ed25519 receipt to any Python function, Playwright helper, MCP tool, or agent with zero YAML files. Run `openadapt trust init` once so receipts are signed with this computer's key; without a key, receipts carry a SHA-256 digest only and `openadapt.wrap` says so.
```python
import openadapt
safe_save = openadapt.wrap(
save_chart_note,
pinned={"patient_id": "PT-104"},
check=lambda out, *a, **kw: out.get("saved") is True,
)
safe_save(patient_id="PT-104", note="Follow-up scheduled")
print(safe_save.last_receipt["outcome"], safe_save.last_receipt["checked_how"]) # confirmed caller_check
```
Check a receipt with `openadapt verify receipt.json`. It accepts only a receipt signed by a key pinned on this computer (or with `--keys FILE`), never the key a receipt carries.
To wrap an agent, pass a write-ahead log:
```python
import openadapt
from openadapt.simplex_transducer import WriteAheadSagaLog
safe_agent = openadapt.wrap(your_agent, wal=WriteAheadSagaLog("session.wal"))
```
`safe_agent` keeps your agent's `act(observation, task)` interface. The log is written to disk before and after each save. If the process crashes and restarts with the same `run_id` and `task_id` on the task, it skips the saves the log already records as verified instead of making them again. The log keys its records on those two fields, so give every task its own pair; tasks without them share one key.
### Try It in 30 Seconds
Run the quickstart against a bundled demo app (no account or API key required). It shows a task once, runs the compiled program and checks the save in the app's database, then stops the runner partway through a batch and restarts it: the restart skips the note that was already saved and saves only the next one.
```bash
uvx --python 3.12 openadapt@latest quickstart
```
### Wrap an Agent or Serve Compiled Workflows over MCP
```bash
# Wrap any agent with before-click checks and signed receipts
openadapt wrap --task task.yaml -- claude -p "submit the invoice"
# Expose verified workflows to Claude Code, Codex, or Cursor as a local MCP server
openadapt agent serve
# Serve JIT-compiled plans as zero-token stdio MCP tools
openadapt mcpify serve --from-compiled .openadapt/compiled
```
### Record, Compile, and Replay
```bash
openadapt record --backend web --url https://staging.your-app.example --out rec
openadapt compile rec --out bundle --name my-first-workflow
openadapt flow replay bundle --url https://staging.your-app.example --run-dir run
```
`flow replay` performs every recorded action, including real saves. Use a test or staging copy; it does not ask for approval or check the saved record. For production writes, certify, qualify, and admit the bundle, then run `openadapt run` ([Your first workflow](https://docs.openadapt.ai/tutorials/first-workflow/)).
## Why OpenAdapt
- **Commit-Boundary Verification:** Checks active record identity before consequential clicks, checks observable evidence after each action (on the current screen by default, including in-place edits and non-idempotent portals that cannot reload, or via a reopened view, separate read-only session, or direct API/database/file check when available), and stamps how each action was checked (`same_screen`, `reopened`, `separate_session`, `system_of_record`, or `caller_check` for a plain `check=` function) on a signed Ed25519 receipt ([inspect a live receipt](https://openadapt.ai/receipts/3fb27257dbc65e58), [receipt reference](https://docs.openadapt.ai/reference/receipts/)).
- **Zero-API-Call Compiled Replay (No `429` Limits):** Compiles repeated GUI workflows into deterministic programs and direct HTTP or MCP tools, eliminating warm model calls and rate limits (`219 -> 10` calls on Gemini 3.1 Pro).
- **Stage-Only & Human Sign-Off in Your Browser (Zero-PHI Local Execution):** Runs inside existing authenticated Chrome sessions via [OpenAdapt Co-Pilot](https://chromewebstore.google.com/detail/openadapt-co-pilot/bcpliibliddclnibacbjbmbpgffkjefd) or local and VPC runners. Screens, typed values, and recordings stay on your machine, and uncertain writes pause for a human to review and approve.
- **Local 4B Verifier (`OpenAdapt-Veto-4B-r6`):** Open-weights 4B local safety verifier on [Hugging Face](https://huggingface.co/OpenAdapt/openadapt-veto-4b-r6) that checks screenshots locally in 3.15 GB VRAM (`357 ms` latency) before clicks land.
## Verified Results
<!-- BEGIN GENERATED RESULTS: run scripts/build_results_table.py; do not edit by hand -->
Counted from the per-run ledgers in [`benchmarks/public-runs/`](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/benchmarks/public-runs/). Each arm's N runs split three ways. **Verified**: the arm reported the run done and the benchmark's own checker agrees. **Silent error**: the arm reported the run done and the checker disagrees. **Halted**: the arm stopped without reporting the run done. The strongest baseline is the baseline arm, run on the same tasks, with the most verified runs. A silent-error count reads *not measured* when the arm's own read-back is the check that scores the run.
| Benchmark | N | OpenAdapt: verified / silent errors / halted | Strongest baseline | Baseline: verified / silent errors / halted | The baseline reports a run done when |
|---|---|---|---|---|---|
| Real web app upgrades (Gitea, Vikunja, Memos, Mealie) | 60 | 42 / not measured / 18 | Stagehand-style self-heal | 43 / 2 / 15 | every step ran without an error |
| Real web app upgrades, paired gemini-3.1-pro-preview (36 of 60 planned tasks; the run stopped at the API's daily quota) | 36 | 34 / not measured / 2 | Unwrapped gemini-3.1-pro-preview | 17 / 0 / 19 | the agent declared the task done |
| HealthAdminBench, single tab (gpt-5.4 and claude-sonnet-5-5 pooled) | 24 | 5 / 11 / 8 | Unwrapped, same models | 7 / 17 / 0 | every run; it never escalated |
| HealthAdminBench, multi-tab (gpt-5.4 and claude-sonnet-5-5 pooled) | 24 | 11 / 10 / 3 | Unwrapped, same models | 10 / 14 / 0 | every run; it never escalated |
| ST-WebAgentBench (GitLab, ShoppingAdmin, SuiteCRM), gpt-5.4 | 44 | 3 / 22 / 19 | Unwrapped gpt-5.4 | 2 / 42 / 0 | every run; it never escalated |
How each benchmark checks a run, and when OpenAdapt reports a run done:
- Real web app upgrades (Gitea, Vikunja, Memos, Mealie): the checker is a read of the app's backend through its REST API after the run. OpenAdapt reports a run done when its read-back found the record through the app's REST API. In this run OpenAdapt's read-back used the same backend check that scores the run, so its silent-error count is not independent and is shown as not measured.
- Real web app upgrades, paired gemini-3.1-pro-preview (36 of 60 planned tasks; the run stopped at the API's daily quota): the checker is a read of the app's backend through its REST API after the run. OpenAdapt reports a run done when its read-back found the record through the app's REST API, and it issued a signed receipt. In this run OpenAdapt's read-back used the same backend check that scores the run, so its silent-error count is not independent and is shown as not measured.
- HealthAdminBench, single tab (gpt-5.4 and claude-sonnet-5-5 pooled): the checker is HealthAdminBench's own grader; a run passes when every subtask passes. OpenAdapt reports a run done when the run ended without OpenAdapt escalating it to a person.
- HealthAdminBench, multi-tab (gpt-5.4 and claude-sonnet-5-5 pooled): the checker is HealthAdminBench's own grader; a run passes when every subtask passes. OpenAdapt reports a run done when the run ended without OpenAdapt escalating it to a person.
- ST-WebAgentBench (GitLab, ShoppingAdmin, SuiteCRM), gpt-5.4: the checker is ST-WebAgentBench's evaluator; a run passes when the task is completed with no policy violated. OpenAdapt reports a run done when the run ended without OpenAdapt escalating it to a person.
On the paired gemini-3.1-pro-preview run (36 tasks), the unwrapped agent made 219 model calls and OpenAdapt made 10. OpenAdapt's 27 warm replays made 0.
| Safety benchmark | Measure | Without OpenAdapt | With OpenAdapt |
|---|---|---|---|
| AgentDojo, `gemini-2.5-flash` | prompt injections that succeeded | 35 / 48 | 8 / 48 |
| AgentDojo, `Qwen/Qwen3.5-4B` | prompt injections that succeeded | 7 / 48 | 1 / 48 |
| AgentDojo, `gpt-5.4` | prompt injections that succeeded | 0 / 48 | 0 / 48 |
| AgentDojo, `claude-sonnet-5-5` | prompt injections that succeeded | 0 / 48 | 0 / 48 |
| OS-Harm, 3 models pooled | runs with a harmful outcome or policy violation | 12 / 27 | 3 / 27 |
| OS-Harm, 3 models pooled | runs completed under policy | 11 / 27 | 17 / 27 |
<!-- END GENERATED RESULTS -->
Full methodology, benchmark tables, and verifiable raw runs: **[openadapt.ai/proof](https://openadapt.ai/proof)** and sanitized per-run JSON ledgers in [`benchmarks/public-runs/`](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/benchmarks/public-runs/).
The paper behind the save-point checks and the write-ahead log is [*Screenshots Are Not State: Transactional Verification and Compilation for GUI Agents*](https://arxiv.org/abs/2611.39728) (arXiv:2611.39728).
## Works With
- **Coding & MCP agents:** Claude Code (`claude mcp add openadapt -- uvx --python 3.12 openadapt@latest agent serve`), Codex (`openadapt wrap -- codex ...`), Cursor.
- **Browser automation & sandboxes:** Playwright, Browser Use, Browserbase, E2B, Daytona (`openadapt wrap --cdp-url "$CDP_URL" --upload -- python my_agent.py`). See the [cloud sandbox and BYOC guide](https://docs.openadapt.ai/how-to/verify-cloud-sandboxes/).
- **In-browser operator workflows:** [OpenAdapt Co-Pilot Chrome Extension](https://chromewebstore.google.com/detail/openadapt-co-pilot/bcpliibliddclnibacbjbmbpgffkjefd).
## Packages & Architecture
`pip install openadapt` installs the CLI, compiler/runtime engine, and MCP server. Each package installs only what it imports ([install weight policy](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/docs/monorepo/INSTALL_WEIGHT.md)).
| Package | Role | Source |
|---|---|---|
| [`openadapt`](https://pypi.org/project/openadapt/) | Unified CLI (`quickstart`, `wrap`, `connect`, `record`, `compile`, `run`, `verify`, `kernel`, `agent`, `mcpify`) | [`openadapt/`](https://github.com/OpenAdaptAI/OpenAdapt/tree/main/openadapt) |
| [`openadapt-kernel`](https://github.com/OpenAdaptAI/OpenAdapt/tree/main/packages/kernel) | Optional alpha extra (`pip install 'openadapt[kernel]'`). Commit-boundary kernel: default-deny write ledger, wire/DOM commit interceptor, stepwise live-DOM healer, cross-rail oracles, Ed25519 receipts, stdio MCP | [`packages/kernel/`](https://github.com/OpenAdaptAI/OpenAdapt/tree/main/packages/kernel) |
| [`openadapt-flow`](https://pypi.org/project/openadapt-flow/) | Demonstration compiler, certification, qualification, governed replay, auto-repair, and BYOC connector | [`packages/flow/`](https://github.com/OpenAdaptAI/OpenAdapt/tree/main/packages/flow) |
| [`openadapt-agent`](https://pypi.org/project/openadapt-agent/) | MCP server, Agent Skills export, and A2A handoffs | [`packages/agent/`](https://github.com/OpenAdaptAI/OpenAdapt/tree/main/packages/agent) |
| [`openadapt-verify`](https://pypi.org/project/openadapt-verify/) | Standalone Python SDK (`@verified`, `checked_write`, local JIT compiler, `mcpify`) | [`packages/verify/`](https://github.com/OpenAdaptAI/OpenAdapt/tree/main/packages/verify) |
| [`openadapt-copilot`](https://chromewebstore.google.com/detail/openadapt-co-pilot/bcpliibliddclnibacbjbmbpgffkjefd) | Chrome Extension for recording, stage-only review, and human sign-off inside existing browser tabs | [`packages/flow/chrome_extension/`](https://github.com/OpenAdaptAI/OpenAdapt/tree/main/packages/flow/chrome_extension) |
Supporting packages in this monorepo: [`openadapt-desktop`](https://github.com/OpenAdaptAI/OpenAdapt/tree/main/packages/desktop), [`openadapt-types`](https://github.com/OpenAdaptAI/OpenAdapt/tree/main/packages/types), [`openadapt-capture`](https://github.com/OpenAdaptAI/OpenAdapt/tree/main/packages/capture), [`openadapt-privacy`](https://github.com/OpenAdaptAI/OpenAdapt/tree/main/packages/privacy), and [`openadapt-tray`](https://github.com/OpenAdaptAI/OpenAdapt/tree/main/packages/tray). Research repositories live separately: [openadapt-evals](https://github.com/OpenAdaptAI/openadapt-evals) and [openadapt-ml](https://github.com/OpenAdaptAI/openadapt-ml).
## Documentation
- [Documentation home](https://docs.openadapt.ai)
- [Your first workflow](https://docs.openadapt.ai/tutorials/first-workflow/)
- [Run outcomes](https://docs.openadapt.ai/reference/outcomes/) and [signed receipts](https://docs.openadapt.ai/reference/receipts/)
- [Surfaces](https://docs.openadapt.ai/explanation/surfaces/) and [limits](https://docs.openadapt.ai/explanation/limits/)
- [Security and procurement](https://docs.openadapt.ai/security/) (local-first data boundary, subprocessors, release integrity)
- [Pre-1.0 legacy archive (`v0.46.0`)](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/docs/LEGACY_FREEZE.md)
<details>
<summary>Release status</summary>
The block below is generated from the signed public lifecycle record.
<!-- BEGIN PRODUCTION LIFECYCLE -->
The last signed lifecycle snapshot (September 2026) has seven active target admissions.
Their evidence class is `remote-safe-synthetic`, not MockMed `production_acceptance`.
They remain valid until revoked; there's no expiry date. The admitted versions in that
snapshot are launcher 1.16.0, Flow 1.35.1, and Desktop's 0.16.0 wheel (`pip install openadapt`
installs the latest PyPI release; see [GitHub Releases](https://github.com/OpenAdaptAI/OpenAdapt/releases)
and [PyPI](https://pypi.org/project/openadapt/) for current package versions, which have not
yet been re-admitted to the signed ledger). Native Mac DMGs from that snapshot stay ad-hoc
signed 0.15.0; don't treat those as admitted. A Production run still needs a workflow admission
for the exact compiled bundle, application, and environment.
[Check the live signed Production record](https://docs.openadapt.ai/production-lifecycle.json).
<!-- END PRODUCTION LIFECYCLE -->
</details>
## Contributing & License
Launcher, kernel, engine, MCP server, desktop app, and contract changes live in this monorepo.
[Contribution guide](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/CONTRIBUTING.md) · [Issues](https://github.com/OpenAdaptAI/OpenAdapt/issues) · [Discussions](https://github.com/OpenAdaptAI/OpenAdapt/discussions) · [Report a vulnerability](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/SECURITY.md) · [Code signing policy](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/CODE_SIGNING_POLICY.md)
Maintained by [OpenAdaptAI](https://github.com/OpenAdaptAI) under the [MIT License](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/LICENSE).
---
<!-- Capabilities: CAPABILITIES.md -->
# What OpenAdapt can do
OpenAdapt turns a task that a person or an AI agent does once in an
application into a program that repeats it with new inputs. The program makes
the same entry every time with no calls to a hosted AI model, checks that the
entry landed in the right record by reading it back, and stops instead of
guessing. It is for web, desktop and remote-desktop applications with no
usable API. EMRs and payer portals are examples of highly regulated settings
where those checks matter most.
This page indexes what OpenAdapt implements, with the status, the evidence and
the code for each capability:
- [Ten capabilities](#openadapt-in-ten-capabilities) and [often missed](#often-missed)
- [The core: a checked entry](#the-core-a-checked-entry-every-time),
[approvals](#approvals), [branching work](#branching-work-not-one-linear-path)
- [Surfaces](#surfaces), [the fastest layer](#the-fastest-layer-the-app-allows),
[when the app changes](#when-the-app-changes)
- [Computer-use agents](#computer-use-agents),
[recording, privacy and proof](#recording-privacy-and-proof)
- [Every command](#every-command-by-capability) and
[measured results](#measured-results)
## OpenAdapt in ten capabilities
Each capability is implemented in the
[OpenAdapt monorepo](https://github.com/OpenAdaptAI/OpenAdapt). "Released"
means it ships in the current PyPI packages; "on main" means merged into the
monorepo and installable from source.
1. **Learns from any successful run, a person's or an agent's.** A person
records a task, or a computer-use agent does it once and OpenAdapt compiles
the verified run into a program (`openadapt_flow.jit`, released;
prompt-to-program `compile-agent`, on main; the agent acts through code by
default, not screenshots, and every save the gate detects in its run is read
back, [#1305](https://github.com/OpenAdaptAI/OpenAdapt/pull/1305)). Agents can drive the recording
through the web, native Windows, RDP and Citrix backends. An agent connected over MCP can
teach itself a new workflow and then call it as a tool
(`openadapt-agent serve --teach`,
[#1335](https://github.com/OpenAdaptAI/OpenAdapt/pull/1335)).
2. **Compiles to the fastest layer the app allows.** Page structure first (DOM,
Windows UI Automation, macOS Accessibility), direct API calls where the app's
own traffic allows them (`ApiActuator`, released; compiled from captured
traffic in [#1261](https://github.com/OpenAdaptAI/OpenAdapt/pull/1261)),
and pixels only
where nothing else exists, such as a remote desktop. It is not a pixel-macro
recorder.
3. **Builds branching programs, not one linear path.** One program from several
demonstrations (`induce`, `disambiguate`), a branch learned from several
halts fixed the same way (`teach-branch`), candidate branches mined from many
real runs in the background (shadow mode,
[#1212](https://github.com/OpenAdaptAI/OpenAdapt/pull/1212)), and a router
that sends each item to the right verified variant. Shadow mining and the
router are on main; the rest is released.
4. **Works across surfaces in one workflow.** Backends for web, native Windows
and macOS, Linux, RDP and Citrix. Programs chain across surfaces passing confirmed values
(`compose`, `process`, released), and one program can switch surfaces, tabs
and popups mid-run ([#1197](https://github.com/OpenAdaptAI/OpenAdapt/pull/1197)).
5. **Confirms the right record before every write and reads it back after.**
A run is `VERIFIED` only when a read outside the acting session confirms the
save: the system of record (API, database, FHIR with SMART Backend Services,
a log or an export) or a separate session (a fresh sign-in on the web; on
desktop, a fresh session or a relaunch of the app, as the deployment
declares). A read on the acting screen gets its own level and never
verifies a run. The run report names the level for each save with a
declared read-back. Where the app's own screens are the only independent
read, the check covers at most the target record, plus the same actor'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; other records, later
server-side jobs and outbound messages are not covered. The wire check is
evidence of what was sent, not a check level.
`record --verify` proposes those checks from what the demonstration changed.
Released.
6. **Stops instead of improvising, and never retries an uncertain save.** A run
that can't prove a save ends `HALTED_BEFORE_EFFECT` or
`RECONCILIATION_REQUIRED`, never "success". A ledger of what changed before
a stop, with undo steps a person approves, is on main. The rest is
released.
7. **Approvals are bound to exactly what will be saved.** Each save waits for a
person by default and can be answered on a paired phone with one card per
decision. The approval is bound to the exact screenshot and form state, and
the form is read again before saving, so what was approved is what is saved.
Person-signed grants let named agents answer. Released.
8. **Repairs itself, with a person approving.** Governed repair (propose,
review, campaign, canary, rollback), agent-demonstrated fixes for a halted
run, and fleet drift patches shared with no patient data (moved as files
or through a local reference hub) are released.
Self-repair, where an agent proposes a fix and Flow probes it up to the save
without saving, is on main, and so are fixes of up to three new steps.
Self-repair is qualified on browser runs ([benchmark/auto_repair](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/auto_repair/README.md))
and end to end on native macOS AX ([#1715](https://github.com/OpenAdaptAI/OpenAdapt/pull/1715)). Outside a browser it
runs with `repair.session` ([#1717](https://github.com/OpenAdaptAI/OpenAdapt/pull/1717)), and native and pixel backends
admit its new clicks by element identity ([#1709](https://github.com/OpenAdaptAI/OpenAdapt/pull/1709)). Teaching the fix
for a halted run (`--hold-on-halt`) and rollback are tested on browser runs.
9. **Is a safety layer underneath any agent.** An agent's MCP calls, a task
ledger that keeps a long job's rules, items, questions and checked saves on
the server ([#1332](https://github.com/OpenAdaptAI/OpenAdapt/pull/1332)), a guarded save around any agent's write
([#1258](https://github.com/OpenAdaptAI/OpenAdapt/pull/1258)), a guard for
an agent you already run that holds its browser's saves with no change to
the agent ([#1357](https://github.com/OpenAdaptAI/OpenAdapt/pull/1357)), `verify-run`
to judge any executor's write from the system of record, and Agent Skills and
a CLI for coding agents. Released except where a PR is named.
10. **Runs locally and keeps data private.** Healthy runs make no calls to a
hosted AI model and send nothing out. Personal and health data are redacted from text,
screenshots and structure (scrub-by-default for anything that leaves the
machine is on main); a strict no-outbound mode, an unattended on-prem
service, and signed, timestamped receipts are released.
## Often missed
| What OpenAdapt does | Where |
| --- | --- |
| Learns branching programs from several demonstrations, from repeated halts, and from many background runs. | `induce`, `teach-branch`, [SHADOW_MINING.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/capture/docs/SHADOW_MINING.md), [LEARN_FROM_MANY_RUNS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/LEARN_FROM_MANY_RUNS.md) |
| Chains programs across surfaces, and one program can switch surfaces, tabs and popups mid-run. | `compose`, `process`, [#1197](https://github.com/OpenAdaptAI/OpenAdapt/pull/1197) |
| Uses page structure first on web, Windows, macOS and Linux, with pixels as the fallback for remote desktops. Benchmarks labelled "vision-only" ran a deliberately pixel-only arm. | [RESOLUTION_LADDER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/RESOLUTION_LADDER.md) |
| Replaces a single HTML form submission with the request the app itself sends, compiled from the network traffic captured while recording, then reads the record back. URL-encoded and file-less multipart saves, the clicked button's value, and saves the page's script sends to another endpoint are covered. JSON saves (GraphQL mutations included) are bound by JSON pointer and sent with the headers the app's own script sends in the session. Uploads, multi-step wizards and governed runs still use the screen steps. | `api`, [API_TIER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_TIER.md) |
| Builds the record check itself. After a save, the app usually reads the record back to show it; `scaffold-verifier` finds that read in the captured traffic or a read-only database, builds the check from it and tries to break it before a person reviews it. No API or SQL needs to be written by hand. | [EFFECT_KIT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/EFFECT_KIT.md#a-record-check-built-from-the-apps-own-reads-scaffold-verifier) |
| Checks a save on desktop, RDP and Citrix apps with no API at all, by looking the record up in the app's own screens in a separate session. | [EFFECT_KIT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/EFFECT_KIT.md#separate-session-desktop-read-back-desktop_readback) |
| Reads a web save back a second time when the app has no API or database read: a separate, freshly signed-in session reads a search view the save didn't show, counts duplicates, reads the app's audit log for collateral changes, and settles portal saves that are "pending review" with a later read. It is graded a screen read-back, never the system-of-record check. On OpenEMR and Dolibarr, direct or behind a bad-VPN proxy, the only planted fault it confirmed was a collateral edit when no audit view was declared. | [EFFECT_KIT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/EFFECT_KIT.md#when-a-ui-read-counts), [benchmark/ui_second_read](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/ui_second_read/RESULTS.md) |
| Keeps pixel-path runs working across display scaling from 100% to 175% and font smoothing on or off, and stops rather than saves when the record changed. | [benchmark/pixel_scale](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/pixel_scale/README.md) |
| Lists every change made before a stop and rolls it back with compensations a person approved once, then proves it by reading the whole database: equal to the read from before the run is `ROLLED_BACK`, anything else names the exact rows. | `undo`, `rollback`, [ROLLBACK.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/ROLLBACK.md), [AFTER_A_STOP.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/AFTER_A_STOP.md) |
| Clears a known interruption (a session warning, a banner, a tour) by itself, only when the dismissal is provably read-only: matched by its text and control, a closed set of non-committing labels, no write seen by the browser write fence or the system-of-record read-back, and the step's normal identity check afterwards. Anything else stops the run. Classes are per-app data. | [INTERRUPTION_RECOVERY.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/INTERRUPTION_RECOVERY.md) |
| Repairs itself when the app changes: governed repair, agent-demonstrated fixes, fleet patches, and self-repair probed up to the save. | [REPAIR_LIFECYCLE.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/REPAIR_LIFECYCLE.md) |
| Repairs a change that needs new steps, such as a new required dialog or a control moved into a menu: up to three new steps, each with its own record check, probed up to the save before one person approves. | [SELF_REPAIR.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/SELF_REPAIR.md), [#1325](https://github.com/OpenAdaptAI/OpenAdapt/pull/1325) |
| Compiles a computer-use agent's verified run, with no human demonstration needed. | [JIT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/JIT.md) |
| The agent that does a task once acts through code by default, not a screenshot-and-click loop: it reads the page or accessibility tree, acts by role and name, keeps notes with a sandboxed read-only shell, and asks for a screenshot only when it needs one. Every save the save gate detects is read back from the system of record before the agent goes on. Scoreboard arm 7, MockMed items 21 to 40: 18 of 18 normal items correct at $0.0093 an item; the wrong-patient save landed and the read-back then stopped the run; the scoreboard counts 1 silent wrong save by its word rule, a safe stop on hand review ([HAND_REVIEW.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/scoreboard/raw/mockmed/code_agent/2026-10-25-rb/HAND_REVIEW.md)). The program compiled from it: 18 of 18 at $0. | `CODE_AS_ACTION.md` in [#1305](https://github.com/OpenAdaptAI/OpenAdapt/pull/1305) |
| Binds each approval to the exact screenshot and form state, and re-reads the form before saving. | [APPROVAL_MODES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/APPROVAL_MODES.md) |
| Has a written threat model for prompt injection against the agent that teaches or repairs a program, with tests. | [THREAT_MODEL.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/THREAT_MODEL.md) |
| Fills inputs from a referral PDF, fax image or email, and holds back anything unclear for a person. | `intake`, [INTAKE.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/INTAKE.md) |
| Ships as one monorepo with separately installable packages (flow, agent, types, capture, privacy, desktop and tray), each released from the monorepo. | [README](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/README.md) |
| Makes no calls to a hosted AI model on healthy runs. Model training (openadapt-ml) is separate research. | [README](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/README.md) |
## The full map
Every capability, with its status, its evidence and where it lives.
Status:
- **Released**: in the current releases: `openadapt` 1.19.0 and openadapt-flow
2.5.0 on PyPI, and Desktop 0.25.0 for Desktop rows.
- **On main**: merged into the monorepo; installable from source.
Evidence:
- **Real app**: run against a real third-party application, such as a local
OpenEMR or openIMIS.
- **Synthetic**: run against OpenAdapt's own test apps (MockMed and fixtures).
All patient and claim data in every test and benchmark is synthetic.
## The core: a checked entry, every time
A person, or a computer-use agent once, shows a task. OpenAdapt compiles it
into a program that makes the same entry every time with no model calls. It
confirms the right record before acting, reads the saved record back from the
system of record instead of trusting the screen, and stops instead of
improvising or retrying when something is off.
| Capability | Status | Evidence | Where |
| --- | --- | --- | --- |
| Compile one or more demonstrations into a deterministic program | Released | Real app (OpenEMR referral, 62 timed runs) | `openadapt-flow record`, `compile`; [packages/flow](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/README.md) |
| Try the three acts on a real app: `openadapt quickstart --app openemr` runs the certified OpenEMR referral program in Docker, five referrals at once checked in OpenEMR's record, then a possible duplicate stopped before saving; without Docker or a clone it says so and exits 2 | On main ([#1431](https://github.com/OpenAdaptAI/OpenAdapt/pull/1431)) | Real app (local OpenEMR 8.0.0.3, synthetic patients) | `openadapt quickstart --app openemr`; [docs/quickstart](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/docs/quickstart/README.md#on-a-real-app---app-openemr) |
| Run the quickstart without taking over the screen: `uvx --python 3.12 openadapt@latest quickstart` keeps the browser hidden and shows progress in the terminal (`--watch` shows the window, `--open` opens the Seal page), runs a run whose starting screen never settles once more in a new folder and otherwise says why in plain words, and reruns itself with Python 3.12 under `uvx` on an unsupported Python. Flow's page settle hands a page that draws no frames (a covered headed window) to the screenshot check instead of waiting out its timeout | On main ([#2365](https://github.com/OpenAdaptAI/OpenAdapt/pull/2365)) | Unit tests; headless terminal captures at 80, 120 and 250 columns for Terminal.app, WezTerm and iTerm2 settings; a headed covered-window run is not reproduced here | `openadapt quickstart`; [openadapt/quickstart](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/openadapt/quickstart/__init__.py), [_page_quiescence.py](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/openadapt_flow/backends/_page_quiescence.py) |
| See a crash and a restart in the quickstart: on MockMed, Act 3 runs a batch of two new notes in a separate worker process, stops it with SIGKILL after note 1's save is checked, and restarts the batch with the same on-disk write ledger (`IdempotencyLedger`); the replayer finds note 1's key and sends no save for it (its report: idempotent replay, 0 actions), then saves note 2; each note's database is read afterwards. Each note has its own copy of the clinic's database, as in Act 2 | On main ([#2840](https://github.com/OpenAdaptAI/OpenAdapt/pull/2840)) | Synthetic (MockMed; real headless runs on macOS, unit tests with fakes) | `openadapt quickstart`; [restart.py](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/openadapt/quickstart/restart.py) |
| Classify common local edits without a person (select-all, Enter in a field or dropdown, an in-form tab, an informational dialog's dismiss), only when the recording's network capture shows no write and a runtime check confirms only the expected change | Released ([#1366](https://github.com/OpenAdaptAI/OpenAdapt/pull/1366)) | Synthetic; OpenEMR referral recording re-admitted offline (violations 12 to 1 under `permissive`) | [LOCAL_EDIT_CLASSIFICATION.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/design/LOCAL_EDIT_CLASSIFICATION.md), `compiler/local_edit.py` |
| Keep the empty search result a person confirmed through (a duplicate check's "No matches were found.") as an exact check after the click that opens the dialog and again right before Confirm, so a run whose dialog lists a match stops before the save; only fixed-vocabulary search-result statements shown once, never text with a name or search term, and a confirmation dialog without one is noted in `compile_notes.json` | On main | Real app frames (an OpenEMR referral recording, compiled offline) | `compiler/empty_result_guard.py` |
| Mine that check in any language: induction keeps the one line a named dialog adds (not its title or buttons, not a question, no typed value or number) when two or more demonstrations whose typed values all differ show the same line, refuses when the demonstrations disagree on a mined check instead of copying the first one's, and qualification then needs a business-rule run that halts at it | On main | Synthetic (a search dialog recorded in Chromium by the real recorder, German statement, real OCR) | `compiler/empty_result_guard.py`, `compiler/induction.py` |
| Qualify against a rule the app itself enforces: verify.yaml `business_rules` seed the conflicting record (an existing chart for the same person, checked in the read-back), and the certified bundle must stop at the rule's check before the save with nothing written on every trial, or certification is withdrawn | On main | Unit tests; the OpenEMR fixture's verify.yaml declares the existing-duplicate rule | [QUALIFY_A_WORKFLOW.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/QUALIFY_A_WORKFLOW.md) |
| Right-record check before any write (structure, then OCR, then pixels) | Released | Real app and synthetic | [RESOLUTION_LADDER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/RESOLUTION_LADDER.md), `runtime/identity.py` |
| Read the saved record back from the system of record (API, database, FHIR, separate session) | Released | Real app (OpenEMR 12 of 12 fields) | [VERIFICATION.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFICATION.md), `runtime/effects/` |
| Check a change that no app database holds: a saved file (contents and SHA-256), a Windows registry value (`winreg`, read-only) or a macOS preference key (`defaults export`), declared as typed sources in `verify.yaml` (`kind: local-state`); a missing value is a state, a failed read halts | On main | Real app in the lab: Windows 11 Notepad, recorded, compiled, replayed with a new note and checked by `verify-run` in the guest, 3 of 4 final trials `verified` (the fourth hit a lab timeout before replay), each with a skipped-replay control refuted; Windows registry reads checked on the same machine. The macOS source is unit-tested only | [LOCAL_STATE_CHECKS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/LOCAL_STATE_CHECKS.md), `runtime/effects/local_state.py`, `examples/local_state/` |
| Generate read-only OS `local-state` verification contracts for built-in everyday tasks (`macos_night_shift` via private `CoreBrightness`, `windows_night_light` via `HKCU` CloudStore `Data` byte 18 heuristic, and `macos_calendar_event` via EventKit `EKEventStore` matching exact title, local-timezone start/end, recurrence, and optional `event_uid`), wired into `openadapt quickstart --task night-shift` and `--task calendar-block` (with opt-in `--probe-baseline` and withheld revert contract when baseline is unreadable); unreadable or unsupported hosts fail closed as `INDETERMINATE` | Experimental | Unit-tested across all 3 probes (enabled/disabled, malformed bytes, missing/ambiguous calendars, unauthorized EventKit, aware timezone conversion, wrong OS -> fail-closed `INDETERMINATE`) and contract generation; live Windows and end-to-end macOS toggle runs not yet recorded | `openadapt quickstart --task`, [LOCAL_STATE_CHECKS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/LOCAL_STATE_CHECKS.md), `openadapt/quickstart/everyday.py`, `runtime/effects/local_state.py` |
| Read values out of an app as a workflow step (READ), with a records format, a signed review queue and export to CSV or a database | Released ([#1229](https://github.com/OpenAdaptAI/OpenAdapt/pull/1229), [#1215](https://github.com/OpenAdaptAI/OpenAdapt/pull/1215), [#1218](https://github.com/OpenAdaptAI/OpenAdapt/pull/1218)–[#1224](https://github.com/OpenAdaptAI/OpenAdapt/pull/1224)) | Synthetic (mock desktop apps) | `openadapt_flow/interchange/` |
| Stop before the effect instead of improvising (`HALTED_BEFORE_EFFECT`) | Released | Real app and synthetic | `runtime/replayer.py` |
| Fill a multi-step browser form or quote wizard from an intake record, stop for an operator on a prefill that disagrees with the intake or a question the intake does not answer (decided in a Chrome side panel), submit once, and give every typed, selected or kept field a read-back verdict: `passed`, `failed` or `not_checked`. A field it cannot read back is `not_checked`, never passed; such a submit ends `readback_incomplete` with no receipt | On main, prototype; not on PyPI until Flow 3.4.0 ([#2308](https://github.com/OpenAdaptAI/OpenAdapt/pull/2308)) | Synthetic only. Four quote portals built separately from the layer, 32 scored cases, pre-registered: 6 correct submissions, 0 wrong values submitted, 0 verified (every field on the one workable portal is `not_checked`, because its summary is plain text). The surface cannot see iframe or shadow-DOM forms or fill type-aheads, so 3 of 4 portals submitted nothing. Estimator, session-timeout and type-ahead traps were never reached. Rule proposals from repeated operator answers (`form_tx/learning.py`) had no measured effect: none qualified ([RESULTS](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/form_tx_heldout_run/RESULTS.md)) | `openadapt_flow/form_tx/`, [FORM_TX.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/FORM_TX.md) |
| Never retry an uncertain save (`RECONCILIATION_REQUIRED`) | Released | Synthetic (fault server) | [VERIFICATION.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFICATION.md) |
| One check-level scale, 0 to 5, from "unchecked" to "counterparty confirmed" | Released | Unit tests | `openadapt_flow/check_level.py` |
| One receipt word per check, the same on every path: `VERIFIED` always names the basis that earned it. The baseline is the check a careful person does after a save, basis `post_save_screen` (level 1): the form left edit mode, no error is shown, and every intended value was read on the screen, field by field, and matched; a banner or toast alone never earns it, and a value that was not read means `RECORDED`. The same check after reopening the record is `reopened_record` (level 2); stronger evidence is a stronger basis on the same word (`separate_session` or `fresh_reload` at level 3; `system_api`, `activity_log`, `db_frame` or `owned_connection` at level 4). A run or policy can require a stronger level: under `Regulated` a screen check is not `VERIFIED`. `CONFIRMED` is the counterparty, `ATTESTED` an operator and `RECORDED` the rest. `VERIFIED` means "as of the read-back time the read-back showed this value", not "persisted". Run receipts (`record/run/v1`, an additive optional field), `verify-run` receipts, `tx` receipts and the kernel's receipt bridge carry an evidence-scope block: level, basis, word, the wire channel watched, the read-back time, the recheck window, and what it did not cover (always server-side async and outbound effects). `openadapt.wrap` takes its word from the Contract's read-back receipt; a declared `checked_how` alone is `RECORDED`. In a browser the runtime records each save's post-save screen check (counts and flags only); on a backend that can't read the page, a run checked only on its screen gets a `RECORDED` receipt. When reloading can't repeat the save, the runtime then reopens the record on a fresh page load and reads every value again (`reopened_record`, level 2); a value the browser showed but the server didn't keep stops the run. Where it can't reopen safely, the check stays at level 1 and such a value can pass. Older receipts that say `SHOWN` still verify and are labelled as the older format. Receipts without the block still verify | On main | Unit tests (shared cases across the types ladder, the run receipt block, the kernel bridge and `openadapt.wrap`; signed `record/run/v1` vectors checked by the Python and JavaScript verifiers); real headless runs on MockMed, compiled without database access: a clean save's receipt is `VERIFIED` / `reopened_record`, and a save whose note the server dropped stops at the reopen (`packages/flow/benchmark/post_save_screen/`). Not yet shown on a held-out app | `openadapt_types/check_level.py`, `openadapt_types/evidence_scope.py`, `openadapt_flow/evidence_basis.py`, `openadapt_kernel/receipt_bridge.py`, `openadapt/wrap_sdk.py` |
| Grade a file, PDF or email check by who produced it: a file the acting session wrote or downloaded, or one with no declared producer, is at most `same_screen`; one a separate session fetched is at most `separate_session`; only a declared `system_of_record` producer reaches `system_of_record`. A store that overlaps the acting session's folders (named ones, the user's Downloads, a Playwright download folder) is graded as the acting session's whatever is declared. Under a strong declared producer, a scan that reads a file in a browser download folder beneath the store, or a symlink out of it, is refused as INDETERMINATE. The verdict's `read_evidence.provenance` names the producer and whether it was declared or observed | On main | Unit tests through each of the four readers (mixed store, symlink, system-owned positive case); a PDF downloaded by headless Chromium from a loopback app, the same bytes from a separate browser context and from the app's store, and a headless download landing beneath a broader store | `runtime/effects/artifact_provenance.py`, `effects.artifact_producer`, `packages/flow/tests/test_effect_artifact_provenance.py` |
| One strict matcher decides whether text on a screen or page proves a value or a commit: `MATCH`, `MISMATCH` or `AMBIGUOUS`, and only `MATCH` passes. A value must be bound to its label at the start of its field, with nothing but unit words beside it, or be the whole field. A value merely found on the page, inside a longer token (`250` in `$1,250.00`, `John Smith` in `John Smith-Jones`), or under a label with two values never passes. A commit phrase must be new, plainly stated, and not next to a question, a negation or a control label. The launcher's transducer read-back and the kernel's read-back oracles use it; [the migration page](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/types/docs/evidence-migration.md) lists the callers that don't yet | On main | Adversarial corpus with pinned verdicts, Hypothesis properties, a parity test against Flow's read-back matcher, and strict expected-failure tests for each caller not yet migrated | `openadapt_types/evidence.py`, `openadapt/transducer_obligations.py`, `openadapt_kernel/oracles.py` |
| Check a value where a careful person would look again: an effect location (`openadapt.effect-location/v1`) is pack data for one place an intended value shows (path and start condition, locator, expected value, codec, expected count, optional baseline). One summary row can cover two values ("Name (DOB)"), and a date can be split over three fields. Every planned value is `held`, `refuted` or `not_checked`; a place that can't be reached, found or read is `not_checked`. The check level follows the start condition (a new session is level 3), and the engine holds no application words | PR [#2500](https://github.com/OpenAdaptAI/OpenAdapt/pull/2500), not yet used by a runner | Unit tests and the fail-open harness (synthetic readings only) | `openadapt_flow/effect_location/`, [EFFECT_LOCATION.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/EFFECT_LOCATION.md) |
| Judge any executor's write, including an agent's or a script's, from the system of record | Released | Synthetic | `openadapt-flow verify-run`, [VERIFY_RUN.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFY_RUN.md) |
| Judge an "ensure the record exists" write (found, created once with every value, or needs review) through a FHIR server's read path only: searches, AuditEvent and `_history`, never the database; the coverage claim names that read path. An agent's own correction of the record it created counts as one write when the audit trail and history show only that agent, no other reader, and the same record in every version | Released ([#1640](https://github.com/OpenAdaptAI/OpenAdapt/pull/1640), corrections [#1655](https://github.com/OpenAdaptAI/OpenAdapt/pull/1655)) | Real app (Medplum 5.2.8; three blind fault suites: 17/18, 17/20, 19/20; no fault passed in the last two. Corrections, on 15 blind cases and the 37 public ones: false stops 8 to 2 and 9 to 4 for Claude, no harm passed that the old rule caught) | `openadapt_flow/ensure_record.py`, [ENSURE_RECORD.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/ENSURE_RECORD.md) |
| Generate an ensure-record contract from three demonstrations, the server's CapabilityStatement and its SearchParameter definitions: field paths and `[system=…]` filters, comparison kinds, value maps, identity, search parameters, the closed record and the change feed. It refuses when unsure, asks a person to confirm an identity for a type with no reviewed template, and self-checks every demonstration plus a perturbation per field | Released ([#1653](https://github.com/OpenAdaptAI/OpenAdapt/pull/1653)) | Real app (Medplum 5.2.8: all 16 hand-written Patient lines regenerated; one blind write type, Immunization: 78 s of person time, 2 lines edited after the person declined the proposed identity; blind suite 23/24, no fault passed) | `openadapt_flow/generate/ensure_contract.py`, [RESULTS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/contract_autogen/results/RESULTS.md) |
| A stop card for a stopped write: the exact record difference and who else wrote, with Undo or Fix that reads back, or Open in the app; cost modelled from published operators and timed machine steps, as pre-registered | Released ([#1653](https://github.com/OpenAdaptAI/OpenAdapt/pull/1653)) | Real app (Medplum 5.2.8, blind suite: 16 stops, 14 one-tap with no failed read-back; modelled 42 s per caught harm against 420; one wrong category on a false stop, gone in the re-measure with `void`: 24/24, 15 stops, no wrong category, no failed read-back) | `benchmark/stop_card/`, [PREREG_REVIEW.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/stop_card/PREREG_REVIEW.md) |
| Generate `openadapt.verify/v1` contracts from a MySQL, MariaDB or PostgreSQL schema, the kinds of write with their parameter names, and one demonstration write per example: one contract per field set (an update gets one for each set of fields it may change), and `choose` builds any other set of the kind's fields the same way from the same pinned inputs, list parameters by length, a `found` twin for a record already in place, the whole-database frame on every dialect (it compares the contract's own tables too, so an excused column holds only on the rows the write declares, and the recheck sees a late change to a look-alike row), rows the app adds on its own declared by count, a recheck window the person confirms, and `frame.versions` (a lost update) from a version column or the app's audit trail of saves. Equal ids are never taken for a join (a row's own key, the column a path arrived by), a join only equal ids support is a question when a supported place also fits, and a pin needs two rows that agree. Every undecided point is one numbered question; every contract is loaded and dry-read against the live store before it is written; a needed `TRIGGER` grant or view is applied with a flag or the kind is refused. A field no demonstration gives is placed at the main table's column of its name, or at the one text column whose name holds its words (never a key column); a create may leave out a text field whose column can't hold NULL and has an empty default, and the contract checks it empty; the `found` twin checks only the task's values, a soft-delete column and yes/no flags, so a record a person entered with other values is found, and a row the write would log beside it is not required; `choose` turns a list of plain values into the demonstrated one-key items, treats an empty list as nothing given, and reads an update's only changes given as null as emptying those fields ([#2418](https://github.com/OpenAdaptAI/OpenAdapt/pull/2418)). Not yet: OpenAPI metadata; a value the app defaults sent explicitly (a currency equal to an app-level default) is still refuted | [#1672](https://github.com/OpenAdaptAI/OpenAdapt/pull/1672) | Real app (first study, instance copies; questions for a person: Dolibarr 4, Redmine 2, EspoCRM 3, against 11 hand decisions each; every in-scope planted fault stopped (22/22, 19/19, 21/21); correct writes confirmed 32/43, 32/38, 27/40; evidence in the private study repository) | `python -m openadapt_flow.generate.verify_contract`, [GENERATE_CONTRACTS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/GENERATE_CONTRACTS.md) |
| Set up generated contracts with no person answers: answer the generator's questions by fixed rules (its own bookkeeping proposal with time stamps checked against the clock, nothing added), validate them in a sandbox copy of the store beside the app's own (a database or schema the setup makes and drops) by replaying held-out correct writes and planting faults built from each write's recorded diff, never from the contract (missing, wrong value, wrong or look-alike record, duplicate, unrelated edit, a row in another table, a delayed change, a changed bookkeeping cell), and admit a kind only when every held-out write is confirmed and every fault stopped; a kind not admitted has no contract and is listed in `EXCEPTIONS.md`. Not yet: log tables, counters and derived columns, learned excuses, value maps | (this PR) | Unit (real PostgreSQL: one kind admitted with every planted fault stopped, one listed as an exception; a control without the clock check lets the time-stamp fault through). Development apps pending | `python -m openadapt_flow.generate.zero_touch`, [ZERO_TOUCH_DESIGN.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/research/ZERO_TOUCH_DESIGN.md) |
| Draft a system's write contract with a model at setup, admit it only by qualification: `openadapt verify draft` gives the pinned model (`claude-opus-5-5`, prompt digest recorded in the contract's `provenance`) the system's description (OpenAPI, GraphQL, FHIR CapabilityStatement, the introspected database schema, or none), one HAR trace with sign-in and secret fields masked, what that write moved in a sandbox, and the task. The draft is admitted only if, on the sandbox, it refutes planted faults (a wrong value in each written column, the wrong row, a duplicate, a sibling record edited, the write reverted after the check, and for an update another user's save overwritten through the app), confirms 5 clean writes and their rechecks, and confirms a two-users-by-two-payloads probe whose attribution of every moved column (values, user, clock, nothing) agrees with its bookkeeping exclusions. Failures go back to the model, at most 3 rounds; a person is asked at most once, only when a planted fault could go only into excluded columns. An admitted contract runs with no model calls. Its admission record is signed with the local key, and `--check` refuses an edited check, an edited or unsigned record, or one no pinned key signed. Needs an SQL store the command can read and a privileged connection to plant faults | PR ([#2438](https://github.com/OpenAdaptAI/OpenAdapt/pull/2438)) | Real app, lab, synthetic data: Directus 11.5.1, never set up before: admitted in round 2 after 6.0 minutes with 0 person decisions (round 1 was lost because a sign-in fell inside the measured window; fixed after the run, not rerun), 7/7 planted faults refuted in admission and 8/8 held out (a lost update through the app among them), 0 false stops on 10 clean writes, 2 model calls. Mealie 2.8.0, never set up before: refused after 3 rounds in 9.2 minutes, since its store keeps no version, author or save history that could show a lost update. Synthetic MockLoan and workbench: admitted in round 1 in 1.3 to 1.4 minutes, 16/16 held-out faults. The pre-stated 5-minute limit on the untuned app was not met | `openadapt verify draft`, `openadapt_flow/verify_draft/`, [VERIFY_DRAFT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFY_DRAFT.md), [results](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/verify_draft/RESULTS.md) |
| `void` in an ensure-record contract: values that make a record assert nothing (`status="entered-in-error"`). A record holding one is never the person, is not a duplicate, and a created one needs review; it names values to leave out, never values to keep, and can't name an identity field | Released ([#1657](https://github.com/OpenAdaptAI/OpenAdapt/pull/1657)) | Real app (Medplum 5.2.8: 8 live cases written in advance, 8/8 with the line, 5/8 and one silent pass without it; frozen blind Immunization suite 24/24); adversarial review recorded | `openadapt_flow/ensure_record.py`, [RESULTS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/fhir_medplum/void/results/RESULTS.md), [REVIEW_VOID.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/fhir_medplum/void/REVIEW_VOID.md) |
| Check a patient registration on a commercial EHR through its public FHIR sandbox: Epic (open.epic, R4), read through FHIR search and read with SMART backend auth; the frame is the search set, since the sandbox has no AuditEvent or `_history` | Released ([#1656](https://github.com/OpenAdaptAI/OpenAdapt/pull/1656)) | Real app (Epic public sandbox, August 2026 release; blind round 12/13 with none passed as verified, the miss a false refusal fixed in the contract; caught Epic dropping the phone on a 201 create) | `benchmark/commercial_ehr/`, [FINDINGS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/commercial_ehr/FINDINGS.md) |
| A public benchmark a vendor reruns with their own agent: `openadapt bench medplum --agent <scripted|claude|cmd:...|py:...>` runs 37 written-for-it cases (Patient, AllergyIntolerance, Appointment) against a local Medplum through a fault proxy, and scores the agent's claim, a read-back and OpenAdapt's verifier against an end-state oracle | On main ([#1652](https://github.com/OpenAdaptAI/OpenAdapt/pull/1652)) | Real app (Medplum 5.2.8; Claude Sonnet 5.5: OpenAdapt missed 1 of 9 harms with 4 false stops, all corrections that changed the record's identity, against 8 missed by the claim and the read-back; cold run from clone to scorecard 5 min) | [README](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/fhir_medplum/public/README.md), [RESULTS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/fhir_medplum/public/RESULTS.md) |
| A pre-registered leaderboard of computer-use agents doing the same 37 public cases in Medplum's own web app: the app's FHIR calls pass through the fault proxy inside the browser, the harness signs in, and the end-state oracle scores how often an agent says done when the record is wrong (`python -m benchmark.fhir_medplum.leaderboard.run --agent <claude|openai|fara|py:...>`) | On main ([#1737](https://github.com/OpenAdaptAI/OpenAdapt/pull/1737)) | Real app (Medplum 5.2.8 web app, 3 runs per case: said done with the record wrong in 25.2% of runs for Claude Sonnet 5.5 and 29.7% for GPT-6.1-sol, intervals overlapping, and 18.2% for local Fara-7B, which reached the 40-minute limit in 84 of 110 runs; neither API agent misreported a clean case; every collateral write was said done; protocol and hashes committed before any scored run) | [README](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/fhir_medplum/leaderboard/README.md), [REPORT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/fhir_medplum/leaderboard/REPORT.md), [PROTOCOL.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/fhir_medplum/leaderboard/PROTOCOL.md) |
| Write leaderboard v2: the same pre-registered question on five apps (Medplum, OpenEMR, Dolibarr, EspoCRM, Redmine) with a fault proxy at each app's front door, a database oracle per app, Wilson intervals and a private held-out set (`python -m benchmark.write_leaderboard_v2.run --agent <claude|openai|scripted|py:...> --app <app>`) | On main ([#2227](https://github.com/OpenAdaptAI/OpenAdapt/pull/2227)) | Real apps (local containers, synthetic records; 40 public cases and 15 held-out, 3 runs each): said done with the record wrong in 23.3% of public runs for Claude Sonnet 5.5 (28/120, CI 16.7-31.7) and 17.5% for GPT-6.1-sol (21/120, CI 11.7-25.3), intervals overlapping, held-out 20.0% for both; no clean-case misreport; collateral changes said done in 15 of 15 Claude runs and 11 of 15 GPT-6.1-sol runs (3 of the rest saved nothing, 1 saved and said NOT DONE); GPT-6.1-sol saved no OpenEMR patient because of an ambiguous task field; Gemini and Nova not run | [README](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/write_leaderboard_v2/README.md), [RESULTS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/write_leaderboard_v2/RESULTS.md), [PROTOCOL.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/write_leaderboard_v2/PROTOCOL.md) |
| Prove that nothing outside the declared change moved (frame conditions), and attribute concurrent edits by other users through the app's audit log (by record, or by owner for a user's own rows such as their UI settings) or a modified-by field; the receipt signs which parts were checked | On main | Synthetic (MockMed, SQLite audit log) | `verify-run`, [VERIFICATION_COVERAGE.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFICATION_COVERAGE.md) |
| Admit a record check only after a fault suite written to a store copy shows it catches every fault class it claims, including writes outside its read (another table, a side row for the saved record), and sign each class's result into the receipt | Released | Synthetic (in-memory REST store, SQLite copy); OpenEMR stand-in built from the pinned fixture's dump | `openadapt_flow/fault_gate.py`, `scaffold-verifier --fault-gate`, `verify-run` `admission:` |
| Measure a record check against faults written from an independent spec instead of from the check: the OpenEMR referral intake, 17 public cases and five blind held-out suites of 17 cases (private, hashes published), each frozen before the check it runs against; results that a suite shaped are kept and marked as not counting | [#1810](https://github.com/OpenAdaptAI/OpenAdapt/pull/1810) | OpenEMR stand-in (SQLite copy of the pinned fixture's dump): the whole-database contract on the counted held-out runs 16/17, 14/17, 17/17, 17/17 with no fault passed as verified. Live OpenEMR 8.0.0.3 (2026-11-04): gate not met on any suite, 14/17, 12/17, 14/17, 13/17. No fault passed, but every clean save was refused (frame: unexplained OAuth-token, address and form-column rows; one contract names a table live OpenEMR lacks). The read-list candidate passed 3 faults on held-out 1; the public suite on live OpenEMR 8.0.0.3 for two earlier contracts | `benchmark/verification_coverage/independent/`, [README](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/verification_coverage/independent/README.md) |
| 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` |
| Hub pages whose sections open in dialogs: a dialog holding any editable control is a form, never a confirmation; each section's completion is read from its card on the hub after save, with the demonstrated writes, never assumed from the click | On main ([#2502](https://github.com/OpenAdaptAI/OpenAdapt/pull/2502)) | Synthetic: an EMR-like chart hub, a SaaS onboarding checklist (headless Chromium) and a desktop preferences window read as an accessibility tree | `openadapt_flow.gui.hub`, `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` |
| Repeating structures ("add another traveller", a table row, a line item) learned from one demonstration: instances are added to match the intake, filled in order and each read back by the container it was written into; a prefilled instance, more instances than items, or an add that did not add exactly one blank instance stops the run before writing | On main ([#2512](https://github.com/OpenAdaptAI/OpenAdapt/pull/2512)) | Synthetic: a web form, an EMR-like medication table, a SaaS invoice (headless Chromium) and a spreadsheet-like grid with no browser | `openadapt_flow.gui.repeating`, `packages/flow/tests/gui` |
| 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 no automatic undo, and its result is `UNCERTAIN` unless the read-back is a cache-bypassed API read whose record version is exactly one past the before-image's, which is `CONFIRMED` with basis `system_api`. `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) |
| Recheck a write to a system with no database access, after a window the caller sets: `runtime/effects/api_recheck.py` takes the system's log checkpoint, then reads the record through its API (a REST, FHIR or GraphQL verifier, through `VerifierReadback`; FHIR and GraphQL need a named server version, and a redacting verifier is refused), keeping only MACs of the record's identity, declared fields and version, keyed by the salt and this host's frame secret. At or after the due time it reads both again. `VERIFIED` means only that, between the start and end of the recheck, the read-back showed the same record and values and, when a log was read, the log since the checkpoint showed no unexplained change. Without a log the basis is the API read-back alone, and the result lists this caller's changes to other records as not covered. This caller's own unexplained entry in the log is `REFUTED`, and so is a changed or deleted record that the log doesn't attribute to another or an unknown actor. These are `NOT_CHECKED`: another actor's or an unknown entry's change; a read-back that lands on a different record or matches more than one; an exempted entry whose author or operation disagrees; a version that moved while the values stayed the same; a log read that didn't reach the checkpoint; a state that doesn't match its receipt; an early recheck; and a first result that wasn't verified. Entry ids decide what is in the window, never clock times. Every result lists what it didn't cover, including server-side async and outbound effects. Not yet: the log reader (the activity log adapter is a protocol; a reader for a system's own audit or event log is not on main), the receipt field, and an MCP tool | On main ([#2472](https://github.com/OpenAdaptAI/OpenAdapt/pull/2472)) | Synthetic (scripted log and record; MockMed's REST server over real HTTP: a late note edit refuted, a change to an undeclared field not checked) | `openadapt_flow/runtime/effects/api_recheck.py` |
| Diff the whole database for the frame (`frame.database`) on SQLite, MySQL, MariaDB and PostgreSQL. On MySQL and MariaDB every column type is read exactly (binary strings, `BIT`, geometries and vectors as hex, `FLOAT` widened to `DOUBLE`, `JSON` as stored text, decimals at full precision). On PostgreSQL every column type is read as text by a declared rule in a session pinned to UTC and exact float output, and a type without a rule, a table the account can't read in full, or an unreadable sequence is refused. So a row the save adds, changes or removes outside the declared records, such as an extra planned call or a stream note, is refuted unless a declared effect, a side record, an attributed concurrent write or an allow-listed bookkeeping table explains it | Released ([#1661](https://github.com/OpenAdaptAI/OpenAdapt/pull/1661)); PostgreSQL ([#1673](https://github.com/OpenAdaptAI/OpenAdapt/pull/1673)) | Real app (Dolibarr 21 on MariaDB 11.4: all 387 tables read where the frame raised `TypeError`; EspoCRM on MariaDB 11.4: the first-contact study's extra call and stream note refuted, correct opportunities verified; Redmine 6.1 on PostgreSQL 17: 58 tables read, a stray upload in a table the contract doesn't read refuted, correct writes verified); live MariaDB and PostgreSQL type tests | [VERIFY_RUN.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFY_RUN.md#the-whole-database), `runtime/effects/db_snapshot.py` |
| Learn, then enforce: excuse the app's own per-request writes on the acting user's own rows (the user's `last_login`, a token's `last_seen`, a first-login row) that make the whole-database frame refute every correct write. `learn collect` records each check's moved rows and the agent's request-body field names from a shadow run; `learn propose` proposes only moves on the acting user's rows (users table named once, user columns from the schema's foreign keys), never a column the agent sent or the contract names, as an exact column set seen in 3 of every 5 checks; one `learn approve` by a person writes `frame.learned` with the proposal's digest. At check time the relation is derived again from the run's actor: never another user's row, another column, a removal, more added rows than learned, or a row added for someone else. Collateral on the written row is never learned (a `relation: target` entry is refused at load); the generator's bookkeeping answer excuses those columns. Not yet: tables over `max_rows` | [#1679](https://github.com/OpenAdaptAI/OpenAdapt/pull/1679) | Real app (three held-out apps on MariaDB and PostgreSQL, replayed agent writes: correct writes of the kinds with an approved excuse confirmed 0 -> 74 of 100, the rest stopped at begin or by app rows that are neither the write's nor the actor's; 0 of 42 planted harms passed); adversarial tests on SQLite, MySQL and PostgreSQL | `openadapt-flow learn`, [LEARNED_EXCUSES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/LEARNED_EXCUSES.md) |
| Three verdict tiers, entity-scoped frames and shadow mode by default: with `frame.database.entity_tables` (derived by `learn entities` from the setup: main tables, the tables a contract reads through, and the acting user's table), a row added or changed outside the entity tables (a scheduler, a queue, a recomputed total, a notification) is a logged side effect on a CONFIRMED result, by names only, and a candidate for the learner; a removed row, any entity-table row the write doesn't declare, another user's row and an unexcused column of the actor's row still refute. Settling ignores motion outside the scope; a generated read's own check columns are not compared on undeclared rows. The verifier waits for declared records with backoff (8 s budget, database reads only) before judging. A scope is admitted only when planted wrong-row, wrong-value, duplicate, sibling-edit, late-revert and lost-update faults and the actor-table attacks are all caught under it. A new contract is in shadow (`WriteResult.blocks` false, verdict recorded in full) until N clean checks in a row (20 to 50, default 30), then a person can turn gating on. Not yet: another user's unattributed edit of an entity-table record still stops the write; a harm confined to a non-entity table is logged, not stopped | (this PR) | Adversarial tests on SQLite (each safety-bar fault under a scope, settling under a moving queue, admission refusals); real-app replay pending | `openadapt-flow gate`, `openadapt-flow learn entities`, [VERDICT_TIERS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERDICT_TIERS.md) |
| Learn per-request bookkeeping from read-only requests, with no approval: `learn probe` reads the whole-database frame of one contract, sends only GET and HEAD requests as the agent, and reads again; a changed row of the acting user that every round (at least two) shows (users table derived from the manifest's actor parameters by foreign key) becomes a `frame.learned` excuse with `source: read_only_probe`, exact columns only, never a column the probe, the parameters or a contract names. Added rows, other users' rows and rows no user owns are not admitted (added rows are listed for `learn approve`), and only contracts whose every effect creates new records, or that read the target's versions on every other effect's surface, get the excuses (an update with no version source can't see a lost update without the bookkeeping move). Not yet: background rows that move with no request, derived rows a write recomputes | (this PR) | Real app replay (first-contact retest, four apps, frozen vs `main` vs this branch on identical writes): correct writes stopped on the app with per-user last-login bookkeeping 77 -> 36 of 77, in-scope harms 26 of 26 stopped before and after; on a second app 46 -> 34 of 46 replayed agent writes, its three lost updates still stopped; no change on two apps without such bookkeeping and on two held-out apps (the probe learned nothing there). One out-of-scope late duplicate that bookkeeping used to mask now passes; adversarial tests on SQLite, MySQL and PostgreSQL | `openadapt-flow learn probe`, [LEARNED_EXCUSES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/LEARNED_EXCUSES.md) |
| Count who saved an update's target on PostgreSQL, so learned bookkeeping can be excused on updates and found checks too: `frame.row_versions` holds a read-only REPEATABLE READ snapshot from the baseline to the judge; the replaced row version's `xmax` against the current row's `xmin` says whether one transaction or more wrote the target. Two or more refute the frame as a lost update; a judge in another process, a failed read, a target created in the window, an `xmax` that could be a shared lock naming another updater, or a `frame.row_versions` table and key that aren't the ones the target surface reads the target from stop it as not checked. `learn probe --apply` writes the source beside the excuse when the contract's read is one `SELECT` over one table (no join, `UNION`, subquery or second statement). Not yet: MySQL and MariaDB targets (a last-saved marker can't count saves; they need a history read or the change log), rows a window adds and removes on a composite key | (this PR) | Real app replay (InvenTree on PostgreSQL, first-contact retest, frozen vs fix vs this branch on identical writes): correct writes stopped 65, 48 and 27 of 65; the 21 released were all bookkeeping stops on updates and found checks, and none newly stopped; 0 of 31 planted and agent harms passed in any variant, and the row-version check itself refuted the planted lost updates (the pack's 2 plus a no-gap PATCH, a no-gap PUT, a found-check revert and a child-row revert); 9 of 9 excuse attacks stopped. No change on MariaDB apps (no source is derived) | `openadapt-flow learn probe`, [LEARNED_EXCUSES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/LEARNED_EXCUSES.md) |
| Catch a lost update: another user saves a change to the record while the agent works, and the agent saves its stale copy over it. Before and after look like a correct update, so `frame.versions` reads the target's versions (FHIR or SQL version history, a version column, or the app's audit or action-history table) before and after the write. A version by another author, or more than one version step when no author is read, refutes the write; a version that can't be read or attributed stops it | Released ([#1662](https://github.com/OpenAdaptAI/OpenAdapt/pull/1662)) | Real app (HAPI FHIR and EspoCRM, first-contact study fault scripts: both lost updates refuted, correct updates verified, every other case's verdict unchanged) | [VERIFY_RUN.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFY_RUN.md#lost-updates), `runtime/effects/versions.py` |
| Guarded save: a safety layer any agent wraps around one write (check the record, hold for approval, read back) | Released ([#1258](https://github.com/OpenAdaptAI/OpenAdapt/pull/1258)) | Synthetic | `GUARDED_SAVE.md` |
| A person's approval in Desktop is signed with a key kept behind Touch ID on a Mac: one-prompt setup in the app, a prompt for every answer, and Flow never sees the key | Released ([#1500](https://github.com/OpenAdaptAI/OpenAdapt/pull/1500)) | Unit tests; opt-in test on a real Secure Enclave | `packages/desktop/openadapt_desktop/approver_keychain.py`, [APPROVAL_MODES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/APPROVAL_MODES.md#the-approver-key) |
| The approver root Desktop trusts can be pinned by an administrator, in a file this user can't write (macOS, Linux, Windows); Desktop checks the owner, mode or ACL and refuses links. A Mac without one uses the root it set up behind Touch ID, read with Keychain prompts off; the two disagreeing is refused | Released | Unit tests per attack on real files; Windows ACL rules unit-tested, real-ACL test on Windows CI; opt-in test against the real login Keychain | `openadapt-desktop approver-pin`, `packages/desktop/openadapt_desktop/approver_anchor.py`, [APPROVAL_MODES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/APPROVAL_MODES.md#the-approver-key) |
| Review stops: every stop as one card with the evidence side by side (the item next to each possible match, field by field), answered with one key or tap on the computer or a paired phone, signed with the approver key, with batches for similar stops. The queue presents and collects; a changed or expired card changes nothing | Released ([#1519](https://github.com/OpenAdaptAI/OpenAdapt/pull/1519)) | Unit tests; a keystroke-level estimate on 20 soak stops (26.7 s to 8.2 s to decide, a model, not a person) | `packages/desktop/openadapt_desktop/stop_queue.py`, [benchmark/stop_queue](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/desktop/benchmark/stop_queue/README.md) |
| Draft a record check from the demonstration's write steps (`scaffold-verifier`) | Released | Synthetic | `openadapt-flow scaffold-verifier` (a person fills in the draft) |
| Build a working record check from the reads the app made while the person viewed the saved record, and test it against injected bad writes before anyone reviews it | Released ([#1284](https://github.com/OpenAdaptAI/OpenAdapt/pull/1284)) | Synthetic (MockMed, OpenEMR fixture) | `openadapt-flow scaffold-verifier` |
| When the demonstration never reads the saved record back, find the read by probing the collection and item reads the captured write implies (GET only, local copy of the app only, every probe in the proof) and use one only when it returns the written values and no write outside it could pass unseen. Before refusing a collection read, look for a prefix root that holds every record of the collection and the siblings the app read, and read the whole store from it; otherwise refuse or leave the read unavailable for a person. Also sees a save with an unfamiliar button label from its POST, and marks a generated REST read complete when it was declared or seen whole and unpaged | On main | Synthetic (local test app; zero-config benchmark on MockMed and MockLoan) | `openadapt-flow scaffold-verifier --probe-reads`, `openadapt_flow/read_discovery.py` |
| Check a save on desktop, RDP or Citrix by looking the record up in a separate read-only session | Released ([#1280](https://github.com/OpenAdaptAI/OpenAdapt/pull/1280)) | Synthetic (WinForms, RDP and Citrix stand-ins) | `runtime/effects/` |
| Learn the record check from the recording, when the person looks the record up after saving | Released ([#1290](https://github.com/OpenAdaptAI/OpenAdapt/pull/1290)) | Synthetic | `record --verify` |
| A record check's duplicate key can be several fields together, such as last name, first name and birth date: the check fails when more than one record carries all of them, counting records that were already there | Released ([#1393](https://github.com/OpenAdaptAI/OpenAdapt/issues/1393)) | Synthetic (OpenEMR-shaped patient rows) | verify.yaml `record.duplicate_key: [lname, fname, DOB]`, `confirm_params(idempotency_key=[...])`, `Effect.composite_key` |
| Checked later: a save confirmed by a later report or acknowledgment, never counted as done until then | Released ([#1297](https://github.com/OpenAdaptAI/OpenAdapt/pull/1297)) | Synthetic | `SAVED_AWAITING_CHECK` |
| Counterparty confirmations for payer claims: each claim with a deferred check is a handoff, and the payer's 999 or 277CA moves it to `acknowledged` (received or accepted, status only) or back to `sent` with a reason (rejected, no answer by the deadline, two claims on one key). The deferred check settles exactly as before | In a pull request | Synthetic (X12 999 and 277CA fixtures, unit tests) | `deferred settle`, `openadapt_flow/handoffs/payer.py`, [COUNTERPARTY_CONFIRMATIONS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/COUNTERPARTY_CONFIRMATIONS.md) |
| Counterparty confirmations by read-back: the sender records what it sent (as digests), then reads the other party's system by a profile (data) and reports `recorded_as_intended`, `recorded_differently` with the differing field ids, or `sent` with a reason (not found, matched twice, unreachable). One comparator for every producer | In a pull request | Real app: a second, synthetic OpenEMR 7.0.3 as the receiving clinic, written through its REST API and read back through FHIR with a read-only token; 180 of 180 runs as expected over 9 cases, 0 false alarms in 40 correctly recorded referrals, [results](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/handoff_receiver/results/2026-11-21.json) | `openadapt_flow/handoffs/`, [COUNTERPARTY_CONFIRMATIONS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/COUNTERPARTY_CONFIRMATIONS.md) |
| Open handoffs by state, with who still needs to follow up | In a pull request | Unit tests | `openadapt handoff list` |
| Receipts carry the run's handoffs as counterparty confirmation lines (`predicate.confirmations[]` in `record/run/v1`), written by the after-run receipt hook | In a pull request | Unit tests, and a real replayer run whose receipt carries its claim's `sent` line and verifies | `openadapt_flow/handoffs/line.py`, `receipt_record.py` |
| Follow-up receipts: each later change in a handoff's state is a separately signed `record/run/v1` record naming the original receipt (`follows`), and the chain verifies in order (`verify_chain`) | In a pull request | Unit tests: a three-record chain verifies; wrong original, out of sequence, changed fields and empty updates are refused | `openadapt handoff list --run RUN --sign-updates`, `openadapt_flow/handoffs/followup.py` |
| Keep the server's own answer to a save as lower-level evidence on the receipt | Released ([#1298](https://github.com/OpenAdaptAI/OpenAdapt/pull/1298)) | Synthetic | receipts |
| A ledger of what changed before a stop, a write-ordering lint, and undo steps a person approves | Released ([#1263](https://github.com/OpenAdaptAI/OpenAdapt/pull/1263)) | Synthetic (MockMed) | change ledger |
| Propose an undo for each saving step (another recording, captured traffic, or the old value), keep it only if a test copy shows every record restored, and offer it after a stop once a person approves it | Released ([#1346](https://github.com/OpenAdaptAI/OpenAdapt/pull/1346)) | Synthetic (MockMed, MockLoan, live browser) | `openadapt-flow undo propose`, `undo accept`; [AFTER_A_STOP.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/AFTER_A_STOP.md) |
| Roll a stopped run back on its own: the approved compensation for each change, latest first, an uncertain write only when a fresh read shows it landed, then a read of the whole database: every row the run touched back as it was and nothing else changed (`ROLLED_BACK`), or the exact rows a person repairs (`RECONCILIATION_REQUIRED`). A compensation runs only while every change in the store is positively the run's own by the app's audit log, so another user's work is never compensated away, and a hard delete runs only where the deployment allows it (void, restore or discard otherwise). `rollback qualify` stops the run before and after every save on a test copy and keeps only compensations that restore the whole store. On a desktop or remote-display backend a screen compensation runs only after the run's and the compensation's start screens are checked on the same backend | On main ([#1634](https://github.com/OpenAdaptAI/OpenAdapt/pull/1634)); desktop in [#1771](https://github.com/OpenAdaptAI/OpenAdapt/pull/1771) | MockMed, live browser through the CLI; SQLite whole-database tests (web and desktop paths) | `openadapt-flow rollback qualify`, `rollback:` in deployment.yaml; [ROLLBACK.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/ROLLBACK.md) |
| Leave the screen clean after an item that halted before any write: close dialogs and cancel forms with the recordings' own controls, re-enter, confirm the start screen and read the records back before the session takes another item. A session that doesn't come back is marked dirty and takes no more items; a cleanup that changed a record makes the item's write uncertain and stops the run. `cleanup qualify` tries the cleanup after every step on a test copy and refuses one that changes a record | Released ([#1607](https://github.com/OpenAdaptAI/OpenAdapt/pull/1607)) | Synthetic (scripted three-screen app through the real replayer and pool) and real app (pinned OpenEMR: a halted New Patient item left the confirmation dialog open; re-entry closed it, the form was empty, no patient row changed and the next item's first steps ran with no model calls; a signed-out screen was marked dirty; [results](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/halt_cleanup/results/openemr.json)) | `openadapt-flow cleanup qualify`; [HALT_CLEANUP.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/HALT_CLEANUP.md) |
| Commit-boundary kernel, an optional alpha extra: `pip install 'openadapt[kernel]'` adds `openadapt kernel` (or install `openadapt-kernel` alone for its own command), an experimental runtime with shadow, draft and autopilot modes and signed receipts that does not depend on `openadapt-flow`. `pip install openadapt` leaves it out, and the extra is capped below the next minor version because its API may change before 1.0 | On main | Synthetic (its own suite, headless Chromium tests included, runs in the required `ci` check on every kernel change) | [packages/kernel](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/kernel/README.md) |
## Approvals
| Capability | Status | Evidence | Where |
| --- | --- | --- | --- |
| Each save waits for a person by default | Released | Synthetic | [APPROVAL_MODES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/APPROVAL_MODES.md) |
| Approve or decline a save on a paired phone, with one card per decision and swipe or tap | Released (Desktop) | Synthetic | openadapt-desktop `portal/shell` |
| Person-signed grants let named agents or systems answer saves | Released | Unit tests | `openadapt-flow approver-grant` |
| Admit once, then stop only on problems | Released ([#1212](https://github.com/OpenAdaptAI/OpenAdapt/pull/1212)), behind a readiness gate | Synthetic | [APPROVAL_MODES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/APPROVAL_MODES.md) |
| Show the field values a save writes on the phone | Released ([#1257](https://github.com/OpenAdaptAI/OpenAdapt/pull/1257)) | Unit tests | `console/save_approvals.py` |
| Answer exception cards from any run on this computer in Desktop's stop queue and on a paired phone: each card (a one-time code prompt, an unexpected dialog, a sign-in partway through, a stall, a possible duplicate, an ambiguous record, a task it can't finish) offers only the run's own closed choices, is answered one at a time, and the answer is signed with the stop queue's approver key. Desktop reads only card files that are regular, owned by this user and readable by no one else, and lists at most 200. The cards come from Flow's exception registry ([#2494](https://github.com/OpenAdaptAI/OpenAdapt/pull/2494)); the Flow 2.4.1 that Desktop runs has none, so cards appear only from runs of a newer Flow | In PR [#2492](https://github.com/OpenAdaptAI/OpenAdapt/pull/2492) (openadapt-desktop 0.31.0) | Unit tests with Flow's card fixture and answer contract; synthetic | openadapt-desktop `exception_queue.py`, `stop_queue.py` |
| Show why an agent asked for a save: who asked, its own reason (as a quote), the screen text it saw, and any of that text that reads like an instruction to an agent | Released ([#1359](https://github.com/OpenAdaptAI/OpenAdapt/pull/1359)) | Unit tests, synthetic | `ApprovalProvenance` in `approval_mode/item_approval.py`; the phone card in openadapt-desktop `portal/shell` |
| Let any agent stop and ask a person, with one closed question and one signed answer: seven kinds (`second_factor`, `unexpected_dialog`, `session_expired`, `timeout_or_stall`, `possible_duplicate`, `ambiguous_record`, `cannot_complete`), five answers, a `raise_exception` MCP tool that blocks until answered, detectors that say when to ask, and `exceptions watch`, which reads a Chromium agent's page over CDP, raises `second_factor`, `unexpected_dialog`, `session_expired` and (opt-in) `timeout_or_stall` cards without the agent, and blocks the page's saves while a card is open. Only a verified `continue` or `done_by_person` lets the run go on; a decline, an expiry or an unverifiable answer stops it before any write. The MCP tool can't make an agent that ignores it stop; the watch must start after the guard attaches, and doesn't cover non-browser agents, WebSocket saves, other tabs, a save sent before its next look at the page, `possible_duplicate`, or a run with no watch running. Cards in Desktop's stop queue and on a paired phone ship with openadapt-desktop 0.31.0 in [#2492](https://github.com/OpenAdaptAI/OpenAdapt/pull/2492). The share of cases that need a person is unmeasured | In PR [#2494](https://github.com/OpenAdaptAI/OpenAdapt/pull/2494) | Unit tests and synthetic end-to-end tests: a scripted agent on a one-time-code page over real MCP stdio (one write after `done_by_person`, zero after `abort`, `skip`, an expiry or a key off the roster, read from the app's own state); and, in headless Chromium on MockMed with the guard attached, an agent that never calls the tool hits a synthetic code prompt, the watch raises the card and blocks its save, and after `done_by_person` one save lands and reads back VERIFIED | `openadapt-flow exceptions`, [EXCEPTION_QUEUE.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/EXCEPTION_QUEUE.md) |
## Branching work, not one linear path
| Capability | Status | Evidence | Where |
| --- | --- | --- | --- |
| Learn one program with branches from two or more recordings, or say which recordings are missing | Released | Synthetic | `openadapt-flow induce`, `disambiguate`; [CAPABILITIES.md (flow)](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/CAPABILITIES.md) |
| Learn a guarded branch from several halts fixed the same way | Released | Synthetic | `openadapt-flow teach-branch`, `learning/branch_teach.py` |
| Run a program over a worklist | Released | Real app | `openadapt-flow for-each` |
| Learn a worklist loop from recordings that search a record, open it, work it and go back to the list, even when the last row skips the return or rows differ (a field some rows lack, a write some rows get behind a screen check a person accepts). Each pass selects the row's own record by its values, verifies it, and checks that row's write. Certified and governed runs refuse it until qualification covers it | Released ([#1435](https://github.com/OpenAdaptAI/OpenAdapt/pull/1435)) | Synthetic (held-out rows run through the interpreter against an in-memory app) | `openadapt-flow induce`; `Step.target_param` |
| Score whether a program generalizes by running held-out items: each item runs through the replayer with its own inputs and record check, and an independent check the program never sees says whether the intended record got exactly the intended change (generalized, halted safely, silent wrong, wrong effect, unconfirmed write); a loop program runs each item as a one-row worklist. `induce --held-out` stays a structural shape check that runs nothing | Released ([#1527](https://github.com/OpenAdaptAI/OpenAdapt/pull/1527)) | Synthetic (an induced worklist loop scored on held-out rows against an in-memory chart app) | `openadapt_flow.validation.behavioral_generalization` |
| Typed business decisions inside a run | Released | Synthetic | `business_decision` states, `openadapt-flow business-decisions` |
| Watch many real runs in the background and mine candidate branches (shadow mode) | Released ([#1212](https://github.com/OpenAdaptAI/OpenAdapt/pull/1212)) | Synthetic | [SHADOW_MINING.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/capture/docs/SHADOW_MINING.md), [LEARN_FROM_MANY_RUNS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/LEARN_FROM_MANY_RUNS.md) |
| Fill a workflow's inputs from a referral PDF, fax image or email | Released | Synthetic | `openadapt-flow intake`, [INTAKE.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/INTAKE.md) |
| Use spoken narration while recording to propose the rule behind a branch | Released ([#1291](https://github.com/OpenAdaptAI/OpenAdapt/pull/1291)) | Synthetic (generated audio) | `openadapt-capture[audio,privacy]` |
| Settle a disagreement between recordings by trying both paths on a test copy of the app and reading the record back | Released ([#1276](https://github.com/OpenAdaptAI/OpenAdapt/pull/1276), [#1289](https://github.com/OpenAdaptAI/OpenAdapt/pull/1289)) | Synthetic (MockMed; desktop and remote test copies) | `induce --probe-on` |
| Route each item to the right verified variant of a program | Released ([#1264](https://github.com/OpenAdaptAI/OpenAdapt/pull/1264)) | Synthetic | `variants`, `route` |
## Surfaces
| Surface | Status | Evidence | Where |
| --- | --- | --- | --- |
| Web (Playwright, Chromium) | Released | Real apps on local test copies (OpenEMR, Odoo, Frappe Lending, openIMIS) and Medplum; CI runs in-tree apps on every build | [SURFACES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/SURFACES.md) |
| Web in a signed-in Chrome profile (Desktop): after the person agrees to a notice, Desktop opens the installed Google Chrome on a separate profile it manages; they sign in once (SSO or two-factor), and recordings and runs attach to that window already signed in. Refuses a changed notice, Chrome's own profile folders, a profile open elsewhere, an elevated Windows Desktop, and an endpoint that doesn't name the process Desktop started; closes only that process; never reads cookies or passwords and never calls the keychain | In [#2358](https://github.com/OpenAdaptAI/OpenAdapt/pull/2358) | Unit tests with fakes; real Google Chrome 158 on a Windows 11 laptop without admin rights against a synthetic sign-in page (sign-in kept across close and reopen, open profile refused, another Chrome window left open); the same test on GitHub-hosted macOS, and the elevated refusal on GitHub-hosted Windows | [CHROME_PROFILE.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/desktop/docs/CHROME_PROFILE.md), `packages/desktop/openadapt_desktop/chrome_profile.py` |
| Native Windows (UI Automation) | Released | Earlier synthetic evidence: a WinForms test app in a Windows 11 VM, 3 of 3 trials; GitHub-hosted CI records, compiles and replays Patient Notes through the real agent with SQLite and sibling-write checks. A historical short-note approval/hold/resume composition completed verified target-only saves ([run44665211915](https://github.com/OpenAdaptAI/OpenAdapt/actions/runs/44665211915)); it does not qualify the new complete-value contract. Current approval/structural work ([#2291](https://github.com/OpenAdaptAI/OpenAdapt/pull/2291)) remains held on current-head native evidence and independently qualified record identity. Its synthetic native observation variant excludes a full Flow save and unsupported virtual cells. Existing safety/no-skip gates remain enabled ([desktop-replay.yml](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/.github/workflows/desktop-replay.yml)). Earlier Windows 11 ARM evidence: record, compile and replay of a WinForms form with an owned confirm dialog, 3 of 3 trials, plus covered-target/modal refusal before input. | [SURFACES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/SURFACES.md) |
| Native macOS (Accessibility) | Released | Synthetic (TextEdit, 3 of 3 file effects, driving the backend directly); a real third-party app, calibre (Qt, SQLite library): record, compile (certified under `clinical-write`) and a `standard` run checked against the library's database, `VERIFIED` with only the target book changed; a same-title book by another author stopped at the identity check and two identical books were refused as ambiguous, each with nothing written ([benchmark/macos_native](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/macos_native/README.md)) | [SURFACES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/SURFACES.md) |
| Native Linux (AT-SPI, X11) | Released | Real AT-SPI in CI (`flow-linux-atspi`, Xvfb with a window manager): a GTK3 fixture (3 verified effects, 3 ambiguous and 3 stale targets refused) and a GTK3 chart app with SQLite: record, compile (certified under `clinical-write`), a `standard` run `VERIFIED` against the database, another patient's chart and a look-alike chart stopped before the save, and a repaired notice admitted on its AT-SPI element identity ([benchmark/repair_every_backend](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/repair_every_backend/README.md)) | [LINUX_NATIVE.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/desktop/LINUX_NATIVE.md) |
| RDP (pixels; Aardwolf or headless FreeRDP with a session pool) | Released | A Windows 11 VM over Aardwolf RDP, 3 of 3 (transport and input), plus a FreeRDP batch; through the stock Remote Desktop client on a real H.264/AVC444 session, 105 scripted runs on two apps (OpenEMR in Edge and a WinForms test app): 55 saves confirmed in the database, 0 wrong-record saves, 40 false stops ranked by cause | [SURFACES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/SURFACES.md), `backends/xfreerdp.py`, [benchmark/rdp_avc_real](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/rdp_avc_real/README.md) |
| Remote and virtual desktop sessions (RDP user sessions, Citrix and other virtual desktops), with OpenAdapt installed inside the session (`in_session`): the same structure-first path as a local desktop | Released | The Windows path's evidence (above): a WinForms test app in a Windows 11 VM, 3 of 3 (synthetic) | [SURFACES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/SURFACES.md) |
| Citrix from outside the session, pixels only (`remote_display`), the fallback when nothing can be installed inside | Exploratory | A Citrix stand-in with no DOM: 3 healthy runs, 3 stops on drift | [LIMITS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/LIMITS.md) |
| Chain programs across surfaces, passing confirmed values | Released | Synthetic | `openadapt-flow compose`, `process`; [PROCESS_CONTRACT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/PROCESS_CONTRACT.md) |
| One program that switches surfaces, tabs and popups mid-run | Released ([#1197](https://github.com/OpenAdaptAI/OpenAdapt/pull/1197)) | Real Chromium; Windows switch on a mock | [#1197](https://github.com/OpenAdaptAI/OpenAdapt/pull/1197) |
| Qualify a native Windows program with the normal case and five faults through an opt-in authenticated agent; bind the observed executable and machine/OS environment and judge declared inserts or field updates from complete record snapshots | In this change | Synthetic unit and transport tests; real Windows campaign evidence required before release | `qualify/windows.py`, `qualify/record_oracle.py`, [QUALIFY_A_WORKFLOW.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/QUALIFY_A_WORKFLOW.md) |
| Record and replay native or listed browser choices using one generic contract; require one enabled semantic match and exact committed-field read-back, and refuse unmapped held-out labels before selection; retain browser dialog answers with producer-document and dialog-kind checks | Experimental, PR [#2295](https://github.com/OpenAdaptAI/OpenAdapt/pull/2295) | Synthetic Chromium fixtures cover native, ARIA, plain lists, searchable libraries, asynchronous options, cascades and calendars; historical measurement SHAs and configurations are listed separately. Real-app evidence is partial: OpenEMR native choices read back, and OpenMRS relationship choices recorded/compiled; neither completed a verified save because an existing identity guard stopped the run. Governed receipt-bound choices refuse before input. | [CHOICES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/CHOICES.md), [benchmark/choice_widgets](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/choice_widgets/README.md) |
| Halt when a workflow qualified with page structure runs on a pixels-only surface | Released | Synthetic | `openadapt-flow qualify` |
| Stop before acting when another shown row has the same identity; when the rows carry an app-owned record id (a `data-*` id, the row link), act on the row with the recorded id; on a surface that cannot count the rows, stop before any step that leads into a write | Released ([#1504](https://github.com/OpenAdaptAI/OpenAdapt/pull/1504)) | Real browser (headless Chromium worklist with identical rows) | `runtime/identity_census.py`; `PlaywrightBackend.identity_candidates_at` |
| Read a dialog target's identity on the topmost modal dialog alone, not the page behind it, and stop when no dialog holds the target | On main ([#1615](https://github.com/OpenAdaptAI/OpenAdapt/pull/1615)) | Real app (local OpenEMR, synthetic data): at the duplicate dialog with the form scrolled to 8 positions behind it, 0 of 8 false stops, against 8 of 8 before; a dialog listing a possible duplicate still stops | `PlaywrightBackend.dialog_region_at`, `Anchor.dialog_region`; [dialog_identity_2026-10-28](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/openemr_throughput/dialog_identity_2026-10-28/README.md) |
| 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
| Capability | Status | Evidence | Where |
| --- | --- | --- | --- |
| 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` |
| Propose API steps for saves a page's script sends as JSON or as a GraphQL mutation: each typed value bound to its one JSON leaf, constants sent as recorded, values the page makes on each save refused, the app's own auth headers reused from the live session in memory only, and a GraphQL answer with errors halts | This PR | Headless Chromium against a local single-page app; EspoCRM, Medplum and Wiki.js fixtures | [API_TIER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_TIER.md#json-and-graphql-saves) |
| Propose API steps for more save shapes: multipart saves with no file (encoded as Chromium encodes them), the clicked submit button's `name=value`, empty file inputs, forms with no `action`, and saves the page's script sends to another endpoint (run through the page's own script before every save); success addresses keep a record's path with numbers and hashes generalized | This PR | Headless Chromium against local test pages, and recordings from Redmine, WordPress, NetBox, Dolibarr and Trac fixtures | [API_TIER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_TIER.md#what-the-compiler-checks) |
| Declare the other writes in an API step's span as an ordered sequence: the page's own background requests (another document's script, loaded before the form, to an endpoint the form doesn't name) are listed and not sent; a write a step caused is sent in its recorded place before the save, read back by that step's record check, and a failure stops the run with nothing after it sent and nothing retried | On main | Synthetic | [API_TIER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_TIER.md#other-writes-in-the-span) |
| Approve an API step's exact request under per-item approval: one digest binds the request bytes, the record and the record check, and a changed request is not sent | Released ([#1355](https://github.com/OpenAdaptAI/OpenAdapt/pull/1355)) | Synthetic | [API_TIER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_TIER.md#under-an-approval-mode) |
| Run an API step in a durable run: checkpoint the span after the save is sent, never resend or redo a save that may have landed, and reconcile it by reading the record back | Released ([#1358](https://github.com/OpenAdaptAI/OpenAdapt/pull/1358)) | Synthetic | [API_TIER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_TIER.md#in-a-durable-run) |
| Run an admitted API step under a governed run authorization and the Standard or Regulated profile: the authorization names the API step by digest, the person who admits it names the right-record parameter, and the outcome reads `VERIFIED` | Released ([#1361](https://github.com/OpenAdaptAI/OpenAdapt/pull/1361)) | Synthetic | [API_TIER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_TIER.md#under-governance) |
| Run an admitted API step under a managed (Cloud) dispatch whose authorization names it: the API step rows are inside the dispatch digest Cloud signs, and each send still needs Cloud's delivery permit | On main | Synthetic | [API_TIER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_TIER.md#under-governance) |
| Run an admitted API step under a signed production qualification admission when its qualified effect contract names the API path, and let a qualification case run the path its contract names | On main | Synthetic | [API_TIER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_TIER.md#under-governance) |
| Defer an API save's read-back with pipelined read-back, as for a GUI save, and keep self-repair's probes and resumed run on the repaired GUI step | Released ([#1362](https://github.com/OpenAdaptAI/OpenAdapt/pull/1362)) | Synthetic | [API_TIER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_TIER.md#with-parallel-workers-pipelined-read-back-and-self-repair) |
| Defer the last record check under durable and governed runs: the durable pause holds the check, so a crash re-runs only the check and never resends the save | On main | Synthetic | [THROUGHPUT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/THROUGHPUT.md#under-durable-and-governed-runs) |
| Run an admitted API step inside a multi-surface program, bound to its one browser surface and that surface's origin; its folded steps record the surface | On main | Synthetic | [API_TIER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/API_TIER.md#in-a-multi-surface-program) |
| Say, for every feature under every run profile, whether it works or is refused and why, checked against the runtime in CI | Released ([#1364](https://github.com/OpenAdaptAI/OpenAdapt/pull/1364)) | Synthetic | [COMPATIBILITY.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/COMPATIBILITY.md) |
| Run a worklist on several workers at once, one signed-in session each, each item claimed once, with a stop on any worker stopping all | Released ([#1296](https://github.com/OpenAdaptAI/OpenAdapt/pull/1296)) | Synthetic patients on a local OpenEMR test copy | `--workers`, [THROUGHPUT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/THROUGHPUT.md) |
| Read a save back while the next item runs (pipelined read-back, REST, FHIR, GraphQL or SQL record checks) | Released ([#1296](https://github.com/OpenAdaptAI/OpenAdapt/pull/1296)) | Synthetic | `--readback-window`, [THROUGHPUT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/THROUGHPUT.md) |
| Read a paged REST or FHIR record list whole (FHIR `next` links and `total`, REST `records_next_path`), or not at all: a page elsewhere, a failed page, a redirect or a count that doesn't match the total is unreadable | Released ([#1538](https://github.com/OpenAdaptAI/OpenAdapt/pull/1538)) | Synthetic (local FHIR and REST servers) | `effects: kind: rest` `records_next_path`, `kind: fhir`; [EFFECT_KIT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/EFFECT_KIT.md) |
| Read a REST list whose last page leaves the next link out (`records_next_absent_is_last` with `records_next_path`): the page is the whole read only when the link's parent object is there without it; a page with a next link still needs snapshot semantics | On main | Real app (local OpenEMR 8.0.0.3, synthetic patients: one 200-row page read complete; a 2-row page with a next link refused) and unit tests | `effects: kind: rest` `records_next_absent_is_last`; `benchmark/openemr_local/verify.yaml` |
| Check screen text read from the clock (a date picker's month, a pre-filled date) against the run's clock instead of the recorded literal; another date still fails (a whole OCR line, field for field) | On main | Real app (the OpenEMR referral program, recorded in October, qualified in November) and a headless browser test that records today and replays next month and next January | `Postcondition.text_clock`, `openadapt_flow/clock_text.py`, `python -m openadapt_flow.compiler.clock_pass` |
| A faster speed profile that keeps every check (one insert per plain text field, shorter page-quiet wait) | Released ([#1296](https://github.com/OpenAdaptAI/OpenAdapt/pull/1296)) | Synthetic | `runtime.speed: fast`, [THROUGHPUT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/THROUGHPUT.md) |
| Fewer browser calls per screen step: one call per frame boundary in every DOM proof | On main | Real app (local OpenEMR 8.0.0.3, synthetic referrals): median 23.2 s to 20.1 s per referral, N = 14 each, interleaved, same checks at every step; about 3,970 to 2,390 Playwright calls per run | [screen_path_speed](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/screen_path_speed/README.md) |
| Derive the at-rest key once per checkpoint store instead of once per checkpoint, with the container format unchanged | On main | Real app (local OpenEMR 8.0.0.3, synthetic referrals, encrypted durable run to the save): 2,667 to 2 scrypt runs, about 520 s to 14 s; synthetic (MockMed tutorial): 131 to 1, 40.8 s to 14.7 s median (N = 10 each) | [screen_path_speed](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/screen_path_speed/README.md#mockmed-tutorial-the-at-rest-key-fix) |
| Record where each step's time goes in every run report | Released ([#1296](https://github.com/OpenAdaptAI/OpenAdapt/pull/1296)) | Real app and synthetic | `timings` in `report.json` |
## When the app changes
| Capability | Status | Evidence | Where |
| --- | --- | --- | --- |
| Governed repair: propose, review, campaigns, approval, staging, canary, rollback | Released | Synthetic | `openadapt-flow repair`, [REPAIR_LIFECYCLE.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/REPAIR_LIFECYCLE.md) |
| A calling agent demonstrates the fix for a halted run; the result is a repair candidate | Released (2.1.0) | Synthetic | `run --hold-on-halt`, `repair/agent_teach.py` |
| Font and layout drift halts with a named reason | Released | Synthetic | `runtime/layout_drift.py` |
| Self-repair: an agent proposes a fix for one halted click, Flow probes it up to the save without saving, a person approves | Released ([#1265](https://github.com/OpenAdaptAI/OpenAdapt/pull/1265)) | Synthetic (MockMed redesign) | `run --self-repair`, [#1265](https://github.com/OpenAdaptAI/OpenAdapt/pull/1265) |
| A scroll that never finds the next click's target halts on that click, so self-repair can take a relabelled control behind a scroll; the refusal for unreviewed-risk steps names them | Released ([#1337](https://github.com/OpenAdaptAI/OpenAdapt/pull/1337)) | Synthetic; openIMIS drift row checked offline on its recorded frames | `runtime/replayer.py`, `qualify set-risk` |
| Self-repair across several new steps: a bridge of up to three actions for a new required dialog or a control moved into a menu, each new step armed with a record check and probed up to the save, one person approving | Released ([#1325](https://github.com/OpenAdaptAI/OpenAdapt/pull/1325)) | Synthetic (MockMed menu and provider drifts, scripted agent; [benchmark/auto_repair](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/auto_repair/README.md)) | `run --self-repair`, [SELF_REPAIR.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/SELF_REPAIR.md) |
| Self-repair's new clicks outside a browser: on a native app a click is admitted by its accessibility element (role, name, ancestry, window; unique in the pinned window), on pixels only by the record check, and either way only when a system-of-record verifier covers every save under `standard` or `regulated`; the new step carries the dialog around it as a screen pre-check, and only a person approves the fix | On main ([#1709](https://github.com/OpenAdaptAI/OpenAdapt/pull/1709)) | Synthetic, partly live: on OpenAdapt's native Cocoa test app with SQLite, through live macOS AX, the stop, the element identity read, the admission and the refusals without a record check ran with no wrong write; qualified end to end on macOS AX ([#1715](https://github.com/OpenAdaptAI/OpenAdapt/pull/1715)): stop, admitted click, probe, replay and fault campaigns, one approval, resumed run `VERIFIED`; and on its GTK3 counterpart through live Linux AT-SPI, in CI, the same end to end. `run --self-repair` and repair by default start the app for each probe from `repair.session` ([#1717](https://github.com/OpenAdaptAI/OpenAdapt/pull/1717); [benchmark/repair_every_backend](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/repair_every_backend/README.md)) | `openadapt_flow/repair/element_identity.py`, [REPAIR_ON_EVERY_BACKEND.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/REPAIR_ON_EVERY_BACKEND.md) |
| Keep pixel-path runs working across display scaling and font smoothing changes | Released ([#1286](https://github.com/OpenAdaptAI/OpenAdapt/pull/1286)) | Synthetic (in-process RDP and canvas renderings: 17 of 24 healthy runs across 100–175%, up from 3; 0 wrong saves) | [benchmark/pixel_scale](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/pixel_scale/README.md) |
| Find icons again on Citrix, RDP and VNC after a display-scale, zoom, font, theme or codec change, with a local model that counts look-alikes and stops on a tie (`--local-grounding`, off by default) | Released ([#1596](https://github.com/OpenAdaptAI/OpenAdapt/pull/1596)) | Synthetic (Chromium-drawn clinic screen, pixels only: icons found under 21 of 26 conditions, template matching 8; 0 wrong targets in 65; whole runs unchanged, 4 of 39 in both arms, because the layout, identity and census checks stop first). Held out on real AVC444 RDP frames: 0 wrong picks, 6 right, 75 abstentions in 81 | [benchmark/pixel_grounding](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/pixel_grounding/README.md), `runtime/local_grounder.py` |
| Find an icon-only click target again after a light/dark theme change on Citrix, RDP and VNC, by edge orientation with the sign removed, refusing when another place on the screen scores close, the match is away from the recorded place, or the clicked control itself differs | In a pull request ([#2790](https://github.com/OpenAdaptAI/OpenAdapt/pull/2790)) | Synthetic (Chromium-drawn clinic screen, pixels only, recorded light and replayed dark at 100% and 150%: whole runs 8 of 13 healthy and 7 of 13 reordered, up from 6 and 5; wrong-record runs 13 of 13 stopped; 0 wrong targets or wrong saves) | [benchmark/pixel_grounding](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/pixel_grounding/README.md#whole-runs), `vision/polarity_match.py` |
| Pre-approved repairs: a signed policy lists low-risk changes that apply without a person, a test-record run before each queue, and one approval for every item halted the same way | Released ([#1294](https://github.com/OpenAdaptAI/OpenAdapt/pull/1294)) | Synthetic | standard changes |
| Repair a pinned bundle: the fix runs the pinned bundle's own qualification campaign on a test copy, keeps every write, effect, identity rule and record check, and is re-admitted with signed lineage (at most three repairs, no revoked key) that the pin verifies | On main | Synthetic | [SELF_REPAIR.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/SELF_REPAIR.md#a-pinned-bundle-re-qualify-and-re-admit) |
| Repair by default: once a repair agent is configured (outside a browser, with `repair.session`, [#1717](https://github.com/OpenAdaptAI/OpenAdapt/pull/1717)), every stop that wrote nothing goes to it without anyone starting it; a stop after a possible write goes to reconciliation; every stop is a row in a ledger with the funnel from stop to resumed item | Released ([#1360](https://github.com/OpenAdaptAI/OpenAdapt/pull/1360)) | Synthetic (MockMed, 22 drift modes, real Claude agent: 6 of 21 repairable stops resumed and verified, 0 wrong saves in 66 runs); routing over recorded OpenEMR stops; live openIMIS relabel: 3 of 3 reached repair and stopped with no wrong save; silent-saves 1.1.0 UI-change blocks: 18 of 28 items that always stopped now correct, 0 wrong | `run` (on by default, `--no-auto-repair`), `repair:` in `deploy.yaml`, [benchmark/auto_repair](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/auto_repair/README.md) |
| Repair a relabeled save button: prove from the recorded identity hash that only the label changed (same control id, kind and form), re-qualify the fix on the new release, and have a person admit the certified copy afresh, since a save button's identity is part of the record check | Released | Real app (local OpenEMR, synthetic data): after the save button was relabeled, the stopped item re-ran and saved once after 8.3 operator minutes and 763 s of re-qualification; 896 s from stop to done ([#1513](https://github.com/OpenAdaptAI/OpenAdapt/pull/1513)) | `openadapt_flow/repair/relabel.py`, [SELF_REPAIR.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/SELF_REPAIR.md#a-relabeled-control-proof-that-only-the-label-changed) |
| A duplicate check that reads the app's match list (`no_duplicate_candidate`): stop only on a listed record with the item's last name or date of birth, fail closed on an unreadable or unloaded list | Released | Real app (local OpenEMR, synthetic data): false stops per 100 items 70.4 before, 16.4 after; 0 silent wrongs in 30 saves ([#1513](https://github.com/OpenAdaptAI/OpenAdapt/pull/1513)) | [DUPLICATE_CHECK.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/DUPLICATE_CHECK.md) |
| A duplicate check that asks the system of record (generic FHIR R4 `Patient` search; OpenEMR REST and SQL adapters): every page read, stop on an exact match, send a close match to a person, proceed otherwise, fail closed on any read problem. Close matching is heuristic and misses some duplicates; it is not patient identity resolution. One source for qualification, runs and resume; a program can pin it | On main | Synthetic: unit and HTTP tests; live OpenEMR 8.0.0.3 search decided 6 of 6 known referrals right through FHIR | [DUPLICATE_CHECK.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/DUPLICATE_CHECK.md) |
| A switched-off `problems_only` gate asks a person before the save instead of stopping the item | Released | Synthetic; real app in [#1513](https://github.com/OpenAdaptAI/OpenAdapt/pull/1513) | [APPROVAL_MODES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/APPROVAL_MODES.md#when-the-mode-turns-itself-off) |
| Fleet drift patches: a verified fix with no patient data, shared across sites under policy, moved as files or through a local reference hub | Released, local reference hub | Simulator | `openadapt-flow fleet`, [FLEET_DRIFT_PATCHES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/FLEET_DRIFT_PATCHES.md) |
| Opt-in fallback from a wrapped task's compiled program to the agent on drift: only when the hold is a terminal halt whose report is `HALTED_BEFORE_EFFECT` with no step needing reconciliation, bound to the admitted bundle, with zero replay model calls and a record check whose reads both succeeded and found no change. Never on `RECONCILIATION_REQUIRED`, a lost reply, `RECORD_CHECK_FAILED`, an unreadable system of record or a receipt that is not `VERIFIED`. The agent is built only once a fallback may start and runs through compile-agent's harness (right-record check, origin fence, read-back) with a person approving each save at a pre-commit gate (the terminal, or a signed item approval from a paired phone or `openadapt-flow item-approval approve`) and its own spend cap. A fallback is `VERIFIED` only when the final task-scoped read confirms the save; otherwise it is `RECONCILIATION_REQUIRED` with both readings kept. Its draft is never admitted, and a verified run opens a repair candidate for a person to approve. The default stays the hold. `openadapt-flow wrap-dispatch` runs only the admitted program (a miss runs nothing), stores the whole result with the request, and exposes the hold (`status`, `release`, `evict`); release refuses a fallback that is still running | Experimental, this PR | Synthetic: unit tests on the real cache, hold, report and item-approval checks (answers signed with a test approver key on a real roster, through the decision portal's functions and the `item-approval approve` command); MockMed in headless Chromium with a scripted fallback agent, program run in-process ([benchmark/wrap_fallback](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/wrap_fallback/README.md)). No real model agent has run it | `openadapt-flow wrap-dispatch` (`--fallback-gate item-approval`), `openadapt_flow.wrap.fallback`, `openadapt_flow.wrap.approval_gate`, [WRAP_FALLBACK.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/WRAP_FALLBACK.md) |
## Computer-use agents
| 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)) |
| Admit a draft by a person, an admitter key, or an agent under a person-signed policy, including self-admission when the policy allows it | Released | Unit tests | [JIT_ADMISSION.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/JIT_ADMISSION.md) |
| MCP server: your agent decides what to enter, OpenAdapt makes the entry and checks it | Released | Synthetic sandbox | `openadapt-agent`, [packages/agent](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/agent/README.md) |
| Agent-to-agent handoffs: when one agent hands a result to another, the run's signed receipt (`record/run/v1`) goes with it (`openadapt handoff send`, inline, detached beside a file, or POSTed to a webhook), and the receiver checks it against keys it pins (`openadapt handoff verify`). The verdict gives the signer role from the receiver's registry, integrity, checks passed and not checked, and "confirmed in the other party's system" lines; it always says a valid signature proves who signed, not that the claim is true, binds the payload as the receipt's `payload` subject (re-signed by the run's own key; other bytes or no payload subject are refused), and counts a confirmation as independent only when it was read from the other party's system. Over MCP, `serve --handoffs` adds `get_handoff` and `verify_handoff`. The private openings never travel | On main ([#2414](https://github.com/OpenAdaptAI/OpenAdapt/pull/2414)) | Unit tests over receipts from Flow's own writer and the shared `record/run/v1` confirmation vectors and the shared payload vectors (good, tampered, unknown signer, bound, mismatched and missing payload, detached file, local webhook); MCP and A2A end to end with the stubbed run process; a two-party test of 20 handoffs over HTTP (0 false accepts, 0 true rejects); one real headless MockMed run handed off over the CLI and checked against the receiver's own record ([benchmark/handoff_real_run](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/handoff_real_run/README.md)); `--ledger` tested against #2415's `HandoffLedger` | `openadapt handoff`, `openadapt_flow/handoff.py`, [HANDOFFS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/HANDOFFS.md), draft format [HANDOFF_RECEIPTS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/HANDOFF_RECEIPTS.md) |
| A2A (Agent2Agent) protocol adapter: `openadapt agent serve --a2a` serves compiled workflows as A2A 1.0 skills with the official `a2a-sdk` (`openadapt[a2a]`): Agent Card at `/.well-known/agent-card.json`, signed (A2A 1.0 section 8.4, EdDSA JWS by the Seal key that signs receipts; no server if the key can't be opened), JSON-RPC and HTTP+JSON, runs as tasks with status updates, the run's receipt as a handoff artifact when Flow wrote one (sandbox runs have none, and the text part says why; strict at-rest runs carry theirs, the card opened through the sealed run), a `verify_handoff` skill, and the draft extension `https://openadapt.ai/extensions/handoff-receipt/v1`. Every call passes the MCP server's gate; person confirmations are not served; only `done` is completed. Loopback by default, a bearer token anywhere else, browser `Origin` and unknown `Host` refused | On main ([#2414](https://github.com/OpenAdaptAI/OpenAdapt/pull/2414)) | Synthetic: the official `a2a-sdk` 1.3.1 client against the server over HTTP on 127.0.0.1, with a governed run whose Flow process is stubbed and whose receipt Flow's writer signs; a strict-mode sealed run folder (stubbed Flow process, real sealed set and receipt hook) whose receipt and card go through the bridge's `get_handoff` and `verify_handoff`; a simulated sandbox run refused over MCP and A2A; the official A2A TCK (a2aproject/a2a-tck at 5e6f37c, 2026-11-30, sandbox server with `--a2a-tck-scenarios`): 121 automated checks passed, 0 failed, 142 skipped (gRPC, push, cancel, auth scenarios), MUST 78.7% because the TCK counts skipped and manual checks as not passed ([benchmark/a2a_tck](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/a2a_tck/README.md)); a second implementation, the A2A JavaScript SDK 1.3.0, ran a workflow and verified a second key's handoff over JSON-RPC and HTTP+JSON and checked the card signature with independent JWS and RFC 8785 libraries, all on one computer ([benchmark/a2a_interop](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/a2a_interop/README.md)); the card signature verified by the `a2a-sdk` verifier and refused when changed, unpinned or relabelled (the TCK leaves signing to manual checks) | `openadapt_flow/agent/a2a_server.py`, [A2A.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/A2A.md) |
| Teach over MCP: an agent does a new task once through OpenAdapt; the run is read back, compiled and admitted (a person confirms the record check; the agent admits only under a person-signed policy), and becomes a tool it calls with no model calls. Web, and Windows, macOS, Linux, RDP and Citrix with a person approving each save | On main ([#1335](https://github.com/OpenAdaptAI/OpenAdapt/pull/1335)) | Synthetic (MockMed over MCP, and through the real RDP and Citrix backends); a native Cocoa app with SQLite through `MacOSBackend`, taught, confirmed, admitted under a signed policy and called (canary and taught run `VERIFIED`, 0 model calls; [teach_desktop](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/teach_desktop/README.md)) | `openadapt-agent serve --teach`, [packages/agent](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/agent/README.md#teach-a-new-workflow-from-your-agent) |
| Turn a read-only browser task into a tool for the coding agent you already use: `openadapt setup` registers the MCP server and a skill in Claude Code, Cursor, Codex and Gemini CLI (idempotent, `--dry-run`, `--undo`); `openadapt setup --app deploy.yaml --verify verify.yaml` sets the agent up to teach saves in one web, desktop, RDP or Citrix app instead, each read back from the system of record. Read-only teaching runs only where a guard stops writes before they leave (the browser); `serve --teach-browser --config` naming a desktop, RDP or Citrix app is refused; the agent does the task once through `teach_start`/`teach_act`/`teach_finish`, the task must end in a download, the file is checked (columns, a column between two inputs or equal to one, fewest rows), the compiled steps are replayed once with no model, and the agent gets a `taught_<name>` tool that downloads a checked file with new inputs. The browser sends no POST, PUT, PATCH or DELETE and stays on one site; a compiled run stops when a control is missing, matches more than one element, or is relabelled | Released ([#1502](https://github.com/OpenAdaptAI/OpenAdapt/pull/1502)) | Real headless Chromium on the local example portal (scripted MCP client, in CI); a real Claude Code agent taught the export from the guide's prompt and called the tool with new dates (2026-10-24, one run) | `openadapt setup`, `openadapt-agent serve --teach-browser`, [FIRST_TOOL.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/FIRST_TOOL.md) |
| Verify any agent's own writes: `openadapt verify` reads the system of record before and after a write, against a contract the operator owns (REST, FHIR, SQL, GraphQL), and returns a verified receipt (`openadapt.effect-receipt/v1`) or a refusal (`REFUTED`, `UNCERTAIN`), never an unverified success. Python SDK (`openadapt.verify`, which is `openadapt_flow.verifier`: `begin_write`, `verify_write`, `verified_write`) wraps a write in any agent framework; the MCP server (`openadapt verify serve`) offers `verify_begin`, `verify_check` and `verify_recheck` to any MCP client | Released ([#1589](https://github.com/OpenAdaptAI/OpenAdapt/pull/1589)) | Synthetic (MockMed's fault server over real HTTP: correct write, wrong record, not saved, saved twice, unreadable store) | `openadapt verify`, [VERIFY_WRITES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/VERIFY_WRITES.md) |
| See what your own agent gets wrong, with no risk: `openadapt shadow` is a loopback pass-through proxy beside the agent. It checks each write against the system of record (FHIR through `ensure_record`; SQL through the verifier's whole-database frame), checks each `CONFIRMED` again later, and writes `report.html` and `report.json`. It never blocks, changes or resends a write; the only delay is the read before a write (at most `hold_ms`) | [#1678](https://github.com/OpenAdaptAI/OpenAdapt/pull/1678) | Real app (Medplum 5.2.8, 37 cases through a fault proxy: scripted agent 18 of 18 harms caught, 0 correct writes refuted; Claude Sonnet 5.5 9 of 9 caught, 4 correct but corrected writes refuted; 0 writes by the shadow; 15 to 25 ms median added per write; setup 76.5 s machine time, 3 decisions); real app, SQL mode (Dolibarr 21 on MariaDB 11.4, 13 cases: 8 of 8 harms caught, 5 of 5 correct writes confirmed, 292 ms median added); synthetic (SQLite) | `openadapt shadow`, [SHADOW_MODE.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/SHADOW_MODE.md), [SHADOW_RESULTS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/fhir_medplum/public/SHADOW_RESULTS.md) |
| Score a candidate before it saves anything: `openadapt-flow readiness` imports 20 to 50 tasks a person did (the save from the browser recording's network capture, else a read-back through the verify config's reader, else refused), runs the candidate agent (`--agent-cmd`) or compiled program (`--program`) on each task in its own headless browser (DevTools on a pipe only, reached through a loopback relay that refuses any request without the run's random token; the page can reach only the app's origins) where the shadow hold refuses every non-GET request to the app origin (autosaves, drafts and locks included) after recording the write it would have made, and a browser-level hold hands every request of every other tab, popup, browser context and worker to the same hold (a write from one of them makes the case `NOT_CHECKED`, reason `extra_target`, and `scope_ok` false). It compares the write field by field with the person's save (identifiers such as `02134` compare as exact text; any extra held write fails the match; uncompared never counts as matched; a prefilled form or other contamination makes a case not comparable), and writes a one-page `scorecard.html` and an aggregates-only `scorecard.json` (matched N of M, risks, field errors, agent and human time, model cost and its source, estimated savings with its formula). Each candidate runs under the flight recorder's egress (`--egress scrubbed` by default, `blocked` or `unscrubbed`) with the OS egress block, and cost is metered by the proxy; a candidate that reports model calls the proxy didn't see is refused for that task. Each imported task names its target record in the candidate's inputs (`record_<field>`). `--keep-session` carries a signed-in session across tasks. A card whose scope failed states what failed in place of the claim. What is checked: no non-GET request to the app origin left any tab, popup, browser context or worker except listed sign-in requests; not covered: GET requests with side effects, WebSocket writes, writes before attach | On main ([#2498](https://github.com/OpenAdaptAI/OpenAdapt/pull/2498)) | Synthetic (MockMed, 20 recorded tasks; scripted agent with 5 planted field errors and 2 wrong-record cases: precision and recall 1.0, 0 writes in the app's own store; an adversarial agent's six routes around the tab (popup form, `window.open`, `Target.createTarget`, a new browser context, a shared worker, a dedicated worker) land 0 writes in the store) | `openadapt-flow readiness`, [READINESS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/READINESS.md), [benchmark/readiness](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/readiness/README.md) |
| Skill cache for framework agents: an agent in any framework does a browser task through compile-agent's harness as plain tools (`BrowserTools`); when the system of record shows exactly the task's record and the operator confirms the checks, the run is canaried, admitted and emitted as an MCP server. A repeat of the same task (instruction, record, app, contract, environment) calls that tool instead of the agent: no model calls, the program's checks and this task's record check on every run, eviction after a failed run | Released | Synthetic (MockMed, LangGraph on `claude-sonnet-5-5`, 3 trials, repeats on the same record: run 1 6 model calls and $0.022; runs 2 to 10 27/27 VERIFIED, 0 model calls, 7.8 s median); Trac 1.6: run 1 verified, not admitted | `openadapt_flow.integrations.agents.skills`, [benchmark/skill_cache](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/skill_cache/README.md) |
| Publish a wrapped task as a hosted endpoint with one credential: `openadapt wrap publish --task TASK` uses only `OPENADAPT_API_KEY`. It finds the task's admitted program, re-verifies its admission signature, refuses a held task, a program without a read-back check (no saving step, a save with no effect contract, or no confirmed `verify.yaml`), symbolic links and a non-public app URL, and stages the bundle with its read-back configuration. It sanitizes the bundle and the recording it was compiled from (the generated wrap files declare each field as content, always scrubbed, or structural, kept only with its machine shape, so schema ids, step ids, digests and the signed admission survive the scrub byte-for-byte), shows one summary and asks once (`--yes` for scripts), finds the key's organization (`GET /api/v1/whoami`, or `--org`), registers the local admission public key with it once, attests the program from the wrap run's own signed recording and attended canary (strict lint with no warn or error finding, certification, VERIFIED replay) against a challenge from the organization's API-key route, uploads it through the governed bundle push to `POST /api/v1/org/{org}/workflow` (or `PUT .../workflow/{id}/definition`), then reads the Cloud workflow definition and prints the endpoint URL and `curl` examples from the acknowledged `execute_path` and `qualification_id`. Each refusal is one line with a code. The upload carries the program's value-free Standard run shape. A managed run of the program rests on its signed admission: `openadapt-flow run --managed-dispatch-file` checks the admission against the registered admission key, requires the authorization to name that admission and match the shape, and reads back through the bundled `verify.yaml`. The CLI, public runtime and deployment API carry one-use verification bound to that dispatch's admission, bundle, inputs, policy, run, session and current trust registry; resume verifies a fresh proof. Each input checks that scope again after preparation and requires a signed v3 permit with a receiver-checked exclusive start deadline. API sequences acknowledge every request separately. Missing receipts or late completion evidence halt further input and require reconciliation. Publish refuses, before anything is uploaded, an admission mode a hosted run cannot verify (only a person's admission or a registered CI admitter key), and an admitter-key admission whose key the organization has not registered (`GET /api/v1/org/{org}/admitter-keys`). The recording stays on the machine; only its sanitized hash is attested. Regulated is refused (`openadapt_flow.jit.hosted_authority`) | On main | Unit tests (real bundle, record check, staging, local sanitization and signed wrap evidence; the attestation's recording binding checked on real derivatives; the whoami, admission-key, challenge, workflow upload and definition routes mocked at the HTTP boundary); no run against a live Cloud deployment. Relies on the API-key workflow routes in openadapt-cloud#430 (merged 2026-11-14), which accept this v2 attestation only behind a flag that is off by default; the whoami route is not in #430 yet | `openadapt_flow.wrap.publish`, [WRAP_PUBLISH.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/WRAP_PUBLISH.md), `packages/flow/tests/test_wrap_publish.py`, `packages/flow/tests/test_jit_hosted_authority.py`, `packages/flow/tests/test_jit_hosted_managed_replay.py` |
| 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_<NAME>`, 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_<name>` 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) |
| Flight recorder for an agent you already run: `openadapt flight -- CMD` puts a loopback proxy in front of the model API the agent calls (`ANTHROPIC_BASE_URL`, `OPENAI_BASE_URL`), meters and prices each call (an unpriced model's cost is recorded as unknown), honours a `--max-cost-usd` cap and logs each computer action. Scrubbing: the strings in the request (message text, tool-call arguments, tool results, URLs cut to their origin) and the screenshots it recognises (PNG, JPEG, GIF, BMP, TIFF, WEBP) are scrubbed before they are sent (see "What the scrubber does not cover" in FLIGHT_RECORDER.md); a request that can't be scrubbed is answered 502 and never sent, and the run refuses to start when openadapt-privacy, its spaCy model or tesseract is missing. Each value becomes a run token (`[PERSON_1]`, the same in text and on screen, painted over with the token written in); tokens in tool-call inputs are turned back into the real values before the response reaches the agent, so it can type them; the map stays local (`pseudonyms.json`, 0600). Measured on 50 synthetic records: 97.6 to 98.0% of fields in text and 97.2% in rendered screenshots, every miss a name; 93.1% of non-personal words on a synthetic work-list screen stay readable (30.9% with Presidio's image redaction). The agent still can't read a name it must check; task success with scrubbing on is not measured. The scrubber covers ordinary agent traffic in standard encodings (base64 in any wrapping, JSON escapes; image signatures are searched across the whole request and dense base64-like text refuses, per string and across the request). Images are recognised and scrubbed in PNG, JPEG, GIF, BMP, TIFF and WEBP; other image formats are refused only when the density backstops catch them, and a page with text on a flat background, uncompressed in another format, can get through; the backstops can refuse ordinary content that looks encoded (git SHAs, many camelCase identifiers, random tokens), and because the history is resent a refused turn refuses the rest of the run; an agent that deliberately re-encodes data (hex, percent-encoding, a custom scheme) can get it past the scrubber, so a hostile agent is out of scope and the egress block and provider choice are the controls there. Egress: on macOS the agent runs under `sandbox-exec` with outbound network denied except loopback; elsewhere `flight` refuses to run unless `--allow-unenforced-egress` is given (recorded). A run whose agent reports more model calls than the proxy saw, or that tried a direct call through the proxy variables, exits 3 and is marked refused; a kernel-blocked connection is blocked but not counted. Python API: `openadapt_flow.flight.egress.ScrubbedEgress`. Gate: a one-line executor swap (`GatedComputer` for the Anthropic computer tool, `GatedComputerCall` for an OpenAI `computer_call` loop) holds every action not known to be safe: a click or drag passes only on focus/view roles or a short list of labels (Cancel, Close, Back, Search, Open...; non-English and unreadable labels are held; OCR names a target only with text inside it); keys pass only on a short navigation list, or for editing inside a known text field; typing passes only when focus is known to be in a text field (from the accessibility hook, or the last click landed on one), and typed text with any control character is held; a focus move followed by more input in one action, Ctrl/Cmd+S, Ctrl/Cmd+Enter and any unknown action are held for a person (terminal y/N, or an item-approval request Desktop or a phone answers). It sees clicks and keys, not autosave. Writes `flight.json` (`openadapt.flight-run/v1`), `egress.json`, a scrubbed timeline and `timeline.html`. Image scrubbing covers text in the image, not faces | Experimental, PR [#2493](https://github.com/OpenAdaptAI/OpenAdapt/pull/2493) | Synthetic (fake provider, scripted agent loop on MockMed in headless Chromium under the macOS egress block, the real Presidio scrubber on a 50-record synthetic PHI corpus ([recall](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/flight/scrub_recall/README.md))); one real Claude run whose Save click was held, recorded before the scrubbing and gate changes ([flight](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/flight/README.md)) | `openadapt-flow flight`, `openadapt_flow.flight`, [FLIGHT_RECORDER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/FLIGHT_RECORDER.md) |
| Check a coding agent's writes to declared systems of record: `openadapt hooks install --agent claude-code` (or `codex`) writes project-local hooks (Claude Code `PreToolUse`/`PostToolUse`/`PostToolUseFailure`/`Stop`, Codex `PreToolUse`/`PostToolUse`/`Stop`). For a call that writes to a database, HTTP API or MCP tool declared in `openadapt.systems.yaml`, the pre-check allows, asks or blocks it by the write's approval mode (Codex can't ask from a hook, so `ask` is a deny until `openadapt hooks approve`); an undeclared write to a declared system is blocked or asked about; the read-back uses the verifier's contract (`openadapt.verify/v1`), a failed read-back is `UNCERTAIN` and the same call is then held; every outcome gets a signed `record/run/v1` receipt. Advisory: hooks see tool calls, so an agent with its own credentials and shell can bypass them; `--strict` (credential broker) is refused until a broker exists for these systems | Experimental, PR [#2411](https://github.com/OpenAdaptAI/OpenAdapt/pull/2411) | Synthetic (a scripted harness sends each agent's documented hook input to the installed hook command; one run of live headless Claude Code 2.1.305 and Codex CLI 0.144.4 sessions, both against a local SQLite file and HTTP API: declared writes VERIFIED, an out-of-scope delete blocked, a broken read-back UNCERTAIN, and a Python write that builds the path at run time not seen, [hooks_live](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/hooks_live/README.md)) | `openadapt hooks`, `openadapt_flow/hooks/`, [HOOKS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/HOOKS.md) |
| Hold the database credentials and give the agent scoped tools: `openadapt proxy --postgres URL -- claude` (or `--sqlite`) serves an MCP endpoint on loopback with a per-run token and takes the credentials out of the agent's environment. Each SQL write is dry-run in a rolled-back transaction with its exact row-level diff (triggers and cascades included), approved by policy (`--auto-approve-max-rows`) or by a person (`y`, `openadapt plan approve`) against the plan digest, used once, committed only if its diff matches the plan, read back, and undone from its row images with a read-back proof. A regenerated statement over rows already written in the task is held for a person (`possible_replay`). Each stage gets a signed `record/run/v1` receipt with the approval block. The dry run covers effects inside the database only, and a write is `VERIFIED` only when the catalog shows nothing that could write outside the frame (foreign tables, rules, triggers, user functions or types, `TRUNCATE` and other DDL); otherwise it is capped at `COMPLETED_UNVERIFIED`. The lab counts were measured before that inventory existed | Experimental, this PR | Lab: PostgreSQL 16, 120 statements of 8 kinds, 0 missed effects, 0 false diffs, 120/120 verified undos, 0/20 regenerated statements applied (control 20/20 doubled), the independent `capture_database` read-back agreed on 120/120, 8-12 s from empty venv to first diff; one real MCP SDK session; one live headless Claude Code session (held, then applied and undone) | `openadapt proxy`, `openadapt_flow/txplan/proxy.py`, [TRANSACTIONS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/TRANSACTIONS.md) |
| Dry-run, apply, undo and release a batch of writes to external systems: `openadapt plan create/approve/apply/undo/release/cancel` over an `openadapt.tx.yaml` of REST collections, SQL tables and mail. The diff comes from a staged transaction (SQL), a computed shadow with declared server-set and derived fields (REST) or the holdback queue (email). Approval is single-use and bound to the plan digest, a stale plan is refused, each write's idempotency key comes from the task and the record slot (never the payload), and a retry with a different payload is refused (the ACRFence action-replay attack). The undo is verified by reading back each record and the whole frame. Irreversible writes wait in a cancelable holdback queue. A REST `replace` update or delete is `VERIFIED` only on a route whose `precondition` (`If-Match`) has enforcement evidence: a recorded probe, or a probe the adapter runs once per route. Without it the write is at best `COMPLETED_UNVERIFIED`, since another caller's edit after the plan read could be erased unseen. A REST undo sends the version it checked, and an undo without an enforced precondition ends `COMPLETED_UNVERIFIED`, never `ROLLED_BACK`. A SQL write whose rows change outside the current schema is refused, PostgreSQL deferred constraint triggers included. A SQL write is `VERIFIED` only when the catalog shows nothing that could write outside the frame; no function body is read to decide that. On PostgreSQL: no user-defined object (oid 16384 or more, any namespace) reachable through `pg_depend` from the frame relations, no user column type, no user function or SQL-running built-in in the planned statement as `EXPLAIN (VERBOSE)` resolves it, no planned DDL, and no event trigger, user cast or operator, foreign table, `dblink` or `postgres_fdw` in the database. On MySQL: database-level `SELECT` and `TRIGGER` grants, and no routines. Any trigger on a frame relation (MySQL: in the database) caps the write. The inventory is read before and after the write in its transaction, and a change between the two to the triggers, rules, casts, event triggers or column types that decide what the write runs caps it. An open item caps the write at `COMPLETED_UNVERIFIED` with a `not_covered` code; it doesn't refuse it. Replays and adoptions keep these caps. The lab counts below predate these rules and were not rerun: the Vikunja lab spec declares a `replace` update with no precondition, so those updates and their undos now end `COMPLETED_UNVERIFIED`, and the Dolibarr SQL counts assume an empty scope inventory that was not measured | Experimental, this PR | Lab: Vikunja 2.7.1, Dolibarr 21.0.4 on MariaDB, Mailpit; 100 writes each; 0 missed effects, 0 false diffs, 200/200 verified undos (REST, SQL), 50/50 cancelled emails never sent, 50/50 released exactly once, 0/60 regenerated retries through (control 60/60 doubled), 0/10 after a crash after send; seeded faults caught 20/20 | `openadapt plan`, `openadapt_flow/txplan/`, [TRANSACTIONS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/TRANSACTIONS.md) |
| Task ledger per job: rules locked when the job opens and enforced on every run, item status set only from OpenAdapt's own results, and yes-or-no questions a person answers on the phone or in Desktop, including when a run stops | Released ([#1332](https://github.com/OpenAdaptAI/OpenAdapt/pull/1332)) | Synthetic (30-item MockMed worklist, scripted agent, no model calls) | MCP tools `open_job`, `get_job`, `add_items`, `record_evidence`, `ask_user`, `get_answer`, `change_constraint`, `close_job`; [Track a long job](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/agent/README.md#track-a-long-job) |
| Limit a teaching agent to the declared task on every teach path (`compile_agent`, `compile-agent`, teach over MCP, the airbag guard): typed text must be a declared value, links and browser requests to other origins are refused, writes are checked before they are sent, and the record is read back before a draft exists. Injected instructions in record notes, banners, tooltips, alt text and server responses are blocked or caught on MockMed through each path (scripted agent; a live-model mode is off by default). Self-repair refuses a control that leaves the app | Released ([#1359](https://github.com/OpenAdaptAI/OpenAdapt/pull/1359), [#1386](https://github.com/OpenAdaptAI/OpenAdapt/pull/1386)) | Synthetic | `openadapt_flow.teach_scope`, [THREAT_MODEL.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/THREAT_MODEL.md) |
| Teach authorization: a person signs what a teaching agent may do (task, origins, inputs, the one write, forbidden actions and controls) with their approver key, and every teach path is bound to it or refused. Verified with the approver roster's own verifier, so an unknown, removed or wrong key, an unpinned root, a changed statement or another task refuses. Admission of every JIT draft needs one (`teach_auth_not_recorded` otherwise), as do an agent-demonstrated fix's approval and self-repair of an agent-taught program; browser-teach writes are bound to it, and the airbag handoff's drafts are refused | On main ([#1436](https://github.com/OpenAdaptAI/OpenAdapt/pull/1436)) | Synthetic (real approver keys, real roster, real admission) | `openadapt-flow teach-authorization`, [TEACH_AUTHORIZATION.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/TEACH_AUTHORIZATION.md) |
| Self-serve admission in two questions: `openadapt wrap --person NAME` asks once before run 1 ("Allow it?", with the origins, the values passed, the declared text and the one record it may save) and records the answer as a signed teach authorization, creating the person's approver key and roster on first use with no passphrase prompt (derived from the local key unless `OPENADAPT_JIT_KEY_PASSPHRASE` is set); inputs are bound by digest. After run 1 it asks once "Admit this program if its test save verifies?" for the record checks, step review and admission, and admits only after the canary is VERIFIED. Run 1's save gate allows the one save after the right-record check and refuses a second. A retry reuses the permission while it covers the run; unpinned, only a roster rooted in the person's own key is trusted | In PR | Synthetic (real approver keys, roster and statements in unit tests; the CLI wiring with a stubbed signer); the staging run is pending | [WRAP_PUBLISH.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/WRAP_PUBLISH.md#4-wrap-the-task), `openadapt_flow.wrap.person_authorization`, `openadapt_flow.wrap.person_prompts` |
| Compile an agent's first verified run from a prompt (`compile-agent`), and a code-as-action authoring agent | Released ([#1277](https://github.com/OpenAdaptAI/OpenAdapt/pull/1277), [#1305](https://github.com/OpenAdaptAI/OpenAdapt/pull/1305)); the agent harness behind it runs on every backend, on main ([#1283](https://github.com/OpenAdaptAI/OpenAdapt/pull/1283)) | Synthetic | `compile-agent` |
| An agent records a native app by control: `AuthoringSession.observe()` lists the app's controls from UI Automation (Windows), Accessibility (macOS) or AT-SPI (Linux), each with its element identity (role, name, ancestry, window, process); a click by node is re-read before input and refused when that identity changed, has a twin in the window, or the tree was cut short. `compile-agent --config` and `serve-execute --config` build the app from the deployment's backend | [#1870](https://github.com/OpenAdaptAI/OpenAdapt/pull/1870) | Windows 11 Pro x64, Patient Notes (in-tree WinForms, synthetic SQLite): 11 of 11 identities re-read equal, five clicks recorded by UIA locator, the note read back from SQLite; macOS Calculator, read only: 20 of 20; Linux, the GTK3 fixture in Xvfb: recorded by control, the effect file as oracle, a click on one of two identical buttons refused ([benchmark/native_authoring](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/native_authoring/README.md)) | `openadapt_flow/authoring.py`, `authoring_tree()` on each native backend |
| Score harness optimizers (Harness², Meta-Harness) on GUI tasks with the record read-back as the reward, with full trace export | Released ([#1299](https://github.com/OpenAdaptAI/OpenAdapt/pull/1299), [#1300](https://github.com/OpenAdaptAI/OpenAdapt/pull/1300), [#1301](https://github.com/OpenAdaptAI/OpenAdapt/pull/1301)) | Synthetic (scripted proposer) | `benchmark/harness/harness2/` (source checkout) |
| Turn one recorded MockMed workflow into a task environment (instruction, starting state, reference trajectory, success check against the system of record) and audit that environment's own success check with the verifier audit kit before it is used: the recording's API writes and store diff become parameterized tasks, three checks are derived from the capture, and only one with no false accepts and no false rejects is kept. The check mined from the recording passes an extra write to another patient, a duplicate and a write after the success claim; a replay-the-recorded-calls check rejects a permitted extra read | On main (research demo) | Synthetic (one MockMed recording, 3 synthetic variants, 7 of the kit's 8 families scored (partial_write not applicable); the families are the kit's own, so a clean audit of the kept check is a self-check, not an independent one) | [demo/refinery](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/demo/refinery/README.md), `openadapt_flow.verifier_audit` |
| Grade an RL environment on the whole record: after the episode, read every table of the app's database outside the agent's browser, check the intended change, check that nothing else changed (minus a calibrated noise profile), check a reply against the record, and check the agent's success or failure claim against the record. The Dolibarr 20 ERP environment uses it (customers, contacts, products, invoices, payments, orders, stock; reset in under 3 s from a baseline built on the operator's machine) | On main (research environment) | Local real app (Dolibarr 20 from its upstream image, synthetic seed): every reference solution earns the reward; do-nothing policies earn only the tasks whose honest report is failure; 4 public example tasks, the rest held out | `openadapt_flow.rl_env.record_grader`, [environments/openenv/dolibarr_erp](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/environments/openenv/dolibarr_erp/README.md), `benchmark/dolibarr_erp` |
| One scoreboard comparing the agent alone with OpenAdapt across tasks (correctness by read-back, cost, time, items per hour) | Released ([#1303](https://github.com/OpenAdaptAI/OpenAdapt/pull/1303)) | Synthetic and local OpenEMR and openIMIS test copies | `benchmark/scoreboard/` |
| Pull a skill from the registry (`pull app/task@version`) and run it only after qualifying it on your own instance: `pull` marks it and expires any certification it carries, `skill bind` records your addresses and the names of the variables that hold credentials (never their values), `skill qualify` runs its bundled record check there, and `run`, `replay`, `emit-skill`, `emit-mcp` and `openadapt-agent` refuse it until then, and on any other instance. `openadapt-agent` refuses it before Flow starts, with reason `not_ready_to_run` and failed check `skill_not_qualified`, and refuses a pulled skill when no app address is set. The index and its archives carry a keyless Sigstore attestation from the registry release workflow, checked offline against a pinned identity, and expire and can't be rolled back; a release refuses a planned entry, and a re-stamp release (`registry-restamp-*`) renews the expiry and refuses any other change; a shipped record check runs no code and reads only your binding | Released; the `openadapt-agent` check, and a qualified skill passing the check, on main ([#2261](https://github.com/OpenAdaptAI/OpenAdapt/pull/2261)) | Unit tests; agent path through the real `openadapt-flow run` process | `openadapt-flow skill`, [SKILLS_REGISTRY.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/design/SKILLS_REGISTRY.md) |
## Recording, privacy and proof
| Capability | Status | Evidence | Where |
| --- | --- | --- | --- |
| Record mouse, keyboard, screen video and accessibility trees on one clock (Windows, macOS, Linux X11) | Released (capture 1.3.0) | Real OS | [packages/capture](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/capture/README.md) |
| Find and redact personal and health data in text, screenshots and structure | Released (privacy 1.1.3) | Unit tests | [packages/privacy](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/privacy/README.md), [PRIVACY.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/PRIVACY.md) |
| Scrub by default before anything leaves the machine | Released ([#1262](https://github.com/OpenAdaptAI/OpenAdapt/pull/1262)) | Unit tests | `openadapt-privacy` |
| Start and stop Desktop recordings from the menu bar or system tray, and see Desktop's state and how many cloud runs need a person | Released (tray 0.3.7) | Unit tests; CI runs the tray client against Desktop's socket server | [packages/tray](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/tray/README.md) |
| Show in the menu bar when a recording started by `openadapt-flow record` or `capture record` is ready and when it ends, and start and stop `openadapt-flow record` from the macOS menu bar, without OpenAdapt Desktop | On main ([#1481](https://github.com/OpenAdaptAI/OpenAdapt/pull/1481)) | Unit tests with a stand-in control client; run once on one Mac with a real `openadapt-flow record --backend macos` window recording (ready 6.6 s after start, stop reported as saved) | [packages/tray](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/tray/README.md#recording-without-openadapt-desktop) |
| Each package installs on its own within a size budget, checked in CI (privacy without desktop, capture without plotting) | Released ([#1270](https://github.com/OpenAdaptAI/OpenAdapt/pull/1270), [#1271](https://github.com/OpenAdaptAI/OpenAdapt/pull/1271), [#1279](https://github.com/OpenAdaptAI/OpenAdapt/pull/1279)) | CI | `.github/workflows/packages.yml` |
| See a compiled program as a map (every step, exact edge, loop and stop rule, with each step's checks) and play a recorded run over it; one React package that Desktop, app.openadapt.ai and openadapt.ai share | On main ([packages/program-graph](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/program-graph/README.md)) | Real compiled OpenEMR referral program and a recorded scoreboard run, both on synthetic data | `@openadapt/program-graph`; `openadapt-flow visualize --format json` |
| Named sections for every compiled program ("Who: title, first name, last name", "Contact", "Create New Patient"), found without a model from the save, the recorded form structure, the fields and any narration; a person can rename, merge or split them on the review screen | Released | Unit tests; the certified OpenEMR referral bundle and a real recording of it on a local test copy with made-up patients | `openadapt-flow sections`; [SECTIONS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/SECTIONS.md) |
| Encrypt PHI at rest by default: every bundle file that can hold patient data under one sealed index (unknown files refused), web recordings from the first frame, desktop recordings once converted, and every run directory; compile, induce, scaffold-verifier, qualify, admit, run, resume, undo, visualize, explain, emit-skill, for-each, sections, check mark, compose, process, variants, route, teach and push read them in memory through one artifact reader and refuse without the key; teach keeps its skill library and taught bundle sealed, and push keeps its sanitized review copy and approved archive encrypted until the upload | On main | Synthetic (no-plaintext audit-hook test over record, compile and a VERIFIED run; per-frame cost measured) | `openadapt-flow seal`, `record`; [phi_at_rest.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/phi_at_rest.md) |
| Encryption at rest by default, through a key hierarchy (sealed-set v3): each recording, bundle and run has its own data key, wrapped with HPKE (P-256, HKDF-SHA256, AES-256-GCM) to a per-set bucket key, whose record is wrapped to the device runtime key (only while the set is written), the device viewer key, organization keys (P-256 or RSA-OAEP-3072, required in organization mode with a key archive, from a machine policy) and a solo recovery key; files are Tink AES-256-GCM-HKDF 1 MiB streams. The device key is a software P-256 key in the OS keychain (or a 0600 file with a warning): the Secure Enclave, TPM, Touch ID and Windows Hello providers are interfaces with test doubles, not built. `at-rest shred` authenticates the set's header, then destroys its tracked bucket-key copies, in the archive the set was written to (an archive counts only with its marker file), and the run's checkpoints, which are keyed from the run's own data key. Receipts stay plaintext, over the plaintext report digest. `OPENADAPT_ENCRYPT_AT_REST=0` or `--no-encrypt` turns it off with a one-line warning and a ledger line | On main ([#2423](https://github.com/OpenAdaptAI/OpenAdapt/pull/2423)) | Synthetic (hierarchy, fail-closed, org-mode, recovery, shred, unmounted and moved archive, whole-set substitution, backlog race and forged-header tests with test-double device keys and an injected keychain; payload checked against Tink); one headless MockMed quickstart with only ciphertext screenshots on disk | `openadapt-flow at-rest`; `openadapt_flow.key_hierarchy`; [phi_at_rest.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/phi_at_rest.md#key-hierarchy) |
| Model calls fail closed: a component with no `MAY_EGRESS` marker counts as sending frames off the box and needs the egress opt-in; a model "yes" from the drift oracle is a hint for the person reviewing the halt, never a pass; identity-VLM calls count as model calls, split by placement (off-box into `model_calls`, in process into `local_model_calls`), so off-box identity crops never report no external calls; every frame sent off the box is first written to a local append-only ledger (`egress-ledger.jsonl` beside the run directory, hashes and sizes only) and is not sent if that write fails; a signed record that counts off-box model calls must say external calls were observed, while in-process calls never require it; the regulated profile refuses a cleartext appliance or grounding endpoint that is not loopback; a pinned grounding model that can't be wired, or names no model, never falls back to a default model or to the appliance | Branch ([#2497](https://github.com/OpenAdaptAI/OpenAdapt/pull/2497)) | Unit tests (`tests/test_model_failclosed.py`, `tests/test_drift_oracle.py`) | `runtime/model_egress.py`, `model_transport.py`, `model_call_evidence.py`, [ON_PREM_VLM.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/deployment/ON_PREM_VLM.md) |
| Receipts: one signed record per run, with any outcome (`receipt.json`, a DSSE envelope over an in-toto `record/run/v1` statement): one line per write with its check, strength and what it didn't check; digests, enums, counts and salted commitments only, never screenshots, typed values, URLs or page text; the outcome copied, never upgraded; signer roles from a pinned registry (this computer, customer key, OpenAdapt Cloud countersignature, public log, demo), unknown key, role or schema fails closed; a public card is the same envelope with only allow-listed values opened (`openadapt.public-disclosure/v1`) | Branch ([#2394](https://github.com/OpenAdaptAI/OpenAdapt/pull/2394)) | Unit tests with synthetic runs (stopped runs, tampered report and payload, unknown signer, embedded image refused); 15 shared vectors for the Python, Cloud and web verifiers | `openadapt verify <file\|folder\|link>`, `openadapt receipt verify\|view\|publish\|unpublish`; [RECEIPTS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/RECEIPTS.md); [vectors](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/types/tests/vectors/record-run-v1/README.md) |
| Older signed formats still verify, labelled "older format": offline and public Seals (`local-seal/v1`, `public-seal/v1`), Cloud-signed Execute receipts (`seal-signature/v1`), run summaries (`run-receipt/v2`), write and transaction receipts; Seals countersigned and timestamped | Released | Unit tests, real TSA tokens | `openadapt verify`; `openadapt-flow countersign`, `local-seal`; [OFFLINE_SEALS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/OFFLINE_SEALS.md) |
| Encrypt a bundle at rest under one encrypted index | Released | Unit tests | `openadapt-flow encrypt` (`seal` is a hidden alias for one release) |
| Offline Seals signed with a key the customer holds: a key file, the OS keychain, or a PKCS#11 token or HSM; pinned keys with rotation and revocation; no fallback to a generated key | On main ([#1392](https://github.com/OpenAdaptAI/OpenAdapt/pull/1392)) | Unit tests with synthetic data (keychain and PKCS#11 through stand-ins) | `openadapt-flow local-seal --key`, `local-seal key create`, `pin`, `revoke`; `openadapt seal verify FOLDER` checks every sealed run in a folder; [OFFLINE_SEALS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/OFFLINE_SEALS.md#customer-held-keys) |
| Anchor an offline Seal in the public Sigstore Rekor transparency log (opt-in; sends one digest and the public key), and verify the anchor offline from the stored inclusion proof | Released ([#1394](https://github.com/OpenAdaptAI/OpenAdapt/pull/1394)) | Unit tests against a simulated Rekor log; real public Rekor entries and Sigstore TSA tokens for the landing demo's referral runs, verified offline in tests; Ed25519ph matches the RFC 8032 test vector | `openadapt-flow local-seal anchor`, `local-seal verify --require-anchor`; [OFFLINE_SEALS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/OFFLINE_SEALS.md#optional-anchor-a-seal-in-a-public-transparency-log) |
| Signed write receipts: a verifier verdict with its scope (stores read, window, strength) and a plain not-checked list, signed as a COSE_Sign1 (IETF SCITT shape) and logged in a local Merkle transparency log; checked offline against pinned keys; a receipt that claims more than its scope is neither issued nor accepted; optional Rekor anchor | On main | Unit tests on the real verifier (SQLite) and shadow proxy; COSE checked through python-cwt | `openadapt-flow receipt verify`, `receipt keys export`, `receipt anchor`; `verify_write(..., write_receipt=True)`; `shadow --receipts`; [WRITE_RECEIPTS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/WRITE_RECEIPTS.md) |
| Python `openadapt.wrap` receipts signed with this computer's `openadapt trust init` key by default (or `signing_key=`), naming the key by id and fingerprint; with no key a receipt says `digest_only` and `signed: false`, and `wrap` never creates a key. `verify_wrap_receipt` and `openadapt verify` accept a receipt only when its signature verifies against a key you pinned, never the key the receipt carries; an unknown signer or a digest-only receipt is not verified. A plain `check=` callable is recorded as `caller_check`, and a check can't raise its own `checked_how` | On main | Unit tests with real Ed25519 keys: an unsigned receipt with a recomputed digest and a receipt signed by its own embedded key both fail, through the SDK and `openadapt verify` | `openadapt.wrap`, `openadapt.verify_wrap_receipt`, `openadapt verify FILE [--keys FILE]`, `openadapt trust init` |
| Per-run accounting ledger for any executor (an OpenAdapt agent, a compiled program, another agent, a person): one value-free row per run with the outcome (VERIFIED, ESCALATED, CAUGHT_ERROR, FAILED, UNKNOWN) and a closed reason, a person's minutes from approval, question, exception and second-factor intervals, model calls and cost (unknown is null, never zero), field names with their checks, and the read-back tier; values only in a local 0600 sidecar; collected from the files guard, verify-run, compiled runs, wrap, item approvals and compile-agent already write, plus readiness shadow runs, guard ledger rows, P7 fallback results and P6 exception answers; a person's decline is ESCALATED, not a caught error | On main | Unit tests with synthetic data: the outcome rule as a table over every engine outcome enum, fixtures for each source (copies of the shadow, guarded-save, fallback and exception files from a synthetic MockMed end-to-end run), the real commit guard against MockMed's fault server end to end, exports scanned for every fixture value and checked with the real Presidio scrubber, push payloads validated against the JSON Schema, push refused with no key | `openadapt-flow ledger add`, `list`, `show`, `summary`, `export`, `push`; [RUN_LEDGER.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/RUN_LEDGER.md) |
| See a run's Seal offline: one HTML page that checks the Ed25519 signature over the run's exact report in the browser, draws the Seal from it, replays the run over its program map, and lets the reader tamper with a copy; no network requests; the quickstart ends on the person's own. One screen: map left, Seal and verdict top right, Summary, Steps, Evidence and Raw tabs; light and dark | On main ([#1566](https://github.com/OpenAdaptAI/OpenAdapt/pull/1566)) | A real quickstart run's Seal opened from `file://` in Chromium (valid, tampered, no requests; a link to one step, keyboard tabs and steps, theme switch, phone layout); RFC 8032 test vectors; a published OpenEMR Seal's Rekor entry and timestamp | `openadapt seal view RUN_DIR`; `openadapt quickstart`; [`@openadapt/seal-view`](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/seal-view/README.md) |
| Sign in to OpenAdapt Cloud from the terminal: `openadapt login` with no token prints a sign-in link (opened only with `--open`), listens on 127.0.0.1 for the browser's redirect, and redeems Cloud's one-use code with an S256 PKCE verifier that never leaves the process. A first-time user gets a workspace on the way. The credential goes to the OS keychain entry `push` and `report-run` read; a stored token is re-validated as before, and `--token` and `--no-browser` keep the token path | On main | Unit tests with a real loopback listener (state mismatch, refusal, malformed code, timeout, browser opened only on request); end to end against Cloud's `/auth/loopback` and pairing routes in mock mode, both Connect and Cancel | `openadapt login`; [browser_login.py](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/openadapt_flow/browser_login.py) |
| Publish a run's Seal online: a signed public card (counts, outcomes, each step's check, digests; the program name only with `--names` or for the tutorial; never inputs, intents, screenshots, URLs or halt text) shown in full and uploaded only after a yes, with a delete token; check a hosted link here. The quickstart offers its checked and its stopped run's Seals in one question, showing every public field and the full path to each file; `--show` prints the exact upload | On main ([#2266](https://github.com/OpenAdaptAI/OpenAdapt/pull/2266)) | Unit tests with synthetic reports: planted values absent from the file, 64-step card within 4,096 bytes, stopped runs, mock uploads with real sockets blocked; 29 golden vectors shared with Cloud's verifier | `openadapt-flow local-seal public`; `openadapt seal publish`, `unpublish`, `seal verify <link>`; [OFFLINE_SEALS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/OFFLINE_SEALS.md#public-seals-a-summary-you-can-post) |
| Run authorizations signed with the authorizer's GitHub SSH key (`ssh-keygen -Y sign`, after a summary of what it allows), naming the signing key and bound to the bundle digest, items, profile and Seal keys, and referenced by each Seal; the identity checked against github.com (`--live`) or pinned allowed signers; a pseudonymous operator profile counted from anchored Seals only | Released ([#1401](https://github.com/OpenAdaptAI/OpenAdapt/pull/1401)) | Unit tests with synthetic data; signatures checked against OpenSSH's `ssh-keygen` both ways | `openadapt-flow local-seal authorize`, `local-seal run --authorization`, `local-seal profile`; [OFFLINE_SEALS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/OFFLINE_SEALS.md#run-authorizations-who-authorized-the-runs) |
| Run reports redacted before they are sealed: session and CSRF tokens, OAuth grants and credential headers become `<redacted>` and are listed in `redactions`; a Seal refuses a report that still holds one; per-app policy | Released ([#1407](https://github.com/OpenAdaptAI/OpenAdapt/pull/1407)) | Unit tests with generated tokens; 7,773 local reports scanned, only OpenEMR `token_main` matched | `openadapt-flow redact-report`, `local-seal run --allow-unredacted`; [REPORT_REDACTION.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/REPORT_REDACTION.md) |
| Strict no-outbound mode and an unattended on-prem service | Released | Synthetic | `openadapt-flow no-outbound`, `service`; [ON_PREM.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/ON_PREM.md) |
| Windows service wrapper for the outbound BYOC connector: virtual service account, restricted config ACL, rotating log, delayed start and SCM recovery | Branch ([#2292](https://github.com/OpenAdaptAI/OpenAdapt/pull/2292)) | Windows-hosted CI proves service lifecycle and refusal of an ungoverned stub job; it does not prove a desktop job through an interactive-session agent | `openadapt-flow connector service install`, `start`, `stop`, `remove`, `status`; [BYOC_CONNECTOR.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/BYOC_CONNECTOR.md#windows-service) |
## Every command, by capability
Each `openadapt-flow` command, grouped by the capability it serves. Each
command has one file under
[`packages/flow/docs/commands/`](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/commands/): to add a
command, add `<group>/<verb>.md` and run `python scripts/build_command_map.py`.
A test fails when a command has no file or this list is out of date.
<!-- BEGIN generated by scripts/build_command_map.py -->
**Record and build a program:**
- `browser-accessibility`: On Linux, make Chrome, Chromium, Edge and Brave start with their page readable to accessibility tools, so `record` can read what you click in your everyday browser. It writes launcher entries in your own `~/.local/share/applications` only; `--disable` removes them. On Windows and macOS, `record` does this by itself.
- `compile-agent`: With `--config DEPLOY_YAML`, the agent drives a desktop, RDP or Citrix app built by `build_backend`. With `admit TASK_DIR`, a person confirms and admits a waiting draft, such as one an agent taught over MCP (`openadapt-agent serve --teach`).
- `compile`
- `compose`
- `confirm-surfaces`: Show the windows and apps a cross-window recording used, with the steps on each, and confirm them. `compile` refuses a cross-window recording until a person has confirmed its surfaces, either at the end of `record` or with this command. `--yes` confirms without asking.
- `demo-record`
- `disambiguate`
- `for-each`
- `induce`
- `intake`
- `narration`
- `process`
- `pull`: Download a workflow from the registry, after checking the attested index and every file against it. The pulled copy does not run, here or through `openadapt-agent`, until `skill qualify` passes on your own instance.
- `record`
- `route`
- `sections`: Show, rename, merge or split the named sections a program map folds
- `skill`: Bind a pulled skill to your instance, qualify it there, and check whether it may run.
- `variants`
- `visualize`
**Check and admit:**
- `admit`
- `api`
- `approver-grant`
- `bind-record-checks`
- `certify`
- `check`
- `jit`
- `known-ids`
- `lint`
- `onboard`: Synthesize and planted-fault-qualify a verification pack for any system of record.
- `propose-qualification`
- `qualify`
- `scaffold-verifier`
- `teach-authorization`
**Run and answer:**
- `approve`
- `business-decisions`
- `console`
- `deferred`
- `exceptions`: Let any agent stop and ask a person: `serve` runs the `raise_exception` MCP tool, `watch` raises cards from a Chromium agent's page without the agent and blocks its saves while one is open, `list` shows waiting cards, and `answer` writes one closed answer signed with an approver key. A run goes on only after a verified `continue` or `done_by_person`. See `packages/flow/docs/EXCEPTION_QUEUE.md`.
- `explain`
- `item-approval`
- `replay`
- `resume`
- `run`
- `triage`
**Judge any executor's write:**
- `reconcile`: Check that the EHR, clearinghouse and payer agree on one prior authorization or claim, and report each break.
- `serve-reward`: Scores agent training episodes by reading the system of record.
- `verify-run`
**Repair and learn from halts:**
- `cleanup`: A clean screen after a halted item; `cleanup qualify` tries the halt cleanup on a test copy after every step and stores it when the start screen always comes back and no record changes.
- `fleet`
- `repair`
- `rollback`: Compensating rollback after a stop; `rollback qualify` stops the run before and after every save on a test copy and keeps the compensations that restore the whole database.
- `teach-branch`
- `teach`
- `undo`: The undo steps a person approves after a stop; `undo propose` finds and verifies them on a test copy, `undo accept` is a person's one-time approval of a proposal.
**Give agents the program:**
- `emit-mcp`: Write a standalone MCP `server.py` for one bundle. A pulled workflow is refused until `skill qualify` has passed, and the server refuses a run on any other app address.
- `emit-skill`: Write an Agent Skills folder for one bundle. A pulled workflow is refused until `skill qualify` has passed.
- `handoff`: Agent-to-agent handoffs: `send` attaches a run's receipt to what one agent hands another (inline, detached beside a file, or POSTed to a webhook); `verify` checks one on arrival against your pinned keys (who signed, what was checked, and that a valid signature proves who signed, not that the claim is true); `key` and `trust` exchange receipt keys between parties; `list` shows handoffs to other parties and what their systems confirmed.
- `serve-execute`: With `--config DEPLOY_YAML`, a bundle recorded on Windows, macOS, Linux, RDP or Citrix runs through `openadapt-flow run --config`, under its admission's qualification authority.
- `wrap-dispatch`: Run a wrapped task's admitted program only; a miss runs nothing. With `--fallback agent --fallback-max-cost-usd N`, a proved pre-effect drift goes to the agent behind a pre-commit gate (the terminal, or `--fallback-gate item-approval` for a signed approval from a phone or `item-approval approve`); `status`, `release` and `evict` manage the hold (docs/WRAP_FALLBACK.md).
**Proof:**
- `attach-seal`
- `countersign`
- `encrypt`
- `ledger`: Per-run accounting rows for any executor: outcome (VERIFIED, ESCALATED, CAUGHT_ERROR, FAILED, UNKNOWN), a person's minutes, model cost, fields checked; no record values
- `local-seal`: Offline Seals: customer-held keys, pinned verification, Rekor anchoring, run authorizations, operator profiles, public cards.
- `receipt`: Signed write receipts (COSE, SCITT shape): check one offline against pinned keys and print what it did not check; export the public keys; anchor in Rekor.
- `redact-report`: Strip session tokens from an existing run's report so it can be sealed again; the original stays local
- `seal`: Hidden alias of `encrypt` for one release.
**Run on premises:**
- `at-rest`: Encryption at rest: the device keys, policy and recipients by fingerprint, a solo recovery key, `restore` for a backup only the recovery code opens, and `shred`, which destroys an encrypted run's bucket key so nobody can open it.
- `no-outbound`
- `service`
**Share safely with OpenAdapt Cloud:**
- `approve-sanitized`
- `connect`
- `connector`: Run an outbound connector with local secrets, pinned admission keys, signed requests, token rotation, heartbeats and cancellation.
- `login`
- `materialize-approved`
- `push`
- `report-break`
- `report-run`
- `review-sanitized`
- `sanitize`
- `validate-hosted`
**Try it and measure it:**
- `bench`
- `benchmark`
- `demo`
- `silent-saves`: Scores any GUI agent on injected bad saves, from the source checkout.
- `tutorial`
**Guard an agent you already run:**
- `flight`: Record any agent you already run: meter and price its model calls through a loopback proxy, scrub its text and PNG/JPEG/GIF/BMP/TIFF/WEBP screenshots before they leave the machine, block other egress on macOS, log its actions, and hold each click that is not known to be safe for a person.
- `gate`: Show a contract's shadow-mode run of clean checks, label a stop as a real catch or a false stop, and turn gating on once it is offered (`docs/VERDICT_TIERS.md`).
- `guard`: Attaches to the agent's own Chromium over CDP, holds each save until the right record is on screen, reads it back, writes a ledger row and a private diff, and hands a verified run to the teach dir.
- `hooks`: Writes `openadapt.systems.yaml` checks into Claude Code or Codex hooks: each write to a declared database, HTTP API or MCP tool is pre-checked, read back and given a signed receipt (advisory).
- `learn`: Learn the app's own per-request writes from a shadow run or from read-only requests (`learn probe`), scope the frame to the setup's business entities (`learn entities`, admitted only if the planted faults are still caught), and write them into the contracts.
- `plan`: Dry-runs a batch of writes to external systems (REST APIs, SQL databases, email) and prints what would change; applies it only under a single-use approval bound to the plan digest, with an idempotency key per write that a regenerated payload cannot change; undoes it with a read-back proof; holds email in a cancelable queue.
- `proxy`: Holds the database credentials, and with `--api` the API credentials, and runs the agent with scoped MCP tools: each SQL write is dry-run in a rolled-back transaction with its exact row-level diff, approved by policy or by a person against the plan digest, committed once only if its diff matches, and undone with a read-back proof; each API write is sent once under a task-derived key, read back, and checked against the system's own event or audit log.
- `readiness`: Shadow a candidate agent or compiled program on tasks a person did, stopped before every save, and write a one-page Readiness Scorecard (matched N of M, risks, field errors, time and cost).
- `shadow`: Shadow an agent: check each write it makes through an HTTP proxy, or check announced database actions for a desktop client, against the system of record without blocking it, and report.
<!-- END generated by scripts/build_command_map.py -->
## Measured results
- **OpenEMR referral, 62 timed runs each, warm.** OpenAdapt took a median of
29.7 s and a computer-use agent (Claude) 36.5 s. Both saved 62 of 63
referrals correctly. OpenAdapt made no model calls; the agent cost about
$0.08 per referral. Raw data and
figures: [benchmark/openemr_referral_timing](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/openemr_referral_timing/).
- **Guard an agent you already run, MockMed.** A scripted Playwright agent
in its own browser, 90 runs at a high shared load (median load average 29).
Of the 8 `effect_e2e` faults that leave a wrong record, the agent alone
reported 6 as saved; with the guard, the read-back caught 7 and 1 (a stray
write to a table the REST read doesn't cover) got through; the compiled
program caught all 8. The guard blocked the saves it can see: a save on the
wrong patient and a second submit. Same-load pairs: the guarded agent took
6.3 s (6 actions, each a model call for a real agent), the compiled tool
4.4 s with no model calls:
[GUARD_AN_AGENT.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/GUARD_AN_AGENT.md#measured-on-mockmed).
- **Fault test.** We injected 8 kinds of bad save, 9 runs each, alongside
clean runs: 72 runs left a wrong record behind. A check that trusts the screen's "Saved" banner reported 54 of those
as success; reading the record back over the app's REST API missed 9; the
complete database read path caught all 72. The test app's database is
SQLite with two record tables, so "every table" there is two tables.
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. The count is of end-to-end run outcomes. The fault set and method are in
[EFFECT_E2E.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/effect_e2e/EFFECT_E2E.md).
- **OpenEMR referral: agent, screen program and API step.** Median wall time
per referral, from a fresh browser through sign-in, the entry and the read-back:
agent alone 36.5 s (62 of 63 correct, the 14 to 15 Oct study); compiled program
on the screen 22.5 s (18 of 18); the same program with the API step 3.3 s
(18 of 18). The program rows ran on 19 Oct, interleaved on one copy, with
the approval gate off; the benchmark harness admitted the API step:
[SCOREBOARD.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/scoreboard/SCOREBOARD.md#openemr-agent-screen-program-and-api-step).
- **An agent's claims versus the read-back, on OpenEMR.** With faults injected
in the fixture's database (partial, wrong value, duplicate, not persisted,
another chart deleted, another chart edited; 5 items each), Claude Sonnet 5.5
computer use claimed success on all 30 bad saves. `verify-run` caught 25 and
confirmed 5 of 5 clean saves with no false alarms:
[SCOREBOARD.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/scoreboard/SCOREBOARD.md#the-agents-claims-versus-the-read-back).
- **An agent's claims versus the read-back.** Claude Sonnet 5.5 computer use,
working alone on a test app whose server broke the save in 6 ways (5 items
each), reported all 30 bad saves as done. `verify-run` flagged all 30 and
confirmed all 10 clean saves, with no false alarms. The app shows "saved"
before the server answers, so this measures what the screen can't show, not
the agent's care:
[SCOREBOARD.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/scoreboard/SCOREBOARD.md#the-agents-claims-versus-the-read-back).
- **openIMIS claims.** On a test copy of openIMIS, the open-source insurance
and claims system that runs Nepal's national health insurance scheme, the
compiled program ran 200 synthetic claims: 148 completed and verified with no
model calls, 50 paused for human review, 2 stopped, and 0 saved wrong. Each
saved claim was read back by SQL through a read-only database role on the
test copy:
[SCOREBOARD.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/benchmark/scoreboard/SCOREBOARD.md#openimis).
The systems each result ran on are listed in
[LIMITS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/LIMITS.md#validated-on).
---
<!-- Surfaces: packages/flow/docs/SURFACES.md -->
# Execution surfaces
OpenAdapt drives six execution surfaces through one governed runtime:
`web`, `windows`, `macos`, `linux`, `rdp`, and `citrix`. The browser is one
surface among six, not a privileged default.
[BACKEND_PARITY.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/BACKEND_PARITY.md) lists every command and Python entry
point against the six surfaces: tested, works, or refused with its reason.
## Surface selection is explicit in production
- Under `--profile standard` or `--profile regulated`, `record` and `run`
REFUSE to proceed without an explicit target: pass `--backend` (one of
`web`, `windows`, `macos`, `linux`, `rdp`, `citrix`) or set `backend.kind`
in the deployment `--config`. There is no implicit browser default in
production.
- Under `--profile demo` (or with no profile, the permissive pre-profile
posture), an omitted `--backend` records capture on this OS (`macos`,
`windows`, or `linux`) and prints a visible notice. Pass `--url` without
`--backend` to record the browser. An explicit `--backend` still wins.
With `--profile demo`, the CLI also remembers your last explicitly
selected target in a per-user state file
(`~/.openadapt/flow_cli.json`, override with `OPENADAPT_FLOW_CLI_STATE`)
and offers it as the default next time when that target is this OS, again
with a visible notice. This convenience is CLI state only; it is never
written into a workflow bundle.
## Workflows are bound to their surface
The recorder stamps the surface into the recording (`meta.json` `surface`),
and `compile` seals it into the bundle (`workflow.json` `surface` plus the
implied `execution_mode`). A workflow recorded and qualified on one surface
refuses to `replay`/`run` on another:
```text
run REFUSED: this workflow is bound to surface 'windows', but the resolved
backend targets 'web'. ...
```
Pass `--allow-surface-override` to proceed anyway; the override is recorded in
the run report (`surface_override: true`, alongside `recorded_surface` and
`execution_target_kind`) as compatibility evidence, so a cross-surface run is
never silent. A surface-bound bundle also supplies its own default target: an
unqualified `replay bundle` selects the bound surface rather than the browser.
Bundles compiled before surface binding carry no `surface` and behave exactly
as before.
A composition does not merge surfaces. `openadapt-flow compose` copies each
child bundle into a parent artifact; `run` executes those children one at a
time against the surface sealed into that child. There is no backend switch
inside a recording, and no parent-level `--backend` that retargets every
child.
## Execution boundary and evidence, per surface
Every substrate runs on the same small `Backend` protocol and the same governed
runtime. Each surface keeps its own deployment and evidence boundary.
| Surface | Execution boundary | Required workflow evidence |
| --- | --- | --- |
| Browser (web) | Local, customer-controlled, or managed browser runner | Exact browser, application, environment, identity, effect, and policy contracts |
| Native desktop (Windows, macOS, Linux) | Local or customer-controlled | Exact host and application identity, native accessibility evidence, and an independent effect check |
| Remote display (RDP) | Local or customer-controlled | Exact client window or network session, remote-display identity, and an independent effect check |
| Citrix / VDI | Local or customer-controlled | Exact Workspace, server, application, display, identity, and effect contracts, with counted ICA/HDX trials |
Per-substrate engineering evidence is reported per the
[capability and qualification matrix](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/PRODUCT_STATUS.md):
| Substrate | Selector | Evidence basis | Evidence |
|---|---|---|---|
| Web / browser | `--backend web` | Required CI and third-party apps | The lifecycle on in-tree apps on every CI build; local runs on OpenEMR, Odoo, Frappe Lending and openIMIS test copies |
| Native macOS (AX) | `--backend macos` | Counted effects and a third-party app | 3/3 fixed TextEdit trials with exact file-byte effects, driving the backend directly; refused a two-window ambiguity without changing either file. On calibre (Qt, SQLite): record, compile and a governed run `VERIFIED` against its database; a same-title book by another author and two identical books stopped with nothing written |
| Native Windows (UIA) | `--backend windows` | Counted task acceptance | 3/3 fixed trials of an in-tree WinForms app in a Windows 11 VM, with independently confirmed SQLite effects; 3/3 refusal for both stale and ambiguous targets |
| Native Linux (AT-SPI) | `--backend linux` | CI on real AT-SPI and counted task acceptance | The `flow-linux-atspi` job drives a real GTK3 workflow through an isolated X11 / session-D-Bus environment (three verified effects, three ambiguous-target and three stale-target refusals), and records, compiles, runs governed and repairs a write workflow on a GTK3 app with SQLite |
| RDP (remote display) | `--backend rdp` | Counted task acceptance | Aardwolf RDP into a Windows 11 VM passed 3/3 fixed remote-input trials with independent guest-tools file verification; a separate real-FreeRDP batch covers record → compile → governed replay and refusal; through the stock Remote Desktop client on a real AVC444 session, 105 scripted runs saved 55 records confirmed in the database, with 0 wrong-record saves and 40 false stops |
| Citrix / VDI (pixel ladder) | `--backend citrix` | Required CI and counted no-DOM stand-in | Dedicated exact-Workspace-window driver, readiness gate, durable resume, and 3 healthy + 3 drift-halt no-DOM trials; the retained artifact records `ica_hdx_accepted=false` until a counted ICA/HDX run is attached |
[BACKEND_PARITY.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/BACKEND_PARITY.md) breaks this down by capability.
Every row is bounded to its stated evidence. Accepted application workflows are
qualified against their own controls, session/display policy, identity evidence,
and effect oracle; code-qualified Citrix deployments additionally attach the
counted ICA/HDX record for their exact Workspace/server/application matrix.
Details:
[`backends/RDP.md`](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/backends/RDP.md),
[`desktop/LINUX_NATIVE.md`](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/desktop/LINUX_NATIVE.md),
[`desktop/CITRIX_PIXEL.md`](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/desktop/CITRIX_PIXEL.md).
## What `record` observes
`record` opens the operator's real interface and watches what you do: real
clicks, typing, key presses, and scrolls, writing the same recording format
`compile` consumes. Perform the workflow, then press Ctrl-C (or close the
window) to finish. The `--backend` selector picks the substrate, and the same
selector is available on `replay` and `run`.
`--backend web` is browser-first (the app is a `--url`). For `windows`,
`macos`, `linux`, `rdp`, and `citrix`, the Capture component records local
screen, mouse, keyboard, timing, and available action-time structure.
`--macos-app` / `--macos-window-title` scope the macOS Capture window.
`--window` / `--window-title` scope a Windows-hosted local capture, and
`--rdp-window` / `--rdp-window-title` bind a local RDP or Citrix client window
to both capture and replay. `--task` records the operator's intent alongside
the demonstration. A compiled bundle is bound to the exact surface it was
recorded on.
`record` captures a person doing the task. An AI agent can show the task
instead, in a browser, a macOS, Linux, or native Windows app, or over RDP or
Citrix, through openadapt-agent's recording tools; see
[Recording on Windows, RDP and Citrix](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/RECORDING_ON_WINDOWS_RDP_CITRIX.md).
Install the Capture component together with the runtime for the surface that
will replay the workflow. Recorded parameter values become the defaults, and
`--param` overrides them at replay; see [`PARAMETERS.md`](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/PARAMETERS.md).
## First workflow, per surface
Each surface has an equivalent record -> compile -> replay path:
| Workflow surface | Exact install |
|---|---|
| Browser | `pip install 'openadapt-flow[browser]'` |
| Native Windows | `pip install 'openadapt-flow[capture,windows]'` |
| Native macOS | `pip install 'openadapt-flow[capture,macos]'` |
| Native Linux | `pip install 'openadapt-flow[capture,linux]'` plus the AT-SPI system packages in [`desktop/LINUX_NATIVE.md`](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/desktop/LINUX_NATIVE.md) |
| Network RDP | Recorder: `pip install 'openadapt-flow[capture]'` inside the demonstrated session; runner: `pip install 'openadapt-flow[rdp]'` |
| Local RDP/Citrix client window | macOS host: `pip install 'openadapt-flow[capture,macos]'`; Windows host: `pip install 'openadapt-flow[capture,windows]'` |
```bash
# Browser (Playwright / Chromium)
openadapt-flow record --backend web --url https://your.app --out rec
openadapt-flow compile rec --out bundle --name my-task
openadapt-flow replay bundle --url https://your.app
# Attach the same recorder to one existing signed-in local Chromium tab.
openadapt-flow record --backend web --url https://your.app \
--browser-cdp-endpoint http://127.0.0.1:9222 --out rec
# Windows: Capture records the local window; the in-guest WAA agent replays it.
openadapt-flow record --backend windows --window "Target App" --out rec
openadapt-flow compile rec --out bundle --name my-task
openadapt-flow replay bundle --agent-url http://localhost:5001
# macOS: the app and title scope the local Capture window.
openadapt-flow record --backend macos --macos-app TextEdit \
--macos-window-title notes.txt --out rec
openadapt-flow compile rec --out bundle --name my-task
openadapt-flow replay bundle --macos-app TextEdit \
--macos-window-title notes.txt
# Linux: Capture records the local desktop; AT-SPI selects the replay target.
openadapt-flow record --backend linux --out rec
openadapt-flow compile rec --out bundle --name my-task
openadapt-flow replay bundle --linux-app gedit \
--linux-window-title "Untitled Document 1"
# Network RDP: run record inside the demonstrated remote session.
openadapt-flow record --backend rdp --out rec
openadapt-flow compile rec --out bundle --name my-task
openadapt-flow replay bundle --rdp-host 10.0.0.5
# Citrix / VDI (one exact local Citrix Workspace window)
openadapt-flow record --backend citrix --window "Citrix Viewer" \