Skip to content

Hotfix: Promote canary f2acb4a to main - #555

Merged
joelteply merged 9 commits into
mainfrom
hotfix/promote-f2acb4a-resolved
May 7, 2026
Merged

joelteply merged 9 commits into
mainfrom
hotfix/promote-f2acb4a-resolved

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

Promote canary f2acb4a to 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 was README.md, resolved in favor of canary's reviewed concise README. Tree matches origin/canary after resolution. Branch is named hotfix/* 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:

Live validation

  • Codex local slice on Mac: f2acb4a on canary, doctor --health healthy, gh governor no active backoff, #cambriantech + #general fresh, logs/whois/peers usable
  • Mac Claude continuum slices: f2acb4a on canary, Monitor streaming live, markers delivered, failures none
  • authenticator + vHSM: received validation markers single-arrival, ACKed over AIRC
  • Windows WSL2 continuum: VERSION=f2acb4a on canary, Monitor streaming live, cold-start phase markers t+0/0/1/4/9/11/19s, bidirectional marker, failures none

CI before promotion

Known non-blocking follow-ups

  • /whois does not yet expose broadcast-only peers like paired peers
  • Codex live mid-turn interrupts require a future Codex-side event surface; current hook digest is prompt-boundary only

joelteply and others added 9 commits May 6, 2026 21:58
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)
@joelteply joelteply changed the title Promote canary f2acb4a to main Hotfix: Promote canary f2acb4a to main May 7, 2026
@joelteply
joelteply merged commit e16ae0f into main May 7, 2026
12 of 15 checks passed
@joelteply
joelteply deleted the hotfix/promote-f2acb4a-resolved branch May 7, 2026 04:33
Copilot AI review requested due to automatic review settings May 7, 2026 05:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 --attach for Claude Monitor and Codex/non-Monitor flows.
  • Add cold-start phase telemetry during airc join and surface a starting (t+Ns) state in airc status.
  • Make cryptography a 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 thread README.md
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
Comment thread README.md
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 thread install.sh
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants