Documentation
¶
Overview ¶
Package vxcomputer is the resource module for VXCOMPUTER — the node-local, policy-governed agent runtime. It drives the Plan→Act→Reflect agent loop, the risk policy gate, signed approvals, and the tamper-evident hash-chained audit ledger.
Endpoints (all on the per-tenant node):
GET /api/v2/vxcomputer/info GET /api/v2/vxcomputer/health GET /api/v2/vxcomputer/policy/classify?command=… POST /api/v2/vxcomputer/run POST /api/v2/vxcomputer/approval/resolve GET /api/v2/vxcomputer/audit/verify
Index ¶
- type ApprovalInput
- type Client
- func (c *Client) AuditVerify(ctx context.Context) (Result, error)
- func (c *Client) Classify(ctx context.Context, command string) (Result, error)
- func (c *Client) Health(ctx context.Context) (Result, error)
- func (c *Client) Info(ctx context.Context) (Result, error)
- func (c *Client) ResolveApproval(ctx context.Context, in ApprovalInput) (Result, error)
- func (c *Client) Run(ctx context.Context, in RunInput) (Result, error)
- type Result
- type RunInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApprovalInput ¶
type ApprovalInput struct {
RunID string `json:"run_id"`
StepID string `json:"step_id,omitempty"`
Command string `json:"command"`
Decision string `json:"decision,omitempty"` // approve|deny (default approve)
TTLSeconds int `json:"ttl_seconds,omitempty"`
Approver string `json:"approver,omitempty"`
}
ApprovalInput is the body for ResolveApproval.
type Client ¶
Client is the entry point. Construct via c.VxComputer().
func (*Client) AuditVerify ¶
AuditVerify replays the node's tamper-evident hash-chained audit ledger and reports any tampering.
func (*Client) Classify ¶
Classify risk-classifies a shell command (low|medium|high|hard-blocked) WITHOUT running it.
func (*Client) ResolveApproval ¶
ResolveApproval approves or denies a pending medium/high-risk command. On approve, the Result carries a signed, single-use, command-bound approval token.