Skip to content

Project roadmap

Generated from ROADMAP.md, a repository documentation snapshot at commit a38c3096060243d55a258349196381c89b784545. Roadmap items are planned work, not claims of shipped features.

summonpot is modernizing APIs for AI around one endpoint contract:

Pydantic request model
+ fixed endpoint goal
+ exact application-owned operations
+ explicit agent-owned choices when needed
+ Pydantic response model
= executable endpoint

The endpoint body is declarative and is never the handler. Request JSON carries business data, not an action selector. The same simple contract supports direct deterministic execution for the narrow complete path shipped below; admitted declarations with a direct semantic choice and bare legacy capabilities use the agent runtime. For the enforced single required Exactly(1) slice, Summonpot hides and injects application-owned arguments and leaves only declared AgentChoice values to the agent. Unsupported explicit contract shapes fail during registration until their full semantics ship. Bare Depends(fn) and Required(fn) declarations remain compatible with implicit marker bounds and no explicit Operation contract. The typed HTTP endpoint stays stable as that balance changes.

The current release line provides:

  • Pydantic request validation and OpenAPI request schemas.
  • Pydantic response contracts with local final validation.
  • Provider-neutral model selection and structured output.
  • Optional deterministic operations through Depends(operation).
  • Runtime-enforced mandatory operations through Required(operation).
  • A closed endpoint capability set: undeclared operations are unavailable.
  • Declarative dependency parameters that never become HTTP fields.
  • Bounded retries when model output is invalid or required use is missing.
  • Configurable request, token, cost, and timeout limits for each endpoint call.
  • Stable redacted failure handling: malformed HTTP requests and receiving-operation input failures return fixed 422 responses; invalid operation output, model/provider failures, timeouts, and application failures keep distinct status categories. Normal logs use allowlisted endpoint/failure fields only and omit exception text/chains, provider bodies, validation input, prompts, output, and capability data. This is failure-boundary hardening only; it does not redesign deadlines or add result chains.
  • GET, POST, PUT, PATCH, DELETE, and HEAD routing with validated body or query contracts.
  • Stable OpenAPI operationId values derived from each endpoint’s declared name and HTTP method, with registration-time collision rejection.
  • A keyless test model for exercising routing and capability wiring without provider credentials.
  • Installable coding-agent skills describing the endpoint contract, typed operation bindings, and the current runtime boundary for Claude Code, Cursor, Windsurf, GitHub Copilot, Cline, and OpenAI Codex.
  • Ellipsis declaration bodies that avoid abstract-method semantics, with direct Python calls rejected at the decorator boundary.
  • Immutable Operation declarations with FromRequest, FromResult, FromContext, and AgentChoice argument sources.
  • Runtime enforcement for one required Exactly(1) operation using FromRequest, direct AgentChoice, or callable defaults: trusted arguments are hidden and injected, the one start is reserved before invocation, and declared output is locally validated before success.
  • Receiving-operation constraint validation is shipped for injected FromRequest values in that supported direct and agent-backed slice. The runtime checks each receiving operation parameter strictly before application code, rejects coercion, preserves the canonical validated request value, and does not rerun request-model validators. The closed hook-free vocabulary accepts finite Decimal values and non-pattern string length constraints while rejecting non-finite bare Decimals, Decimal allow_inf_nan=True, callable discriminators, and string patterns at registration.
  • Single-operation deterministic execution when the endpoint uses a Pydantic request model, that slice has no AgentChoice, contains at least one FromRequest binding, uses FromRequest, authenticated FromContext (from 0.13.0), or immutable identity-stable callable defaults, and the operation output is exactly the endpoint response model: Summonpot executes directly without resolving or constructing a model.
  • Declarative call bounds and ordering references without adding decorator configuration.
  • Construction-time validation in CallBounds, Exactly, AtLeast, AtMost, and Between requires non-negative built-in integer counts, excluding booleans, fractions, and non-finite values. An absent maximum (None) remains valid for unbounded calls; this count-type validation does not imply broader runtime call-bound enforcement.
  • Registration-time validation for complete bindings, request and result references, operation ordering, selectable collections, and provable type incompatibility.
  • Fail-closed runtime admission: binding sources must use the exact built-in source vocabulary, and every explicit binding, ordering, call-bound, and output contract must fit an admitted shape. Alongside required Exactly(1) operations and sequential chains, version 0.15.0 admits the documented bounded repetition, single repeated-stage, checkpoint and fully resolved branch/join slices under their separate predicates. Unsupported combinations still fail registration. Adding another capability cannot downgrade that contract to the legacy path.
  • Structural output-namespace validation rejects duplicate field, alias, serialization-alias, and computed-field JSON keys at registration, including nested model, dataclass, and typed dictionary shapes. Runtime output validation rejects allowed extras that shadow canonical field names or emitted aliases while retaining noncolliding validated extras.
  • Python 3.11-3.14 CI, package builds, and expanded runtime/CLI coverage.

