Skip to content

Reseed gates never run the release binary as build orchestrator #757

Closed

Description

@ehartford

The clone-storm seed break (fixed in 0f66336) shipped through a fully green battery + reseed because of a coverage hole: during a battery, the release binary runs only as a spawned pure-compiler child (workers, tests). The FIRST time it ever evaluates build.w comptime as orchestrator is after :update-seed/:install-user — on the user's machine, with no gate in between. A regression confined to the build.w evaluation path (comptime evaluator, action graph, worker spawning) is invisible to build/fixpoint/audits/tests and detonates on the next 'with build'.

Gate proposal: :update-seed (or :install-user) must first run the candidate binary as orchestrator on a small but representative action set — e.g. force-regenerate compat-runtime-source (it exercises the embedded-stdlib comptime loop that blew up) plus one object target, under a tight memory/time budget, and fail the reseed if it exceeds either.

Context: groundwork 882921e made evaluator read paths deep-clone; quadratic on big string accumulators; 64 GiB in ~30s. Batteries 8-10 green; seed g43df7f0d8 broke every subsequent orchestrated build until the direct-compile bootstrap recovered it.

Activity

  1. added
    bug
    on Aug 3, 2026
  2. ehartford commented on Sep 1, 2026

    @ehartford
    ContributorAuthor

    Fixed in f481eb5. :update-seed / :install-user (cli_fast_install_blessed) now, after the last-green sha check and before copying, run the candidate as check build.w and as build :compiler-main-source under WITH_BUILD_ACTION_FORCE=1 — a fingerprint cache miss, so the candidate evaluates build.w in full as the orchestrator, compiles its runner, and runs the action natively — with 300s/600s timeouts and a 1 GiB peak-RSS tripwire (#679 class). Output is captured to out/command/reseed-gate/; any failure refuses the install with the child's stderr.

    Demonstrated on the refusal path before this reseed: WITH_RESEED_SMOKE_TARGET=nonexistent-target out/release/bin/with build :update-seed exits 1 with error: reseed gate: candidate failed as build orchestrator on ':nonexistent-target' (exit 1) and src/main is byte-identical before and after. The real reseed then went through the gate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions