Skip to content

Project roadmap

Source: ROADMAP.md at c227ec554ed3a051e3994e87ad76a18282261167. This is a repository snapshot, not a claim about the latest published release.

dexpot is building a synchronous Python API framework around one runtime fact:

plain Python handlers
+ compiled route and codec plans
+ connection-owning threads
+ interpreter-adaptive admission
= predictable HTTP execution on GIL and free-threaded CPython

The framework owns the HTTP server, routing, validation, scheduling, overload behavior, and graceful shutdown. It is not an ASGI wrapper and will not require application authors to maintain async and sync versions of the same endpoint.

The performance strategy spans both interpreter modes: bounded concurrency and optional process fan-out with the GIL enabled, real parallel threads with the GIL disabled, compiled C-backed codecs, and evidence-gated Rust acceleration for narrow hot paths. The developer workflow is agent-ready too: bundled coding-agent skills track the same shipped route contract and runtime boundaries as the framework documentation.

The goal is to become the fastest, most resource-efficient modern Python API framework on both GIL-enabled and free-threaded CPython, with the smallest practical API and execution model. This is an engineering objective, not a claim of current benchmark leadership. Measure correct useful throughput within declared latency and resource budgets; neither fast rejections nor unchecked responses establish equivalent performance.

Keep ordinary synchronous functions, registration-time direct calls, immutable serving plans, conditional feature allocation, and the parser-only native boundary. Prefer removing shared state and duplicate work over adding abstraction layers. New complexity must earn its place through representative measurements on both interpreter modes.

Public simplicity and internal simplicity are separate acceptance criteria. Keep one ordinary synchronous application model while allowing measured runtime-specific execution strategies. Consolidate duplicated semantic decisions rather than pursuing fewer files or classes as an end in itself. A portable contract does not require identical scheduling on every interpreter or operating system; platform adapters must stay narrow, documented, and independently tested.

  • Shipped: HTTP hardening, registration ownership/direct invocation, and the v0.7.0 checked response and envelope contracts. Their completed release gates do not establish broad benchmark leadership or performance parity with older, weaker response contracts.
  • Shipped in v0.7.1: response-preparation improvements and the Darwin FT owner-lifetime scheduling and completed-response handoff correction. Its measured scope is recorded below; shipping the implementation does not establish a general release-to-release speedup.
  • Implemented but not published: the optional native request-head parser distribution; publication remains subject to the native promotion gates below.
  • Next engineering priority: establish the continuous performance gate in milestone 4 and consolidate response semantics under milestone 3.2a. Remaining compiler, ownership, and pass-removal proposals are experiments, not additional shipped improvements, and do not clear their own promotion gates.
  • Included in v0.8.0: paired process-local application lifecycle and registration-selected direct preparation for supported nested Struct responses on GIL-enabled Python. Lifecycle performance acceptance is scoped to controlled Linux; macOS performance remains unqualified.
  • Included in v0.8.1: registration-time rejection of unsupported path annotations, preserving integer conversion and raw string captures, plus expanded runnable lifecycle and nested-response examples. This patch adds no new path converters or performance claims.
  • Next application capabilities: finish the remaining 3.3 contracts beyond the v0.9.0 typed inputs and OpenAPI export, followed by evidence-driven hooks and scoped factories in 3.4. Build on the existing plans; these capabilities are not contingent on first winning every external benchmark.
  • Parallel work: production observability and resource budgets in milestone 5. Expand the ecosystem in milestone 6 as its underlying contracts become stable.
  • Included in v0.9.1: dependency correction. Require msgspec>=0.20 for Python 3.14/3.14t while retaining msgspec>=0.19 on Python 3.12/3.13; qualify the native floors separately from the locked latest-dependency lanes. This changes no runtime API or native generic-model admission.

Milestone numbers identify workstreams, not a waterfall. Every runtime-affecting change needs the applicable correctness, performance, and resource gates before promotion. Long-term goals remain a full, useful API framework; the current small surface is a foundation, not a permanent restriction to JSON microbenchmarks.

The current release line provides:

  • GET, POST, PUT, PATCH, and DELETE route decorators.
  • Literal and parameterized routes with structural duplicate detection.
  • Registration-time compilation of path, body, default, positional, keyword-only, and Request bindings into endpoint-specific direct invoke callables.
  • Route-local body/response declarations and fresh per-registration annotation resolution, without mutating shared handlers or retaining a process-global annotation-result cache.
  • Serving-time freeze into an immutable ApplicationPlan, length-indexed RouterPlan, and complete EndpointPlan metadata before a listener opens.
  • Registration-time rejection of asynchronous or uninspectable callables, unbound captures, and variadic handlers. Supported callable objects and functools.partial handlers retain endpoint-specific direct invokers.
  • Integer path conversion with 422 failures.
  • msgspec JSON body decoding and validation into Struct types.
  • Typed public Request injection through endpoint-specific direct invokers. A frozen, GC-tracked msgspec object is constructed only for Request-aware endpoints and exposes method, path, raw path parameters, raw query, headers, raw body, and the already validated body without a facade.
  • msgspec response encoding and (status, payload) handler returns.
  • Declared response=T validation and public projection, malformed/nested/default value checks, non-finite rejection, Request-leak protection, and sanitized output failures.
  • Immutable Response and bytes-only RawResponse envelopes with server-owned framing; response=None remains generic and does not acquire schema filtering implicitly.
  • HTTP/1.1 keep-alive with one connection owned by one worker until close.
  • Bounded HTTP/1.0 and HTTP/1.1 request parsing with configurable request-line, header, body, idle-read, and absolute head/body deadlines.
  • Fail-closed request framing, strict path decoding, explicit slash behavior, and 404/405 method resolution.
  • Stable public parser and handler failures with server-side exception diagnostics.
  • Automatic free-threaded detection through sys._is_gil_enabled().
  • One-process thread-per-connection execution on free-threaded CPython, bounded by a configurable process-wide active-connection cap with immediate 503 shedding.
  • Bounded GIL thread pools with queue limits and immediate 503 shedding.
  • Optional POSIX SO_REUSEPORT worker processes on GIL builds.
  • Worker restart, partial-startup cleanup, SIGINT/SIGTERM handling, and bounded draining.
  • A CLI for loading module:attribute applications.
  • Installable coding-agent guidance for six agent formats.
  • Python 3.12–3.14 and 3.14t CI, static checks, package builds, and real HTTP tests.
  • A pure-Python reference request-head parser plus an optional parser-only dexpot-native source subproject with import-time automatic selection.
  • Differential parser parity, deterministic mutation and concurrency tests, cp312-abi3 standard wheels, and version-specific cp314t wheel CI across supported platforms.

The sequence reflects safety and technical dependencies, not promised dates.

1. HTTP correctness and hostile-input limits

Section titled “1. HTTP correctness and hostile-input limits”

The socket core now establishes the bounded, fail-closed foundation required before broadening the framework API:

  • Bound request-line, header-count, header-size, body-size, idle-read time, and absolute head/body duration.
  • Reject malformed Content-Length, conflicting length headers, unsupported transfer encodings, invalid request targets, and incomplete bodies with stable 4xx responses.
  • Define HTTP/1.0 and HTTP/1.1 keep-alive semantics explicitly.
  • Add method-not-allowed handling and distinguish 404 from 405.
  • Percent-decode paths safely and define duplicate-slash and trailing-slash behavior.
  • Stop returning raw handler exception messages to clients; add stable public failures and server-side diagnostics.
  • Test slow clients, disconnects, pipelining, oversized input, queue saturation, and drain deadlines with real sockets.

