middleend

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package middleend derives provider-independent lifecycle effects and host responses from verified lifecycle events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Derivation

type Derivation struct {
	// contains filtered or unexported fields
}

Derivation is the constructor-owned result of deriving a verified event. Its effects are PREPARED, non-durable evidence: one interpreted.v2-shaped prepared effect and its optional consultation, carrying verified L2 semantic arms, the producer contract and manifest, but no journal refs. The common receipt boundary finalizes them to occurrence.v2, interpreted.v3 and a rebound consultation. The prepared interpreter coordinate pins the compiled interpretation entry that executed this derivation; the finalizer ensures the same compiled artifact (never a store-latest substitute), and production tests prove the committed ref resolves to that exact body.

func Derive

func Derive(event waist.L2, manifest model.LifecycleMetamodelManifest) (Derivation, error)

Derive returns the canonical effects and optional host response for event. The metamodel coordinate is stamped onto the interpreted.v2 evidence, binding this interpretation to a versioned, journaled interpretation vocabulary. The coordinate is compile-time data (metamodel.Active()), so Derive stays pure.

func (Derivation) Effects

func (d Derivation) Effects() []provenance.Effect

Effects returns a defensive copy of the effects in canonical order.

func (Derivation) IsValid

func (d Derivation) IsValid() bool

IsValid reports whether this value was constructed by Derive.

func (Derivation) PreparedInterpreter added in v0.0.21

func (d Derivation) PreparedInterpreter() definitions.Document

PreparedInterpreter returns the compiled interpreter document coordinate pinned at derivation time: the artifact entry that executed NewEvent, Derive and NewInterpreted for this value. Production tests prove the finalized envelope resolves to this exact body, so the committed semantic envelope identifies the implementation that actually ran.

func (Derivation) Response

func (d Derivation) Response() backend.HostResponse

Response returns the optional constructor-built host response.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL