METRO-SPEC-2026.08-REV1

Metropolis / MetroNode Architecture & Engineering Specification | Target: NVIDIA AD107 (sm_89, 3072 Cores, 32MB L2)

← Back to dondlingergc.com
DXGI: 1,470 FPS (0.68ms) CreateProcessW: 4.20ms DuckDB OLAP: 3.80ms Windows 11 x86_64 Cloudflare Durable Objects

⚡ Pipeline Execution Trace (Sub-Millisecond IPC)

1. AGENT INTENT DISPATCH [0.00 ms]

Antigravity / LLM orchestrator serializes JSON-RPC 2.0 payload over anonymous stdio pipe descriptors.

2. MCP DESERIALIZATION & PRE-FLIGHT GATING [0.31 ms]

workspace-execution-mcp-server validates argument array schema against DuckDB mind.main.corrections.

3. DIRECT WIN32 PROCESS DISPATCH [4.20 ms]

CreateProcessW launches executable binary directly with asynchronous stdout/stderr stream draining, bypassing shell startup latency.

4. DUCKDB WAL STATE COMMIT [8.00 ms]

Telemetry state, post-mutation verification checksum, and execution metadata committed to mind.duckdb WAL.

⚠️ HARDWARE INVARIANT: AD107 L2 Residency Limit (19.2 MB)
The NVIDIA GeForce RTX 4060 Laptop GPU possesses a 32MB physical L2 cache. To prevent DRAM bus thrashing during 4K delta extraction, INT8 tile buffers are strictly bounded to $\le 19.2\text{ MB}$. Heavy neural workloads (e.g. SAM ViT-B) hold an exclusive CUDA stream synchronization lock.

SECTION I: HOST TOPOLOGY & TRANSPORT BOUNDARIES

The Metropolis host runtime isolates the language model environment, local microservices, and native GPU subsystems across strict transport boundaries.

graph TD IDE[Antigravity Agent Runtime] --> MCP[MCP Server Mesh] MCP -->|stdio JSON-RPC 2.0| ARRAY[Win32 CreateProcessW Dispatcher] MCP -->|HTTP 127.0.0.1:7999| EVERY[Everything.exe MFT Engine] MCP -->|Direct C-ABI Pointers| CUDADLL[turbo_cuda.dll / dxgi_cuda_delta.dll] CUDADLL -->|DP4A / Float4 Kernels| GPU[NVIDIA AD107 SM_89 VRAM] DXGI[DXGI Desktop Duplication API] -->|Direct3D 11 Interop| GPU

SECTION II: REPRODUCIBLE BENCHMARK TELEMETRY

Subsystem / Pipeline Target Measured Throughput / Latency Comparison Baseline Verification Engine
DXGI → CUDA Frame Delta (4K) 0.68 ms (1,470 FPS) GDI BitBlt / CPU: 24.8 ms (40 FPS) AD107 (sm_89) Warp Shuffle Kernel
Process Invocation Dispatch 4.20 ms cmd.exe: 68.4 ms | pwsh: 142.1 ms Win32 CreateProcessW Array
Full Disk File Search (1.4M files) 1.15 ms Win32 Walk: 8,420 ms Everything.exe Port 7999 MFT
DuckDB OLAP Analytics (500k rows) 3.80 ms JSON File Scan: 480.0 ms DuckDB Embedded Columnar Engine
Anonymous Pipe IPC Roundtrip 0.31 ms Named Pipes: 0.48 ms | TCP: 1.10 ms Anonymous stdio Descriptors

SECTION III: OPEN-SOURCE EXTRACTION TARGETS

1. Win32 Direct Process Array Dispatcher

Bypasses shell interpreters (cmd.exe / pwsh.exe) to eliminate argument injection vulnerabilities, quote escaping corruptions, and subprocess spawning latency ($4.2\text{ ms}$ vs $142\text{ ms}$).

📦 GitHub: yavru421/win32-process-array-dispatcher

Inspect C# P/Invoke Implementation (NativeProcessDispatcher.cs)
[DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
private static extern bool CreateProcessW(
    string? lpApplicationName,
    StringBuilder lpCommandLine,
    IntPtr lpProcessAttributes,
    IntPtr lpThreadAttributes,
    bool bInheritHandles,
    uint dwCreationFlags,
    IntPtr lpEnvironment,
    string? lpCurrentDirectory,
    [In] ref STARTUPINFO lpStartupInfo,
    out PROCESS_INFORMATION lpProcessInformation
);

2. Zero-Copy DXGI + CUDA Frame Delta Engine

Zero-copy desktop frame difference extraction pipeline using Direct3D 11 Desktop Duplication and CUDA compute kernels (sm_89 / AD107). Extracts 4K frame deltas entirely in VRAM at $<0.71\text{ ms}$ ($>1,400\text{ FPS}$).

📦 GitHub: yavru421/dxgi-cuda-frame-delta

Inspect CUDA SM_89 Warp Reduction Kernel (dxgi_cuda_delta.cu)
__device__ inline int warpReduceSum(int val) {
    #pragma unroll
    for (int offset = WARP_SIZE / 2; offset > 0; offset /= 2) {
        val += __shfl_down_sync(0xFFFFFFFF, val, offset);
    }
    return val;
}