v0.4.8
v0.4.8
Deterministic multi-phase workflow orchestration — the headline feature. 0.4.7 made the agent reason about whether to fan out; 0.4.8 gives that reasoning a runtime to execute. Hand over a declarative plan once and the runtime drives every step — fan out N specialist children per phase, barrier-wait the whole phase, synthesize their outputs, and feed that forward into the next phase — durably persisted and crash-resumable.
Highlights
- PhasePlan + deterministic executor — a declarative plan (ordered phases; each an explicit
agentslist or afanOutover targets;inputFrom/dependsOn/synthesize) executed by a runtime engine: spawn each phase's children, barrier-wait, synthesize, inject as{{input}}downstream. The runtime drives the spawns, not the model. - Durable + crash-resumable runs — a phase-aware ledger survives restarts; a crash flips the in-flight phase to
interrupted, and a run resumes from its failed phase (completed phases skipped, their output fed forward). run_workflowtool + templates — one call runs a plan or a built-incompare/review-wide/researchtemplate; the runtime fans out incli.maxConcurrentChildrenwaves.- The system runs it for you — when the next-action planner picks the
workflowstrategy it emits a validatedPhasePlanand the agent fires a singlerun_workflowcall: it fans out by itself instead of single-threading. - Real review-merge — a
review-mergephase dedupes + confidence-thresholds findings across reviewers. /workflow runlauncher + live phase timeline, and background runs (run_workflow({ background: true })) withphase N/Mprogress in the background panel.
Brain server
PayloadTooLargeErrorfixed — the HTTP server's JSON body limit is now configurable (default 16 MB,BRAINROUTER_MAX_BODY_SIZE) and an oversized body returns a clean 413 instead of an unhandled 500/crash.
Release mechanics
- All workspace packages bumped 0.4.7 → 0.4.8 + cross-package pins (
^0.4.8);package-lock.jsonregenerated;server.json+.claude-plugin/plugin.jsonsynced (DIST-1 guard). - Shipped as 11 PRs (#253–#263), each its own branch → green CI → merge into
release/0.4.8. - Published:
@kinqs/brainrouter-{types,sdk,mcp-server,cli}— all0.4.8.
Status
- Full suite green: 522 brain unit + 150 integration + 1194 CLI.
- Deferred to 0.4.9 (memory-accuracy): churn-weighted decay,
/memory verifysweep, source-side capture compaction.