Skip to content

feat(startup): launch-mode setting — one config.env key, many editors - #1636

Merged
joelteply merged 2 commits into
canaryfrom
feat/launch-mode-setting
Jun 16, 2026
Merged

joelteply merged 2 commits into
canaryfrom
feat/launch-mode-setting

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What

Adds config_get / config_set (portable config.env upsert) + a launch_mode resolver to the bin/continuum CLI 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_MODE in config.env is the single source of truth for the launch preference — the Docker-Desktop settings-store.json analog. 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."

  • Precedence: explicit arg/env > config.env value > auto-detect (via the existing has_display()).
  • auto resolves once and writes the concrete value back — the guess becomes an editable fact, never a silent per-boot re-guess. Loud + overridable; set back to auto (or re-run install) to re-detect after moving hardware (portability).
  • 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.

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), points CONTINUUM_HOME at a temp dir, stubs has_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

  1. A system/launch-mode command 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).
  2. Route src/npm start through launch_mode (headless default), collapse the start:* variants, update CLAUDE.md's dev loop.

🤖 Generated with Claude Code

joelteply and others added 2 commits June 15, 2026 16:38
…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]>
@joelteply
joelteply merged commit ebbc968 into canary Jun 16, 2026
4 of 5 checks passed
@joelteply
joelteply deleted the feat/launch-mode-setting branch June 16, 2026 01:31
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant