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
24 changes: 23 additions & 1 deletion .github/workflows/desktop-replay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,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/e2e/test_windows_approval_completeness.py
- packages/flow/tests/_approver_keys.py
- packages/flow/tests/conftest.py
Expand Down Expand Up @@ -96,7 +97,7 @@ jobs:
name: windows replay (Patient Notes, WindowsBackend)
if: github.event.pull_request.draft != true
runs-on: windows-latest
timeout-minutes: 30
timeout-minutes: 50
env:
EXPECTED_SOURCE_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
defaults:
Expand Down Expand Up @@ -285,6 +286,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 @@ -295,6 +312,11 @@ jobs:
${{ runner.temp }}/native-approval-evidence.frames/*.png
${{ 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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
| 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) |
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.

### Fixes

- `openadapt quickstart` no longer exits 1 on a fresh machine with encryption
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