Documentation
¶
Index ¶
Constants ¶
const (
ToolControl = "ackos_control"
)
const ToolHTTPControl = "ackos_control"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlRequest ¶
type ControlRequest struct {
Subject string `json:"subject" jsonschema:"the stable subject identity being controlled"`
ObservedState string `json:"observed_state" jsonschema:"the state observed before the requested transition"`
DesiredState string `json:"desired_state" jsonschema:"the exact desired state after the transition"`
AuthorityTTLMS int64 `json:"authority_ttl_ms,omitempty" jsonschema:"optional authority lifetime in milliseconds; zero means no expiry"`
}
type ControlResponse ¶
type ControlResponse struct {
Phase kernel.Phase `json:"phase"`
Observation kernel.Observation `json:"observation"`
Transition kernel.Transition `json:"transition"`
Governance kernel.GovernanceDecision `json:"governance"`
Authority kernel.Authority `json:"authority"`
Execution kernel.ExecutionResult `json:"execution"`
Verified bool `json:"verified"`
Committed bool `json:"committed"`
Root string `json:"root"`
}
type HTTPAPIAdapter ¶
type HTTPAPIAdapter struct {
// contains filtered or unexported fields
}
func NewHTTPAPIAdapter ¶
func NewHTTPAPIAdapter(cfg HTTPAPIConfig) (*HTTPAPIAdapter, error)
func (*HTTPAPIAdapter) MCPServer ¶
func (a *HTTPAPIAdapter) MCPServer() *mcpsdk.Server
MCPServer exposes the production-backed ackos_control tool. It intentionally does not construct a kernel runtime, executor, verifier, or Git provider.
type HTTPAPIConfig ¶
type HTTPAPIConfig struct {
BaseURL string
BearerToken string
Timeout time.Duration
HTTPClient *http.Client
}
HTTPAPIConfig configures the production MCP adapter. The adapter only calls ackos-api; all observation, authorization, execution, verification, and commitment remain behind that service's authenticated HTTP contract.
type HTTPControlRequest ¶
type HTTPControlRequest struct {
RepositoryID string `json:"repository_id" jsonschema:"allowlisted repository ID configured on ackos-api"`
Branch string `json:"branch" jsonschema:"existing branch name in the configured repository"`
Path string `json:"path" jsonschema:"path of an existing tracked regular file"`
Mode string `json:"mode" jsonschema:"replacement file mode: 100644 or 100755"`
ContentBase64 string `json:"content_base64" jsonschema:"canonical padded Base64 encoding of the complete replacement file bytes"`
}
HTTPControlRequest mirrors the enforceable ackos-api replacement-file contract. ContentBase64 is canonical padded Base64 for the exact file bytes.
type HTTPControlResponse ¶
type Observer ¶
RecoveryObserver obtains fresh provider evidence after a failed attempt. Recovery must never manufacture a new observation from caller-supplied state.
type RecoveryObserver ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServerWithProvider ¶
NewServerWithProvider constructs the MCP server using a control provider. Provider adapters are created per control call so execution errors remain request-scoped until the MCP result is constructed.