  ✓ bug case: returns 1 entry (was 2)
  ✓ bug case: entry attempt === 1
  ✓ bug case: entry status === SUCCESS (closed wins)
  ✓ bug case: detail kept from open header ('init the work')
  ✓ bug case: rationale from closed block ('done')
  ✓ bug case: filesModified preserved
  ✓ multi: 2 distinct attempts → 2 entries
  ✓ multi: attempt 1 SUCCESS
  ✓ multi: attempt 2 FAILED
  ✓ open-only: 1 entry
  ✓ open-only: status RUNNING
  ✓ closed-only: 1 entry
  ✓ closed-only: status FAILED
  ✓ empty: 0 entries
  ✓ closed-tail: 1 entry
  ✓ closed-tail: status FAILED
  ✓ closed-tail: open detail kept ('work')
  ✓ real logs: no duplicate attempt numbers in sample (40 checked)

18 passed, 0 failed
