Skip to content

0.0.20: one package for every system, the semantic kit of a project's target - #75

Merged
Sunrisepeak merged 83 commits into
mainfrom
mcppls-0.0.20
Nov 6, 2026
Merged

Sunrisepeak merged 83 commits into
mainfrom
mcppls-0.0.20

Conversation

@Sunrisepeak

@Sunrisepeak Sunrisepeak commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Release 0.0.20 supplies one universal payload and editor package, target-specific semantic kits, and OpenKal resource preferences, directory grants, confinement and fault reporting. Manifest version 5 selects the host runner and engine. The current source uses public mcpp 2026.11.5.1, OS 0.3.0 and platform 0.24.0; its workspace lock preserves all six targets and the original package scope. The final payload lock now names the published mcppls-clangd 0.0.20 archive (23.1.0-mcppls.9); its 50,278,153 bytes and SHA256 were verified from two independent downloads against the release checksum. The candidate marker is removed.

Request handling now preserves independent requests during a typing pause. Each request retains its parameters, order and deadline; only actual cancellation removes its ID. Close, timeout and shutdown complete callbacks. Ending a pause owns the URI before erasing its map entry, fixing the reproduced dangling-reference failure.

Other release changes:

  • Stable CLion 2026.1.5.2 and 2026.2.4.1 run the actual packaged ZIP alongside Plugin Verifier and the existing 2026.2.3 headless suite. Scenarios cover diagnostics, a C++ error, marked module completion/insertion, Ctrl+B navigation, project-close cleanup and default CMake ownership. Highlighting changes use explicit NON_MODAL scheduling. Only public assertion reports are uploaded.
  • An early current-server regression uses the current Linux native server and byte-identical published engine/kit, independently of candidate admission. Final payload checks still require every engine producer, exact run/head identity, fresh artifacts and immutable digests; failed or cancelled producers refuse admission.
  • Confined startup includes the loader directory in immutable inputs and waits for the asynchronous plan or explicit no-plan fallback. Grant changes retain required restarts; OS errors are preserved and only not_supported is retried.
  • Zed engine observations verify installed manifests, exact commands and direct live server parents. Windows archive handling streams within bounds, deduplicates identical common payloads and retries only sharing/lock violations within the existing deadline.
  • JetBrains/Open VSX publishing uses the configured credentials.

Performance qualification is tracked in issue #77, including mcppls/clangd OKE/OKB identities, cold/warm measurements, controlled experiments, rejected candidates and follow-up directions. The approved exception was not applied: qualifying product CI measured 1.109 against the original 1.15 target. Its documented eligibility limit applies only to mcppls-clangd 0.0.20 Linux x64 cold readiness CPU: at most 1.25 times native and at most 3.0 additional CPU seconds, using corrected measurement version 3 and the unchanged workload. Strict-target failure remains visible separately from release admission. All other time, CPU, fault, semantic, resource, cancellation, crash and UX gates retain their thresholds. The next engine version returns to the strict policy. CHANGELOG and both release manuals record this boundary.

Validation and remaining gates:

  • Request-lifecycle controls pass 71 cases/756 assertions and the real typing-pause protocol fixture, preserving all 21 keys, original latency limits and nine concurrent requests with actual cancellation.
  • Both stable SDKs previously passed all 30 current-server GUI checks with the published engine/kit and Strict IDE error checking. Frozen joint mcpp UX controls passed 25 checks per lane. An earlier xlings image-edit run exhausted disk space and remains unqualified; shared-host diagnostic timings are not final producer qualification.
  • Candidate source e3a83b641e482de8cb63db43ad12f2932e621244 passed all 88 checks in CI 42161567296, including candidate admission, payload assembly, platform/editor conformance, real-project performance, stability and the release-candidate gate.
  • mcppls-clangd v0.0.20 and release CI 42184754286 are published and green on all four platforms. Both independent downloads of the universal archive matched the published SHA256 1b971298c0674025298a1f0658c4d6e4498f0cd0a2686a2757fdeca25ef9b748. Local version --check and check platforms pass after switching the compiled constant, lock, changelog and English/Chinese release manuals to these exact bytes.
  • Current head 2b0622ea runs final CI 42202280734 without a candidate override. Full released-byte gates, independent ecosystem review, merge, release, index publication and ordinary GLOBAL/CN installation remain.

Tracks mcpp #885.

Sunrisepeak and others added 30 commits October 30, 2026 06:23
payload.json version 5 holds an entry per platform (its runner, its engine and the engine's integrity files);
the server takes its own platform's entry and refuses a payload that has none, naming the platforms it
carries. Kits are chosen per project target (S4 kit-version 2, `targets`): the target's own kit when
installed, else the host's, else the openkal kit of the host's architecture, which the payload carries;
a stand-in names the published kit that would serve the target (`kit-missing`, `askInstall`) and
`mcppls.installKit` installs it with xlings in the background (`kitInstall`).

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…t kits

mcppls-devtools payload assembles payload version 5: the server's okb, the runner of every system from the
tree `mcpp pack --target openkal --mode self-contained --systems all` writes (refused when its runs_on.self
leaves a platform out), every platform's clangd under clangd/<platform>/ with its identity, and the openkal
kit. The openkal kit (mcppls.pack.openkal, `kit --openkal`) is made from mcpp's build database of each
openkal target: the platform's system include directories, shared or per target, the std and std.compat
sources and a module manifest, kit-version 2 with `targets`; its libc++ version is the one its headers'
__config states (S4-4-5). The target kits stay per platform (`kit --platform`, `--archive`) and are
published as mcppls-kit-<target>-<version>.tar.gz. The release manifest declares one VSIX, one payload, one
CLion plugin and the kits; release xlings renders the server's one asset per system from runs_on and a
descriptor per kit. check platforms holds the new CI jobs to the lock.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
… target, asked and installed

The VS Code extension and the CLion plugin carry the one payload and start the runner and engine of the
platform they run on (payload.json's entry for it), refusing a payload without one, with the platforms it
carries; the VSIX has no target platform, the CLion plugin no per-system variants. Both ask once per kit
whether to install the semantic kit of the project's target when the server reads with the openkal kit
meanwhile (kit-missing, askInstall): Install, Always Install Kits, Copy Command, Don't Ask Again; the server
installs it in the background (mcppls.installKit) and the result is told once (kitInstall). Neovim and Zed
start the runner of their system and architecture.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…s target's kit is not installed

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…X, the kits

The build job builds every platform's programs and unit tests on Linux and archives the tests
(`mcpp test --no-run --archive`); the test job runs them on each platform's own system (`mcpp test
--archive`), in both profiles. The server job packs the openkal set as one tree with the runner of every
system and the okb (`--target openkal --mode self-contained --systems all --pkg-format zip,okb`) and the
single files; the kits job makes each platform's target kit; the payload job assembles the one payload with
the openkal kit; one VSIX is packaged and every editor job installs it. The suites install their platform's
target kit as a person who agreed to it has it. A branch of mcpp under review (MCPP_SOURCE_REF, versions.env,
or a dispatch's mcpp_ref) is built by the latest released mcpp once per commit and system.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
S4 kit version 2 (`targets`), the revised S4-4-5 and the kit of a target (S4 5.1); S3's `kit-missing`,
`askInstall`, `mcppls.installKit` and `kitInstall`. The install, editors, architecture, release and devtools
documents (English and zh-CN), packaging/README.md with the measured payload, and the editors' READMEs follow
the one payload, the openkal kit and the target kits.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…tests archived under 4 GiB

The server looks for the kit of its target every 30 s while it is missing, so a kit the editor, a
person or another window installed is read without a restart. The CLion plugin runs the issue's
`xlings install` itself: the LSP API's requests differ between CLion 2026.1 and 2026.2 (the verifier
found `LspClient` unresolved on 2026.1). CI archives the server's tests by their first letter, since
mcpp writes an archive as one gzip stream of at most 4 GiB.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…in their own group

mcpp 2026.10.30.1 cannot start the macOS tests it unpacks from a Linux-written archive
(EIO, run 40964600266); the darwin rows build and run natively and keep the archive's
run as evidence. The released mcpp that builds the source ref is pinned (2026.10.29.1),
so `xlings use` finds it. The kit question is its own notification group.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…; pack's fixture hashes one real clangd

A check retired by an engine capability looked for engines.clangd.identity at the top of
payload.json, where version 5 has none: it now takes this platform's entry, as the server
does. The payload test wrote and hashed the test program as every platform's clangd; a dev
build on Windows ran past the time limit, so only the host's engine is runnable bytes.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…pieces, so a member over 4 GiB is one member

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
… no loader variable where macOS has none (mcpp e2e 989)

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…the released mcpp; the openkal kit 0.18.0

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…tions, without starting an engine (S3 section 8); a tool runs for the root it starts in (S2-6-8)

A running server states its last cxxModules/status beside its instance.json, for
every client (a client that does not understand the notification is not sent
it), and removes it when it releases the workspace. mcppls status reads the
instances still alive and adds what is known without a server: version,
platform, payload, capabilities, the kit and the command that installs a missing
one, and mcppls's actions under each editor's own id. CLion gains the Restart
and Reset Workspace Cache actions those ids name.

toolrun no longer passes XLINGS_PROJECT_DIR: an editor started from another
project's terminal inherits it, and a root without a pin ran that project's
pinned mcpp.

mcpp design 2026-10-30 part 2 §4.6, §5.2.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…stall checks in a spaced non-ASCII directory, and what Windows and macOS may ask

payload::verify refuses a path that, under the deepest directory the payload is
installed in (a CLion plugin's, budget 110 characters), would pass 260 (D3); the
release checks install in "editors with spaces/编辑器" and read mcppls status
from the installed payload (D5); docs/00-install.md states SmartScreen and
antivirus and the unsigned runner (D4), the quarantine mark and its removal
(D6), and an update while a server runs (D8). mcpp design 2026-10-30 part 2 §10.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…tallKit while the kit is missing, and the kit in use beside the kit's state (S3-8-7)

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…here the status is now sent; CLion's cache reset finds sendRequestSync on the server's class, which 2026.1 and 2026.2 both have

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
… starts: the lock's row selects it, the payload carries it once, its identity names openkal (S4-4-12)

The server starts it, its version probe and mcppls check through the runner the
entry names under engines.clangd.runner, and verifies its identity as a native
engine's. Assembly takes the image's part as it is (not marked, not run), copies
it once for every platform whose row names mcppls-clangd-openkal, refuses two
different images, and asks the host's engine its version through the host's
runner; verify checks the runner and the image's place. payload --clangd
openkal=DIR replaces the lock's image; CI's candidate engine includes it.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…s included), mcpplibs.os 0.2.4; the openkal kit 0.19.0

openkal 0.18's version group: its okrun maps the image it runs (clangd.okb's
memory, part 2 §25.3). mcpp 2026.10.31.2 builds the tree's Windows launcher over
a platform other than its own openkal rows'.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…the deployment target stays macOS 12.0 (mcpp.toml)

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…ran once the image is loaded (openkal-image 0.1.6, openkal-musl 0.23.1, openkal-llvm-runtime 0.16.11)

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
… an image on ARMv8's SHA-256 instructions (openkal-image 0.1.7, openkal-musl 0.23.2, openkal-llvm-runtime 0.16.12)

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…clangd.okb on every system, as the release's acceptance selects

mcppls-clangd 0.0.18's release measured clangd.okb against the native clangd on
the four systems and accepted it on each (openkal-acceptance.json; parse time
net of the process's start, five runs): Linux x64 1.02x / 1.09x, Linux arm64
0.96x / 1.02x, macOS arm64 1.05x / 0.97x, Windows x64 0.72x / 0.72x, resident
memory +7 to +53 MiB against the image's 68-71 MiB. Every row of the lock now
names mcppls-clangd-openkal, and the lock names no native engine: an entry no
row selects is not an input of the payload. Each archive was checked against
two downloads and the published .sha256.

On Linux the engine needs nothing of the system: the install guide drops the
glibc 2.31 floor, and older and musl distributions run it (design D7). macOS
arm64 is the closest to the bound, 1.05x in the release's run and 1.25-1.38x
in four earlier runs of the same images; the guide says so.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
… the engine's where a platform's engine is the ok image -- and this platform's runner starts the engine, which states its version

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…ly: clangd.okb on Linux has no isolated workers, and the bound failed every module build

The bench's warm stage found no completion of an imported module's member on
Linux x64 with the ok image. The server's logs (a probe of the same payload):
"Module worker configuration failed: Worker payload bounds require worker
isolation", then every prerequisite failed, in the cold and the warm stage
alike. mcppls gave --modules-builder-owned-cache-payload-mib to any verified
engine on a Linux host; isolated workers are compiled into the native Linux
engine only, and the image is not one. The decision is now
owned_cache_payload_bound(), by the engine's runner as well as the host, with
its own test.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…compared without it

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…onger carries

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…rs and keeps them across sessions; macOS and Windows take clangd.okb. The conformance runner starts a payload's image engine through its runner

With clangd.okb on Linux the ux stages measured what the acceptance's single
--check runs could not: every module built again in each session (176 of 176,
ux-mcpp), first ready at 33 s against 12 s, and no on-disk module files for the
lock faults. On Linux the native engine builds modules in isolated workers and
keeps them in its owned module cache across sessions; the image, compiled for
no host, has neither, as no engine has on macOS and Windows. The Linux rows name
mcppls-clangd 0.0.18's native archives again (checked against two downloads and
the published .sha256), and the install guide keeps the glibc floor.

The conformance runner started the payload's engine as a program
(completion-baseline, the WA-CLANGD-009 canary, the crash stand-in): an image
engine starts through its runner with the image first.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…al 0.19 (the host's physical cores and a context's claim on the processors), openkal-musl 0.24.0, openkal-llvm-runtime 0.16.13, openkal-image 0.1.8

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
…cOS a context's identity without a system call (openkal-macos 0.17.1, openkal-musl 0.24.1, openkal-llvm-runtime 0.16.14, openkal-image 0.1.9)

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Sunrisepeak and others added 22 commits November 4, 2026 10:45
Archive disjoint, complete test groups with the existing dev configuration. Verify each archive manifest and executable digest before reclaiming only its archived executable bytes. Preserve common objects, modules and programs, and retain coverage and archive digests for all 62 discovered tests. Other build matrix rows keep their existing commands.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Hash archived payloads during forward traversal and consume the gzip trailer before deleting matched executables. The fixture controls retain complete 62-test coverage, eliminate 48 backward gzip seeks and reject trailer corruption that the previous verifier accepted. The active production-step probe continues; final joint CI will also verify this reader.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Test artifacts already contain gzip archives. Use the upload action supported zero-compression setting to avoid deflating those bytes again; test inputs and execution remain unchanged.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Tree copy and snapshot operations derive relative names lexically from their own iterators. They no longer canonicalize file aliases while mapping entries into the destination. Grant cardinality fixtures use physical roots, with a separate case requiring every writable spelling and canonical alias to survive the limit.

Focused Linux checks pass: grants 9 cases and 103 assertions, payload 15 cases and 78 assertions, review 11 cases and 26 assertions. Actual native Windows verification remains required.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Bounded mcpp-produced raw tar groups are merged without repeating common programs. Identical paths require matching payload hashes and modes. All discovered tests, runtime files and package metadata survive, while only verified test executables are reclaimed. Final containers are reread and checked before atomic publication.

Real-name archive controls cover 62 tests, PAX renaming, malformed groups, conflicting common payloads, and final gzip corruption. Repository invariants pass. Full cross-build and native Windows execution remain required.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
A portable payload keeps okrun outside clangd own files. Include that directory as an immutable read-only payload input so a project elsewhere can resolve the loader when spawning workers. Keep grants bounded and writable directories unchanged.

The prior frozen625 payload records missing loader coverage and ENOENT on all three editor hosts. Local grants regression passes9cases/105assertions; frozen read-only-loader A/B validation is in progress before final joint CI.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Regenerate all six existing targets from the public source index, retaining 22 packages and changing only platform, musl and runtime records. Match the host-graph CI selection; engine candidate replacement and complete joint qualification remain pending.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Use all five digest-identified parts from cfd2243 run 41788130200 after four native, two floor, two image builds and bundle identity pass. Complete engine acceptance and server joint CI remain required before either release; published payload pins remain unchanged.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Recognize volume-prefixed and backslash-separated PCM source paths. Run the owned-payload reuse controls on every host and clear the fixed archive extraction directory with the host filesystem before each archive.

Tracks mcpp-community/mcpp#885. Native public-platform build and test_conformance pass; Windows CI validation remains required.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Defer the first image process to the next timer turn so synchronous cached-model adoption supplies its directories. Clear retired grants before applying a replacement plan to avoid scheduling another restart against the old process.

Tracks mcpp-community/mcpp#885. The 70-case server suite passes 721 assertions, including cached, cold and later-grant lifecycle controls.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Observe the installed payload manifest and direct parent instead of requiring a clangd process name. Distinguish the server and engine when they share an okrun executable; retain the initialized protocol check and reject unrelated or dead engines. Exercise real Linux processes before both Zed smoke modes.

Tracks mcpp-community/mcpp#885.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Asynchronous mcpp target selection can deliver a cached model after several event-loop turns. Start an image with the directories from that first plan rather than launching it early and immediately replacing it. An explicit no-plan fallback still starts the engine; waiting introduces no busy polling.

Tracks mcpp-community/mcpp#885. The 70-case server suite passes 725 assertions, and the default-grant cold/warm 10000-line token fixture passes with the actual frozen engine.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Register both smoke-only Python scripts with their purposes in the repository script inventory. The complete devtools repository invariants and binary check pass locally.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Point the joint candidate at engine 77e4e2f and run server builds in parallel with the remaining Windows build. A separate read-only gate waits for all five parts, required producer jobs, exact run/head, immutable artifact metadata and bundle identity before payload assembly. Known upstream failures and cancellations refuse admission; release gates remain required.

Twelve adversarial controls, the actual live pending-Windows check, actionlint and all devtools invariants pass. Document the admission boundary in both release manuals.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Pin the corrected exact engine head and run while independent compilation proceeds. Keep candidate admission and all joint qualification gates unchanged; the preceding exact engine failed cold CPU.

Tracks mcpp-community/mcpp#885.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Pin engine 31e3513 and build-test 41891364456 after the preceding exact engine failed both original cold CPU gates. Independent server compilation can proceed; strict upstream admission remains required before any payload assembly.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Pin engine 39f8589 and build-test 41901404153 after exact31e fails original Linux CPU/time gates. The image optimization preserves native reference sources, hardening, workload and thresholds. Keep strict complete upstream admission before payload assembly.

Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
Keep independent requests and their original limits while the engine waits for a typing pause. Actual client cancellation, file close and engine shutdown complete each callback, and ending a pause owns its URI before erasing the queue entry.

Schedule highlighting changes in a write-safe modality. Verify one packaged ZIP in both stable CLion versions through an independent runtime build, with an early published-backend adapter check and the qualified-candidate path kept separate. Preserve strict IDE errors, source/pin triggers and public-only reports.

Validation: 71 server cases and 756 assertions pass; the typing-pause protocol fixture passes concurrent symbols, highlights and links plus cancellation and the original typing checks. The adapter passes both stable SDK verifiers and the 261 published-backend GUI run. The design record retains the unqualified native diagnostic and existing Nova synchronization boundary.
Record fixed project and stage enums plus each completed check in the public finally report. Failed console output prints only the fixed stage; complete exceptions remain in private test and IDE logs and still fail the strict gate. Keep all payload identities, feature assertions and timeouts unchanged.

Validation: the independent Gradle build and packaged runtime test source compile. The exact failed CI ZIP is frozen with verified archive CRC and both archive/plugin SHA256 values for replay on both stable IDEs.
@Sunrisepeak
Sunrisepeak merged commit 8923698 into main Nov 6, 2026
161 of 162 checks passed
@Sunrisepeak
Sunrisepeak deleted the mcppls-0.0.20 branch November 6, 2026 12:15
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