Skip to content

app: test computer-use parsing on Linux with Swift Testing - #3465

Merged
ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:aiflow/2217-linux-computer-checks
Nov 18, 2026
Merged

ashhart merged 2 commits into
ashhart:mainfrom
AIflow-Labs:aiflow/2217-linux-computer-checks

Conversation

@AIFlowML

@AIFlowML AIFlowML commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

The computer-use key table and request parser can now be tested on Linux without building the Mac-only helper. ComputerUseChecks runs six Swift Testing tests against the same production sources the helper compiles; parser/key/phone-input/reply checks move out of the shipped self-test, while native click, screen, phone-window and OCR checks stay on macOS.

The app workflow runs the package in a pinned Swift 6.2.3 Ubuntu container. The helper's source digest includes the shared sources and excludes the package manifest, tests and build artifacts. The request parser and JSON wire behavior are unchanged; macOS uses real CoreGraphics, while Linux uses Foundation geometry and minimal key-code/event-flag stand-ins.

Checks on this head

Verified 16 November 2026, 16:25 Asia/Bangkok. Base for this PR: e7e24243d63e232b05d4892df4fa01c9a2d6c70b. The published head is unchanged. Its prior full-suite/platform receipts below remain valid; focused tests, types, formatting and preflight were repeated for review. Our 14 contribution branches also pass 36/36 focused test files in a cumulative composition. This is a focused compatibility run, not a full combined-suite result.

Rebased onto main e7e24243d63e232b05d4892df4fa01c9a2d6c70b. The full app suite, Linux Swift tests and mobile verification below were measured on 19e386686d9738c5c45488844e81ffd4d8b81802; the entire app tree (8974eecda6bcbc7e84b60fde437c537bab1c1f5c) is byte-identical at the published head. macOS Swift, builder regression, native helper self-test, desktop typecheck, private-leak scan, workflow lint, format and repository preflight were repeated successfully on the published head.

  • Head commit: 1ce13895031ed2dc9222fc2232e8adc10ed32efa.
  • Lean checker on base/head: 337/337 inherited findings; zero new findings. python3 tools/pr_check.py --base e7e24243d63e232b05d4892df4fa01c9a2d6c70b: zero errors, 0 warnings.
  • Tests run, with the command and pass, fail and skip counts:
    • swift test --package-path app/native/computer-use/ComputerUseChecks: 6/6 pass on macOS with Swift 6.4.2, Linux ARM64 with Swift 6.2.3, and Linux x86_64 with Swift 6.2.3. Linux runs used the pinned CI container; x86_64 was emulated on Apple Silicon. Zero failures/skips in each run.
    • Six isolated planted controls each fail the relevant test: incorrect Return/Enter key code, acceptance of an invalid key, wrong parsed command, acceptance of Boolean coordinates/IDs, inclusive phone screen edge, and missing JSON-line terminator. Restoring the sources returns all 6 tests to passing. Controls do not modify the contribution branch.
    • node node_modules/jiti/lib/jiti-cli.mjs scripts/build-computer-helper.test.mjs: passes. Its shared-source discovery regression failed before the builder change; it also covers cache invalidation and exclusion of test/build artifacts.
    • node scripts/build-computer-helper.mjs --force and the final native rebuild: pass; the real tensorfold-computer --self-test reports 74 checks. The build's packaged-binary private-path scan passes.
    • npm test: 854/855 files pass, 1 fails, none skipped by the runner. The existing sandbox-git-control.test.ts fails git commit still works, also reproduced on unchanged upstream during the earlier contribution. This PR does not change that test or sandbox implementation.
    • npm run typecheck, npm run verify:mobile, node scripts/check-private-leaks.mjs, actionlint .github/workflows/app.yml, zig fmt --check build.zig zig (0.17.0), and git diff --check: pass.
  • CI: Zig format: success; No GPU: success; App and mobile checks: success. All 13 applicable upstream checks passed on this head. The two scheduled nightly jobs were skipped.
  • Not run, and why: packaged Electron installer/end-to-end, real computer input, and Windows Swift tests were not run. No UI/input execution logic changed. Native-engine inference/host benchmarks are outside this app-only change.

Receipt

  • Main against branch: n/a; this extracts app helper checks and adds Linux CI, without reaching inference.
  • Boxes it reaches: computer-use helper source discovery, shared parser/key table/phone-input validation, and app CI.
  • New switch? Default, accepted values, profile row: n/a; no setting or switch.
  • Environment, with the TensorFold commit, Zig and backend toolchain, machine and GPU, checkpoint and revision: base e7e24243d63e232b05d4892df4fa01c9a2d6c70b, head above; Apple M5 Max, 128 GB RAM, macOS 27.2, Xcode 27.2 / Swift 6.4.2; Linux Swift 6.2.3 / Ubuntu 24.04 container pinned in the workflow. Node 22.23.3 and npm 10.9.8. Zig/backend/checkpoint n/a to this helper change.
  • Paths and platforms the change reaches, which I ran and which I could not: Mac helper target arm64-apple-macos13.0 built and self-tested; shared Swift package tested on macOS ARM64 and Linux ARM64/x86_64. Windows not run.
  • Exactness, from tools/bench_concurrent.py --alone --serial or token_sha against "draft": false: n/a; no inference changes.
  • Main against this branch, same machine and checkpoint, posted before asking for a run on our machines (or why you can't): n/a; no model run needed or requested.
  • Decode speed before and after, from tools/bench_openai.py: n/a; no inference changes.
  • Prompt speed before and after: n/a; no prompt-processing changes.
  • Licence of any new weights or drafter, or "n/a": n/a; none added.

Checklist

  • The title and description match the published head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. The builder regression has a red/green result, and all six Swift tests have planted failure controls; Swift is supplied explicitly by CI.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

Igor Lessio - AIFLOW LABS

@AIFlowML
AIFlowML force-pushed the aiflow/2217-linux-computer-checks branch from ce68d85 to 1ce1389 Compare November 16, 2026 04:51
@AIFlowML
AIFlowML marked this pull request as ready for review November 16, 2026 05:00
@ashhart

ashhart commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Thanks @AIFlowML. Moving the key table and request parsing into a small Swift package lets their checks run on Linux, and the new computer-use-linux job runs them in a pinned container without credentials. The helper build still gathers the same sources, and CI is green at 1ce1389503.

Nothing more is needed from you. It's in our landing queue.

  • Synthena

@ashhart
ashhart force-pushed the aiflow/2217-linux-computer-checks branch from 1ce1389 to 531c20b Compare November 18, 2026 17:03
@ashhart
ashhart merged commit 93a9dea into ashhart:main Nov 18, 2026
@ashhart

ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Thank you @AIFlowML. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

joshuaswarren pushed a commit to joshuaswarren/TensorFold that referenced this pull request Nov 19, 2026
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.

Test the computer-use key table and request parser on Linux

2 participants