Skip to content

Verify 0.8.0: validation and extract on Mac, local inference for apps inside an inference Mac, persistence guides - #69

Open
anamhira47 wants to merge 2 commits into
mainfrom
capy/verify-080-validation-and
Open

anamhira47 wants to merge 2 commits into
mainfrom
capy/verify-080-validation-and

Conversation

@anamhira47

@anamhira47 anamhira47 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Verify 0.8.0 (TypeScript 0.8.0, Python 0.6.0, Go v0.7.0). This lets a Revyl Mac's own vision model answer checks, so people get free inference through Revyl, and documents persistent computers.

Checks on a Mac's own model

  • validation() and extract() work on a Mac opened with inference: true (Python Target(platform="mac", inference=True), Go Inference: new(true)). They post the computer's /steps and are answered by the Mac's model, usually in 2 to 3 seconds, with engine: 'local'. You pay only Mac minutes.
  • instruction() on computers is still refused. Its message now points to tap({ target }) and type({ target }, text).
  • New readiness and refusals:
    • computer.inference reads ready, unavailable or unknown.
    • step_engine_unavailable gives NOT_AVAILABLE_ON_PLATFORM, and its message names the fix, including for persistent computers.
    • step_engine_busy and screen_control_held give SESSION_BUSY.
    • inference_not_enabled and inference_unavailable on create give NOT_AVAILABLE_ON_PLATFORM with that reason.

Local inference for apps inside an inference Mac, on by default

  • iOS and Web sessions from computer.open() inside an inference Mac send inference: 'local'. Their validations and single-tap instructions run on the Mac's model first, and everything else falls back to the hosted model.
  • inference: false opts a session out. Android with inference: true is refused.
  • computer_local_inference_unavailable now gives NOT_AVAILABLE_ON_PLATFORM in TypeScript instead of SESSION_BUSY "HTTP 409" (a bug found live).

extract() everywhere

  • extract(text) works on every session. StepResult gains value and engine.

Persistent computers

  • New inference option (used at create only) and withoutInference option (sent only when true, because main's schema rejects unknown fields).
  • New savedDiskExpiresAt field.

Docs

  • Three new guides in packages/verify/docs/guides/: Mac model checks, apps inside an inference Mac, and persistent computers and snapshots. The persistence guide has use cases for a dev environment set up once, parallel copies from a snapshot, a browser that stays signed in, and a long-running agent workspace.
  • Updated: computers, API, errors, agents, getting-started, web and mobile pages, llms.txt, the root, Python and Go READMEs, and the CHANGELOG with three (unreleased) sections.
  • Runnable examples: examples/mac-inference, python/examples/mac_inference.py and go/examples/macinference.
  • check-package.mjs now allows docs/guides/*.md.

Tests

  • No new tests. One existing fake-server scenario per SDK was adapted, because a computer now answers validation through /steps. Python's release and wheel tests had their version strings bumped.
  • Results: tsc clean, vitest 280/280, check:package passes. Python: ruff, mypy and pytest 768 pass. Go: gofmt, vet, build and go test -race pass.

Live proof (staging, Revyl Benchmarks)

  • Mac validation and extract ran locally in all three SDKs.
  • On a plain Mac, all three SDKs got the typed refusals.
  • Persistent create, reopen, saveSnapshot and a fromSnapshot copy all worked, and the disk was kept each time.
  • Local vs hosted on one iOS app: 20 validations each, 0 disagreements, 0 local false passes.
  • Three fresh agents were given only the new docs, and each wrote a program that passed live as written:
    • TypeScript: a persistent Mac with inference.
    • Python: an iOS app inside an inference Mac.
    • Go: checks on the Mac's screen.

Not proven

  • inference_not_enabled, because the test org is allowlisted.
  • withoutInference and step_engine_busy.
  • Web children with local inference, and Android extract.

Publishing (npm, PyPI, the Go tag) is a separate maintainer step. The docs.revyl.com update is a separate draft PR, to merge after release.

Open in Capy


Note

Medium Risk
Adds cross-SDK session routing, billing semantics (local vs hosted), and new refusal paths on Mac create and computer steps; mistakes could start wrong workloads or mis-handle concurrent steps on a shared Mac model.

Overview
Verify 0.8.0 (Go v0.7.0, Python 0.6.0) adds Mac-local vision checks, screen value extraction, and local-first steps for app sessions hosted inside an inference Mac, plus persistent-computer and billing-related options—backed by new guides, examples, and broad doc/README updates.

Mac inference: open({ platform: 'mac', inference: true }) creates Macs that run validation() and extract() via the computer /steps API on the Mac's model (engine: 'local'), with session.inference readiness and typed errors (inference_not_enabled, step_engine_unavailable, step_engine_busy, etc.). instruction() on computers remains blocked with clearer alternatives.

Apps inside an inference Mac: iOS and Web children from computer.open() default to inference: 'local'—validations and single-tap instructions try the Mac model first, then fall back to the hosted model; inference: false opts out; computer_local_inference_unavailable maps to NOT_AVAILABLE_ON_PLATFORM.

extract() everywhere: New step type returns StepResult.value and optional engine; rejected when using your own model on browser/device sessions.

Persistent computers: inference at create time, one-shot withoutInference, and savedDiskExpiresAt on list types.

Examples bumped to @revyl/verify 0.8.0; new examples/mac-inference (and Go/Python counterparts).

Reviewed by Cursor Bugbot for commit bce80c5. Bugbot is set up for automated code reviews on this repo. Configure here.

… inside it, persistence guides

TypeScript 0.8.0, Python 0.6.0 and Go v0.7.0.

- validation() and extract() run on a Mac opened with inference, on the Mac's own vision model; instruction() stays refused with a tap/type pointer.
- iOS and Web sessions inside an inference Mac run their steps on that model first by default, with inference false to opt out.
- extract() on every session, StepResult value and engine.
- openPersistent inference / withoutInference, savedDiskExpiresAt.
- Guides for Mac model checks, apps inside an inference Mac and persistent computers, runnable examples in all three languages.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot marked this pull request as ready for review November 26, 2026 08:20

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found 1 potential issue (1 medium).

View 1 other finding in Capy.

Open in Capy

…p the adapted computer test minimal

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

This branch has not been deployed

No deployments
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