Skip to content

Remove the Zend cold seed; docs follow the pinned-release bootstrap - #114

Merged
blacktrs merged 2 commits into
stage0from
noseed
Oct 7, 2026
Merged

blacktrs merged 2 commits into
stage0from
noseed

Conversation

@blacktrs

@blacktrs blacktrs commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Why

Since #112 the compiler bootstraps from the pinned release (BOOTSTRAP_VERSION). Nothing consumes the Zend cold seed any more, and keeping it alive would tie src/ to what php can run — the thing #105 set out to remove.

What changes

Removed

  • bin/compile, tools/compile_files_mir.php
  • bin/build --seed / --auto-seed, gate.sh MC_ZEND_SEED
  • the Zend fallback in install.sh
  • dead tools: composer_data_smoke.sh, typecheck_scan.sh, split_ll.php, docker/iopoll/diag.sh, docker/symfony_probe.sh

Changed

  • tools/selfhost_stability.sh rebuilds through the manifest path (what bin/build uses) instead of Zend. The one-module tools/selfhost.sh stays: selfhost_fixpoint.sh uses it.
  • Composer: composer.json drops "php": ">=8.5" — the compiler needs no php. create-project / vendor/bin/manticore-install still run install.sh, which downloads the release tarball for the host, or builds from source starting from the pin.
  • php remains only as the difftest oracle (toolchain image) and for Zend-hosted dev tools (tools/compile_user_mir.php).

Docs — audited every guide, README and design note against the tree:

  • seed instructions removed; in design notes, marked historical with a dated note;
  • ABI references point at MemoryAbi::VERSION (18) instead of stale literals;
  • memory-abi.md: descriptor is 64 bytes (json_fn@56), new §7c for the v14 BIGINT box and the v18 native buffer block;
  • pass pipeline (AGENTS.md, README, mir.md, src READMEs) gains NarrowScalarGuards, ResolveMethodFcc, ResolveOverloads, SpillFreshBases, OwnershipFlow — order checked against lower_module;
  • stale directory maps fixed (src/main.php entry, Stdlib 55 files, EmitLlvm 15 traits, external libs);
  • README: CI covers Debian + Alpine with required checks; Gates list xfail.sh / file_bug.sh.

New design notes (docs/design/): ownership-flow.md (OwnershipFlow, #15/#104), native-buffers.md (nbuf runtime behind SplFixedArray / Manticore\Ds, #108), stage0-bootstrap.md (the pin, the two-step rule, what needs a raise).

Verification

  • Clean tree, php stubbed to fail: bin/build bootstraps from 0.13.0 through two generations, zero php calls.
  • tools/selfhost_stability.sh 1: manifest + one-module rebuilds both smoke-clean.
  • CI on this PR covers Linux, the pin-only bootstrap job and macOS.

Stacked on #112 (base stage0); retarget to main after #112 merges.

The compiler bootstraps from BOOTSTRAP_VERSION (#112), so the seed has no
consumer left. Removed: bin/compile, tools/compile_files_mir.php, bin/build
--seed/--auto-seed, gate.sh MC_ZEND_SEED, install.sh's Zend fallback, and the
dead tools composer_data_smoke.sh, typecheck_scan.sh, split_ll.php,
docker/iopoll/diag.sh, docker/symfony_probe.sh. selfhost_stability.sh rebuilds
through the manifest path instead of Zend; composer.json drops the php
requirement (the installer downloads the release or builds from the pin).

Docs: every guide, README and design note audited against the tree — seed
instructions removed or marked historical, ABI references point at
MemoryAbi::VERSION (18), memory-abi.md gains the 64-byte descriptor (json_fn),
the v14 BIGINT box and the v18 native buffer block, pass tables gain
NarrowScalarGuards, ResolveMethodFcc, ResolveOverloads, SpillFreshBases and
OwnershipFlow.
Three shipped designs had no design note: per-program-point ownership
(OwnershipFlow, #15/#104), the native fixed-width buffer runtime behind
SplFixedArray and Manticore\Ds (#108), and the pinned-release bootstrap
(#112/#114). Each is derived from the code it cites; AGENTS.md links the
stage0 note.
@blacktrs
blacktrs added this pull request to stack #117 October 7, 2026 10:58
@blacktrs
blacktrs merged commit c8f3cde into main Oct 7, 2026
8 checks passed
@blacktrs
blacktrs deleted the noseed branch October 7, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant