Skip to content
Draft
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
22 changes: 22 additions & 0 deletions .github/workflows/desktop-replay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ on:
- packages/flow/tests/e2e/test_windows_hosted_replay.py
- packages/flow/tests/e2e/test_native_keyboard_lease.py
- packages/flow/tests/e2e/test_windows_hosted_governed.py
- packages/flow/tests/e2e/test_windows_qualification_campaign.py
- packages/flow/tests/_approver_keys.py
- packages/flow/tests/conftest.py
- packages/flow/tests/e2e/conftest.py
Expand Down Expand Up @@ -241,6 +242,22 @@ jobs:
echo "governed step outcome: $GOVERNED_OUTCOME"
python ../../scripts/ci/check_windows_governed_safety.py \
"$RUNNER_TEMP/windows-governed-evidence.json"
- name: Qualify native Windows with real faults and complete record read-back
env:
OAFLOW_WINDOWS_HOSTED_E2E: "1"
OAFLOW_WINDOWS_QUALIFICATION_EVIDENCE: ${{ runner.temp }}/windows-qualification-evidence.json
run: |
pytest -v -rs -p no:cacheprovider --basetemp="$RUNNER_TEMP/wq" \
tests/e2e/test_windows_qualification_campaign.py --junitxml=runs/windows-qualification-junit.xml
python - <<'PYCODE'
import json, os
import xml.etree.ElementTree as ET
cases = list(ET.parse("runs/windows-qualification-junit.xml").getroot().iter("testcase"))
assert len(cases) == 1 and not any(c.find(tag) is not None for c in cases for tag in ("skipped", "failure", "error"))
evidence = json.load(open(os.environ["OAFLOW_WINDOWS_QUALIFICATION_EVIDENCE"]))
assert evidence["completed"] and len(evidence["result"]["cases"]) == 18 and evidence["admission_verified"]
assert all(case["passed"] for case in evidence["result"]["cases"])
PYCODE
- name: Keep the evidence
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
Expand All @@ -249,6 +266,11 @@ jobs:
path: |
${{ runner.temp }}/windows-replay-evidence.json
${{ runner.temp }}/windows-governed-evidence.json
${{ runner.temp }}/windows-qualification-evidence.json
${{ runner.temp }}/wq/**/report.json
${{ runner.temp }}/wq/**/result.json
${{ runner.temp }}/wq/**/agent.log
${{ runner.temp }}/wq/**/*.png
${{ runner.temp }}/nkl-editable/*.json
${{ runner.temp }}/nkl-editable/*.xml
${{ runner.temp }}/nkl-editable/*.log
Expand Down
1 change: 1 addition & 0 deletions CAPABILITIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ improvising or retrying when something is off.
| 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](packages/flow/docs/LIMITS.md) |
| Chain programs across surfaces, passing confirmed values | Released | Synthetic | `openadapt-flow compose`, `process`; [PROCESS_CONTRACT.md](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](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](packages/flow/docs/CHOICES.md), [benchmark/choice_widgets](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` |
Expand Down
11 changes: 11 additions & 0 deletions packages/flow/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@

## Unreleased

### Native Windows qualification

- Native Windows qualification campaigns use the observed Windows environment
and opt-in, authenticated UIA/physical fault staging. Fault overlays are
bounded, have no application write handlers and are cleaned up after trials.
This keeps the existing machine/OS qualification binding; it does not make
admissions portable across fresh workers.
- Qualification read-back checks complete before/after row multisets for
inserts and declared field updates. A changed sibling, extra or missing
row, duplicate row, undeclared field change or unavailable read refuses.

### Encryption at rest by default

- Recordings (web, the quickstart and tutorial, and desktop once converted),
Expand Down
11 changes: 11 additions & 0 deletions packages/flow/docs/LIMITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ For the current evidence behind each capability claim, see
[`VERIFICATION.md`](VERIFICATION.md). For the package-wide evidence map, see
[`PRODUCT_STATUS.md`](PRODUCT_STATUS.md).

## Native Windows qualification campaigns

`qualify` can run the normal case and five faults through a native Windows
session hook with an authenticated, explicitly enabled fault agent. The native
screen mutations currently support buttons with an AutomationId or exact
role/name; other controls refuse. RDP and Citrix campaign fault staging is
separate and remains unavailable. The executable, machine and exact OS build
are part of the qualification boundary, so this does not qualify arbitrary
fresh workers. A script-hosted application's own code is covered by its
declared version, not the host executable's hash.

## Validated on

Every published result used synthetic patients, claims and records.
Expand Down
27 changes: 22 additions & 5 deletions packages/flow/docs/QUALIFY_A_WORKFLOW.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,28 @@ certified bundle once, as the runner would, into `runs/qual-1/certified-run/`.

## Limits

- Web only today. The ambiguity, wrong-identity and stale-identity faults are
staged in the browser, on the save button the bundle's own selector finds.
A fault driver for pixel surfaces (Windows, RDP, Citrix) is the next piece;
until it exists, `qualify` refuses `app.target` other than `web`. The two
effect faults do not depend on the surface.
- Browser campaigns stage screen faults on the save control's page. Native
Windows campaigns (`app.target: windows`) use an authenticated in-guest
agent started with `--allow-qualification-faults`, plus `app.session` to
return its backend. The save needs an AutomationId or exact role/name;
the native driver currently supports buttons. Its own temporary WinForms
overlays add real duplicate UIA targets, change the identity at the save,
or cover the surface after identity verification. Ordinary UIA and frame
reads must observe the change before the driver signs it. The overlays have
no save handlers, expire after three minutes and are removed after each run.
The routes are absent unless explicitly enabled and require authentication.
RDP, Citrix, macOS and Linux campaign screen faults remain unsupported.
- A native campaign binds the observed executable digest and the exact
machine/OS environment. A fresh Windows installation or an OS update needs
another qualification; this does not grant an admission to arbitrary EC2
workers. For an app hosted by a script interpreter or shared runtime, the
executable digest covers the host. The declared application version must
be updated and qualified again when the application's own code changes.
- Independent record snapshots cover inserts and declared field updates.
Inserts may add only the selected rows; updates may change only their named
fields on uniquely selected existing rows. All other rows, fields and row
multiplicities must remain identical. An unreadable after-snapshot is
indeterminate, including when the before-snapshot was empty.
- A web workflow can't yet be qualified for a remote-display surface. With
`app.surface: remote_display` the cases run with structure lookups off, and
the browser delivers a click only through an action bound to the page
Expand Down
Loading
Loading