Capability Contracts and Their Satisfiers

Capability Contracts and Their Satisfiers An architecture diagram generated by Archify. RpcCaller · rpc_call(...) · Architecture component · Protocol RpcCaller rpc_call(...) Protocol RpcExecutor · production satisfier · Architecture component RpcExecutor production satisfier Web Feature APIs · declare RpcCaller · Architecture component Web Feature APIs declare RpcCaller Namespace ABCs · eleven bases · Architecture component · abstract Namespace ABCs eleven bases abstract LoopGuard · assert_bound_loop() · Architecture component · Protocol LoopGuard assert_bound_loop() Protocol CallSupervisor · production satisfier · Architecture component CallSupervisor production satisfier ChatAPI · declares LoopGuard · Architecture component ChatAPI declares LoopGuard LoopBoundPrimitive · eleven direct subclasses · Architecture component · mixin LoopBoundPrimitive eleven direct subclasses mixin Kernel · post · cookies · close · Architecture component · Protocol Kernel post · cookies · close Protocol Kernel (concrete) · epoch-fenced client · Architecture component Kernel (concrete) epoch-fenced client SourceUploadPipeline · sole consumer · Architecture component SourceUploadPipeline sole consumer AuthMetadata · lives beside consumer · Architecture component · Protocol AuthMetadata lives beside consumer Protocol satisfied by injected into subclass satisfied by injected into mixes in ChatAPI only satisfied by injected into declares Legend Backend

Narrow contracts

  • • Web features depend on narrow capability Protocols rather than a generic Session facade
  • • Production satisfies them structurally; no explicit registration exists

Where contracts live

  • • RpcCaller and Kernel live in _web/contracts.py; LoopGuard in _runtime/contracts.py
  • • AuthMetadata has one consumer, so it lives in that consumer's module

Deleted abstractions

  • • AsyncWorkRuntime and the feature-local composite runtimes were removed
  • • They no longer represented independently varying production dependencies