Skip to content

acpmux: dispatch attributed briefs across harnesses - #24606

Merged
teamleaderleo merged 11 commits into
feat-cmux-nextfrom
agent-dispatch-acpmux
Oct 24, 2026
Merged

teamleaderleo merged 11 commits into
feat-cmux-nextfrom
agent-dispatch-acpmux

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Agent-to-agent dispatch is now a first-class acpmux operation. A coordinator can run acpmux dispatch BRIEF --target HOST|auto; brief bytes cross the authenticated peer connection, the destination starts the requested harness, and acpmux briefs ls, briefs steer, and briefs report preserve one attributed brief identity. The ledger is atomic and survives daemon restart. Placement excludes air-blue, cosmic-gray, and big-red; cmux16 is capture/build only. Load and per-host capacity are warn-only: no launch is refused for load.

Leo said: "This also seems a little bit too ad hoc than what I'd like. Maybe we need to keep improving ACPM UX then, or CMUX next, just exposing more and more and, like, depicting the stuff better."

Changelog

Added: harness-agnostic acpmux dispatch, brief lifecycle commands, peer forwarding, and authenticated sender metadata.

Validation

  • pr-overlap before edits: no overlap.
  • Changed-file rustfmt and git diff --check pass.
  • Fleet test: cmux-ci run --class isolated --script scripts/ci/cmux-tui-rust-check.sh --ref 9cd406e3a7d3c9af583919537870538337ddf788 --arg test --arg dispatch submitted as cf7f00c6f2576d7a61e85ef1, cancelled before execution because the commit was not published; exact-head retry submitted as 4d85e68ac68845ff499eee1c after publishing the branch.
  • Full fleet result is pending; no native build ran on huge-blue.

agent-identity footer


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Makes agent-to-agent dispatch first-class in acpmux: acpmux dispatch BRIEF --host HOST|local|auto sends a brief over the authenticated peer connection, starts the chosen harness on the destination, and keeps one attributed brief identity across briefs ls, steer, and report. The brief ledger is atomic, survives daemon restart, and mirrors peer-forwarded brief rows back to the local ledger.

  • Dispatch is harness-agnostic; --target aliases --host. Sender attribution comes from the authenticated connection, never caller-supplied fields; empty or over-1 MB briefs are rejected.
  • Placement excludes air-blue, cosmic-gray, and big-red; cmux16 is capture/build only; auto targets the least-loaded allowed connected host.
  • steer and report forward over the peer running the brief; idempotency keys make duplicate dispatch, steer, and report calls replay-safe, and brief claims happen only after host validation. Report status accepts only running, reported, or merged.
  • Load pressure is warn-only and suggests a next suggestedHost; peer dispatch with an approve-all policy requires a person-approved preset.
  • _acpmux/dispatch, steer, briefs, and report are excluded from session-scoped peer forwarding, and forwarded dispatch preserves the authenticated web-guard marker.

Written for commit 99c2675. Summary will update on new commits.

View guided diff Turn on auto-fix

@teamleaderleo
teamleaderleo temporarily deployed to cmux-tui-merge-tree October 23, 2026 21:28 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review 732f896: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr24606 -f ref=agent-dispatch-acpmux -f platform=macos -f backend_mode=local

red: cmux-next checks (god files, concurrency, crash safety, l10n); NEW: red check: Companion workflows (+6 more) is not red on the base 6bedbd8; do not merge until green; see lane-rules
red: cmux-next crash ratchet; NEW: green on the base 6bedbd8; do not merge until green; see lane-rules

@github-actions github-actions Bot added the risk:normal Risk tier (docs/ci/risk-tiers.md) label Oct 23, 2026
@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Bead cx-6l78p created for this PR by the cmux coordinator.

@blacksmith-sh

blacksmith-sh Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Found 14 test failures on Blacksmith runners:

Failures

