This is the fast way to orient yourself in Workerkit's public API.
It covers the exported surface of the root workerkit package and the first-party subpackages: opshttp, servekitservice, retry, otel, and slogobserver.
Go doc comments remain the canonical symbol-level reference. This file is the companion view that groups the exported surface by the decisions you make when using the package.
If you only remember the common path, remember this:
New(...)creates one runtime for a service boundaryRegister(...)attaches workers and their operational policyStartAll(...)andShutdown(...)cover the core runtime lifecycleservekitservice.New(...)optionally coordinates Workerkit lifecycle around an application-owned Servekit serverWithCommand(...)andWithCommandSpec(...)expose worker-owned operationsNewCheckLoop(...),NewCheckGroupLoop(...), andCommandFromOpskit(...)execute active Opskit workservekit.WithOps(...)presents shared Opskit state through Servekitopshttp.Mount(...)optionally adds Workerkit-specific HTTP controls
Everything else in this file exists to customize that path without turning workers into a framework-specific application model.
-
RuntimeThe main runtime object. It owns worker registration, lifecycle control, worker-owned command dispatch, readiness aggregation, status snapshots, failure policy, concurrency limits, retry execution, and observer callbacks inside one service boundary.
-
New(...)Creates a runtime with a validated
Identityand production-oriented defaults: bounded lifecycle and command attempt timeouts, no retries unless configured, panic recovery, isolated worker failure policy, readiness derived from readiness-contributing workers, and no command concurrency caps unless configured. -
IdentityThe runtime identity used for worker qualification, status, telemetry, and operations surfaces. Runtime names are operational identifiers, not display names.
-
Identity.Validate()Validates the runtime identity.
-
RuntimeOptionRuntime-wide configuration hook applied during
New(...). Runtime defaults are copied into each worker at registration time.
-
WorkerThe lifecycle contract managed by the runtime.
Shape:
type Worker interface { Start(context.Context) error Stop(context.Context) error }
-
WorkerSpecRegistration metadata for one worker: local name, optional description, and worker implementation.
-
WorkerOptionPer-worker configuration hook applied during
Register(...). Worker options override runtime defaults for that registered worker. -
Register(...)Adds a worker to the runtime while the runtime is still in the registered state. The runtime qualifies the local worker name as
runtime/worker. -
WorkerRuntimeWorker-scoped runtime handle available in contexts passed to
Start,Stop, and command handlers. It lets worker code inspect its own status, set readiness, control Workerkit command admission, and report asynchronous failures without receiving full runtime authority. -
WorkerRuntimeFromContext(...)Extracts the worker-scoped handle from a managed worker or command context.
-
Start(...)Starts one registered, stopped, or failed worker. It applies start timeout, start retry, panic policy, and startup readiness/accepting-work defaults.
-
StartAll(...)Starts registered workers in registration order. It is fail-fast and does not roll back partial startup.
-
Drain(...)Marks one running worker as draining, unready, and not accepting new Workerkit command dispatches.
-
DrainAll(...)Drains running workers in registration order and returns on the first error.
-
DrainAllBestEffort(...)Attempts to drain all running workers and returns the combined error when any drain fails.
-
WaitIdle(...)Waits until one worker has no in-flight commands.
-
WaitAllIdle(...)Waits until the runtime has no in-flight commands.
-
Stop(...)Stops one running, draining, or failed worker. Stop closes command admission for that worker only, without affecting unrelated running workers. It does not wait for in-flight commands or cancel their contexts; compose
Drain,WaitIdle, andStopwhen graceful command drain is required. -
StopAll(...)Closes runtime-wide command admission, stops registered workers in reverse registration order, and continues after individual stop failures.
-
Shutdown(...)Convenience graceful shutdown path for non-HTTP callers. It closes runtime-wide command admission, drains all workers best-effort, waits for runtime idle, then stops all workers using the caller's context.
-
CommandSpecFull command registration shape with name, description, Opskit-compatible advisory metadata, and handler. Use this when command discovery should be useful to operators.
-
CommandSpec.Validate()Validates command name syntax and handler presence.
-
WithCommand(...)Registers one simple worker-owned command by name and handler.
-
WithCommandSpec(...)Registers one full
CommandSpec, including optional discovery text. -
CommandFromOpskit(...)Adapts one
opskit.CommandDescriptorandopskit.CommandHandlerinto a normalCommandSpec. Opskit results are JSON-encoded into Workerkit payloads and execute under Workerkit's existing policy. -
ErrOpsCommandRejectedIdentifies an Opskit result that did not accept the command.
-
ErrOpsCommandFailedIdentifies an Opskit failed result, explicit public failure detail, or result encoding failure.
-
OpskitCommandErrorThe typed error returned when an Opskit result is rejected or failed. It unwraps to the corresponding broad sentinel and preserves a value copy of
opskit.Failure, allowing application policy to inspect its stable code witherrors.As. Its error text uses only Opskit public operational messages.Cause()returns a private adaptation cause, when present, and must not be copied to an operational surface without application-owned policy. -
FailureCodeOpskitCommandRejected -
FailureCodeOpskitCommandFailed -
FailureCodeOpskitResultEncodingFailedStable default public codes for Opskit rejection, failure, and result encoding failure. Explicit Opskit failure codes take precedence. An arbitrary encoder error remains available only through
OpskitCommandError.Cause(). -
WithOperationalFailure(...)Associates an explicit safe public
opskit.Failurewith a private cause. The wrapper formats only the public message and unwraps to the cause soerrors.Isanderrors.Ascontinue to work. Both public fields may flow to status, logs, telemetry, diagnostics, support tools, and tests. -
FailureCodeWorkerFailed -
FailureCodeLoopCleanupFailed -
FailureCodeCommandFailed -
FailureCodeDeadlineExceeded -
FailureCodeCanceled -
FailureCodePanicStable public codes used by Workerkit's default failure projection. Ordinary arbitrary errors receive a generic worker, loop-cleanup, or command presentation; they are never formatted into public status or built-in telemetry.
-
CommandHandlerHandles one worker-owned command invocation.
Shape:
type CommandHandler interface { HandleCommand(context.Context, CommandRequest) (CommandResult, error) }
-
CommandHandlerFuncAdapts a function into
CommandHandler. -
CommandHandlerFunc.HandleCommand(...)Implements
CommandHandler. -
CommandRequestTransport-neutral command input: worker target, command name, opaque payload bytes, and request time.
-
CommandRequest.Validate()Validates command target and command name syntax.
-
CommandResultTransport-neutral command output: optional message and opaque payload bytes.
-
Dispatch(...)Routes one command to a registered worker command handler. It validates the target, checks lifecycle and accepting-work state, enforces runtime and worker concurrency limits, applies command timeout and retry policy, records command failures, and emits command observations.
-
Commands(...)Returns registered command discovery metadata for one worker in stable name order.
-
RuntimeStatus()Returns aggregate runtime status.
-
Identity()Returns the runtime identity used for qualification, telemetry, and operations surfaces.
-
RuntimeStatusRuntime-level operational snapshot. It includes runtime name, aggregate lifecycle state, readiness, in-flight command count, registered worker count, and last aggregate lifecycle transition.
-
Workers()Returns worker inspection snapshots in registration order.
-
Worker(...)Returns one worker inspection snapshot by local or fully qualified name.
-
WorkerSnapshotWorker registration metadata plus current
WorkerStatus. -
WorkerStatusWorker-level operational snapshot. It separates lifecycle state, readiness, accepting-work state, in-flight command count, last lifecycle transition, last worker failure, and last command failure.
-
LifecycleTransitionThe most recent lifecycle transition recorded in a status snapshot.
-
FailureInfoThe most recent worker lifecycle or background failure recorded in worker status.
CodeandMessageare safe public operational data; no private cause is retained. -
CommandFailureInfoThe most recent command handler returned error recorded in worker status.
CodeandMessageare safe public operational data; no private cause is retained. -
CommandInfoDiscovery metadata for one registered worker-owned command.
RuntimeStatus, WorkerSnapshot, WorkerStatus, CommandInfo, and nested
status structs are public inspection contracts. Their JSON tags support callers
that serialize snapshots, but generic Kit Series HTTP inspection is presented
through Opskit and Servekit rather than a Workerkit-specific read API.
-
LifecycleStateShared lifecycle state type used by workers and runtime aggregate status.
-
StateRegisteredKnown to the runtime but not started.
-
StateStartingTransitioning into service.
-
StateRunningActive.
-
StateDrainingAlive but refusing new Workerkit command dispatches.
-
StateStoppingActively shutting down. Aggregate runtime
StateStoppingreports that at least one worker is stopping; it is not by itself a runtime-wide command-admission cutoff. -
StateStoppedIntentionally shut down.
-
StateFailedNormal execution cannot continue without intervention.
-
WithRuntimeCommandConcurrency(limit int)Caps total concurrent command executions across the runtime. Zero or negative leaves the runtime-wide cap unbounded.
-
WithReadinessPolicy(policy ReadinessPolicy)Sets how runtime readiness is derived from worker readiness and lifecycle state.
-
WithObserver(observer Observer)Sets the transport-neutral observer hook. Nil installs a no-op observer, and non-nil observers are wrapped so telemetry panics do not escape runtime paths.
Default worker options are copied into each worker when it is registered. Later changes to runtime defaults do not mutate already-registered workers.
-
WithDefaultStartTimeout(timeout time.Duration)Sets the default per-attempt
Starttimeout. -
WithDefaultStopTimeout(timeout time.Duration)Sets the default per-attempt
Stoptimeout. -
WithDefaultCommandTimeout(timeout time.Duration)Sets the default per-attempt command timeout.
-
WithDefaultStartRetry(policy retry.Policy)Sets the default
Startretry policy. Configure this only whenWorker.Startis safe to call again after failure. -
WithDefaultCommandRetry(policy retry.Policy)Sets the default command retry policy for command handler returned errors.
-
WithDefaultWorkerCommandConcurrency(limit int)Sets the default per-worker command concurrency cap.
-
WithDefaultPanicPolicy(policy PanicPolicy)Sets the default panic handling policy.
-
WithDefaultFailurePolicy(policy FailurePolicy)Sets the default worker failure policy.
-
WithDefaultReadyOnStart(ready bool)Sets the default ready state assigned after successful
Start. -
WithDefaultAcceptingWorkOnStart(accepting bool)Sets the default command admission state assigned after successful
Start. -
WithDefaultWorkerReadinessContribution(contributes bool)Sets whether workers contribute to aggregate runtime readiness by default.
-
WithWorkerStartTimeout(timeout time.Duration)Overrides the
Starttimeout for one worker. -
WithWorkerStopTimeout(timeout time.Duration)Overrides the
Stoptimeout for one worker. -
WithWorkerCommandTimeout(timeout time.Duration)Overrides the command timeout for one worker.
-
WithWorkerStartRetry(policy retry.Policy)Overrides the
Startretry policy for one worker. -
WithWorkerCommandRetry(policy retry.Policy)Overrides command retry policy for one worker.
-
WithWorkerCommandConcurrency(limit int)Caps concurrent command executions for one worker.
-
WithWorkerPanicPolicy(policy PanicPolicy)Overrides panic policy for one worker.
-
WithWorkerFailurePolicy(policy FailurePolicy)Overrides failure policy for one worker.
-
WithWorkerReadyOnStart(ready bool)Overrides the ready state assigned after one worker starts.
-
WithWorkerAcceptingWorkOnStart(accepting bool)Overrides whether one worker accepts Workerkit command dispatches after start.
-
WithWorkerReadinessContribution(contributes bool)Controls whether one worker contributes to aggregate runtime readiness.
-
ReadinessPolicyControls runtime readiness derivation.
-
ReadyWhenContributingWorkersReadyRuntime readiness requires all readiness-contributing workers to be running and ready. This is the default.
-
ReadyWhenAllWorkersReadyRuntime readiness requires every registered worker to be running and ready.
-
PanicPolicyControls how the runtime treats panics inside managed
Start,Stop, automaticLoopWorkercleanup, and command paths. -
PanicPolicyRecoverRecover, record the panic as failure, and apply failure policy. This is the default.
-
PanicPolicyCrashSurface the panic after best-effort failure handling so the process can crash.
-
FailurePolicyControls how worker failure affects the runtime.
-
FailurePolicyIsolateOnly the failing worker moves to failed. This is the default.
-
FailurePolicyMarkRuntimeUnreadyKeeps the process alive but forces runtime readiness down.
-
FailurePolicyFailRuntimeForces aggregate runtime state to failed and stops runtime command admission.
-
ObserverBackend-neutral runtime telemetry hook. The method set is intended to remain stable within a major version; future telemetry details should usually be added as fields on existing event structs.
-
CheckExecutionObserverOptional
Observercapability for Workerkit-managed Opskit check-loop executions. Existing observers do not need to implement it.StartCheckmay return a context passed to the Checker or CheckGroup and its result hook. -
TransitionEventOne worker or runtime lifecycle transition.
-
CommandStartEventStart of one dispatch after the registered command target is resolved. Worker and command identities are registration-owned. Malformed and unregistered targets do not emit command observations. Observers may return a derived context and command observation.
-
CommandObservationReceives the final command dispatch observation.
-
CommandEndEventEnd of one dispatch to a registered command. Includes admission and execution failures, final success/failure, duration, dispatch id, attempt count, safe public failure code/message, and the private original
Cause. Custom observers must not publishCausewithout explicit application policy. -
CheckStartEventStart of one managed Checker or CheckGroup execution. Includes runtime, qualified worker, bounded check kind, and start time.
-
CheckObservationReceives the final managed check execution observation exactly once.
-
CheckEndEventEnd of one managed check execution. Includes Workerkit-measured duration, bounded outcome, and whether the loop continues.
-
CheckKindBounded execution kind:
CheckKindCheckerorCheckKindGroup. -
CheckOutcomeBounded execution result: ready, not ready, timeout, cancellation, panic, or Workerkit integration error.
-
FailureEventOne worker lifecycle, background, command, or panic failure. Command retry failures include dispatch id and attempt number.
CodeandMessageare public operational data;Causeis private diagnostic data. -
ReadinessEventOne worker or runtime readiness change.
-
NopObserverDiscards all telemetry callbacks.
-
NopCommandObservationDiscards command end observations.
-
NopCheckObservationDiscards check end observations.
-
CommandObservationFuncAdapts a function into
CommandObservation. -
CheckObservationFuncAdapts a function into
CheckObservation. -
MultiObserver(...)Fans telemetry out to multiple observers and recovers panics from child observers.
-
SafeObserver(...)Wraps an observer so telemetry panics do not escape runtime lifecycle or command dispatch paths.
-
LoopWorkerWorker implementation for long-running background loops.
-
LoopWorker.Start(...)Starts the loop worker and launches the managed loop goroutine.
-
LoopWorker.Stop(...)Cancels the managed loop, waits for it to exit, and runs cleanup. A cleanup error leaves cleanup pending so a later Stop can retry it; Start remains blocked until cleanup succeeds.
-
LoopFuncLong-running function managed by
LoopWorker.Shape:
func(context.Context, WorkerRuntime) error
-
NewLoopWorker(...)Constructs a loop-backed worker. Auto-ready is enabled by default.
-
LoopWorkerOptionConfigures a
LoopWorker. -
WithLoopStart(...)Sets an optional hook that runs before the loop goroutine starts.
-
WithLoopStop(...)Sets an optional cleanup hook that runs after the loop goroutine stops. Only one attempt runs at a time. Failed attempts are retryable through a later Stop, and the hook should return nil only after cleanup is complete. Hook panics follow the worker's configured panic policy.
-
WithLoopAutoReady(enabled bool)Controls whether
Startmarks the worker ready after launching the loop goroutine. Disable this when readiness depends on domain warmup inside the loop. -
ErrLoopExitedUnexpectedlyReports that a loop returned nil before
Stopcanceled it. -
ErrLoopWorkerActiveReports that
Startfound an existing loop lifecycle in progress.
Opskit defines check and check-group execution hooks but does not schedule them. These constructors adapt those hooks into ordinary Workerkit workers.
-
NewCheckLoop(...)Constructs a worker that periodically executes one
opskit.Checker. Workerkit owns background execution policy, including timeout, cancellation, panic recovery, and Workerkit failure reporting. The checked component remains responsible for any cached dependency health state. -
NewCheckGroupLoop(...)Constructs a worker that periodically executes one
opskit.CheckGroup. Workerkit owns background execution policy, including timeout, cancellation, panic recovery, and Workerkit failure reporting. The checked component remains responsible for any cached dependency health state. -
CheckLoopOptionConfigures an Opskit check loop worker.
-
WithCheckInterval(...)Sets the post-completion wait before the next check execution. Executions are serial, so start-to-start cadence also includes execution time.
-
WithCheckInitialDelay(...)Delays the first check loop action after
Start. -
WithCheckRunImmediately(...)Controls whether the loop executes once before waiting for the first interval.
-
WithCheckTimeout(...)Sets a cooperative per-execution deadline. Workerkit cannot interrupt a checker that ignores cancellation, but it does not apply results returned after the deadline to worker readiness.
-
WithCheckJitter(...)Sets an optional function that returns the complete interval wait, not a duration added to the configured interval.
-
WithCheckReadyOnSuccess(...)Controls whether ready check results mark the worker ready and not-ready results mark it unready.
-
WithCheckReportFailureOnNotReady(...)Controls whether not-ready check results and per-execution timeouts are also reported as Workerkit worker failures and stop the check loop. Disabled by default.
-
WithCheckResultObserver(...)Observes completed single-check Opskit payloads, including rich result detail. Core bounded execution telemetry uses
CheckExecutionObserverinstead. -
WithCheckSummaryObserver(...)Observes completed check-group Opskit payloads, including child result detail. Core bounded execution telemetry uses
CheckExecutionObserverinstead. -
ErrNilCheckerReports that a check loop was constructed without a checker.
-
ErrNilCheckGroupReports that a check group loop was constructed without a group.
-
ErrCheckLoopPanickedReports that a check loop recovered a panic from an Opskit check execution path.
-
ValidateRuntimeName(...)Validates runtime operational identifiers.
-
ValidateWorkerLocalName(...)Validates local worker names.
-
ValidateQualifiedWorkerName(...)Validates fully qualified worker names in
runtime/workerform. -
ValidateWorkerName(...)Validates either local or fully qualified worker identifiers.
-
ValidateCommandName(...)Validates path-like worker-owned command names.
-
ErrNilWorkerRegistration rejected a nil worker.
-
ErrWorkerAlreadyRegisteredA worker with that qualified name is already registered.
-
ErrWorkerNotFoundA worker lookup or command target did not exist.
-
ErrCommandAlreadyRegisteredA command with that worker-local name is already registered.
-
ErrCommandNotFoundA command lookup did not exist.
-
ErrInvalidWorkerStateThe requested lifecycle or command operation is not valid for the worker's current state.
-
ErrRuntimeNotAcceptingWorkThe runtime is not accepting command dispatches.
-
ErrWorkerNotAcceptingWorkThe worker is not accepting command dispatches.
-
ErrRuntimeSaturatedRuntime command concurrency capacity is exhausted.
-
ErrWorkerSaturatedWorker command concurrency capacity is exhausted.
opshttp is the optional Servekit-backed HTTP operations plane for Workerkit.
-
Mount(...)Adds Workerkit operations routes to an existing Servekit server.
-
OptionConfigures the mounted operations routes.
-
DefaultPrefixDefault route prefix:
/admin. -
ErrNilRuntimeThe caller provided a nil Workerkit runtime.
-
ErrNilServerThe caller provided a nil Servekit server.
By default, Mount(...) adds no routes. Passive status, readiness, and
inspection flow through Opskit and Servekit. Enable only the Workerkit control
groups the application needs.
Command dispatch is mutating and opt-in:
-
WithCommandDispatchEnabled()Mounts
POST /admin/commands/dispatch.
Lifecycle controls are privileged and opt-in:
-
WithAdminLifecycleControlsEnabled()Mounts worker and runtime start, drain, and stop routes.
-
WithPrefix(prefix string)Changes the operations route prefix. Empty input mounts at root.
-
WithEndpointOptions(opts ...servekit.EndpointOption)Applies Servekit endpoint options to every mounted Workerkit route.
-
WithDispatchOptions(opts ...servekit.EndpointOption)Applies Servekit endpoint options only to command dispatch routes.
-
WithLifecycleOptions(opts ...servekit.EndpointOption)Applies Servekit endpoint options only to lifecycle control routes.
-
WithLifecycleTimeout(timeout time.Duration)Sets the timeout for lifecycle control operations. Zero keeps the default, and negative disables this opshttp timeout.
servekitservice optionally coordinates Workerkit lifecycle around an
application-owned Servekit server. Applications construct their shared Opskit
registry and Servekit presentation explicitly.
-
New(...)Constructs a lifecycle coordinator around an existing Servekit server. It does not create a registry, register components, or mount routes.
-
ServiceCoordinates the Workerkit plus Servekit microservice lifecycle.
-
Server()Returns the application-owned Servekit server passed to
New. -
ErrNilRuntimeThe caller provided a nil Workerkit runtime.
-
ErrNilServerThe caller provided a nil Servekit server.
-
Run(...)Starts workers, runs Servekit, and performs graceful worker shutdown when configured.
-
WithStartWorkers(enabled bool)Controls whether
Runstarts all workers before serving. -
WithGracefulWorkerShutdown(enabled bool)Controls whether
Runcoordinates Servekit and Workerkit graceful shutdown or cleans up workers after worker startup fails. -
WithShutdownTimeout(timeout time.Duration)Sets the outer service-level budget shared by Servekit drain and HTTP shutdown followed by Workerkit drain, idle wait, and stop. Servekit's configured shutdown timeout remains an inner HTTP cap. After the shared budget expires,
Runmay giveStopAllone additional five-second best-effort fallback. Zero keeps the default, and negative disables the service-level timeout.
retry provides bounded retry, backoff, and jitter primitives used by Workerkit execution paths and reusable by callers.
-
PolicyDecides whether a failed operation should be retried and how long to wait before the next attempt.
-
PolicyFuncAdapts a function into
Policy. -
ConfigStructured retry configuration: max attempts, backoff, jitter, and retry predicate.
-
RetryableFuncPredicate for deciding whether an error should be retried.
-
New(...)Constructs a policy from
Config. -
Attempts(...)Retries every failure up to a bounded number of total attempts.
-
AttemptsIf(...)Retries accepted failures up to a bounded number of total attempts.
-
Never()Returns a policy that never retries.
-
BackoffComputes the base delay for a retry attempt.
-
BackoffFuncAdapts a function into
Backoff. -
Constant(...)Uses the same delay for every retry.
-
Linear(...)Grows by one step per failed attempt.
-
Exponential(...)Grows exponentially from an initial delay and optional cap.
-
JitterPerturbs a backoff delay to avoid synchronized retries.
-
JitterFuncAdapts a function into
Jitter. -
None()Leaves the base delay unchanged.
-
Full()Randomizes the delay between zero and the base delay.
-
FullWithRand(...)Full jitter with a caller-supplied random source for deterministic tests or simulations.
-
Symmetric(...)Perturbs delay around the base value by a fraction.
-
SymmetricWithRand(...)Symmetric jitter with a caller-supplied random source.
otel adapts Workerkit observer events into OpenTelemetry spans and metrics.
-
ObserverOpenTelemetry-backed implementation of
workerkit.Observerandworkerkit.CheckExecutionObserver. -
New(...)Constructs the observer and OpenTelemetry instruments.
-
OptionConfigures the observer.
-
WithTracerProvider(...)Sets the tracer provider. Nil uses the global OpenTelemetry provider.
-
WithMeterProvider(...)Sets the meter provider. Nil uses the global OpenTelemetry provider.
-
WithAttributes(...)Appends attributes to emitted spans and metrics. Service identity should usually be configured on the OpenTelemetry resource instead.
The adapter records command dispatches and managed check executions as spans,
lifecycle/readiness/failure events on the current span, and counters/histograms
for runtime activity. Check loops record workerkit.check.executions and
workerkit.check.duration. It
records safe failure code/message fields and deliberately ignores private event
causes. Dispatch ids appear on spans and span events, not metrics, to avoid
high-cardinality metric labels.
slogobserver adapts Workerkit observer events into structured log/slog records.
-
Observerslog-backed implementation ofworkerkit.Observerandworkerkit.CheckExecutionObserver. -
New(...)Constructs the observer. Nil logger uses
slog.Default(). -
OptionConfigures the observer.
-
WithLevel(...)Sets the level for routine Workerkit logs. Failure logs are always emitted at error level.
-
WithAttributes(...)Appends attributes to every log record.
The adapter logs safe failure code/message fields and deliberately ignores private event causes.
The Opskit v0.3 integration is a clean pre-v1 contract update:
Runtime.Readinessnow returns worker-scopedReadiness.Items; the Opskit registry owns the parent runtime identity and required/optional registration policy.- Worker item
Impactexpresses Workerkit child readiness behavior and is separate from Opskit registryReadinessPolicy. CommandEndEvent.ErrandFailureEvent.Errare replaced by explicitly privateCausefields plus safe publicCodeandMessagefields.- arbitrary lifecycle, background, and command errors now receive generic
public status/telemetry presentation by default; use
WithOperationalFailurefor explicit safe detail. - Opskit command failures are exposed as
*OpskitCommandError; useerrors.Isfor broad outcome anderrors.Asfor explicit failure codes.
If you are new to the codebase:
- README
- API Map
- Operational Safety
- Examples Directory
examples/opskit-checksexamples/opskit-commandexamples/production-composition
Read the opshttp examples separately when Workerkit-specific HTTP controls
are relevant to the deployment.