Skip to main content

Module task

Module task 

Source
Expand description

Engine task artifact: THE one complete task derivation.

Moved verbatim from scc-cli commands.rs: build_task_context is the transport-parity root — CLI text, CLI –json, MCP, HTTP, Hermes, SDKs, and hooks all derive from this ONE builder; outputs differ in serialization only, never in semantic content. The scorer is resolved ONCE and feeds BOTH the pack rankers and the delta Surface request.

Structs§

EnrichedPack
TaskContextArtifact

Functions§

build_enriched_task_pack
Pack-only builder: NO delta, NO ledger mutation. Compress and other pack-only callers MUST use this — never build_task_context.
build_task_context
THE one complete task artifact builder. Transports pass the opened engine + resolved scorer/reranker; the engine derives pack + delta + ledger + cap enforcement identically for every caller.
enrich_task_pack