Description
types/timeline.ts defines timeline entries without a status field. Consumers must infer status from the presence or absence of timestamps, which is ambiguous and inconsistent.
Acceptance Criteria
Context
- Target file:
src/types/timeline.ts
- Use a string union rather than a numeric enum for JSON serialisation compatibility
Description
types/timeline.tsdefines timeline entries without astatusfield. Consumers must infer status from the presence or absence of timestamps, which is ambiguous and inconsistent.Acceptance Criteria
TimelineEntryStatusenum or string union is exported:"pending" | "in_progress" | "completed" | "failed"TimelineEntrytype gains a requiredstatus: TimelineEntryStatusfieldContext
src/types/timeline.ts