feat: enhance agent provisioning by adding AUTONOMY.md and ensuring task dependencies are handled correctly

This commit is contained in:
Abhimanyu Saharan
2026-02-07 02:42:33 +05:30
parent c1d63f8178
commit a4442eb9d5
9 changed files with 123 additions and 29 deletions

View File

@@ -188,6 +188,8 @@ async def create_task(
if agent.board_id and agent.board_id != board.id:
raise HTTPException(status_code=status.HTTP_409_CONFLICT)
session.add(task)
# Ensure the task exists in the DB before inserting dependency rows.
await session.flush()
for dep_id in normalized_deps:
session.add(
TaskDependency(