Repository navigation
Conversation
…Zend cold seed bin/build, gate.sh, CI, the release workflow, the Dockerfiles and install.sh all start from the release named in BOOTSTRAP_VERSION (fetched and checksummed by tools/fetch_bootstrap.sh, no php). Zend is opt-in (bin/build --seed, MC_ZEND_SEED=1). A new bootstrap-from-pin CI job builds the tree from the pin alone, so a merge that needs a feature newer than the pin fails with a named bootstrap error. AGENTS.md documents the two-step rule: release the feature, raise the pin, then use it in src/. Fixes #105
…quired checks, and a doc-only PR skipped by paths-ignore would never report them
blacktrs
added a commit
that referenced
this pull request
Oct 7, 2026
…114) * Remove the Zend cold seed; docs follow the pinned-release bootstrap 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. * docs/design: ownership flow, native buffers and stage0 bootstrap notes 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The Zend cold seed kept
src/tied to what php can execute, so the compiler could not use its own superset features (Manticore\Ds,#[TypeDef], generics) in its own source. This bootstraps from a pinned previous release (stage0), the way Go and Rust do, and makes Zend opt-in.What changes
BOOTSTRAP_VERSION(0.13.0, the Ds release): the one pin thatbin/build,gate.sh, CI, release, the Dockerfiles andinstall.shread.tools/fetch_bootstrap.sh <dest>: downloads the pinned tarball for the host (glibc/musl/macOS × arm64/amd64), checks it againstSHA256SUMS, and confirmsmanticore versionruns. Uses curl or wget, no php.bin/build: with no compiler, it fetches the pin, builds, then rebuilds once with the result. A bootstrap-gap error names the installed version and the pin.gate.sh: tries cache → publishedmain→ pin. Zend only runs withMC_ZEND_SEED=1; otherwise the run fails with an explicit "bootstrap gap" result.bootstrap-from-pinjob (linux arm64, no suite) builds from the pin alone on every push. This job is what enforces the rule.AGENTS.mdsection "Bootstrap: the pinned release" states the two-step rule — ship the feature in release N, raise the pin to N, then use it insrc/.Verification
phpstubbed to fail:bin/buildbuilt two generations from 0.13.0 and never called php. AOT-k array_passed 192/0.src/gives the bootstrap-gap message.fetch_bootstrap.shruns in the glibc and musl containers.Not in this PR
src/onto the new containers.Fixes #105