The repository now includes the narrow native seam validated in issue #18:

  • Keep the Python parser as the semantic reference and fallback. Import-time auto selection uses native only when a compatible separately installed extension is present.
  • Keep Rust parser-only: Python owns sockets, limits, deadlines, body reads, pipelining, target decoding, routing, handlers, scheduling, and supervision.
  • Build dexpot-native as a separate distribution, with one cp312-abi3 wheel per standard platform and architecture plus version-specific free-threaded wheels such as cp314t.
  • Run the direct differential corpus, deterministic mutation tests, concurrent parser stress, clean-wheel integration, and complete HTTP suite across standard and free-threaded CPython.
  • Surface ABI, initialization, transitive-import, and parser API-version failures instead of silently changing behavior through the fallback.

The source subproject and its CI gates are complete. The accelerator is not yet published, and it is not a default dexpot dependency.

The research-backed sequence below separates reproduced correctness/simplicity concerns from optimization hypotheses. Benchmark baselines, protocol maintenance, and resource limits run alongside these milestones, not only after feature expansion. An open implementation or a local experiment does not make a planned contract part of the shipped foundation.

3. Complete endpoint and response contracts

Section titled “3. Complete endpoint and response contracts”

Extend the existing ApplicationPlan, RouterPlan, and EndpointPlan kernel without a second dispatcher, live route mutation, or a larger decorator language. Deliver this work in focused stages:

3.1 Registration ownership and diagnostics (complete)

Section titled “3.1 Registration ownership and diagnostics (complete)”
  • Explicit annotation namespaces preserve eager, stringified, and Python 3.14 deferred annotations without caller-frame guessing.
  • Detectable asynchronous handlers and uninspectable or unsupported signatures fail during registration. Supported wrapped functions, callable objects, classes, and functools.partial handlers compile into the same endpoint-specific direct invokers as ordinary functions. Class annotations follow the metaclass or MRO-selected constructor supplying the signature; explicit class signature aliases require concrete annotations or explicit namespaces.

Exit evidence covers reuse across applications, failed-registration atomicity, retention and stale annotation regressions, wrapped/local aliases, callable objects, partials, concurrent registration, and unchanged HTTP binding behavior on both interpreter modes.

3.2 Request-aware response handling and output policy (shipped in v0.7.0)

Section titled “3.2 Request-aware response handling and output policy (shipped in v0.7.0)”

The implementation preserves the original frozen, GC-tracked msgspec Request and conditional allocation. Recursive leak detection uses compiled Struct field names without resolving annotations per response, including mapping keys, dataclasses, enums, containers and cycles. Request-aware and checked routes reject nested Request values.

response=T uses registration-compiled, schema-directed preparation of owned JSON values, including malformed existing/nested Structs and recursively introduced defaults. On free-threaded macOS, nested-schema preparation temporarily disables ordinary timesharing on the serving thread, then restores its prior policy before encoding or socket I/O; flat schemas and GIL routes retain their existing preparation path. This is a scoped platform-specific scheduling adjustment, not a cross-platform policy or performance guarantee. Native encoding follows successful preparation. Sets use a native checked fallback for hashing and deduplication after child preparation; native-only scalar schemas retain a checked fallback. Checked output rejects non-finite floats even in optional and Any values. response=None retains generic JSON encoding without a filtering guarantee. Custom schema types and schemas with __post_init__ or __attrs_post_init__ are rejected atomically at registration; defaults are checked before success bytes are sent.

Immutable Response and bytes-only RawResponse envelopes add copied custom headers and explicit status/content type. Framing stays server-owned, raw output requires response=None, 204/205/304 are bodyless, and (status, payload) remains supported. Invalid output returns a sanitized 500 and preserves keep-alive recovery.

Release verification covered projection, schema edge cases, metadata validation, requestless allocation, HEAD/pipelining, supported GIL/FT tests, installed artifacts, and scoped correctness-matched measurements. This contract is shipped; broad cross-platform comparative leadership, fixed-offered-load latency, and production resource qualification remain ongoing milestone 4 work. Preserve the boundaries and adverse outcomes of earlier measurements rather than treating a completed release as proof of universal speedups.

3.2a Consolidate response semantics and qualify execution strategies (next)

Section titled “3.2a Consolidate response semantics and qualify execution strategies (next)”

Evolve the existing endpoint-plan kernel rather than rewrite the framework:

one normalized response contract
-> shared validation and projection rules
-> execution strategy selected during registration
-> checked public output
-> encoding and server-owned transmission
  • Reduce semantic duplication across _response.py, _response_legacy.py, and the native checked fallback in _plans.py. Maintain a shared semantic oracle and explicit fallback boundaries while migrating incrementally; removing a file is not an acceptance criterion.
  • Permit shared canonical execution on GIL builds and thread-owned execution on FT builds when measurements justify them. Bind from registration-owned metadata without repeated annotation inspection, application callbacks, or default-factory execution during binding.
  • Select strategies from proven schema capabilities and runtime requirements, not accumulating operating-system-specific copies of validation logic. Keep the existing Darwin adapter isolated; changing or removing it requires equivalent-contract evidence and restoration tests.
  • Preserve malformed existing/nested object checks, public projection, defaults/factories, Request leakage checks, non-finite rejection, recursive schemas, and sanitized failures. Preserve the documented generic response=None and raw-response boundaries.
  • Investigate normalization, conversion, encoding, decoding, allocation, and graph ownership at actual endpoint call sites. Fewer passes are an optimization hypothesis, not proof of improved useful throughput or latency. Retain unsuccessful controls.
  • Measure registration cost, first use per thread, retained memory per graph, connection churn, and native-fallback concurrency as well as steady-state replies.

Exit evidence: the same semantic corpus through every strategy; real HTTP and installed-artifact tests on supported GIL/FT configurations; matched small, nested, fallback, and mixed workloads; fixed-offered-load latency and resource budgets from milestone 4. A candidate must preserve correctness and show a repeatable scoped benefit without violating mandatory workload budgets. Do not replace a failed throughput/tail gate with a source-level simplification argument.

  • The Darwin FT correction shipped in v0.7.1: owner-lifetime scheduling policy paired with a 1 ms accumulated-thread-CPU completed-response handoff. The pre-release rebuilt installed artifact passed all 18 macOS FT flat/nested/mixed capacity and fixed-load trials, including the original 16-connection mixed tail gate. Those measurements qualify the tested candidate/control configurations; they are not a direct v0.7.0-to-v0.7.1 benchmark and not a cross-platform performance guarantee. Shipping the implementation does not change the scope of that evidence; see the measured scope and retained failures.

3.3 Paired lifecycle and typed input sources

Section titled “3.3 Paired lifecycle and typed input sources”
  • Included in v0.8.0: Dex.lifespan(factory) registers synchronous context-manager factories; serving processes acquire them before accepting traffic and unwind in reverse order on shutdown or partial startup. GIL processes acquire independently; FT serving threads share the process-local resources. See README and examples/README.md.
  • Included in v0.9.0: typed query/header/cookie inputs. The first source increment uses explicit Annotated[T, Query("name")], Header("name"), and Cookie("name") scalar bindings in EndpointPlan, with strict conversions, validated defaults and deterministic sanitized 422 errors. It does not add repeated-value/list binding, lazy public Request views, proxy trust, dependency injection or OpenAPI; this milestone is not complete. Repeated-value binding and other remaining contracts stay open.
  • Included in v0.9.0: OpenAPI export. Dex(openapi=True) captures registration-time schemas and exports a detached OpenAPI 3.1 document through app.openapi(). It adds no automatic endpoint/UI or inferred security; dynamic response statuses remain explicit unknowns rather than invented 200 contracts. This bounded export does not complete the whole milestone.
  • Database ownership example: examples/database.py demonstrates bounded process-local SQLite resources and exclusive handler leases using the existing lifecycle API, including rollback and post-commit encoding failure. This adds no hooks or scoped dependency graph and does not complete this milestone; other remaining contracts stay open.
  • Outbound HTTP ownership example (included in v0.9.1): examples/outbound_io.py uses existing lifecycle APIs, one exclusive outbound connection slot and fixed loopback teaching routes. It demonstrates bounded reads, socket timeouts, sanitized failure, exhaustion, recovery and cleanup without a framework client API or automatic retries. A socket timeout is not a whole-operation deadline or cancellation guarantee.
  • Distinguish process/application, worker/thread, connection, and request lifetimes. A leased database connection need not have the sharing rules of its pool; a process-local singleton is not shared state across workers.
  • Document that the same application source does not imply identical state sharing: GIL process fan-out replicates pools and caches, whereas FT threads share process-local state. Validate pool ownership, leases, thread safety, and total connection budgets explicitly.
  • Extend request context with lazy decoded query/cookie views and explicitly sourced client metadata. Define repeated values, missing versus null, and trusted-proxy behavior.
  • Add typed query/header/cookie binding with explicit ambiguity resolution and registration-time validation, keeping ordinary Python functions and annotations central.
  • Included in v0.9.0: opt-in OpenAPI export captures the same normalized endpoint metadata and msgspec schemas used by traffic, not a second handler-introspection pipeline. Automatic documentation UI and security inference remain outside this bounded increment.

Exit evidence: runnable examples under examples/ for typed CRUD, pagination/repeated values, header authentication, transaction failure, outbound blocking I/O, custom response headers, and invalid outputs; runtime/schema agreement and exact acquire/use/cleanup traces. Verify cleanup after partial startup, handler/encoding failures, and shutdown in both modes. Measure unused-feature cost and resource retention against the continuous baseline before promotion.

  • Start with ordinary factories and closures; add scoped dependency machinery only when real examples demonstrate a need.
  • Compile applicable hook chains and any required dependency graph at registration. Keep no-hook/no-dependency routes free of generic runtime machinery and allocate cleanup state only where needed.
  • Define request-local memoization, ordering, overrides, and cleanup on handler/encoding failure. Commit failures that must affect HTTP success need to occur before response transmission.
  • Reset ambient request context per request, including keep-alive and worker reuse. Do not depend on different GIL/FT thread-context inheritance defaults.
  • Keep async bridges, large provider hierarchies, and per-route threading switches out of the ordinary application model. Disconnecting a socket does not safely cancel a Python thread.

Exit evidence: exact resource/cleanup traces, actionable diagnostics, real examples, and measured zero-feature cost. Streaming requires its own lifetime/backpressure contract before being included in these guarantees.

The completed local Request representation and invocation spike compared manual slots, tracked and untracked msgspec.Struct state, and a separate public facade on CPython 3.12, 3.14, and free-threaded 3.14t:

  • Generated direct invokers reduced the isolated call layer by 51–56% for no-argument handlers and 62–67% for one-path-parameter handlers.
  • Positional tracked msgspec construction was approximately 90% cheaper than the then-current keyword-constructed frozen dataclass in the isolated benchmark.
  • Five-round response-validating HTTP campaigns found no material default-route regression. The tracked and untracked msgspec variants led or tied the Request-aware free-threaded cells, while standard-CPython differences remained within campaign noise.
  • A facade preserved a stricter public/internal boundary but added a second object on Request-aware routes and did not establish an end-to-end advantage.
  • gc=False remains rejected for the initial implementation: its small constructor win was not consistent end to end and does not yet justify future cycle risk.
  • Request construction and handler injection remain Python-owned. No Rust/PyO3 work is planned for this layer without a profile identifying a narrow native seam and equivalent-workload end-to-end evidence that it wins.

These macOS measurements informed the direct invokers and conditional, GC-tracked Request construction shipped in v0.4.0; they are not public performance claims. Broader performance claims and native promotion remain gated on complete contract and native-parser parity checks, allocation and retention profiling, longer bare-metal Linux campaigns, and unchanged 404/405, overload, memory, and shutdown behavior.

4. Continuous performance evidence and scheduler evolution

Section titled “4. Continuous performance evidence and scheduler evolution”

This workstream starts before the next runtime optimization and accompanies every feature milestone. Use a bounded regression screen for routine changes and a separate, longer held-out qualification for promotion. Freeze workloads, versions, expected responses, and quantitative budgets before running either; a short screen does not replace release qualification.

Maintain separate comparisons for released-version regressions, equivalent-contract mechanism changes, and external framework leadership. Stronger guarantees may legitimately add work; report that cost rather than calling weaker-contract speed an optimization target to recover by removing checks. Start the baseline before broadening contracts, then repeat it as they evolve:

  • Separate normal product facilities, equivalent-feature services, controlled-codec experiments, and best deployable stacks. Do not compare unchecked encoding to validated/filtered output without identifying the contract difference.
  • Include FastAPI, Starlette, Litestar, Falcon, Robyn, BlackSheep, Sanic, aiohttp, and socketify.py. Include strong Falcon WSGI/threaded-server and msgspec-equipped configurations, Litestar’s supported inline/offload choices, and tuned GIL process counts—not only convenient defaults.
  • Pin framework/server/parser/codec/interpreter versions and resource budgets. Record actual worker sys._is_gil_enabled() after imports and warmup; mark unverified deployment cells honestly rather than assuming a wheel or executable name establishes FT support.
  • Measure requestless and Request-aware JSON, typed bodies and checked outputs, first/last/miss routing at realistic route counts, real database/outbound I/O, pure-Python and native CPU work, mixed traffic, slow clients, overload/recovery, and shutdown.
  • Report correct business goodput, error counts, successful-response tail latency, CPU, memory, thread/fd counts, and queue age. Fast 503s are not successful operations.
  • Use wrk for saturation diagnostics and an arrival-scheduled generator for latency/SLO qualification. Account for coordinated omission, calibration, client validation overhead, and generator saturation; short local runs are not promotion evidence.
  • Specify each latency distribution: upstream wrk 4.2 adjusts its histogram with synthetic samples using an interval derived from achieved throughput. Its reported percentiles are not simply percentiles of completed replies. When investigating tails, retain both raw and adjusted histograms from the same run; never select whichever reverses a loss. Raw closed-loop timing still suffers coordinated omission. Qualify latency at the same fixed offered load using intended-send-time accounting and a verified, unsaturated generator.
  • Use randomized paired trials, separate tuning from held-out confirmation, retain every trial and invalidation reason, and report uncertainty and losing cells. Do not average percentiles into a fictitious pooled distribution or hide a losing runtime in a combined score.
  • Normalize total CPU/memory and database-pool budgets across thread/process deployments. Require longer bare-metal Linux runs, real-service workloads, soak, and independent reproduction before broad performance claims.
  • Profile routing, generic object inspection, allocation/retention, shared-state contention, parsing, codecs, and syscalls before selecting a change. Evaluate method/path and prefix indexes while retaining literal lookup and existing route precedence.
  • Qualify the FT active-connection default and broader work budgets under slow keep-alive, thread, file-descriptor, and mixed-workload pressure. Measure idle-connection fairness and admission behavior while preserving one owner at a time; reconsider idle-socket scheduling only if measured resource/SLO failures justify it.
  • Treat exclusive connection ownership and permanent thread attachment as separate decisions. The shipped worker owns keep-alive until close. Any future idle-connection handoff needs a separate reviewed contract proving single ownership, ordering, buffer preservation, pipelining, fairness, timeout, and drain correctness before changing that behavior.
  • Preserve the issue #18 parser parity and goodput gates; moving additional work into native code requires measured end-to-end benefit and supported GIL/FT artifacts.

Exit evidence: a correctness-matched baseline and reproducible qualification manifest, zero observed semantic mismatches in the acceptance corpus, bounded resource recovery, and a meaningful repeatable benefit without material regressions in mandatory workloads. Agree quantitative budgets before confirmation rather than choosing them after seeing results.

For each mandatory workload, record a maximum error budget, successful-response latency target, minimum useful throughput, and total CPU/memory/thread/fd limits. Separate capacity tests from below-capacity latency tests. Preserve every failure and unknown cause; CPU-heavy builds and other owned tests must not overlap timed trials. Disclose unavoidable unrelated host load and separate Docker portability evidence from bare-metal or separate-client performance evidence.

A future publishable benchmark harness and results require their own reviewed scope. Keep raw local spike scripts and outputs outside this roadmap change; only research conclusions belong here.

The parser seam is implemented, but publication and broader installation remain evidence-gated:

  • Publish raw goodput, errors, latency percentiles, CPU, and RSS with exact version and hardware context; Docker Desktop results remain directional rather than bare-metal evidence.
  • Re-run Python, native, automatic, and fallback modes through the differential corpus, deterministic mutation tests, concurrent stress, and complete real-socket suite for every candidate release.
  • Keep dexpot-native separately installable. Do not make it a default dependency or bundled installation until bare-metal Linux and cross-platform wheel gates show repeatable parser-heavy wins without unacceptable tail-latency, memory, overload, or lifecycle regressions.

The initial spike measured large parser-only gains and directional end-to-end improvements, but those measurements are promotion evidence rather than README performance claims.

Run operational work alongside endpoint features, preserving the synchronous programming model:

  • Structured access and error logging with request IDs.
  • Metrics for active connections, queue depth/age, saturation, worker restarts, response status, and drain duration; bounded telemetry that does not add a global hot-path lock.
  • Explicit resource budgets for both GIL and FT deployments, including body buffering, accepted connections, and overload recovery.
  • Configurable graceful-shutdown and per-connection deadlines.
  • Trusted-proxy and forwarded-header policy.
  • TLS guidance and explicit reverse-proxy deployment patterns.
  • Health/readiness hooks that distinguish a live process from an accepting worker set.
  • Stable configuration objects and environment-variable validation at startup.
  • Linux and macOS multiprocess hardening; define an honest Windows strategy before claiming multiprocess support there.

Once the contract and operations are stable:

  • Progressive runnable examples under examples/ for each supported use case.
  • Keep bundled coding-agent skills synchronized with every stable route, request, response, concurrency, and deployment contract.
  • Extension points with compatibility tests and a documented stability policy.
  • Framework-level database/session lifecycle integrations that remain synchronous.
  • Test clients and fixtures built on the real HTTP surface rather than a separate dispatcher.
  • Deployment recipes and performance baselines for supported Python/runtime combinations.
  • Requiring async def, exposing an event loop API, or making ASGI the framework core.
  • Becoming a thin wrapper around FastAPI, Starlette, Flask, or another server.
  • Hiding GIL versus free-threaded behavior behind one misleading performance number.
  • Treating unbounded work as a production strategy on either interpreter mode.
  • Adding complex decorator configuration when a small typed object or ordinary Python function can express the same contract.
  • Claiming production readiness before parser limits, stable failures, operational signals, and representative soak tests exist.
registration compiles; requests execute
one live keep-alive connection = one owning worker
free-threaded Python uses threads for parallelism
GIL Python uses bounded threads and optional process fan-out

A future parser, middleware system, or dependency layer may optimize the implementation. It must not introduce coroutine requirements, move declaration errors into live traffic, or silently weaken overload and shutdown behavior.


Roadmap work should get a focused issue before implementation. Start with CONTRIBUTING.md and include a real-user HTTP test for behavior changes.

Route decorators accept keyword-only annotation_locals={"Alias": OriginalType} for factory/class annotation-only aliases and delayed registration. They never infer bindings from caller locals. The mapping is shallow-copied at decorator creation; original closure bindings override it. Module-global and concrete annotations need no extra option. Unresolved parameter annotations fail at registration, including defaulted parameters; explicit body= binding remains authoritative for its body parameter. Use only needed bindings rather than retaining all factory locals. Wrapped handlers use their original annotation scope. Test repeated factory calls and per-registration namespace isolation.