Skip to main content

Trace Profiling Schema

Chronologue uses profiling metadata to measure, evaluate, and improve agent behavior over time. Inspired by execution profiling systems like CUDA’s CUPTI, this schema enables precise tracking of when agent actions are executed, how well they align with planned time, and how users respond. Profiling is essential for trust, tuning, and feedback-driven refinement in agent orchestration.

1. Introduction

  • Profiling provides runtime visibility into execution latency, feedback alignment, and temporal coherence.
  • It applies to all traces involving scheduled or autonomous agent behavior, such as agent_plan, calendar_event, and reflection.
  • This schema standardizes profiling for auditability, learning, and reward modeling.

2. Profiling Objectives

  • Measure timing accuracy: Compare scheduled_for vs. executed_at
  • Track duration: How long execution took
  • Detect temporal misalignment: With respect to tempo_tokens
  • Support user feedback integration: Ratings, flags, comments
  • Enable time-aware optimization: Align planning with real-world timing constraints
  • Support retries and agent fallbacks: Track execution attempts and failures

3. Core Profiling Fields


4. Execution Result Metadata (Optional)


5. Retry and Attempt Tracking

Chronologue supports structured retries. Each execution attempt can be recorded: This is useful for debugging fallbacks, retries, or user rescheduling flows.

6. Embedded Profiling Format

Profiling metadata is stored as an optional nested object in traces. Example:

7. Tempo Token Alignment Evaluation

Chronologue uses tempo_token matching to assess execution timing relative to user preferences or agent plan intent.

8. Feedback and Reward Integration

Agents can be optimized based on both execution accuracy and user perception of value.

9. Implementation Notes

  • Profiling should be written post-execution by executor.py or a background queue.
  • Use schema_version to ensure future compatibility.
  • Avoid injecting profiling on static memory traces (e.g., unexecuted logs).
  • Store attempts[] only when retries or fallback logic is relevant.
  • Validate tempo_alignment against actual time + preferred token rules.

10. Example Payloads

On-Time Reflection with Positive Feedback


Delayed Execution with Retry


Rejected Plan (Not Executed)


Chronologue’s profiling schema creates a consistent and inspectable record of agent performance over time. It bridges scheduled intent with real-world execution, unlocking deeper optimization, personalization, and explainability across memory and planning systems.