feat(call): wire from_call forwarded_for and peer-keyed collision (call/from-call-forwarded-for)

This commit is contained in:
2026-06-28 22:19:23 +00:00
parent 95b06fc07f
commit f5fede2758
3 changed files with 391 additions and 26 deletions

View File

@@ -42,9 +42,12 @@ pub enum AdapterError {
#[error("unauthorized: {message}")]
Unauthorized { message: String },
/// Namespace collision in `from_call` (DC-3); reused for other adapters.
#[error("conflict: {message}")]
Conflict { message: String },
/// Same-peer namespace collision in `from_call` (ADR-029 §5; OQ-26).
/// Cross-peer collision dissolves (same name on different peers lives in
/// separate sub-overlays); same-peer collision stays an error — a peer
/// shouldn't expose two ops with the same name.
#[error("same-peer collision: {message}")]
SamePeerCollision { message: String },
}
/// Import a set of operations as `HandlerRegistration` bundles.