pub struct ContextPacket {
pub pinned_paths: Vec<PathBuf>,
pub inlined_files: Vec<InlinedFile>,
pub prior_context: String,
pub critique: Option<String>,
pub skill_text: String,
}Expand description
The assembled context for one node, shaped per worker family by the context
assembler (CONTEXT.md §12).
For a harness worker the assembler writes a thin packet and pins file paths (the worker reads the repo itself). For an API worker it inlines file contents (the model sees only what is sent). Both forms are carried here; an adapter consumes whichever fits its family.
Fields§
§pinned_paths: Vec<PathBuf>Pinned file paths for harness workers to read themselves.
inlined_files: Vec<InlinedFile>Inlined (path, contents) for API workers.
prior_context: StringPrior node outputs / blackboard digest text relevant to this node.
critique: Option<String>A critique artifact from a failed evaluator, fed back on loop-back
(CONTEXT.md §10, §11).
skill_text: StringInstruction text from any skills attached to this node (MCP_SKILLS.md
§11). Injected verbatim into the worker’s prompt, both families.
Trait Implementations§
Source§impl Clone for ContextPacket
impl Clone for ContextPacket
Source§fn clone(&self) -> ContextPacket
fn clone(&self) -> ContextPacket
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more