Skip to content

Commit a33d200

Browse files
committed
chore(release): finalize 2.4.0 docs and homepage updates
Polish the 2.4.0 release communication by updating changelog language, adding blog and release-note docs, linking them from the README homepage, and syncing the lockfile package version.
1 parent 466613b commit a33d200

6 files changed

Lines changed: 145 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Added
1313

14-
- **Distributed runtime extension layer** — Added `devsper.distributed` package with controller and worker-runtime wrappers for clean orchestration composition.
15-
- **Agent pool** — Added `runtime/agent_pool.py` with reusable, worker-aware concurrent agent leasing (`acquire_agent`, `release_agent`, `run_agent`, `run_parallel`).
16-
- **Model router (runtime layer)** — Added `runtime/model_router.py` for planning/reasoning/validation model routing with fallback chains.
17-
- **Speculative planner (runtime layer)** — Added `runtime/speculative_planner.py` to predict and stage speculative successor tasks.
18-
- **Runtime HITL manager** — Added `runtime/hitl.py` for pause/resume and explicit human-input request lifecycle handling.
19-
- **Execution graph upgrades** — Extended runtime execution graph with worker assignment metadata and distributed lineage tracking.
14+
- **Distributed runtime extensions** — Added modular runtime components for distributed orchestration: `AgentPool`, `ModelRouter`, `SpeculativePlanner`, `HITLManager`, `ExecutionGraph` worker assignment tracking, plus distributed wrappers (`distributed/controller.py`, `distributed/worker_runtime.py`).
15+
- **Runtime architecture documentation** — Expanded runtime docs with distributed architecture, worker/controller lifecycle, speculative execution flow, and HITL lifecycle details.
16+
- **Tool execution hardening** — Upgraded runtime tool runner with bounded parallelism, dependency-aware batching, per-call timeout isolation, and cancellation support.
2017

2118
### Changed
2219

23-
- **Executor composition** — Runtime executor now integrates AgentPool, ModelRouter, speculative planning hooks, and distributed assignment tracking while preserving default behavior.
24-
- **Task runner routing** — Task execution now supports pool-backed agent execution, scoped model routing, and fallback chain handling.
25-
- **Tool execution control** — Runtime ToolRunner now supports bounded concurrency, dependency-aware batching, per-call timeout, cancellation, and structured results.
26-
- **Event backpressure handling** — Runtime event stream now uses bounded queues with controlled overflow behavior.
27-
- **Runtime docs** — Updated runtime architecture docs in `devsper/README.md` with distributed flow, worker/controller lifecycle, and HITL/speculative execution details.
20+
- **Executor orchestration** — Runtime executor now supports agent-pool-backed execution, model routing integration, speculative follow-up scheduling hooks, and improved cancellation/backpressure behavior.
21+
- **Prompt/token efficiency** — Tool schema injection in agent prompts was compressed to reduce runtime token overhead in tool-enabled turns.
22+
- **Homepage and release communication** — Updated README homepage with v2.4.0 release CTA and an architecture upgrade blog entry for this release.
2823

