Documentation
¶
Overview ¶
Package run implements the orchestrator for the norma development lifecycle.
Package run implements the orchestrator for the norma development lifecycle.
Package run implements the orchestrator for the norma development lifecycle.
Index ¶
- Constants
- func BuildApplyCommitMessage(goal, runID string, stepIndex int, taskID string) string
- func CommitTypeForGoal(goal string) string
- func Prune(ctx context.Context, db *sql.DB, workingDir string) error
- type AgentBuild
- type AgentFactory
- type AgentOutcome
- type Lock
- type PruneResult
- type Result
- type RetentionPolicy
- type RunMeta
- type Runner
- type TaskPayload
Constants ¶
const ( StatusError = "error" StatusFailed = "failed" StatusPassed = "passed" StatusStopped = "stopped" )
Variables ¶
This section is empty.
Functions ¶
func BuildApplyCommitMessage ¶
func CommitTypeForGoal ¶
Types ¶
type AgentBuild ¶
type AgentBuild struct {
Agent agent.Agent
SessionID string
InitialState map[string]any
InitialContent *genai.Content
OnEvent func(*session.Event)
}
AgentBuild describes an ADK agent build for a task run.
type AgentFactory ¶
type AgentFactory interface {
Name() string
Build(ctx context.Context, meta RunMeta, task TaskPayload) (AgentBuild, error)
Finalize(ctx context.Context, meta RunMeta, task TaskPayload, finalSession session.Session) (AgentOutcome, error)
}
AgentFactory builds and finalizes ADK agents for task runs.
type AgentOutcome ¶
AgentOutcome summarizes the run outcome.
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
Lock handles exclusive access to norma loop.
func AcquireRunLock ¶
AcquireRunLock tries to acquire the run lock.
func TryAcquireRunLock ¶
TryAcquireRunLock tries to acquire the run lock without blocking.
type PruneResult ¶
PruneResult summarizes a prune operation.
type RetentionPolicy ¶
RetentionPolicy controls run cleanup.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner executes an ADK agent run for a task.
type TaskPayload ¶
type TaskPayload struct {
ID string
Goal string
AcceptanceCriteria []task.AcceptanceCriterion
}
TaskPayload contains task-level input available to factories.