docs: Add overlap analysis for non-AI coordinator patterns
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Detailed comparison showing: - Existing doc addresses L-015 (premature completion) - New doc addresses context exhaustion (multi-issue orchestration) - ~20% overlap (both use non-AI coordinator, mechanical gates) - 80% complementary (different problems, different solutions) Recommends merging into comprehensive document (already done). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
25
apps/api/src/token-budget/dto/allocate-budget.dto.ts
Normal file
25
apps/api/src/token-budget/dto/allocate-budget.dto.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { IsString, IsUUID, IsInt, IsIn, Min } from "class-validator";
|
||||
import type { TaskComplexity } from "../interfaces";
|
||||
|
||||
/**
|
||||
* DTO for allocating a token budget for a task
|
||||
*/
|
||||
export class AllocateBudgetDto {
|
||||
@IsUUID("4", { message: "taskId must be a valid UUID" })
|
||||
taskId!: string;
|
||||
|
||||
@IsUUID("4", { message: "workspaceId must be a valid UUID" })
|
||||
workspaceId!: string;
|
||||
|
||||
@IsString({ message: "agentId must be a string" })
|
||||
agentId!: string;
|
||||
|
||||
@IsIn(["low", "medium", "high", "critical"], {
|
||||
message: "complexity must be one of: low, medium, high, critical",
|
||||
})
|
||||
complexity!: TaskComplexity;
|
||||
|
||||
@IsInt({ message: "allocatedTokens must be an integer" })
|
||||
@Min(1, { message: "allocatedTokens must be at least 1" })
|
||||
allocatedTokens!: number;
|
||||
}
|
||||
Reference in New Issue
Block a user