Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ jobs:

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 24.14.1
node-version: 24.22.1
# Disable dependency caching: a writable cache in this release workflow
# (contents: read, feeds a signed installer) is a poisoning vector. pnpm
# install runs uncached below.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upstream-sync-rehearsal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
if: github.repository != 'Kiingo/buzz' && steps.rehearsal.outcome == 'success'
with:
node-version: 24.14.1
node-version: 24.22.1
cache: pnpm

- name: Install exact dependencies for focused desktop contracts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 24.14.1
node-version: 24.22.1
package-manager-cache: false

- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion bin/corepack
2 changes: 1 addition & 1 deletion bin/node
2 changes: 1 addition & 1 deletion bin/npm
2 changes: 1 addition & 1 deletion bin/npx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 16 additions & 15 deletions desktop/src-tauri/src/commands/agent_discovery/managed_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ use std::sync::{Mutex, OnceLock};
use std::time::Duration;
use std::{io::Read, io::Write};

use crate::managed_agents::{is_npm_global_install, InstallStepResult};
use crate::managed_agents::{
is_npm_global_install, InstallStepResult, BUZZ_MANAGED_NODE_VERSION as MANAGED_NODE_VERSION,
};

const MANAGED_NODE_VERSION: &str = "v24.18.0";
const MANAGED_NODE_MAX_BYTES: u64 = 90 * 1024 * 1024;

#[derive(Debug, Clone, Copy)]
Expand All @@ -18,43 +19,43 @@ struct ManagedNodeArtifact {
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
const MANAGED_NODE_ARTIFACT: Option<ManagedNodeArtifact> = Some(ManagedNodeArtifact {
platform: "darwin-arm64",
filename: "node-v24.18.0-darwin-arm64.tar.gz",
sha256: "e1a97e14c99c803e96c7339403282ea05a499c32f8d83defe9ef5ec66f979ed1",
filename: "node-v24.22.1-darwin-arm64.tar.gz",
sha256: "89c682593d76cd44233fa53b1563264e7de9cbb189cad169135c5b4fadfbc0a7",
});

#[cfg(all(target_os = "macos", target_arch = "x86_64"))]
const MANAGED_NODE_ARTIFACT: Option<ManagedNodeArtifact> = Some(ManagedNodeArtifact {
platform: "darwin-x64",
filename: "node-v24.18.0-darwin-x64.tar.gz",
sha256: "dfd0dbd3e721503434df7b7205e719f61b3a3a31b2bcf9729b8b91fea240f080",
filename: "node-v24.22.1-darwin-x64.tar.gz",
sha256: "d132557e7ee2b85af08b0c8c34338e65c6430f2238d01f727728ef42dc83b035",
});

#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
const MANAGED_NODE_ARTIFACT: Option<ManagedNodeArtifact> = Some(ManagedNodeArtifact {
platform: "linux-x64",
filename: "node-v24.18.0-linux-x64.tar.gz",
sha256: "783130984963db7ba9cbd01089eaf2c2efb055c7c1693c943174b967b3050cb8",
filename: "node-v24.22.1-linux-x64.tar.gz",
sha256: "eb6728e77c576a35162c122c45ccadf224d89ff00abc8dae46cc2897c6002d7c",
});

#[cfg(all(target_os = "linux", target_arch = "aarch64"))]
const MANAGED_NODE_ARTIFACT: Option<ManagedNodeArtifact> = Some(ManagedNodeArtifact {
platform: "linux-arm64",
filename: "node-v24.18.0-linux-arm64.tar.gz",
sha256: "6b4484c2190274175df9aa8f28e2d758a819cb1c1fe6ab481e2f95b463ab8508",
filename: "node-v24.22.1-linux-arm64.tar.gz",
sha256: "33c37be234ba8bee041961047b19160f4d7d0f164e8e246f78bdd10feff148b3",
});

#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
const MANAGED_NODE_ARTIFACT: Option<ManagedNodeArtifact> = Some(ManagedNodeArtifact {
platform: "win-x64",
filename: "node-v24.18.0-win-x64.zip",
sha256: "0ae68406b42d7725661da979b1403ec9926da205c6770827f33aac9d8f26e821",
filename: "node-v24.22.1-win-x64.zip",
sha256: "d2046d28c2c3dcd211ac5145c0bf30e2047ef9dfb306693c8c6e2eccd8b95fa5",
});

#[cfg(all(target_os = "windows", target_arch = "aarch64"))]
const MANAGED_NODE_ARTIFACT: Option<ManagedNodeArtifact> = Some(ManagedNodeArtifact {
platform: "win-arm64",
filename: "node-v24.18.0-win-arm64.zip",
sha256: "f274669adb93b1fd0fbf8f21fd078609e9dcc84333d4f2718d2dde3f9a161a01",
filename: "node-v24.22.1-win-arm64.zip",
sha256: "a0c807319fede24c4a0d8f84564c82a619bd313b16b10c007c383c2609e99171",
});

#[cfg(not(any(
Expand Down Expand Up @@ -206,7 +207,7 @@ fn kill_probe_group(pid: u32) {
/// Returns `true` when the managed Node runtime is absent or no longer executes —
/// meaning any existing npm adapter shims are broken and must be reinstalled.
///
/// This fires when the pinned Node version changes (e.g. v24.11.0 → v24.18.0):
/// This fires when the pinned Node version changes (e.g. v24.18.0 → v24.22.1):
/// the old dir stays on disk, shims appear installed, but they fail at run time
/// because the Node binary they reference is gone. Treating the adapter as
/// missing forces `ensure_managed_node_runtime_blocking` to re-download Node and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,3 +479,27 @@ fn test_managed_node_runtime_ready_returns_false_when_binary_absent() {
"managed_node_runtime_ready must return false when the binary file does not exist"
);
}

