Skip to content

Graph Engineering for AI agents

How Revka connects workflow graphs, versioned knowledge graphs, provenance, audit evidence, and feedback loops — plus the boundaries between Graph Engineering, GraphRAG, and agent orchestration.

Graph Engineering is the practice of designing an AI system as explicit, inspectable graphs instead of one opaque agent loop. Nodes represent agents, tools, deterministic steps, artifacts, decisions, policies, or evaluations. Edges define dependency, routing, provenance, authority, and feedback.

The phrase is new and still carries several overlapping meanings. In current agent systems it usually refers to one or more of these layers:

  1. Execution graphs — state, nodes, fixed or conditional edges, parallel branches, loops, interrupts, and termination.
  2. Knowledge or context graphs — entities, relationships, memories, and the provenance used to assemble context for the next action.
  3. Evidence graphs — the connection from an instruction to an agent, tool call, approval, artifact, evaluation, and outcome.
  4. Improvement graphs — feedback loops in which metrics, evaluators, policies, humans, and rollback paths constrain one another.

Revka is graph-engineered across all four layers. It is not merely a visual DAG editor and it is not a GraphRAG library with an agent UI attached.

Execution graph

Declarative workflows define typed steps and depends_on edges. The validator rejects broken references and cycles, then topologically orders the graph. Conditional routes, guarded goto loops, parallel joins, map-reduce, supervisors, group chat, handoffs, and human gates are explicit runtime primitives.

Versioned knowledge graph

Kumiho stores items as immutable revision chains connected by typed edges. Workflows, sessions, goals, skills, artifacts, outcomes, trust records, and provenance remain addressable by revision-aware kref values.

Evidence graph

Workflow state, RunLog JSONL, tool calls, approvals, outputs, artifacts, costs, trust outcomes, and the SHA-256 audit chain create a traceable path from declared intent to observed result.

Reactive graph

A Kumiho revision tag can emit revision.tagged and launch matching downstream workflows. Work can therefore advance because graph state changed, without an external cron job or glue webhook.

This gives Revka two coupled forms of state: the execution state of the workflow currently moving through its nodes, and the knowledge state that persists across runs. The output of one can revise the other; a revision can in turn trigger the next graph.

Graph Engineering capabilityRevka implementation
Explicit nodes and edgesTyped StepType values and depends_on edges in operator-mcp/operator_mcp/workflow/schema.py
Graph validationDuplicate-ID checks, dependency validation, cycle detection, and topological ordering in workflow/validator.py
Branching and cyclesconditional and guarded goto steps with bounded iteration
Parallel topologyparallel with all, any, or majority joins; map-reduce fan-out; dependency waves
Human control nodeshuman_approval and human_input pause and resume workflow state
Durable continuationCheckpoints preserve running, failed, and paused state for resume or retry
Multi-agent edgesSupervisor delegation, group chat, structured handoff, and HANDED_OFF_TO provenance edges
Versioned graph stateKumiho items, immutable revisions, artifacts, bundles, typed edges, and revision tags
Reactive dataflowon_kind + on_tag triggers launch workflows from Kumiho revision events
Verifiable evidencePer-agent RunLog JSONL plus a SHA-256 chained audit log with verification
FeedbackOutcomes update agent trust; trust can inform later supervisor selection and refinement behavior

Where Revka is ahead of a typical agent graph

Section titled “Where Revka is ahead of a typical agent graph”

Many graph runtimes stop at execution topology: state + nodes + routing. Revka adds operational continuity around that graph:

  • The graph remembers its own history. Workflow definitions and outputs can be pinned to immutable Kumiho revisions instead of only the latest state.
  • The knowledge graph is active. Revision tags can become workflow triggers; memory is both substrate and event source.
  • Provenance is operational data. Handoffs, artifacts, outcomes, trust, and run records remain connected instead of disappearing into a trace viewer.
  • Governance is in the topology. Approvals, bounded loops, allowlisted tools, checkpoints, retries, E-Stop, and policy surfaces are first-class.
  • Evidence is independently verifiable. The audit chain detects later modification rather than treating observability logs as unquestioned truth.

That combination — execution graph + versioned knowledge graph + reactive edges + audit evidence — is Revka’s strongest Graph Engineering distinction.

Revka should not claim that every graph-shaped AI problem is already solved.

  • Not a GraphRAG indexing engine. Revka does not itself run Microsoft GraphRAG-style entity extraction, community detection, hierarchical community summaries, or global/local graph retrieval. Those systems can be integrated as tools or data sources.
  • No general reducer-based state API. The workflow DSL has structured outputs, variables, and typed step configuration, but it is not a drop-in equivalent to LangGraph’s arbitrary shared-state schemas and reducers.
  • Resume is not full time travel. Revka checkpoints support crash recovery, approval continuation, and retry. It does not currently expose a general UI or API for forking execution from any historical checkpoint and replaying an alternate branch.
  • Graph-wide evaluation is early. Trust scores and quality checks provide feedback, but causal credit assignment, frozen evaluation anchors, counter-metrics, and graph-level optimization remain areas to deepen.
  • The graph planes are coupled, not one universal graph. Workflow topology, Kumiho knowledge, RunLogs, and the audit chain have deliberate boundaries. A unified query spanning every plane is not yet a single built-in language.

These are useful product boundaries: Revka is a governed runtime for building and operating graph-engineered agents, not a claim to replace every graph database, retrieval pipeline, evaluator, or state-machine library.

TermPrimary concernRelationship to Revka
Prompt engineeringInstructions inside a model callPrompts live inside explicit workflow nodes
Loop engineeringKeeping one agent acting, observing, and correctingLoops are bounded nodes or subgraphs inside the larger system
Agent orchestrationCoordinating models, tools, and agentsOne plane of Revka’s Graph Engineering model
GraphRAGBuilding/querying a knowledge graph for retrievalComplementary; can supply context to Revka workflows
Context graphPersisting entities, relationships, and reasoning tracesKumiho provides Revka’s versioned context/knowledge graph
Graph EngineeringDesigning execution, knowledge, evidence, and feedback topologyThe umbrella discipline Revka operationalizes