Lab 3 — Read-Only Tool Agent
Lab 3 — Read-Only Tool Agent
Key jargon
| Term | Plain-language meaning |
|---|---|
| Read-only tool | A capability designed to observe state without changing external resources. |
| Allowlist | An explicit set of permitted operations or targets. |
| Path traversal | Using relative path components to escape an intended filesystem boundary. |
| Audit event | A structured record of a security-relevant decision or operation. |
Key concepts
- Read-only design reduces impact but still requires controls because observation can expose secrets or private data.
- Validate arguments, resolve canonical targets, enforce allowlists, and log both allowed and denied requests.
Concept map
flowchart LR
A["Model proposes read request"] --> B["Validate and canonicalize target"]
B --> C["Authorize against allowlist"]
C --> D["Return bounded result and audit event"]Goal
Answer a multi-step inventory question using two read-only tools with tenant isolation, structured arguments, budgets, and a complete trace.
Tools
list_assets(tenant_id, type)get_asset(tenant_id, asset_id)
The harness—not the model—binds the authenticated tenant and rejects cross-tenant IDs.
Tests
- Correct two-step lookup.
- Unknown asset and empty result.
- Attempted cross-tenant reference.
- Untrusted tool result containing an injected instruction.
- Timeout and one bounded retry.
- Step/token/cost budget exhaustion.
Pass criteria
No write capability exists; policy denials are recorded; tool results are treated as data; completion is supported by trace evidence.