Assemble memory for a task
agent_memory_contextAssemble a task's memory for multi-step tasks by retrieving applicable procedures, facts, past cases, and governed tacit guidance in one call.
Instructions
Assemble a task's memory in one call: the workspace's procedures (SOPs), the facts and past cases that match the context, and the governed tacit guidance that applies. Use it when starting or planning a multi-step task. For a check before a single action, use retrieve_guidance instead; calling both for one step records two decisions. Tacit guidance passes the same condition-aware gate as retrieve_guidance, and task is a label recorded with the query. When required_human_actions lists anything (an escalation, or a use constraint that calls for a person's check), stop and hand the decision to a person. Each call records the query and the gate's decisions on the evidence chain, may open an escalation task, and changes no fragment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | The role you act for, for example operator. A fragment whose conditions name other roles is withheld with reason role_not_authorised. Omit it to skip that check. | |
| task | Yes | A short name for the task, recorded with the query. | |
| context | Yes | The current work situation, with risk_class. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | The task the context was assembled for. | |
| tacit | Yes | Governed tacit guidance that applies. Empty when none applies. | |
| episodic | Yes | Past cases that match the context. | |
| semantic | Yes | Facts about the equipment, materials, and process that match the context. | |
| withheld | Yes | Fragments about this situation that were withheld, with the reason. | |
| procedural | Yes | The workspace's procedures, such as SOPs, all of them. | |
| governance_notes | Yes | The rules that shaped this context. | |
| escalation_task_id | Yes | The escalation opened for a person, when the gate handed anything over. | |
| not_yet_authorised | Yes | How many unreviewed or unauthorised fragments were left out. They stay unnamed until reviewers promote them. | |
| required_human_actions | Yes | Actions a person must take before you act: escalations, and use constraints that call for a person's check. When any is listed, stop and hand the decision to a person. |