AgentFLOW Architecture

AgentFLOW Architecture A architecture diagram generated by Archify. Apache Jena Fuseki Ontology Sources Orchestration Engine · Bash + curl + jq · Architecture component · Stateless Orchestration Engine Bash + curl + jq Stateless TBox · Definitions (read-only) · Apache Jena Fuseki TBox Definitions (read-only) ABox · Runtime state (read/write) · Apache Jena Fuseki ABox Runtime state (read/write) SHACL Validator · Pre-flight checks · Architecture component SHACL Validator Pre-flight checks Goose CLI · Fresh context per task · Architecture component · Ralph Loop Goose CLI Fresh context per task Ralph Loop Recipes · YAML task definitions · Architecture component Recipes YAML task definitions sBPMN Ontology · github.com/sBPMN/2.0 · Ontology Sources sBPMN Ontology github.com/sBPMN/2.0 CTO Ontology · Point-Topic/cto-ontology · Ontology Sources CTO Ontology Point-Topic/cto-ontology AgentFLOW Ontology · agentflow.ttl (local) · Ontology Sources AgentFLOW Ontology agentflow.ttl (local) Guardrail Gateway · Human approval gate · Architecture component Guardrail Gateway Human approval gate SPARQL SELECT SPARQL UPDATE validate goose run --recipe load block / approve fetch at load Legend Backend Database Cloud Security External

Orchestration

  • • Stateless Bash engine polls Fuseki for active tokens
  • • SHACL validates structure before each task executes
  • • Guardrail Gateways block until human approval

Task Execution

  • • Each task runs via Goose CLI in a fresh context
  • • Ralph Loop pattern prevents context degradation
  • • YAML recipes define task instructions

Knowledge Graph

  • • TBox holds read-only process definitions and ontology
  • • ABox holds mutable runtime state and audit trail
  • • sBPMN + CTO fetched from GitHub; AgentFLOW extensions local