Repository navigation
feat(startup): launch-mode setting — one config.env key, many editors - #1636
Merged
Merged
Conversation
…lice 2) Port AircBridgeProtocol.ts → continuum-core airc::bridge_protocol — the transport-agnostic, security-critical half of the inbound airc→continuum bridge. Today the only path to that parser is shelling out: continuum-airc-bridge.mjs pipes each airc line into `jtag airc/bridge`, which runs the TS parser under Node. Per the headless-first doctrine ([[rust-is-the-core-node-is-the-shell]]) continuum-core must classify inbound airc text natively, with no Node hop. This is that parser. Faithful to the TS so the two can run side by side during the transition and a parity test can pin them. Deny-by-default allowlist preserved: only !continuum-prefixed text reaches the bounded verb set (ping/status/rooms/activity list/export/assert seen/chat); everything else is CONVERSATION bridged verbatim (vuln-A: peer content is not instructions); a [continuum] self-echo is skipped to break loops. Pure unit, 17 tests, no mesh required. Later slices wire the airc inbound stream into it and dispatch the parsed action to the kernel. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Add config_get / config_set (portable config.env upsert) + a launch_mode resolver to the bin/continuum CLI brain. Foundation for consolidating the sprawling start paths into one headless-by-default, UI-when-a-human-is-present entry point. CONTINUUM_LAUNCH_MODE in config.env is the single source of truth for the launch preference (the Docker-Desktop settings-store.json analog). Precedence: explicit arg/env > config.env value > auto-detect via the existing has_display(). `auto` resolves ONCE and writes the concrete result back, so the guess becomes an editable fact — never a silent per-boot re-guess. Loud + overridable; set the key back to `auto` (or re-run install) to re-detect after moving hardware. This is distinct from the Rust substrate boot --mode (full-citizen/inference-only/fail-fast), which stays explicit and is never guessed ([[no-fallbacks-ever]]). Auto-detect here only chooses whether the SHELL attaches a human UI overlay — a presentation concern, not a substrate capability. Purely additive: does NOT yet rewire `continuum dev` / `npm start`, so nothing breaks. A main-guard makes the brain sourceable; bin/tests/launch-mode.test.sh exercises the helpers + the full precedence/persist contract (18 assertions, has_display() stubbed for deterministic both-branch coverage). Next slices: front this key with a system/launch-mode command (so webview/mobile/tray/AI — any first-class citizen — edits the same setting via the one command primitive), then route `npm start` through it. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This was referenced Jun 15, 2026
joelteply
pushed a commit
that referenced
this pull request
Nov 12, 2026
Bumps every airc-* dependency from a3a7396bc8360cf51e9240f66fdbdabc2223e2dc (canary pin) to the tip of CambrianTech/airc branch land-identity-custody. That line is a strict superset: it contains canary 2ee6f2d6 and a3a7396bc8360cf51e9240f66fdbdabc2223e2dc plus the five custody-fix commits (read-never-mints-identity lineage, #1636), so the bump loses no work. Card 2a0d34cf; review card 240839d8.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
config_get/config_set(portable config.env upsert) + alaunch_moderesolver to thebin/continuumCLI brain. The foundation for consolidating the sprawling start paths (start,start:no-dashboard,start:clean,start:direct, …) into one headless-by-default, UI-when-a-human-is-present entry point.The model (decided with Joel)
CONTINUUM_LAUNCH_MODEinconfig.envis the single source of truth for the launch preference — the Docker-Desktopsettings-store.jsonanalog. One setting, many editors: install prompt, this CLI, the menu-bar tray, the desktop UI shutting itself off, auto-detect. "You're always editing a setting."config.envvalue > auto-detect (via the existinghas_display()).autoresolves once and writes the concrete value back — the guess becomes an editable fact, never a silent per-boot re-guess. Loud + overridable; set back toauto(or re-run install) to re-detect after moving hardware (portability).--mode(full-citizen/inference-only/fail-fast), which stays explicit and is never guessed ([[no-fallbacks-ever]]). Auto-detect here only chooses whether the shell attaches a human UI overlay — a presentation concern, not a substrate capability.Safety
Purely additive — does NOT yet rewire
continuum dev/npm start, so nothing breaks. A standard main-guard makes the brain sourceable; dispatch still runs when executed directly (verified).Tests
bin/tests/launch-mode.test.sh— sources the brain (main-guard suppresses dispatch), pointsCONTINUUM_HOMEat a temp dir, stubshas_display()for deterministic both-branch coverage. 18 assertions, all green: upsert/preserve-siblings, full precedence chain, auto-detect→persist write-back, garbage-value re-detect.Next slices
system/launch-modecommand fronting the same config.env key, so webview/mobile/tray/AI — any first-class citizen — edits it through the one command primitive (everything-is-a-command).src/npm startthroughlaunch_mode(headless default), collapse thestart:*variants, update CLAUDE.md's dev loop.🤖 Generated with Claude Code