fix(runtime): honor disabled languages and preserve activation safety #465

Merged
buildagent merged 1 commit from codex/disabled-language-activation into master 2026-10-25 10:45:26 +01:00
Member

Approving a language package on a genuinely empty index could fail the activation gate, or a subsequent pass could index the language despite the project's explicit disabled setting. Apply effective displacement ownership to both the live fallback route and the dirty-domain owner. Allow an empty pending projection only when every walked path has positive evidence that a loaded pending package claims an explicitly disabled reserved language and no native producer exists. Existing missing-contribution, unmatched-package and fact-loss gates remain enforced.

Enabled languages still use their package when the binary has no native producer, including Ruby. The language listing now reports approved disabled packages as unowned, and empty projections no longer claim their rows are searchable.

Validation: 68 targeted routing, dirty-domain, rollback, activation and boundary tests; language controls in both native and parser-free builds; strict Clippy and formatting; executed mutation controls for the fallback and empty-projection boundaries. Full signed generic-runtime acceptance passed for all seven languages, MCP, watching, restart, XAML and embedded Svelte/Vue. The missing-inner-producer fixture explicitly enables its desired TypeScript language and retains every original refusal/repair assertion. An additional live control verifies that a fact-losing disable is rejected with the old generation retained and a degraded reply, then explicit enablement restores ready service. No data-loss gate is waived.

Fixes #427.

Approving a language package on a genuinely empty index could fail the activation gate, or a subsequent pass could index the language despite the project's explicit disabled setting. Apply effective displacement ownership to both the live fallback route and the dirty-domain owner. Allow an empty pending projection only when every walked path has positive evidence that a loaded pending package claims an explicitly disabled reserved language and no native producer exists. Existing missing-contribution, unmatched-package and fact-loss gates remain enforced. Enabled languages still use their package when the binary has no native producer, including Ruby. The language listing now reports approved disabled packages as unowned, and empty projections no longer claim their rows are searchable. Validation: 68 targeted routing, dirty-domain, rollback, activation and boundary tests; language controls in both native and parser-free builds; strict Clippy and formatting; executed mutation controls for the fallback and empty-projection boundaries. Full signed generic-runtime acceptance passed for all seven languages, MCP, watching, restart, XAML and embedded Svelte/Vue. The missing-inner-producer fixture explicitly enables its desired TypeScript language and retains every original refusal/repair assertion. An additional live control verifies that a fact-losing disable is rejected with the old generation retained and a degraded reply, then explicit enablement restores ready service. No data-loss gate is waived. Fixes #427.
fix(runtime): honor disabled languages without bypassing activation gates
All checks were successful
Package CI / package (php) (pull_request) Successful in 28s
Package CI / package (python) (pull_request) Successful in 36s
Package CI / package-corpus (rust) (pull_request) Successful in 36s
Package CI / package (rust) (pull_request) Successful in 45s
Package CI / package-corpus (javascript) (pull_request) Successful in 45s
Package CI / package-corpus (typescript) (pull_request) Successful in 32s
Package CI / package-corpus (csharp) (pull_request) Successful in 48s
Package CI / package-corpus (ruby) (pull_request) Successful in 54s
Package CI / package-corpus (svelte) (pull_request) Successful in 53s
Package CI / package-corpus (timeline) (pull_request) Successful in 50s
Package CI / package-corpus (vue) (pull_request) Successful in 53s
Package CI / package-corpus (xaml) (pull_request) Successful in 53s
Package CI / package overhead budgets (nightly, one package at a time) (pull_request) Has been skipped
Pilot plugin compatibility / Fetch the pinned runtime once (pull_request) Successful in 1m29s
CI / guest crates (fmt, clippy, doc) (pull_request) Successful in 1m14s
CI / CI lane wall-clock headroom (pull_request) Successful in 1m36s
Pilot plugin compatibility / Pilot compatibility (csharp) (pull_request) Successful in 58s
Pilot plugin compatibility / Pilot compatibility (timeline) (pull_request) Successful in 1m11s
Pilot plugin compatibility / Pilot compatibility result (pull_request) Successful in 1s
CI / cargo clippy (pull_request) Successful in 5m11s
CI / cargo doc (intra-doc links) (pull_request) Successful in 5m17s
CI / cargo deny (pull_request) Successful in 5m52s
CI / cargo test (abi, 32-bit + wasm32) (pull_request) Successful in 6m37s
CI / cargo check (MSRV 1.98) (pull_request) Successful in 6m41s
CI / cargo check (windows-gnu) (pull_request) Successful in 7m20s
CI / cargo test (pull_request) Successful in 24m19s
CI / OSS corpus (tier 1) (pull_request) Successful in 31m21s
CI / cargo test (daemon transport) (pull_request) Successful in 9m3s
CI / Plugin path cost + pool throughput (nightly) (pull_request) Has been skipped
CI (Windows) / fmt + clippy + build + test (windows) (pull_request) Successful in 43m2s
2e269bebe4
Author
Member

Additional frozen-head review: review_diff reports no stale/unindexed changed files; the routing change has a broad dependency footprint, so the full core and native Windows gates remain required. An external parser-free Rust consumer also passed the public Activation::owner controls: a package claiming .js without an effective reserved-language displacement cannot own it, the same claim with consented displacement does own it, and a custom .frob claim still owns its path. This independently checks the dirty-file routing boundary without changing the qualified PR head. Full generic CLI/MCP acceptance and both source-mutation controls remain green. Awaiting runs 6683 and 6684; no merge or release bypass.

Additional frozen-head review: `review_diff` reports no stale/unindexed changed files; the routing change has a broad dependency footprint, so the full core and native Windows gates remain required. An external parser-free Rust consumer also passed the public `Activation::owner` controls: a package claiming `.js` without an effective reserved-language displacement cannot own it, the same claim with consented displacement does own it, and a custom `.frob` claim still owns its path. This independently checks the dirty-file routing boundary without changing the qualified PR head. Full generic CLI/MCP acceptance and both source-mutation controls remain green. Awaiting runs 6683 and 6684; no merge or release bypass.
Author
Member

Qualified and merged normally. Exact source head 2e269bebe48cb4804b5c0386ab303ebed4f65af8 passed Windows6683 (44m02), core6684 (40m59), packages6685 (1m47), and pilots6686 (3m28). Windows: 4,847 ordinary tests and the serial timing/doctest/installer/shipped-profile checks passed; Linux: 5,074 ordinary tests, serial timing, corpus and separate daemon transport gate passed. The local generic signed CLI/MCP acceptance and negative mutation controls are recorded above.

Fetched master 46d817abafa73430c3f2156f86d0c62962dffbc9; verified the source head is its ancestor and both trees are exactly 86d3f240854738720fa8f83ebca973486f9ef514. Preparing v0.41.20 via the documented direct-child version-only branch; publication has not happened yet. Local merge receipt: /tmp/cosi-020-source-merge-verification.json.

Qualified and merged normally. Exact source head `2e269bebe48cb4804b5c0386ab303ebed4f65af8` passed Windows6683 (44m02), core6684 (40m59), packages6685 (1m47), and pilots6686 (3m28). Windows: 4,847 ordinary tests and the serial timing/doctest/installer/shipped-profile checks passed; Linux: 5,074 ordinary tests, serial timing, corpus and separate daemon transport gate passed. The local generic signed CLI/MCP acceptance and negative mutation controls are recorded above. Fetched master `46d817abafa73430c3f2156f86d0c62962dffbc9`; verified the source head is its ancestor and both trees are exactly `86d3f240854738720fa8f83ebca973486f9ef514`. Preparing v0.41.20 via the documented direct-child version-only branch; publication has not happened yet. Local merge receipt: `/tmp/cosi-020-source-merge-verification.json`.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h-dv/code-index!465
No description provided.