LangGraph Adapter
Source references:
- https://github.com/langchain-ai/langgraph
- https://docs.langchain.com/oss/python/langgraph/interrupts
Agent contract mapping
- Graph node -> AEEF agent role execution unit
- Node metadata must include
agent_id,allowed_tools,required_gates - Checkpoint policy must align with escalation and retry limits
Hook mapping
- Pre-node wrapper ->
phase=prehook checks - Post-node wrapper ->
phase=posttrace and artifact capture - Interrupt/HITL edge ->
phase=stopescalation checkpoint
Gate enforcement points
- Conditional edges enforce gate decisions (
pass,fail,conditional) - Failed gate loops to remediation node with capped retries
- Human-approval-required gates route to explicit approval node
Handoff mapping
Graph state payload carries:
task_contextassumptionsrisksskill_usagenext_decision_required
Validate handoffs with handoff-artifact.schema.json.
Run-ledger mapping
Each node execution emits RunLedgerEntry with:
tools_usedskill_ids- node-level
gate_decisions artifact_refs