AgentFLOW Engine Loop

AgentFLOW Engine Loop A workflow diagram generated by Archify. 01 / Orchestration Engine EX / Human Operator Poll + Validate Execute Advance Poll Token · SPARQL SELECT · Orchestration Engine › Poll + Validate Poll Token SPARQL SELECT SHACL Validate · Pre-flight · Orchestration Engine › Poll + Validate SHACL Validate Pre-flight Execute Node · Task or Gateway · Orchestration Engine › Execute · Fresh context Execute Node Task or Gateway Fresh context Approval Gate · Block + poll · Human Operator › Execute · Guardrail Approval Gate Block + poll Guardrail Advance Token · SPARQL UPDATE · Orchestration Engine › Advance Advance Token SPARQL UPDATE needs approval APPROVED Legend Agent logic Policy Context / trace

Engine Loop

  • • Stateless Bash polls Fuseki for active tokens
  • • SHACL validates graph structure before execution
  • • After advancing, the engine loops back to Poll

Task Execution

  • • AgenticTask: Goose CLI runs recipe in fresh context
  • • ExclusiveGateway: SPARQL evaluates XOR conditions
  • • Output stored on TaskInstance in ABox

Gateway Enforcement

  • • GuardrailGateway blocks until human approval
  • • APPROVED advances the token; DENIED halts the process
  • • Graph edges are law — not suggestions