Summary
Existing agents in the database have incorrect backend_type values (hardcoded
"tmux" from before the fix). The startup reconciliation loop should detect and
correct stale backend_type values so that agents created before the fix are
reported accurately.
Context
AgentManager::reconcile() in crates/orchestrator/src/manager.rs (line 393)
already iterates over all running agents at startup and checks their session
health. This is the natural place to also fix stale backend_type values.
After #1236 lands, newly spawned agents will have the correct backend_type.
But agents that were persisted before the fix will still have "tmux" (or
None) in the database. This issue handles the data migration aspect.
Acceptance Criteria
Key Files
crates/orchestrator/src/manager.rs -- reconcile_agent() method (line 434)
Blocked By
Stack Base
Stack on: feature/autonomous-pipeline
Blocked by: #1236
Summary
Existing agents in the database have incorrect
backend_typevalues (hardcoded"tmux"from before the fix). The startup reconciliation loop should detect andcorrect stale
backend_typevalues so that agents created before the fix arereported accurately.
Context
AgentManager::reconcile()incrates/orchestrator/src/manager.rs(line 393)already iterates over all running agents at startup and checks their session
health. This is the natural place to also fix stale
backend_typevalues.After #1236 lands, newly spawned agents will have the correct
backend_type.But agents that were persisted before the fix will still have
"tmux"(orNone) in the database. This issue handles the data migration aspect.Acceptance Criteria
reconcile_agent(), check ifagent.backend_typediffers fromself.backend.backend_name()and update it if sobackend_typevalue (includeagent ID, old value, new value)
self.storage.update(&agent)stopped/failed agents that might have legitimately run on a different backend)
cargo clippyandcargo fmtpassKey Files
crates/orchestrator/src/manager.rs--reconcile_agent()method (line 434)Blocked By
backend_name()source of truth)Stack Base
Stack on:
feature/autonomous-pipelineBlocked by: #1236