0% read on this device
Browse the curriculum

Start Here

Vision

First Principles

Operating Model

Domain Model

Agent Factory

Runtime Architecture

AI Engineering

Autonomous Workflows

Verification & Delivery

Factory Platform

Quality Engineering

Security & Governance

Case Studies

Labs

Interview Practice

Research Journal

Reference

Curriculum/AI Engineering/A focused view of boundaries, contracts, state, authority, failure paths, and tradeoffs drawn from this chapter.
AI Engineering5 min readchapterQuick Read

Knowledge, Context, and Retrieval Pipeline Specification

Specify the governed path from registered source to immutable, attributable context package.

Status: Review readyRisk: highLifecycle: plan · execute · verify · learnContent reviewed 2026-08-30Maturity guide →
Claim boundaryThis is curriculum guidance. It does not by itself prove a production implementation.
architecture mode

A focused view of boundaries, contracts, state, authority, failure paths, and tradeoffs drawn from this chapter.

1. Responsibility and boundary

The knowledge pipeline registers approved sources, ingests and transforms their content, maintains searchable representations, retrieves eligible candidates, and compiles the smallest sufficient context for one attempt. It does not grant tool authority, redefine business intent, or make untrusted source instructions governing.

The knowledge owner is accountable for source, connector, transformation, index, retrieval, and revocation contracts. Source owners retain authority for the underlying facts. Security owns access policy; workflow owners define task relevance; quality owns independent evaluation.

2. Pipeline and state

Source states are proposed, approved, active, degraded, suspended, revoked, retiring, and deleted. Artifact states are processing, indexed, stale, invalid, quarantined, and deleted. Checkpoints bind connector version, source cursor, schema, transformation, and content digest. Reprocessing is idempotent for the same source version and pipeline version.

4. Retrieval contract

  1. Resolve requester, workload, tenant, purpose, and data ceiling.
  2. Parse entities, exact identifiers, constraints, time, and required facts.
  3. Apply source eligibility, permission, tenant, lifecycle, and freshness filters before content reaches ranking or generation.
  4. Generate lexical, vector, graph, and metadata candidates under pinned index versions.
  5. Fuse and rerank using a versioned strategy appropriate to the task.
  6. Enforce diversity and group contradictions; do not discard governing counterevidence because it scores lower.
  7. Compile context by authority and token allocation, preserving citations and why each item was included or excluded.
  8. Freeze the package and bind it to the attempt.

Exact identifiers and code symbols often favor lexical search. Conceptual questions may favor embeddings. Relationship and blast-radius questions may need a graph. Hybrid retrieval is justified by measured improvement, not by default complexity.

7. Failure and recovery

FailureDetectionRuntime behaviorRecovery proof
Connector lagFreshness SLOMark degraded; block freshness-critical tasksCheckpoint catches up and gap scan passes
Schema changeParser/contract errorStop affected partition, preserve checkpointNew parser version and reprocessing comparison
Permission mismatchNegative authorization testDeny candidate before rankingACL reconciliation and tenant isolation suite
Stale governing sourceAuthority/freshness ruleExclude and block if requiredCurrent source retrieved and package regenerated
Contradictory authoritiesContradiction groupSurface uncertainty and escalateNamed owner resolves or workflow records exception
Poisoning signalProvenance, dominance, behavior anomalySuspend source and affected packagesRoot cause, clean rebuild, red-team and regression tests
Index unavailableHealth/circuit stateApproved fallback or explicit unavailable stateIndex restored and missed-change reconciliation

10. Tradeoffs and nonclaims

Live source access maximizes freshness but increases dependency risk. Indexed copies improve latency and evaluation but add revocation and staleness work. Use live resolution for consequential facts and indexes for discovery where appropriate. This review-ready specification does not claim a production source registry, benchmarked ranker, deletion guarantee, or poisoning defense.

External review

Review this chapter.

Challenge a claim, boundary, missing failure mode, unclear term, or unsupported evidence statement.

  • Claim
  • Boundary
  • Failure
  • Evidence