Skip to content

0.0.21: mwrap modules, the payload manifest (S6), one cache context per engine - #79

Merged
Sunrisepeak merged 43 commits into
mainfrom
mcppls-0.0.21
Nov 9, 2026
Merged

Sunrisepeak merged 43 commits into
mainfrom
mcppls-0.0.21

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Owner

mcppls 0.0.21 (mcpp-community/mcpp#885, design 2026-11-07 §4.5 item 2, §4.6.2, D10, D13, D14, A4).

Changes

  • mwrap modules. The server and modules/pack import mcpplibs.mwrap.xxhash and mcpplibs.mwrap.libarchive instead of including the C headers; ARCHIVE_*/AE_* come from the wrapper's macros. No #include remains in src/ and modules/*/src/. The root's [toolchain], [profile.release] and [xlings.workspace] are [workspace.*] tables, which ends mcpp's workspace-position deprecation warnings, and the two [workspace.dependencies] tables are one.
  • S6, the payload manifest (docs/specs/s6-payload.md, schema, examples taken from the published 0.0.19 and 0.0.20 payloads): payload versions 4 and 5 and the rule by which a client starts the server: the host's entry and <runner> <server.path>; refusing a payload that does not serve the host, naming the host and the platforms it does serve; refusing an unknown version. validate.py checks it; all 22 rules have evidence. The VS Code reader takes a version 4 engine from engines.clangd, as S6 states.
  • One cache context per engine (D14). clangd keeps its index shards beside the database mcppls writes. The context is now clangd-<version>-<platform>-<digest> (or external-<version>), and starting an engine retires the contexts other engines left. Q20: the 0.0.20 image read shards that an engine with zlib had written and discarded every one.

Verification (local, Linux x86_64)

  • mcpp build --workspace; mcppls-pack tests 8/8; test_instance; test_server: the new context test passes. The one failure, "unrelated directories are not granted", also fails on unchanged main when the checkout is under /tmp, because its fixture directory lies beneath a granted temporary directory.
  • docs/specs/tools/validate.py: 0 failures (362 rules, S6 22).
  • VS Code unit tests: 144 passing, including a new test over the S6 examples.

Still to do in this PR

Sunrisepeak and others added 30 commits November 7, 2026 10:25
…d tables under [workspace]

modules/pack and the server import mcpplibs.mwrap.libarchive and
mcpplibs.mwrap.xxhash instead of including the C headers; ARCHIVE_* and AE_*
come from its macros. The root's [toolchain], [profile.release] and
[xlings.workspace] are [workspace.*] tables, as mcpp 2026.10.10.1 states them,
and the one [workspace.dependencies] table holds every shared version.

Co-authored-by: speak-agent <[email protected]>
docs/specs/s6-payload.md states payload.json and the rule by which a client
starts the server: the host's entry, <runner> <server.path>, and a refusal that
names the host and the platforms a payload serves. The schema and the examples
(the published 0.0.19 and 0.0.20 manifests) are validated with the other
specifications; every rule has evidence. The VS Code reader takes a version 4
engine from engines.clangd, as S6 states it.

Co-authored-by: speak-agent <[email protected]>
clangd keeps its index shards beside the database mcppls writes for it. With one
context for every engine, the 0.0.20 image read the shards an engine with zlib
had written and discarded each ("Compressed string table, but zlib is
unavailable"). The context is now clangd-<version>-<platform>-<digest> (or
external-<version>), and the contexts of other engines are retired into the
trash when an engine starts. The bundle and the conformance driver read the
newest context's database.

Co-authored-by: speak-agent <[email protected]>
The workspace's platform is openkal-platform@^0.24, its newest patch this mcpp
admits, kept in mcpp.lock (0.24.2, whose C++ run-time keeps the volume of a
normalized name); os is the compatible range ^0.3.1. Both need mcpp
2026.11.7.1.

Co-authored-by: speak-agent <[email protected]>
…age part

Every distributed file holds ok images. CI builds each platform's test tools
and runs the native server's unit tests on linux-x64; a manual run with
`native` runs them on every platform. An engine candidate is clangd-openkal.

Co-authored-by: speak-agent <[email protected]>
The distributed server is the okb; its unit tests are built once as ok
images (mcpp test --target openkal --no-run --archive) and run on the four
systems through the runner. Tests that start copies of themselves start
this program as the system names it (self_command), an ok image through its
loader.

Co-authored-by: speak-agent <[email protected]>
The payload is built over one version group (design 2026-11-07, D20), whose
okrun reserves a thread's stack for an image's main thread on Windows.

Co-authored-by: speak-agent <[email protected]>
An exclude on an include-only matrix left no build job at all. The release
rows are the base and build every platform's test tools; the dev rows join with
`native`, Linux x64's always. A test row of another system does nothing
without `native`.

Co-authored-by: speak-agent <[email protected]>
…editor's closing quote once (#80)

Co-authored-by: speak-agent <[email protected]>
…plibs.os 0.3 cannot answer

Co-authored-by: speak-agent <[email protected]>
…nent's own; a plugin of another series is refused, naming both

0.0.21 is released as 0.21.0. devtools gains --series, --bump and --print --component; a plugin states
its version in initializationOptions.plugin and the server refuses one of another series; VS Code and
CLion check the server they start, Zed sends its version.

Co-authored-by: speak-agent <[email protected]>
…s its assets at its own version

Co-authored-by: speak-agent <[email protected]>
….Z), each package named with its own version

