Skip to content

Architectural Decisions ​

These records capture the durable choices that shape TPF. Each ADR answers one coherent ownership question. Detailed design and authoring pages explain how to use the resulting model; current source, compiler behaviour, tests, and current docs remain authoritative for exact syntax and release support.

Follow a record's status and successor links before using it as an authoring rule. Partially superseded decisions identify the clauses that still apply. Historical records retain their published URLs and rationale so source references remain useful.

Catalogue ​

ADR-0068 defines development snapshot defaults, merge-triggered publication and the distinction from immutable test and release inputs.

ADRDecision
0001Keep business transformations in a functional core and carry known facts explicitly.
0002Make the compiler own v3 type, routing, and generated-contract semantics.
0003Choose topology and cardinality before Java service/operator shape.
0004Compose pipelines as typed steps and express looping through bounded recursion.
0005Use Query only for genuinely new external observation.
0006Give Command and CommandEffectStore authority over logical external effects.
0007Give Await transport-independent durable suspension semantics.
0008Keep persistence, cache, capture, effects, Await, and execution state distinct.
0009Carry large content by reference and separate canonical/local/durable/wire representations.
0010Prefer compiler-generated boundaries and typed connectors over application glue.
0011Separate runtime layout, build topology, transport, configuration lifetime, and telemetry policy.
0012Keep business outcomes, item rejection, runtime recovery, effects, and handoff ownership distinct.
0013Change the owning abstraction coherently; impact determines rigor, not semantic placement.
0014Keep remote caller timeout ambiguity under durable coordinator authority.
0016Keep field presence and value nullability independent and classify evolution per compatibility surface.
0017Declare blocking and serialized connector execution structurally and enforce serialization per binding and operation.
0018Persist Command effect authority as immutable conditional revisions with lossless typed replay.
0019Express finite streaming Query through the existing ONE_TO_MANY runtime and deterministic child lineage.
0020Persist Query observation authority as immutable conditional revisions with terminal streaming commit.
0021Expose connector invocation semantics while leaving external authentication and credential resolution with the host.
0022Preserve finite row streaming and declared total order in both Hibernate find.many providers.
0023Default hosted LLM Query to non-blocking provider I/O while retaining an explicit blocking implementation.
0025Give intentional Command reissue a new provider occurrence identity without weakening replay safety.
0026Treat an LLM request for human information as inert typed protocol data.
0027Import selected MCP tools as pinned Connector operations without making MCP an Agent authority or runtime.
0028Bind imported Block Query and Command requirements to application-owned connector authority at compilation.
0029Execute only application-pinned GraphQL operations through ordinary Query and Command authority.
0030Reuse host-platform authorization and bridge durable connection lifetime behind the existing host resolver.
0031Make canonical v3 own allowed scalar sets and repeated-field cardinality constraints.
0032Link packaged callable catalogues, trusted projections, and dynamic Query/Command dispatch without transferring application authority.
0033Package a bounded GraphQL-aware agent loop while leaving persisted operations and Command authority with the application.
0034Execute immutable HTTP operation pins through ordinary Connector Query and Command support.
0035Import selected OpenAPI operations as release-pinned capabilities without importing external authority.
0036Model Await as deferred completion on an ordinary operation, not as an operation kind.
0037Join ordinary Command dispatch with correlated completion before advancing the pipeline.
0038Import OpenAPI callbacks as pinned Command completion contracts with application-owned endpoint and authentication authority.
0039Keep authored compiler discovery surfaces in the framework-neutral API and normalize them through one compiler semantic model.
0040Keep provider-neutral connector contracts on runtime-core and semantic-model, outside runtime and platform integrations.
0041Keep customer-authored reactive APIs and portable Blocks outside runtime and platform integrations.
0042Share one framework-neutral canonical pipeline serialization policy across build hosts, customer code, runtimes, and workers.
0043Keep reactive provider and authored boundary contracts outside runtime implementations and platform integrations.
0044Keep durable Command effect and Await store contracts outside runtime implementations and platform integrations.
0045Keep Query capture store contracts portable while the runtime codec owns durable event serialization.
0046Keep durable execution state contracts portable while runtime hosts own provider configuration and implementations.
0047Keep transition request and payload contracts shared while runtime hosts own transport and worker implementations.
0048Publish portable protobuf schemas while Quarkus owns generation of its Java and Mutiny adapters.
0049Share portable transition result data while keeping decoded outcomes and executable failures runtime-local.
0050Share remote-worker capabilities, wire identities, envelopes, and signature canonicalization without sharing runtime implementations.
0051Share release, contract, artifact, and digest identity without sharing control-plane implementations.
0052Let dead-letter providers consume a portable failure-publication contract without runtime-host configuration leakage.
0053Let durable queue and scheduler providers consume portable work-dispatch identity and operations.
0054Let item-reject destinations consume portable rejection facts and publication operations.
0055Keep protocol-carried lifecycle values in shared runtime model while provider operations remain SPI.
0056Let runtime hosts provide secret lookup without leaking provider policy or resolved values into shared contracts.
0057Give packaged Blocks independent release ownership over released framework and Connector contracts.
0058Publish Expansions as independently released dependency distributions without creating new semantics or authority.
0059Build learning examples and architectural proofs as clean consumers of released TPF artifacts.
0060Build long-lived reference systems as clean consumers of released TPF artifacts.
0061Publish the exact independently released TPF component versions verified together.
0062Validate independently released components through immutable candidate overlays and credential-separated test execution.
0063Assign repositories where consumers can rely on released contracts instead of source-level atomicity.
0064Produce a closed immutable Release from final artefact bytes and recoverable Compiled Truth.
0065Bound resumable source transitions by pages while preserving live item demand and existing recovery ownership.
0066Keep Release production in builds and deploy existing Releases through the build-tool-neutral TPF CLI.
0067Give all managed runtime telemetry the same host policy and instrument lifecycle.
0068Make main consume active development snapshots while immutable compatibility inputs remain explicit.
0069Prefer AWS Durable for mechanical QUEUE_ASYNC coordination while TPF retains semantic authority.
0070Generate authorised HTTP upload and download boundaries around canonical payload references.
0071Stream COMPUTE payloads directly and delegate FUNCTION payload bytes to S3 under the same owned reference contract.
0072Keep generated Spring and AWS Durable application proofs in examples over released runtime artifacts.
0073Bind completion admission and parent release to one retained Await unit occurrence.
0075Keep approved dialogue history with the application while Connectors supply context vocabulary and external adapters.
0076Carry authorised, bounded conversation state through ChatAgent and hydrate only at an application-chosen boundary.
0077Declare application-projected Query type contracts in provider metadata and keep one canonical template loader.
0078Return release-pinned Command proposals from ChatAgent without granting the Block effect authority.
0079Draft: retain a typed dispatch acknowledgement when Command completion must validate the provider-assigned identity.
0089Draft: preserve Coordinator authority across typed value operations and scoped Await dispatch admission.
0081Give each concrete canonical input one authored consumer per Pipeline definition, with definition-owned observer occurrences; the self-call clause is refined by 0086.
0082Complete typed branches at their definition output boundary without an authored identity merge.
0084Share release preparation and resolution across the CLI and Maven.
0085Select canonical operation outcomes for Await and plugin observation while preserving typed routing.
0086Explicit self-invocation and durable return through nested Await.
0090Draft: carry physical package associations in the immutable Release Descriptor, extending ADR-0064.
0091Make compiled placement own nested/self invocation locality and execution-segment boundaries without changing deployment transport/platform identity.
0092Execute polyglot TPF applications on one shared Java execution engine (distributed or via a standalone native tpf CLI) with thin foreign function hosts and a three-tier Connector architecture.
0093Execute admitted Commands in registered SYNC transition workers under a verified leased scope, command-authority-v1 capability gating, and an explicit recoverable CommandEffectStore.
0094Integrate non-Quarkus JVM frameworks (starting with Spring Boot) as ADR-0092 foreign function and connector hosts rather than re-hosting TPF's execution engine per framework.
0095Provide an opt-in Hibernate Reactive Mutiny.StatelessSession persistence plugin driver (StatelessReactivePersistenceProvider) while keeping ReactivePanachePersistenceProvider as the default.

| 0088 | Observe compiled applications through a compiler-owned, minimal build census. |

Superseded decisions ​

These records explain earlier designs. Use their successor for current semantics. They remain at their original canonical locations, with status: deprecated and explicit successor metadata for retrieval tools and agents.

ADREarlier decisionSuccessor
0015Standalone Await-step routing.0036
0024Functional-core-only packaged Blocks.0028
0080Whole-bundle native LOCAL runtimes consuming compiler-owned execution contracts.0092
0083Definition-level recur declarations.0086
0087Root-only durable recurrence. Formerly published under the root-recurrence ADR-0084 URL.0086
0088Bounded unary whole-bundle native qualification profile and tpf-polyglot-failed-result/1 paired binding.0092
0089Experimental tpf-polyglot-int32-json/1 payload encoding and paired whole-bundle worker seam.0092

Maintenance ​

These files use the Nygard/MADR sections understood by GitNexus: Context, Decision, Rationale, and Consequences, with an explicit status. Keep one semantic choice per file and name the affected repository areas concretely.

  • accepted means current doctrine; draft means proposed; rejected or deprecated means it must not guide new work.
  • Clarify an accepted decision in place when its meaning is unchanged.
  • When direction changes, add a successor ADR, deprecate the old record, and record the supersession in GitNexus rather than erasing the history.
  • Update the relevant design/develop/deploy page and focused tests when exact behaviour changes. Do not put transient support matrices into these ADRs.
  • Let the managed auto-sync refresh the owning repository and tpf group indexes after merge. Run focused graph change analysis against the owning repository before committing code that changes a recorded semantic owner.

GitNexus is a decision index, not architectural authority. Confirm extracted or historical records against current repository reality before relying on them.

Diagram