Skip to content

fix(skills): codify Codex non-Monitor airc runtime - #445

Merged
joelteply merged 1 commit into
canaryfrom
fix/codex-skill-runtime-contract
May 3, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/codex-skill-runtime-contract

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

Codex dogfood exposed that the install path works, but several public skill docs still assumed Claude Code Monitor semantics. That makes Codex unreliable because it has no Monitor/TaskStop and foreground airc join is long-running in a fresh scope.

This PR codifies the Codex/non-Monitor runtime contract in the shipped skills and OpenAI Codex integration docs.

Changes

  • join: Codex/non-Monitor path now uses daemon or background nohup airc join, then airc status and airc logs --since polling. Removes the incorrect one-shot claim.
  • update: splits Claude Monitor bounce from Codex shell lifecycle (airc teardown, background join, status, logs catch-up).
  • resume, repair, canary: add Codex/non-Monitor restart forms instead of Monitor-only instructions.
  • logs: documents airc logs --since and explicitly says there is no airc logs -f mode.
  • msg: removes stale SSH-era wording and tells Codex to keep airc alive via daemon/background join plus logs polling.
  • integrations/openai-codex: replaces invalid airc logs 0 -f guidance with daemon/background join plus logs --since.

Verification

  • airc update refreshed installed canary and Codex skill symlinks.
  • codex debug prompt-input confirms fresh Codex sessions see AIRC skills.
  • airc logs --since 5m works.
  • airc logs 0 -f and airc logs -f are invalid as expected, so docs no longer recommend them.
  • Isolated AIRC_HOME smoke:
    • start with nohup airc join --room-only general > "$scope/codex-airc.log" 2>&1 &
    • airc status --probe reports live monitor PID
    • airc logs --since 2m is callable
    • airc teardown cleans only that temp scope

Codex CLI 0.128.0 catch from validating AIRC as a public Codex skill surface.

Copilot AI review requested due to automatic review settings May 3, 2026 15:36
@joelteply
joelteply merged commit 7864e21 into canary May 3, 2026
10 checks passed
@joelteply
joelteply deleted the fix/codex-skill-runtime-contract branch May 3, 2026 15:38
@joelteply
joelteply removed the request for review from Copilot May 3, 2026 16:00
joelteply added a commit that referenced this pull request Aug 15, 2026
…ter rides the daemon attach (#445 slice 2)

The daemon router has always applied AttachRequest.headers router-side
(server.rs compiles it into the fan-out Filter), but no lib path ever
set it — every subscription attached with HeaderFilter::Any — and the
combinator set had no exclusion shape, so the one thing the measured
spam case needs ('everything EXCEPT airc.heartbeat.*-stamped beacons',
149 of 177 inbound events on a continuum persona subscription) was
inexpressible.

- airc-core: HeaderFilter::Has { key } (presence) + Not(Box<..>)
  (inversion), arms in both matches() and matches_view(), pinned by
  the variant-agreement test + a dedicated exclusion/wire-round-trip
  test (the enum crosses IPC inside AttachRequest, so asymmetric
  serde would mis-filter daemon-side only).
- airc-lib: daemon_subscribe threads a HeaderFilter onto the initial
  AND reconnect attach (same discipline as the delivery filter — a
  filter that vanished on daemon restart would silently re-open the
  flood). subscribe_subscribed_delivery forwards the caller's
  EventFilter.headers_filter, which until now was client-side only.

Exclusion passes unstamped events by construction — Not(Has) is never
an allowlist, so consumers keep receiving everything publishers have
not classified yet.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply added a commit that referenced this pull request Aug 15, 2026
…(the unused-fields perf fix) (#1362)

* feat(lib): subscribe_subscribed_delivery — router-side delivery-class filter on the multi-room subscribe

AttachRequest has carried kinds/delivery/header filters since the router
grew them, and the daemon compiles them into the router (server.rs:530) —
but the lib's own multi-room subscribe surface never exposed them, so
every consumer attached unfiltered and paid a decode per event to discard
what it never wanted. Measured on a continuum node 2026-08-15: 6,736
events fanned to EVERY persona subscription in 40 minutes, 100% discarded
post-decode; an earlier solve measured 55% of inbound as peer StreamChunks
decoded identically by four minds (O(personas x tokens) in the attention
path).

- daemon_subscribe gains `delivery: Option<Vec<IpcDelivery>>`, applied on
  the initial attach AND every reconnect (a filter that silently vanished
  on the first daemon restart would re-open the flood with no signal).
- New public `subscribe_subscribed_delivery(filter, delivery)`;
  `subscribe_subscribed_filtered` delegates with None — behaviour
  unchanged for every existing caller.
- Non-daemon (in-process broadcast) fallback documented: EventFilter
  remains its only filter; there is no router to filter at.

First consumer: continuum's persona turn stream attaches with
[IpcDelivery::Durable] — a mind that perceives settled room lines stops
receiving peers' stream chunks and ephemeral fan-out at the ROUTER.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* feat(core+lib): HeaderFilter Not/Has exclusion variants + headers filter rides the daemon attach (#445 slice 2)

The daemon router has always applied AttachRequest.headers router-side
(server.rs compiles it into the fan-out Filter), but no lib path ever
set it — every subscription attached with HeaderFilter::Any — and the
combinator set had no exclusion shape, so the one thing the measured
spam case needs ('everything EXCEPT airc.heartbeat.*-stamped beacons',
149 of 177 inbound events on a continuum persona subscription) was
inexpressible.

- airc-core: HeaderFilter::Has { key } (presence) + Not(Box<..>)
  (inversion), arms in both matches() and matches_view(), pinned by
  the variant-agreement test + a dedicated exclusion/wire-round-trip
  test (the enum crosses IPC inside AttachRequest, so asymmetric
  serde would mis-filter daemon-side only).
- airc-lib: daemon_subscribe threads a HeaderFilter onto the initial
  AND reconnect attach (same discipline as the delivery filter — a
  filter that vanished on daemon restart would silently re-open the
  flood). subscribe_subscribed_delivery forwards the caller's
  EventFilter.headers_filter, which until now was client-side only.

Exclusion passes unstamped events by construction — Not(Has) is never
an allowlist, so consumers keep receiving everything publishers have
not classified yet.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

---------

Co-authored-by: Claude Fable 5 <[email protected]>
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.

1 participant