Understand Client Event Reporting provenance
mainEvents reported by the memu-cli are categorized by their provenance using the context.reported_by field. This field is a fact about how the event was generated and is located in the context object, not in properties.
code: Events observed and emitted directly by the CLI logic (e.g., an unhandled exception or a successful store call).agent: Events reported voluntarily by an AI agent (e.g., an agent deciding a task has failed and calling a report command).
Distinguishing between these allows developers to separate "failures the code observed" from "failures a model reported."