Skip to content

2026.11.27.1: stated closure, single readers, refusals where known, and six features - #1023

Merged
Sunrisepeak merged 17 commits into
mainfrom
fix/buildopt-switch-after-failed-build
Nov 27, 2026
Merged

Sunrisepeak merged 17 commits into
mainfrom
fix/buildopt-switch-after-failed-build

Conversation

@Sunrisepeak

@Sunrisepeak Sunrisepeak commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

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

  • Stated closure. What a build links, loads and starts is what its graph states. The union view of an environment applies to a project that declares one.
  • Single reader. One fact has one reader:
    • the code text of a source;
    • the dependency tables of a manifest;
    • the name of a dependency's library;
    • the PATH of a child process;
    • the dependency scan's command.
  • Refuse where known. A contradiction the plan or the link already holds is refused there, with a remedy and a reason token.
  • Identity apart from spelling and ownership. Paths are opened under the spelling given; physical paths only compare. An entry addressed by content is owned by the set of trees that use it.

Changes

Runtime closure

Child process PATH (#926)

  • A build program, a test and a run take their PATH from one function: the graph's stated tools, then the declared environment's bin, then the inherited PATH.
  • The run fast path replays the recorded directories.

Single readers

Refusals where known

Cache, paths and rebuilds

Windows

  • mcpp's Windows images reserve 8 MiB of stack for the main thread, as Linux and macOS give it. mcpp pack nests 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 an EXCEPTION_STACK_OVERFLOW.

Features

Compatibility

  • Three deprecations: reopened-dotted-table, implicit-default-environment and unmatched-exact-export, each with a floor of 2027.3 (docs/51).
  • No published key is renamed.
  • A dependency's shared library outside the default namespace changes its file name, as CHANGELOG states.
  • The internal bmi-* commands leave mcpp emit surface.

Verification

Ecosystem

…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.
…dd --build; the shebang note names the toolchain
… is refused at planning; profile dialect_cxxflags; unknown profile keys reported; feature descriptions in the example
…ependency scan; one construction of the scan command
…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.
@Sunrisepeak Sunrisepeak changed the title 2026.11.26.2: a build after a failed build that stated a build-optimization switch is the build before it 2026.11.27.1: stated closure, single readers, refusals where known, and six features Nov 26, 2026
@Sunrisepeak Sunrisepeak added ci:full Run the full e2e set on this pull request (read when a push starts the run) ci:canaries Run the canary matrix (canaries.yml) on this pull request labels Nov 26, 2026
@Sunrisepeak Sunrisepeak reopened this Nov 26, 2026
… 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
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