Skip to content

Verify native provider-key copy without Chromium - #416

Merged
n0rpan merged 5 commits into
mainfrom
test/native-provider-key-copy-split
Dec 3, 2026
Merged

n0rpan merged 5 commits into
mainfrom
test/native-provider-key-copy-split

Conversation

@n0rpan

@n0rpan n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #95. #382 has merged, and this PR now targets main. Exercise the phone’s signed provider-key copy between two disposable OX hosts from Linux native CI. The fixture reviews a selected synthetic key, rejects a stale review after the source changes, and then sends the key to the verified destination over the fixture TLS peer connection. It checks that replies do not reveal the key and that unrelated records remain intact.

The native check ran locally with Chromium, ChromeDriver, Node and npx replaced by commands that fail immediately. The two-host key copy, signed pairing, remote PTY and revocation fixtures passed alongside 210 Rust host tests. The browser CI still has its existing Chromium coverage during the migration.

Reconciled with main at 0e3c9d9effc40542eead0a6604456836ce0efed5, including #405’s pairing restart. The native runner accepts both --previous-host and --key-copy-host. On Linux ARM64 the native lane passed 211 Rust tests and the pairing, PTY, revocation, restart, and two-host key-copy fixtures with browser tools disabled. A separate --previous-host invocation paired on dev.2060 and reconnected on the integrated host.

Both formatting checks, root Clippy, installer shell checks, and desktop Python CI tests passed. The root Cargo suite also passed with a CI-style PATH. On this workstation, exposing the installed agy executable enables the workers MCP server and changes the argument expectations in two launcher tests.

check.sh prepared Chromium before running anything, and both CI callers
gated the whole script on browser-runtime.sh succeeding, so a browser
setup failure also hid the Rust host tests and the signed native client
integration.

check.sh now takes an optional all|native|browser argument. native runs
the Rust host unit tests and native_client.py; browser runs the PWA
JavaScript checks and browser.py. The CLI and host binaries and the
parent harness used by linked_workers.py are prepared in the group that
needs them. No argument keeps the previous combined run and order for
local callers.

ci.yml and desktop.yml run the native step before Chromium preparation,
which now uses !cancelled(), and gate only the browser step on it, so
each group reports its own result.
The PWA key-copy test drives the browser controls. Add a Chromium-free
counterpart that runs the real ox-host on both sides: the native PairedClient
pairs a verified destination, reviews one synthetic credential, rejects a
stale review after the source revision changes, and sends it over the
disposable Tailnet TLS forwarder. The fixture also checks that neither reply
exposes the raw value and that both hosts keep their unrelated credentials.

Run it from the Linux native integration group via check.sh.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T20:52:30.435780Z 2e89693 Draft marked ready
🔒 Security Review ✅ Completed 2026-12-03T20:53:10.878961Z 2e89693 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

#405 adds --previous-host and the restart check at the same native_client.py entry point where this adds --key-copy-host. Please preserve both options and checks when reconciling. Verify the native lane still runs pairing restart and two-host key copy without Chromium before #407 removes the old coverage. The old-to-new restart invocation should also keep working on its own.

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

I tested #416 (9ba583a8) together with #382 (7b8842b1), #405 (3e9a5471), and main (20f8288d) in a disposable checkout. Both branches edit the argument parser and the final calls in native_client.py. I kept both options, ran the restart check unconditionally, and ran two-host key copy when --key-copy-host was supplied.

On Linux ARM64, desktop/ox-host-web/tests/check.sh native passed 211 unit tests, followed by native pairing/PTY/revocation, restart and reconnect, and two-host key copy. Chromium, ChromeDriver, Node, and npx resolved to commands that exit with failure. I also ran native_client.py with --previous-host alone, using the installed dev.2060 host and the integrated host. It paired on the older binary, reconnected on the new binary, and revoked the same device.

This was a local integration test. The published branch still targets #382. I’ll check the landed versions before requesting admission.

Base automatically changed from ci/native-host-check-without-chromium to main December 3, 2026 20:47
@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

/queue 2e89693

@n0rpan

n0rpan commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator Author

In line to merge. Commit 2e89693 is reviewed with nothing blocking; it has entered the merge queue.

@n0rpan

n0rpan commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

Asked for by the maintainer’s queue request, for commit 2e89693.

@n0rpan
n0rpan marked this pull request as draft December 3, 2026 20:51
@n0rpan
n0rpan marked this pull request as ready for review December 3, 2026 20:51
@n0rpan
n0rpan added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit be0a803 Dec 3, 2026
28 of 29 checks passed
@n0rpan
n0rpan deleted the test/native-provider-key-copy-split branch December 3, 2026 22:24

This branch was previously deployed

1 inactive deployment
auto-queue — 2e896939 Deployed Dec 3, 2026 by n0rpan via Queue when green and reviewed #8352
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant