ck_context_pack
Retrieve a compact, citation-enriched context bundle for a sub-task by combining task facts, proof state, and ranked memory excerpts. Use mid-task for focused, query-driven prior knowledge.
Instructions
Build a compact, citation-enriched context bundle for the current session and task by combining task facts, proof state, resume highlights, and ranked memory excerpts. Read-only. query is an optional retrieval query; when omitted, ControlKeel synthesizes one from the current task title and session context. top_k controls how many memory hits to include (default 5). detail_level compact (default) keeps the bundle token-efficient. Prefer ck_context_pack over ck_context when you need a focused, query-driven bundle for a specific sub-task rather than the full session snapshot. Use ck_context at the start of a session for full mission state; use ck_context_pack mid-task to fetch targeted prior knowledge.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail_level | No | ||
| project_root | No | Absolute path to the project root directory on the local filesystem. | |
| query | No | Optional explicit retrieval query. When omitted, ControlKeel synthesizes one from the current task and session. | |
| session_id | No | Unique session identifier for correlating findings, proofs, budget, and audit trail. | |
| task_id | No | Task identifier within the session for scoped operations. | |
| top_k | No | Maximum number of top-ranked results to return. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_pack | No | ||
| count_only | No | ||
| detail_level | No | ||
| excluded_ids_count | No | ||
| factual_only | No | ||
| generated_at | No | ||
| hit_count | No | ||
| query | No | ||
| retrieval_strategy | No | ||
| semantic_available | No | ||
| session_id | No | ||
| tag_distribution | No | ||
| task_id | No |