Repository navigation
mcppls-clangd 0.0.20: portable owned module workers and recorded absent inputs - #16
Merged
Merged
Conversation
…ndex), within 1.3 times the native clangd's time Every case parsed one file on one thread, and clangd.okb passed them all while its C library served each allocation under one lock: on four workers at once it took 1.88 times the native clangd's time locally (0.0.19, Linux x86_64), and in mcppls's warm start it used less than one of four processors. Co-authored-by: speak-agent <[email protected]>
…kal-musl 0.25.0: threads allocate together; memcmp and strlen a word or a vector at a time) Co-authored-by: speak-agent <[email protected]>
…once per request; the engine reports itself as 23.1.0-mcppls.8 Sampled in clangd.okb during mcppls's warm start (perf on a CI runner, symbols from clangd.oke): a third of the engine's time mangled every command of a 481-command database, twice for each file the server prepared, to find the provider index unchanged. The native clangd repeats the same work faster. Co-authored-by: speak-agent <[email protected]>
…probe command A mangler that changes some commands and not the first one is another mangler (ProviderInventorySharedWithManglerInvalidation renames a module in the importer's command only); one mangled command cannot stand for it. The server's one mangler is named instead; an unnamed mangler mangles every command. Co-authored-by: speak-agent <[email protected]>
…gine On macOS the median of three moved between 1.05 and 1.33 times the native clangd's for one image: a shared runner's other work only adds to a run. Co-authored-by: speak-agent <[email protected]>
…provides it, read in place, its workers' ends seen at once; the ok image over openkal-platform 0.21.0; warm-prime; 23.1.0-mcppls.9 - 0038: the facade a request is given keeps its mangler's name when ModulesBuilder gives it the request's file system (the provider index is mangled once; ProviderIndexMangledOnceThroughRequests). - 0039: ModuleCachePlatform states and measures what the owned cache needs (open-file locks, relative directories, removal while open; the worker budget), and the cache and supervised workers follow it where they were compiled for Linux alone; the number of open files is raised to the system's most and a worker's leases share one open cache of their root; the worker's usage is logged. - 0040: a module in the owned cache is read where it was published, under its own lease. - 0041: a worker's end is seen when it happens (the owner monitor is woken, the parent looks every millisecond at first): a cold build of 176 modules was ready in 3.4 s instead of 4.9 s. - openkal 0002: openkal answers the owned cache and its workers in the image (a unit of its own, a memory limit, the owner by identifier, a root marker published with renameat2). - The image over openkal-platform 0.21.0 (openkal 0.21; openkal-image 0.3.0 maps an image's instructions from its file; openkal-musl 0.26.0) and mcpp 2026.11.2.1; engine.json states owned-module-cache where the platform has it. - ci/warm_prime.py and ci/warm_prime_accept.py, and the warm-prime job: the ok image against this change's native engine in a 304-unit, 176-module workspace on four systems; on Linux x86_64 the cold session is within 1.04, 1.08 and 1.12 of the native ready time, processor time and page faults, and the warm sessions within 1.04, 1.09 and 1.12. - module_cache_lease.py follows the cache the engine reports (owned or a copy for each reader); module_provider_cache.py counts the unmangled reuse. - okgen configures anew when the toolchain file changed. Co-authored-by: speak-agent <[email protected]>
… in this run) Co-authored-by: speak-agent <[email protected]>
…t where the system holds no ceiling (macOS); openkal 0002 rebased Co-authored-by: speak-agent <[email protected]>
…ere it keeps its count; 0040-0042 and openkal 0002 regenerated Co-authored-by: speak-agent <[email protected]>
… after an edit that brings in a module is asked again until the module is built Co-authored-by: speak-agent <[email protected]>
…es that ask for it at once; 0040-0042 and openkal 0002 regenerated Co-authored-by: speak-agent <[email protected]>
Co-authored-by: speak-agent <[email protected]>
…ion was remembered is admitted without reading it (openkal-image 0.3.1) Co-authored-by: speak-agent <[email protected]>
…ame that does not replace; an ok image's lock failed with 'failed to create link' (warm-prime, macOS) Co-authored-by: speak-agent <[email protected]>
…rder a start executes it and its touch note written, both measured on a cold warm-prime session of the image built (mcpp design 2026-11-03 part 4 §9.4) Co-authored-by: speak-agent <[email protected]>
… exists (KAL_DIR_RECORDED through okm_preopen_attenuate, mcpp design 2026-11-03 part 4 B); the absent-names case of the module inputs canary, on every system Co-authored-by: speak-agent <[email protected]>
…3 (which the platform requires: the std module compiled with its words) Co-authored-by: speak-agent <[email protected]>
Co-authored-by: speak-agent <[email protected]>
Co-authored-by: speak-agent <[email protected]>
Raw layout images are outside the payload bin/lib layout. With the host Clang18 on PATH, both CI profiling sessions timed out while scanning corelib; the same candidate bytes complete all176 modules when their built Clang23 resource directory is specified. Pass that resource directory to both profiling starts, require nonempty successful cold sessions before using their data, and always preserve probe JSON and logs. Existing release gate tests pass; the controlled candidate failure and positive counterpart are recorded for review. Co-authored-by: speak-agent <[email protected]>
Co-authored-by: speak-agent <[email protected]>
Build bounded worker paths with the host path style, retaining strict unit boundaries and traversal refusal. Add POSIX and Windows path regression controls and recognize implicit cache components on each system. The openkal Windows lease downgrade takes a shared lock before dropping the exclusive lock, keeping ownership continuous. Measure exclusion after transfer and release shared scratch locks before writes on mandatory-locking systems. Both new ledger entries remain stabilizing pending full four-host qualification. Refs mcpp-community/mcpp#885. Co-authored-by: speak-agent <[email protected]>
Carry the image-only ledger lock adaptation and measure positional reads and writes while exclusion is held. Keep the fixed lock byte beyond every bounded ledger payload, overlap the old whole-file protocol, and retain POSIX flock and continuous payload leases. The Windows kernel probe passes 16 controls, including the old read/write refusal; full four-host image qualification remains required and the ledger stays stabilizing. Record verbose ccache reason counters with the next required image rebuild so uncacheable LLVM calls can be diagnosed without another observability-only rebuild. Co-authored-by: speak-agent <[email protected]>
Correct Windows file-flush access without skipping durability checks and identify failing publication operations. Keep affected ledger entries stabilizing for full four-host qualification. Apply the same PCH ccache policy already used by native LLVM builds to the required image rebuild. Co-authored-by: speak-agent <[email protected]>
Keep the source and compile commands unchanged while a new earlier header changes the imported constexpr value from 42 to 7. Require actual build, unchanged reuse and rebuild, without depending on a particular cache lookup diagnostic. Native Linux and macOS stale BMI controls fail; the actual image passes repeated macOS semantic controls. Correct the main patch count and state the release ledger requirement. Co-authored-by: speak-agent <[email protected]>
Align the warm-prime bootstrap with the image platform and select okrun and okld from mcpp self env instead of a cache-wide wildcard. A regression rejects stale platform pins and wildcard tool selection. Public-source local execution and image checks pass with 0.23.4 and tools 0.4.4; full four-host qualification remains required. Co-authored-by: speak-agent <[email protected]>
The session reporter checked proc after shutdown, when it was already gone, and replaced the exact Linux reading with the worker-log fallback. Keep the ready-time kernel CPU and add explicitly separate complete-lifetime waited-child counters on POSIX. The existing fault metric, acceptance limits and304-unit workload remain unchanged. Five controls pass, including the actual session reporting function and a real reaped grandchild. The old776 reporter returns2.01 instead of the supplied kernel12.345; the corrected reporter retains12.345. Frozen native/image local304-unit probes each complete all four sessions without warm rebuilds; Linux still exceeds the original CPU limits. Co-authored-by: speak-agent <[email protected]>
Keep readiness fault samples as diagnostics and retain the 2.0 fault and 1.15 ready/CPU limits. Reject legacy or incomplete counters and require the original four-session workload. Co-authored-by: speak-agent <[email protected]>
Select the same musl 0.27.5 and runtime 0.18.6 group in both image builds and warm-prime runner preparation. Upstream platform publication and indexing remain prerequisites for pushing this candidate. Co-authored-by: speak-agent <[email protected]>
Add common patch 0044 to avoid querying and resolving the process directory before a scan immediately sets its command directory. Preserve independent and custom filesystem views, volatile reads and all module validation. Run the focused LLVM VFS suite alongside check-clangd on native CI. Local checks pass 22 VFS tests, native and public-platform image component controls, fresh series-order equality and 60 diagnostic microbenchmark invocations. Full-engine CPU qualification remains required. Co-authored-by: speak-agent <[email protected]>
Add common patch 0045 with bounded two-bank ledger reads for cold lookup filtering and admission accounting. Preserve the persistent format and charges, then revalidate each acquired candidate lease and complete bundle as before. Reject truncated and ambiguous snapshots; retain matching hint validation and live-lease protection. Native and public-platform image component controls pass, and all three new gtest cases compile and pass in the focused component harness. Native-first 45-common plus six-image ordering produces the exact same tracked tree. Full four-host qualification remains required; the new ledger entry is stabilizing. Co-authored-by: speak-agent <[email protected]>
Ubuntu 20.04 Clang 12 and the native GCC build reject the dependent visitor error return. Preserve its move-only ownership explicitly. Local GCC 13 and Clang 18 component builds, cache controls and the three new tests pass; complete CI remains required. Co-authored-by: speak-agent <[email protected]>
The workflows call ci/ci_build.sh rather than the standalone build helper. Build SupportTests in that entry, run the focused VFS suite, and include the existing clangd FSTests in its native test filter. This closes the coverage gap without changing the engine source or acceptance budgets. Co-authored-by: speak-agent <[email protected]>
Add the attribute-only bitstream patch for the remaining cold worker CPU hotspot. Build and run the upstream reader and writer tests through the active CI entry; the preceding coverage commit also enables physical filesystem tests there. Keep the patch stabilizing until complete native and image acceptance passes. Tracks mcpp-community/mcpp#885. Co-authored-by: speak-agent <[email protected]>
Carry common patch 0047 with successful scan publication counted in its existing operation epoch, full replay in subsequent operations, explicit cancellation before cache hits, and classification reused for consecutive observations. Every filesystem observation and existing source check remains enforced. Run the existing input-source unit case in the active native entry alongside the added publication-scope and cancellation regressions. Exact native and public-platform image header controls pass; seven alternating final pairs show image replay CPU 0.909 and store-then-lookup CPU 0.704 of baseline, with unchanged replay operation counts. These are component diagnostics, not full-engine qualification. The preceding 6e candidate fails both original cold CPU gates. Keep all new ledger entries stabilizing and require complete validation of this head. Tracks mcpp-community/mcpp#885. Co-authored-by: speak-agent <[email protected]>
Enable ThinLTO for the image-only LLVM CMake build and bound its final link to two backend jobs. Include the mode in generated toolchain identity so existing non-LTO build trees reconfigure before reuse. Keep every compiler hardening flag, native baseline, workload and performance gate. Exact 176-payload decoder controls with nine alternating rounds show component CPU ratios 0.846 with two LTO translation units and 0.835 with LTO Support. An actual 189-step LLVM cross-build produces bitcode archives, and the linked images seal and execute with identical decoded aggregates. The rebuilt generator's mode-change control discards old CMake state while an unchanged mode reuses it. These are bounded component and generator controls, not full clangd qualification. Held locally while candidate 31e completes; do not publish or promote from them. Tracks mcpp-community/mcpp#885. Co-authored-by: speak-agent <[email protected]>
Select platform 0.23.7 with musl 0.27.6 and runtime 0.18.7 in image builds, layout, bundle, acceptance and warm-prime consumers. Retain the existing engine sources, workloads, hardening and acceptance thresholds.
This was referenced Nov 5, 2026
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 universal engine uses owned module payloads and supervised workers across supported hosts, retains continuous publication leases, reads generations in place, and preserves request inputs while reusing scan publications. This prepares mcppls-clangd 0.0.20 (
23.1.0-mcppls.9).The final product-source candidate is
8ba2350b6b4cdcad2ccdb18dfbf5b177afb8afa3; the current PR head4328604changes only the qualification ledgers and evidence document. Its image, runner and every probe select published platform 0.24.0: Spec 0.24, Linux 0.25, musl 0.28, runtime 0.19 and image/tools 0.5. Bootstrap mcpp is published 2026.11.5.1. Normal public index consumers have verified the source group; the engine does not depend on the independent xim precompiled-tool publication.Changes include:
The remaining performance investigation is mcppls #77. Historical producer 41954537459 completed all four native builds, both Ubuntu 20.04 floors, both image producers, universal bundling and four-host basic acceptance. All 32 warm-prime semantic sessions passed; Linux x64 cold CPU alone missed 1.15 at 15.22/12.71 = 1.197. That version-2 report remains a historical failure, not final qualification.
For 0.0.20 only, the approved release exception permits Linux x64 cold CPU at most 1.25 times native and at most 3.0 additional CPU seconds. It requires version-3 accounting and the unchanged 304-unit, three-probe, one-cold/three-warm workload.
target_met=falseand the original failure remain recorded separately fromaccepted; the report includes the issue, version, producer commit and measured artifact SHA256 values. The next engine version returns to the strict target. Warm CPU, readiness latency, other gated hosts, complete faults and every correctness/UX requirement are unchanged. Windows' distinct cold/warm tradeoff remains disclosed.Local validation passes 23 accounting/acceptance tests and six existing release-gate controls, including exact inclusive ceilings, exceeded relative/absolute limits, next-version expiry, other-host refusal, invalid measurements and retained strict failures. Actual workflow tag/version checks and release-note extraction pass. Changelog and policy documentation have been rendered and reviewed. No negative prefetch, path or memset experiment is adopted.
Product-source CI 42155475833 passed all four native builds, both Ubuntu 20.04 floors, four OpenKal acceptances and four warm-prime gates. The first macOS cold timing was an outlier at 1.239; a single-job repeat passed at 0.963 under the unchanged 1.15 limit, consistent with two earlier passing measurements (1.075 and 1.080). Linux x64 cold CPU was 1.109, so the original strict 1.15 target passed and the temporary exception recorded
applied=falsefor this run. Patch ledgers are nowsteadyunder their documented rule; localcheck_ledger.py --releaseand 19 release/performance tests pass. Current-head verify-series passed; current-head build-test is running. Server candidate part admission has passed on rerun and its downstream suites are running. After exact-head checks and review, publish the engine, independently verify the released archives, then update the server lock and compiled constant and remove its candidate file in one commit. The server still runs its complete suites on the final published bytes.Tracks mcpp #885; performance follow-up #77 remains open after a release using the exception.