microsoft/amplifier-acp-lab
Python
Captured source
source ↗microsoft/amplifier-acp-lab
Description: Repeatable collaborative-agent experiments with participation observations and separate artifact evaluations
Language: Python
License: MIT
Stars: 0
Forks: 0
Open issues: 0
Created: 2026-11-02T20:56:54Z
Pushed: 2026-11-06T06:19:54Z
Default branch: main
Fork: no
Archived: no
README:
Agent Experiment Lab
Part of Amplifier Constellation.
Attention experiments
The attention suite asks when an agent should answer, stay quiet, raise a blocker, or hand work over. It uses the same independent ACP endpoints as ordinary runs. An agent must return its own speak or pass decision. The lab never creates a pass by suppressing a prompt or choosing which peer is allowed to answer.
python3 -m experiment_lab suite-prepare examples/attention/suite.json \ --bindings /path/to/private-bindings.json --split calibration \ --output private/attention-calibration --max-parallel 2 python3 -m experiment_lab suite-prepare examples/attention/suite.json \ --bindings /path/to/private-bindings.json --split held_out \ --output private/attention-held-out --max-parallel 2 python3 -m experiment_lab suite-run private/attention-calibration python3 -m experiment_lab suite-run private/attention-held-out python3 -m experiment_lab suite-report private/attention-held-out
Prepare both splits before inspecting model outputs. Preparation makes no model calls and freezes every case, expected action, condition, endpoint binding and driver hash. suite-run resumes unfinished work without repeating completed or uncertain prompts. A changed driver or plan requires a new experiment. Raw prompts, actual decisions, cancellation receipts, transcripts, evaluator receipts and HTML/JSON reports remain under the private output folder.
The supplied suite has two calibration cases and nine held-out cases, including direct messages, human-to-human exchanges, named requests, covered answers, ownership offers, an unaddressed blocker, one-answer questions, interrupted work, and a small implemented-and-reviewed artifact. Alex, Robin and Casey are entirely fictional participants, with no personal profiles supplied; authored setup lines are labeled scripted_context and are excluded from contribution and artifact counts. Only actual ACP replies count as observed behavior. The expected actions are operator hypotheses, not ratings from the real people or proof that the wording felt natural.
Three explicit conditions compare the old general instruction with selective participation, then selective participation with staggered turns. Configure this per scenario or suite condition:
{
"attention": {
"policy": "selective",
"scheduling": "staggered",
"ambient_threshold": "material",
"duplicate_window": 8,
"direct_reply": true
}
}baseline preserves the general “contribute if useful” instruction. selective adds explicit expectations for direct replies, ownership, useful silence, avoiding repetition, and material blockers. ambient_threshold can be material or relevant; the duplicate window is 1–100 visible messages. These are client instructions, not a permissions system or runtime scheduler. Existing scenarios without attention retain simultaneous execution and their existing behavior.
With simultaneous, all participants see the same published snapshot. With staggered, the declared participant order is used and each completed contribution is delivered before the next opportunity. Every listed participant is still prompted. There is no hidden peer coordinator, private draft exchange, or selected winner. Ordering is an experimental condition because later participants receive more information. Private role facts and pass reasons are never shown to peers.
recheck starts the drafts together, then asks the same agent to reconsider its own unpublished draft if the public room changed before delivery. The extra prompt contains the updated public room and that agent's draft only. Its fresh speak or pass is recorded alongside both inputs and outputs. It consumes the same total model-call budget. Interrupted or uncertain checks stay unpublished; they are not counted as successful silence or silently retried.
examples/attention/recheck-regression-suite.json compares all three scheduling conditions over five previously observed cases. It labels them calibration, not fresh holdouts. Set --repetitions 3 when preparing it to run 45 cases. Its participant_order: "rotate" counterbalances first-speaker position across repetitions while keeping each repetition's order identical across conditions. The report records extra publication calls and their latency. Use new held-out scenarios and actual human feedback before making broader quality claims.
examples/attention/fresh-holdouts-suite.json supplies four additional authored cases: two distinct named requests, thinking aloud without a request, a material correction to stale status, and a factual question needing just one reply. Prepare with --split held_out --repetitions 2 for 24 runs. Freeze these cases before inspecting new outputs; use fresh cases for later independent evaluation. Human ratings remain separate from the expected-action checks.
The report shows required replies and useful silence separately. A failed, cancelled, missing or ambiguous turn earns no silence credit; a missing required reply remains a miss even when the transport failed. Speech alone does not prove the request was satisfied. For the work case, a separate operator-owned process checks the assigned Builder’s exact delivered function against twelve cases; scripted code and another speaker’s replacement cannot satisfy that check. Fresh sessions do not guarantee isolated persistent agent memory. Repeated trials and real human observation are still needed before claiming a better experience.
A standalone lab for observing independent agents collaborating through ordinary ACP endpoints. Define a scenario, connect the participants, run it, inspect exact contributions and delivery receipts, and compare repeated runs. Nothing depends on a fleet manager or an agent's private database.
The lab is a conversation experience of its own. It does not pretend to be Slack, and a direct ACP attachment does not acquire a Slack adapter's context or authority. Existing Slack trial recordings can be imported and compared as a separate experience.
Start locally
Python 3.11 or...
Excerpt shown — open the source for the full document.