2026-11-02 · Architecture checkpoint after version 1.0.0

2026-11-02 · Architecture checkpoint after version 1.0.0

Context

Version 1.0.0 went to the Microsoft Store, and since the 29 October checkpoint about 29,000 lines were added: project workspaces and their crate, the project dictionary and its crate with merges proposed by a model, workflows, reviewed-text snapshots, thinking levels, each model’s output limit and several pages per call. AGENTS.md asks for a review at a release, when a crate is added and when files pass ~500 lines; all three applied. Three read-only reviews ran in parallel, as before (Rust structure, the paths that call a provider, the front end), and their main findings were checked against the code before being recorded here.

What holds

Fixed with this checkpoint

  1. Work paid twice or not counted (engine). How many pages a model reads in one call was worked out again from the live catalogue at every run, so a catalogue refreshed between two runs regrouped the pages, changed their keys and sent them again; it is now settled when the job is created (Setup::pages_cap). A sample no longer sets the group size, so the whole run finds its pages in the cache. A grouped answer from which no page could be kept is recorded as a charge, in the job’s cost and provenance’s refused.
  2. Workflows. Steps made at launch are tied to their project (the app subscribed after they were announced); a step’s job and its progress are written together, so a crash never leaves a job the run does not know; a step that could not start is tried again when its input is read; cancelling takes the run’s lock, so no step starts after.
  3. The proposal job is named in the interface’s language, writes only its provenance, into a folder of its own rather than the snapshots folder, and is deleted when its request cannot be recorded.
  4. Rules and sums from Rust. The engine leaves out a searchable PDF that no model of the job can write; cost estimates moved from the app into Engine::estimate, which also sums them, and the catalogue’s into catalog/src/cost.rs; TaskRules says where line breaks, samples and pages per call apply and ModelRef which model is chosen by default; “waiting for you” is StepState::needs_you, sent with each step.
  5. Duplication. One lookup of corrected answers in core (Correction::of, JobStore::finished_result, JobStore::answers) instead of four; one SetupRequest, in core, instead of it and PipelineSetup; pipelines and workflows on one Folder of saved definitions; error ids given by each error type. The store’s migrations and results, the dictionary’s requests and prompts’ rendering are modules of their own. In the interface, shared table, filter and selection styles, Missing.svelte for a value not known, and a development mock that fails a command it cannot answer instead of returning nothing.

Accepted

Consequences