🎉 Anna 1.1.0-beta.211 → beta.220 / @anna-ai/cli 0.1.64: permission gates are gone (manifest schema 4), shared Node 22 + Chrome runtime for Executas, async invoke reliability overhaul, faster App opens, harness tools fixed

Hey Anna app developers! :waving_hand:

Last cycle was about trust, control, and headroom. This one is about less friction and more honesty :broom::high_voltage: — the entire user-facing permission system is gone (no more “ wants to use…” gate on first launch; install = ready), Node Executas no longer need to ship 300 MiB of Node/Chromium thanks to a shared platform runtime you simply declare, tools.invoke / invokeAsync now fail fast with truthful states instead of hanging 90 s and silently losing commands, App opens got a CDN warm-up + real-time download speed, and the “deploying” state finally has a single source of truth so your App icon stops flip-flopping between ready / Needs repair. We also squashed a regression that broke host-kit tools in the local harness and a staging-only bug that made invokeAsync fail 100%. :tada:

Huge thanks to the developers who shaped this cycle — and this one is very much a @HappyLight cycle :trophy:: #490 (the “please give us a shared Node.js + Chrome on the Cloud Agent” proposal, with the PPT app’s 316 MiB archive as exhibit A — it became a whole new platform contract :package:), #500 / #535 / #538 (three forensic-grade reports on recurring 90 s timeouts, no_ack, and async jobs dying as agent returned failure — complete with a diagnostic probe App and NATS-level traces that led us to ghost connections and an ack-protocol bug :microscope:), and #539 (the “App Session resolves to an empty tool set in the harness” report that caught a beta.213 regression within hours :hammer_and_wrench:). Also thanks to @lightvoss for co-reporting #538 with the staging timeline. Every detailed write-up moves the platform. :purple_heart:

Let’s dive in! :rocket:


:sparkles: New Features

:unlocked: The permission system is gone — manifest schema 4 (beta.213, @anna-ai/app-schema 0.33.0, anna-app-core 0.28.0)

Users told us loud and clear: the first-launch “ wants to use … [sensitive]” gate was incomprehensible and nobody wanted to click it. So we removed it — along with every layer behind it:

  • :cross_mark: User grant layer deleted — no launch permission gate, no permission editor in Installed Apps, no Executa Hub capability dialog, no grant-all. The only user-side switches are now enable / disable and uninstall.
  • :cross_mark: Method-level declarations deleted — manifest.permissions, host_capabilities, the whole per-method ui.host_api.{tools,chat,artifact,llm,fs,storage,prefs,window,files,image,video,music,audio,upload,apps,web,mobile} ACL, agent.session, storage.kv/files. An installed, enabled App can call every platform service (anna.image.edit, llm.*, audio.*, window.*, …) — no declaration, no grant.
  • :white_check_mark: What stays is only what has a second party on the other side — three declarations + browser features:
{
  "schema": 4,
  "required_executas": [{ "tool_id": "inbox-executa" }],
  "storage": { "scopes": { "user": "rw" } },          // optional: cross-App data
  "ui": {
    "bundle": { "format": "static-spa", "entry": "index.html" },
    "views": [ /* … */ ],
    "host_api": {
      "credentials": ["google"],                     // optional: third-party accounts
      "agent": { "tools": ["fs_read_file", "exec_run"] }   // optional: host-kit tools on the user's machine
    },
    "browser_permissions": ["microphone"]            // optional: browser features (from beta.202)
  }
}

For most Apps the entire host_api block simply disappears. :balloon:

  • :coin: Executa tokens are minted unconditionally — every installed, enabled Executa gets sampling / storage / image / media / upload (+ credentials) tokens on every invoke, on both the App tools.invoke path and the chat-agent path (the chat path previously never received a media_token — fixed as a side effect).
  • :label: Store and review pages now show a three-item plain-language capability summary (connected accounts / cross-App data / local machine access) instead of a derived permissions list; AnnaAppDetail.permissions → capabilities.
  • :repeat_button: Schema 1–3 manifests keep working untouched — they’re normalized on ingest by one idempotent function (normalize_legacy_manifest); nothing needs to be re-cut.

