Documentation
¶
Overview ¶
Package engine is the supervisor: it owns run creation, subprocess execution, the auto-execution of run_command operations, response acceptance, and terminal handling. Every state change goes through the run log; every refusal goes through the guard.
Index ¶
- type Engine
- func (e *Engine) ListRuns() ([]string, error)
- func (e *Engine) Log(runID string) (*runlog.Log, error)
- func (e *Engine) Replay(runID string) (*Progress, error)
- func (e *Engine) Resume(runID string, respBytes []byte, migrate bool) (*Progress, error)
- func (e *Engine) StartRun(input json.RawMessage) (*Progress, error)
- type Progress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
SkillDir string
RunsDir string
// Stderr receives subprocess diagnostics (compile errors etc.).
Stderr *os.File
}
Engine binds a skill directory to a runs directory.
func New ¶
New creates an engine rooted at the skill directory; run logs live in <skillDir>/.yield/runs.
func (*Engine) Replay ¶
Replay re-executes the program against the full journal and verifies it reproduces the run's recorded frontier — the determinism check.
type Progress ¶
type Progress struct {
RunID string
Envelope *protocol.RequestEnvelope
Terminal *protocol.TerminalOutcome
}
Advance's result: either the next operation for the agent, or a terminal status.
Click to show internal directories.
Click to hide internal directories.