Versions in this module Expand all Collapse all v0 v0.7.0 Nov 19, 2026 Changes in this version type GateRef + Link string type GateRequest + Post bool v0.6.0 Nov 15, 2026 Changes in this version type EffectRequest + Planned bool v0.5.0 Nov 13, 2026 Changes in this version + var ErrStale = errors.New("stale") type Capability + const CapabilityDrafter type Client + func (c *Client) Basis(ctx context.Context, u plugin.Unit, kind string) (string, error) + func (c *Client) Within(ctx context.Context, u plugin.Unit, target string) (bool, error) type Draft + Basis string + Hold bool + Payload json.RawMessage + Why string + type Drafter interface + Basis func(ctx context.Context, u plugin.Unit, kind string) (string, error) + Within func(ctx context.Context, u plugin.Unit, target string) (bool, error) type GateRef + Rev int64 v0.4.0 Nov 8, 2026 Changes in this version type CardSignal + Detail *SignalDetail type Draft + Broadcast string + type Holding struct + Err string + Holds bool type IngestResult + Next time.Time type Item + Ask string type ItemFields + Ask *string + type Jobs interface + WakeJob func(ctx context.Context, job string, at time.Time) error + type Placed struct + Broadcast string + Target string + type Proposed struct + Drafts []Draft + Withdrawals []Withdrawal type Services + Holds func(ctx context.Context, predicate string, facts [][]Fact) ([]Holding, error) + type SignalDetail struct + Notes []SignalNote + Params map[string]string + type SignalNote struct + Code string + Params map[string]string + Since time.Time + Tone string type Situation + ReasonKey string + ReasonParams map[string]string + type Withdrawal struct + Rule string + Unit plugin.Unit v0.3.0 Oct 30, 2026 Changes in this version + const ActorAgent + const ActorPerson + const Kind + const RouteAsked + const RouteLaunch + const RouteSession + var ErrMayHavePosted = errors.New("may have been posted") + var ErrNoAnswer = errors.New("no answer") + var ErrNotFound = errors.New("not found") + var ErrUnavailable = errors.New("source unavailable") + var ErrUnfit = errors.New("answer does not fit") + var ErrUnsupported = errors.New("not supported") + func New(s Source) plugin.Impl + func WithCall(ctx context.Context, c Call) context.Context + type ActionRequest struct + Action string + Actor string + Args json.RawMessage + Input string + Unit plugin.Unit + type Anchor struct + At time.Time + Permalink string + Ref string + Unit plugin.Unit + type AskRequest struct + MaxCostUSD float64 + MeterScope string + Prompt string + Schema json.RawMessage + Tier string + type AskResult struct + CostUSD *float64 + Duration time.Duration + Model string + Text string + Tokens int64 + type Blocked struct + Folder string + Question string + Root string + Since time.Time + type Book struct + Records []TurnRecord + Turns []Turn + Unit plugin.Unit + type Brief struct + Body json.RawMessage + Task string + Unit plugin.Unit + Version string + type BriefInput struct + Bytes int64 + Cut bool + Parts json.RawMessage + Text string + type BriefIntent struct + ExtraSchema json.RawMessage + FieldVersions map[string]string + FieldsPrompt string + Prompt string + type BriefRevision struct + Attempt string + Parts json.RawMessage + Revision string + type BriefStaleRequest struct + Current BriefRevision + Now time.Time + Version string + Written BriefWritten + type BriefWritten struct + At BriefRevision + AttemptOf string + AttemptedAt time.Time + Error string + Failures int + Version string + type Briefer interface + BriefDescribe func(ctx context.Context, in BriefInput) (string, error) + BriefInput func(ctx context.Context, u plugin.Unit) (BriefInput, error) + BriefRevision func(ctx context.Context, u plugin.Unit) (BriefRevision, error) + BriefStale func(ctx context.Context, req BriefStaleRequest) (bool, error) + BriefWant func(ctx context.Context, u plugin.Unit) (bool, error) + type CLIRequest struct + Args []string + Config Config + Stdin []byte + type CLIRunner interface + RunCLI func(ctx context.Context, req CLIRequest, stdout, stderr io.Writer) (exit int, err error) + type Call struct + MeterScope string + Priority Priority + func CallOf(ctx context.Context) Call + type Capability string + const CapabilityBriefer + const CapabilityCLIRunner + const CapabilityIngester + const CapabilityLander + const CapabilityPlanner + const CapabilityPresenter + const CapabilityPublisher + const CapabilityTooler + func Capabilities(s Source) []Capability + type Card struct + Cares bool + ClosurePosted bool + Label string + LastHuman *Human + Link string + Outcome string + Signals []CardSignal + Since time.Time + StartedByMe bool + State string + Title string + TurnsLink string + WaitsOn []Person + Why string + type CardSignal struct + At time.Time + Key string + Tone string + Value string + type Checkout struct + Base string + Branch string + Fork bool + Head string + Repo string + type Client struct + func NewClient(c *plugin.Client) *Client + func (c *Client) Action(ctx context.Context, req ActionRequest) (json.RawMessage, error) + func (c *Client) ApplyEffect(ctx context.Context, req EffectRequest) error + func (c *Client) BriefDescribe(ctx context.Context, in BriefInput) (string, error) + func (c *Client) BriefInput(ctx context.Context, u plugin.Unit) (BriefInput, error) + func (c *Client) BriefRevision(ctx context.Context, u plugin.Unit) (BriefRevision, error) + func (c *Client) BriefStale(ctx context.Context, req BriefStaleRequest) (bool, error) + func (c *Client) BriefWant(ctx context.Context, u plugin.Unit) (bool, error) + func (c *Client) CallTool(ctx context.Context, tc ToolCall) (ToolResult, error) + func (c *Client) Capabilities(ctx context.Context) ([]Capability, error) + func (c *Client) Checkout(ctx context.Context, u plugin.Unit) (Checkout, bool, error) + func (c *Client) Identity(ctx context.Context) (Identity, error) + func (c *Client) Ingest(ctx context.Context, req IngestRequest) (IngestResult, error) + func (c *Client) Landed(ctx context.Context, d Draft) (plugin.Unit, bool, error) + func (c *Client) Locate(ctx context.Context, dir string) (plugin.Unit, bool, error) + func (c *Client) Payload(ctx context.Context, req PayloadRequest) (PayloadResult, error) + func (c *Client) Place(ctx context.Context, d Draft) (string, error) + func (c *Client) Placement(ctx context.Context, u plugin.Unit, item string) (Placements, error) + func (c *Client) Plan(ctx context.Context, u plugin.Unit, st RoundState) (Plan, error) + func (c *Client) Proposals(ctx context.Context, now time.Time) ([]Draft, error) + func (c *Client) Publish(ctx context.Context, d Draft) (Evidence, error) + func (c *Client) Resolve(ctx context.Context, address string) (plugin.Unit, bool, error) + func (c *Client) RunCLI(ctx context.Context, req CLIRequest, stdout, stderr io.Writer) (int, error) + func (c *Client) Track(ctx context.Context, req TrackRequest) (Tracked, error) + func (c *Client) Untrack(ctx context.Context, u plugin.Unit) error + func (c *Client) Validate(ctx context.Context, d Draft) error + func (c *Client) Verify(ctx context.Context, d Draft, startedAt time.Time) (Evidence, bool, error) + func (c *Client) View(ctx context.Context, req ViewRequest) (json.RawMessage, error) + func (c *Client) Where(ctx context.Context, d Draft) (string, error) + func (c *Client) WriteState(ctx context.Context, w StateWrite) (Evidence, error) + type Config struct + BriefIntent *BriefIntent + Host json.RawMessage + Plugin json.RawMessage + type Draft struct + Delivery string + Effects []string + Evidence Evidence + ID int64 + Items []string + Kind string + Origin DraftOrigin + Purpose string + Reaction string + Replaced string + State string + Target string + Task string + Text string + Unit plugin.Unit + type DraftOrigin struct + Intent string + Key string + Kind string + Rule string + TurnSeq int64 + Unit plugin.Unit + Workflow string + type EffectRequest struct + Draft *Draft + Effect string + Inputs json.RawMessage + Route string + Taken bool + Turn *TurnRef + Unit plugin.Unit + type Event struct + Actor string + Anchor Anchor + At time.Time + Data json.RawMessage + Key string + Kind string + Unit plugin.Unit + type EventQuery struct + Kinds []string + Since time.Time + Units []plugin.Unit + type Evidence struct + At time.Time + Permalink string + Ref string + type ExtractionHealth struct + BudgetHit bool + Oldest time.Time + Pending int + type Fact struct + Name string + Value Value + type GateRef struct + Draft int64 + Gate string + State string + type GateRequest struct + Draft Draft + Session string + type Gates interface + OpenGate func(ctx context.Context, req GateRequest) (GateRef, error) + RecordSent func(ctx context.Context, d Draft, session, tool string) (GateRef, error) + RehomeDrafts func(ctx context.Context, moves []UnitMove) (int, error) + SetOverride func(ctx context.Context, u plugin.Unit, set, ifMatch map[string]string) (written bool, err error) + type History interface + Events func(ctx context.Context, q EventQuery) ([]Event, error) + type Host struct + type HostServer struct + func ServeHost(c *plugin.Client, h Host) (*HostServer, error) + func (s *HostServer) Close() + func (s *HostServer) ID() uint32 + type Human struct + At time.Time + Link string + What string + Who Person + type Identity struct + Teams []string + Viewer Person + type IngestRequest struct + Job string + Now time.Time + type IngestResult struct + Skipped string + Summary string + type Ingester interface + Ingest func(ctx context.Context, req IngestRequest) (IngestResult, error) + Locate func(ctx context.Context, dir string) (plugin.Unit, bool, error) + Resolve func(ctx context.Context, address string) (plugin.Unit, bool, error) + Track func(ctx context.Context, req TrackRequest) (Tracked, error) + Untrack func(ctx context.Context, u plugin.Unit) error + type Item struct + Ambiguity string + AssignedAt Anchor + Assignees []Person + Basis string + Category string + Confidence string + Confirmed bool + Context string + Contexts []string + CreatedAt time.Time + Deadline string + Evidence ItemEvidence + ID string + Kind string + Options []Option + Origin Anchor + Provenance string + Requester Person + Resolution string + State string + Summary string + TaskKey string + Trail []ItemEvidence + URLs []string + Unit plugin.Unit + UpdatedAt time.Time + UserAt time.Time + WaitingOn []Person + type ItemEvidence struct + Anchor Anchor + Kind string + type ItemFields struct + Ambiguity *string + Category *string + Confidence *string + Context *string + Contexts *[]string + Deadline *string + Kind *string + Options *[]Option + Requester *Person + Summary *string + URLs *[]string + WaitingOn *[]Person + type ItemOp struct + Anchor Anchor + Assignees []Person + Basis string + Evidence *ItemEvidence + Fields *ItemFields + Item string + LinkKind string + Op string + Reason string + Resolution string + To *plugin.Unit + Unit plugin.Unit + type ItemQuery struct + OpenOnly bool + Units []plugin.Unit + type ItemResult struct + Error string + Item string + type Lander interface + Checkout func(ctx context.Context, u plugin.Unit) (Checkout, bool, error) + Landed func(ctx context.Context, d Draft) (plugin.Unit, bool, error) + WriteState func(ctx context.Context, w StateWrite) (Evidence, error) + type Ledger interface + ApplyItems func(ctx context.Context, ops []ItemOp) ([]ItemResult, error) + QueryItems func(ctx context.Context, q ItemQuery) ([]Item, error) + type Link struct + Evidence Anchor + Item string + Kind string + URL string + type Listing struct + Partial bool + Repos []Repo + Workspaces []Workspace + type Offer struct + Action string + Args json.RawMessage + type Option struct + ArguedBy []Person + Label string + type PayloadRequest struct + Agent string + BriefMissing string + Guidance string + Inputs json.RawMessage + Intent string + Items []string + LastVerdict *Verdict + Local string + Owned bool + Plain bool + Role string + Round string + Task string + Trigger string + Unit plugin.Unit + type PayloadResult struct + Arg string + Contents string + Data json.RawMessage + Facts []Fact + Wording Wording + type Person struct + Aliases []string + Key string + Name string + type Placement struct + Checkout string + Repo string + Role string + Shared bool + type Placements struct + Default *Placement + Suggested *Placement + type Plan struct + Rounds []Round + type Planner interface + ApplyEffect func(ctx context.Context, req EffectRequest) error + Payload func(ctx context.Context, req PayloadRequest) (PayloadResult, error) + Placement func(ctx context.Context, u plugin.Unit, item string) (Placements, error) + Plan func(ctx context.Context, u plugin.Unit, st RoundState) (Plan, error) + Proposals func(ctx context.Context, now time.Time) ([]Draft, error) + type Presenter interface + Action func(ctx context.Context, req ActionRequest) (json.RawMessage, error) + Identity func(ctx context.Context) (Identity, error) + View func(ctx context.Context, req ViewRequest) (json.RawMessage, error) + type Priority int32 + const PriorityBackground + const PriorityUser + type Publisher interface + Place func(ctx context.Context, d Draft) (string, error) + Publish func(ctx context.Context, d Draft) (Evidence, error) + Validate func(ctx context.Context, d Draft) error + Verify func(ctx context.Context, d Draft, startedAt time.Time) (Evidence, bool, error) + Where func(ctx context.Context, d Draft) (string, error) + type Reader interface + Books func(ctx context.Context, units []plugin.Unit) ([]Book, error) + RoundState func(ctx context.Context, u plugin.Unit) (RoundState, error) + Session func(ctx context.Context, handle string) (Session, error) + Tasks func(ctx context.Context, units []plugin.Unit) ([]Task, error) + Workspaces func(ctx context.Context, repo string) (Listing, error) + type Recorder interface + PutBrief func(ctx context.Context, b Brief) error + RecordEvents func(ctx context.Context, events []Event) error + SetMarks func(ctx context.Context, u plugin.Unit, marks map[string]string) error + type Repo struct + DefaultBranch string + ID string + Path string + Remote string + type Reporter interface + Changed func(ctx context.Context, units []plugin.Unit, topics []plugin.Topic) error + Report func(ctx context.Context, snapshots []Snapshot) error + type Round struct + Head string + Name string + NotDue string + Observed bool + OnSent map[string]string + OnSkipped map[string]string + Reason string + TurnFacts []Fact + Workspace WorkspaceRef + type RoundState struct + AgentHome string + Blocked *Blocked + DayTotal int + Marks map[string]string + Overrides map[string]string + Paused bool + SentAt time.Time + Today int + type Sample struct + Duration time.Duration + Failed bool + Op string + Points int64 + Resource string + Scope string + Spawn bool + type Services interface + Ask func(ctx context.Context, req AskRequest) (AskResult, error) + Config func(ctx context.Context) (Config, error) + Meter func(ctx context.Context, s Sample) error + Profile func(ctx context.Context, path string) ([]byte, error) + type Session struct + AllowedEffects []string + Intent string + Role string + Turn string + TurnSeq int64 + Unit plugin.Unit + type Signal struct + Name string + On bool + Since time.Time + type Situation struct + Kind string + Reason string + Since time.Time + Stalled Value + WaitingOn string + type Snapshot struct + At time.Time + Card *Card + Contexts []string + Data json.RawMessage + Due time.Time + Extraction *ExtractionHealth + FacetValues map[string][]string + Facets map[string]string + Facts []Fact + Gone bool + Items []Item + Links []Link + Offers []Offer + Owes []Person + Rev uint64 + Signals []Signal + Situation *Situation + Unit plugin.Unit + Views []string + type Source interface + Health func(ctx context.Context) (plugin.Health, error) + Notify func(ctx context.Context, units []plugin.Unit, topics []plugin.Topic) error + Start func(ctx context.Context, req StartRequest) error + Stop func(ctx context.Context) error + type StartRequest struct + Host Host + StateDir string + type StateWrite struct + Category string + State string + Task string + Unit plugin.Unit + type Task struct + Category string + ID string + Parent string + Props json.RawMessage + State string + Title string + Units []plugin.Unit + type TimeUnit int + const Calendar + const WorkingDays + type ToolCall struct + Args json.RawMessage + Session string + Tool string + Turn string + type ToolResult struct + Answer string + Fields json.RawMessage + IsError bool + type Tooler interface + CallTool func(ctx context.Context, call ToolCall) (ToolResult, error) + type TrackRequest struct + Follow bool + Unit plugin.Unit + type Tracked struct + State string + Unit plugin.Unit + type Turn struct + AnsweredAt time.Time + At time.Time + EndedAt time.Time + Head string + ID string + Intent string + Items []string + Role string + SentAt time.Time + Seq int64 + Session string + StartedAt time.Time + State string + Summary string + Task string + Workflow string + type TurnRecord struct + At time.Time + Head string + ID int64 + Record json.RawMessage + TurnSeq int64 + type TurnRef struct + Head string + ID string + Seq int64 + type UnitMove struct + From plugin.Unit + To plugin.Unit + type Value struct + Bool bool + Duration time.Duration + Int int64 + Kind ValueKind + List []string + String string + Threshold time.Duration + Time time.Time + Unit TimeUnit + func After(t time.Time, threshold time.Duration, unit TimeUnit) Value + func At(t time.Time) Value + func Bool(b bool) Value + func Duration(d time.Duration) Value + func Int(i int64) Value + func List(s ...string) Value + func Since(t time.Time) Value + func String(s string) Value + func Time(t time.Time) Value + func (v Value) Temporal() bool + type ValueKind int + const KindAfter + const KindAt + const KindBool + const KindDuration + const KindInt + const KindList + const KindNone + const KindSince + const KindString + const KindTime + type Verdict struct + At time.Time + Endorsed string + Head string + type ViewRequest struct + Query json.RawMessage + View string + type Wake struct + Task string + Unit plugin.Unit + Until time.Time + When string + type Wakes interface + ClearWake func(ctx context.Context, u plugin.Unit, task string) error + SetWake func(ctx context.Context, w Wake) error + type Wording struct + Noun string + Ref string + Short string + This string + type Workspace struct + AgentStates []string + Branch string + Comment string + DisplayName string + ID string + IsMain bool + Local bool + Manager string + Path string + PushBranch string + Repo string + RepoID string + Status string + Units []plugin.Unit + type WorkspaceRef struct + ID string + Manager string