Repository navigation
2026.11.27.1: stated closure, single readers, refusals where known, and six features - #1023
Merged
Merged
Conversation
…zation switch is the build before it In 2026.11.26.1 the switches that are decided when the graph is written (MCPP_PRIVATE_FRAGMENT, MCPP_BMI_SCHEDULE, MCPP_BUILDOPT) were part of the record of a build, which is written by a build that succeeded. A build that stated one and failed left its graph under the record of the build before it, and a plain build replayed that graph and failed the same way until a source or the manifest was edited. On GCC that is the invocation a failure's tip gives. The statement is part of the request the graph itself names (request_tag), which every fast path compares before replaying it; the part of the record is removed. Stated by none, the tag is the one it was.
…fter-failed-build
…dd --build; the shebang note names the toolchain
… is refused at planning; profile dialect_cxxflags; unknown profile keys reported; feature descriptions in the example
…le, and a shrink-only check counts the rest
…ependency scan; one construction of the scan command
…a shared image does not define are reported
…st tool's entry carries its shared objects; libraries only the default environment provides are reported
… surplus is reported, and refused where a host loads it by name
…ne; candidates for profiles, targets, toolchains, members and packages; mcpp self completion
…s row data; a run's PATH is recorded for the fast path; completion reads the home through its configuration - The edge that writes a BMI declares the absolute spelling clang's depfile names as an implicit output, so a build with no edit after an edit compiles nothing (mcpp#1015, SPEC-018 §1 item 6). - dlopen-static-tls states, per target row, the static TLS the loader serves an image loaded by dlopen; the glibc rows state 512, and a row that states none is not checked (mcpp#907). - A run takes the stated tools and the declared environment's bin, never the toolchain's environment; the build record carries those directories and the run fast path replays them. - A tree that hits a path dependency's cache or tool-store entry leaves the entries of its earlier contents, as a write does (mcpp#1025). - A package of the default namespace names its shared library by its bare name (mcpp#975). - An entry source whose imports are the compiler's keeps its line-leading imports (mcpp#1026). - The #! interpreter is read on every host; the missing-interpreter note goes through mcpp.diag. - Completion offers the installed toolchains from the provider's stores and the index copies' packages by the configuration's index directories, read-only; a default-namespace package is offered qualified once the word names the namespace; PowerShell is the default where its module path is stated and SHELL is not.
- Unit: a BMI is one node in both its spellings under clang and one under GCC; the staged std BMIs and the two-phase precompile edge name the absolute spelling; the static TLS bound as row data; the child PATH composition; a converging edit leaves the old entry. - e2e: 1167 to 1176 (library names and soname-collision, runtime-closure, static TLS, unmatched exact exports, entry users, conditional imports, the reopened table, the C++ ABI refusal, completion with a home's store and index copy, no compile after an edit). - Existing cases expect a dependency's library named by its package (libdemo_fw, libspike_dep, libdep_depshared, the Windows resources DLL), the dotted keys mcpp add and mcpp new write, and a conditional import that builds.
…n record - SPEC-016 v1.10 (dlopen-static-tls), SPEC-018 v1.2 (one BMI node), SPEC-002 v1.13 (§3.11, the C++ ABI refusal), SPEC-004 §11 item 8 (library names, the default namespace's bare name). - docs/01, 04, 05, 06, 09, 20, 22, 23, 25, 30, 35 and 51 in English and Chinese. - The design record lands at v3; §13 states what the implementation changed and why, the #1015 measurement and fix, and the local verification. - 2026.11.26.2 was not released; its entry is part of 2026.11.27.1. - mcpp.toml and the version module name 2026.11.27.1; mcpplibs.cmdline 0.0.6.
… follows the std module gate; mcpp's Windows images reserve 8 MiB of stack - The scan of a unit whose imports stand inside a preprocessor condition hands its words to the program as arguments, with no shell between: cmd.exe reads no single quotes, and the quoted program failed with Windows error 123 (Windows CI, cli/05). p1689::scan_words builds the words once; the build's scan edge joins them into the command it had. The standard and dialect words are kept as arguments beside the string the std module's identity reads (stdWords). - The refusal of a graph C library without a C++ ABI (mcpp#898) runs after the gate that refuses a toolchain with no std module, and only where one exists; a configure-only run reports it as a note. The openkal rows keep their own refusal, and mcpp self env describes them (942, 951). - mcpp's Windows images reserve 8 MiB of stack for the main thread, as Linux and macOS give it: mcpp pack nests the program's, a host tool's and its build programs' preparation in one process, about 1 MiB of frames, measured on the openkal canary (EXCEPTION_STACK_OVERFLOW). - The completion adapter's path is printed in one spelling, forward slashes and UTF-8, which the POSIX shells of a Windows machine and PowerShell both read. - The profile's flag words are applied by a helper, which keeps the toolchain step under the 400-line function gate.
…usal order and the stack reserve - The e2e parsers of a BMI-writing edge read its implicit outputs up to the rule's ' : ': under clang the edge also names the BMI's absolute spelling, an escaped drive colon on Windows (bmi/849, programs/858; first_stage no longer passes over the std BMI). - Unit: the scan edge's command is the text it was; the plan's scan words are arguments. - SPEC-002 §3.11 states that a toolchain with no std module is refused by its target's own reason, and a configure-only run reports the refusal. - The CHANGELOG and the design record state the stack reserve and its measurement, the argument vector and the refusal order.
…its conditions; the example is the host's A toolchain with no standard library module for the target is refused by the target's own reason, as SPEC-002 §3.11 states; the example names a graph C library on the host target, the case e2e 1174 holds.
This was referenced Nov 27, 2026
This was referenced Nov 27, 2026
Closed
Closed
A build with no edit after an edit of a one-file module compiles a transitive importer (clang)
#1015
Closed
Open
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.
Release 2026.11.27.1. The design is
.agents/docs/2026-11-27-stated-closure-single-reader-and-feature-designs.md(v3; §13 records what the implementation changed and why). Fourteen defects have four causes, and six requests each land on a mechanism that already exists.The four rules
PATHof a child process;Changes
Runtime closure
DT_NEEDEDand whose search path loads another is refused (runtime-closure). The link records its inputs with--dependency-file.implicit-default-environment, floor 2027.3).Child process
PATH(#926)PATHfrom one function: the graph's stated tools, then the declared environment'sbin, then the inheritedPATH.Single readers
mcpp.libs.code_text).[feature-deps.*]path dependency, and a member inside the package directory, are published by version.mcpp addwrites the form the table uses: dotted keys unless a[dependencies.<ns>]section exists. A header that reopens a dotted table is read and reported (reopened-dotted-table), and is repaired on the next edit.libcompat_sdl3.so). A package of the default namespace is spelled by its bare name: a target named as its package keeps its library's name (libdepShared.so), and one named otherwise follows the package (libdep_depshared.so). Two libraries loaded by one name are refused (soname-collision).Refusals where known
layer-requirement), after the gate that refuses a toolchain with no std module (SPEC-002 §3.11).dlopenserves is reported, and refused when its exact exports say a host loads it by name (static-tls-image). The bound is row data:dlopen-static-tls, 512 on the glibc rows (SPEC-016 v1.10).#!interpreter that is missing is named before execution, with the toolchain the build used.Cache, paths and rebuilds
users/). An edit withdraws only that tree, on a write or on a hit.mcpp.libs.path_identityand a shrink-only check (check_path_identity.sh) hold the rule.-fprebuilt-module-pathand the graph by its relative path; a build with no edit after an edit compiled the importer of an importer. The edge that writes a BMI now declares the absolute spelling as an implicit output (SPEC-018 §1 item 6).Windows
mcpp packnests the preparation of the program, of a host tool and of that tool's build programs in one process, about 1 MiB of frames: the openkal canary measured anEXCEPTION_STACK_OVERFLOW.Features
importis read by the compiler's dependency scan with the unit's own words, on GCC and Clang. The scan starts with an argument vector, so no shell's quoting reaches it. Header units and MSVC are still refused.exportsnames must be defined; an undefined one is reported on ELF (unmatched-exact-export, floor 2027.3).mcpp add --buildwrites to[build-dependencies].mcpp removetakes--devand--build.[profile.<name>] dialect_cxxflags; SPEC-004 §9 states a profile's scope. Unknown profile keys are reported.mcpp self completion [shell]andmcpp __complete. Candidates include profiles, members, dependencies, targets, the installed toolchains and the index copies' packages, read through the home's configuration with nothing written. It creates no home, and internal commands are hidden.examples/11-features, with a test that compares the three sources.Compatibility
reopened-dotted-table,implicit-default-environmentandunmatched-exact-export, each with a floor of 2027.3 (docs/51).bmi-*commands leavemcpp emit surface.Verification
mcpp addandmcpp newwrite.node;The released 2026.11.26.1 fails 702, 653 and 1153 the same way here.
mcpp pack, reproduced with a 1 MiB stack (1,046 KiB at the deepest frame);Ecosystem
.xlings/subos/), both merged.