#[test]
fn managed_node_artifact_matches_pinned_version() {
let Some(artifact) = MANAGED_NODE_ARTIFACT else {
return;
};
let extension = if artifact.filename.ends_with(".zip") {
"zip"
} else {
"tar.gz"
};
assert_eq!(
artifact.filename,
format!(
"node-{MANAGED_NODE_VERSION}-{}.{extension}",
artifact.platform
)
);
assert_eq!(artifact.sha256.len(), 64);
assert!(artifact
.sha256
.bytes()
.all(|b| matches!(b, b'0'..=b'9' | b'a'..=b'f')));
}
9 changes: 8 additions & 1 deletion desktop/src-tauri/src/managed_agents/managed_node_paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ pub(crate) fn buzz_managed_npm_prefix() -> Option<PathBuf> {
dirs::data_dir().map(|dir| dir.join("Buzz").join("node-tools"))
}

const BUZZ_MANAGED_NODE_VERSION: &str = "v24.18.0";
/// Pinned Node.js release for the Buzz-private agent-adapter runtime. The
/// install path, download URL and readiness probe all read this one constant.
/// When bumping it, also update every `filename` and `sha256` in
/// `commands/agent_discovery/managed_node.rs` from the release's signed
/// `SHASUMS256.txt`. A bump makes existing installs rebuild: the new version
/// directory is missing, so the runtime is not ready, managed adapter shims are
/// treated as orphaned, and the next install downloads the new runtime.
pub(crate) const BUZZ_MANAGED_NODE_VERSION: &str = "v24.22.1";

pub(crate) fn buzz_managed_node_root() -> Option<PathBuf> {
dirs::data_dir().map(|dir| dir.join("Buzz").join("runtimes").join("node"))
Expand Down
1 change: 1 addition & 0 deletions desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"icons/icon.ico"
],
"macOS": {
"minimumSystemVersion": "10.15",
"infoPlist": "Info.plist",
"entitlements": "Entitlements.plist",
"dmg": {
Expand Down
18 changes: 18 additions & 0 deletions docs/kiingo-fork-inventory.json
Original file line number Diff line number Diff line change
Expand Up @@ -1873,6 +1873,24 @@
"purpose": "Relay mesh restart safety. A restarted relay keeps its address but mints a new runtime id, so the previous boot's unexpired ready record pointed at the relay itself; boot awaited a dial to it before binding health, which could run past the liveness budget and restart the pod in a loop. Mesh boot no longer waits on any dial (the reconcile loop dials in the background), each dial is bounded well under the liveness budget, membership refuses records for another runtime id at its own address and gossiped records whose heartbeat outlived the registry expiry, and peers with no sign of life for that long are dropped from the peer table. The SIGTERM handler is installed before any startup work, so a signal during startup is not dropped when the relay runs as PID 1; on shutdown the relay deletes its own ready record, drains and exits 0. The boot lifecycle tests restart a mesh-on relay at the same address twice and assert readiness within the probe budget and a clean SIGTERM exit.",
"removalCondition": "Drop when upstream mesh boot never awaits a peer dial before the health listener, bounds dials, ignores records at its own address and prunes dead peers, and installs its shutdown handler before startup work.",
"upstreamStatus": "Generic, provider-neutral bug fix; not yet submitted to block/buzz."
},
{
"classification": "retain-generic",
"owner": "Buzz desktop and toolchain maintainers",
"paths": [
"bin/.node-24.22.1.pkg",
"bin/corepack",
"bin/node",
"bin/npm",
"bin/npx",
"crates/buzz-feature-flags/tests/fixtures/relay-feature-selection/Cargo.lock",
"desktop/src-tauri/src/commands/agent_discovery/managed_node.rs",
"desktop/src-tauri/src/commands/agent_discovery/managed_node_tests.rs",
"desktop/src-tauri/tauri.conf.json"
],
"purpose": "October 2026 security advisories. The Buzz-private Node runtime for agent adapters moves to Node 24.22.1 (Brotli decoder RCE CVE-2026-111497, TLS hostname checks, randomUUID snapshot entropy, eMudhra CA removal), with SHA-256 pins from the release's SHASUMS256.txt and one version constant shared by the install path and the download code; the Hermit dev toolchain moves to the same Node; the feature-flag fixture lockfile resolves rustls-webpki 0.103.16 (RUSTSEC-2026-0382); and the macOS minimum system version is stated in the base Tauri config at the 10.15 the release config and deployment target already use.",
"removalCondition": "Drop when upstream pins Node 24.22.1 or later for the managed runtime and Hermit, its fixture lockfile resolves rustls-webpki 0.103.16 or later, and its base Tauri config states the macOS minimum.",
"upstreamStatus": "Generic, provider-neutral security update; not yet submitted to block/buzz."
}
],
"budgetAmendments": [
Expand Down