Version 0.5.0 ships the vocabulary and registration checks for typed operation dataflow. It does not yet inject those bindings during execution. The current model runtime still supplies capability arguments, and every reachable capability must validate and authorize its inputs exactly as it did before 0.5.0.

Version 0.6.0 standardizes the public application API on Summon, a module-level summon, and direct @summon(...) registration. It also makes ellipsis the complete declaration body and rejects direct Python calls to registered declarations. The execution boundary is unchanged from 0.5.0: typed bindings, ordering, and call bounds are validated and stored, but the current runtime does not inject or enforce them yet.

Version 0.7.0 activates the first typed operation bindings at runtime. The bound runtime enforces one required Exactly(1) operation whose inputs come from FromRequest, direct AgentChoice, or callable defaults. It snapshots the validated declaration at registration, hides trusted/defaulted arguments from the model, reserves the only permitted start before application code, and validates the operation output before recording success.

When that endpoint uses a Pydantic request model, has no AgentChoice or other unresolved source, and the operation output is exactly the endpoint response model, the same invocation kernel executes it directly without resolving or constructing a model. There is no model fallback after direct execution begins. The endpoint remains agentic when AgentChoice, final response composition, or any unsupported shape requires the model.

The completed single-operation deterministic execution milestone therefore applies to a Pydantic request model and exactly one required Exactly(1) operation with at least one FromRequest binding, only FromRequest or immutable identity-stable callable defaults, and an operation output exactly matching the endpoint response model. It runs without resolving, constructing, or calling a model. The broader multi-operation deterministic compiler remains planned.

Multi-operation graphs, FromResult, FromContext, after, broader call bounds, and broader no-model execution remained planned at this release boundary. Later boundaries below record the subsequently enforced shapes.

Version 0.8.0 gives generated routes stable endpoint-derived OpenAPI operationId values, validates call-bound count types when declarations are constructed, and hardens the validated HTTP request handoff so compatibility views cannot invoke application copy, serialization, string, representation, or container hooks against canonical operation inputs. It preserves safe native query values for agent prompts and custom runtimes while keeping unsupported values inert. Runtime-enforced output schemas also reject ambiguous declared or extra-owned JSON keys without serializing application values.

This release does not broaden runtime enforcement to multi-operation graphs. The remaining result-chain and broader deterministic-execution semantics stay in milestone 2 below.

This release line completed the admission portion of that milestone: only one required typed operation with calls=Exactly(1), complete supported bindings, declared output, no ordering, and no second capability is admitted. FromRequest and direct AgentChoice are the only runtime-supported binding sources. All other explicit shapes fail before serving; bare callable dependencies retain their implicit marker behavior.

Version 0.9.0 completes fail-closed runtime admission for explicit capability contracts in the shipped single-operation slice, validates receiving operation constraints before application code starts, and hardens declared and runtime output namespaces against ambiguous or duplicate emitted keys. Unsupported explicit shapes are rejected during registration rather than downgraded to the legacy model-supplied path.

Raw runtime mappings use the declared request contract for the same required-field, default, alias, and canonical-value semantics as HTTP without rerunning the HTTP adapter’s one-shot validation. Parameterless endpoints compile an explicit empty raw contract, rejecting undeclared keys before application hooks or model execution.

Version 0.9.0 did not ship stable failure-boundary handling or end-to-end runtime deadline semantics; those were still milestone 1 acceptance criteria. It did not add result chains or broader deterministic execution.

Version 0.10.0 completes milestone 1’s single-operation contract and input/output hardening. It ships stable redacted failure responses and one monotonic runtime deadline spanning request preparation, execution, and finalization, with pre-effect checks. HTTP body parsing, request validation, and response serialization are outside that deadline. Synchronous preparation, finalization, and capability work cannot be preempted; a timeout after synchronous work starts does not prove that an effect did not occur. These guarantees do not add result chains, broader deterministic execution, or claim context budgeting.

0.11.0 boundary: sequential operation chains

Section titled “0.11.0 boundary: sequential operation chains”

Version 0.11.0 added agent-mediated sequential chains of two or more required Exactly(1) operations, provided exactly one operation is ready at every step. FromResult injects fields from a predecessor’s locally validated Pydantic result; after independently requires successful predecessor completion. Declaration order does not choose execution order. Operations use FromRequest, FromResult, supported immutable callable defaults, and producer-backed AgentChoice(from_result=...) only when the producer declares list[ConcreteModel]. Chains with FromContext, broader bounds, disconnected nodes, cycles, or any step with multiple ready operations remain unsupported. Choice projection and local token authority are described in milestone 3 below.

