-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Goal
Make interop between contextweaver's internal types and the canonical weaver_contracts types cheap and explicit. This ensures contextweaver can produce and consume spec-compliant data structures without manual translation.
Scope
A minimal mapping layer that converts between:
- contextweaver internal types ↔
weaver_contractsCore types:SelectableItemChoiceCardRoutingDecisionFrame
Acceptance Criteria
- Adapter module (e.g.,
contextweaver/adapters/weaver_contracts.py) providing:to_weaver(internal_type) → weaver_contracts typefrom_weaver(weaver_contracts type) → internal_type
- Unit tests proving round-trip mapping:
internal → weaver → internalis lossless for all four types -
weaver_contractsadded as an optional dependency (not required for standalone usage) - Brief docs on how to use the adapters
Why
Per weaver-spec, the contracts are the interfaces. Without explicit adapters, each integration will implement its own ad-hoc mapping, leading to inconsistencies and subtle bugs.
Context
Part of Milestone E0 — Connect + Align Boundaries.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Projects
Status
Todo