agent-run-schema

Define a canonical 10-event observability schema with shared agent_run_id for agent runs.

4|1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/m2ai-portfolio/m2ai-skills-pack --skill agent-run-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-run-schema
Source: https://github.com/m2ai-portfolio/m2ai-skills-pack/tree/main/skills/agent-run-schema
Command: npx skills add https://github.com/m2ai-portfolio/m2ai-skills-pack --skill agent-run-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps you instrument agent executions by providing a canonical 10-event observability schema that uses a shared agent_run_id to join all run events into a single timeline.

Core Features & Use Cases

  • Defines 10 canonical events for agent runs (agent_run_started, task_started, task_completed, user_correction_submitted, approval_granted, approval_denied, tool_call_failed, memory_miss, run_completed, run_failed) with a shared agent_run_id.
  • Supports building unified dashboards and sinks (SQLite, Postgres, log streams) to reconstruct run timelines.
  • Useful for debugging, monitoring observability, and evaluating agent behavior across tools and memory.

Quick Start

Integrate the reference schema into your agent by emitting the defined 10 events with a shared agent_run_id for each run.

Frequently Asked Questions about agent-run-schema

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is a unified agent run event schema for observability?

A unified agent run event schema provides a canonical set of 10 observability events, such as task_started and tool_call_failed, that share an agent_run_id to reconstruct execution timelines across debugging sessions and dashboards.

How do I track subtask activity during an agent run?

You track subtask activity by emitting canonical events like task_started and task_completed with a shared agent_run_id, enabling cross-tool correlation and reliable run reconstruction for your agent pipelines.

How do I debug agent pipelines using a joinable event timeline?

You debug agent pipelines by emitting the 10 defined observability events with a shared agent_run_id, allowing you to join all run and subtask activity into a single timeline for cross-tool correlation.

Can I use this agent observability schema with Postgres or SQLite sinks?

Yes, the agent observability schema supports unified dashboards and sinks including Postgres, SQLite, and log streams to capture run-level activity and reconstruct reliable run timelines.

Does agent run logging require a shared identifier for every event?

Yes, agent run logging requires that each event includes a shared agent_run_id and conforms to the defined event shapes, ensuring cross-tool correlation and reliable run reconstruction across your observability dashboards.

What is the best way to capture memory misses and tool call failures in agent analytics?

The best way to capture memory misses and tool call failures is to use a canonical 10-event observability schema that defines specific events for these outcomes, tied together by a shared agent_run_id for analytics.