Skip to content

Build structured diagnostic logger for agent executions #230

@snipcodeit

Description

@snipcodeit

Description

Create lib/agent-diagnostics.cjs that captures: agent type, prompt hash, start/end timestamps, turn count, exit reason, output size, and failure classification. Write diagnostic entries to .mgw/diagnostics/-.json. Include a prune function that removes entries older than 30 days. Logger must be non-blocking — failures in logging never halt the pipeline.

Acceptance Criteria

  • Build structured diagnostic logger for agent executions

Milestone Context

Milestone v8 — Agent Reliability & Failure Recovery
Phase Phase 44: Agent Failure Taxonomy & Diagnostic Logging
GSD Route plan-phase
Phase Position Phase 1 of 3 in milestone

Phase Goal

Define the classification system for agent failure modes and build structured diagnostic logging

Dependencies

define-agent-failure-taxonomy-with-structur

Scope Hints

  • Estimated route: plan-phase
  • Labels: reliability,observability

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions