Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions capabilities/01-openadapt-in-ten-capabilities/section.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,18 @@ monorepo and installable from source.
(`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.**
The record check reads the system of record (API, database, FHIR with SMART
Backend Services, or a separate signed-in session), never just the screen.
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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
| 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` |
Original file line number Diff line number Diff line change
@@ -1 +1 @@
| Commit one record update through a transaction lens: `openadapt-verify tx-run` (or `tx_verified` in Python) reads the target record, sends the update, reads it back and judges the intended fields and every other field (frame) with one comparison policy, and signs a receipt. Without a separately supplied SQLite row authority every HTTP write is refused; `--prototype-unqualified` runs it with an `UNCERTAIN` result at best and no automatic undo. `tx-induce` proposes a lens from a HAR trace and can probe a declared sandbox, but its probe report never authorizes execution, and an observed mismatch never becomes an accepted value mapping. Induction takes route roles from what each request did, so a create sent as `PUT` and an update sent as `POST` are recognized, and the sandbox probe checks an update route of any method for replace semantics. A field that only looks like a timestamp stays in the frame unless the probe sees the server change it. Induction refuses a trace that shows no write it can attribute to a record (an update at the record's URL, or a create whose record is then read there) instead of guessing a route; the CLI allows a guessed item route only when it certifies the lens on a sandbox. When the probe cannot create its own record, an update lens is left in replace mode (whole-record writes), and a certification fault the server refuses is reported as not delivered, never as a pass. Undo refuses to overwrite a change made after the write. The wire tap hands a redirect that stays on the tapped origin back to the client and refuses one that leaves it; it never follows a redirect itself. A field the server is seen rewriting between `NULL` and `""` gets a `null_empty` codec, learned per field by the probe or from the trace, so that change alone is not a clobber; any other change on the field still is. Not checked: server-side effects outside the target record, such as triggers or background jobs | On main ([#2293](https://github.com/OpenAdaptAI/OpenAdapt/pull/2293)) | Synthetic (local SQLite and HTTP fixture servers), plus induction and the replace probe on one open-source task app (recorded trace in CI, live tests in the lab) | `openadapt-verify tx-induce`, `tx-run`, `openadapt_flow/tx/`, `openadapt_verify/tx.py` |
| Commit one record update through a transaction lens: `openadapt-verify tx-run` (or `tx_verified` in Python) reads the target record, sends the update, reads it back and judges the intended fields and every other field (frame) with one comparison policy, and signs a receipt. Without a separately supplied SQLite row authority every HTTP write is refused; `--prototype-unqualified` runs it with an `UNCERTAIN` result at best and no automatic undo. `tx-induce` proposes a lens from a HAR trace and can probe a declared sandbox, but its probe report never authorizes execution, and an observed mismatch never becomes an accepted value mapping. Induction takes route roles from what each request did, so a create sent as `PUT` and an update sent as `POST` are recognized, and the sandbox probe checks an update route of any method for replace semantics. A field that only looks like a timestamp stays in the frame unless the probe sees the server change it. Induction refuses a trace that shows no write it can attribute to a record (an update at the record's URL, or a create whose record is then read there) instead of guessing a route; the CLI allows a guessed item route only when it certifies the lens on a sandbox. When the probe cannot create its own record, an update lens is left in replace mode (whole-record writes), and a certification fault the server refuses is reported as not delivered, never as a pass. Undo refuses to overwrite a change made after the write. The wire tap hands a redirect that stays on the tapped origin back to the client and refuses one that leaves it; it never follows a redirect itself. A field the server is seen rewriting between `NULL` and `""` gets a `null_empty` codec, learned per field by the probe or from the trace, so that change alone is not a clobber; any other change on the field still is. The wire tap counts a GraphQL query (on `/graphql` or `/$graphql`) and a batch of `GET`s as reads. Another `POST` counts as a read only when it matches a read route declared as data; `probe_read_routes` learns those by replaying a trace on a sandbox reset to its pre-trace state and requiring that a whole-store digest not change. 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` |
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
| 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` |
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
| 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](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` |
10 changes: 8 additions & 2 deletions capabilities/13-measured-results/section.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
- **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 fault set and method are in
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](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:
Expand All @@ -43,7 +47,9 @@
- **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 entered 149 synthetic claims with no model calls: 148 read
back correct and none were saved wrong:
back correct and none were saved wrong. Each saved claim was read back by
SQL through a read-only database role on the test copy; the 149th stopped
before saving:
[SCOREBOARD.md](packages/flow/benchmark/scoreboard/SCOREBOARD.md#openimis).

The systems each result ran on are listed in
Expand Down
2 changes: 1 addition & 1 deletion capabilities/CAPABILITIES.md.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9427a5c058de97037b890ea149f74d0723a85384151825a8fa413e9b11f2ca65
e43b02968b96995aa15093365c5405a2ef95166f04506c3137b21ba63f3a6afb
Loading