Upcoming in AgentFlow4J: Governed Agent Execution #18
Replies: 2 comments 5 replies
|
@jiangxingfan1-coder Thanks for testing this against the released 1.0.1, and for publishing a fixture that states its own limits. What you observed is the intended behaviour: the gate is checked before the node runs, so the node has executed zero times when the run pauses, and resume(id, ResumeOptions.ofApproval(...)) runs it once. This is guarantee G-04 on the validation page, which lists the tests behind it. The 403 sits below AF4J: the graph only sees the ChatClient you give it. In your setup the transport is the JDK HttpClient, which defaults to HTTP/2 and asks for an h2c upgrade on a cleartext connection. Pinning HTTP/1.1 on that client, as you did, is the right fix for a gateway that refuses the upgrade. If you take the fixture further to JDBC and a restart: on 1.0.1, JdbcCheckpointStore.createTableIfMissing() fails on PostgreSQL and MySQL. It is fixed on main; until the next release, create the agent_checkpoint table with a migration. |
Uh oh!
There was an error while loading. Please reload this page.
We're working on the next major direction for AgentFlow4J: controlled and governable AI workflows.
The goal is simple:
AI agents should not execute actions implicitly.
Upcoming features focus on:
Planned first steps:
ToolPolicy
Allow or deny tools per agent.
java ToolPolicy policy = ToolPolicy.builder() .deny("shell.execute") .allow("web.search") .build();
ApprovalGate
Pause execution and require human approval before sensitive actions.
Built on top of AgentFlow4J checkpoints + resume support.
text Agent ↓ Sensitive action ↓ Workflow paused ↓ Approval required ↓ Resume execution
StatePolicy
Control read/write access to shared workflow state.
java StatePolicy policy = StatePolicy.builder() .allowRead("customer.summary") .allowWrite("draft.response") .denyWrite("billing.status") .build();
The focus is to keep the model:
Not a giant policy engine.
Not autonomous-agent magic.
Just governed execution for real-world AI workflows.
Feedback welcome.
All reactions