Insider.Contract (Insider Lab v0.1.0)

Copy Markdown View Source

Compile-time semantic contracts with bounded, policy-authorized callback execution.

Discovery returns portable metadata. Invocation results are local evidence and must pass through the redaction boundary before they leave the runtime.

Summary

Functions

action(name, options)

(macro)

describe(module)

@spec describe(module()) :: {:ok, map()} | {:error, Insider.Protocol.Error.t()}

identity(name, options)

(macro)

invariant(name, options)

(macro)

invoke(module, kind, name, arguments, options \\ [])

@spec invoke(module(), atom(), atom() | String.t(), list(), keyword()) ::
  Insider.Contract.Invocation.t()

invoke(executor, module, kind, name, arguments, options)

list(modules)

@spec list([module()]) :: {:ok, [map()]} | {:error, Insider.Protocol.Error.t()}

observe(name, options)

(macro)

owns(options)

(macro)

reset(name, options)

(macro)