Co-authored-by: speak-agent <[email protected]>
…in's are tested over the payload main built for the same server

.github/components.tsv names the components by path; changes.sh classifies a change and names the
server's inputs (digest). Main lends its payload, stage and kits through a server-digest marker; a
pull request that changes only a plugin downloads them from that run. One aggregate check, ci.

Co-authored-by: speak-agent <[email protected]>
…y other is tested over, @Flag a pull request's narrower question

Co-authored-by: speak-agent <[email protected]>
openkal-image 0.5.3 enters an image in its convention's floating-point
state (openkal SPEC 12.2): on Windows a thread began with the x87 at
double precision, under which the image's C library read a decimal
number otherwise.

Co-authored-by: speak-agent <[email protected]>
… the process ends finds it whole

Co-authored-by: speak-agent <[email protected]>
…ild does

os::on<P> asks a platform's question where the build can run on it and
runs there now, so the ok image checks the cache's Dev Drive on Windows
and PRoot on Linux; the notes that the image could not are gone.

Co-authored-by: speak-agent <[email protected]>
…in while its popup lacks the module

Co-authored-by: speak-agent <[email protected]>
…ates a time holds serial:perf; a second attempt runs what failed

Co-authored-by: speak-agent <[email protected]>
…ct that states where it runs, what it holds and the client it is; the tests are written with mtest 0.3.0

The fixtures, their traceability and the cases are under tests/cts, the unit tests under tests/unit,
and mcppls-testing is gone: every package's tests use mcpplibs.mtest. A row of the conformance job runs
its platform's cases by mtest, two at a time and divided by the times main's last run measured; a
failing case runs once more with the server's log. A fixture that needs CMake 4.4 states it.

Co-authored-by: speak-agent <[email protected]>
…fest; the lock takes mtest 0.3.0