Exactly one operation must declare the endpoint’s exact full response annotation, and it must be the terminal operation. The endpoint returns that canonical validated result, not model-authored success claims. Models see completion acknowledgments and bounded inert evidence for declared choices, not canonical intermediate result objects. They still orchestrate this slice; no-model multi-operation execution remains planned.

Call maxima count starts; required minima count validated successes. Failed, cancelled, or uncertain starts retain their reservations. Model retries never replay those effects. This does not provide rollback or distributed exactly-once effects; cross-request retries need application idempotency. The runnable inventory example uses real application-owned SQLite operations and persisted receipts, not a framework adapter.

Version 0.11.0 completes this subset of milestone 2, not the broader milestone. Historical v0.10.0 does not include it.

0.12.0 boundary: model-free resolved chains

Section titled “0.12.0 boundary: model-free resolved chains”

From version 0.12.0, a Pydantic request endpoint executes a uniquely ordered chain of required Exactly(1) operations directly when the chain is fully resolved. The chain has at least two operations, exactly one required Exactly(1) operation is ready at each step, and every argument resolves through FromRequest, validated FromResult, or supported immutable callable defaults. At least one FromRequest binding is required. The terminal operation declares the endpoint’s exact full response annotation, and its validated result is returned unchanged. No model is resolved or constructed, and there is no fallback after execution starts. Any AgentChoice, including producer-backed choices, keeps the chain agent-mediated. Unsupported shapes remain rejected. Historical v0.11.0 chains remain agent-mediated.

0.13.0 boundary: authenticated application context

Section titled “0.13.0 boundary: authenticated application context”

Authenticated context is included from version 0.13.0 through Summon(context=authenticate) and canonical FromContext bindings to the admitted single required Exactly(1) operation and uniquely ordered required Exactly(1) chain shapes. The application verifies credentials and returns a frozen, closed Pydantic principal with supported immutable fields. Principal admission is a non-transforming structural check; unsupported validation/lifecycle hooks and transforming configuration are rejected instead of changing an authenticated identity.

The provider is captured at registration, runs once for each declared HTTP endpoint request inside the runtime deadline after transport validation, and protects endpoints even without a context binding. Documentation/OpenAPI routes are outside this hook. Authentication denial returns fixed 401; invalid context or unexpected provider failures return fixed redacted 500. All context receiving constraints, including later chain steps, are preflighted before any operation or model starts. The context snapshot is request-local and hidden from model input; application outputs can intentionally disclose values and remain application-owned.

Authenticated FromContext can join a fully resolved model-free path, but the existing Pydantic request, at-least-one-FromRequest, immutable-default, and exact terminal response requirements remain. AgentChoice stays agent-mediated. Raw Runtime.call(..., context=principal) is trusted server code only; authenticated HTTP requires standard Runtime.call admission and rejects replacement call methods. Login, authorization, tenant-scoped database queries, cross-request idempotency, and transactions remain application responsibilities. Broader bounds, graphs, adapters, recovery, and persistent memory remain planned. Historical 0.12.0 does not include authenticated context.

0.14.0 boundary: result-dependent execution with one producer-backed choice

Section titled “0.14.0 boundary: result-dependent execution with one producer-backed choice”

Version 0.14.0 includes the narrow single-choice result-dependent optimization described below. It requires an otherwise eligible uniquely ordered required Exactly(1) chain, a Pydantic request with at least one FromRequest binding, exactly one producer-backed choice and no other choice, supported immutable defaults and request/result/authenticated-context bindings, and exact full terminal response annotation identity. Historical v0.13.0 behavior remains agent-mediated for every producer-backed choice.

Version 0.15.0 also permits omitted Operation.output to be completed from the callable’s resolved return annotation during endpoint registration. Explicit outputs and all input bindings remain authoritative; no request/result/context/agent-choice sources are inferred and no new execution shape is introduced. Original declarations are not mutated. This simplification is not included in published v0.14.0.

Version 0.15.0 bounded checkpoint progression

Section titled “Version 0.15.0 bounded checkpoint progression”

Version 0.15.0 supports one explicit Required(check, calls=Between(1, M), until="accepted") marker, with finite M >= 2. The marker must name a stored, non-null strict Boolean field in the checkpoint’s validated Pydantic output; aliases, computed properties, expressions and coercive Boolean fields do not qualify. until=None keeps ordinary Required behavior. A uniquely ordered required region ends at the checkpoint, with effective bounds 1..M; a nonempty uniquely ordered optional negative continuation has bounds 0..M-1. Exactly one Required(..., calls=Exactly(1)) terminal returns the endpoint’s exact full response annotation and reads only fields from the final checkpoint invocation. Invalid marked shapes fail registration, never fall back to the legacy route.

