TL;DR: AI agent frameworks are moving into production, with TypeScript, tool calling, memory, structured workflows, and integrations becoming the core primitives for autonomous workflows according to WorkOS. Mastra’s discussion with WorkOS at HumanX 2026 highlights how the governance challenge is no longer just building agents, but deciding how their identities, access, and runtime actions are controlled once they reach production.
Editorial analysis by NHI Mgmt Group, based on content published by WorkOS: “Abhi Aiyer on building mastra and the future of AI agent frameworks”.
Key questions
Q: How should security teams govern agentic AI as it moves into production?
A: Security teams should govern agentic AI as a class of non-human identity, not as a generic application feature.
Q: Why do TypeScript-based agent frameworks change identity risk for builders?
A: They change risk because they lower the friction of putting agentic behaviour into the same production stack that already handles user sessions, APIs, and service access.
Q: What breaks when tool calling and memory are not bounded in AI agents?
A: Tool calling and memory become uncontrolled delegation mechanisms when they are not bounded by task scope, execution limits, and review points.
Practitioner guidance
- Define agent authority before framework adoption Document which tools, APIs, and internal services an agent may call, and tie those permissions to a specific workflow scope rather than a reusable application-level grant.
- Separate runtime context from standing access Treat memory and persisted context as part of the security boundary, especially when the agent can reuse prior state across tasks or sessions.
- Require approval gates for high-risk actions Introduce explicit human or policy checkpoints before an agent can change data, trigger deployments, or invoke irreversible downstream operations.
Bottom line: AI agent frameworks are becoming production infrastructure, which shifts the security question from whether agents can be built to how their runtime authority is constrained.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Agent frameworks are turning identity design into a build-time decision: once autonomous workflows sit inside the same application stack as production services, identity boundaries cannot be deferred to a later governance phase. The article shows that developers want familiar tooling, but familiarity also means agent authority can inherit existing assumptions about trust, execution, and service access. Practitioners should treat framework selection as an access-model decision, not only an engineering preference.
A question worth separating out:
Q: How do teams decide whether an AI agent needs human approval?
A: Use the sensitivity of the action, not the cleverness of the model, as the decision point. If the agent can change records, move funds, send external messages, or access regulated data, human approval or an independent policy engine should remain in the path. The more irreversible the action, the less autonomy the agent should have.
👉 Read our full editorial: Mastra and the agent framework race are reshaping AI tooling