Repository navigation
Hotfix: Promote canary f2acb4a to main - #555
Merged
Merged
Conversation
Codex-spec'd UX follow-up to #545/#546: emit "→ [t+Ns] phase…" lines at the top of slow operations so a user staring at a Monitor task can tell "still working" from "hung." Without this, Windows Monitor cold-starts produced 30-60s of total silence followed by a flood of host-setup output — indistinguishable from a hang. Helper: `_join_phase` (in cmd_connect.sh) - t0 anchored via $AIRC_WRITE_DIR/.cold_start_t0; survives across `_reexec_into host` (same scope, no env passing required). - Output goes to BOTH stdout (so Monitor surfaces it as a user- facing event) AND $AIRC_WRITE_DIR/airc-transport.log (so post-mortem traces show where the time went). - `_join_phase_done` clears the marker once the monitor stream attaches — the next `airc join` against an already-warm scope starts from t0=0 again, not "minutes since last boot." Phase markers added at the slow points: - querying gh for mesh on this account (#X) - resolving room gist contents (<id>) - taking over stale host (re-exec into host mode) - hosting as 'NAME' — bootstrapping room gist - publishing host lease to existing room gist / creating new room gist on this gh account - subscribing to #general (sidecar) - monitor stream attached — cold start complete cmd_status: distinguish "starting" from "not running" Pre-fix `airc status` reported `airc process: not running` whether airc was genuinely absent OR mid-cold-start. Post-fix: - If `.cold_start_t0` exists AND age <= 600s, status reports `starting (airc join cold-start in progress, t+Ns)`. - Stale-marker guard: anchors >10min old are treated as orphaned (a join crashed without cleanup) and ignored, so the user gets the actionable "not running" message instead of a perpetually- rising "starting (t+86400s)". - cmd_connect entry-point also self-cleans stale anchors so a fresh join starts from a clean clock. Verified locally on Windows WSL2 with isolated AIRC_HOME: $ bash test/smoke-coldstart → [t+0s] querying gh for mesh on this account (#general) → [t+15s] resolving room gist contents (c68640ec...) → [t+17s] taking over stale host (re-exec into host mode) → [t+21s] hosting as 'win-continuum-8e97' — bootstrapping room gist → [t+25s] publishing host lease to existing room gist → [t+25s] subscribing to #general (host-mode sidecar) → [t+26s] monitor stream attached — cold start complete $ airc status airc process: starting (airc join cold-start in progress, t+34s) airc-transport.log includes per-phase timing entries for post-mortem of slow cold-starts. Doesn't change any control-plane behavior — pure observability addition. Single-source PATH invariant from #545 preserved. Related — Windows Monitor cold-start surface trail: #533/#538/#541/#542/#543/#544/#545/#546 — correctness fixes THIS — UX/observability for the cold-start latency that remains after correctness is solid. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
docs: tighten README for main release
docs: align Codex runtime with join flow
…o-miss fix(install): fail when cryptography is unavailable
feat(connect,status): cold-start phase telemetry (Windows UX)
There was a problem hiding this comment.
Pull request overview
Promotes the validated canary snapshot (f2acb4a) to main, carrying forward recent installer hardening, Windows cold-start observability, and documentation/skill alignment around the public airc join lifecycle.
Changes:
- Update skills/docs to standardize on
airc join/airc join --attachfor Claude Monitor and Codex/non-Monitor flows. - Add cold-start phase telemetry during
airc joinand surface astarting (t+Ns)state inairc status. - Make
cryptographya hard install dependency and refresh README copy for the main release.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| skills/update/SKILL.md | Updates update workflow guidance to use airc join --attach for Monitor and “public join” lifecycle for non-Monitor. |
| skills/resume/SKILL.md | Aligns resume docs with the public join/detach behavior and Monitor attach usage. |
| skills/msg/SKILL.md | Updates messaging notes to rely on normal airc join and positions codex-poll as manual catch-up. |
| skills/canary/SKILL.md | Aligns canary guidance with airc join --attach + no teardown-first for Codex/non-Monitor. |
| README.md | Replaces the long-form README with a shorter quickstart + model/commands overview and updated install notes. |
| lib/airc_bash/cmd_status.sh | Adds “starting” status when cold-start anchor exists but PID file does not. |
| lib/airc_bash/cmd_connect.sh | Emits cold-start phase markers to stdout and transport log; clears anchor on stream attach and prunes stale anchors. |
| integrations/openai-codex/README.md | Updates Codex guidance to use plain airc join instead of custom nohup backgrounding. |
| install.sh | Makes cryptography mandatory and fails install early when it can’t be installed/imported. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+42
to
+55
| _join_phase() { | ||
| local _t0_file="${AIRC_WRITE_DIR:-}/.cold_start_t0" | ||
| local _now _t0 _elapsed | ||
| _now=$(date +%s 2>/dev/null) || _now=0 | ||
| if [ -n "${AIRC_WRITE_DIR:-}" ] && [ ! -f "$_t0_file" ]; then | ||
| mkdir -p "$AIRC_WRITE_DIR" 2>/dev/null || true | ||
| printf '%s\n' "$_now" > "$_t0_file" 2>/dev/null || true | ||
| _t0="$_now" | ||
| elif [ -f "$_t0_file" ]; then | ||
| _t0=$(cat "$_t0_file" 2>/dev/null || echo "$_now") | ||
| else | ||
| _t0="$_now" | ||
| fi | ||
| case "$_t0" in ''|*[!0-9]*) _t0="$_now" ;; esac |
| # `airc join` (which re-enters cmd_connect on each tab restart) would | ||
| # show "[t+86400s]" instead of fresh phase numbers. | ||
| _join_phase_done() { | ||
| local _t0_file="${AIRC_WRITE_DIR:-}/.cold_start_t0" |
Comment on lines
+31
to
+35
| - installs or checks `gh`, `python3`, and `openssl` | ||
| - runs `gh auth login -s gist` when needed | ||
| - creates airc's local Python environment | ||
| - puts `airc` on your PATH | ||
| - installs agent skills for detected tools such as Claude Code and Codex |
| A GitHub account. install.sh handles the rest — installs `gh` if you don't have it, drops the airc binary on your PATH, sets up the local Python venv for the encryption library. `gh auth login` once and you're done. | ||
| - GitHub account with gist scope through `gh` | ||
| - `python3` | ||
| - `openssl` |
Comment on lines
542
to
544
| if "$_airc_venv_pip" install -q cryptography 2>&1 | tail -3; then | ||
| ok "cryptography installed in venv (envelope encryption ready)" | ||
| else |
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.
Summary
Promote canary
f2acb4ato main after focused mesh validation across Mac, Windows WSL2, Codex, Claude Code, and cross-scope agents.This branch is the resolved merge of
origin/main+origin/canary; the only conflict wasREADME.md, resolved in favor of canary's reviewed concise README. Tree matchesorigin/canaryafter resolution. Branch is namedhotfix/*only to satisfy the main-branch staging policy after the raw canary PR was marked dirty by the prior merge topology.Included since the last main promotion:
airc joinstartingstateLive validation
f2acb4a on canary, doctor --health healthy, gh governor no active backoff, #cambriantech + #general fresh, logs/whois/peers usablef2acb4a on canary, Monitor streaming live, markers delivered, failures noneVERSION=f2acb4a on canary, Monitor streaming live, cold-start phase markers t+0/0/1/4/9/11/19s, bidirectional marker, failures noneCI before promotion
Known non-blocking follow-ups
/whoisdoes not yet expose broadcast-only peers like paired peers