1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-FileCopyrightText: 2025-2026 ObzenFlow Contributors
// https://obzenflow.dev
//! Authoring-time stage typing trait markers and assertion helpers.
//!
//! These traits do not affect runtime execution semantics. They are used
//! by the DSL macros to validate that a handler's declared type shape
//! matches the contract written at the stage-definition layer.
//!
//! The serialisable data carriers (`TypeHintInfo`, `StageTypingInfo`) live
//! in `obzenflow_topology` as canonical annotations on `StageInfo`; import
//! them from there directly.
/// Source stage typing contract.
/// Transform stage typing contract.
/// Compile-time assertion helper for source handlers.
/// Compile-time assertion helper for transform handlers.
// FLOWIP-114c PR D: the previous mixed-input / partial-typing assertion
// helpers (`assert_transform_output`, `assert_stateful_output`,
// `assert_stateful_contract`, `assert_sink_input`, `assert_join_contract`,
// `assert_join_output`, `assert_join_reference_output`,
// `assert_join_stream_output`) are removed. The DSL no longer has authoring
// surfaces that need to bypass `TransformTyping`. Sink and join typing are
// witnessed directly by `SinkWriter` / `TypedJoinHandler` and their
// macro expansions.
// The remaining typed contract is established at the macro
// expansion site by emitting `TypeHint::exact::<T>()` metadata; runtime
// fingerprinting is type-erased through `ChainEvent`.