Microservices Agentic Infrastructure

Project Nexus

2026 Sebastián Samaruga. 

Latest version available at:

https://github.com/sebxama/sebxama/raw/refs/heads/main/Objective.docx

See also:

https://sebxama.blogspot.com/2026/03/algebraic-embeddings.html

This is an appendix of topics related the previous work to narrow the implementation to an LLM driven approach. Refer to the full document for context.

Microservices Agentic Infrastructure (draft WIP):

Resources (Pluggable Backends Ingestion / Sync Integrations)

Knowledge Graph: Resources Ingestion / Sync. Blackboard Pattern.

Message Broker. Resources CRUD Events / Schema Patterns.

Message Format: RDF Quads.

Message Events / Schema Patterns Listeners / Producers (Augmentation / Agents).

Listeners / Producers:

Events IO Context (incremental dialog across events).

Helper Services / Tools (Registry, Naming, Index).

Custom Embeddings.

Augmentation : Listener, Producer

Consumes KG CRUD Events. by Schema Patterns.

Publishes to Knowledge Graph.

Aggregates (entity types / roles, contexts)

Aligns contexts (ontology entity matching, links / attributes prediction, context roles)

Activates previous / running / possible behaviors (interactions: entities in roles in contexts / use cases types / instances)

Publishes augmentation results for further Augmentation.

Publishes aggregated / aligned activation use cases data, contexts and interactions (actors, roles and executions) metadata (events) for Agents to build system prompt (syntax, generative grammar productions constrained by metadata context parameters). Defines actor / roles behaviors in contexts (operations / transforms, business logic). 

Agents : Listener, Producer

Consumes KG CRUD Events. by Schema Patterns.

Publishes to Knowledge Graph.

Structured Inputs / Outputs: Schema Patterns Signatures.

Workflows defined by IO Events Schema Patterns Signatures. Auto (on event) or manual (waiting user event).

Implements activation use cases over aligned context roles of aggregated data.

Have tools for accessing and modifying augmented Knowledge Graph data (events).

Consumes aggregated / aligned activation use cases data, contexts and interactions (actors, roles and executions) metadata (events) for Agents to build system prompt (syntax, generative grammar productions constrained by metadata context parameters). Defines actor / roles behaviors in contexts (operations / transforms, business logic). 

Interactions: conversational contextual state dialog / exchange constrained by possible system prompt (grammar) productions and context state. Actual "prompts" querying / executing possible behaviors. Use case and context state driven possible prompt completions (choose from / input values).

Publishes interaction execution for further augmentation.

APIs: Exposes a Dynamic HATEOAS Interactions Endpoint. View past executions data and status and running / manual (waiting user event) executions. Start new possible executions.

Syndicated API Gateway: Agents Endpoints behaviors ordered according they workflows (executed, running, start new workflow).

Agents are instances of Augmentation use cases inference. They rely on Augmentation and helper Services (tools). And become "discoverable" tools for Augmentation and other agents.

Templates / Views / Transforms: Augmentation tools for building Agents context artifacts (prompts, tools, etc). Generative Grammar Tools: build “system prompts” (declarative use case business logic) and “interaction prompts” (use case interactions executions dialog completions grammars).


Comments