Dashboardopencode-loreGateway startup, process-boundary, and …

Gateway startup, process-boundary, and daemon ownership invariants

Category: architecture
Confidence: 1.00
ID: 01a0620e-2b92-703e-9703-3b770767b07b
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 2
Source session: 0jqfAyzTbQiUgim4O
Created: 2026-08-21 13:25:57
Updated: 2026-09-02 12:18:10

Cross-Project Recalls

ProjectHitsLast recalled
opencode 5 8d ago
craft 1 8d ago

Content

CLI startup alone owns StartOptions.processBoundary because signals and shutdown affect the host process; embedded plugins never request lifecycle control. Quiet in-process callers use { quiet:true, local:true }, route notices through file logging, and must not write lifecycle text into full-screen TUIs. Local mode clears hosted and remote-gateway state before validation so process-wide defaults cannot disable local discovery, imports, configuration, or watching. Daemon records contain pid, processIdentity, and an owner-only token: PID reuse makes numeric ownership insufficient. Reuse, termination, and discovery cleanup require the exact recorded generation, and records are removed only while every identity field still matches.

Move to: