-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathjob-timeout-config.json
More file actions
147 lines (128 loc) · 3.87 KB
/
Copy pathjob-timeout-config.json
File metadata and controls
147 lines (128 loc) · 3.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"$schema": "./src/schemas/job-timeout-config.schema.json",
"description": "Job timeout configuration for MCP tools",
"version": "1.0.0",
"defaults": {
"taskExecution": 300000,
"llmRequest": 60000,
"fileOperations": 10000,
"networkOperations": 20000,
"databaseOperations": 15000,
"taskDecomposition": 600000,
"recursiveTaskDecomposition": 720000,
"taskRefinement": 180000,
"agentCommunication": 30000
},
"toolTimeouts": {
"prd-generator": {
"timeoutOperation": "llmRequest",
"customTimeoutMs": 120000,
"description": "PRD generation requires research and multiple LLM calls"
},
"research-manager": {
"timeoutOperation": "networkOperations",
"customTimeoutMs": 180000,
"description": "Research queries can take longer due to external API calls"
},
"map-codebase": {
"timeoutOperation": "fileOperations",
"customTimeoutMs": 900000,
"description": "Code mapping can be intensive for large codebases"
},
"vibe-task-manager": {
"timeoutOperation": "taskExecution",
"customTimeoutMs": 600000,
"description": "Task management operations can involve complex decomposition"
},
"curate-context": {
"timeoutOperation": "taskExecution",
"customTimeoutMs": 1200000,
"description": "Context curation involves code analysis, embedded code-map generation, and LLM processing"
},
"fullstack-starter-kit-generator": {
"timeoutOperation": "fileOperations",
"customTimeoutMs": 180000,
"description": "Generating starter kits involves many file operations"
},
"user-stories-generator": {
"timeoutOperation": "llmRequest",
"customTimeoutMs": 90000,
"description": "User story generation with LLM"
},
"task-list-generator": {
"timeoutOperation": "llmRequest",
"customTimeoutMs": 90000,
"description": "Task list generation with LLM"
},
"rules-generator": {
"timeoutOperation": "llmRequest",
"customTimeoutMs": 60000,
"description": "Rules generation is typically faster"
},
"run-workflow": {
"timeoutOperation": "taskExecution",
"customTimeoutMs": 900000,
"description": "Workflows can run multiple tools in sequence"
},
"get-job-result": {
"timeoutOperation": "taskExecution",
"customTimeoutMs": 5000,
"description": "Job result retrieval should be fast"
},
"register-agent": {
"timeoutOperation": "networkOperations",
"customTimeoutMs": 30000,
"description": "Agent registration with transport setup"
},
"get-agent-tasks": {
"timeoutOperation": "taskExecution",
"customTimeoutMs": 10000,
"description": "Task polling should be responsive"
},
"submit-task-response": {
"timeoutOperation": "taskExecution",
"customTimeoutMs": 30000,
"description": "Task response submission"
},
"process-request": {
"timeoutOperation": "llmRequest",
"customTimeoutMs": 45000,
"description": "Natural language processing with tool routing"
}
},
"adaptiveTimeouts": {
"enabled": true,
"scalingFactors": {
"fileCount": {
"threshold": 1000,
"multiplier": 1.5
},
"codebaseSize": {
"threshold": 104857600,
"multiplier": 2.0
}
}
},
"retryPolicy": {
"maxRetries": 3,
"backoffMultiplier": 2.0,
"initialDelayMs": 1000,
"maxDelayMs": 30000,
"enableExponentialBackoff": true,
"retryableErrors": [
"TIMEOUT",
"NETWORK_ERROR",
"RATE_LIMIT",
"TEMPORARY_FAILURE"
]
},
"monitoring": {
"enableTimeoutLogging": true,
"logLevel": "warn",
"metricsEnabled": true,
"alertThresholds": {
"timeoutRate": 0.1,
"averageExecutionTime": 0.8
}
}
}