Boundary
Graph state may carry Vira runtime identity, not control-plane secrets.
FRAMEWORK
Resolve around graph execution while preserving graph/run correlation and keeping LangGraph as the orchestrator.
EXECUTION BOUNDARY
IDENTITY PRESERVED
SUPPORTED OPERATIONS
resolve before a governed node or graph execution
store returned Vira context in run state
pass the context unchanged to after-node tracing
correlate runtime output with the exact resolve identity
IMPLEMENTATION HOOK
This example mirrors the repository documentation. The exact API contract remains in Docs and source.
const hooks = createLangGraphHooks(vira, {
context: { kind:"agent", host:{ name:"langgraph", runtime:"node" }, modelTarget:{ provider:"openai", model:"your-model-id" } },
});
const context = await hooks.beforeNode(resolveRequest);
const output = await graph.invoke(input);
await hooks.afterNode(context, output);SECURITY BOUNDARY
Graph state may carry Vira runtime identity, not control-plane secrets.
Higher-authority behavior still resolves in the control plane before projection.
LIMITATIONS