Skip to content

[bug] attempts.ended_at is never written #66

Open

Description

@smota

Summary

attempts.ended_at is never written. Attempts that have finished, whether they failed or reached AwaitingReview, keep ended_at = NULL.

Version / OS

meshloop built from 09a823a (0.3.0). Windows 11 native.

Observed

In the store, after graphs issues-46-47-56 and issues-56 finished:

attempt_id task started_at ended_at node state
3 1 1791368493 NULL Failed
4 2 1791368604 NULL Failed
5 1 … NULL Failed

runtime-design.md §4 lists ended_at as part of the attempt record.

Impact

Expected

The run loop sets ended_at when an attempt's harness exits, times out, or is cancelled. That is the same point where HarnessExited, HarnessCrashedOrTimeout or a cancel is recorded.

Acceptance criteria

  • Fixture test: after a fixture run reaches AwaitingReview, its attempt has ended_at set, and it is not earlier than started_at.
  • Test: a cancelled or timed-out attempt also gets ended_at.

🤖 Generated with Claude Code

Activity

  1. added
    bugSomething isn't working
    drafted-by:claudeIssue, plan, or spec drafted by Claude in the current session
    on Oct 7, 2026
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

    bugSomething isn't workingdrafted-by:claudeIssue, plan, or spec drafted by Claude in the current session

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions