Project roadmap
Source: ROADMAP.md at
bd3e718baae0d051a91247077c0bfc08bd475cd9. This is a repository snapshot, not a claim about the latest published release.
Roadmap
Section titled “Roadmap”Ambition — The leading framework for tool and application conversion
Section titled “Ambition — The leading framework for tool and application conversion”Our ambition is to make intpot the world’s leading Python framework for defining tools and converting applications across CLI, HTTP API, and MCP interfaces. Start with typed functions, grow to realistic multi-module applications, and give people and coding agents one predictable way to build, inspect, adapt, and own those interfaces.
Robustness is how we earn that position, not a ceiling on what we build. We aim to expand conversion coverage substantially while preserving behavior where possible and explaining adaptations or required intervention where frameworks differ. A successful conversion should mean more than syntactically valid output.
Define typed Python tools once, serve them as CLI, API, or MCP interfaces, and generate
ordinary framework code that users can inspect and own. Keep the public entry points
small: App.tool(), App.serve(), App.eject(), and load(...).to_cli()/to_api()/to_mcp().
What leadership should mean
Section titled “What leadership should mean”- Broad practical coverage: real applications with rich types, validation, command hierarchies, multi-module dependencies, and lifecycle-sensitive behavior—not just demos.
- Predictable conversion: inspectable plans and diagnostics distinguish preserved behavior, explicit adaptations, and work requiring user intervention.
- Verified fidelity: runnable real-world examples and behavioral compatibility tests demonstrate what survives conversion across supported frameworks and versions.
- Simple adoption: small public APIs, useful agent skills, actionable errors, and readable generated code without an intpot runtime dependency.
- An extensible ecosystem: once the contracts are stable, documented backend extension points let contributors broaden framework and protocol coverage without duplicating the core.
- Performance at application scale: measure and improve loading, inspection, projection, and generation on representative projects without sacrificing correctness.
The next milestone
Section titled “The next milestone”Application-led conformance and capability growth. Start with a runnable application, compare its original and generated interfaces, and remove one demonstrated practical blocker per slice. Preserve successful results, rejected inputs, defaults, business errors and relevant side effects over the documented shared input domain. Native CLI, HTTP and MCP response/error formats can differ; test and explain those adaptations explicitly.
An additional bounded source-checkout slice now supports required variadic list[str]
CLI arguments and optional repeatable list[str] options, preserving ordering, duplicates,
and source Typer omission normalization. It is unreleased and not part of public v0.16.0.
The minimum_items schema field records only an explicit required CLI variadic minimum;
it does not infer API/MCP required-array validation. Outer Optional[list[str]] repeatable
options are supported; nested collections and nullable elements remain unsupported and
refuse before writes. See the runnable
examples/file_manifest.py workflow and conversion-boundaries documentation.
The first source slice is a bounded batch-order CLI with same-module helpers/constants and numeric option validation. Preserve ordinary finite inclusive non-clamping integer and floating ranges through generated interfaces, with explicit refusal for range semantics that cannot be retained. This work is unreleased; public v0.16.0 does not provide this guarantee. A capability slice must make a previously broken useful case execute successfully, not merely improve the explanation of its refusal.
Grow a persistent source-versus-target conformance corpus with the application. Keep header/default/decorator occurrence coordinates as deferred supporting work rather than a prerequisite for expanding practical coverage. Do not replace the existing schema with a second generalized assessment engine or broaden arbitrary source recovery.
Release cadence
Section titled “Release cadence”Accumulate independently useful conversion fixes and application conformance on main. Do not cut a package release for every bounded improvement. Prepare a release when a coherent capability bundle warrants upgrading, with representative application evidence; critical correctness/security fixes can justify an earlier release. Merged, documented source capabilities remain unreleased until separately approved publication.
The next unreleased slice removes the batch-order example’s manual string-formatting workaround: plain terminal numeric echoes must pass the MCP client’s declared text-output schema without disabling validation. Keep API scalar results unchanged and verify single evaluation and source-variable collisions alongside native consumer success.
A second application-led slice starts from examples/storage_quote.py, a typed HTTP
storage-cost service with ordinary helpers, capacity policy and receipt side effects.
Recover ordinary inclusive API numeric bounds into the existing schema, compare native
CLI/MCP behavior and explicitly refuse numeric validation that cannot be preserved.
This extends source-direction coverage without promising arbitrary Pydantic conversion.
A third application-led slice starts from examples/inventory_reservation.py, an
MCP inventory reservation service. Compare original MCP with generated CLI/HTTP consumers,
preserve bounded numeric validation and defaults, and retain stock-limit errors and
receipt effects without pretending to translate mutable transactions or MCP contexts.
Keep all three source-direction gains unreleased until a coherent bundle is approved.
Released diagnostic foundation
Section titled “Released diagnostic foundation”The v0.16.0 release adds exact identifier occurrence ranges for verified unchanged plain-body references. It rereads only captured owning source with matching fingerprints, leaves transformed/nested/header cases unavailable and preserves existing definition coordinates, binding chains and refusals. No recovery capability is added. This requires v0.16.0 or newer.
The v0.15.0 release adds bounded static binding paths per diagnostic reference: one deterministic shortest path through an emitted wrapper, implementation and already retained helpers. Unreachable/rebound/unanalyzable owners stay unavailable. This explains existing missing-binding reports without expanding recovery or conversion policy; richer evaluation-order dependency edges remain separate. This requires v0.15.0 or newer. The release interval also contains Authlib/dnspython development-lock security updates; older consumer locks need their own dependency upgrades. No declared dependency minimum changed.
The v0.14.0 release adds bounded original definition provenance: verified owning-file paths and definition line ranges for tools and recovered helpers, preserved through schema adapters, projections and JSON diagnostics. Synthetic wrapper coordinates, exact missing-name occurrence locations and broader dependency-edge analysis remain unavailable. This does not change conversion policy.
The v0.13.0 release adds actionable generated-definition references and corrective
suggestions to binding diagnostics, structured callback/dependency refusal reports,
and standard collections.abc.Callable forward-reference checks. Runnable examples
cover both source behavior and refusal before output. Callback translation, dependency
injection and full type resolution remain unsupported. Definition coordinates arrive
separately in v0.14.0; they are not included in v0.13.0.
The v0.11.1 release introduced bounded ordered diagnostics for generated function decorators, defaults and eager annotation names, plus persistent installed wheel/sdist consumer gates. The retained-body diagnostics and bounded helper/constant recovery milestone is delivered in v0.11.0; broader Python recovery is not.
The v0.12.0 release adds missing_annotation_binding for absent global roots in
emitted string/postponed annotations, with refusal before writes and an extended runnable
example. This requires v0.12.0 or newer; use a source checkout until that version is
available from your package index. Full type resolution, alias-value validation and framework
registration timing remain separate from name availability and runtime initialization.
The earlier helper failure now has an executable supported case: calc(3) calls a plain
same-module helper using an immutable literal constant, and generated CLI, HTTP API, and
MCP consumers compute 21 with their native output adaptation. Unsupported dynamic state,
closures, decorated helpers, ambiguous/rebound bindings, and collisions remain refused.
examples/helper_recovery.py demonstrates success; examples/missing_binding.py preserves
a dynamically initialized dependency refusal control.
Keep the next work in independently useful slices:
- Broaden explicit dependency diagnostics. The bounded ordered check now covers
generated function decorators, defaults and eager annotation names, including support
functions and wrappers, with
missing_definition_bindingrefusal before writes. v0.12.0missing_annotation_bindingchecks string/postponed annotation names against the completed emitted module. Richer type/alias evaluation, framework timing, package availability, arbitrary runtime state and Python equivalence remain uncertified. Inspection remains available. - Keep artifact evidence persistent. Installed wheel/sdist CLI, shipped skills and generated CLI/API/MCP consumers now run in CI and release gates outside the source tree. FastAPI/FastMCP floor lanes exercise generated consumers; broader structural-generation coverage remains a separate open item. Manual smoke tests do not replace these gates.
Preserve the canonical schema, focused shared resolvers, and distinct live-callable path. Classes, decorators, mutable state and cross-module helper recovery remain later bounded capabilities, not implicit extensions of plain-helper support. Performance work and a broad contract-engine rewrite must not displace the correctness sequence.
Build confidence in the current supported subset:
- supported conversions preserve behavior;
- unsupported or lossy cases explain what cannot be preserved;
- live and generated interfaces agree on their shared interface semantics;
- documentation and shipped agent skills describe executable behavior.
The phases below express maintainer priority, not promised release dates. Contributor issues remain an independent backlog; they do not gate this sequence. Each phase delivers small useful slices with executable acceptance gates.
v0.16 — Current foundation
Section titled “v0.16 — Current foundation”- One definition, three live interfaces: registered Python functions can run through Typer, FastAPI, or FastMCP, or be ejected as framework source.
- Six conversion directions: existing Typer, FastAPI, and FastMCP applications can be inspected and converted within the documented supported subset.
- Immutable conversion schema:
ApplicationSchema,ToolSchema, andParameterSchemasupport inspection and generation;ToolInfocompatibility views remain available. - Target projections: conversion exposes intermediate target projections before rendering. Required/default identity is already shared in the models; target framework construction and some fallback policies remain in builders and templates.
- Shared interface identity: framework-visible tool names, source Python parameter bindings, target-visible parameter aliases, and FastAPI route metadata remain distinct in the canonical schema and are consumed consistently by live and generated interfaces.
- Strict schema serialization: supported non-JSON defaults use tagged
$intpotenvelopes; executable default rendering preserves supported value semantics. - Basic body transforms: supported CLI output and return conventions are translated;
FastAPI response annotations account for value,
None, and fallthrough outcomes. - Explicit dependency refusal: inspection records FastAPI dependencies, but conversion to CLI/MCP rejects unsupported dependency semantics rather than silently dropping them.
- Retained-body dependency diagnostics: per-target missing bindings are inspectable; public conversion refuses before writes, including mixed directories. Loader-provided globals use the normal generated-file module environment, not the original source path.
- Bounded helper recovery: inspected callable ownership, live code/default/literal identity, ordered support definitions, transitive imports and collision guards support plain same-module helpers plus immutable scalar/tuple literals.
- Practical tooling: recursive Typer command inspection, direct import extraction, collision-safe directory output, actionable source failures, scaffolding, and agent skills.
- Verification: generated-artifact execution tests, conversion snapshot drift tests, and a Python 3.11–3.14 compatibility matrix.
Live serving uses registered callables and compatibility metadata, including shared placement and naming resolvers; generation consumes the immutable schema. These are deliberately different execution paths. Live serving can use runtime-only opaque defaults and callable state that standalone export cannot preserve. Do not require serialization or generated-code execution as a prerequisite for live serving.
Phase 1 — Conversion assessment and known-loss detection
Section titled “Phase 1 — Conversion assessment and known-loss detection”- Define an inspectable assessment alongside
ApplicationSchema, not a second generalized intermediate representation. Diagnostics identify source/tool/parameter, target, stable code, severity, consequence, and suggested action; include source locations when available. - Distinguish preserved behavior, explicit adaptations, unsupported constructs, and required manual implementation without implying proof of arbitrary Python equivalence.
- Detect Typer/Click parameter callbacks before conversion silently drops validation or transformation. A source callback rejecting an input must not become an unqualified successful target call. Begin with actionable refusal, not arbitrary callback mapping.
- Diagnose unrecoverable bodies and generated TODO stubs; specify intentional scaffold
opt-in separately from faithful conversion.
IntpotApp.assess()reports body recovery, public conversion refuses missing source by default, and explicit scaffolds fail at runtime. - Diagnose missing retained-body bindings per target using scope-aware analysis of statically rendered implementations, including locals, nested scopes, comprehensions, imports, builtins, loader-provided globals, and generated self-recursion bindings (#202).
- Extend dependency diagnostics to complete annotation/default evaluation and ordering. Retained-body analysis alone is not full conversion readiness.
- Capture bounded tool/helper definition provenance alongside the existing schema (v0.14.0). Record verified file and definition bounds; keep dynamic, wrapped, missing-file and changed-code cases explicitly unavailable. Preserve generated-owner references without inventing synthetic wrapper locations.
- Explain existing missing-binding references with bounded deterministic paths through emitted owned definitions (v0.15.0). Keep unknown paths explicit.
- Map bounded unchanged plain-body identifier occurrences to verified original line/column ranges (v0.16.0 release); leave ambiguous and transformed cases unavailable.
- Extend provenance to richer evaluation-order dependency edges and other reference occurrences. Keep ambiguous cases unresolved rather than treating absence of evidence as safety.
- Refuse demonstrated missing body bindings before any output writes, including mixed directories, while retaining inspection and existing callback/dependency guards.
- Extend the diagnostic view incrementally to target-aware callback, dependency, and default refusals without weakening guards or silently breaking existing exception behavior. Do not require a universal assessment redesign before the first binding slice.
- Specify Python and CLI access deliberately: keep existing code-string return types, keep diagnostics off source-code stdout, and settle readiness/refusal policy before introducing broad behavior changes. Start with independently useful guarded slices.
Acceptance: original source validation and generated-consumer behavior are compared for valid and rejected inputs. Known unsupported behavior produces a specific diagnostic or refusal, not apparently complete output. Inspection remains available where generation is refused; supported conversion, directory planning, and existing compatibility APIs remain covered. Static assessment is not a sandbox and does not execute generated code.
Phase 2 — Bounded same-module dependency recovery
Section titled “Phase 2 — Bounded same-module dependency recovery”- Recover provenance-checked plain helpers and immutable scalar/tuple literal constants, including transitive same-module helpers and required ordinary imports, without copying module startup or registration (#203). Keep unsupported dynamic/rebound values, closures, decorators and classes refused.
- Preserve source ordering, recursive/async helper execution and generated-binding collision safety for the recovered subset, with immutable literal helper defaults. Support code has separate immutable metadata and transitive body-reference checks.
- Extend definition/evaluation ordering and annotation/default dependency guarantees beyond that bounded subset; do not imply arbitrary initializer recovery.
- Explain dynamic globals, closure state, ambiguous bindings, and external configuration through the assessment rather than silently dropping them.
- Add classes, models, decorators, and base classes only as separately specified, executable capability slices after the helper/constant foundation is reliable.
Acceptance: realistic source functions using helpers/constants execute through generated CLI, HTTP, and MCP boundaries. Unsupported closure cases remain explicit; recovery does not duplicate application registration or unrelated module-level side effects, introduce an intpot runtime bridge, or imply external dependency provisioning.
Supporting backlog — Correctness and honest documentation
Section titled “Supporting backlog — Correctness and honest documentation”- Preserve control flow in API/MCP-to-CLI conversion, including early returns, loop returns, and unreachable side effects. Implementation returns are retained and the outer CLI wrapper prints their values (#131).
- Replace substring-based import filtering with structural binding analysis. Remove imports only when their uses have actually been removed or translated (#132).
- Add behavioral live-versus-ejected tests for parameter placement, defaults, response shapes, async behavior, errors, and naming—not only route/schema presence. CLI, FastAPI, and FastMCP now execute the same registered tools through both paths.
- Align the README, architecture illustrations, cookbook, and shipped skills with the
implementation. Distinguish
AppfromIntpotApp, including.project()and.toolsbehavior; keep public-command guidance in parity (#121). - Execute cookbook and shipped-skill examples, including single-tool CLI applications, so prose and expected output cannot drift independently of tests.
- Keep contributor guidance accurate and agent installation predictable (#123, #122).
Acceptance: the original failure cases have generated-consumer regressions, documented examples execute, and the supported Python/framework matrix remains green. Source-level audit findings must be reproduced before treating their fixes as verified.
Phase 3 — Evidence-driven shared policy consolidation
Section titled “Phase 3 — Evidence-driven shared policy consolidation”- Centralize target parameter placement for CLI, FastAPI, and FastMCP in an immutable schema projection. CLI and FastAPI renderers consume the choice; FastMCP records its single native parameter placement without adding a redundant adapter.
- Preserve framework-visible tool names separately from sanitized Python bindings and make default API routes explicit in the target projection. Live and generated CLI, FastAPI, and FastMCP interfaces consume the shared name policy.
- Preserve valid source callable parameter bindings separately from canonical sanitized names so generated CLI, FastAPI, and FastMCP bodies execute after sanitization and deterministic collision suffixing.
- Preserve FastAPI route identity and documentation metadata — explicit operation IDs, route names, summaries, descriptions, tags, and deprecation state — in the canonical schema and both live and generated FastAPI applications.
- Preserve target-visible parameter aliases separately from canonical and source binding names. FastAPI aliases and exact Typer option declarations, including short and paired boolean flags, survive live and generated interfaces and cross-target conversion.
- Extend paired live/ejected tests for required/default/null behavior, descriptions, omitted versus explicit-empty route metadata, and reachable response outcomes. Required/default identity is already canonical; test effective framework behavior.
- Extract small shared policy resolvers only where tests demonstrate duplication or drift. Keep CLI text, HTTP responses, and MCP content target-native; do not add a universal response engine or replace builders/templates merely for symmetry.
- Reuse the parameter-placement resolver where live CLI and FastAPI builders choose a
location, without requiring live serving to construct an
ApplicationSchema; runtime-only opaque defaults remain usable. FastMCP has no competing location choice. - Transform this focused projection with
dataclasses.replaceand share unchanged parameters and tools. MutableToolInforemains a compatibility boundary. - Preserve live opaque defaults and runtime callable state without forcing schema serialization or generated-code execution into live serving.
- Strengthen semantic-field round-trip tests across mutable compatibility models, immutable schemas, serialization, and target projection before refactoring the manual mappings. A new field must survive every applicable boundary.
- Isolate existing default-value freezing, serialization, identity, and source-rendering
behavior behind a small private module. Preserve supported values and regression
coverage; do not replace these contracts with generic
repr()or JSON conversion.
Acceptance: consolidation closes demonstrated policy drift without changing established response behavior or compatibility APIs. Source-versus-converted fidelity and live-versus-ejected parity remain separate executable test families.
Phase 4 — Richer types and practical conversion coverage
Section titled “Phase 4 — Richer types and practical conversion coverage”-
Preserve ordinary importable scalar CLI string-enum choices/defaults through immutable metadata, generated type imports, and native validation in unreleased source. Controlled file-producing consumers are qualified; the Docling campaign has a native baseline and now inspects enum lists, but does not translate callbacks. This is not general enum/model or full-application conversion.
-
Preserve parameter descriptions and supported
Annotatedmetadata across targets (#1, #3, #9, #38). -
Preserve repeatable Typer/Click options and collection cardinality in target schemas. A bounded unreleased subset now supports optional repeatable string-enum lists with typed elements and native defaults/order/duplicates. Required/positional, arbitrary containers and non-enum repeatable fidelity remain separate work.
-
Broaden package and sibling import support beyond regular packages. Unreleased regular-package file loading preserves qualified context and normal import caching, refusing cached source-tree conflicts. Standalone files still do not add their source directory to
sys.path; namespace and arbitrary sibling loading remain deferred. -
Support explicit app selection and bounded factory loading without making directory discovery import every Python file.
-
Define multi-method FastAPI route semantics instead of reducing them to one method.
-
Generate nested command hierarchies (#2). Recursive inspection already works; hierarchy generation remains separate work.
-
Add realistic runnable examples demonstrating these capabilities and their refusal paths (#5).
Acceptance: each new capability includes a supported-case example, an unsupported-case policy, and execution through the generated target—not merely a matching source string.
Verification that grows with each capability
Section titled “Verification that grows with each capability”- Maintain a compact source-versus-target conformance corpus with supported, adapted, inspect-only, refused, and unresolved cases. Include rejected inputs and validation behavior, exceptions, and relevant side effects, not only successful calls or generated-text snapshots. Grow this corpus with the diagnostics and recovery slices.
- Extend declared-floor FastAPI/FastMCP and supported structural-generation lanes to import and invoke generated artifacts. Inspector-only success is not full runtime compatibility; keep existing Typer CLI compatibility checks.
- Automate installed wheel/sdist behavior as CI and release gates outside the source tree, with source-path injection disabled. Exercise installed CLI/version, shipped skills, and generated consumers; archive presence alone is insufficient. Manual release smoke evidence is useful but is not a persistent workflow gate.
- Grow runnable example execution alongside capability guarantees. Existing conversion snapshot checks and representative consumer smoke tests are useful but not an exhaustive six-direction fidelity corpus.
Acceptance: each capability compares observable source and target behavior with explicitly allowed adaptations, exercises real framework boundaries and refusal paths, and passes full quality checks plus affected compatibility/distribution gates. No unmeasured fidelity or performance claims are added. The Python 3.11–3.14 matrix already exists; extend its behavioral evidence rather than treating matrix creation as missing work. Statement coverage measures exercised code, not equivalence of source and generated applications.
Triage repeated Python/framework deprecations and schema warnings by cause in separate maintenance work, with focused regression tests. Do not mix broad warning suppression or unrelated dependency changes into dependency recovery.
Phase 5 — Profile, then optimize
Section titled “Phase 5 — Profile, then optimize”- Establish reproducible benchmarks separating cold startup, inspection, projection, and rendering for small and larger applications. Record Python and dependency versions.
- Measure the benefit of immutable structural sharing during projection.
- Reuse function analysis and a module/import index within one inspection operation instead of reparsing the same module for each tool.
- Evaluate compiled-template reuse while preserving per-render alias isolation and concurrency safety.
There are no speedup commitments yet. Avoid persistent caches, parallel conversion, native extensions, or new performance dependencies until representative measurements justify them. Low-risk removal of redundant work can accompany earlier correctness changes when tested.
Future goals — Rich applications and deeper transformations
Section titled “Future goals — Rich applications and deeper transformations”These remain strategic goals, not discarded features. Their scope and implementation need research; delivery should proceed in independently useful increments with explicit semantic contracts and acceptance criteria. We aim for broad real-world coverage, not an impossible promise of universal equivalence between frameworks.
-
Dependency injection mapping (#20): preserve applicable dependency ordering, caching, security, exception propagation, and cleanup lifetime. Replacing
Depends()with a context manager alone is not equivalence. Keep unsupported conversions rejected until a particular subset is proven. -
Pydantic model parameters (#17): define target-specific representation and validation before choosing flattening. MCP and HTTP can represent structured inputs differently from CLI arguments.
-
Cross-module dependency resolution: only after same-module closure is reliable; distinguish project code from external packages and avoid implicit environment provisioning.
-
Deeper body/error transforms (#19): add individual supported patterns for HTTP/MCP errors, context objects, streaming, and background work. Reject cases without a meaningful target equivalent.
-
Simultaneous serving (#32): defer until interface parity is established; specify transports, startup, shutdown, cancellation, and CLI interaction before adding
serve --all. -
Backend ecosystem: stabilize inspector, projection, and generator contracts, then document extension points and a backend conformance suite. Add frameworks and protocols where concrete use cases justify them; new backends must explain their fidelity limits.
-
Specification-driven workflows (#22, #43): support useful OpenAPI import/export paths while distinguishing interface descriptions from recoverable implementation behavior.
Current focus and enduring guarantees
Section titled “Current focus and enduring guarantees”Typer, FastAPI, and FastMCP are the current delivery focus, not a permanent ceiling. Backend extensibility follows stable contracts and demonstrated demand; do not build a plugin platform merely to organize the current three implementations.
The guarantees below remain important as coverage grows:
- Keep generated output ordinary Python with no intpot runtime dependency; other application dependencies may still be required.
- Do not add a runtime bridge for adapting arbitrary existing framework applications.
Building live interfaces from
intpot.Appremains a core capability. - Do not attempt unrestricted Python transpilation or claim that every framework behavior has a lossless equivalent.
- Keep variadic tool signatures unsupported:
*argsand**kwargsdo not have one consistent CLI/API/MCP representation. Prefer explicit named parameters. - Preserve the trusted-source boundary: detection imports code; inspection and dry-run conversion are not sandboxes.
- Keep the core small as backends expand: share stable semantics rather than adding a second generalized intermediate representation or duplicating conversion policy.
Linked items have existing issue discussions; unlinked items are directional work, not implementation commitments. Check current issues and open work before starting a scoped change. See CONTRIBUTING.md for setup and contribution guidance.