Handwritten Effect behavior
Adapter design. This page specifies the unpublished adapter. Run a request with Octokit and Effect.
These modules define how callers use the library. Keep them independent of GitHub endpoint counts and namespaces. Each receives operations already bound to the correct SDK instance. Every generated method must go through these same contracts.
| Module | Responsibility |
|---|---|
| Service | Dependency injection, capability typing, lifetime, test substitution |
| Execution | Deferred work, signal composition, interruption and finalization |
| Errors | Stable tagged failures, original causes and safe diagnostic projections |
| Streams | Page demand, cleanup and partial consumption |
| Callbacks | Effect handlers called by foreign runtimes and scoped subscription |
| Policy and telemetry | Retry configuration, rate-limit information and trace boundaries |
When an upstream API has no cancellation or unsubscribe parameter, record the real guarantee on that operation. Generic promise lifting cannot add either capability. Keep hidden background fibers, global runtime creation, eager network access and automatic write retries out of this tree.