← Back to brief

reference cloud box

memory · reference_cloud_box.md

Box

Layout / how the macOS code runs unchanged

VERIFIED 2026-05-15

bv_driver enrich --lead-id R085030 --no-write on the box returned identical output to the Mac (status ok; R085030/Harman; emails dharman@amdarchitects.com +2; phones (303) 388-6973 +2). The R-03 current-owner gate ran a live HubSpot CSRF query in the cloud and correctly returned the lead clean. The hardest, browser-dependent core of the migration is proven.

PARTIAL FLIP EXECUTED 2026-05-15 PM (BV-enrichment only)

STATE — phased cutover (Joseph chose "Phased & safe" 2026-05-15)

Sync foundation — BUILT + dry-run VERIFIED 2026-05-15 (inactive by design)

⚙️ ATOMIC FLIP RUNBOOK (do NOT run until full-fleet migration done)

Prereqs before flipping: (a) the box-runnable deterministic tasks staged as systemd timers (disabled); (b) honest per-SKILL review of which Mac scheduled-tasks are deterministic-python (box-runnable) vs genuinely LLM-agent (consolidation, live-EA drafting, commitment extraction — these CANNOT be pure-python timers; the box has no Claude agent runtime — this boundary is real and unsolved, NOT yet classified reliably).

Flip steps (single coordinated switch):
1. Pause the Mac fleet: disable the migrated scheduled-tasks (mcp scheduled-tasks → enabled:false) + launchctl unload the migrated launchd jobs.
2. ssh root@178.156.250.227 'systemctl enable --now skyrun-*.timer' (enable the staged box timers).
3. touch "~/Library/Application Support/SkyRun/state/CLOUD_AUTHORITATIVE" (arms cloud_sync_pull.sh).
4. Schedule cloud_sync_pull.sh on the Mac (launchd, e.g. every 15 min) so PWA/visibility stays current when the Mac is on.
5. Verify: box heartbeats appear in box:/home/skyrun/SkyRun/health; one cloud_sync_pull.sh real run pulls them to the Mac; no Mac-side double-run.
Rollback: reverse (rm the flag, disable box timers, re-enable Mac fleet) — box→Mac sync is non-destructive (backups in state/cloud_sync_backups/).

How to apply: This is real infrastructure — when work touches the cloud migration, BV/scout/freshness automation location, or "get it off the Mac," start from this file. Box is a verified, idle, ready staging env with a verified safe sync foundation. Remaining: stage the rest of the deterministic timers + the honest deterministic-vs-LLM fleet classification, THEN the atomic flip above. The browser keystone + sync are proven; the flip is gated on the fleet classification, not on technical risk.