Skip to main content

Module conformance

Module conformance 

Source
Expand description

Reusable conformance checks for TicketSource implementations.

The ticket analogue of gonzalo-core’s substrate conformance suite (ADR 0006/0010): the executable definition of what every connector must do. Connectors run these in their own tests against recorded fixtures (wiremock), keyed on policy variants where a platform’s status signal is configurable (e.g. GitLab scoped-label vs intrinsic, Asana section vs completed). These helpers are provider-agnostic — they assert the invariants that must hold for any imported ticket and any source.

Functions§

assert_ticket_invariants
Invariants every imported ticket must satisfy, regardless of provider.
assert_write_gating
A source must honor its declared write capability: if capabilities().push is false, set_state must fail with SourceError::Unsupported rather than silently no-op or panic.