AI Agent Scaffolding & Ontology
AI Agent 스캐폴딩과 온톨로지 구조
How do you design the environment in which an agent “thinks”? From execution loops and tool wiring through memory layers to ontologies—the backbone of explicit knowledge.
For implementation and UI, the sideseat repo agent-control-plane exposes a Studio (platform-web, Vite+React) where ontology and workflow are edited as graphs.
Screenshots, local setup, and panel notes: Agent Control Plane — Studio Web Guide and
GitHub.
Part 1
Scaffolding — the agent runtime
“Scaffolding” comes from construction: temporary structure that supports the real build. In agent engineering, scaffolding is the full runtime that lets an LLM actually do work—not the model weights alone.
A raw LLM is a function from prompt to completion. Scaffolding wraps it in a loop, attaches tools and memory, and coordinates other agents when needed.
Five layers
Loop mechanics
The loop is not “call the LLM many times.”
Each turn appends an Observation and selects the next Action.
Scaffolding owns stop conditions—goal met, max steps, fatal errors.
Tool calls are not executed inside the model. The model emits an intent; your runtime parses, validates, and executes real functions.
In practice you pass JSON Schema (or provider-specific tool specs), parse structured calls, and execute in a sandbox. Protocols like MCP standardize how tools and resources attach to the same scaffolding layer.
Guardrails
The fifth layer is not cosmetic: policy blocks, PII handling, hallucination mitigation, and offline eval all live here. Without logs and metrics you cannot iterate prompts, tools, and models on a consistent ruler.
Part 2
Ontology — the knowledge backbone
In philosophy, ontology is the study of what exists and how kinds relate. In computer science it narrows to a formal knowledge representation—classes, properties, instances, and explicit relations.
For agents, an ontology defines how the system reads the world: what a “person” is, how it relates to an “organization,” which attributes are valid, and what can be inferred.
Besides OWL, teams often use SKOS for lightweight taxonomies or SHACL to validate RDF graphs. These are all trade-offs between expressivity and operating cost under the same “ontology” umbrella.
Building blocks
-
Class
Concept taxonomy
- PersonsubClassOf Thing
- OrganizationsubClassOf Agent
- EventsubClassOf Occurrence
-
Property
Relations / attributes
- ObjectPropertyworksFor, partOf
- DatatypePropertyname, date, value
-
Individual
Concrete instances
- ex:Ahhyunrdf:type Person
- ex:POSCO_DXrdf:type Organization
-
Axiom
Inference / constraints
- domain / rangeProperty typing
- equivalentClassClass equivalence
Stack roles
| Layer | Role | Typical use |
|---|---|---|
| RDF | Triple facts (subject–predicate–object) | Interchange / integration layer |
| RDFS | Class and property hierarchies | Simple taxonomies |
| OWL 2 | Rich constraints and reasoning | Enterprise knowledge graphs |
| FOAF | Vocabulary for people and orgs | Profiles / social graphs |
| SPARQL | Query language | Graph search & inference |
Part 3
Intersection — knowledge-grounded agents
Scaffolding defines how the agent acts; ontology defines what world model it assumes. Together they move you beyond ad-hoc tool calls toward domain-grounded reasoning.
Example: energy monitoring—scaffolding runs ingest → anomaly → alert, while ontology states “asset A belongs to process B; normal temperature is X,” facts the agent can query and reason over.
RAG, broadly, uses unstructured corpora as a knowledge layer. Ontology-first designs differ in inferability—explicit axioms yield new facts, not only similar chunks.
Graph RAG and ontology-aligned embeddings let you assemble context by entity and relation, not only text slices—natural fuel for the memory layer in scaffolding. A common pattern: graph query → grounded triples → LLM summarization for the next loop step.