Repository navigation
feat: add opt-in execution plans with full backend test coverage - #2982
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bashkit | 74cc32d | Commit Preview URL Branch Preview URL |
Nov 23 2026, 05:40 PM |
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.
What changed
Add the disabled-by-default
experimental_execution_planCargo feature, forwarded by the CLI, ScriptedTool, C ABI, Python, JavaScript and browser crates. Existing Bash scripts can execute supported scalar arithmetic, assignments, branches and loops as execution-owned instructions; other syntax and dynamic contexts retain interpreter execution.Run the full CI test slices with the feature both disabled and enabled, including binding artifacts, browser/Windows suites, strict host-tool oracles, serialized failpoint unit/security tests and proptest. Discover all fuzz targets from the manifest for bounded PR smoke runs and scheduled campaigns in both modes. Add a compiler/AST differential fuzzer and real-Bash scalar-loop properties; native tests assert eligibility so fallback cannot make the backend tests pass silently. Coverage, ASan, Miri and tenant soaks also cover both modes.
Why
Reduce allocation, copying and repeated arithmetic interpretation without introducing new shell syntax, persistent compiler state or a shared compilation cache.
Before / After
The isolated Linux experiment removed the previous short-script penalty and measured 12% less time for straight arithmetic and 26–63% less for supported loops. Pipelines were approximately flat; substitutions remain 4% slower in separate builds, so the feature stays off by default. Historical source, raw samples and reproduction instructions: https://github.com/everruns/bashkit/tree/41591e58/experiments/script-execution-plan.
Shipping hardening adds layout-based admission for tokenizer/op-vector growth, exact command-vector capacity, reservation/future-drop refunds, literal-only variable admission, and resource fault injection through native execution. These address failures observed by new regression tests.
Validation
just pre-pr,just test, all-feature Clippy, feature-enabled workspace docs/embedding tests, and serialized compiler/failpoint tests passed (3,160 unit + 19 security failpoint tests). Python tooling: 277 tests with four existing skips; Python lint passed.The local live SSH oracle reports network unreachable; the unchanged required gate passed in CI. Full local
cargo deny checkreports existing unmaintainedchrono/chrono-tzadvisories (RUSTSEC-2026-0543/0555); bans, licenses and sources passed, and dependency/audit policy files are unchanged.Risk
Medium: this is an experimental backend with conservative fallback. Compilation consumes request work and memory, so tighter budgets can reject earlier. Default builds retain the interpreter. No new unsafe code or shared compiler cache is introduced.
Checklist
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.