Test View Logs
/tmp/tmp11s5l1iw/summary-missing.json (live):/summary-missing.json (live): View Logs
/tmp/tmpvtccjvxz/summary-fail.json (live):/summary-fail.json (live): View Logs
[tabs] debug.tab_switch timed 0 of 40 switches/
[tabs] debug.tab_switch timed 0 of 40 switches
View Logs
[tabs] debug.tab_switch timed 0 of 40 switches/
[tabs] debug.tab_switch timed 0 of 40 switches
View Logs
[tabs] the window draws no frames/[tabs] the window draws no frames View Logs
[tabs] the window draws no frames/[tabs] the window draws no frames View Logs
convention violations found (ERROR lines above)./
convention violations found (ERROR lines above).
View Logs
test_a_pull_request_that_changes_the_shortcut_inputs_still_rewrites_them (main.Sett
ingsOnlyArtifactLeavesTheActionFollowers.test_a_pull_request_that_changes_the_shortcut_
inputs_still_rewrites_them) (job='repair')/
test_a_pull_request_that_changes_the_shortcut_inputs_still_rewrites_them (main.Sett
ingsOnlyArtifactLeavesTheActionFollowers.test_a_pull_request_that_changes_the_shortcut_
inputs_still_rewrites_them) (job='repair')
View Logs
test_base_passes (main.NoticesPairTests.test_base_passes)/
test_base_passes (main.NoticesPairTests.test_base_passes)
View Logs
test_every_routed_input_triggers_the_workflow (main.PullRequestTiers.test_every_rou
ted_input_triggers_the_workflow) (path='.git/config')
View Logs

...and 4 more test failures. View all on Blacksmith: run 40047084631, run 40047084725

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Leo: "Maybe we need to keep improving ACPM UX then, or CMUX next, just exposing more and more and, like, depicting the stuff better."

Agent-Session: acpmux-dispatch
@teamleaderleo
teamleaderleo temporarily deployed to cmux-tui-merge-tree October 23, 2026 22:55 — with GitHub Actions Inactive
@teamleaderleo
teamleaderleo temporarily deployed to cmux-tui-merge-tree October 23, 2026 23:13 — with GitHub Actions Inactive
@cursor

cursor Bot commented Oct 23, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot uses usage-based billing for this team and requires on-demand usage to be enabled.

A team admin can enable on-demand usage in the Cursor dashboard.

@teamleaderleo
teamleaderleo temporarily deployed to cmux-tui-merge-tree October 23, 2026 23:25 — with GitHub Actions Inactive
@teamleaderleo
teamleaderleo temporarily deployed to cmux-tui-merge-tree October 23, 2026 23:43 — with GitHub Actions Inactive
@teamleaderleo
teamleaderleo temporarily deployed to cmux-tui-merge-tree October 23, 2026 23:44 — with GitHub Actions Inactive
@teamleaderleo
teamleaderleo temporarily deployed to cmux-tui-merge-tree October 23, 2026 23:54 — with GitHub Actions Inactive
@cursor

cursor Bot commented Oct 24, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot uses usage-based billing for this team and requires on-demand usage to be enabled.

A team admin can enable on-demand usage in the Cursor dashboard.

@cursor

cursor Bot commented Oct 24, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot uses usage-based billing for this team and requires on-demand usage to be enabled.

A team admin can enable on-demand usage in the Cursor dashboard.

…tch-acpmux

# Conflicts:
#	cmux-tui/crates/acpmux/spec/acpmux-protocol.json
#	cmux-tui/crates/acpmux/src/protocol/mod.rs
#	cmux-tui/crates/acpmux/src/rpc.rs
@teamleaderleo
teamleaderleo merged commit 01c1cbc into feat-cmux-next Oct 24, 2026
102 of 125 checks passed
@teamleaderleo
teamleaderleo deleted the agent-dispatch-acpmux branch October 24, 2026 00:57
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

This branch had an error being deployed

1 failed deployment
cmux-tui-merge-tree — 99c26753 Deployed Oct 24, 2026 by teamleaderleo via publish the merge tree #5410
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:normal Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant