This repository was archived by the owner on Apr 11, 2026. It is now read-only.
Commit a7bda14
feat: intelligent orchestration engine — service layer, adaptive scheduler, DAG viz, introspection, cross-model review
6-phase upgrade implementing CEO-reviewed plan:
Phase 1: flowctl-service crate — extracted lifecycle business logic from CLI,
unified CLI/daemon/MCP execution paths. ServiceError enum, connection management.
Phase 2: CPM critical path scheduling + domain-based adaptive parallelism.
Cold start falls back to fixed parallelism until 5+ completions per domain.
Phase 3: Real-time DAG visualization — SVG rendering with Sugiyama layout,
WebSocket-driven status updates, interactive drag-to-edit dependencies with
optimistic locking (409 on conflict).
Phase 4: AI introspection engine — token tracking queries, execution replay
timeline page, token consumption bar charts in web dashboard.
Phase 5: Cross-model adversarial review protocol — ReviewProtocol types,
consensus/conflict detection, flowctl codex cross-model command, MCP tool.
Phase 6: Delight pack — ASCII DAG (flowctl status --dag), task time estimates,
sound notifications, webhook integration, replay/diff commands, smart recovery.
250 tests pass, clippy clean, zero warnings.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 500ecf3 commit a7bda14
38 files changed
Lines changed: 5000 additions & 1035 deletions
File tree
- flowctl
- crates
- flowctl-cli
- src
- commands
- admin
- workflow
- tests
- flowctl-core/src
- flowctl-daemon
- src
- flowctl-db/src
- flowctl-scheduler/src
- flowctl-service
- src
- flowctl-web
- src
- components
- pages
- tests/cmd
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
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 | + | |
75 | 101 | | |
76 | 102 | | |
77 | 103 | | |
| |||
216 | 242 | | |
217 | 243 | | |
218 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
219 | 268 | | |
220 | 269 | | |
221 | 270 | | |
| |||
257 | 306 | | |
258 | 307 | | |
259 | 308 | | |
260 | | - | |
| 309 | + | |
261 | 310 | | |
262 | 311 | | |
263 | 312 | | |
264 | 313 | | |
265 | 314 | | |
266 | 315 | | |
| 316 | + | |
267 | 317 | | |
268 | 318 | | |
269 | 319 | | |
| |||
284 | 334 | | |
285 | 335 | | |
286 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
287 | 340 | | |
288 | 341 | | |
289 | 342 | | |
| |||
292 | 345 | | |
293 | 346 | | |
294 | 347 | | |
| 348 | + | |
295 | 349 | | |
296 | 350 | | |
297 | 351 | | |
| |||
314 | 368 | | |
315 | 369 | | |
316 | 370 | | |
| 371 | + | |
317 | 372 | | |
318 | 373 | | |
319 | 374 | | |
| |||
670 | 725 | | |
671 | 726 | | |
672 | 727 | | |
673 | | - | |
| 728 | + | |
674 | 729 | | |
675 | 730 | | |
676 | 731 | | |
| |||
0 commit comments