taskman

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 22 Imported by: 0

Documentation

Overview

Package taskman implements the explicitly trusted-local native fixture planner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Preview

func Preview(ctx context.Context, root, executor, observations string) ([]byte, error)

Preview reads a native fixture queue; it never accepts production admission responsibility.

Types

type Capacity

type Capacity struct {
	MaxActiveAttempts string `json:"maxActiveAttempts"`
	AvailableWorkers  string `json:"availableWorkers"`
}

type Entry

type Entry struct {
	TicketID         string     `json:"ticketId"`
	TicketRevision   string     `json:"ticketRevision"`
	Resources        []Resource `json:"resources"`
	ClosureComplete  bool       `json:"closureComplete"`
	State            string     `json:"state"`
	Reason           string     `json:"reason"`
	DeferredSinceSeq *string    `json:"deferredSinceSeq"`
	Blockers         []string   `json:"blockers"`
}

type Plan

type Plan struct {
	Profile              string   `json:"profile"`
	PlanningProfile      string   `json:"planningProfile"`
	QueueID              string   `json:"queueId"`
	PolicySHA256         string   `json:"policySha256"`
	HeadSeq              string   `json:"headSeq"`
	IntentTreeSHA256     string   `json:"intentTreeSha256"`
	ReservationSetSHA256 string   `json:"reservationSetSha256"`
	Capacity             Capacity `json:"capacity"`
	Entries              []Entry  `json:"entries"`
	MutationAuthority    bool     `json:"mutationAuthority"`
}

type Resource

type Resource struct {
	Class string `json:"class"`
	Key   string `json:"key"`
}

Jump to

Keyboard shortcuts

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