Summary
docs/integration/agt.md documents AGT → TRACE wiring but every consumer must write ~50 lines of manual boilerplate to connect govern() output to TraceConfig. A first-party TraceAGTAdapter class eliminates this and turns the Level 0 → Level 2 upgrade path into a one-liner for any AGT user.
What to add
- New file:
src/agentrust_trace/adapters/agt.py — TraceAGTAdapter class that wraps govern() + TraceConfig setup.
- Public export:
from agentrust_trace.adapters import TraceAGTAdapter.
- Handles: Level 0 (software-only), Level 1 (TPM), Level 2 (SEV-SNP/TDX) — auto-detected from AGT's TEE provider.
- Tutorial:
docs/tutorials/agt-adapter.md showing the one-line upgrade path.
- Update
docs/integration/agt.md to reference the adapter as the recommended path.
Interface
from agentrust_trace.adapters import TraceAGTAdapter
adapter = TraceAGTAdapter(tee_provider="auto")
trace_record = adapter.from_govern_result(govern_result, session_id="s1")
Why
The biggest friction for AGT users adopting hardware governance is the wiring cost. A first-party adapter removes that friction entirely. Every AGT user becomes a natural TRACE adopter.
Acceptance criteria
Related
- Part of AGT dependency gap analysis:
Platform/agt-dependency-gaps.md
Summary
docs/integration/agt.mddocuments AGT → TRACE wiring but every consumer must write ~50 lines of manual boilerplate to connectgovern()output toTraceConfig. A first-partyTraceAGTAdapterclass eliminates this and turns the Level 0 → Level 2 upgrade path into a one-liner for any AGT user.What to add
src/agentrust_trace/adapters/agt.py—TraceAGTAdapterclass that wrapsgovern()+TraceConfigsetup.from agentrust_trace.adapters import TraceAGTAdapter.docs/tutorials/agt-adapter.mdshowing the one-line upgrade path.docs/integration/agt.mdto reference the adapter as the recommended path.Interface
Why
The biggest friction for AGT users adopting hardware governance is the wiring cost. A first-party adapter removes that friction entirely. Every AGT user becomes a natural TRACE adopter.
Acceptance criteria
TraceAGTAdapterinsrc/agentrust_trace/adapters/agt.pyagentrust_trace.adaptersdocs/tutorials/agt-adapter.mddocs/integration/agt.mdupdatedRelated
Platform/agt-dependency-gaps.md