Documentation
¶
Index ¶
- func DiscoverCapabilityDeltas(owner *corepath.Owner, change string) ([]CapabilityDelta, []Diagnostic)
- func NormalizeRequirementIdentity(name string) string
- func Scaffold(owner *corepath.Owner, change, capability string) ([]string, error)
- func Template(name TemplateName) ([]byte, error)
- func Templates() map[TemplateName][]byte
- func WriteArtifacts(dir, capability string) ([]string, error)
- type CapabilityDelta
- type Change
- type DeltaOperation
- type Design
- type Diagnostic
- type Inspection
- type Location
- type Operation
- type Proposal
- type Requirement
- type RequirementReference
- type RequirementTrace
- type Scenario
- type Section
- type Source
- type Task
- type TaskTrace
- type TaskWave
- type Tasks
- type TemplateName
- type Trace
- type Validation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverCapabilityDeltas ¶
func DiscoverCapabilityDeltas(owner *corepath.Owner, change string) ([]CapabilityDelta, []Diagnostic)
func Template ¶
func Template(name TemplateName) ([]byte, error)
func Templates ¶
func Templates() map[TemplateName][]byte
func WriteArtifacts ¶
WriteArtifacts writes the absent planning artifacts under dir from embedded bytes and returns the created paths. It takes no lock and validates no state: callers own locking, state validation, and path-safety checks. Existing bytes are untouched.
Types ¶
type CapabilityDelta ¶
type CapabilityDelta struct {
Capability string
Purpose []byte
Source Source
Operations []Operation
Diagnostics []Diagnostic
}
func ParseCapabilityDelta ¶
func ParseCapabilityDelta(source Source, capability string, accepted Source) CapabilityDelta
ParseCapabilityDelta projects one capability delta. accepted is the accepted capability spec this delta targets; an absent Source means a new capability.
type Change ¶
type Change struct {
Root string
Name string
Proposal Proposal
Deltas []CapabilityDelta
Design Design
Tasks Tasks
Trace Trace
Diagnostics []Diagnostic
}
Change is the only semantic projection of one authored change.
func (*Change) Inspection ¶
func (change *Change) Inspection() Inspection
func (*Change) Validation ¶
func (change *Change) Validation() Validation
type DeltaOperation ¶
type DeltaOperation string
const ( Added DeltaOperation = "ADDED" Modified DeltaOperation = "MODIFIED" Removed DeltaOperation = "REMOVED" Renamed DeltaOperation = "RENAMED" )
type Design ¶
type Design struct {
Source Source
Sections []Section
References []RequirementReference
Diagnostics []Diagnostic
}
func ParseDesign ¶
type Diagnostic ¶
type Inspection ¶
type Inspection struct{ Canonical *Change }
Inspection and Validation deliberately point at the same canonical result. Later consumers may add view-only helpers without reading Markdown again.
type Operation ¶
type Operation struct {
Kind DeltaOperation
Requirement *Requirement
From string
To string
Reason string
Migration string
Raw []byte
Location Location
}
type Proposal ¶
type Proposal struct {
Source Source
Sections []Section
Diagnostics []Diagnostic
}
func ParseProposal ¶
type Requirement ¶
type RequirementReference ¶
type RequirementTrace ¶
type TaskTrace ¶
type TaskTrace struct {
TaskID string
Requirements []RequirementReference
}
type Tasks ¶
type Tasks struct {
Source Source
Tasks []Task
Waves []TaskWave
Diagnostics []Diagnostic
}
func ParseTasks ¶
type TemplateName ¶
type TemplateName string
const ( ProposalTemplate TemplateName = "proposal" SpecTemplate TemplateName = "spec" DesignTemplate TemplateName = "design" TasksTemplate TemplateName = "tasks" )
type Trace ¶
type Trace struct {
Requirements []RequirementTrace
Tasks []TaskTrace
}
type Validation ¶
type Validation struct{ Canonical *Change }
Click to show internal directories.
Click to hide internal directories.