Context Library

Yanzi Context Library

Definition

The structured set of five composable operational primitives — Packs, Seeds, Workflows, Rules, and Roles — that together form the governed context infrastructure for AI-assisted engineering sessions.

Definition

The Yanzi Context Library is a structured set of five composable operational primitives that together form the governed context infrastructure for AI-assisted engineering sessions. The five primitives are:

  • Packs — versioned, bundled domain context
  • Seeds — initial governance ground truth
  • Workflows — governed procedural definitions
  • Rules — operational constraints
  • Roles — bounded authority definitions

Each primitive is an append-only artifact in the Yanzi corpus. Each serves a distinct governance function. Together, they compose the complete operational context for an AI-assisted engineering session.

Not an AI Abstraction

The Yanzi Context Library is an operational engineering construct, not an AI product feature. Its five primitives are analogous to familiar engineering infrastructure:

  • Seeds are to context what initial migrations are to a database schema
  • Rules are to context what .eslintrc or CODEOWNERS files are to code governance
  • Roles are to context what IAM policies are to infrastructure access control
  • Packs are to context what packages are to dependency management
  • Workflows are to context what runbooks are to operational procedure

These are operationally grounded concepts. They happen to be consumed by AI models in Yanzi’s implementation, but their design is not driven by AI product requirements.

Composability

The five primitives are designed to be composed. A complete session context is typically assembled from:

  • One or more Seeds (the governed baseline)
  • An applicable Pack (the domain context)
  • A Role (the authority scope for this session)
  • Active Rules (the current operational constraints)
  • Optionally, a Workflow (if the session follows a defined procedure)

This composition is performed by deterministic context composition — producing a verifiable, reproducible context record for the session.

Operational Governance Layer

The Context Library is the primary mechanism by which Yanzi provides governance-first workflows. Without the Context Library, Yanzi is an append-only capture tool. With the Context Library, it is a governed context infrastructure.