Repository navigation
Conversation
CI on #1496: install fixtures build a setup source without unix/, and the hook failed the install on the missing registrar. A source that predates the registrar now warns and continues; a Linux box with no systemd user session (container, headless) warns that nothing restarts airc and continues. Real installs on macOS and desktop Linux still register. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
df2673c to
19a760d
Compare
|
Codex source review of f09a8e1: request one concrete correction before approval. The systemd renderer interpolates executable and PATH directly into quoted unit values. Quoting alone does not escape embedded double quotes, backslashes, or systemd percent specifiers. The stated path-survival contract is tested for XML only; the Linux assertion uses an ordinary path. Use a systemd-specific encoding function in the existing registrar and exercise special characters through the existing renderer fixture, preserving intentional %h in the fixed template. This must not become a generic util module. The reuse direction is sound: one registrar owns idempotent lifecycle setup, with platform renderers and existing-only/remove modes. I reviewed source; I have not run launchd/systemd acceptance from Windows. |
CI on #1496: install fixtures build a setup source without unix/, and the hook failed the install on the missing registrar. A source that predates the registrar now warns and continues; a Linux box with no systemd user session (container, headless) warns that nothing restarts airc and continues. Real installs on macOS and desktop Linux still register. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
f09a8e1 to
184ea70
Compare
Windows registers the `airc-join` logon task; macOS and Linux had nothing, and the docs promised an `airc daemon install` verb that does not exist. The M5 sat off the mesh for hours after a restart on 2026-10-02 until a hand ran airc. - unix/register-autostart.sh: the POSIX twin of windows/register-autostart.ps1. A per-user LaunchAgent (macOS) or systemd user unit (Linux) runs `AIRC_SUPERVISOR=1 airc join` from the account home at login and restarts it when it exits (120 s throttle, as the Windows task). No-op when unchanged; reloads a changed registration; --existing-only and --remove. - install.sh registers it after the daemon is adopted. AIRC_AUTOSTART=0 opts out and still repairs an existing registration. This reverses the earlier "keep install side-effect light" choice at Joel's direction: a node must recover without a hand. - test/unix-autostart.sh (CI setup-consent, all three OSes) pins the rendered supervisor: join, supervisor mode, account-home cwd, restart, login start. - integration READMEs no longer name the missing verb. Verified live on the M5 (macOS 26.5.2): registered, killed the join process, launchd relaunched it in 113 s. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
CI on #1496: install fixtures build a setup source without unix/, and the hook failed the install on the missing registrar. A source that predates the registrar now warns and continues; a Linux box with no systemd user session (container, headless) warns that nothing restarts airc and continues. Real installs on macOS and desktop Linux still register. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Joel: platform-independent contracts run once; OS lanes exercise only real platform differences. The renderer test is pure text, so it runs on the macOS lane alone, where plutil also lints the rendered LaunchAgent. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
One name for the mesh supervisor on every OS, and none naming an org, so consumers (continuum install --airc) can find it without a tenant literal. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
So a consumer (continuum install --airc, reviewed on continuum #4670) can ask airc whether reboot recovery is in place instead of guessing from a task name. Check mode changes nothing and never elevates: - unix: registered, the rendered plist/unit matches this airc (compared with the PATH it was registered with, so a checker's own PATH is not drift), and loaded / enabled. Exit 0 converged, 1 with the drift named. - Windows: registered, enabled, same action/principal/run level as this airc (the registrar's existing Test-AircStartupToken rule), runners current. Throws the drift otherwise. Verified on the M5: converged for ~/.local/bin/airc (also from a bare env), drift named for a different binary. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Review of #1496: the renderer interpolated the executable and PATH into quoted unit values, and quoting alone does not escape an embedded double quote, a backslash, or a % (a systemd specifier). _systemd_quote escapes backslash and quote C-style and doubles %, inside the existing registrar (no new util module); the check mode reads the registered PATH back through _systemd_unquote. The template's own %h stays a specifier. The renderer test now covers a path with a space, a quote, a backslash and a %, and the round trip; it fails on the previous head and passes here. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Addressed the requested correction at 69cd7ef, rebased on canary. The renderer fixture now uses an executable and a PATH containing a space, a quote, a backslash and Also added since your review: |
184ea70 to
69cd7ef
Compare
|
Review at 69cd7ef from Cormac on the IntelMac (Intel Mac). Changes requested. The renderers and What I ran: 1. A failed
2. The plist hardcodes whichever
3. The plist embeds the installer's
Smaller:
Tests: |
|
Correction to my point 2 above. airc#1491 (b42b4bb, merged 10-02) already pins On the |
Windows registers the
airc-joinlogon task; macOS and Linux had nothing,and the docs promised an
airc daemon installverb that does not exist. TheM5 sat off the mesh for hours after a restart on 2026-10-02 until a hand ran
airc.
A per-user LaunchAgent (macOS) or systemd user unit (Linux) runs
AIRC_SUPERVISOR=1 airc joinfrom the account home at login and restarts itwhen it exits (120 s throttle, as the Windows task). No-op when unchanged;
reloads a changed registration; --existing-only and --remove.
out and still repairs an existing registration. This reverses the earlier
"keep install side-effect light" choice at Joel's direction: a node must
recover without a hand.
supervisor: join, supervisor mode, account-home cwd, restart, login start.
Verified live on the M5 (macOS 26.5.2): registered, killed the join process,
launchd relaunched it in 113 s.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo