Repository navigation
Planning pipeline, staged waves, check and repair, and the Showdown
benchmark. The engine can now plan an app as interface contracts, write
it in stages of parallel streams, check it with a real build and repair
the files that the check names. Every new step is an option that is off
by default: a host that sets none of them gets the plans and waves of
0.2.0.
Measured
bench/showdown builds one complete Next.js app from a plain-text brief
two ways with the same model (DeepSeek): one stream that writes every
file, and SlimToken. SlimToken's time includes its plan, every wave and
the whole check-and-repair step. "Pass" means that install, build, test
and pages all pass. One run is one sample; provider speed changes from
minute to minute.
| Point | SlimToken wall time | Delivery checks | Against the single stream |
|---|---|---|---|
| 0.2.0 engine, first benchmark runs (14 Nov, Taskflow, 3 runs) | 109.9, 48.7 and 71.3 s | 2 of 3 pass | level to 1.8x (single stream 82 to 87 s) |
| Planner pipeline, staged waves and repair (14 Nov, Taskflow, 8 runs) | median 29.7 s | 8 of 8 pass | about 2.9x |
| This release, default set (20 Nov, five apps of which four are held-out, 9 runs) | median 37.5 s, range 35.1 to 53.8 s | 8 of 9 pass | about 2.2x (estimate: the single stream was not rerun for each) |
Full races, both sides run together:
| Date | App | Single stream | SlimToken | Speedup |
|---|---|---|---|---|
| 2026-11-14 | Taskflow | 85.4 s, pass | 26.4 s, pass | 3.24x |
| 2026-11-14 | Taskflow | 82.5 s, pass | 38.6 s, pass | 2.14x |
| 2026-11-14 | Taskflow | 81.4 s, test fails | 28.5 s, pass | 2.86x |
| 2026-11-20 | Taskflow | 92.6 s, build fails | 34.0 s, pass | 2.72x |
| 2026-11-20 | Fleet (held-out) | 108.2 s, build fails | 44.7 s, pass | 2.42x |
Blind judge, delivered score out of 100 for the SlimToken app
(2026-11-20): Taskflow 95.2 and 79.7, Ledgerly 92.5. In the first of
these the pinned single-stream reference app scored 87.9.
SlimToken is faster, not cheaper: it sends many more input tokens than
one request (about 660,000 against about 460 in the two races of 20
November). The provider served about 30% of them from its prompt cache
(203,392 of 657,026 and 198,656 of 665,191). The method, the fairness rules and the
limits are in bench/showdown/BENCHMARK.md.
Upgrading
Hosts that build ProviderPreset with a full struct literal must add
the three new fields. A host static Profile literal must add
staging: NO_STAGING and tidy_manifest (a fn(&mut Manifest); a
no-op keeps today's plans), and a full PlanOptions literal must add
the twelve new fields (or end with ..PlanOptions::default()). A full
SchedulerConfig literal must add trace_append (false keeps
today's trace). A full
ProfileFile literal must add the ten new staging fields. A full
Staging literal must add split, aggregate and quality (&[],
profile::no_aggregate and profile::NO_QUALITY keep today's plans). A full
RunRequest literal must add profile and plan_options (or end
with ..RunRequest::default()). A host static Profile literal must
also add repair: NO_REPAIR_HOOKS (profile::NO_REPAIR_HOOKS; it
changes nothing unless the host calls repair::check_and_repair). A
full RepairHooks literal must add guard (profile::NO_GUARD_HOOKS
keeps today's repairs; a full GuardHooks literal has shared_module), and a full RepairPolicy literal guard
(false).
Added
pipeline::build(objective, client, BuildOptions) -> BuildOutcome:
one call that plans, runs the wave, writes the project files and, with
a checker, checks and repairs them.BuildOptions::for_stack(profile, preset)sets the options that a profile and a provider preset
recommend.BuildHookslet a host act between the steps.- Planning as contracts (
architect::plan_project,
ArchitectOptions): a skeleton call, then export fragments that
decode side by side. Options, all off by default:types_firstand
layered(the type files are planned first and every later fragment
sees them),core_whole,contract(contract check and repair),
references(plan references that no file planned),review(one
cross-file review call),plan_pipe(fragments start while the
skeleton still streams),types_from_paths,skel_compact,
split_pagesandearly_manifest. - Staged waves (
Profile.staging,PlanOptions.staged): types,
then modules, then pages, components and tests, each stage in
parallel. With it:one_type_owner,declare_types,
types_from_plan,min_test_shards,split,shell_ruleand
tests_see_code.ProviderPreset::apply_planturns on what a preset
recommends.profile::glob_matchmatches the layer globs. - Check and repair (
checkandrepairmodules): an async
Checkertrait,repair::check_and_repairandRepairPolicy
(max_rounds,guard,joint_edits,test_edits,contract_side).
Each file that the check names is repaired by its own stream with its
problems and the files it imports.Profile.repairholds a profile's
repair hooks. CLI:--check-cmd(the old name--test-cmdstill
works) and--repair-rounds N. - Scheduler options, all off by default:
continue_truncated(an
answer cut at the output limit is continued),file_min_tokens,
continue_runaway_tokensandtrace_append. A warning is logged when
a dependency output is cut. - Request options, all off by default: hedged requests
(hedge::HedgeClient, CLI--hedge-after-msand--hedge-max),
connection prewarm (--prewarm N), an HTTP/2 offer (--http2),
in-wave repair (--in-wave-repair), and thespeedraceand
pageforkmodules for hosts that want them. - Quality options for generated apps, all off by default: the
pagelocalmodule (pages own their features), thesemanticsmodule
(app conventions for money, dates, state and forms), theobjective
module (the brief's pages and quality bar reach each file), the
stylesheetmodule (one style sheet after the wave) and
profile::Quality. projectmodule: file extraction,write_project,
apply_edit_blocksandEDIT_FORMATfor search-and-replace repairs.ProviderPresetfieldscold_hint_cap,start_percentand
first_token_watchdog;RunRequest.profileandRunRequest.plan_options;
PlanOptionsderivesSerialize,Deserialize,PartialEqandEq;
scheduler::render_task_promptandscheduler::run_shell_pipedare
public.bench/showdown(a separate crate): a terminal benchmark that
races one model stream against SlimToken on the same brief.run,replayanddemoopen with the prompt in full, the model
and a countdown before any request is sent (--intro-secs N).launchandrun --launchstart both apps; on Windows with Edge or
Chrome they open as app windows on the left and right halves of the
screen (SHOWDOWN_TILE=0turns this off).- The result panel and
results.json(cached_input_tokens) show
how many input tokens of each side were prompt-cache hits. judgescores both apps of a finished run blind: requirement
coverage, working defects with verified quotes, a pairwise verdict
and a browser smoke test.- Each pipeline step has a switch (
SHOWDOWN_ON); with it unset the
benchmark runs its recommended set. - Brief sets: Taskflow and Ledgerly, and eight held-out apps.
Changed
- The CLI's
runandRunManager::executeboth go through
pipeline::build. Plans, reports, files and printed lines are the
same. With--out-dirand--repair-rounds, the wave's files are
also written before the check. - The DeepSeek preset starts the wave wide.
- The rendered README of a generated project is a real README.
- Next.js profile: staging layers and rules, client pages are marked by
thetidyhook, in-app navigation uses<Link>, and the test rule
asserts only what holds for any seed data when the seed's code is not
attached.
Fixed
- Scheduler: the first-token watchdog backs off per task. Each attempt
it abandons doubles that task's limit, and after two it leaves the
task alone. - CLI: the repair after the wave no longer truncates
<output>/journal.jsonl, so--resume-fromfinds the wave's journal. - An objective that asks for a test count near
u64::MAXno longer
overflows the test quota. - A skeleton that lists a test file under
filesno longer writes it
beside the profile's tests. project::apply_edit_blocksplaces nothing when a block was not
closed, instead of writing the marks into the file.- A joint repair's output limit follows the size of its files.
- The wrapper clients (
FailoverClient,HedgeClient,FanOutClient)
forwardModelClient::continue_completionto their inner client. hedge: a copy that reports its first token and fails in the same
poll ends the race with its error at once, and a rate-limit or
overload error pauses hedging for its Retry-After.