Skip to content

Negative durations from clock-skewed transcripts flow into stats #22

Description

@royalpinto007

Problem

Clock-skewed transcripts (ended_at < started_at) produce negative durations rendered as e.g. -5s and summed into stats totals.

Where

agentrace/parse.py (duration_s, no floor) + agentrace/cli.py (unconditional sum).

Acceptance

Add a failing test first asserting negative durations are clamped/None and excluded from totals. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions