Log standardizes how an agent emits structured provenance records for
important workflow events. It does not perform persistence, encryption,
approval handling, or immutability enforcement by itself. Those controls
belong to the host environment.
Use this skill when a workflow needs:
Do not use this skill to:
Emit a log entry only for important workflow events, such as:
Do not emit logs for every minor conversational turn.
All emitted records must be minimal, factual, and privacy-safe.
Rules:
[SECRET_REDACTED]For a high-impact action, emit a log entry with:
"approval_required": trueThe host environment may use this signal to pause execution until an
approval event, user confirmation, or policy check is completed.
Log emits the signal only. The host environment decides whether to block,
continue, or reject execution.
When relevant, include source references that explain what the action or
decision was based on.
Examples:
Keep source references concise and safe. Do not include sensitive raw content.
When logging is required, output exactly one structured record in a fenced
json block prefixed by [LOG_ENTRY].
Use this exact JSON structure:
[LOG_ENTRY]
{
"timestamp": "YYYY-MM-DDTHH:MM:SSZ",
"event_type": "observation | decision | execution | state_change | completion | error | refusal",
"status": "success | failed | pending | intercepted | skipped",
"actor": "assistant | skill_name | workflow_name",
"summary": "Concise factual description of what happened",
"decision_basis": [
"Key fact, constraint, or condition",
"Key fact, constraint, or condition"
],
"source_references": [
"user_prompt",
"local:file_a.md",
"tool_result:search_01"
],
"constraints": [
"local_only",
"privacy_safe",
"approval_gate"
],
"impact": "low | medium | high",
"approval_required": false,
"payload": {
"action": "tool name, operation name, or null",
"parameters_summary": "Redacted summary of relevant inputs",
"result_summary": "Redacted summary of outputs or outcome"
},
"error_summary": null,
"correlation_id": "optional task or session identifier"
}
共 2 个版本