AI as a native plane

RAG as canonical state.

Knowledge corpora attach to entities and surface to agents through the same canonical state every other plane consumes. The CorpusEmbeddingPipelineHostedService re-embeds when content changes. Retrieval flows through capability-aware vector search (native pgvector where supported, companion index where not). Agent memory is immutable with supersession — never hard-deleted in normal flow.

The pipeline

Embed. Retrieve. Govern.

CorpusEmbeddingPipelineHostedService

A canonical hosted service. Watches corpus content, re-embeds on change, lands vectors in the configured vector store. Branchable, observable, capability-aware — same shape as every other plane.

Vector store routing

Capability-aware: native pgvector when present, companion vector index when not. Same retrieval contract; different physics underneath. Operators see the maturity gate.

Knowledge attaches to entities

Corpora are first-class entities. Attach to a customer, a product, a project. Federation rules apply. Capability grants apply. Field security applies.

Immutable agent memory

AgentMemoryMutation.Invalidate sets ValidUntil + SupersededByFactId. Memory rows are never hard-deleted in normal flow. Hard delete is reserved for legal compliance via LegalDeleteAt + a retention sweeper.

Recall reads canonical state

Agent recall hits canonical memory and corpus indexes — never logs or debug traces. Anti-pattern #77 applies. The truth comes from the source of truth, not paraphrased history.

Sub-agent narrowing

Sub-agent memory scope can only narrow — never widen. Parent's grants intersected with child's override + agent definition policy + ProjectCapabilityGrant authority.

Hosted service
Embedding pipeline

Re-embeds on change

Capability-aware
Vector retrieval

Native or companion, never silent

Immutable
Agent memory

Supersession, not deletion

Narrows only
Sub-agent scope

Never widens

RAG that lives in your data plane.

Attach a corpus to an entity. Vadyl handles embedding, retrieval, governance, supersession. Agents see the corpus through the same canonical state your CRUD does.