Cohesive.Api.Execution 0.1.0-alpha.66

This is a prerelease version of Cohesive.Api.Execution.
dotnet add package Cohesive.Api.Execution --version 0.1.0-alpha.66
                    
NuGet\Install-Package Cohesive.Api.Execution -Version 0.1.0-alpha.66
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cohesive.Api.Execution" Version="0.1.0-alpha.66" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cohesive.Api.Execution" Version="0.1.0-alpha.66" />
                    
Directory.Packages.props
<PackageReference Include="Cohesive.Api.Execution" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Cohesive.Api.Execution --version 0.1.0-alpha.66
                    
#r "nuget: Cohesive.Api.Execution, 0.1.0-alpha.66"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Cohesive.Api.Execution@0.1.0-alpha.66
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Cohesive.Api.Execution&version=0.1.0-alpha.66&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Cohesive.Api.Execution&version=0.1.0-alpha.66&prerelease
                    
Install as a Cake Tool

Cohesive.Api.Execution

Transport-neutral execution-control API composition for canonical Cohesive execution semantics.

Install

dotnet add package Cohesive.Api.Execution

Use When

  • You need the canonical Process start, inspection, explanation, retained-trace, lifecycle-control, or limit-update API catalog.
  • You want an in-memory reference binding for the same declared operation and result contracts.
  • You are building an HTTP, CLI, generated-client, test, or presentation interpretation of execution control.

Applications that only declare general semantic APIs should reference Cohesive.Api instead.

Ownership Boundary

Cohesive.Api.Execution is a composition package, not another execution semantic authority:

  • Cohesive.Api owns generic operation, endpoint, authorization, result, and semantic-reference declarations.
  • Cohesive, Cohesive.Processes, and Cohesive.Storage own execution identity, commands, status, trace, explanation, Control, and Process runtime semantics.
  • This package binds those authorities into one stable execution-control catalog and safe reference result projections.
  • Concrete transports such as ASP.NET remain in Cohesive.Adapters.*.

The dependency direction is acyclic: Cohesive.Api.Execution depends on Cohesive.Api, Cohesive.Processes, Cohesive.Storage, and the Cohesive foundation; the complete generic Cohesive.Api project-reference closure does not acquire Cohesive.Processes.

Entry Points

ExecutionControlApiCatalog.Create() returns the complete immutable route-neutral operation inventory in stable order. InMemoryExecutionControlApiAdapter is a linearizable reference integration for tests and local composition; canonical reducers remain responsible for lifecycle, replay, fencing, and admission semantics.

using Cohesive.Api.Execution;

var catalog = ExecutionControlApiCatalog.Create();
var traces = catalog.Definition.GetOperation(catalog.Traces);

Production runtimes can supply authoritative asynchronous dispatchers for Process start, the five lifecycle mutations, and Control-limit updates. When one is supplied, the adapter authorizes against the canonical endpoint, does not consult its local registry for that operation, and projects only the authoritative result. A lifecycle dispatcher receives the untrusted portable command separately from ExecutionApiInvocationContext; it resolves the Process using the trusted authority scope, rebinds first-occurrence evidence, restores retained occurrence evidence for exact replay, and returns only after the safe canonical result is recoverable. Provider message admission alone is not lifecycle success. ExecutionProcessControlCommandAdmission provides the shared trusted rebinding rule.

The explain and traces queries return ExecutionExplainArtifact and ProcessExecutionTraceArtifact directly. Adapters must not translate them into parallel response models. Opaque ExecutionApiProblem values intentionally exclude physical identities, authorization evidence, payloads, and provider history.

Invariants and Failure Boundaries

  • Endpoint handles, operation order, authorization requirements, result variants, and semantic references come only from ExecutionControlApiCatalog.
  • Trusted authorization, issuance, provenance, and tenant evidence is supplied by an adapter, never deserialized from an API caller.
  • Authoritative lifecycle lookup uses trusted authority scope plus canonical logical Process identity. Missing and unauthorized targets remain opaque, and exact command or idempotency replay restores the retained occurrence.
  • Repository availability and lifecycle dispositions map to declared result variants; unspecified or incoherent states fail closed.
  • The in-memory adapter accepts only handles owned by its exact catalog and checks returned evidence affinity before projection.
  • The complete Cohesive.Api project-reference closure must remain free of Cohesive.Processes.

Transport Interpretation

Cohesive.Adapters.AspNet maps the catalog's Process observation handles through MapProcessExecutionInspectApi, MapProcessExecutionExplainApi, and MapProcessExecutionTracesApi. OpenAPI, GraphQL, TypeScript, CLI, and future hosts consume the same generic ApiDefinition without acquiring transport behavior from this package.

Migration from Cohesive.Api

Execution-control types moved from the Cohesive.Api assembly into this package. Add a package or project reference to Cohesive.Api.Execution and import Cohesive.Api.Execution. Wire authorities, schema version v4, operation order, endpoint identities, contracts, and canonical JSON are unchanged.

Testing

Catalog, result, in-memory integration, generated-client, and ASP.NET conformance tests live under src/Cohesive.Tests/Api. ExecutionApiPackageBoundaryTests guards the assembly dependency direction and ownership of the execution-specific public surface.

  • Cohesive.Api for generic semantic API declarations.
  • Cohesive.Processes for canonical Process semantics and execution evidence.
  • Cohesive.Storage for canonical Control contracts used by the execution-control surface.
  • Cohesive.Adapters.AspNet for ASP.NET endpoint projection.
  • Cohesive.Adapters.OpenApi, Cohesive.Adapters.GraphQL, and Cohesive.Adapters.TypeScript for derived API artifacts.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Cohesive.Api.Execution:

Package Downloads
Cohesive.Adapters.DurableTask

Cohesive semantic system definition and orchestration building blocks.

Cohesive.Adapters.AspNet

Cohesive semantic system definition and orchestration building blocks.

Cohesive.Processes.Contracts

Cohesive semantic system definition and orchestration building blocks.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.66 0 8/25/2026
0.1.0-alpha.65 32 8/25/2026
0.1.0-alpha.64 34 8/25/2026
0.1.0-alpha.63 61 8/24/2026
0.1.0-alpha.62 50 8/24/2026
0.1.0-alpha.61 66 8/24/2026
0.1.0-alpha.60 48 8/24/2026
0.1.0-alpha.59 53 8/24/2026
0.1.0-alpha.58 50 8/24/2026
0.1.0-alpha.57 47 8/24/2026
0.1.0-alpha.56 49 8/24/2026
0.1.0-alpha.55 45 8/23/2026
0.1.0-alpha.54 45 8/23/2026
0.1.0-alpha.53 62 8/23/2026
0.1.0-alpha.52 51 8/23/2026
0.1.0-alpha.51 53 8/23/2026
0.1.0-alpha.50 45 8/23/2026
0.1.0-alpha.49 42 8/23/2026
0.1.0-alpha.48 60 8/23/2026
0.1.0-alpha.47 50 8/23/2026
Loading failed