2924
## [2.3.0] — 2026-03-30
3025

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ Full docs (with versioning and dark mode): **[docs.devsper.com](https://docs.dev
311311
| [Contributing](CONTRIBUTING.md) | Setup, testing, PR guidelines |
312312
| [FAQ](https://docs.devsper.com/docs/faq) | Common questions |
313313

314+
### Blog
315+
316+
- [Distributed Runtime Upgrade (v2.4.0)](devsper/docs/blog/2026-03-31-runtime-2-4-0.md)
317+
314318
---
315319

316320
## Attribution & Credits

devsper/docs/architecture/execution-model.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ The canonical execution model document lives under **docs**:
55
**See: [docs/architecture/execution-model.md](../../../docs/architecture/execution-model.md)**
66

77
That document is the source of truth for DAG execution, task state machine, HITL clarification (single-node and distributed, including Rust worker), bus topics, TUI lifecycle, and headless mode.
8+
9+
For the 2.4.0 distributed runtime upgrade summary, see:
10+
11+
- `devsper/docs/releases/2.4.0.md`
12+
- `devsper/docs/blog/2026-03-31-runtime-2-4-0.md`
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Devsper Runtime 2.4.0: Distributed Architecture Upgrade
2+
3+
Date: 2026-03-31
4+
Version: 2.4.0
5+
6+
## Why this release
7+
8+
Devsper has supported distributed execution paths for a while, but runtime internals needed cleaner extension points for worker-local execution, model routing, and fault-tolerant orchestration. Version 2.4.0 introduces those extension layers while preserving existing behavior.
9+
10+
## What changed
11+
12+
### 1) Agent Pool for worker-local reuse
13+
14+
`runtime/agent_pool.py` introduces pooled agent lifecycle management:
15+
16+
- `acquire_agent()`
17+
- `release_agent()`
18+
- `run_agent()`
19+
- `run_parallel()`
20+
21+
This reduces repeated setup overhead and enables consistent worker-aware agent execution.
22+
23+
### 2) Model Router for task-aware selection
24+
25+
`runtime/model_router.py` routes:
26+
27+
- planning-oriented tasks to planning models
28+
- reasoning-heavy tasks to primary reasoning models
29+
- validation/review tasks to cheaper validation models
30+
31+
Fallback model chains are supported when primary execution fails.
32+
33+
### 3) Speculative planner hooks
34+
35+
`runtime/speculative_planner.py` adds lightweight speculative execution planning:
36+
37+
- predicts likely successor tasks
38+
- marks/schedules speculative tasks early
39+
- cancels speculative branches when dependencies fail
40+
41+
### 4) Runtime HITL manager
42+
43+
`runtime/hitl.py` formalizes pause/request/resume behavior:
44+
45+
- pause task
46+
- emit human input request event payload
47+
- wait for response or timeout
48+
- resume or fail according to policy
49+
50+
### 5) Distributed wrappers
51+
52+
New distributed modules provide composable extension points:
53+
54+
- `distributed/controller.py`
55+
- `distributed/worker_runtime.py`
56+
57+
The controller coordinates workers and assignment strategy; worker runtime executes agents/tools locally.
58+
59+
### 6) Execution graph extension
60+
61+
`runtime/execution_graph.py` now tracks distributed assignment metadata:
62+
63+
- worker id
64+
- assignment timestamp
65+
- lineage visibility for distributed tracing
66+
67+
## Operational benefits
68+
69+
- Better runtime modularity for distributed deployments
70+
- Cleaner separation between coordination and local execution
71+
- Improved cancellation/backpressure behavior
72+
- More predictable model routing and fallback handling
73+
- Better traceability of worker assignment in execution graphs
74+
75+
## Upgrade notes
76+
77+
1. Upgrade package:
78+
79+
```bash
80+
pip install -U devsper
81+
```
82+
83+
2. Review:
84+
85+
- `CHANGELOG.md`
86+
- `devsper/README.md`
87+
- `devsper/docs/releases/2.4.0.md`
88+
89+
3. Validate with your current distributed setup using existing controller/worker paths first, then adopt the new runtime modules incrementally.

devsper/docs/releases/2.4.0.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Release Notes: 2.4.0
2+
3+
## Highlights
4+
5+
- Distributed runtime architecture extensions
6+
- Agent pool support for worker-local execution
7+
- Task-aware model routing with fallback chains
8+
- Speculative planner hooks for successor prediction
9+
- Runtime HITL manager for pause/request/resume flow
10+
- Execution graph worker assignment tracking
11+
12+
## New modules
13+
14+
- `runtime/agent_pool.py`
15+
- `runtime/model_router.py`
16+
- `runtime/speculative_planner.py`
17+
- `runtime/hitl.py`
18+
- `distributed/controller.py`
19+
- `distributed/worker_runtime.py`
20+
21+
## Runtime updates
22+
23+
- `runtime/executor.py` now integrates:
24+
- agent pool execution path
25+
- model router integration
26+
- speculative execution hooks
27+
- improved cancellation behavior
28+
29+
- `runtime/task_runner.py` now supports routed model execution with fallback chains.
30+
31+
- `runtime/execution_graph.py` includes distributed assignment metadata.
32+
33+
## Docs and homepage updates
34+
35+
- `README.md` homepage now includes a v2.4.0 release CTA and blog links.
36+
- Added this release note and architecture blog post for rollout communication.
37+
38+
## Compatibility
39+
40+
This release extends existing architecture and keeps current runtime paths intact. Existing workflows should continue to run without migration changes.

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)