From ad396dc2c3f5f1992e4f496fdf6cbb3cc572d075 Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Sun, 22 Nov 2026 17:12:05 +0000 Subject: [PATCH 1/3] fix(deps): update url to patched 2.5.9 --- Cargo.lock | 10 +++++----- crates/bashkit-js/test-fixtures/random-fs/Cargo.lock | 8 ++++---- .../bashkit-python/test-fixtures/random-fs/Cargo.lock | 8 ++++---- crates/bashkit/fuzz/Cargo.lock | 8 ++++---- examples/hyperlight/Cargo.lock | 8 ++++---- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3f77f5167..30642fb7c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1683,7 +1683,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a" dependencies = [ "quote", - "syn 3.0.10", + "syn 2.0.119", ] [[package]] @@ -2238,9 +2238,9 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -7138,9 +7138,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", diff --git a/crates/bashkit-js/test-fixtures/random-fs/Cargo.lock b/crates/bashkit-js/test-fixtures/random-fs/Cargo.lock index 951202a84..efba044d5 100644 --- a/crates/bashkit-js/test-fixtures/random-fs/Cargo.lock +++ b/crates/bashkit-js/test-fixtures/random-fs/Cargo.lock @@ -409,9 +409,9 @@ dependencies = [ [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -1339,9 +1339,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", diff --git a/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock b/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock index 712800fa4..96f281a84 100644 --- a/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock +++ b/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock @@ -392,9 +392,9 @@ dependencies = [ [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -1235,9 +1235,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", diff --git a/crates/bashkit/fuzz/Cargo.lock b/crates/bashkit/fuzz/Cargo.lock index 394ec2aa6..50f0f6388 100644 --- a/crates/bashkit/fuzz/Cargo.lock +++ b/crates/bashkit/fuzz/Cargo.lock @@ -1006,9 +1006,9 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -3147,9 +3147,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", diff --git a/examples/hyperlight/Cargo.lock b/examples/hyperlight/Cargo.lock index 3f1bb49a5..9d17e0036 100644 --- a/examples/hyperlight/Cargo.lock +++ b/examples/hyperlight/Cargo.lock @@ -441,9 +441,9 @@ checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -1274,9 +1274,9 @@ checksum = "b39abd59bf32521c7f2301b52d05a6a2c975b6003521cbd0c6dc1582f0a22104" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", From 19c53daaa2f30b1fb635c38208cec7f8fd749745 Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Sun, 22 Nov 2026 17:15:21 +0000 Subject: [PATCH 2/3] perf(interpreter): dispatch builtins through their trait objects --- crates/bashkit/src/interpreter/mod.rs | 8 ++++++-- knowledge/foundations/builtins.md | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/crates/bashkit/src/interpreter/mod.rs b/crates/bashkit/src/interpreter/mod.rs index 026fc0c27..42f8864e6 100644 --- a/crates/bashkit/src/interpreter/mod.rs +++ b/crates/bashkit/src/interpreter/mod.rs @@ -10186,7 +10186,9 @@ impl Interpreter { shell: Some(shell_ref), }; - let plan_result = AssertUnwindSafe(builtin.execution_plan(&plan_ctx)) + // Call the trait object directly so Arc forwarding does not + // allocate and poll an additional async wrapper. + let plan_result = AssertUnwindSafe(builtin.as_ref().execution_plan(&plan_ctx)) .catch_unwind() .await; @@ -10306,7 +10308,9 @@ impl Interpreter { }; // THREAT[TM-INT-001]: Execute builtin with panic catching for security - let result = AssertUnwindSafe(builtin.execute(ctx)).catch_unwind().await; + let result = AssertUnwindSafe(builtin.as_ref().execute(ctx)) + .catch_unwind() + .await; let mut result = match result { Ok(Ok(exec_result)) => exec_result, diff --git a/knowledge/foundations/builtins.md b/knowledge/foundations/builtins.md index c6eaaa501..1d416260f 100644 --- a/knowledge/foundations/builtins.md +++ b/knowledge/foundations/builtins.md @@ -21,6 +21,11 @@ hook restrictions, bindings, tests and explicitly buffered roadmap boundaries. ## Status Implemented +Builtin dispatch calls the `dyn Builtin` object inside its `Arc` directly for +execution-plan lookup and execution. Calling the forwarding implementation +on `Arc` creates an additional boxed future at each boundary. +The direct call keeps the existing hooks, budgets, and panic handling. + ## Decision Bashkit provides built-in commands for script execution in a virtual environment. From 1d2ddd62bd0e1bb5625f56b63488b8166ab498bc Mon Sep 17 00:00:00 2001 From: Mykhailo Chalyi Date: Sun, 22 Nov 2026 17:19:27 +0000 Subject: [PATCH 3/3] chore(deps): record reviewed url security updates --- supply-chain/audits.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/supply-chain/audits.toml b/supply-chain/audits.toml index 7b4f47c24..78942f81b 100644 --- a/supply-chain/audits.toml +++ b/supply-chain/audits.toml @@ -206,6 +206,12 @@ criteria = "safe-to-deploy" delta = "0.1.11 -> 0.1.12" notes = "Reviewed existing Visual Studio discovery predicate rewrites with filter/and_then/then. Installation paths and architecture existence checks unchanged. No new process invocation or unsafe." +[[audits.form_urlencoded]] +who = "Mykhailo Chalyi " +criteria = "safe-to-deploy" +delta = "1.2.2 -> 1.2.3" +notes = "Reviewed complete source and manifest delta. Serializer::for_suffix clamps its start position to target length instead of panicking. Existing capacity and UTF-8 handling is unchanged. The percent-encoding lower bound is raised to 2.3.2, which was already resolved. No new unsafe code or ambient capabilities." + [[audits.get-size-derive2]] who = "Mykhailo Chalyi " criteria = "safe-to-deploy" @@ -948,6 +954,12 @@ criteria = "safe-to-deploy" delta = "2.1.3 -> 2.1.4" notes = "Reviewed complete delta: formatting and private internal visibility changes, hash arithmetic and buffer reads unchanged. No new unsafe or host capability." +[[audits.url]] +who = "Mykhailo Chalyi " +criteria = "safe-to-deploy" +delta = "2.5.8 -> 2.5.9" +notes = "Reviewed runtime and manifest delta. Blob origin recursion now accepts only http, https, or file for the inner URL, resolving RUSTSEC-2026-0592. Dot-segment removal searches only the path and keeps its root and drive-letter slash. File hosts are retained, non-special ports reject backslashes, and path carets are percent encoded. Bounds remain checked. New dependency requires reviewed form_urlencoded 1.2.3. No new unsafe code or ambient capabilities." + [[audits.uuid]] who = "Mykhailo Chalyi " criteria = "safe-to-deploy"