Repository navigation
2026.12.4.1: the ecosystem's boundary: toolchains named by path, library packages for other build systems, plan locks, CPS - #1033
Open
speak-agent wants to merge 35 commits into
Open
speak-agent wants to merge 35 commits into
speak-agent wants to merge 35 commits into
Conversation
…it, one writer of standard error, one line per dependency, waves A version stated through a local table and a platform reference (`ref`, `inherits`) are read as libxpkg resolves them; a form not read has no revision, `mcpp xpkg parse` refuses it, and a revision read differently from the installer's record is reported once (fetch/revision-misread). The provider's lines go through mcpp.ui, checked by check_stderr_writers.sh against a shrinking baseline. A dependency is one line under its manifest name, with no announcement before the provider downloads, `Updating` when its revision changes. The dependencies known at a step are asked of the provider in one call (batch-fetch).
…ck, the std module read without its lock Every wait for a lock goes through FileLock::acquire: reported at 300 ms, 10 s, 30 s, 60 s and each minute with the resource, the lock file, the last recorded holder and whether that process is visible here; bounded by --lock-wait, MCPP_LOCK_WAIT or [build] lock_wait (lock-wait-exceeded), which reaches the provider as XLINGS_LOCK_TIMEOUT. A file the system cannot lock is refused at once with the system's reason and a remedy (lock-unavailable). The std module entry's record is its completion marker, written by a rename and listing its parts; a complete entry is read without the lock.
…e inside another tree unless asked After the scaffold is committed, `git init` runs with the variables that point git elsewhere removed; nothing is added or committed. A project made inside a git work tree or a directory holding an mcpp.toml gets no repository unless --vcs git states it. Without git the project is made and reported (new/vcs-unavailable), or refused with vcs-unavailable when --vcs git asked.
…eep the run path mcpp derived xlings' ld wrapper appends -rpath "$XLINGS_SUBOS_LIB" to a link of a non-system loader unless XLINGS_SUBOS_LD_PATHS=0, which mcpp declares for everything it starts. Two cases state what that holds from mcpp's side, with the caller's XLINGS_SUBOS_LD_PATHS=1 and a XLINGS_SUBOS_LIB of its own: - the programs the link starts (observed through gcc's -wrapper, which sees collect2, the linker's parent) and a build program read XLINGS_SUBOS_LD_PATHS=0, and the artifact's run path equals the -Wl,-rpath entries of the link line, without the caller's directory; - every ELF object a pack bundles names only $ORIGIN directories. The declaration is the one cli.cppm makes for the invocation; no spawn dropped it, so no code changes. Without the declaration the first case fails on both observations. Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…doc sheets, usage errors with next steps, one explain registry mcpplibs.cmdline 0.2.0 with its agent-skills feature. The root help is printed from the command tree in its groups and ends with the line that points agents at --agent-skill-doc; `mcpp help <command>` is `<command> --help`; internal commands are hidden. The sheets under docs/mcpp-skills are rendered into the binary by build.mcpp and answered at every level of the tree without a project, a home or the network; a unit test parses every example by the tree. A usage error is one line and at most two help lines (the closest declared names, the --help to read), and a mcpp.usage envelope when JSON was asked for. A command run outside a project names the two next steps. mcpp explain answers E codes, MCPP_* codes and every reason token from mcpp.explain, whose titles docs/50 states; an unknown code gets the closest. Documentation of the lock waits (SPEC-011 v1.3, docs/25, docs/50) and of the new project's repository (docs/01).
… its compiles; the ABI members reach every unit; a test that would overwrite a program is refused - A project whose toolchain is a table (path, launcher, sysroot, tools) builds its build programs with that table, stated as [workspace.toolchain] of their workspace; their identity holds every field and the launcher's stamp (mcpp#1034). - A shared library whose interface reaches a unit's compile (a module of its import closure, the include directories of its public closure) is on that unit's link line after its direct dependencies (mcpp#1031). - The [target.<selector>.abi] members are one record rendered by one function into the C and C++ units of the root and of each dependency and into the link; an unstated longjmp follows exceptions = "wasm" from the row or the project (mcpp#1029). - mcpp test refuses a test program whose executable is an executable target's file with [test-output-collision], naming the test's file and an example name; names compare as the output directory's file system compares them (mcpp#1028, SPEC-017 v2.7 B1 item 8).
…with the build's words A clang driver's answers about its std module source (the module manifest, the directory of libc++.a) are taken only inside the toolchain's tree -- the directory a path-named toolchain names, or the one above a managed driver's bin/ and the one its driver resolves to -- and the target base. Identification holds a managed driver's answers to its tree; a build asks again with the words the module's precompile is given on a cross build, or when the answer it has lies outside its roots. A compiler of the host is not held, and [build] allow_host_libs takes any answer. When no answer is taken, import std is refused naming each answer not taken (mcpp#1039). One function asks a driver where a file is (ask_driver); the runtime archive question goes through it as well.
…a probe A tree's archiver is tools.ar, the tree's, or the host's on PATH (reported as build/archiver-from-host, refused under --strict; none anywhere is refused with [toolchain-has-no-archiver]); an archiver that reads @file as a member's name is given the expanded words, in batches (link-output --expand). A clang tree links with -fuse-ld=lld only when it has lld, and with --rtlib/--unwindlib only when its driver names the library, for the project's links and the build programs' (tools.ld reaches both through --ld-path). A driver that refuses a module unit builds the units that use none; a module unit is refused with [compiler-without-modules]. Each answer is kept under the program's identity (one kept-probe helper, the -dumpdir probe moved onto it). mcpp why toolchain lists each fact with its source and the std module source with its origin; mcpp why flags names why each shared image is on a link line; the layer report writes custom for the layers a tree supplies; a build program whose planning failed is named, and a toolchain refusal points at the main project's [toolchain] line. Two notes said once per project: toolchain/tree-holds-two-families and xlings/package-at-two-versions. Root checks: path identity through mcpp.libs.path_identity, the stderr-writer baseline lowered, a docs table header, the agents index regenerated.
… and its index entry mcpp pack writes mcpp-package.json for a library as for a program (kind library, the tree a path-named toolchain built it with, per shared leg the run-time lower bounds), and per leg a pkg-config description lib/<triple>/pkgconfig/<identity>.pc from the package's own link intent (prefix relative to the file, the -l words of its ldflags as Libs.private, mcpp_abi). mcpp emit xpkg --package writes a library package's index entry: address and digest from the archive, the systems and architectures its legs cover, deps from the lower bounds, mcpp = "mcpp.toml", and the .pc relocated and declared into the environment's pkg-config view by xim.pkgindex.sysroot when the index has it. It refuses, naming the user's file, an archive mcpp pack did not write ([not-a-package-of-mcpp-pack]), a library package without the description ([package-without-description]), a library package's directory ([emit-inside-a-package]) and a package built with a toolchain named by path ([package-built-outside-the-ecosystem]). Notes: pack/no-header-interface, pack/closure-not-in-package, pack/built-with-a-tree, emit/two-legs-for-one-system. The program and library entries share one install(). The lower bounds are measured in mcpp.pack: importing mcpp.runtime.elf and mcpp.toolchain.base into mcpp.pack.library made GCC 16.1 crash at the first import of mcpp.cli.
…by its own lock A command's selection of workspace members is a plan with its own directory, plans/<16 hex digits>/ of the configuration's, named by the members as a set: its graph, ninja's state (build.ninja, .ninja_log, .ninja_deps), the schedule, the placements, the records and the runs, under the plan's lock (.mcpp-plan.lock). The configuration's directory is held shared by plans and alone by what changes it as a whole (SPEC-011 §2 items 7 to 10, design 2026-11-27 §3.7.1, D12). A unit two plans reach is compiled by the first and placed for the other by the unit cache, under a lock beside its output; response files are named per plan; an artifact two plans link is written under a temporary name of its own and renamed, and on a POSIX host an archive is written whole and renamed as a link is. The holding needs relocatable compiler outputs and the unit cache; under --cache off, bmi_schedule = "on", a graph that runs actions, or the build optimization plan-locks turned off ([build] plan_locks = "configuration", MCPP_PLAN_LOCKS), the configuration is held alone as before. mcpp why toolchain states the holding and its reason; a wait names the plan's members. batch-fetch is listed as a build optimization. result.json holds the record of the command that wrote it last, each command's own record is in its plan's directory, which .last-result.json names. The command-line length limit is the host's, stated in each system's native file. The design record (v10) also carries the CPS sub-design (§3.12, D22 to D24): mcpp's model is the centre, CPS a compatibility at two boundaries.
Sunrisepeak
force-pushed
the
eco/c1-ld-wrapper
branch
from
December 4, 2026 19:20
7e28063 to
f18619e
Compare
…cing them by time A test waits for an event, never for a time (design 2026-11-20 §5.20): the fake installer's frames arrive at once, and what the case asserts is the screen they leave.
…ild program declares an installed package by its description mcpp's model is unchanged (design 2026-11-27 §3.12, D22 to D24): CPS (Common Package Specification 0.15.0) is a compatibility at two boundaries, and its code is one module package, modules/cps (mcpp.cps: the model, reading with the supplemental files, writing, versions, the words; mcpp.cps.usage: the search, the platform match, the closure of components), with one implementation unit at each use site. Out: mcpp pack writes, beside each leg's .pc, lib/<triple>/cps/<identity>/<identity>.cps from the same facts: one component named after the package (archive, or dylib with the import library as link_location on PE), @Prefix@/include, the -l words as link_libraries, the dependencies as requirements on their components (a private one of a static library as link_requires), the leg's platform and x_mcpp_abi. Each leg has its own directory, because CMake 4.5 does not compare `platform` (measured; read in its sources). [pack] descriptions (default ["pkg-config", "cps"]) selects the descriptions written. The index entry of mcpp emit xpkg --package calls the index's relocate_cps and declare_cps beside the pkg-config pair. In: mcpp::cps_package (protocol 22, mcpp:cps-package=) declares a package another build system installed. After the program runs and before anything is checked, applied or recorded, the engine finds <name>.cps in the prefixes where CMake looks, matches the platform and the version, closes the components over requires, link_requires and compile_requires under the configuration the profile prefers, and accepts what they state as include-dir, cflag, cxxflag, link-flag, runtime-search-dir and rerun-if-changed lines; the record holds those. Refusals cps-no-matching-package, cps-components-unstated, cps-component-not-found, cps-description-invalid; notes cps/modules-not-imported, cps/component-not-linked. Both adapters are implementation units: importing the format's modules into the interface of mcpp.build.build_program made GCC 16.1 crash at src/main.cpp's `import mcpp.cli`. Docs: docs/14 (both languages), docs/10, 12, 30, 50, 03; SPEC-007 v0.17 (R2.5, protocol 22), SPEC-014 v2.9 (§2.2 descriptions, §8.1); examples 14-cps and 05-lib-distribution/cmake-consumer.
The plan-locks change gave RunScope::begin the plan's state directory and the scheduler semaphore a ninja variable of the plan, and joined batch_fetch, plan_locks and lock_wait to the grouping key where they are stated; the unit tests named the earlier forms. The explain registry's titles of the four CPS reason tokens now equal docs/50's rows, as the unit test of the two requires.
… ran on every host A dependency of the project's own index installs into the project's environment, and the wave left it out: a project whose dependencies all come from its own index fetched them one call at a time, which the e2e case of two such dependencies states otherwise. Each environment now gets a wave of its own, the project's through the same environment the single path uses. SPEC-019 keeps a shape off until it has run on every host; the registry test names plan-locks, on by default since the CI of this release runs it on each host.
…ties as dotted keys The root sheet states the architecture, the command a task needs, the project conventions (a module in one .cppm with a private fragment; dependencies as full identities in name order; mcpp-index's module libraries first), how a message reads, and what to do when mcpp itself is wrong: analyse, reduce, work around, report with the user's consent and, when the cause is located, a fix, then print the address for review. Every command sheet ends with the commands related to it, each a visible command, which a unit test checks; the build sheet states build programs and the official plugins. mcpp info <package> shows one package of the indices: its versions and the systems each serves, license, repository, features, what the project states and locks of it, and the mcpp add line (mcpp.info envelope with --format json). mcpp add writes a dependency's full identity as a dotted key in name order, the default namespace's packages as well, and replaces a bare key of the same package; a [dependencies.<ns>] table keeps its form. The hints of the bare-name fallback, of a declared identity and of a build program's missing import, the guide's examples and the examples' manifests use that spelling; an entry of [build-dependencies] that lists neither tools nor artifacts omits host-module, which restates the default there. The golden files carry this release's surface; the commands the help hides are not items of it.
…cture, not from a crash A GCC 16.1 crash once seen with the format's modules imported into the build program's interface coincided with crashes on unrelated files and compiler processes hung in the kernel on the same machine; it is not attributable to that form and is not recorded as an upstream defect. The adapter stays an implementation unit for what that gives: the format is in no importer's BMI.
…s directories (mcpp#1032) openkal-windows 0.23.2, which mcpplibs.os 0.4.8 resolves to, names the image's directory and the working directory by the preopen mcpplibs.os located them under, so the compiler under a substituted drive is started as Z:\... rather than by its physical path.
"\x1fexport-module" is one hex escape, \x1fe, out of the range of a char: clang refuses it, and GCC only warns, so the tree built with GCC and failed on every host whose build uses clang (macOS, Windows, linux-aarch64).
…d module case takes the entry its build used test-output-collision looked for the built program as `^app$`; on Windows it is app.exe. bmi-machine/1039 removed the std module entry whose record was newest, but the shared home holds one entry per toolchain and a record's time is set at most once in 12 hours (mark_used), so on Windows it removed another toolchain's entry, which no build then rebuilt. The case now takes the entry the build's uses.list names, and states that both projects use it.
… takes it alone in place of its hold mcpp pack holds the directory shared for the selection it built (plan locks), then plans its dispatch pass, whose graph runs actions, alone. flock and LockFileEx lock per open file, so the second open waited for the first without end (mcpp pack -p <member> --pkg-format <format>, the e2e pack/members cases). dirlock::acquire lets the shared hold go and takes the directory alone in its place; every holder in the process holds it alone from then on. SPEC-011 §2 item 11 states it (v1.5).
…ry plan, and written whole Its object is below the configuration's directory while each plan keeps a ninja log of its own, so a plan that had not built it built it again (macOS: -p cli after --workspace compiled obj/mcpp_ios_init.o). The rule is a generator edge, which takes an object newer than its source as built, and it writes a name of its own process and renames it, so two plans that build it at once leave a whole file.
…r the index lists and wherever the archive was packed A selection's plan has a build.ninja of its own (plans/<key>/), so routes/120, conditional/895 and the workspace cases count configuration directories (s::configuration_dirs, or a plan read as its configuration's, whose ninja log reading already includes the plan's). surface/1127 reads the shape of mcpp info's versions line rather than the versions the index lists, and the pack library case the platform table of the host the archive was packed on.
…ch-O program is the same file whichever command linked it A Mach-O linker writes the output's file name into the program as its signature's identifier; ld64.lld writes '.cli.123' and '.cli.456' into two different files and 'a/cli' and 'b/cli' into identical ones. The temporary name '.<stem>.<pid><extension>' therefore made every relink of an unchanged program differ, and a pack of one member differed from the pack of several on macOS. mcpp link-output --temporary now links '<dir>/.mcpp-link-<pid>/<file>', renames the file over the artifact and removes the directory. Case 938 states that a relink of unchanged objects writes the same bytes and leaves no directory behind. SPEC-011 section 3, docs/07 and the CHANGELOG state the form.
A selection's plan has a ninja log of its own, and a unit another selection built is placed there by the unit cache, so an entry in a plan's log is no longer a compile. The workspace test and build cases and the pack of several members read MCPP_BUILD_RECORD, as the graph case does; the conditional case counts configurations, not graphs. The pack cases name the first file that differs between two trees.
…anned build does The fast path took the build directory's and the plan's locks before any manifest was read by the planner, so the project's tier of the wait limit was never stated and a replay waited for a holder without end. The manifest the replay reads gives the limit of the build's root, the workspace's in a workspace, and it is stated before the locks are taken (SPEC-011 §2.1 item 3).
…n, without its namespace An entry is held as the environment file carries it, the version qualified by its namespace (`xim:16.1.0`), so `"xim:gcc" = "16.1.0"` beside gcc@16.1.0 was said to name a second version, and the note printed `gcc = "xim:15.1.0"`. The version is compared without the namespace, an entry of another namespace names another package, and the note writes the key and the version as written.
The full gate's surface ledger named nine items no passing case used: --lock-wait and [build] lock_wait, plan_locks and batch_fetch as manifest keys, the refusals lock-unavailable, package-without-description and toolchain-has-no-archiver, and the notes of a tree that holds two families and of a package named at two versions. Each is now a criterion of the case of its feature.
…g line on a terminal (mcpp#1042) The fetch-waves case writes a line of the provider to standard error before its first progress frame, while only the Planning line of the live region is drawn, as the report of mcpp#1042 shows on 2026.11.22.1. The screen the bytes leave holds no Planning line, no bar and each provider line at most once.
…or a hang 992 packs one file for every system and compiles the openkal stack once per leg. On the Linux runners it took 465 s to 885 s and once passed 900 s; 2026.11.22.1 and 2026.12.4.1 take the same wall clock for its pack on one machine, so the time is the case's work. The case states 25 minutes in tests/e2e/mtest.toml, which mtest applies before the run's --timeout; the suite returns to run_all.sh's 600 s, and the step's limit is above the case's.
…orkspace, as every configuration key is Under a workspace root without [package], the root's [build] lock_wait was read while the same table was reported as acting on no package, and a member's own limit was not read; cache, jobs, batch_fetch and plan_locks were already the selected member's (SPEC-004 §9 item 10). Prepare states the limit after the selection and before the first lock, naming the member's manifest when the value is no duration, and a replay takes the member's. SPEC-011 §2.1 item 3, docs/25 and the CHANGELOG state it; e2e 1179 holds it (criterion H).
…th the provider's reason, and what a hook says is a note The index's snapshots from 3618c31f require xlings 2026.12.5.1; an earlier client stays on the snapshot before them. The handshake requires step_outcomes and hook_notices (protocol 1.20). A package the provider refuses on this machine fails with E_UNSUPPORTED and the provider's hint and is not retried, where 1.19's E_INVALID_INPUT drew the advice for a damaged archive and a retry. The install_notices a package's hooks produce are stated after the install as notes, at most eight lines a package, through the one writer (xlings#721). The SubOS ld wrapper the index's binutils carries honours the XLINGS_SUBOS_LD_PATHS=0 mcpp states (xlings#540); the comments state it. Every CI pin follows (check_version_pins.sh); docs/25 and the CHANGELOG state the provider; the fake providers of the e2e cases offer the two features, and e2e 1180 holds the note.
The comments are shortened to the reason and the measurement or reference each stands on; the comment of the unit tests' code page moves above [test], which it describes. No key or value changes.
…rites From 2026.12.5.1 an install keeps its recipe as an index of that one recipe, .xpkg/pkgs/<dir>/<name>.lua beside the libs it imports (xlings derived-state §4.1); an earlier client kept .xpkg.lua. mcpp read only the latter, so a gcc the pinned provider installed declared no kernel headers or binutils, and a build whose store held no index refused with [target-base] (e2e deps/58 and local/52 under the new provider). Both layouts are read; the unit case of the declared companion holds the new one.
…network advice (§3.13, D28 to D31) The check is one line of reachable endpoints; the mirror is decided once, from the time zone and the region, then checked against reachability, and written as CN or GLOBAL; network trouble is advised in five places without stopping the run, naming the command and the current mirror. The region and the time zone are read by mcpplibs.os.
This branch has not been deployed
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.
The mcpp release 2026.12.4.1, one pull request for the ecosystem-boundary design (
.agents/docs/2026-11-27-ecosystem-boundary-design.md, v11). Commits are added here as each part lands; the list below states what is in and what is still to come.In this pull request
batch-fetch)--lock-wait,MCPP_LOCK_WAIT), held told from cannot-lock, a complete entry read without its lockmcpp newmakes a git repository;--vcsand[new] vcsoverride itXLINGS_SUBOS_LD_PATHSkeep the run path mcpp derived (e2e)--agent-skill-doc, usage errors with a next step, onemcpp explainregistrymcpp-package.json, a.pcper leg, and its index entry (mcpp emit xpkg --package)plan-locks).cpsper leg;mcpp::cps_packagereads an installed package into existing directives (protocol 22);modules/cps/; docs/14mcpp info <package>;mcpp addwrites full identities as dotted keys in name order; hints, docs and examples in that spelling;host-module = trueomitted where it restates the default; the golden filesTo come in this pull request
mcpplibs.cmdline0.2.0 in the index (Every listed version installs; versions every platform shares are written once mcpplibs/mcpp-index#979), on which the build depends: until it merges, this pull request's builds stop atthe package index has no mcpplibs.cmdline@0.2.0.Related changes in other repositories
[build-dependencies]and omitshost-module = truewhere it restates the default.relocate_cpsanddeclare_cpsinxim.pkgindex.sysroot, which the entriesmcpp emit xpkgwrites call when the index has them.