objectives

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package objectives manages the human-authored goals that give the engine its sense of direction ("what we're trying to do"). In v1 objectives are created by people, never inferred — that avoids stale or hallucinated goals.

Index

Constants

View Source
const (
	StatusProposed  = "proposed"
	StatusActive    = "active"
	StatusBlocked   = "blocked"
	StatusDone      = "done"
	StatusAbandoned = "abandoned"
)

Status values for an objective.

Variables

This section is empty.

Functions

This section is empty.

Types

type Objective

type Objective = store.Objective

Objective is re-exported from store for callers that only need this package.

type Service

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

Service is the objective use-case layer over a Store.

func New

func New(s store.Store) *Service

New returns a Service backed by s.

func (*Service) Add

func (svc *Service) Add(ctx context.Context, title string, priority int, parentID string) (Objective, error)

Add creates a new objective. priority defaults sensibly; parent may be empty.

func (*Service) Current

func (svc *Service) Current(ctx context.Context) ([]Objective, error)

Current returns the objectives in flight (active or blocked).

func (*Service) List

func (svc *Service) List(ctx context.Context) ([]Objective, error)

List returns all objectives, highest priority first.

func (*Service) SetStatus

func (svc *Service) SetStatus(ctx context.Context, id, status string) (Objective, error)

SetStatus transitions an objective to a new status.

Jump to

Keyboard shortcuts

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