Skip to content

agora v2: messaging goes native — CLI slims to registry, topology, and board - #91

Merged
SSFSKIM merged 4 commits into
mainfrom
worktree-agora-native
Aug 31, 2026
Merged

SSFSKIM merged 4 commits into
mainfrom
worktree-agora-native

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Aug 31, 2026

Copy link
Copy Markdown
Owner

What this does

Retires agora v1's entire delivery layer — send/listen/log, per-member inboxes, cursors, the persistent-Monitor listener, and the --no-wait spawn rule it forced — and moves member-to-member messaging onto the harness's native cross-session SendMessage tool. Agora keeps what the native tool lacks: named groups, spawn topology, the alias→addr registry, and the durable communal board.

Why

Live probes (recorded in the execplan) established that native SendMessage covers the whole delivery problem: it wakes an idle session into a new turn, queues to a busy one, and revives a session whose process was killed — and --bg daemons are addressable in ListAgents under their spawn name. v1's listener machinery was compensating for a wake primitive the harness turned out to provide, at the cost of arming ceremony, silent deafness on listener death, and the state=working distortion.

This reverses v1's file-transport decision on new evidence; the reversal rationale, live proofs, and what v2 knowingly gives up (operator DM timeline, CLI-originated targeted sends) are in docs/doperpowers/execplans/2026-08-31-agora-native-transport.md.

Changes

  • skills/agora/scripts/agora: delivery layer removed (net −339 lines); nodes gain addr (SendMessage target, default = alias, .addr // .alias read fallback for persisted v1 records); post prints the nudge list; removed commands refuse with a pointer at SendMessage; join warns on cross-group addr collisions.
  • skills/agora/references/spawn-preamble.md, skills/agora/SKILL.md: rewritten for the native protocol — no arming, no --no-wait.
  • skills/orchestrating-daemons/scripts/daemon-spawn.sh: comment updates only; the agora dimension (pre-join + preamble + session back-fill) is unchanged.
  • tests/agora/run-agora-tests.sh: rewritten for the new surface — 34 assertions incl. v1-record and collision fixtures.

Validation

  • Full test suite green (34 assertions), shell lint clean.
  • Live fleet proof: main session + sonnet daemon spawned through the patched path WITHOUT --no-wait — blocking watcher returned normally, topology-resolved addr, native DM and board-post nudge both arrived as <cross-session-message> events.
  • Codex whole-branch review (gpt-5.6-sol, xhigh): 2 findings, both verified and fixed in a follow-up wave, fixes independently re-verified.

🤖 Generated with Claude Code

https://claude.ai/code/session_016qay2VShy979GbX13uNqPt

…sage

The Monitor-listener delivery layer (send/listen/log, per-member inboxes,
cursors, emit-then-checkpoint) is retired: native SendMessage wakes an idle
session, queues to a busy one, and revives a dead one (all three verified
live against a --bg daemon). agora keeps what the native tool lacks —
named groups, spawn topology, and the communal board — and nodes now carry
an addr (SendMessage target, defaulting to the alias). Board delivery
becomes a poster-side nudge: post prints the other members' addrs.
Removed commands refuse with a pointer at SendMessage; the --no-wait
requirement for agora daemons is gone with the listener that caused it.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-31T10:18:16.486611Z 20d7e14 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit a1d580c into main Aug 31, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 20d7e1466b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +81 to +82
other="$(basename "$(dirname "$(dirname "$nf")")")"
if [ "$other" = "$1" ]; then continue; fi

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Detect duplicate addresses within the same group

When two members of one group join with the same custom --addr, this early skip prevents any warning, even though the resulting topology maps both aliases to the same machine-wide SendMessage target. Messages intended for either member can therefore reach the wrong session or become ambiguous. Scan the current group too, excluding only the node whose alias is being refreshed.

Useful? React with 👍 / 👎.

Comment on lines +342 to +343
send|listen|log)
die "'$cmd' is gone — messaging rides the harness SendMessage tool now (a node's addr in 'agora topology' is the target); the board (agora post/board) is the durable record" ;;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve messaging on harnesses without SendMessage

When agora is used through the Codex plugin or another supported non-Claude harness, these commands now refuse while the replacement named in the error does not exist there. I checked .codex-plugin/plugin.json, which exposes the entire skills/ directory, and a repo-wide search found no harness adapter or fallback for SendMessage/ToolSearch; agents following the updated skill therefore lose all direct messaging rather than switching transports. Keep a CLI fallback or gate the native transport by harness capability.

Useful? React with 👍 / 👎.

Comment on lines +26 to +30
To spawn a child daemon wired in as YOUR child, put the agora variables
inline on the spawn command itself — the harness Bash tool does not inherit
session env, so an exported variable never reaches your spawn commands:

AGORA_GROUP={{GROUP}} AGORA_PARENT={{ALIAS}} <path-to>/daemon-spawn.sh --no-wait <name> "<task>" ...
AGORA_GROUP={{GROUP}} AGORA_PARENT={{ALIAS}} <path-to>/daemon-spawn.sh <name> "<task>" ...

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep child spawns nonblocking in the preamble

When a daemon follows this rendered command literally, it invokes daemon-spawn.sh in the foreground without --no-wait; that script explicitly waits for the child's entire first turn before returning. The parent therefore cannot process queued native messages or perform concurrent work during a long child turn, which serializes the group and can hold it until the spawn watcher times out. Retain --no-wait here or show the required Monitor/background-shell invocation.

Useful? React with 👍 / 👎.

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