True closes to terminal. False runs the declared continuation, then rechecks; the Mth false closes unresolved to terminal without another continuation. The application owns the truth of the check, candidate permissions and truthful report. An empty choice domain fails closed with the existing redacted 409; it is not an unresolved report. Only one frame operation is in flight. Continuation admission retires that round’s authority atomically, so closure cannot race it; only a fresh checkpoint after continuation can close. Every invocation uses the existing shared kernel. The shared request, authenticated principal, invocation ledger, usage budget and absolute deadline span all rounds. There is no rollback, effect replay, durable resume or recovery: a prior write/report may remain after later failure, and a fresh request is not safe recovery. Checkpoint progression is included from version 0.15.0; it was not part of version 0.14.0. See examples 18 and 19 and the complete contract.

Version 0.15.0 implements framework-owned progression across one or more producer-backed choices in an otherwise eligible uniquely ordered chain. Eligibility remains a Pydantic request with at least one FromRequest, at least two required Exactly(1) operations, supported request/result/authenticated-context bindings or immutable defaults, and exact full terminal response annotation identity. The selector receives only a safe request projection and bounded inert evidence for the current ambiguous binding(s); it has no business-function tools, principal or ledger. Every current consumer domain is checked before selecting or starting that consumer. Singleton choices bind canonical members locally; ambiguous bindings are selected together from strict opaque-token slots, then the shared invocation kernel validates and invokes the consumer. The framework-owned progression continues locally through singleton frontiers and returns the canonical validated terminal result without model-authored completion. All frontiers and corrections share request/token/cost usage, effective limits and one deadline; the model resolves once, lazily, at first ambiguity. Explicit tool_calls_limit and allow_direct=False preserve the legacy route. This producer-choice chain route adds no durable cross-request resume, rollback, effect replay, repeated calls, general graph compiler or public selector. This is a partial milestone 3 implementation, not milestone completion and not a published v0.14.0 behavior. Bounds remain 128 candidates and 65,536 evidence characters per binding. Prefix effects may precede provider-configuration failure; there is no rollback or cross-request replay guarantee.

Unreleased source: one producer-backed choice in required DAGs

Section titled “Unreleased source: one producer-backed choice in required DAGs”

Current source adds one narrow non-linear exception, not included in published summonpot 0.15.0. The supported Pydantic request/response DAG is acyclic, has at least one FromRequest, required Exactly(1) operations, one unique sink reached by every operation, and exactly one producer declaring the endpoint’s exact full response annotation. Exactly one argument globally is a producer-backed choice whose exact declared producer returns list[ConcreteModel]; all other sources remain the supported request/result/authenticated-context bindings or immutable defaults. The agent chooses only that argument value, not which branch runs. This composes with the existing private ordered execution rule; it does not replace linear chains or their multiple-choice behavior.

Execution is sequential with stable declaration-priority among ready operations. The producer is a dependency of the consumer. There is no global choice barrier: earlier independent work may already have effects when an empty/unavailable/oversized domain returns the existing redacted 409 before consumer/model work. after remains business ordering. A singleton binds the exact canonical member with no model lookup/call. Ambiguous choices expose only bounded inert evidence and opaque tokens for the current candidate projection to a private selector with no business tools; the shared kernel validates the selected member and invokes the consumer. No extra result/context disclosure or final model acknowledgment is added; the audited canonical sink result is returned.

Explicit function-tool quota (UsageLimits.tool_calls_limit) and private allow_direct=False reject this new graph shape before effects. Historical version 0.15.0 zero-choice branch/join behavior remains unchanged. This is not a public graph API, parallel scheduler, repeat, feedback, durable recovery or general graph compiler. Milestones 3 and 4 remain partial. See the contract and example 23.

The version 0.15.0 repeated-stage extension also composes a resolved prefix and suffix around one nonterminal bounded repeated operation. At least one FromRequest is required across the whole Pydantic-request chain; the repeated operation may consume only validated prefix results plus its closed string choices. All other operations are required Exactly(1) and fully resolved. Existing final-invocation binding and closure semantics are retained, with one terminal exact response owner, one ledger/deadline/usage budget, lazy model resolution after the prefix and no model decisions in the suffix. This is not general graphs or feedback workflows. See single-stage chains.

