Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.24 KB

File metadata and controls

41 lines (28 loc) · 1.24 KB

Python Protocol Interface Contracts

Purpose

Detailed contract reference for protocol-oriented extension points in the Python client.

Use with protocol-interfaces.md.

Protocol families

  • request executors (sync/async)
  • header providers (sync/async)
  • retry policy
  • hook middleware contracts
  • stream matcher/handler/router
  • plugin contracts and lifecycle

Compatibility invariants

  • public client/domain names remain stable
  • extension points are additive, not breaking
  • existing decorator and raw request surfaces stay available

Runtime semantics expectations

  • middleware ordering deterministic
  • retries disabled unless explicit policy provided
  • stream handler failures isolated by router implementation
  • plugin lifecycle start/stop ordering deterministic

Safety expectations

  • no implicit remote plugin loading
  • header providers must avoid leaking sensitive tokens
  • retry defaults should not replay mutating operations without explicit opt-in

Related docs