checkpoint

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package checkpoint implements checkpoint@v1 over workflow/gate declarations and the canonical workflow/wait suspension and continuation contracts. Product work-item lifecycle and escalation execution remain host-owned.

Index

Constants

View Source
const (
	KindName    = "checkpoint"
	KindVersion = "v1"

	CapabilityRespond = "checkpoint.respond"
	CapabilityWait    = "wait.resume"

	CodeInvalidCheckpoint = "checkpoint_invalid"
	CodeAuthorityFailed   = "checkpoint_authority_failed"
	CodePayloadFailed     = "checkpoint_payload_failed"
	CodeContinuation      = "checkpoint_continuation_invalid"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind struct {
	*gateadapter.Executor
}

Kind is checkpoint@v1. Its config parsing, wait identity, durable suspension, continuation schema validation, timeout, cancellation, and output classification are implemented by the same profiled executor as human_gate@v1, preventing the two shared-gate adapters from drifting.

func New

func New(options Options) (*Kind, error)

New constructs checkpoint@v1 with the shared gate engine.

func Register

func Register(registry stepkind.Registry, options Options) (*Kind, error)

Register constructs and registers checkpoint@v1.

func (*Kind) Spec

func (*Kind) Spec() stepkind.StepKindSpec

Spec returns checkpoint metadata even on a nil receiver, while execution is delegated to the constructed shared gate engine.

type Options

type Options = gateadapter.Options

Options is the application-owned shared gate host boundary. Authority is the responder seam; escalation declarations remain immutable Checkpoint payload metadata and are not executed by the adapter.

Jump to

Keyboard shortcuts

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