Skip to content

Promote canary f2acb4a to main - #554

Closed
joelteply wants to merge 9 commits into
mainfrom
codex/promote-f2acb4a-resolved
Closed

joelteply wants to merge 9 commits into
mainfrom
codex/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.

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

Copy link
Copy Markdown
Contributor Author

Superseded by #555. #554 had the right resolved merge commit, but the main-branch staging policy rejected the non-canary/non-hotfix branch name. #555 uses the same commit via hotfix/promote-f2acb4a-resolved so the policy can pass.

@joelteply joelteply closed this May 7, 2026
Copilot AI review requested due to automatic review settings May 7, 2026 06:57

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 canary f2acb4a to main, bringing in recent installer hardening, join/connect observability improvements, and documentation/skill updates aligned around the public airc join / airc join --attach flow.

Changes:

  • Update multiple skills/docs to standardize on airc join (and --attach for Monitor-backed runtimes) and remove older “manual background join” guidance.
  • Add cold-start phase telemetry to cmd_connect and a starting (...) state to airc status during join cold-start.
  • Harden install.sh so cryptography is a required dependency (fail-fast if unavailable).

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
skills/update/SKILL.md Updates update workflow text to use public join semantics and Monitor --attach.
skills/resume/SKILL.md Aligns resume skill with airc join --attach for Claude Monitor.
skills/msg/SKILL.md Updates messaging notes to reflect normal airc join lifecycle and Codex catch-up guidance.
skills/canary/SKILL.md Aligns canary skill with airc join --attach and simplified non-Monitor flow.
README.md Replaces/shortens README; updates install/usage/reference sections.
lib/airc_bash/cmd_status.sh Adds starting (...) reporting when cold-start anchor exists and no pidfile yet.
lib/airc_bash/cmd_connect.sh Adds cold-start phase markers, anchor lifecycle, and stale-anchor cleanup.
integrations/openai-codex/README.md Updates Codex integration docs to use the standard airc join command.
install.sh Adds fail() helper and makes cryptography a hard install requirement with import verification.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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 on lines +272 to +274
if [ "$_elapsed" -le 600 ] 2>/dev/null; then
monitor_state="starting (airc join cold-start in progress, t+${_elapsed}s)"
fi
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