Remove resource pools, leases and wait queues
Drop the resource allocation feature end to end: store tables and migration, runner scheduling and cleanup, protocol types and commands, CLI commands, TUI screens, tests and docs. Existing databases open cleanly and definitions carrying a retired resources block still validate.
This commit is contained in:
@@ -118,10 +118,9 @@ type SessionExport struct {
|
||||
}
|
||||
|
||||
type RunSummary struct {
|
||||
ResourceWait *ResourceWait `json:"resource_wait,omitempty"`
|
||||
ID int64 `json:"id"`
|
||||
PipelineID int64 `json:"pipeline_id"`
|
||||
Name string `json:"name"`
|
||||
ID int64 `json:"id"`
|
||||
PipelineID int64 `json:"pipeline_id"`
|
||||
Name string `json:"name"`
|
||||
// Title is the operator-facing, bounded single-line description of what the
|
||||
// run is for, generated from its prompt. It is never empty for a new run;
|
||||
// historical rows predating the title column may omit it.
|
||||
@@ -146,19 +145,6 @@ type RunSummary struct {
|
||||
StageModels map[string]string `json:"stage_models,omitempty"`
|
||||
}
|
||||
|
||||
// ResourceWait is bounded public queue metadata. Ownership credentials stay private.
|
||||
type ResourceWait struct {
|
||||
Resource string `json:"resource"`
|
||||
Stage string `json:"stage"`
|
||||
Sequence int `json:"sequence"`
|
||||
QueuedSince string `json:"queued_since"`
|
||||
}
|
||||
|
||||
// ResourceCleanupConfirmedKey lets a stage report failed restoration without
|
||||
// pretending that tool idleness also proves the resource is ready. An explicit
|
||||
// false (or malformed value) vetoes release; it never authorizes release alone.
|
||||
const ResourceCleanupConfirmedKey = "resource_cleanup_confirmed"
|
||||
|
||||
// Label is the operator-facing name of a run: the generated Title when the
|
||||
// server stored one, otherwise the pipeline Name (historical rows predate
|
||||
// titles). It is the single definition shared by the CLI and TUI.
|
||||
@@ -169,14 +155,6 @@ func (r RunSummary) Label() string {
|
||||
return r.Name
|
||||
}
|
||||
|
||||
// StatusLabel separates resource contention from a human decision everywhere.
|
||||
func (r RunSummary) StatusLabel() string {
|
||||
if r.ResourceWait != nil {
|
||||
return "Waiting for resource " + r.ResourceWait.Resource
|
||||
}
|
||||
return r.Status
|
||||
}
|
||||
|
||||
type RunStep struct {
|
||||
Control *ControlEvidence `json:"control,omitempty"`
|
||||
FileChanges *StageFileChanges `json:"file_changes,omitempty"`
|
||||
@@ -331,12 +309,11 @@ type MemoryRead struct {
|
||||
}
|
||||
|
||||
type ControlEvidence struct {
|
||||
Visit int `json:"visit"`
|
||||
MaxVisits int `json:"max_visits"`
|
||||
LimitReached bool `json:"limit_reached,omitempty"`
|
||||
ModelTarget string `json:"model_target,omitempty"`
|
||||
Memory map[string]MemoryRead `json:"memory,omitempty"`
|
||||
ResourceTarget *ResourceTarget `json:"resource_target,omitempty"`
|
||||
Visit int `json:"visit"`
|
||||
MaxVisits int `json:"max_visits"`
|
||||
LimitReached bool `json:"limit_reached,omitempty"`
|
||||
ModelTarget string `json:"model_target,omitempty"`
|
||||
Memory map[string]MemoryRead `json:"memory,omitempty"`
|
||||
}
|
||||
|
||||
// StageFileChanges is observed workspace evidence, not a model's claim of authorship.
|
||||
|
||||
Reference in New Issue
Block a user