Cognitive Traces¶
Cognitive traces capture an agent's reasoning and planned actions for governance evaluation.
What is a Cognitive Trace?¶
A cognitive trace is a structured record of: - Reasoning: Why the agent decided to act - Action: What the agent plans to do - Parameters: How the action will be executed - Context: Relevant situational information
Basic Structure¶
{
"reasoning": "User requested password reset for verified email",
"action": "send_password_reset_email",
"parameters": {
"email": "user@example.com",
"verification_method": "sms"
},
"context": {
"user_id": "12345",
"previous_attempts": 0,
"account_status": "active"
}
}
Creating Traces¶
Trace Quality Factors¶
Traces are evaluated on: - Clarity: Is the reasoning clear and understandable? - Completeness: Does it include all necessary information? - Logic: Is the reasoning sound? - Appropriateness: Is the action suitable for the situation?
Best Practices¶
Good Reasoning
Be specific and explain the logic:
Include Context
Provide relevant situational data: