Skip to content

验收场景 ​

Turn snapshot ​

Given a user turn with session history, working memory, a knowledge snippet, and a tool result, the implementation exports a context_envelope with a surface, selected items, a budget, an assembly, and an injection record.

Omitted context ​

Given five candidate snippets and a three-item budget, the implementation records the two omitted snippets and their omission reasons.

Compaction ​

Given a long session replaced by a summary, the implementation records source item refs, summary content or summary ref, coverage, loss notes, and replacement policy.

Tool-visible context ​

Given a tool that receives a resource ref not shown to the model, the implementation records a tool-targeted injection separate from model prompt injection.

Missing context ​

Given a task blocked by a missing file, the implementation creates a missing_context record with severity, requested source, blocked action, and resolution status.

Redaction ​

Given a selected item with private content, the implementation records redaction state, redaction method, policy refs, and a redacted assembly block.

Agent Runtime profile linkage ​

当 runtime turn 使用 selected context 时,context envelope 保留 session_id、thread_id、turn_id 与适用 task/run ids。Runtime 通过 id 引用 context,而 context 不声明 runtime completion、approval 或 tool success。详见 Runtime Profile 测试用例。

Draft standard for portable agent context surfaces, selection, budgets, injection, compaction, and missing-context facts.