Documentation

Roadmap & Engineering TODOs

ready

What is shipped and production-ready today across VPS, AWS, Cloudflare Workers, and Agent Trace — and what we are building next.

Source reference: TODOS.md, CHANGELOG.md, CLOUDFLARE_PARITY.md


Milestone Status Overview

MilestoneSubsystem FocusStatusTarget
v1.0.0Core Engine (VPS, Cloudflare Workers, AWS Serverless, Next.js 16 Turbopack), Agent Trace, Takeover UI (:4044), Native MCP Server, CI/CD & PR PreviewsSHIPPEDProduction
v1.1.xAutonomous Data Plane, Selective Route-Level CDN Invalidation, Deployment DashboardIN ACTIVE DEVQ1 2027
v1.2.xMulti-Region VPS Clusters, Cloudflare Partial Prerendering (PPR), "use cache"PLANNEDQ2 2027

1. Agent-First Infrastructure & Continuity (P0)

Transform NextDeploy into the premier execution runtime for AI coding agents (Antigravity IDE, Claude Code, Cursor, Windsurf, Kiro).

  • Native Agent Trace Engine (shared/agenttrace):
    • Schema models for checkpoints (checkpoint.json), lifecycle events (events.json), and takeover briefs (takeover.md).
    • Automatic session detection in nextdeploy ship and pre-flight intent logging.
    • Automatic failure and success event capture across VPS and Cloudflare targets.
  • CLI Takeover Suite (cli/cmd/trace.go):
    • nextdeploy takeover and nextdeploy takeover -o (launches $EDITOR on modified files).
    • nextdeploy trace checkpoint with intent, agent, and model tracking.
    • nextdeploy trace status and nextdeploy trace resume --agent <name>.
  • Embedded Web UI on Port 4044 (shared/agenttrace/webui.go):
    • Embedded single-page dashboard with real-time session status, modified files diff viewer, and deployment cards.
    • REST endpoints: /api/status, /api/diff.
  • Native Model Context Protocol (MCP) Server:
    • Implement nextdeploy mcp over stdio JSON-RPC 2.0 (cli/cmd/mcp.go).
    • Expose tools: nextdeploy_inspect, nextdeploy_plan, nextdeploy_ship, nextdeploy_status, nextdeploy_trace, nextdeploy_takeover, nextdeploy_rollback.
    • Auto-scaffold MCP server configuration for Cursor, Antigravity IDE, and Claude Desktop (nextdeploy mcp init).
  • Structured Agent Diagnostics (--format=agent-json):
    • Parse Next.js 14/15/16 prerender and dynamic server usage errors into structured { file, line, error_code, fix_hint } envelopes.
    • Non-interactive automated error triage for autonomous agent loops.
  • Autonomous Data Plane Binding:
    • Add nextdeploy db bind [d1 | postgres | sqlite | neon].
    • Auto-provision database instances and inject encrypted connection strings without human console intervention.

2. Cloudflare Workers Target (shared/nextcompile) (P1)

Next-generation edge compilation and resource orchestration for Cloudflare Workers.

  • Next.js 16 Turbopack & Webpack Parity:
    • Custom nextserver pure-Go compiler running NextNodeServer inside workerd.
    • Build-time VFS shims and streaming HTTP bridge (Suspense / React 19 RSC).
    • Static asset offloading to Cloudflare R2 with immutable 1-year cache headers.
  • Resource Binding Declarations in YAML:
    • Declarative D1 SQL, Hyperdrive connection pooling, R2 buckets, Queues, KV, and Durable Objects.
  • Next.js 16 Partial Prerendering (PPR):
    • Support hybrid static shell + dynamic streaming RSC on Cloudflare Workers.
  • Remote Cache Handler ("use cache"):
    • Implement @next/cache-handlers specification backed by R2 (large objects) and KV (metadata/tags).
  • Multi-Worker Micro-Routing:
    • Option to split heavy background queues or isolated API routes into dedicated satellite workers.
  • Automated Ephemeral PR Preview Teardown:
    • Add preview cleanup command to purge old preview workers and orphaned R2 folders.

3. Bare-Metal Linux VPS & Daemon (nextdeployd) (P1)

High-performance, container-less deployment on bare-metal servers.

  • Zero-Downtime Atomic Cutover:
    • Dual-stage TCP listener probing and HTTP GET /api/health verification.
    • Atomic POSIX symlink replacement (current.tmp ➔ current).
    • 5-release ring buffer with sub-second rollbacks (nextdeploy rollback).
  • Cumulative Static Chunk Pooling (shared_static):
    • Preserves historical content-hashed JS chunks to eliminate client-side ChunkLoadError 404s.
  • Caddy & systemd Hardening:
    • Automated Let's Encrypt TLS issuance and direct NVMe byte delivery.
    • DynamicUser=yes, ProtectSystem=strict, and cgroup v2 memory capping (MemoryMax=1G).
  • Multi-Server VPS Clustering:
    • Deploy across multiple heterogeneous VPS nodes (e.g. 3 Hetzner nodes) with rolling cutovers.
    • Centralized health arbitration and traffic draining.
  • Mesh Networking via WireGuard:
    • Optional WireGuard tunnel between local developer machine / CI/CD and VPS daemon, eliminating the need for public SSH ports.
  • Daemon Observability & Metrics:
    • Add native Prometheus metrics endpoint (http://localhost:9100/metrics) to nextdeployd.
    • Track CPU, memory consumption per application release, and request latency histograms.

4. AWS Serverless Target (P2)

Enterprise-grade serverless autoscaling on AWS.

  • Lambda Standalone Packaging:
    • Minimal bundle extraction (output: standalone) keeping packages under 35MB.
    • Default ARM64 Graviton architecture.
  • CloudFront Edge Distribution & OAC:
    • 4 edge routing cache behaviors (/_next/static/*, /static/*, /_next/image*, default *).
    • Automated ACM SSL certificate issuance and DNS validation.
  • Asynchronous Decoupled ISR:
    • SQS revalidation queue with Dead-Letter Queue (DLQ) support and CloudFront path invalidation.
  • Lambda Provisioned Concurrency Auto-Tuning:
    • Optional auto-scaling schedule for provisioned concurrency during high-traffic business hours.
  • Automated S3 Lifecycle Cleanup:
    • S3 lifecycle rules to expire pruned release tarballs and orphaned static assets after 90 days.
  • CloudFront KeyValueStore Integration:
    • Sub-millisecond edge redirects and maintenance mode switches at CloudFront edge without invoking Lambda.

5. Secrets & Security Engine (shared/secrets) (P1)

  • Authenticated Encryption (AEAD):
    • ChaCha20-Poly1305 and AES-256-GCM authenticated encryption with Argon2id key derivation.
    • Local encrypted binary vault format (.secrets).
    • Key rotation (planned).
  • Cloud Provider Integrations:
    • Doppler dynamic secret synchronization.
    • AWS Secrets Manager Lambda Extension in-memory caching.
    • Cloudflare Worker encrypted secret variables.
  • 1Password CLI Integration:
    • Direct secret resolution from 1Password vaults (op://vault/item/field).
  • Automated Secret Leak Detection:
    • Pre-commit and pre-ship scanner to prevent accidental plaintexts in nextdeploy.yml or repo code.

6. Developer Experience, Tooling & Frontend Web App (P2)

  • Next.js 16 Frontend Web App (frontend/):
    • Next.js 16 Turbopack marketing and documentation platform with React 19 and Tailwind CSS v4.
    • Custom markdown docs loader parsing 56+ comprehensive technical guides.
  • CLI Developer Experience:
    • nextdeploy init interactive wizard with automatic target detection.
    • nextdeploy plan --detailed-exitcode for CI/CD gates.
    • nextdeploy generate-ci for GitHub Actions and GitLab CI.
    • nextdeploy update for GitHub Releases binary self-updates.
  • Interactive TUI Dashboard:
    • Terminal dashboard (nextdeploy tui) built with Bubble Tea for live server and deployment monitoring.
  • Webhook Notifications:
    • Webhook triggers (Slack, Discord, PagerDuty, custom webhook) on deployment success, probe failure, or rollback.
  • Offline Documentation Search:
    • Pagefind / Algolia static search indexing integrated into frontend/ documentation.

Related