Workshop Lab Guide¶
Lab 1 - Native ACS Policy¶
Files
labs/lab1_first_policy.pylabs/lab1-manifest.yamllabs/lab1-policy.rego
Goal¶
Run a native manifest and observe allow and deny verdicts for tool-shaped input.
Steps¶
- Read the manifest and identify the
inputintervention-point binding. - Read the Rego policy and identify the three deny conditions.
- Run:
- Confirm
execute_code,write_database, and the over-budget read are denied. - Add one new deny condition to
lab1-policy.rego, rerun the script, and explain which input field the policy reads.
Discussion¶
- Why does the manifest own the policy binding?
- Why does
HostSessionown counters? - What would happen if the policy dispatcher or OPA process failed?
Lab 2 - Multi-Agent Trust¶
File
labs/lab2_multi_agent_trust.py
Goal¶
Create two AgentMesh identities, evaluate trust, build reputation, and verify revocation.
Steps¶
- Complete
create_agents()with twoAgentIdentityvalues. - Complete
attempt_handshake()with the required capability and trust threshold. - Record positive events in
build_trust(). - Revoke the initiator and verify the next handshake fails.
- Run:
Discussion¶
- Which controls belong to AgentMesh rather than ACS?
- Why must policy evaluation and identity verification remain separate?
- Which audit fields are needed to reconstruct a cross-agent decision?
Wrap-up¶
The two labs demonstrate separate control planes:
| Control | Owner |
|---|---|
| Policy definitions and intervention points | Native ACS manifest |
| Session counters | HostSession |
| Agent identity and trust | AgentMesh |
| Framework lifecycle ordering | Agent OS adapter |
| Resource and network isolation | SandboxConfig |
Continue with the Quickstart and Framework Integrations.