Skip to content
SHAMPOO

Tool catalogue

enrich_context

Write · Advanced · Intel and knowledge tiers

enrich_context

  • Category: intel
  • Access: write
  • Audience: advanced (ordinary users do not normally call this directly)

Purpose

Compatibility wrapper that enriches context at increasing depth: assess, pack, extract and auto-promote claims, then impact analysis. Call it to advance the whole pipeline in one step.

Arguments

Optional: depth.

  • depth. Note: quick, standard, or deep. quick assesses enrichable chunks and builds packs; standard adds claim extraction plus auto-promotion; deep adds impact analysis over recent facts.

Result

Object with depth, steps (per-stage counters), pack_body, and at standard/depth: claims_extracted, claims_promoted, promoted_facts; at deep: impacts_analyzed.

Boundaries

Operates inside the selected profile boundary across enrichable chunks, packs, claims, and recent facts. No conductor gate.

Lifecycle / side effects

Assesses every enrichable chunk, builds an executor pack plus warm task packs (all persisted with run-history entries); standard additionally extracts and auto-promotes high-confidence memory-scope claims; deep additionally walks impact for recent facts. All-or-nothing per run.

Errors

Wrong-typed depth rejected by validation. Per-chunk failures abort the run as a transport error; nothing is partially kept.

Example

{
  "depth": "quick"
}

Result shape:

{
  "depth": "quick",
  "pack_body": "...",
  "steps": [
    {
      "assess": 4
    },
    {
      "task_packs_built": 8,
      "task_packs_with_context": 3
    }
  ]
}

See also

assess_context, build_context_pack, extract_candidate_claims, promote_candidate.

On this page