Version 0.15.0 also composes exactly one producer-backed choice argument on one required Exactly(1) prefix consumer with one nonterminal bounded repeated stage and a resolved suffix. The candidate producer is an earlier single-start operation returning list[ConcreteModel]; repeated choices remain direct closed string Literal values, and all other operations remain resolved required Exactly(1). Pydantic request/response, chain-wide FromRequest, unique ordering, final-invocation addressing and exact terminal response ownership remain required. Empty/unavailable/oversized candidate domains stop before selection or repeated work; a singleton binds locally, while ambiguity uses canonical request-local tokens. Singleton selection still leads to model-backed repeated decisions. One lazy model-configuration lookup, run, principal, ledger, deadline and usage budget span both phases. No business-function tools, reselection after same-run failure, effect replay or final model acknowledgment are added. A fresh request starts a fresh run. Published behavior before v0.15.0 remains unchanged. See the composed contract.

The ordering below prioritizes complete, enforceable contracts before expanding execution. These are planned acceptance criteria, not claims that the current release enforces them or promised release dates. Milestone 1 was completed in the 0.10.0 boundary. The release boundaries above complete the narrow milestone 2 slice for 0.14.0; broader orchestration and graph work remain planned. No milestone adds an executor selection flag, public graph, or handler body.

1. Contract enforcement and input/output hardening

Section titled “1. Contract enforcement and input/output hardening”

Completed in 0.10.0: the 0.9.0 admission, transport, and namespace work plus the failure and runtime-deadline guarantees recorded in the 0.10.0 boundary above. This completion does not include response serialization in the deadline or claim preemption of synchronous work.

No remaining acceptance criteria are listed for this completed milestone. Follow-on result-chain work begins at milestone 2.

2. Result-dependent execution with one producer-backed choice

Section titled “2. Result-dependent execution with one producer-backed choice”

Completed in 0.14.0 (included from version 0.14.0): the narrow result-dependent optimization for one producer-backed choice in an otherwise eligible sequential chain. The 0.11.0, 0.12.0, and 0.13.0 boundaries above retain their historical semantics; in particular, published v0.13.0 chains with producer-backed choices remain agent-mediated, including singleton domains. The version 0.15.0 extension below is separate and does not alter those historical release boundaries.

The shipped 0.14.0 contract uses FromResult to pass only a producer’s locally validated output into a downstream operation; the data dependency establishes result readiness. The terminal operation remains the explicit final-response producer and returns its canonical validated result. The complete chain is eligible only in the supported linear required-operation shape; there is no public maximum chain length. Exactly one producer-backed choice using AgentChoice(from_result=producer) is supported in the eligible linear required-Exactly(1) chain, with producer output list[ConcreteModel]. Selection remains scoped to the complete eligible chain, not a separately exposed subgraph. Every uniquely ready prefix operation executes before model resolution. If a producer returns no candidates, the existing fixed redacted unavailable-choice response occurs before model resolution or downstream work. For exactly one candidate, Summonpot selects the canonical validated member locally and continues without resolving or constructing a model. For multiple candidates, the configured model resolves lazily at that choice boundary; only bounded inert descriptions and opaque request-local tokens are exposed, with local membership verification before binding the exact canonical candidate. On the singleton path the fully resolved suffix executes without a model. With multiple candidates, the suffix continues through the existing agent-mediated chain in the same run. The terminal operation remains the canonical final-response producer; model-authored success claims are not a substitute. Eligibility requires a Pydantic request with at least one FromRequest binding, an existing uniquely ordered chain of at least two required Exactly(1) operations, exactly one producer-backed choice argument across the chain and no other choice, supported immutable defaults plus request/result/authenticated-context bindings, and exact full terminal response annotation identity. The producer must return the supported concrete-model list and precede the consumer. This narrows optimization eligibility only; all other admitted declarations keep their existing agent-mediated route. The 128-candidate and 65,536-character evidence limits apply even to singleton domains, and local selection passes canonical-member and receiving checks. The same authenticated context, validated request, results, reservations, stable tokens and absolute deadline carry across the model handoff. The prefix is not replayed and model history is not fabricated. Prefix effects may precede provider-configuration failure on the multiple-candidate path; lazy model resolution does not make the prefix side-effect-free or provide rollback. Bare callable capabilities and supported explicit declarations outside this optimization retain their existing agent-mediated path. Unsupported explicit contracts remain rejected at registration. Regression coverage verifies zero candidates, singleton execution with zero model resolution/construction/calls, and multiple candidates using the same endpoint/provider; producer effects precede model resolution, model resolution occurs only once for multiple candidates, and token forgery, stale tokens, output failure, timeout and downstream failure cannot authorize or replay effects.

This 0.14.0 optimization does not alter the historical v0.11.0, v0.12.0, or v0.13.0 boundaries: each retains its historical behavior, including agent mediation for producer-backed choices. Outside this narrow optimization eligibility, the existing supported agent-mediated execution is preserved. No recurring bounds, rollback, cross-request idempotency, or endpoint-wide transactions are introduced.

