fix: wire dead code — GracePeriod, task.json, plugin specs
GracePeriod now enforced in Release(): if > 0, container stays alive for the configured duration after task completion before being killed, per PRD section 1. WriteTaskJSON now called from daemon.process() before container Acquire, writing the task payload to <workspace>/task.json per PRD section 3 /data/ layout. PluginSpecs populated from TaskContext.SkillPlugins into the Request sent to the agent. PluginSpec type added to protocol.go. pluginSpecs() converts skill.Plugin → agentexec.PluginSpec for transport. PRD section 5 Layer 1.
This commit is contained in:
1 parent
fab7a0ae6f
commit
4edad31b66
5 files changed
+75
-9
No files matched your search
@@ -77,6 +77,16 @@ type Request struct {
|
||||
Protection Protection `json:"protection"`
|
||||
Notes string `json:"notes,omitempty"`
|
||||
CaptureTools []CaptureTool `json:"capture_tools,omitempty"`
|
||||
// Plugins are bundled Yaegi plugins from the skill's plugins/
|
||||
// directory. Each entry carries the name and source so the agent
|
||||
// can register them as tools. PRD section 5 Layer 1.
|
||||
Plugins []PluginSpec `json:"plugins,omitempty"`
|
||||
}
|
||||
|
||||
// PluginSpec is a bundled Yaegi plugin passed from daemon to agent.
|
||||
type PluginSpec struct {
|
||||
Name string `json:"name"`
|
||||
Src string `json:"src"`
|
||||
}
|
||||
|
||||
// Validate rejects requests that this runner cannot safely interpret.
|
||||
|
||||
Reference in new issue
Block a user