automation

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor string

Actor names who may make a workflow decision under the ResearchForge retrieval-first, provenance-first automation policy.

const (
	ActorAgent Actor = "agent"
	ActorHuman Actor = "human"
)

type DecisionClass

type DecisionClass string

DecisionClass classifies whether an LLM/automation agent may execute a step or must stop at a human gate.

const (
	DecisionAgentAllowed  DecisionClass = "agent_allowed"
	DecisionHumanRequired DecisionClass = "human_required"
)

type PolicyDecision

type PolicyDecision struct {
	Action            string        `json:"action"`
	Class             DecisionClass `json:"class"`
	AllowedActor      Actor         `json:"allowedActor"`
	RequiresHuman     bool          `json:"requiresHuman"`
	Gate              string        `json:"gate,omitempty"`
	AuditArtifact     string        `json:"auditArtifact"`
	Reason            string        `json:"reason"`
	LLMAgentMayRun    bool          `json:"llmAgentMayRun"`
	LLMAgentMayDecide bool          `json:"llmAgentMayDecide"`
}

PolicyDecision is the machine-readable contract agents use before acting.

func DefaultPolicy

func DefaultPolicy() []PolicyDecision

DefaultPolicy returns the hybrid automation policy: agents may decide and run reversible assistive steps, but humans approve scientific, legal/privacy, and final-claim decisions.

func Evaluate

func Evaluate(action string) PolicyDecision

Evaluate returns the policy decision for an action. Unknown actions are human gated by default so agents fail closed.

Jump to

Keyboard shortcuts

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