3. Bounded orchestration with multiple choices and repeated calls

Section titled “3. Bounded orchestration with multiple choices and repeated calls”

Version 0.15.0 implements framework-owned producer-choice progression, a narrow sole-operation slice of finite repeated calls, and bounded checkpoint progression. Milestone 3 is partially implemented, not complete. These additions are included from version 0.15.0; historical version boundaries above remain unchanged.

The repeated-call slice covers one required typed operation with a Pydantic request, at least one FromRequest, direct closed string-valued Literal choices, supported request/context sources or immutable defaults, exact full operation-output/endpoint-response annotation identity, and positive finite effective bounds. Summonpot owns the sequential loop, reserves starts before application code, counts validated successes for the minimum, retains per-invocation identity/results and failed or uncertain reservations, and returns the final successful canonical invocation result after legal finish or automatic maximum completion. Any later failure aborts; an earlier success is not a fallback response. Explicit function-tool quotas reject this new shape before work rather than silently weakening limits.

The remaining work in milestone 3 is broader than the admitted single-stage sequential chain:

  • Broader feedback workflows, repeated consumers, arbitrary receipt-fed rounds and richer inspect/correct/verify graphs remain outside the checkpoint slice.
  • Producer-backed choices from repeated outputs, arbitrary historical invocation references, repeated-result aggregation, and multiple or nested repeated stages.
  • General graphs, cycles, parallel scheduling, durable execution/resumption, rollback, or distributed exactly-once effects.

The new narrow contract addresses only FromResult(..., invocation="final") from one closed repeated producer to its resolved suffix; see the focused source contract. Minimum/maximum semantics enforce declared bounds against validated successes and starts respectively; retain reservations for failed, cancelled, or uncertain starts. Model retries cannot replay an effect. Every supported extension must preserve one unambiguous terminal operation/result and its invocation identity. Keep execution sequential until partial completion and timeout uncertainty, cancellation, and recovery have explicit semantics. Existing sole-operation repetition, Exactly(1) chains, and producer-choice declarations are not downgraded or reinterpreted. Existing Required marker normalization remains unchanged: its effective minimum is at least one.

Version 0.15.0 contains a narrow branch/join slice; milestone 4 is partially implemented, not complete. This slice is included from version 0.15.0; historical v0.14.0 behavior is unchanged. The existing sequential chain, choice, repetition, and checkpoint paths are unchanged.

  • Extend private compilation beyond the required single-start slices only after milestone 3 settles invocation and result semantics. Preserve the least-powerful sufficient execution rule:
one complete legal path → deterministic execution
bounded declared choice → agent-mediated execution
no legal path → typed deterministic error
  • The current narrow slice admits fully resolved required Exactly(1) acyclic graphs only: Pydantic request/response, at least one FromRequest, supported request/result/authenticated-context/default inputs, a unique sink reached by every operation, and one exact full-response producer. Execute sequentially using stable declaration-order tie-breaking among ready operations; after adds business ordering. No AgentChoice. See example 20 and the contract.
  • Broader path/choice compilation, public graph APIs, parallel scheduling, feedback, and general non-linear shapes remain planned.
  • Keep argument and result provenance identity-keyed; validate operation outputs before consumption and use exact terminal response annotations.
  • Use conservative compatibility analysis: unknown type relationships remain unknown and cannot erase known contradictions.
  • Keep the runtime/compiler private. Callers do not select a path, send action, or gain capabilities through compilation.
  • Test branched dependencies, joins, cycles, disconnected operations, incompatible and unknown types, no-legal-path errors, deterministic zero-model paths, and choice-bearing agent paths.

No public graph API, arbitrary parallel scheduling, or handler-side orchestration is part of this milestone.

5. Exact bounded database operations and transaction boundaries

Section titled “5. Exact bounded database operations and transaction boundaries”

Add optional adapters only after execution and result semantics are stable. Application callables remain sufficient without an adapter. A target object flow is:

prepared SQLAlchemy statement or fixed SQLite specification
→ framework-owned adapter and session/connection lifecycle
→ Required(...) or Depends(...) endpoint capability
→ typed operation result or write receipt
  • Accept only exact prepared SQLAlchemy Select, Insert, Update, or Delete statement objects and fixed parameterized SQLite specifications; bind only declared parameters from validated request/result sources.
  • Return typed projections and constrained affected-row receipts. Never expose raw Session, Engine, Connection, cursor, editable SQL, or natural-language-to-SQL authority.
  • Define read lifecycle and write transaction boundaries explicitly: when a transaction begins, validates, commits, and rolls back; which failures are known pre-commit versus uncertain after commit; and how output validation relates to commit.
  • Make adapter ownership, connection/session cleanup, and transaction propagation explicit. Do not imply a cross-capability transaction unless the contract actually provides one.
  • Test bounded predicates and bind values, row-count constraints, output validation, commit/rollback boundaries, cleanup, cancellation, and commit uncertainty.

