Well I think the hard part you're running up against here is right now almost nothing has a consistent notion of an action.
E.g. bash is turing complete, so trying to bound it is a very complex problem! Meanwhile high XX% of what you want a coding agent to do in bash can be bounded by piped configurations of sed awk and grep.
Unbounded agents are interesting with a HITL, but for fully autonomous agents my perspective is it's your job as a developer to specify the action space with a more restricted set of typed actions, the granularity of which may be very different depending on the task.
E.g. there is a curve between (single agent, bag of tools, compaction) -> (micro actions, highly parameterized tools, bounded contexts and nesting) where micro actions may be
"Given a social security number, full name"
-> ask for account number
-> ask for routing number
-> ask for 2FA
-> ask for recovery questions
--> (requires account, routing, 2FA | recovery) ask for recipient account number
--> (requires account, routing, 2FA | recovery, recipient account) ask for recipient routing number
and most existing implementations are closer to the former than the latter, or an explicit chain of arbitrarily bounded actions rather than a dynamic configuration of the action space.