Skip to content

Reseed gate memory tripwire fails on main: compiling the build runner peaks at ~1.2 GB (limit 1024M) #1182

Closed

Description

@ehartford

:install-user cannot pass on main: the reseed gate's memory tripwire (reseed_gate_smoke, src/main.w, 1024M, #679/#757) fails because compiling the native build runner (#921) peaks at about 1.2 GB. It is not caused by any recent change; it has been over the limit since at least 2026-09-12.

error: reseed gate: candidate as orchestrator peaked at 1199M (limit 1024M, #679 tripwire) — the clone-storm class (#757)

Hit reseeding after #1181 (battery green on c1e32920: build, :fixpoint, :test, :test-green, :last-green all rc=0).

Measurements

/usr/bin/time -l <compiler> build :compiler-main-source with WITH_BUILD_ACTION_FORCE=1 after removing out/.build-state/build-graph.cache and out/.build-state/build-runner.key (so the runner really compiles; each run printed [build] runner compiled ~16.5s). macOS arm64.

compiler build layer peak RSS
release binary at c1e32920 (post-#1181) c1e32920 1,244 MB
release binary at 2d7cfcc5 (pre-#1181, 09-16) 2d7cfcc5 1,249 MB
installed v0.15.2.1 (installed 09-12) c1e32920 1,272 MB
installed v0.15.2.1 17109853 (09-12) 1,254 MB

So neither the compiler nor the build layer regressed recently; the runner compile costs ~1.2 GB in every cell.

For scale, with the c1e32920 release binary: hello world 48 MB; a program that uses std.build 84 MB; check src/main.w (the whole compiler) 432 MB; check build.w 92 MB. The runner (build.w + build/*.w, ~24.7k lines) costs 3x a check of the entire compiler, and the cost is after Sema (check is 92 MB).

Lead

build(ctx) is one very large function. #1173 measured the dense drop-state matrix growing with locals x blocks (7 GB on the unbundled regex match_ body). The same analysis over build(ctx) is the first suspect. Route: --dump-drop-state sizes / a heap profile of the runner compile, not a guess.

Decision needed

The tripwire is doing its job (it exists to catch the clone-storm class) and should not be raised to make this pass. Either the runner compile's memory is fixed (likely #1173), or Eric re-baselines the limit deliberately. Until then no compiler built from main can be installed through :install-user.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions