feat(dag): run unordered workspace writers in parallel with an implementation aggregator - #299
Merged
Conversation
This was referenced Aug 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #293
Summary
The block compiler chained every unordered
coding/prototypewriter into one serial lane, so saved routes advertised parallel implementation slices that never overlapped — the runtime concurrency budget bought nothing for the phase under the most time pressure. Root cause of the old serialization: the diff review gate binds one implementation reference and one fingerprint, and parallel writers have no single canonical evidence source.Change (see ADR-0002, included)
<review>--aggregatenode between the writers and the verification gate: it receives each writer's declaredchanged_files, fails loudly on any write-set intersection, and otherwise publishes the union plus one fingerprint computed at the convergence point.Runtime, review lifecycle, settlement, and recovery are untouched; the aggregator is an ordinary durable node with the ordinary implementation schema.
Verification
test/dag/blocks-parallel-writers.test.tscovers the issue's acceptance list (aggregator shape, partial order, chain byte-identity, collision, rewire preservation, verify binding).bun typecheckclean frompackages/opencodeandpackages/core.workflow-blocks.md(triple-disjoint write-set criterion).Follow-ups (separate repos/PRs)
opencode-dag-config#feat/parallel-writers-contract(prepared, commit 20698f3) lands after this merge; itsruntime-compat.jsonbump keys off this merge SHA (incompatible block rule).