Hey Anna app developers! ![]()
Last cycle was about trust, control, and headroom. This one is about less friction and more honesty ![]()
— 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%. ![]()
Huge thanks to the developers who shaped this cycle — and this one is very much a @HappyLight cycle
: #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
), #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
), and #539 (the “App Session resolves to an empty tool set in the harness” report that caught a beta.213 regression within hours
). Also thanks to @lightvoss for co-reporting #538 with the staging timeline. Every detailed write-up moves the platform. ![]()
Let’s dive in! ![]()
New Features
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:
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.
Method-level declarations deleted — manifest.permissions,host_capabilities, the whole per-methodui.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.
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. ![]()
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.invokepath and the chat-agent path (the chat path previously never received amedia_token— fixed as a side effect).
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.
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.
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"
}
}
Install-time precheck: an unmet requirement fails the install with reason_code: "runtime_missing"and amissing_runtimesmap ({"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.
Discovery contract: your process sees ANNA_NODE_EXECUTABLE/ANNA_NODE_VERSIONandANNA_CHROME_EXECUTABLE/ANNA_CHROME_VERSION(presence-based: absent = not available). Entry points become a tiny shell/.cmdshim thatexecs$ANNA_NODE_EXECUTABLE dist/main.js; usepuppeteer-core+executablePathfor Chrome.
Public version matrix: GET /api/v1/platform/runtimes(no auth, cacheable) lists cloud-linux / desktop-macos / desktop-windowscurrent/next+ the version policy. Today: Cloud Agent1.1.0-beta.49→ Chrome145.0.7632.6, Node22.14.0. Chrome major bumps are announced ≥ 2 weeks ahead; Node stays on 22 LTS.
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.

tools.invoke / invokeAsync: fail fast, tell the truth (beta.212 + beta.217, #500 / #535)
The “90 s timeout, then nothing” era is over:
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_invokeis sent (the command never arrived; cancelling would only hurt sibling calls).
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 withlastSeq=0” ghost is gone. Jobs stuckqueuedwith an offline Agent fail asagent_lostafter 11 min.
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 outno_acksemantics precisely: very likely not delivered, but not guaranteed not executed — for side-effecting operations, query first or make them idempotent.
Correlation IDs in every error: tool_timeoutdetails carryinvoke_id/client_id/reason: host_timeout/host_timeout_s;executa_unavailable/invalid_arg/tool_failed/subcall_timeoutechoinvoke_id/command_id. Paste theinvoke_idinto a bug report and we can find your request in seconds.
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. ![]()
Faster App opens (beta.215)
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.
Real-time download speed in the window overlay (speedMBps/speedKBps) instead of a bare percentage.
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.
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.
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. ![]()
Bug Fixes
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, sofs_*/exec_*/browser_*were all filtered out. Dev sessions are back to(server_side ∪ host_kit) ∩ dev_safe ∩ requested; production staysrequested ∩ (server_side ∪ (host_kit ∩ manifest ui.host_api.agent.tools)). Regression test added.
Staging: invokeAsyncfailed 100% withtool_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 (nosuccesskey →tool_failed14 ms after dispatch; the real success 2 s later was discarded as “late”). Acks are now recognized and skipped; messages withoutsuccessnever enter the state machine; conflicting late results are logged as warnings. Caught on staging, never reached production.
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.
Staging: intermittent no_ack/ async jobsexpired(beta.217, #535) — the ghost-connection queue-group split described above.
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 deployingwithmissing; and read-side resolution fell back to the first online Agent when the default was offline. Both fixed by the single-source redesign.
New users: first App open stuck on “Almost there…”, Retry did nothing, close-and-reopen worked (beta.211) — wake-statusnow reports liveagent_online,wakereturnsonlinesynchronously 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.
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.
Reconnect storms triggered list_pluginstimeouts 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.
Developer Center App list left a broken image when logo_url404’d (beta.214) — falls back to the initial-letter logo.
scripts/export_platform_runtimes.pywas blocked by Cloudflare’s default-UA rule (beta.220) — the docs’ version matrix regenerates again.
@anna-ai/cli 0.1.64 — update now!
npm i -g @anna-ai/cli@latest
# or
pnpm add -g @anna-ai/cli@latest
Schema 4 everywhere — validate/dev/publishrun a new layer-0 legacy normalization (normalizeLegacyManifest, a TS mirror ofanna_app_core), so schema 1–3 manifests keep working; deprecated keys (permissions,host_capabilities, per-methodui.host_apinamespaces,agent.session,storage.kv|files) now produce warnings, not errors.--strictno longer scanshost_apimethod calls; it instead warns when a literalallowed_toolsentry isn’t declared inui.host_api.agent.tools(#357 / #539 — exactly the production rule). The scaffold template is schema 4 with nohost_apiblock.apps grantssubcommand removed.
Test runtime (@anna-ai/cli/test) — no more derived method allow-lists; it now checks capability declarations:tools.invokeagainstrequired_executas / optional_executas, non-self storage scopes againststorage.scopes(read vs write),credentials.*againstui.host_api.credentials. New exportsisStorageScopeAllowed/isCredentialProviderAllowed.
Dev harness parity — storage gating is now production-equivalent storage.scopesscoping (selfappalways allowed;user/tool/ cross-owner need a declaration; rejections arepermission_denied), tokens always minted;agent.session.cataloganswersserver_side ∪ (host_kit ∩ ui.host_api.agent.tools). Dev-app cache bumped to v4 (old entries re-register automatically).
executa dev/executa publish—--no-agent/--no-image/--no-uploadremoved (there’s no “user didn’t grant” to simulate anymore): mock fixture ⇒ mock, PAT + app slug ⇒ real, otherwise the handler is unavailable.--storage realdefault scopes =tool+ declareduser.executa.jsonruntime.requiresis validated (same range subset as nexus / matrix; skills can’t declare it) and uploaded on create and re-sync.
doctor→ “Platform runtimes” — prints the Chrome / Node matrix per channel from the public API and any announcednext; degrades gracefully offline.
apps push/sync-meta:logo_urlcan now be cleared with""/null(omit = don’t touch) — fixes the un-removable placeholder logo.
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-local0.2.0a33. Verified against beta.220.
Compatibility Notes
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 validateyou’ll see warnings for keys you can delete.
Strict schema 4: once you set "schema": 4, any removed key (permissions,host_capabilities, per-methodui.host_api.*,agent.session,storage.kv/files) is a 400 at publish. Let the CLI warnings guide the cleanup.
Host-kit tools need a manifest declaration in production. fs_*/exec_*/browser_*in an App Session are available only if listed inui.host_api.agent.tools; server-side tools (doc_read,web_search, …) need nothing. The harness is permissive (dev_safe), so trust the CLI’sallowed_toolswarning rather than “it worked locally”.
Executa storage scopes changed: plugin storage_token.allowed_scopesmoved from the constant(user, tool)totool ∪ declared scopes. If your Executa reads/writes theuserscope, declarestorage.scopes.user(legacyaps.scope.user.*is normalized for you). Already-published inbox/ppt-style Executas that declared it are unaffected.
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.catalogno longer returnsuser_granted/inherit_host_tools_granted.
Error codes unchanged, meanings narrowed: APP_NOT_GRANTED/*_NOT_GRANTEDnow mean only not installed / disabled by user / no subscription. Iframepermission_deniedmeans an undeclared credentials provider or storage scope.
Expect faster failures: executa_unavailable { reason: "no_ack" }in ≈ 5 s (retriable) and asyncfailed(agent_unavailable)in seconds instead ofexpiredat 90 s. Treatno_ackas “almost certainly not delivered, not provably not executed” — make side-effecting tools idempotent or query before retrying.error.details.invoke_idis your bug-report currency.
runtime.requiresis opt-in and additive: no block = no precheck; Agents predating the contract ignore it. Compare Chrome majors only; never pin an exact build.
CLI flags removed: executa dev --no-agent / --no-image / --no-uploadandanna-app apps grants. Scripts referencing them need a small edit.
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. ![]()
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! ![]()
Happy building! ![]()
![]()