Skip to content

refactor(types): reuse canonical lifecycle wire types - #375

Merged
zzylol merged 1 commit into
mainfrom
refactor/canonical-lifecycle-wire
Sep 10, 2026
Merged

refactor(types): reuse canonical lifecycle wire types#375
zzylol merged 1 commit into
mainfrom
refactor/canonical-lifecycle-wire

Conversation

@zzylol

@zzylol zzylol commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Lifecycle exports maintained parallel copies of the canonical lifecycle, mode, schedule, representation, and rejection enums. Adding a variant required editing both vocabularies and their manual mapping, which allowed the planner and exported contract to drift.

This makes the canonical lifecycle types serializable with the established wire names and reuses them directly in the DAG export. The JSON shape remains stable, while the duplicate export enums and conversion functions are removed.

Stacked on #374.

Validation: cargo test -p asap-aware-mapping summary_maintenance

@zzylol
zzylol force-pushed the refactor/canonical-lifecycle-wire branch from f146b57 to 7d114d8 Compare September 10, 2026 14:01
@zzylol
zzylol force-pushed the fix/post-asap-semantic-consistency branch from 0abceea to b6db64a Compare September 10, 2026 14:02
@zzylol
zzylol force-pushed the refactor/canonical-lifecycle-wire branch from 7d114d8 to a348a12 Compare September 10, 2026 14:02
@zzylol
zzylol changed the base branch from fix/post-asap-semantic-consistency to main September 10, 2026 15:57
@zzylol
zzylol force-pushed the refactor/canonical-lifecycle-wire branch from a348a12 to 4a666cb Compare September 10, 2026 15:57
@zzylol
zzylol merged commit 1684b18 into main Sep 10, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant