Files
orca/cloud/apps
Neil 4df5205c66 feat(cloud): A4 stopped sandboxes keep no credential at rest in the provider
Probe 2 (egress-docs): a session's last network policy survives a stop or a timeout on the
persistent record and is re-applied on resume, so firewall-mode values would sit at rest in Vercel
while a workspace sleeps.

- After every voluntary stop (sleep, rollover, restart, archive) and when reconcile finds the
  provider stopped a session (timeout), the record is PATCHed with the token-free compile (same
  routes, every firewall value answered by the firewall, no App token). A failed PATCH sets
  policy_scrub_pending.
- Reconcile scrubs stopped rows that are pending, or whose last policy carried a firewall class and
  was written after their last scrub (timeouts, crashes, and a one-time sweep on deploy).
- A wake PATCHes the record with the full policy right before resuming (no gap); the post-resume
  apply stays as the backstop.
- Boots stamp policy_config_hash (and a generation one below now), so create and wake writes are
  covered like applies. Proxy-only policies hold no values: nothing to scrub, no record writes.
- Migration 0067 (0064 and 0066 are held by #783 and #792): policy_scrubbed_at,
  policy_scrub_pending.
2026-11-15 14:56:20 -08:00
..