Adapters are optional; they do not make arbitrary callables transactional or confer cross-request idempotency.

6. Concrete recovery and long-running execution

Section titled “6. Concrete recovery and long-running execution”

Build on explicit result semantics and transaction boundaries to support concrete recovery or long-running workloads. Do not build a generic durable workflow layer in advance of a demonstrated endpoint need.

  • Record invocation identity, validated completed results, failed starts, and uncertainty durably when a declared execution mode requires resumption.
  • Define idempotency keys and deduplication scope, checkpoint ownership, retry eligibility, cancellation, late results, and recovery authority. A timeout or worker cancellation is not proof that an external effect stopped.
  • Resume only from authoritative recorded results; never replay an uncertain effect without an application-defined idempotency/reconciliation decision.
  • Keep recovery paths within the endpoint’s original declared capability set and exact response contract. Define typed outcomes for missing records, conflicts, authorization failures, adapter failures, and exhausted recovery.
  • Test process interruption around effect/record boundaries, duplicate delivery, concurrent resume, stale checkpoints, partial completion, and unknown outcomes.

This milestone does not promise distributed exactly-once effects. Transactionality, idempotency, and recovery guarantees must be stated at their actual scope.

Defer larger internal executors until concrete applications require them. Keep the public endpoint contract stable and integrate an established durable engine rather than rebuilding workflow persistence:

  • Direct typed tool loops for normal synchronous endpoints.
  • Workspace execution for files, planning, long context, or subagents.
  • Durable execution for background, resumable, or long-running work.

Summonpot—not the caller or model—will choose the smallest eligible harness. Changing the harness must never grant additional capabilities.

This planned track complements the milestones above; it does not turn Summonpot into an agent-configuration framework. The endpoint body remains ...: request model, fixed goal, declared operations and bindings, and response model are still the whole executable contract. No public Agent, graph, planner, memory-manager object, or provider-specific context flags are required. Reusable application resources are referenced through typed declarations; Summonpot owns the internal loop, context policy, and execution selection.

The techniques below are not yet shipped Summonpot features. Upstream availability does not establish compatibility with our pinned dependencies or authority guarantees.

A. Budgeted working context and bounded agent execution

Section titled “A. Budgeted working context and bounded agent execution”

With milestone 1’s boundary hardening now complete in 0.10.0, improve the existing agent path without waiting for milestones 2–3, a general graph, or a durable executor. This early slice does not require result-chain retrieval or producer-constrained choices:

  • Keep canonical request state and the invocation ledger separate from model-visible working context. Secrets and the invocation ledger never enter model summaries. This isolation does not activate FromContext or persistent memory; those retain their later prerequisites.
  • Budget the complete model request, including instructions, schemas, retrieved evidence, and output/reasoning headroom. Use provider usage and verified deployment limits; unknown limits require a conservative operator-approved budget, not a guessed model capacity.
  • Start with cheap context selection and deduplication, preserving tool-call/result pairing, recent unresolved work, and a protected copy of the fixed contract. If the protected context cannot fit, return a bounded failure rather than silently dropping constraints. Defer result eviction and result-backed summarization to A2.
  • Detect repeated non-progressing model/tool calls and stop within shared turn, token, cost, and deadline limits. Extra reasoning or model escalation is internal, operator-bounded, evidence-gated, and never restarts effects or changes the endpoint contract.
  • Keep a stable contract/schema prefix where provider caching supports it. Treat prompt-cache reuse as a cost optimization, never as cross-request memory or authorization.

Only after broader orchestration (milestone 3), extend A1 with result-backed context:

  • Keep canonical request/result state separate from model-visible working context and persistent memory. FromContext is not a prompt-history or memory-injection feature; authenticated application context is already available under the 0.13.0 boundary above.
  • Assemble only the relevant, permitted evidence for the next legal decision. Start with bounded projections, pagination, and scoped retrieval of declared operation results; preserve exact canonical values for FromResult and producer-constrained choices.
  • Put oversized evidence behind request-scoped opaque handles with bounded reads, provenance, expiry, and access checks. No arbitrary filesystem or network authority is added. Do not re-execute an effectful operation to recover an evicted tool result.
  • Escalate from A1’s selection and deduplication to tool-result clearing and then summarization only when needed. Preserve tool-call/result pairing, recent unresolved work, exact evidence identifiers, and the protected contract; fail boundedly if protected context cannot fit.
  • Keep compaction summaries non-authoritative. They cannot reset call reservations, invent successful operations, overwrite results, or supply authorization. Preserve exact results separately and test repeated compaction and recovery of omitted evidence.

B. Readiness-aware tool discovery and evidence selection

Section titled “B. Readiness-aware tool discovery and evidence selection”

Build on broader orchestration (milestone 3):

  • Expose or progressively discover only operations already declared and currently legal to invoke. Search does not add capabilities, select providers, or authorize an invocation. Use eager schemas for small capability sets; defer discovery only when evaluations justify it.
  • Recheck readiness, bindings, choice membership, and call limits locally on every invocation, including after compaction or provider changes. Re-advertise permitted tools when compaction removes their disclosure; never infer availability from stale cached model history.
  • Prefer just-in-time retrieval through declared capabilities over loading entire corpora. Retrieved text and model-written plans remain untrusted evidence, not executable instructions. Retrieval/reranking is replaceable application capability behavior, not a mandatory vector store.
  • Use provider-native compaction/search only behind a tested internal adapter. Keep a portable path; opaque provider state cannot replace server-owned history or be assumed portable across providers. Client-supplied summaries cannot erase authoritative server state.

C. Optional scoped continuity and persistent memory

Section titled “C. Optional scoped continuity and persistent memory”

Only after authenticated application context is available (included from 0.13.0), and only for endpoints whose contract declares continuity or memory access:

  • Keep stateless requests the default. Resolve session and memory scope from authenticated application state; a client identifier is never sufficient authorization. Isolate tenants, users, endpoints, and contract versions, including storage, caches, and retrieval indexes.
  • Declare exact memory read/write capabilities with typed records, provenance, freshness, retention/deletion rules, and bounded retrieval. Require concurrency-safe updates and idempotent writes. Separate read authority from permission to save a model-authored note.
  • Label model-authored memories and summaries as untrusted. Corrections and contradictory evidence must supersede stale notes; do not promote remembered text into instructions, credentials, policy, or proof that an operation completed.
  • Keep conversation persistence, memory storage, and durable effect replay distinct. Restoring a conversation never authorizes replaying a write. No automatic global notebook, hidden cross-user personalization, or model-driven changes to the endpoint’s fixed goal.

D. Isolated delegation and advanced execution experiments

Section titled “D. Isolated delegation and advanced execution experiments”

After shared budgets, readiness, and context isolation are proven, evaluate delegation for workloads where it outperforms a single bounded loop:

  • Derive child tasks from the parent’s fixed goal and declared capabilities. Give each child a minimal context projection, a subset of authority, and typed evidence-backed output; children cannot discover undeclared tools or inherit ambient parent credentials.
  • Charge child and summarizer work to the same parent budget while enforcing per-child caps, depth, total spawned tasks, concurrency, and an absolute deadline. Reserve budget before dispatch and account for in-flight overshoot. A child timeout or summary is not proof that an external effect was cancelled or completed. Async tool execution requires a final-output barrier over pending effects, late-result handling, and explicit cancellation semantics; steering cannot change the fixed goal, undo effects, or bypass these checks.
  • Verify returned evidence before accepting success. Default to read-only isolated exploration; effects still pass through the shared invocation kernel and reservations.
  • Keep recursive context processing, model-generated code orchestration, learned memory, and multi-agent swarms as benchmark-gated experiments, not default architecture. No generated code may bypass declared bindings, output validation, or call limits; no shell or general workspace is introduced merely to reduce tokens.

Compare against the existing single-agent path on representative endpoint tasks. Require contract and side-effect correctness first; then measure task success, exact identifier and constraint retention, evidence retrieval, repeated calls, context occupancy, model/summarizer/ child tokens, cache reuse, latency, and cost. Include long runs, repeated compaction, changing facts, oversized results, budget exhaustion, cross-tenant isolation, prompt injection in retrieval and memory, and supported-provider parity. Use deterministic assertions for authority and effects; model judges may supplement semantic-quality evaluation, never replace those checks. Keep telemetry payload-redacted and version the contract, model, and internal context policy for reproducible comparisons. No claimed performance gain ships without measured evidence.

  • Requiring users to configure agent graphs, chains, planners, or framework-specific agents.
  • Turning @summon into a traditional handler decorator.
  • One endpoint or method for every possible action when one fixed goal can naturally orchestrate bounded capabilities.
  • Accepting caller-provided action names as a substitute for endpoint intent.
  • Exposing raw database sessions, arbitrary SQL, shell access, filesystem access, or ambient application authority.
  • Treating provider-native structured output as a replacement for local validation.
No declared capability
=
No authority to perform the action

The execution harness may evolve. The endpoint’s request model, goal, capabilities, and response model remain authoritative.