🚀 Anna 1.1.0-beta.221 → beta.228: near-instant Cloud Agents (prebuilt machine pool), real-time app loading states, a security hardening sprint & wake-reliability fixes

Hey Anna app developers and platform users! :waving_hand:

Last cycle was about trust, control, and headroom. This one is about speed and reliability where you feel it most :high_voltage::shield: — your Cloud Agent now comes from a prebuilt machine pool (new-user first touch drops from ~47 s to ~12 s today, on its way to ~2 s), App windows finally tell you the truth about what your Agent is doing (“Waking your agent…” instead of a 48-second blank mask), agents that slept for hours wake up reliably again, and we ran a full security hardening sprint across login, redirects, and 140 dependency alerts. :tada:

A big shout-out to the developers who shaped this cycle: @HappyLight (#495 — the long-lived public links & static hosting request for generated HTML is now a drafted design doc on our roadmap :link:), and everyone who reported stuck “deploying” icons and slow first-open experiences — your traces drove the biggest rework in this batch. Every detailed write-up moves the platform. :purple_heart:

Let’s dive in! :rocket:


:sparkles: New Features

:racing_car: Prebuilt Cloud Agent machine pool — your agent is ready before you are (beta.223 / 224)

Until now, a brand-new user’s first App open had to wait for a full Cloud Agent build: volume, machine, image pull, boot — ~47 seconds of staring at a mask. Now the platform keeps a pool of pre-built, pre-imaged machines waiting:

  • Phase 1 (live now): new users claim a pre-built stopped machine — first touch drops to ~12 s :bullseye:
  • Phase 2 (rolling out): a warm active tier with late identity binding — machines are already booted and claim their credentials the moment you arrive, targeting ~2 s :high_voltage:
  • Pool misses or claim failures fall back to the classic direct build transparently — you never see an error from the pool itself
  • Everything is runtime-tunable (pool size, peak-hours watermark, instant on/off) so we can scale the pool with demand without redeploys

If you onboard users into your App, their very first session just got dramatically faster. :door::dashing_away:

:window: App windows now show real Agent state — no more mystery masks (beta.222)

The loading overlay on App windows used to guess. Now it knows:

  • The readiness pipeline reports a true agent_state (online / creating / booting / waking / asleep / offline / error), and the mask copy follows it: “Setting up your agent…”, “Starting your agent…”, “Waking your agent…” — each with a bounded wait instead of an infinite spinner :hourglass_not_done:
  • Terminal states (offline / error) fail immediately and actionably instead of spinning until a timeout
  • A new real-time agent_presence_changed event means the Agent badge in the header updates within ~1 s of your agent coming online — and the window re-checks readiness exactly once, no more polling ladders :satellite_antenna:
  • The readiness check is now self-healing: if an Executa install was missed, simply re-checking the window kicks off the repair job and streams real progress into the mask

:repeat_button: Executa install/reconcile engine rebuilt on a single trigger source (beta.222)

All 10 triggers that can start an Executa reconcile now flow through one gate: offline agents cost zero RPCs, concurrent triggers merge instead of being dropped, and background retries get proper backoff. The practical effect for you: Executa deployments start when they should, exactly once, and never silently stall. :toolbox:

:locked_with_key: Security hardening sprint (beta.221)

We completed a third-party security audit follow-up plus our own deep pass on the login flow:

  • OAuth login CSRF protection: the OAuth state is now cryptographically bound to the browser session that started the login (double-submit cookie, constant-time compare) :cookie:
  • PKCE S256 enabled on GitHub and Google login flows — defense in depth on the authorization code
  • Open-redirect fix (high severity, self-discovered): the local-app login bridge’s return_to is now strictly allow-listed, so one-time exchange tokens can never be redirected off-platform
  • Dependency sweep: pillow, cryptography, aiohttp, urllib3, starlette/fastapi, python-multipart and more all bumped to patched versions — 140 of 142 Dependabot alerts cleared, the remaining 2 formally risk-assessed as non-exploitable :broom:
  • JWT algorithm pinning on the GitHub Actions OIDC exchange — the token can no longer choose its own verification algorithm

Nothing changes in how you log in or build — it’s all just safer underneath. :shield:

:bar_chart: Platform health forensics (beta.225 / 227, under the hood)

Our ops team got a major upgrade: every Cloud Agent disconnect is now auto-classified as expected (deploys, suspends, NATS restarts, upgrades) vs. genuinely anomalous, with per-version trend charts and a “user-impacted disconnect” signal. You won’t see this directly — but it means we spot and fix real connectivity regressions much faster. :magnifying_glass_tilted_left:


:bug: Bug Fixes

:face_with_steam_from_nose: New users opening an App saw a 48-second blank mask, then a fake failure (beta.222)

A lock-contention + dedup bug meant a freshly created Agent could miss every reconcile trigger until a 60 s watchdog fired — the window showed nothing, then failed, even though the Agent came up fine. With the new trigger engine, the install job starts within 5 s of the Agent coming online and the mask connects to the real progress bar in ≤ 6 s. First impressions matter. :nail_polish:

:alarm_clock: Cloud Agents sometimes refused to wake after a long sleep (beta.224)

Some hosts resume a suspended VM with a frozen clock — the Agent’s own “did I just wake up?” check went blind, and wakes degraded into a 62–84 s stall that blew past the 45 s window, surfacing as wake timeouts. The Agent runtime now re-syncs its clock and re-attacks the connection immediately on resume, and the platform tracks clock skew per agent so this class of bug can’t hide again. Wakes are back to snappy. :sleeping_face::right_arrow::smiley:

:zombie: Prebuilt pool hardening (beta.226 / 228)

Two races found during the production rollout of the new pool, both fixed:

  • Active machines with an outdated image could linger as billed-but-unclaimable “zombie slots” — they’re now rotated out immediately and replaced in the same cycle
  • A commit-ordering race could make freshly promoted machines self-destruct ~3 s after boot (they phoned home before their database row was visible) — promotion now commits before the machine starts, so every promoted machine survives :wrench:

:satellite_antenna: Agent presence scanning no longer breaks on new metadata (beta.227)

A newly added presence key could crash the full online-agent scan. Scanning is now structurally robust — one malformed entry is skipped with a warning instead of taking down the whole inventory.


:puzzle_piece: Compatibility Notes

  • :green_circle: Everything is additive. No manifest, SDK, schema, or CLI changes are required in this cycle — Apps that change nothing keep working exactly as before.
  • :green_circle: The prebuilt pool is fully transparent to your App: you talk to the same Agent APIs; the machine underneath just arrives faster.
  • :green_circle: Window readiness events now include agent_state — purely informational if you were already handling executa_readiness.
  • :green_circle: Login flows gained PKCE + CSRF binding server-side; no client changes needed.

:open_mailbox_with_raised_flag: Feedback Welcome!

Onboarding users who hit a ready Agent in seconds, or watching the “Waking your agent…” mask hand off to a real progress bar? We’d love to hear how it feels — and what’s still slow or opaque. The active ~2 s pool tier, public share links & static hosting for generated content (#495 :purple_heart:), and more SDK-visible agent-state signals are all on the radar. :satellite:

As always: detailed reproductions and real use cases are the fastest route from “request” to “shipped” — keep them coming! :flexed_biceps:

Happy building! :purple_heart::sparkles: