get_task_pack
Assemble a task's full context: metadata, subtopics, resolved references, and governance. Optionally filter entity references by relevance.
Instructions
Assemble the full context pack for a task.
Returns the task's own meta+subtopics, all resolved linked refs, and a
deduplicated governance section. If include_always is True (default),
refs from config.json always_include are merged in.
When focus is True (default), entity-level refs with more than
per_entity_top_k subtopics are FTS-narrowed against the task's
description + own notes — only the top-K most relevant subtopics are
included; the rest are returned in dropped for on-demand pull via
get_subtopic / get_context. Subtopic-level refs (component:foo/bar)
bypass narrowing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| focus | No | enable FTS-narrowing of entity-level refs (default True). | |
| min_score | No | optional bm25 relevance floor (negated bm25; higher = more relevant; default None means top-K with no hard cutoff). | |
| task_slug | Yes | the task to assemble. | |
| include_always | No | merge config.always_include refs (default True). | |
| per_entity_top_k | No | max subtopics to include per narrowed entity (default 3). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||