150 Handoff To Session 152

Documentation for Sessions

Session 150 → Session 152 Handoff

What Session 150 Completed

Code (32 new files, 2 modified)

Sandbox Orchestrator NestJS App — APIs/sandbox-orchestrator/

VM Rootfs Image — deployment/sandbox-orchestrator/

Server Scripts — tools/scripts/sandbox/

Enhanced SelfHostedProvider — APIs/backend-ai-api/.../self-hosted.provider.ts

SSH ControlMaster — APIs/sandbox-orchestrator/.../vm-executor.service.ts

Infrastructure

Hetzner Server — LIVE AND ACCESSIBLE

SSH Access — KEY-BASED ONLY

Security

Documentation

MCP Intelligence


What Session 152 Needs to Do

Remaining Server Setup (DNS first, then provisioning)

  1. DNS — User must add A record in Cloudflare: sandbox → 144.76.69.55 (proxy OFF)
  2. Run provision-server.sh — Installs Firecracker, KVM modules, Node.js, nginx, certbot
  3. Run setup-network.sh — Creates br-sandbox bridge, TAP networking, NAT rules
  4. Build rootfs — sudo bash build-rootfs.sh (needs Docker on the server)
  5. Deploy orchestrator — bash deploy-orchestrator.sh sandbox (builds NX app, rsync, systemd)
  6. SSL — certbot --nginx -d sandbox.gograb.space (after DNS propagates)
  7. Uncomment SANDBOX_SERVER_URL=https://sandbox.gograb.space in .env.local
  8. E2E test — Trigger Computer Use from frontend, verify full observe-think-act loop

Per-User Persistent VM Model (2-3 days)

Jarvis Memory Architecture Improvements (from the vision report)

  1. Importance decay on memories (exponential, daysSinceLastAccess)
  2. Request-aware cognitive load budgeting
  3. Auto-generated User Brief per user (200-token daily summary)
  4. Knowledge graph for multi-hop reasoning (entity extraction + relationships)
  5. VM-as-memory integration (Chrome state as queryable context)

Key File Locations

What Path
Orchestrator app APIs/sandbox-orchestrator/src/
Rootfs + deployment deployment/sandbox-orchestrator/
Provisioning scripts tools/scripts/sandbox/
SelfHostedProvider APIs/backend-ai-api/src/app/infrastructure/services/sandbox/self-hosted.provider.ts
Provider factory APIs/backend-ai-api/src/app/infrastructure/services/sandbox/sandbox-provider.factory.ts
Provider interface APIs/backend-ai-api/src/app/infrastructure/services/sandbox/sandbox-provider.interface.ts
Env vars .env.local (search for SANDBOX_)
SSH config ~/.ssh/config (Host sandbox)
SSH key ~/.ssh/id_ed25519
Consolidated report docs/english/architecture/session-150-infrastructure-and-vision-report.md
Plan file .claude/plans/mighty-gathering-snail.md

Quick Commands

# SSH into server
ssh sandbox

# Build orchestrator
npx nx build sandbox-orchestrator

# Type-check backend-ai-api
npx tsc --noEmit --project APIs/backend-ai-api/tsconfig.app.json

# Deploy to server
bash tools/scripts/sandbox/deploy-orchestrator.sh sandbox