Skip to content

Resource model

Kognition resources use apiVersion, kind, metadata, spec and status. Authors declare desired state in spec; the control plane records observations and execution results in status.

apiVersion: kognition.dev/v1alpha1
kind: Agent
metadata:
name: example-agent
namespace: team-a
spec:
modelRef:
name: approved-chat-model

This fragment illustrates a model reference. It is not a complete installation, provider binding or authorization policy.

Configuration and execution

ResourceRole
AgentDescribes an agent’s model, instructions, runtime and optional capabilities.
AgentInstanceRepresents an agent execution instance and its session state.
AgentJobCoordinates requested agent work and its execution attempts.
WorkflowDefines orchestration steps and dependencies.
WorkflowRunRecords a particular workflow execution.
Model and ModelClassBind a configured model and classify its provider capabilities.
PromptStores reusable instructions referenced by workloads.

An Agent definition is not itself proof of a successful invocation. An accepted resource write, a healthy runtime, an approved action and a completed request are different observations.

Capabilities and authorization

  • Models: Model references select a model; ModelGrant resources govern access.
  • Tools: ToolClass and Tool resources describe capabilities; grants and policies control who can invoke them.
  • Memory: classes, claims and volumes describe storage; grants and gateway capabilities govern access.
  • Knowledge: classes, bases, claims and index resources describe ingestion and retrieval configuration and execution.
  • Identity and governance: AgentIdentity, roles, bindings, communication policies, quotas and approval resources constrain workloads.

A reference does not automatically grant access. Runtime authentication, capability scope and provider credential isolation remain separate concerns.

Reconciliation and status

Controllers repeatedly compare desired and observed state. Some operations complete asynchronously or depend on an external provider.

When diagnosing a problem:

  1. Confirm the selected backend and namespace.
  2. Inspect the resource’s status and conditions.
  3. Inspect related execution resources and events.
  4. Check the relevant grant, policy and provider configuration.
  5. Preserve failed attempts before applying a recovery procedure.

Do not replace immutable execution evidence or strip finalizers to make a status look healthy.

Namespaces and scope

Namespaced resources belong to a workload namespace. Cluster-scoped classes provide shared configuration. Cross-namespace access needs the documented authorization path; matching names do not establish a trust relationship.

Use the canonical Go registrations and Kubernetes API definitions for the current resource surface. The resource interaction map provides reviewed relationships; its recorded scope and date apply.

Continue with First agent, or use the reference index for a specific subsystem.