How our rule-based agent works — and whether it can replace a VLM everywhere.
ComputaCo's rule-based agent (compiled-operation) compiles UI behavior into a deterministic WebAssembly energy matcher that runs on a CPU in ~1 ms at $0 per step. Below is how the engine actually works, followed by an honest, benchmark-grounded answer to whether it can be used in any setting where a general VLM can be used.
The direct answer: Not in every setting today.
On structured applications, our standalone rule-based agent decisively beats frontier VLMs — 1,000× faster, $0/step, deterministic replay, and a hard floor of 0 wrong acts and 0 false successes. Across arbitrary open-world settings, however, a pure rule engine hits three concrete walls: reading unseen UIs from raw pixels (our #1 bottleneck today), open-ended language / Q&A / synthesis, and unmodeled custom widgets where it intentionally abstains rather than guessing.
cw_matcher.wasm on CPU
sight-text) · 0 wrong
1. How the rule-based agent works
Rather than brittle selector-based RPA scripts or one monolithic prompt, the compiled operator is built around three decoupled seams (Scene, Goal, Decision) plus a post-action Screen Witness. No seam knows which producer stands behind another, so each can be swapped, trained, and benchmarked independently.
Canonical UX Graph
Rules never read raw pixels or private DOM selectors directly. They consume a canonical UxGraph (controls, roles, spatial regions, 64-dim label embeddings). On simulated or accessibility-enabled OSs, the tree gives exact structure; on raw screenshots, cw-sight reconstructs the graph on CPU.
CPU Goal Reader
A compact sentence encoder (goal-model-sentence.bin) maps natural phrasing in English, Spanish, German, or Japanese into structured {concept, bind, requirements} tuples at $0 cost — resolving names, rows, and text spans against the current screen graph.
Abstention + Screen Witness
Every rule predicts what should change after clicking or typing. After each step, settle compares prediction against the live screen. Before emitting done, witness re-reads the screen on a fresh frame and requires proof inside the target app's window — eliminating false successes.
The 5-level specificity lattice (842 promoted rules)
When a specific rule does not match — because a button was renamed, a toolbar was reversed, or the app itself has never been seen before — the matcher steps down the lattice from specific to universal, abstaining if no level clears the margin.
Exact app + theme rule derived and proved against the deterministic simulator.
804 rules · 15 appsTheme-invariant patterns within one app (survives macOS/Windows/iOS/Android shifts).
cross-themeShared behavior across sibling app classes (e.g., Mail & Messages; Docs & Notes).
cross-familyAbstract goals (compose_and_send, save, archive, open) over observable facts only.
Universal control affordances (focus field, type text, confirm dialog, dismiss modal).
app-agnostic2. Can it be used in any setting a general VLM can be used?
This table evaluates the standalone rule-based agent (no frontier VLM crutch) across eight computer-use settings using real scores from our evaluation ledger (seams/headline.md and offline-operator-handoff-2026-11-27.md).
| Setting | Standalone Parity | Measured Evidence | Honest Assessment vs. a General VLM |
|---|---|---|---|
| 1. Declared / Simulated Apps (Tree or DOM) | Beats VLM | 540 / 540 completed 0 wrong · 0 model calls 57 / 60 renamed & perturbed |
Strictly superior to a VLM. ~1 ms per step on CPU, $0 inference cost, and survives renamed/translated labels, reversed toolbars, and extra list rows without hallucinating clicks. |
| 2. Real OS Apps with Accessibility Trees | Partial | stage-see-dev (tree): 651 / 668 completable S3 ground: 597 / 864 @ 0 wrong |
Strong on standard Linux (AT-SPI), macOS (AX), and Windows (UIA) apps that expose real semantic controls. Breaks down on apps with poor or canvas-only accessibility trees (Electron overlays, custom WebGL). |
| 3. Real Unseen Apps from Raw Pixels Only | Not Yet | real-pixels-dev: 271 / 759 (sight-text) 43 / 759 (shipped pixels) ScreenSpot-v2: 20.9–39.2% |
Primary bottleneck. Reading the scene from raw pixels loses ~2/3 of tasks before rules even run (missing icon glyphs, OCR clipping, unlabeled thumbnails). Frontier VLMs still far outperform CPU pixel sight on arbitrary screenshots. |
| 4. Unseen Apps & Arbitrary Websites | Partial | unknown-app-dev: 27 / 30 structured 15 / 30 scrubbed/withheld 0 / 96 free-form · 27 / 288 MiniWoB |
Our 38 cross-app abstract rules generalize cleanly to unseen apps when goals are structured and UI controls follow standard patterns. On idiosyncratic web widgets or free-form prompts, the operator abstains heavily instead of acting. |
| 5. Open-Ended Language, Q&A & Content Synthesis | Structural Limit | language-goals-v2-dev: 75 symbolic vs. 199 hybrid 194 LM-only |
Cannot replace a VLM here. A rule lattice maps goals to UI actions; it cannot summarize a PDF, draft an original email from scratch, reason about a financial chart, debug novel code, or answer open-ended visual Q&A. |
| 6. Canvas Apps, Games & Visual World Knowledge | Structural Limit | No semantic tree; requires open-world visual priors |
Tasks like Figma layout critiques, interpreting photographs or memes, solving visual puzzles, or navigating novel multi-site e-commerce flows require world knowledge that compiled UI rules do not encode. |
| 7. Audited & High-Stakes Production Workflows | Beats VLM | 0 wrong acts floor 0 false successes 0 bytes sent off-device |
Where a wrong click costs money or leaks data, abstaining beats guessing. Every action is auditable to a named rule, executes locally on CPU with zero egress, and is verified by a screen witness. |
| 8. Massive Multi-Agent Simulations & Eval Sweeps | Beats VLM | >1,000× faster & cheaper Byte-exact determinism |
Running hundreds or thousands of concurrent simulated users/operators in ComputerWorld is economically impossible with frontier VLMs per frame, but trivial with millisecond CPU rules. |
3. Why the gap exists — and how we are closing it
The one-line diagnosis from our benchmarks is: seeing and open language are the bottlenecks — grounding and acting already work once the scene and goal are right. Rather than abandoning local speed for cloud VLMs, ComputaCo is closing each gap at its own seam:
Structure-invariant pixel sight + icon detector
- CPU ONNX Icon Detector (
icon.onnx): Mining universal UI icon classes at native aspect ratios with spatial icon-to-text geometric binding to fix the missing-glyph wall incw-sight. - Compact GPU Pointing Backstop:
Holo3.1-0.8Bpaired with an abstention probe already lands 739 / 1,061 real-screen clicks in ~1 s locally on GPU. - State-prediction verification: Real-screen state classifiers (dialog open
0.942, field focused0.886, list rows0.795) verify effects without needing an OS tree.
Broad language goals + learned world dynamics
- Broad Language S2: Expanding the goal seam beyond fixed
{concept, bind}tuples to cover imperative tasks, screen-grounded Q&A, drafting, and clarification routing. - Unseen-App Energy Models: Distilling compact state-transition models that predict next-state outcomes on unseen apps (
state-predict-dev) alongside symbolic verification. - One Honest Contract: Every candidate model is held to the exact same
0 wrong acts / 0 false successesfloor and renamed-label invariance test before promotion.
compiled-loop.ts), the Rule-Based Agent's abstention seam is configurable: you can run it strictly Zero-Model (0 LLM calls, asks the user when unsure), add a tiny Decision Chooser (Jev 1.14 or Clef) only when ≥2 rules tie, or optionally allow a single-step handoff to a general VLM on 0-rule screens — returning control to CPU rules on the very next frame.