plan

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 7 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 plan reads a pursuit's plan: the changes a pursuit will land, each anchored to one capability with its acceptance, checked before the engine stores it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Names

func Names(p Plan) []string

Names lists the plan's change names in order.

Types

type Change

type Change struct {
	Name       string   `json:"name"`
	Capability string   `json:"capability"`
	What       string   `json:"what"`
	Acceptance []string `json:"acceptance"`
	MustNot    []string `json:"must_not"`
	After      []string `json:"after"`
}

Change is one planned change: what it does, its single capability, the acceptance that proves it, what it must not do, and the changes it comes after. It holds no file lists: the acceptance is the contract.

type Plan

type Plan struct {
	Changes []Change `json:"changes"`
}

Plan is the changes a pursuit will land.

func Parse

func Parse(data []byte, capabilities []string) (Plan, error)

Parse reads the plan's JSON and checks it against the capabilities in the map. Unknown fields are refused. Every problem is collected and returned together as one error, each naming its change.

Jump to

Keyboard shortcuts

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