安全すぎて重かったDandoriを、Bounded Adaptive Orchestrationで再設計したThe Dandori task orchestration library was redesigned using a Bounded Adaptive…
タスク自動化ライブラリDandoriの過剰な安全設計による処理の重さを解消するため、Bounded Adaptive Orchestrationという新アーキテクチャで再設計し、柔軟性とパフォーマンスを大幅に改善した。
The Dandori task orchestration library was redesigned using a Bounded Adaptive Orchestration architecture to address performance bottlenecks caused by overly conservative safety constraints, resulting in improved flexibility and efficiency.
AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (zenn.dev) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (zenn.dev).
タスク自動化ライブラリ「Dandori」が、過剰な安全設計に起因する処理性能の問題を解消するため、「Bounded Adaptive Orchestration(境界付き適応的オーケストレーション)」と呼ぶ新しいアーキテクチャで再設計された。柔軟性とパフォーマンスの両立を狙った取り組みで、AIエージェントによるタスク実行基盤の設計に一つの示唆を与える事例と言える。
Dandoriは、複数のタスクを依存関係に沿って調整・実行するオーケストレーション機能を提供するライブラリだ。「段取り」を語源とする名称が示すように、処理の順序や前提条件を整理し、安全に自動化を進めることを重視して設計されていたと見られる。しかし、その安全性を担保するために課された制約が過度に保守的だったため、本来なら並行して処理できる作業まで直列化されるなど、実行の重さを招いていたという。
今回導入されたBounded Adaptive Orchestrationは、安全性の境界(bounded)をあらかじめ定義したうえで、その範囲内では実行方法を状況に応じて適応的(adaptive)に変化させるという考え方に基づく。すべてを一律に厳格な制約で縛るのではなく、守るべき不変条件を明確にし、それ以外の部分では並行実行や動的な最適化を許容することで、安全性を損なわずに処理効率を高める狙いがあると考えられる。
こうしたアプローチは、AIエージェントの実行制御という広い文脈とも重なる。LangChainやLlamaIndex、Microsoftのオーケストレーション関連ツールなど、複数の処理やツール呼び出しを協調させる仕組みは各所で開発が進んでおり、いずれも信頼性と実行効率のバランスが共通の課題となっている。制約を厳しくするほど予期せぬ挙動は抑えられる一方、動作が遅く硬直的になりやすいというトレードオフは、この種の基盤に付きまといがちだ。
Dandoriの事例は、安全設計を後から一律に緩めるのではなく、境界を再定義して適応の余地を組み込むという設計判断を示す点で参考になる。もっとも、適応的な挙動は再現性やデバッグの難しさを伴う可能性もあり、境界の設定が適切かどうかが実運用での鍵になるとみられる。今後、同様の課題を抱えるオーケストレーション基盤にとって、一つの設計パターンとして検討されていく可能性がある。
Dandori, a task orchestration library aimed at coordinating automated and AI-driven workflows, has been rewritten around a new design its author calls Bounded Adaptive Orchestration. The redesign matters because it tackles a recurring tension in agent and pipeline tooling: safety mechanisms that are so cautious they turn into a performance bottleneck. According to the accompanying write-up, the previous version of Dandori was reliable but heavy, and the goal of the rework was to preserve correctness while restoring flexibility and speed.
In orchestration systems, "safety" usually refers to the guarantees that keep a workflow in a consistent state even when individual steps fail. Common techniques include strict sequential execution, validation before and after each task, defensive locking to prevent concurrent modification, and automatic retries or rollbacks. These measures reduce the risk of corrupted state or duplicated side effects, but they come at a cost. When every step is treated as if it were the most dangerous possible operation, the system loses opportunities to run tasks in parallel, and it spends significant time on checks that are often redundant. The original Dandori appears to have leaned heavily toward this conservative end of the spectrum, which is why it was described as overly safe and, as a result, slow.
Bounded Adaptive Orchestration is presented as a middle path. The name points to two ideas working together. "Bounded" suggests that explicit limits and guardrails are defined up front, establishing the region within which the orchestrator is allowed to operate. "Adaptive" suggests that, inside those boundaries, the system can adjust its execution strategy dynamically rather than applying a single fixed policy everywhere. In practice this likely means the scheduler can parallelize independent tasks, reorder work when dependencies permit, and skip or relax checks that are provably unnecessary, while still enforcing hard constraints where correctness genuinely depends on them. The effect is that safety cost is paid where it is warranted instead of being spread uniformly across the whole graph.
This approach reflects a broader pattern in modern workflow engineering, where task dependencies are frequently modeled as a directed acyclic graph. Representing work as a DAG makes it possible to identify which steps are truly ordered and which can run concurrently. A conservative engine may collapse that structure into a single line of execution for simplicity and safety; an adaptive one uses the graph to extract parallelism without violating the declared dependencies. Bounding the adaptation is what keeps this from becoming unpredictable, since the orchestrator is never free to reorganize work beyond the constraints the developer has stated.
Dandori sits alongside a growing set of tools for coordinating multi-step and multi-agent processes. In the AI agent space, frameworks such as LangGraph, CrewAI, and AutoGen have popularized the idea of orchestrating language-model calls, tool invocations, and control flow as explicit, inspectable structures. In the more traditional data and job scheduling world, systems like Apache Airflow and Prefect have long used DAGs to manage pipelines, while durable execution engines such as Temporal focus on surviving failures through persisted state and replay. The challenge Dandori is addressing—balancing guardrails against throughput—is familiar across all of these categories, which is part of what makes the redesign broadly relevant rather than specific to one niche.
The reported outcome is improved flexibility and efficiency, though the write-up frames this as an architectural shift rather than a claim of universally faster performance. It is reasonable to expect that the gains are most visible in workflows with many independent tasks, where the old model's forced serialization was the dominant cost. Workloads that are inherently sequential, or that depend on shared mutable state, would see smaller benefits because their bounds leave little room to adapt. As with any refactor that loosens previously strict guarantees, the practical question is whether the new boundaries are drawn correctly, since an adaptive engine is only as safe as the constraints it is told to respect.
For readers evaluating orchestration libraries, the Dandori rework is a useful illustration of a design principle worth keeping in mind: safety and speed are not necessarily opposed, but treating every operation as maximally risky tends to sacrifice both usability and performance. Encoding where safety actually matters, and allowing the runtime to adapt elsewhere, is an increasingly common way to resolve that trade-off.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPoko安全のためなのに「重かった」って、どこが重かったの?It was built for safety, so what exactly made it heavy?
- TECHガイドTECH GuideTask Flow Reviewに情報を載せすぎて確認に時間がかかり、調査後に少し段取りを変えるだけでも再承認が必要になったそうです。The Task Flow Review packed in so much detail that checking it took a long time, and even a small plan change after investigating could mean re-approval.
- ポコPokoTask Cardは、Workerが何をしていいかを決める契約書みたいなものかな?それが厳しすぎたの?So the Task Card is like a contract for what the Worker may do? And it was too strict?
- TECHガイドTECH Guideはい、記事では実行契約と書かれています。ただ各ステップからはみ出せない設計で、作業開始後の調整が難しくなっていたようです。Yes, the article calls it an execution contract. But it couldn't stray from any approved step, which made adjusting mid-task hard.
- ポコPoko1ファイルの修正のつもりが、テストや呼び出し元も直すと分かる、みたいな時に困るんだね。So if you think it's a one-file fix, then find tests and callers need changes too, that's where it gets stuck.
- TECHガイドTECH Guideそうですね。この記事では範囲を限定する効果は出ていたとあるので、その良さと調整のしやすさをどう両立するかが焦点だと思います。Right. The article says limiting scope worked well, so the real question is how to balance that with room to adjust.
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy



