Selected changesmerged Nov 25, 2026
sqlite: enforce permission model on file accessC++ · 847 + / 15 −
Introduces 11 new declarations in src/node_sqlite_vfs.cc.
Adds new runtime rather than adjusting what was there. Tests changed with it, with code of their own.
src/node_sqlite_vfs.cc ↗ · 9 files
@@ -0,0 +1,671 @@+#include "node_sqlite_vfs.h"++#include "env-inl.h"+#include "path.h"+#include "permission/permission.h"++#include <algorithm>+#include <atomic>+#include <cctype>+#include <cstring>+#include <string>+#include <string_view>+#include <utility>++namespace node {+namespace sqlite {++namespace {++std::atomic<uint64_t> next_vfs_id{0};++bool IsSidecarPath(std::string_view path, std::string* database_path) {+ constexpr std::string_view suffixes[] = {"-journal", "-wal", "-shm"};+ for (const std::string_view suffix : suffixes) {+ if (path.size() > suffix.size() && path.ends_with(suffix)) {+ *database_path = path.substr(0, path.size() - suffix.size());+ return true;+ }+ }++ // SQLite names super-journals as <database>-mjXXXXXX9XX, where X is a hex+ // digit (see pagerIsSuperJrnlName()). A permission granted for the+ // database also covers its super-journal.
model : add RAON-1-mini-preview supportC++ · 843 + / 46 −
Introduces 3 new declarations in src/models/raon1-mini.cpp.
Adds new runtime rather than adjusting what was there. Tests changed with it, with code of their own.
src/models/raon1-mini.cpp ↗ · 26 files
@@ -0,0 +1,484 @@+#include "models.h"++#include "llama-impl.h"++#include "llama-memory-recurrent.h"++void llama_model_raon1_mini::load_arch_hparams(llama_model_loader & ml) {+ ml.get_key(LLM_KV_ATTENTION_LAYERNORM_RMS_EPS, hparams.f_norm_rms_eps);+ ml.get_key(LLM_KV_ATTENTION_KEY_LENGTH_MLA, hparams.n_embd_head_k_mla_impl);+ ml.get_key(LLM_KV_ATTENTION_VALUE_LENGTH_MLA, hparams.n_embd_head_v_mla_impl);+ ml.get_key(LLM_KV_ATTENTION_Q_LORA_RANK, hparams.n_lora_q);+ ml.get_key(LLM_KV_ATTENTION_KV_LORA_RANK, hparams.n_lora_kv);+ ml.get_key(LLM_KV_SSM_CONV_KERNEL, hparams.ssm_d_conv);+ ml.get_key(LLM_KV_KDA_HEAD_DIM, hparams.n_embd_head_kda);+ ml.get_key(LLM_KV_KDA_GATE_LOWER_BOUND, hparams.kda_gate_lower_bound, false);++ uint32_t n_rda = 0;+ for (uint32_t i = 0; i < hparams.n_layer(); ++i) {+ hparams.is_recr_impl[i] = hparams.n_head_kv(i) == 0;+ n_rda += hparams.is_recr_impl[i];+ if (!hparams.is_recr_impl[i] && hparams.n_head_kv(i) != 1) {+ throw std::runtime_error(format("Raon-1 mini MLA layers must have one KV head, layer %u has %u", i, hparams.n_head_kv(i)));+ }+ }+ // the hybrid memory needs both kinds: RDA layers (head_count_kv 0) and MLA layers (head_count_kv 1)+ if (n_rda == 0 || n_rda == hparams.n_layer()) {+ throw std::runtime_error(format("Raon-1 mini needs both RDA and MLA layers, got %u RDA of %u layers", n_rda, hparams.n_layer()));+ }++ ml.get_key_or_arr(LLM_KV_EXPERT_FEED_FORWARD_LENGTH, hparams.n_ff_exp_arr, hparams.n_layer_all);+ ml.get_key(LLM_KV_EXPERT_SHARED_COUNT, hparams.n_expert_shared);+ ml.get_key(LLM_KV_LEADING_DENSE_BLOCK_COUNT, hparams.n_layer_dense_lead);+ ml.get_key(LLM_KV_EXPERT_WEIGHTS_SCALE, hparams.expert_weights_scale);
[Ledgers] Add the remaining built-in Ledger kindsJavaScript · 362 + / 56 −
Introduces 10 new declarations in packages/react-server/src/ReactFlightServer.js.
Adds new language design rather than adjusting what was there. Tests changed with it, with code of their own.
packages/react-server/src/ReactFlightServer.js ↗ · 9 files
@@ -1029,18 +1043,58 @@ function ensureRequestLedgers(request: Request): RequestLedgers { } // Returns whether the entry changed the accumulated value.-// TODO: Only the mask kind exists yet; the other kinds land in a later PR. function accumulateLedgerEntry(cell: LedgerCell, entry: mixed): boolean {- if (typeof entry !== 'number') {- return false;- }- const state = cell.state;- const next = (state | entry) >>> 0;- if (next === state) {- return false;+ switch (cell.kind) {+ case BIT_LEDGER: {+ if (cell.state) {+ return false;+ }+ cell.state = true;+ return true;+ }+ case MASK_LEDGER: {+ if (typeof entry !== 'number') {+ return false;+ }+ const state = cell.state;+ const next = (state | entry) >>> 0;+ if (next === state) {+ return false;+ }+ cell.state = next;+ return true;+ }+ case MIN_LEDGER: {
Add planned long-form chunking to ASR transcriptionPython · 768 + / 10 −
Introduces 47 new declarations in nemo/collections/asr/parts/utils/longform_inference.py.
Adds new core implementation rather than adjusting what was there. Tests changed with it, with code of their own.
nemo/collections/asr/parts/utils/longform_inference.py ↗ · 18 files
@@ -0,0 +1,312 @@+# SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.+# SPDX-License-Identifier: Apache-2.0++"""Chunk planning and output selection for offline long-form transcription.++The transcription mixin splits every input into disjoint owned intervals with read context,+loads and batches the read intervals, and assembles one result per input. Each model selects+output from a read interval in its native representation:++* CTC keeps the owned logit frames. One CTC collapse runs over the joined frames, so repeated+ labels and blanks stay correct across joins.+* RNNT/TDT decodes each read interval with a fresh decoder, which warms up on the left context,+ and keeps the words whose timestamp midpoints fall in the owned interval. A decoder state+ carried across chunks can keep a transducer in blank through long stretches of speech.+* AED times its decoded words by matching them to the greedy words of its CTC timestamp model,+ then keeps the words in the owned interval. Without a timestamp model, neighbouring windows+ are joined at the longest run of words they share in their overlap.+"""++import difflib+import math+import re+from dataclasses import dataclass++import numpy as np+import torch+from torch.utils.data import Dataset++from nemo.collections.asr.parts.utils.rnnt_utils import Hypothesis+++@dataclass(frozen=True)+class ChunkingConfig:
Windows: Don't make RwLock writers race readersRust · 67 + / 5 −
Introduces 8 new declarations in library/std/src/sys/sync/rwlock/futex.rs.
Adds new language design rather than adjusting what was there. Read the linked PR for the surrounding test context.
library/std/src/sys/sync/rwlock/futex.rs ↗ · 1 files
@@ -357,3 +365,57 @@ impl RwLock { }) } }++cfg_select! {+ // `wake_writer` needs to know if it reached a writer, and `futex_wake` doesn't report that+ // here, so we count the writers going to sleep instead. A counted writer hasn't retried the+ // lock yet. It either takes the lock or finds it held, and only writers can lock while+ // `READERS_WAITING` is set, so whoever holds the lock sees that bit when it unlocks.+ target_os = "windows" => {+ use crate::sync::atomic::{Atomic, AtomicU32};++ // Thread IDs are 32-bit on Windows, so this can't overflow.+ struct BlockedWriters(Atomic<u32>);++ impl BlockedWriters {+ #[inline]+ const fn new() -> Self {+ Self(AtomicU32::new(0))+ }++ #[inline]+ fn wait(&self, futex: &Futex, expected: Primitive) {+ self.0.fetch_add(1, Relaxed);+ futex_wait(futex, expected, None);+ self.0.fetch_sub(1, Relaxed);+ }++ #[inline]+ fn wake(&self, futex: &Futex) -> bool {+ // Read this first: the writer we wake takes itself off the count.+ let blocked = self.0.load(Relaxed) != 0;+ futex_wake(futex) || blocked