Documentation
¶
Overview ¶
Package methodology reads the selected Autonomy Profile from the Bootstrap and answers one operational question: may the CLI do this without asking? What a plan means is defined by the Bootstrap; this package only executes the operating policy the Bootstrap declares, using its policy vocabulary.
Index ¶
Constants ¶
const ( IdentityResolution = "identity_resolution" ReferenceUpdates = "reference_updates" IndexRebuild = "index_rebuild" Validation = "validation" AgentContextSync = "agent_context_sync" RelevantChange = "relevant_change" Destructive = "destructive" GovernedDecision = "governed_decision" )
Operation kinds the Bootstrap's operating policy names.
const TeamPolicy = "team_policy"
TeamPolicy is the Bootstrap's value for "as the team declares".
Variables ¶
This section is empty.
Functions ¶
func TeamDeclarations ¶
TeamDeclarations extracts, from the Bootstrap's agreements report, the policy values a team declared. A team agreement declares one when it applies to "policy.<kind>" and its text starts with a policy value, for example: TA-01 | team | policy.agent_context_sync | automatic_safe. Personal preferences (scope user) never set team policy.
Types ¶
type Decision ¶
type Decision int
Decision is how the CLI must treat one kind of operation.
const ( // Automatic: do it and report. Automatic Decision = iota // AutomaticSafe: do it without asking only when nothing human-authored // would be overwritten; otherwise ask. AutomaticSafe // Confirm: prepare, show, apply after the human confirms. Confirm // Propose: propose with reasoning; nothing is written until confirmed. Propose )
type Plan ¶
type Plan struct {
Profile string `json:"profile"`
Selected bool `json:"selected"`
Language string `json:"language"`
Frozen bool `json:"frozen"`
Supported []string `json:"supported"`
Detail struct {
Label string `json:"label"`
Summary string `json:"summary"`
Delegates string `json:"delegates"`
Policy struct {
Automation map[string]string `json:"automation"`
Human struct {
Confirmation map[string]string `json:"confirmation"`
} `json:"human"`
Collaboration map[string]string `json:"collaboration"`
} `json:"policy"`
} `json:"plan"`
Interaction struct {
WithoutAsking []string `json:"without_asking"`
AsksFor map[string]string `json:"asks_for"`
} `json:"interaction"`
// Team holds the values the team declared for the kinds the plan leaves
// to team policy, read from the team's working agreements.
Team map[string]string `json:"team_policy_declared,omitempty"`
}
Plan is the selected Autonomy Profile as the Bootstrap reports it.