Co-authored-by: speak-agent <[email protected]>
… selects, wherever Visual Studio is installed (#81)

Co-authored-by: speak-agent <[email protected]>
Sunrisepeak and others added 9 commits November 8, 2026 21:19
…ance unit test finds the runner of an archived test

Co-authored-by: speak-agent <[email protected]>
…rements are cases with bounded metrics

tests/ holds the tests by kind: unit/ (UTest objects; a file that starts copies of
itself writes main and ends it with run(argc, argv)), cts/ (mcppls-cts, the fixtures by
topic over the suite type Fixture, with the variants @warm and @linked), bench/
(mcppls-bench: startup, tokens, review, tasks, agent runs and the user-experience
scenarios, their metrics bounded with at_most/at_least) and harness/ (how the cases drive
the server, and the benchmark's tasks, patches, reviews and agent runs with their tests).
mcppls-devtools bench, measure summary, the runner's --navigation-budget and
timing_evidence.py are gone; CI's bench, ux, release performance and nightly timing jobs
run the cases with mtest and show each metric beside main's history. mtest 0.4.1; mcpp
2026.11.8.1, built from its release branch until it is released.

Co-authored-by: speak-agent <[email protected]>
…job and over every job; mcpp under review 2026.11.9.1

- The server's unit tests are one program, tests/unit (begun at
  test_conformance.cpp, the stand-in server the runner starts), run as a
  process per file of its cases; a test that starts copies of itself declares
  an mtest child. The two that run again with a cache of their own are
  tests/isolated/answer-routing and tests/isolated/save-plan. devtools' and
  the harness's tests are one program each (tests/unit).
- mtest 0.5.2 (library, manifest and the engine CI runs), mcpplibs.os 0.4.1.
- Each test job takes mcpp test's runs (target/mtest) into mtest's store and
  writes their Markdown report into its summary; `unit tests (report)` reports
  every job's runs together (mtest ci report).
- CI builds the mcpp under review, release/2026.11.9.1; the old-pinned-mcpp
  fixture leaves it off PATH, so the project's pin is what xlings starts.
- The traceability validator and the archive test read the moved files.

Co-authored-by: speak-agent <[email protected]>
…ies it); a job without xlings gets the pinned one

Co-authored-by: speak-agent <[email protected]>
…nd the mtest engine

A job's cached xlings index can predate a published version, and xlings keeps
it when its anonymous refresh fails (GitHub's 2026-11-09 incident). The release
taken last is checked: mcpp's install.sh (GitHub, then GitCode, sha256), the
Windows zip and the mtest bundle by the web address, else the API's; the
bundle against MTEST_SHA256.

Co-authored-by: speak-agent <[email protected]>
Sunrisepeak and others added 4 commits November 9, 2026 20:44
…ted identity

MCPP_SOURCE_REF is cleared: CI installs mcpp 2026.11.9.1. The workspace
requires it (a Mach-O image links its C library first), and the build job
finds a target's programs under the identity its request selects.

Co-authored-by: speak-agent <[email protected]>
… says why; one conformance row per platform

A ux scenario's four sessions run in one process, past mtest's default of five
minutes: each case states its timeout. The harness names why the runner did
not start (the spawn's error). mtest's --shard divides programs and the cases
are one program, so the second part of Linux and Windows was given nothing:
each platform is one row. A second attempt runs the failed cases with
`run --failed`, which takes the run's options.

Co-authored-by: speak-agent <[email protected]>
…ng of its name

On Windows the test program's name is a Windows name, which the standard
library over openkal reads by POSIX's rules as one component: its parent was
empty, mcppls-conformance was looked for on PATH and did not start, and the
review bench lost its mock model. harness::beside_self reads the directory
with os::fs::generic.

Co-authored-by: speak-agent <[email protected]>
On Windows the shim runs the package's alias through cmd, which read the
`&` of `--tag "on:win32-x64&release"` as a second command: the
performance check ran no program.

Co-authored-by: speak-agent <[email protected]>
@Sunrisepeak
Sunrisepeak merged commit ab4b3dc into main Nov 9, 2026
78 of 82 checks passed
Sunrisepeak added a commit that referenced this pull request Nov 9, 2026
The cold phase now ends after two rounds, about eight completions, so a
single completion that clangd, busy building the closure, does not answer
within the server's 1 s budget puts the share at 0.875. The runner measured
0.88 on #79 and on the 0.21.0 release run; the budget is 0.85.

Co-authored-by: speak-agent <[email protected]>
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