Roadmap
Project Builder is being built in stages, and the order is deliberate: each stage builds on the guarantees of the one before it. Determinism comes first; composition, evaluation, selection, distribution, and orchestration only make sense once the foundation is proven.
Stage 1: Local schematics (shipped)
Section titled “Stage 1: Local schematics (shipped)”The base of these docs: authoring typed, testable, deterministic schematics and running them inside your own repository. That includes the seven mutation verbs, templates, AST-aware dialects, and the in-memory testing harness.
Stage 1 is built, and it is being proven in the field. The experiments are real projects running real schematics.
Stage 2: Interconnected schematics (shipped)
Section titled “Stage 2: Interconnected schematics (shipped)”Schematics that compose: one schematic invoking others, chaining generation into larger flows. The determinism guarantee extends across the chain: a composed run is still all-or-nothing and still reproducible.
This stage shipped with CLI v0.20.0 and @pbuilder/sdk 0.22.0. A schematic can
invoke any schematic of the collections its Manifest defines, in real runs
as well as in tests, and @pbuilder/sdk 0.24.0 types the call. Schematics of external libraries
cannot be invoked yet.
Stage 3: Evaluation schematics (shipped)
Section titled “Stage 3: Evaluation schematics (shipped)”A schematic with the evaluation role reads the workspace and returns findings instead of writing.
builder validate runs it in a Dry Run and reports the findings through its exit code, so it works
as a CI gate. For a generator, builder validate reports drift.
This stage shipped with CLI v0.18.0 and @pbuilder/sdk 0.20.0, and an evaluation can be invoked by
another schematic since CLI v0.20.0. See Write an evaluation schematic and
Check code with builder validate.
Stage 4: Selection (in progress)
Section titled “Stage 4: Selection (in progress)”Finding the schematic that already does what you need, for an AI agent or a person. A generator declares a title, the jobs it does and optional keywords, and a search starts from those declarations before any Dry Run is spent.
The declared metadata and builder describe shipped with CLI v0.21.0, and
builder selection shortlist shipped with CLI v0.23.0. It lists the local generators that cover a
goal’s jobs. See builder selection shortlist
and Selection metadata.
The rest of the stage is designed and has not shipped: the content a Candidate’s Dry Run reports, the registry of Mismatches that removes a Candidate that already failed, and the Resolution that turns a Coverage into a Verdict and Recommendations.
Recently shipped
Section titled “Recently shipped”invokein real runs (CLI v0.20.0,@pbuilder/sdk0.22.0). The CLI hands the Run every schematic of the Manifest’s collections, so a schematic can run another one, also across collections. See Invoke another schematic.- Invoking an evaluation returns its Findings to the caller, and its edits are discarded. See Write an evaluation schematic.
- When several schematics of one Run write a path the Run created, the last write wins instead
of failing with
path-collision. A file that was already in the workspace is still protected. - Every runner starts in its own temporary directory, so a relative write with Node’s
fsno longer reaches the workspace.@pbuilder/sdk0.22.0 and later still name paths relative to the workspace in their messages. builder validatewith no positional keeps the findings of every evaluation that ran and names each one that could not run, and the outcome stays an error with that error’s exit code, never 6 (CLI v0.20.1). A finding whosefixnames a schematic the Manifest does not have is reported unchanged with the warningwarn_fix_schematic_unresolved. See Run every evaluation.@pbuilder/sdk0.23.0 names the missing schematic when an invoke targets one its collection does not have, and names a failing factory by its folder.- A generator is chosen by the title, jobs and keywords its entry declares (CLI v0.21.0).
builder new schematicrequires--titleand--job,builder describechanges them, andbuilder selection shortlist(CLI v0.23.0) lists the generators that cover a goal’s jobs. See Selection metadata. - The CLI hands a generator root its qualified name, so a failing factory outside the workspace
is named
factory <collection:schematic>instead of by a path of the machine (CLI v0.22.0 with@pbuilder/sdk0.23.0, cli#260). - Parsing a file in the TypeScript and React dialects no longer loads the TypeScript standard
library (
@pbuilder/sdk0.23.1, sdk#308). The SDK’s changelog measuredparse()going from 37 ms to 0.5 ms per file intypescriptand from 36 ms to 0.3 ms inreact. - A read serves files up to 8 MiB, up from 1 MiB, and a read over that cap rejects with
ReadTooLargeError, which a factory can catch (CLI v0.24.0,@pbuilder/sdk0.24.0, engine#382). See Files over the read cap. withTreeandisValidCsharpquery a C# tree without a parser of your own (@pbuilder/sdk0.24.0, sdk#311). See C# dialect.- A typed
invoke: codegen writesinvoke.generated.ts, and a call by a registered name is checked against the child’s Input and Result (@pbuilder/sdk0.24.0). See Type the call. @pbuilder/sdk0.24.0 sends frames of up to 64 MiB, so it needs CLI v0.24.0 or later.- Every handle carries its workspace-relative path as
path, so an evaluation lists its files withgloband puts each handle’s path on a finding (@pbuilder/sdk0.25.0, sdk#305). It works with CLI v0.24.0 or later. A dialect op namedpathis now refused. See List the files with glob. - A factory that does not catch a read over the 8 MiB read cap fails with its own error code,
execute_read_ceiling_exceeded(exit code 5), instead of the genericengine_native_developer_fault, inbuilder executeand inbuilder validate(CLI v0.26.0,@pbuilder/sdk0.26.0, cli#281). See When nothing catches the read.
Open follow-ups
Section titled “Open follow-ups”Work that is planned or under way and not in a released version yet:
- Selection reads the collections of installed libraries, and hidden and private schematics (cli#273, cli#274).
builder new schematic --role, so an evaluation needs no hand edit ofproject-builder.json(cli#269).- The skill
builder initinstalls teaches agents to runbuilder validateand act on findings and their fixes (cli#268). createrejects an unknown or missing option at the call, with a message that names it. Today a typo such ascontentfortemplatefails with an unclassified error (sdk#306).- The
schema.jsoninput contract is published, so editors show thatlabelis required (sdk#307).
Stage 5: External schematics
Section titled “Stage 5: External schematics”Consuming schematics from outside your own repository: private registries for your organization and public packages for the ecosystem. Your team’s proven patterns become installable building blocks.
Stage 6: Project Builder
Section titled “Stage 6: Project Builder”The full vision, and the reason for the project’s name: an orchestrator of schematics that is, itself, easy to orchestrate. Generation pipelines span projects and teams, with the same guarantee that has held since stage 1: the same input produces the same bytes.