Bedrock multi agent
Can recorded trajectories show Bedrock supervisor wiring, task order and teardown with zero live AWS calls?
What question this set answers, and who needs it
A coordinator delegates bounded questions to specialists. A specialist's answer is evidence for the coordinator, not a transfer of authority to make a broader business decision.
A Bedrock supervisor selects collaborators inside the managed service, in the same way a support coordinator asks billing and shipping specialists for bounded facts. This set exercises the kit's host-owned wiring, task order, YAML contracts, budgets and evidence boundaries. All streams are synthetic recorded trajectories: no model chooses a collaborator.
The persona on every notebook is a solutions architect. Every route is recorded, not a capture of a real account, with a call cap of 0 live AWS requests and no browser checkpoint. The fixture is one synthetic USD charge and shipment case. agents.yaml contains the coordinator and two specialists. tasks.yaml contains two tasks.
How to run it
From the kit root, the README gives this setup. The package pins boto3 1.43.105. Actual resolved dependencies are recorded in versions.json. The commands make no project configuration changes.
uv venv .venv-bedrock-multi-agent --python 3.12
uv pip install --python .venv-bedrock-multi-agent/bin/python -e . -e packages/bedrock-agents nbconvert ipykernel nbformat ruff
.venv-bedrock-multi-agent/bin/python -m ipykernel install --user --name bedrock-multi-agent
.venv-bedrock-multi-agent/bin/python examples/bedrock-multi-agent/generate_fixtures.pyPython is 3.12. The kernel name is bedrock-multi-agent. generate_fixtures.py regenerates the fixture files.
From the kit root, execute the set with:
python3 ../recohut-skills/skills/agentcore-set-run/scripts/run_set.py --kit . --set bedrock-multi-agentFrom the recohut-labs root, use python3 ../recohut-skills/skills/agentcore-set-run/scripts/run_set.py --kit ../recohut-kit --set bedrock-multi-agent. No pytest is run by this set. Attempts, retained failed notebook versions, checker output and versions live in the verification ledger.
The README status dated 2026-10-20 says all eight notebooks were re-executed in a fresh kernel on the current kit source with 0 error cells and 0 unexecuted cells, and that each refusal or count named in a Proof field is asserted on the computed value.
The notebooks in order
| Notebook | What it does | Recorded output |
|---|---|---|
01-supervisor-wiring.ipynb | Associates a native collaborator, reuses an identical config without a second write, and reconciles a dedicated exact-alias IAM policy, including refusals. | yes |
02-supervisor-router-modes.ipynb | Places the two native mode wire values and reads attributed recorded collaborator traces. | yes |
03-supervisor-tasks.ipynb | Renders tasks, threads prior output across host sequential requests, and sends the sample-style prompt as one allinone request. | yes |
04-yaml-specs.ipynb | Loads sample-shaped YAML into definitions and refuses an unknown key and an unregistered tool. | yes |
05-support-journey.ipynb | Runs a synthetic coordinator plus billing and shipping, parses native traces, and admits evidence. | yes |
06-delegation-governance.ipynb | Refuses a zero call allocation before dispatch, flags a child token limit after the response, and applies evidence allowlists. | yes |
07-interrupted-tasks.ipynb | Stops later dispatch when a guardrail intervenes, then continues only by submitting the remaining work. | yes |
08-cascade-teardown.ipynb | Deletes one supervisor and two collaborator aliases through the package lifecycle and checks modeled absence. | yes |
The saved files record 11 outputs for notebook 01, 5 for notebooks 02, 03, 04, 05, 06 and 08, and 4 for notebook 07.
What the recorded outputs show
Each notebook prints route: recorded; real AWS calls: 0; model decisions: synthetic.
Notebook 01 prints collaborator: billing history relay: False, then created: True reused without write: True. A duplicate name prints duplicate refusal: Duplicate collaborator name. The receipt line is recorded calls: {'bedrock-agent.list_agent_collaborators': 2, 'bedrock-agent.associate_agent_collaborator': 1}. The dedicated policy actions are bedrock:GetAgentAlias and bedrock:InvokeAgent. Reconciliation prints first reconciliation changed: True, second reconciliation changed: False, and permission calls: {'sts.get_caller_identity': 2, 'iam.get_role_policy': 2, 'iam.put_role_policy': 1}.
Notebook 02 prints modes: SUPERVISOR SUPERVISOR_ROUTER and native mode creation paths validated: 2. The recorded stream prints status: completed trace roles: ('billing', 'shipping', 'supervisor') and limit: recorded traces do not compare live supervisor/router decisions. The boundary cell prints AWS live: skipped - no reliable remaining shared budget allocation and AWS resources created by this notebook: 0.
Notebook 03 prints task: Reconcile SYN-42. Expected output: Difference in USD. Sequential dispatch prints invocations: 2 prior output threaded: True and statuses: ['completed', 'completed']. The notebook text says the printed True is a constant, and that the asserts check Difference: USD 10 appears in the second request's inputText and does not appear in the first. The single-request run prints allinone calls: 1 ordering enforcement: prompt-only within this request.
Notebook 04 prints roles: ['billing', 'shipping', 'supervisor'] collaborators: ('billing', 'shipping') and task: Reconcile order SYN-42 from billing-ledger. Expected output: Charge difference in USD with evidence reference. The unknown key bypass_approvals and the tool name unapproved_refund both print bedrock_agents.spec_invalid.
Notebook 05 prints case: SYN-101 synthetic charge difference USD: 10 and roles: ['supervisor', 'billing', 'shipping']. The trajectory prints native terminal status: completed, fixture response: Billing and shipping are both done., and delegations: [('billing', 1, ()), ('shipping', 1, ())]. Admission prints admitted: ('billing-ledger',) rejected: ('shipping-ledger', 'invented-refund'), then semantic outcome: unverified; generic fixture says done, not a correct case-specific customer reply and external refund effects: 0 live model routing: unverified.
Notebook 06 prints budget refusal: bedrock_agents.budget_exhausted and provider requests before refusal: 0. The child receipt prints child tokens: 102 exceeded: ('tokens',) and limit: token allowance cannot preempt a managed-service child mid-invocation. Further lines are unknown collaborator: bedrock_agents.collaborator_unknown, missing budget: bedrock_agents.budget_missing, and evidence boundary: (('billing-ledger',), ('secret-note',)).
Notebook 07 prints stopped at: inspect status: guardrail_intervened and dependent task dispatched: False. The continuation prints continuation status: completed and boundary: no automatic durable checkpoint/resume is claimed by task orchestration.
Notebook 08 prints recorded teardown queued: supervisor, billing, shipping and recorded absent handles: 3. The notebook text says each proof lists get_agent:ResourceNotFoundException and list_agents:absent, with two bedrock-agent.disassociate_agent_collaborator calls and three bedrock-agent.delete_agent calls. A later cell prints live resources created by this set: 0, tagged inventory sweep: not performed; this is recorded teardown proof only, and consumed live units: not applicable; 0 AWS live requests.
Notebooks 03, 04, 05, 06, 07 and 08 print the same AWS-live skipped line and AWS resources created by this notebook: 0 that notebook 02 prints.
What is not shown or not run
All eight notebooks have recorded outputs in the saved files. The description not run in the saved file fits none of them.
The README says no AWS call was made, so AWS collaboration, live routing and the case-specific customer outcome remain unverified. AWS live is skipped because no reliable remaining allocation from the shared USD 2 task budget was available for this continuation. No guard is bypassed and no live resource is created. Notebook 8 validates deletion and disassociation and modeled absence, not live account inventory. Live supervisor versus router behavior, the synthetic support answer's semantic correctness, service-side token preemption and live cleanup remain unverified. Tokens in the fixtures are synthetic, and the README infers no cost and no consumed live units. Governance rejects unlisted evidence and limits host dispatch, but it cannot stop an already-running managed-service child call. Notebook 01 runs the permission helper on Stubber: the first reconciliation writes the dedicated policy and the second identical run does not write again. No live permissions were changed by this set.
Notebook 02 says it does not exercise router mode handing a request to a single collaborator. Control-plane requests use botocore Stubber. Runtime event streams use the package's native-shape-validated RecordedRuntimeClient because Stubber cannot return iterable EventStream output. The README calls that a documented limitation, not an AWS capture.
Notebooks 02 through 08 include optional "Try it yourself" probes. The saved outputs are the cells before those probes.
Where it fits in the kit
recorded_journeys.py only creates explicitly recorded handles and binds synthetic aliases. The README says no sample implementation is vendored. Kit sequential executes one host-controlled request per task and threads prior outputs. The sample sequential prompt is allinone in the kit.
The notebooks import these modules:
| Module | Notebooks that import it |
|---|---|
recohut_kit_bedrock_agents.recorded | 01, 02, 05, 06, 08 |
recohut_kit_bedrock_agents.recorded_runtime | 02, 03, 05, 06, 07 |
recohut_kit_bedrock_agents.collaboration | 01, 03, 04, 05, 06, 07 |
recohut_kit_bedrock_agents.contracts | 01, 02, 08 |
recohut_kit_bedrock_agents.service | 01, 02, 08 |
recohut_kit.runtime | 01, 04, 06 |
recohut_kit.harness.delegation_contracts | 03, 05, 06, 07 |
recorded_journeys | 02, 03, 05, 06, 07 |
Setup cells import sys and pathlib. Notebooks 01 and 05 also import json. Notebook 04 loads data/agents.yaml and data/tasks.yaml and does not import recorded_journeys.
How is this page?
Last updated on