Skip to content

Declarative Agents and Truth Boundaries (agent-manifest.v1)

Prompt engineering alone does not scale into a multi-tenant enterprise catalog. When an agent is stored as an unstructured prompt string, reviewers cannot tell which model tier it requires, how deep it traverses the knowledge graph, what kind of memory it writes, or whether it is allowed to assert authoritative facts.

ctxEco replaces ad-hoc prompt blobs with agent-manifest.v1 — a strict, schema-validated contract shared across Agent Studio, the Registry, and shareable catalog templates.


1. Anatomy of agent-manifest.v1

Every manifest declares six explicit boundaries:

  1. tier (Closed LiteLLM Alias): Must be one of fast, standard, frontier, utility, coding, or null. Raw provider model names (and non-synthesis aliases such as image or decision) are rejected at validation time.
  2. skills[]: Versioned procedural playbooks (ref + semver version) attached without duplicating prompt boilerplate.
  3. ragPolicy: Governs scopeRung (room | project | folder | tenant), hybridTopK (1..50), hopDepth (0..4), truthWeightFloor (0.0..1.0), and classAPreferred.
  4. memoryPolicy: Controls threadHistory, episodicRecall, semanticGraph, visibility (room | user), typed kinds (precedent, trajectory, constraint, topology_event), and locks writeClass to "C".
  5. toolPolicy: Lists approved internal tools, n8nWebhookSkills, external MCP schema references, humanGateOn: ["side_effect"], and locks egress to "none".
  6. persona: Structured Role–Goal–Backstory or freeform text; the server appends the clearance boundary clause dynamically at resolve time.

2. Hard Truth and Egress Invariants

Two fields in agent-manifest.v1 are non-negotiable constants:

  • memoryPolicy.writeClass === "C": Agents never assert Class A (human-asserted) truth. Only an authorized human curator in the Curation Panel promotes a source or confirms a standing graph verdict.
  • toolPolicy.egress === "none": An agent author cannot grant cloud egress inside a manifest. Egress is governed solely by tenant clearance and OPA (cloud_egress.rego).

3. Zero-Data Portability (catalog_template)

Because agent-manifest.v1 rejects undeclared fields (additionalProperties: false), a published catalog_template is sanitized by construction: it carries persona, skills, policies, and tool schema references — with zero tenant documents, zero vectors, zero graph edges, and zero private memories. Another room or tenant can install or fork the template cleanly without cross-tenant residue.