:package: Shared platform runtime for Executas — Node 22 + Chrome for Testing (beta.214, #490)

@HappyLight’s PPT engine shipped 316 MiB compressed / 850 MiB unpacked because it bundled Node + Chromium. Now the Agent provides both, and you just declare what you need in executa.json:

{
  "slug": "ppt-engine",
  "executa_type": "tool",
  "runtime": {
    "requires": {
      "node":   ">=22 <23",   // semver range; omit = no requirement
      "chrome": ">=140"       // chrome compares the MAJOR only
    },
    "fallback": "fail"        // "fail" (default) | "bundled"
  }
}
  • :magnifying_glass_tilted_left: Install-time precheck: an unmet requirement fails the install with reason_code: "runtime_missing" and a missing_runtimes map ({"node": "required >=22 <23, found none"}) — no more crashing at invoke time. fallback: "bundled" turns it into a warning if you still ship your own runtime.
  • :compass: Discovery contract: your process sees ANNA_NODE_EXECUTABLE / ANNA_NODE_VERSION and ANNA_CHROME_EXECUTABLE / ANNA_CHROME_VERSION (presence-based: absent = not available). Entry points become a tiny shell/.cmd shim that execs $ANNA_NODE_EXECUTABLE dist/main.js; use puppeteer-core + executablePath for Chrome.
  • :globe_with_meridians: Public version matrix: GET /api/v1/platform/runtimes (no auth, cacheable) lists cloud-linux / desktop-macos / desktop-windows current / next + the version policy. Today: Cloud Agent 1.1.0-beta.49 → Chrome 145.0.7632.6, Node 22.14.0. Chrome major bumps are announced ≥ 2 weeks ahead; Node stays on 22 LTS.
  • :desktop_computer: Agent Console INIT STATUS shows a new Platform runtime row (Chrome / Node badges), with a one-click shared-Node install for desktop Agents that don’t have it yet.
  • Result for the PPT app: 316 MiB → ~116 MiB (−63%). On the Cloud Agent free tier’s 3 GB volume, that matters. :bullseye:

:high_voltage: tools.invoke / invokeAsync: fail fast, tell the truth (beta.212 + beta.217, #500 / #535)

The “90 s timeout, then nothing” era is over:

  • :ping_pong: Command ack: for Agents ≥ 1.1.0-beta.47, nexus asks the Agent to acknowledge receipt. No ack and no result within 5 s → immediate executa_unavailable { reason: "no_ack", retriable: true, invoke_id, client_id } instead of a 90 s wait, and no _cancel_invoke is sent (the command never arrived; cancelling would only hurt sibling calls).
  • :open_mailbox_with_raised_flag: Async jobs now use the same ack: an undelivered dispatch lands the job in failed(agent_unavailable) within seconds with the message “NOT dispatched / safe to resubmit” — the job row is the single source of truth. The “expired after 90 s with lastSeq=0” ghost is gone. Jobs stuck queued with an offline Agent fail as agent_lost after 11 min.
  • :detective: Late-result watch: after a no_ack, nexus keeps listening for 30 s; a late result is evidence the command did execute and is counted (result_after_no_ack). Docs now spell out no_ack semantics precisely: very likely not delivered, but not guaranteed not executed — for side-effecting operations, query first or make them idempotent.
  • :id_button: Correlation IDs in every error: tool_timeout details carry invoke_id / client_id / reason: host_timeout / host_timeout_s; executa_unavailable / invalid_arg / tool_failed / subcall_timeout echo invoke_id / command_id. Paste the invoke_id into a bug report and we can find your request in seconds. :magnifying_glass_tilted_right:

:satellite: Cloud Agent reliability — ghost connections root-caused (beta.212 + beta.217, #500 / #535)

Under the hood, with matrix 1.1.0-beta.49: Agent command subscriptions no longer use a NATS queue group (a lingering “ghost” connection after reconnect used to silently swallow ~50% of commands), server-side ping tightened from a 4–8 min stale detection to ≤ 60 s, each NATS connection is named by client_id, dual-instance detection, and the drift self-healer no longer restarts a machine that is mid-request (heartbeat / cooldown / ping gates). New Cloud Agents default to region sin (same city as our NATS) to kill the UTC 13–20 cross-ocean jitter. Plus a new Admin “Cloud Agent health” page with a 7d×24h heatmap and disconnect forensics so we see problems before you do. :chart_increasing:

:rocket: Faster App opens (beta.215)

  • :globe_showing_europe_africa: CDN edge pre-warm: executa binaries are fetched once at the edge right after mirroring / upload, so the first user download hits a warm cache.
  • :racing_car: Real-time download speed in the window overlay (speedMBps / speedKBps) instead of a bare percentage.
  • :fire: Prewarm deploy: as soon as a Cloud Agent wake is confirmed, executa reconciliation starts immediately instead of waiting for the presence tick — cold downloads overlap with the user’s open action.
  • :bar_chart: End-to-end open-trace telemetry (wake / tools segments, download throughput, CDN cache status) now feeds an Admin “App open flow” page — we’ll use it to keep shaving seconds.

:green_circle: One truth for “deploying” (beta.216)

agent_executa_deployments now only stores observed facts (deployed / missing / failed); deploying is derived from active deploy jobs, never written. The Dashboard icon, /apps/installed badge, App detail, tools.list and window probes all read the same snapshot — the “icon is clickable but App is unusable / Needs repair / random download bar” trio of contradictions is gone by construction, along with the 90 s indeterminate TTL and orphan-reverting compensation code. Executas already present on the Agent are recorded deployed instantly, so fresh installs read ready everywhere right away. :white_check_mark:


:bug: Bug Fixes

  • :hammer_and_wrench: Harness: App Session tools resolved to an empty set / host-kit tools unusable in anna-app dev (beta.220, #539) — the beta.213 rewrite intersected the tool set with the manifest declaration, but the dev harness (PAT) has no manifest sync channel, so fs_* / exec_* / browser_* were all filtered out. Dev sessions are back to (server_side ∪ host_kit) ∩ dev_safe ∩ requested; production stays requested ∩ (server_side ∪ (host_kit ∩ manifest ui.host_api.agent.tools)). Regression test added.
  • :collision: Staging: invokeAsync failed 100% with tool_failed / agent returned failure (beta.219, #538) — the new ack receipt ({"ack": true, "stage": "received"}) shared a subject with the job result and the worker parsed it as a result envelope (no success key → tool_failed 14 ms after dispatch; the real success 2 s later was discarded as “late”). Acks are now recognized and skipped; messages without success never enter the state machine; conflicting late results are logged as warnings. Caught on staging, never reached production. :shield:
  • :fire_extinguisher: Staging ran on a single web worker since beta.216 + nested-connection self-lock under ≥ 15 concurrent tools.invoke (beta.219, #538) — uvicorn’s 5 s worker health check was killing a slot whose import took ~10 s on Render (silently, every 5.5 s), halving pool capacity; and the invoke hot path borrowed a second DB connection while holding one. Fixed via a 60 s health-check timeout + bytecode precompile in the image, and session reuse on the hot path with a guard test. Collective 500s under load are gone.
  • :ghost: Staging: intermittent no_ack / async jobs expired (beta.217, #535) — the ghost-connection queue-group split described above.
  • :adhesive_bandage: Installed App stuck on “Needs repair” / grey deploying icon; dual-Agent users saw another Agent’s empty facts (beta.216) — the reconciler was overwriting a just-scheduled deploying with missing; and read-side resolution fell back to the first online Agent when the default was offline. Both fixed by the single-source redesign.
  • :hourglass_not_done: New users: first App open stuck on “Almost there…”, Retry did nothing, close-and-reopen worked (beta.211) — wake-status now reports live agent_online, wake returns online synchronously when the Agent is already up, wake-lock holders publish results consistently, and the window watchdog re-checks every 10 s and trusts online presence. Plus a cold-boot grace so a freshly (re)started Cloud Agent isn’t restarted again mid-boot.
  • :counterclockwise_arrows_button: Cloud Agent drift self-heal restarted 28 machines that were busy serving users (beta.212, #500) — three gates (recent heartbeat / cooldown / ping alive) now stand between a presence blip and a restart.
  • :ocean: Reconnect storms triggered list_plugins timeouts and 18 spurious install tasks (beta.212, #500) — flapping Agents now wait for a stable-online window, T1 failures back off independently, and a half-scanned plugin list skips install scheduling. User-driven paths (window probe, invoke miss, preinstall) are untouched.
  • :framed_picture: Developer Center App list left a broken image when logo_url 404’d (beta.214) — falls back to the initial-letter logo.
  • :satellite_antenna: scripts/export_platform_runtimes.py was blocked by Cloudflare’s default-UA rule (beta.220) — the docs’ version matrix regenerates again.

:toolbox: @anna-ai/cli 0.1.64 — update now!

npm i -g @anna-ai/cli@latest
# or
pnpm add -g @anna-ai/cli@latest
  • :unlocked: Schema 4 everywhere — validate / dev / publish run a new layer-0 legacy normalization (normalizeLegacyManifest, a TS mirror of anna_app_core), so schema 1–3 manifests keep working; deprecated keys (permissions, host_capabilities, per-method ui.host_api namespaces, agent.session, storage.kv|files) now produce warnings, not errors. --strict no longer scans host_api method calls; it instead warns when a literal allowed_tools entry isn’t declared in ui.host_api.agent.tools (#357 / #539 — exactly the production rule). The scaffold template is schema 4 with no host_api block. apps grants subcommand removed.
  • :test_tube: Test runtime (@anna-ai/cli/test) — no more derived method allow-lists; it now checks capability declarations: tools.invoke against required_executas / optional_executas, non-self storage scopes against storage.scopes (read vs write), credentials.* against ui.host_api.credentials. New exports isStorageScopeAllowed / isCredentialProviderAllowed.
  • :house: Dev harness parity — storage gating is now production-equivalent storage.scopes scoping (self app always allowed; user / tool / cross-owner need a declaration; rejections are permission_denied), tokens always minted; agent.session.catalog answers server_side ∪ (host_kit ∩ ui.host_api.agent.tools). Dev-app cache bumped to v4 (old entries re-register automatically).
  • :wrench: executa dev / executa publish — --no-agent / --no-image / --no-upload removed (there’s no “user didn’t grant” to simulate anymore): mock fixture ⇒ mock, PAT + app slug ⇒ real, otherwise the handler is unavailable. --storage real default scopes = tool + declared user. executa.json runtime.requires is validated (same range subset as nexus / matrix; skills can’t declare it) and uploaded on create and re-sync.
  • :stethoscope: doctor → “Platform runtimes” — prints the Chrome / Node matrix per channel from the public API and any announced next; degrades gracefully offline.
  • :framed_picture: apps push / sync-meta: logo_url can now be cleared with "" / null (omit = don’t touch) — fixes the un-removable placeholder logo.
  • :pushpin: Pins @anna-ai/app-schema ^0.33.0 (schema.maximum = 4, the in-memory 3→4 shim is gone), @anna-ai/app-runtime ^0.27.0 (unchanged), runtime-local 0.2.0a33. Verified against beta.220.

:puzzle_piece: Compatibility Notes

  • :green_circle: Existing Apps keep working with zero changes. Schema ≤ 3 manifests are normalized on ingest; dropped declarations don’t reduce capability (install = everything). Next time you run anna-app validate you’ll see warnings for keys you can delete.
  • :yellow_circle: Strict schema 4: once you set "schema": 4, any removed key (permissions, host_capabilities, per-method ui.host_api.*, agent.session, storage.kv/files) is a 400 at publish. Let the CLI warnings guide the cleanup.
  • :yellow_circle: Host-kit tools need a manifest declaration in production. fs_* / exec_* / browser_* in an App Session are available only if listed in ui.host_api.agent.tools; server-side tools (doc_read, web_search, …) need nothing. The harness is permissive (dev_safe), so trust the CLI’s allowed_tools warning rather than “it worked locally”.
  • :yellow_circle: Executa storage scopes changed: plugin storage_token.allowed_scopes moved from the constant (user, tool) to tool ∪ declared scopes. If your Executa reads/writes the user scope, declare storage.scopes.user (legacy aps.scope.user.* is normalized for you). Already-published inbox/ppt-style Executas that declared it are unaffected.
  • :yellow_circle: Removed endpoints / fields (404 / absent): GET|PATCH /apps/{id}/grants, GET /apps/{id}/permissions, POST /apps/{id}/permissions/grant-all; AnnaAppDetail.permissions → capabilities; WindowDetail.mobile_grants; agent.session.catalog no longer returns user_granted / inherit_host_tools_granted.
  • :yellow_circle: Error codes unchanged, meanings narrowed: APP_NOT_GRANTED / *_NOT_GRANTED now mean only not installed / disabled by user / no subscription. Iframe permission_denied means an undeclared credentials provider or storage scope.
  • :yellow_circle: Expect faster failures: executa_unavailable { reason: "no_ack" } in ≈ 5 s (retriable) and async failed(agent_unavailable) in seconds instead of expired at 90 s. Treat no_ack as “almost certainly not delivered, not provably not executed” — make side-effecting tools idempotent or query before retrying. error.details.invoke_id is your bug-report currency.
  • :green_circle: runtime.requires is opt-in and additive: no block = no precheck; Agents predating the contract ignore it. Compare Chrome majors only; never pin an exact build.
  • :yellow_circle: CLI flags removed: executa dev --no-agent / --no-image / --no-upload and anna-app apps grants. Scripts referencing them need a small edit.

:open_mailbox_with_raised_flag: Feedback Welcome!

Dropping 200 MiB from your Executa archive, deleting your whole host_api block, or watching invokeAsync fail in 2 s instead of 90? We’d love to hear about it — and what’s still missing. On the radar: custom tools registered at session creation (your #539 proposal, @HappyLight — tool name + schema + handler, host-managed loop, no separate Executa), an SDK-level fullscreen toggle, and desktop runtime matrix entries once the macOS / Windows pipelines report in. :satellite_antenna:

Once again, community-powered: one developer’s bundle-size proposal became a platform runtime contract, three forensic reports rewrote our NATS delivery guarantees, and a same-day harness report caught a regression before most of you ever saw it. Detailed reproductions and real use cases are the fastest route from “request” to “shipped” — keep them coming! :flexed_biceps:

Happy building! :purple_heart::sparkles: