From 5c481c30ff05b4b3a79425d8d3c395f8ad16a49b Mon Sep 17 00:00:00 2001 From: mdbase release automation Date: Sun, 29 Nov 2026 00:20:00 +1100 Subject: [PATCH 1/3] Promote staged SQLite records atomically and group raw backfill reads Refs #1648 --- changelog.d/cold-open-raw-projection.md | 3 + runtime/crates/core/src/doc.rs | 80 +++++++++---------- runtime/crates/core/src/value.rs | 7 +- .../core/src/views/bases/source_tags.rs | 10 +++ .../crates/platform-native/tests/native.rs | 41 +++++++++- .../tests/native/sql_fields/bases.rs | 1 + runtime/crates/store-file/src/index_codec.rs | 39 +++++---- runtime/crates/store-file/src/sql.rs | 34 +++++++- runtime/crates/store-file/src/sql_bases.rs | 53 ++++++++---- .../crates/store-file/src/sql_bases/tests.rs | 1 + runtime/crates/wasm/src/app_index.rs | 30 +++---- 11 files changed, 196 insertions(+), 103 deletions(-) create mode 100644 changelog.d/cold-open-raw-projection.md diff --git a/changelog.d/cold-open-raw-projection.md b/changelog.d/cold-open-raw-projection.md new file mode 100644 index 000000000..f9977aaea --- /dev/null +++ b/changelog.d/cold-open-raw-projection.md @@ -0,0 +1,3 @@ +## Changed + +- Snapshot installs promote the staged SQLite record table without copying note bodies a second time. Query-index rebuilds fetch raw sources in ordered batches. diff --git a/runtime/crates/core/src/doc.rs b/runtime/crates/core/src/doc.rs index 554b32fe9..62b368932 100644 --- a/runtime/crates/core/src/doc.rs +++ b/runtime/crates/core/src/doc.rs @@ -104,7 +104,6 @@ pub struct Document { block: Option, parsed: Option, problem: Option, - frontmatter: Map, body: Range, eol: LineEnding, } @@ -141,20 +140,8 @@ impl Document { } _ => first_line_ending(&source[start..]), }; - let (parsed, problem, frontmatter) = match &block { - None => (None, None, Map::new()), - Some(b) => match Parsed::new(&source[b.yaml.clone()]) { - Err(e) => (None, Some(FrontmatterProblem::Syntax(e)), Map::new()), - Ok(p) => match &p.value { - None => (Some(p), None, Map::new()), - Some(Value::Map(m)) => { - let m = m.clone(); - (Some(p), None, m) - } - Some(_) => (Some(p), Some(FrontmatterProblem::NotMapping), Map::new()), - }, - }, - }; + let (parsed, problem) = + parse_frontmatter(block.as_ref(), |b| Parsed::new(&source[b.yaml.clone()])); Document { source, format, @@ -162,7 +149,6 @@ impl Document { block, parsed, problem, - frontmatter, body, eol, } @@ -209,7 +195,6 @@ impl Document { block: parts.block, parsed: parts.parsed, problem: parts.problem, - frontmatter: parts.frontmatter, body, eol, }, @@ -246,7 +231,12 @@ impl Document { /// The persisted frontmatter mapping (`{}` when absent or invalid). pub fn frontmatter(&self) -> &Map { - &self.frontmatter + static EMPTY: Map = Map::new(); + self.parsed + .as_ref() + .and_then(|p| p.value.as_ref()) + .and_then(Value::as_map) + .unwrap_or(&EMPTY) } /// Why the frontmatter block could not be read as a mapping, if it could not. @@ -303,7 +293,7 @@ impl Document { } /// Preflight a borrowed source before caller cloning/planning/index hydration. -/// Includes the document's final frontmatter clone in the conservative estimate. +/// Includes a frontmatter copy in the conservative admission estimate. pub fn check_frontmatter_at( path: &str, source: &str, @@ -315,7 +305,6 @@ struct BoundedFrontmatter { block: Option, parsed: Option, problem: Option, - frontmatter: Map, footprint: crate::yaml::budget::Footprint, } fn bounded_frontmatter( @@ -336,34 +325,45 @@ fn bounded_frontmatter( RecordFormat::Markdown => find_frontmatter(source, start), }; let mut budget = crate::yaml::budget::Budget::new(); - let (parsed, problem, frontmatter) = match &block { - None => (None, None, Map::new()), - Some(b) => match Parsed::with_budget(&source[b.yaml.clone()], &mut budget) { - Err(YamlError { - kind: crate::yaml::ErrorKind::ResourceLimit(e), - .. - }) => return Err(e), - Err(e) => (None, Some(FrontmatterProblem::Syntax(e)), Map::new()), - Ok(p) => match &p.value { - None => (Some(p), None, Map::new()), - Some(value @ Value::Map(m)) => { - budget.copy_value(value, 1, false)?; - let frontmatter = m.clone(); - (Some(p), None, frontmatter) - } - Some(_) => (Some(p), Some(FrontmatterProblem::NotMapping), Map::new()), - }, - }, - }; + let (parsed, problem) = parse_frontmatter(block.as_ref(), |b| { + Parsed::with_budget(&source[b.yaml.clone()], &mut budget) + }); + if let Some(FrontmatterProblem::Syntax(YamlError { + kind: crate::yaml::ErrorKind::ResourceLimit(e), + .. + })) = problem + { + return Err(e); + } + if let Some(value @ Value::Map(_)) = parsed.as_ref().and_then(|p| p.value.as_ref()) { + // Keep the established admission footprint for consumers that copy the mapping. + budget.copy_value(value, 1, false)?; + } Ok(BoundedFrontmatter { block, parsed, problem, - frontmatter, footprint: budget.footprint, }) } +fn parse_frontmatter( + block: Option<&FrontmatterBlock>, + parse: impl FnOnce(&FrontmatterBlock) -> Result, +) -> (Option, Option) { + let Some(block) = block else { + return (None, None); + }; + match parse(block) { + Err(e) => (None, Some(FrontmatterProblem::Syntax(e))), + Ok(parsed) => { + let problem = matches!(parsed.value, Some(ref v) if v.as_map().is_none()) + .then_some(FrontmatterProblem::NotMapping); + (Some(parsed), problem) + } + } +} + /// The line ending of the first line break in `s` (`\n` when there is none). fn first_line_ending(s: &str) -> LineEnding { match s.find('\n') { diff --git a/runtime/crates/core/src/value.rs b/runtime/crates/core/src/value.rs index 1e465096d..07f0e4d34 100644 --- a/runtime/crates/core/src/value.rs +++ b/runtime/crates/core/src/value.rs @@ -429,8 +429,11 @@ pub struct Map { impl Map { /// An empty map. - pub fn new() -> Map { - Map::default() + pub const fn new() -> Map { + Map { + entries: Vec::new(), + index: BTreeMap::new(), + } } /// Number of entries. diff --git a/runtime/crates/core/src/views/bases/source_tags.rs b/runtime/crates/core/src/views/bases/source_tags.rs index a9a0d9819..dfed537ca 100644 --- a/runtime/crates/core/src/views/bases/source_tags.rs +++ b/runtime/crates/core/src/views/bases/source_tags.rs @@ -160,6 +160,16 @@ pub fn capture_source_tags( Unsure::Rest => body.len(), }); } + // Ordinary text cannot open or close any of the spans below. Stop at + // line boundaries so block classification and code-work charges stay exact. + let plain = tail + .bytes() + .take_while(|b| !matches!(b, b'\n' | b'`' | b'[' | b']' | b'<' | b'$' | b'#')) + .count(); + if plain != 0 { + cursor += plain; + continue; + } let settled = cursor >= unsure_until; if tail.starts_with('`') { if settled diff --git a/runtime/crates/platform-native/tests/native.rs b/runtime/crates/platform-native/tests/native.rs index 9a1e046a3..6fc52a3bd 100644 --- a/runtime/crates/platform-native/tests/native.rs +++ b/runtime/crates/platform-native/tests/native.rs @@ -1102,6 +1102,13 @@ fn staged_record_batches_replace_old_lookup_keys() { r.meta.unique = vec![("slug".into(), key.into())]; r }; + let old = row(200, "old"); + store + .commit(Tx { + records_put: vec![old.clone()], + ..Tx::default() + }) + .unwrap(); let mut put = |rows| { store .commit(Tx { @@ -1115,7 +1122,39 @@ fn staged_record_batches_replace_old_lookup_keys() { let mut rows: Vec<_> = (1..=101).map(|n| row(n, "shared")).collect(); rows.push(row(1, "final")); put(rows); - assert_eq!(store.record_count().unwrap(), 0); + let ddl = |sql| { + store + .index() + .borrow_mut() + .run(&Batch { + mode: BatchMode::Transaction, + stmts: vec![Stmt::new(sql, vec![])], + }) + .unwrap() + }; + // Refuse a later table in the same swap, after the staged record table + // and its indexes have been renamed/recreated. + ddl( + "CREATE TRIGGER refuse_links BEFORE INSERT ON st_link BEGIN SELECT RAISE(ABORT,'swap fault'); END", + ); + assert!( + store + .commit(Tx { + stage: Stage::Swap, + ..Tx::default() + }) + .is_err() + ); + assert_eq!(store.record_count().unwrap(), 1); + assert_eq!(store.record(&old.id).unwrap(), Some(old)); + store + .index() + .borrow_mut() + .run(&Batch { + mode: BatchMode::Transaction, + stmts: vec![Stmt::new("DROP TRIGGER refuse_links", vec![])], + }) + .unwrap(); store .commit(Tx { stage: Stage::Swap, diff --git a/runtime/crates/platform-native/tests/native/sql_fields/bases.rs b/runtime/crates/platform-native/tests/native/sql_fields/bases.rs index f5f5098a0..38b0f18bb 100644 --- a/runtime/crates/platform-native/tests/native/sql_fields/bases.rs +++ b/runtime/crates/platform-native/tests/native/sql_fields/bases.rs @@ -94,6 +94,7 @@ fn index_only_backfill_reads_small_and_large_sources_in_order() { .unwrap(); let projected = rows .iter() + .rev() .map(|r| { let mut entry = project_record_query_index_row(&catalog(), r, &refs, 8192).unwrap(); entry.body = None; diff --git a/runtime/crates/store-file/src/index_codec.rs b/runtime/crates/store-file/src/index_codec.rs index 26d0de525..1227c0f69 100644 --- a/runtime/crates/store-file/src/index_codec.rs +++ b/runtime/crates/store-file/src/index_codec.rs @@ -279,26 +279,25 @@ impl<'a> Reader<'a> { /// Encode a complete bounded request, preserving each SQLite value type. pub fn encode_request(request: &IndexRequest, limits: CodecLimits) -> Result> { - let mut w = Writer::new( - limits, - if matches!(request, IndexRequest::Reset) { - 1 - } else { - 0 - }, - )?; - if let IndexRequest::Run(batch) = request { - w.byte(match batch.mode { - BatchMode::Transaction => 0, - BatchMode::Autocommit => 1, - })?; - w.count(batch.stmts.len(), limits.max_statements, "statements")?; - for st in &batch.stmts { - w.data(st.sql.as_bytes(), limits.max_sql_bytes, "SQL bytes")?; - w.count(st.params.len(), limits.max_parameters, "parameters")?; - for v in &st.params { - w.value(v)?; - } + match request { + IndexRequest::Reset => Ok(Writer::new(limits, 1)?.bytes), + IndexRequest::Run(batch) => encode_batch(batch.mode, &batch.stmts, limits), + } +} + +/// Encode borrowed statements in their host transaction mode. +pub fn encode_batch(mode: BatchMode, stmts: &[Stmt], limits: CodecLimits) -> Result> { + let mut w = Writer::new(limits, 0)?; + w.byte(match mode { + BatchMode::Transaction => 0, + BatchMode::Autocommit => 1, + })?; + w.count(stmts.len(), limits.max_statements, "statements")?; + for st in stmts { + w.data(st.sql.as_bytes(), limits.max_sql_bytes, "SQL bytes")?; + w.count(st.params.len(), limits.max_parameters, "parameters")?; + for v in &st.params { + w.value(v)?; } } Ok(w.bytes) diff --git a/runtime/crates/store-file/src/sql.rs b/runtime/crates/store-file/src/sql.rs index 614c5014c..ba85c1bc2 100644 --- a/runtime/crates/store-file/src/sql.rs +++ b/runtime/crates/store-file/src/sql.rs @@ -44,12 +44,16 @@ use crate::index::{ Batch, BatchMode, IndexError, IndexErrorKind, IndexStorage, SqlValue, Stmt, StmtResult, }; +const RECORD_TABLE: &str = "CREATE TABLE IF NOT EXISTS st_rec(id BLOB PRIMARY KEY, path_key TEXT NOT NULL, bucket INTEGER NOT NULL, row BLOB NOT NULL) WITHOUT ROWID"; +const RECORD_PATH_INDEX: &str = "CREATE INDEX IF NOT EXISTS st_rec_pk ON st_rec(path_key)"; +const RECORD_BUCKET_INDEX: &str = "CREATE INDEX IF NOT EXISTS st_rec_b ON st_rec(bucket, id)"; + const SCHEMA: &[&str] = &[ "CREATE TABLE IF NOT EXISTS st_kv(k TEXT PRIMARY KEY, v BLOB NOT NULL) WITHOUT ROWID", "CREATE TABLE IF NOT EXISTS st_meta(k TEXT PRIMARY KEY, v BLOB NOT NULL) WITHOUT ROWID", - "CREATE TABLE IF NOT EXISTS st_rec(id BLOB PRIMARY KEY, path_key TEXT NOT NULL, bucket INTEGER NOT NULL, row BLOB NOT NULL) WITHOUT ROWID", - "CREATE INDEX IF NOT EXISTS st_rec_pk ON st_rec(path_key)", - "CREATE INDEX IF NOT EXISTS st_rec_b ON st_rec(bucket, id)", + RECORD_TABLE, + RECORD_PATH_INDEX, + RECORD_BUCKET_INDEX, "CREATE TABLE IF NOT EXISTS st_link(k TEXT NOT NULL, id BLOB NOT NULL, PRIMARY KEY(k, id)) WITHOUT ROWID", "CREATE INDEX IF NOT EXISTS st_link_id ON st_link(id)", "CREATE TABLE IF NOT EXISTS st_uniq(f TEXT NOT NULL, v TEXT NOT NULL, id BLOB NOT NULL, PRIMARY KEY(f, v, id)) WITHOUT ROWID", @@ -340,6 +344,26 @@ fn stage_records(records: &[RecordRow], out: &mut Vec) -> StoreResult<()> Ok(()) } +/// Promote the staged document B-tree in the swap transaction. Copying its +/// overflow pages into a second table dominates the browser's OPFS writes. +/// SQLite keeps index names on rename, so rebuild both pairs under their +/// canonical names before publishing the head. +fn promote_staged_records(out: &mut Vec) { + for sql in [ + "DROP TABLE st_rec", + "DROP INDEX sg_rec_pk", + "DROP INDEX sg_rec_b", + "ALTER TABLE sg_rec RENAME TO st_rec", + RECORD_PATH_INDEX, + RECORD_BUCKET_INDEX, + ] { + out.push(st(sql, vec![])); + } + for sql in [RECORD_TABLE, RECORD_PATH_INDEX, RECORD_BUCKET_INDEX] { + out.push(st(&sql.replace("st_", "sg_"), vec![])); + } +} + fn enc(c: Cbor) -> StoreResult> { cbor::encode(&c).map_err(|_| corrupt("CBOR input")) } @@ -1746,6 +1770,10 @@ impl SqlStore { Stage::Swap => { // Confirmed state becomes the staging area, which ends empty. for t in CONFIRMED { + if *t == "rec" { + promote_staged_records(&mut s); + continue; + } s.push(st(&format!("DELETE FROM st_{t}"), vec![])); s.push(st( &format!("INSERT INTO st_{t} SELECT * FROM sg_{t}"), diff --git a/runtime/crates/store-file/src/sql_bases.rs b/runtime/crates/store-file/src/sql_bases.rs index 9c859a868..144838da7 100644 --- a/runtime/crates/store-file/src/sql_bases.rs +++ b/runtime/crates/store-file/src/sql_bases.rs @@ -15,9 +15,7 @@ use mdbn_replica::store::{RecordRow, Stage, StoreError, StoreResult, Tx}; use mdbn_wire::cbor::{self, Cbor}; use mdbn_wire::schema::Wire; -use crate::index::{ - Batch, BatchMode, IndexError, IndexErrorKind, IndexStorage, SqlValue, Stmt, StmtResult, -}; +use crate::index::{Batch, BatchMode, IndexError, IndexErrorKind, IndexStorage, SqlValue, Stmt}; pub(crate) const SCHEMA: &[&str] = &[ "CREATE TABLE IF NOT EXISTS st_qraw_state(slot INTEGER PRIMARY KEY CHECK(slot=0),generation BLOB NOT NULL,ready INTEGER NOT NULL CHECK(ready IN (0,1)),version INTEGER NOT NULL)", @@ -174,7 +172,7 @@ fn state(index: &Rc>) -> StoreResult( index: &Rc>, ids: &[&[u8]], -) -> StoreResult> { +) -> StoreResult> { if ids.is_empty() { return Ok(Vec::new().into_iter()); } @@ -183,10 +181,24 @@ fn backfill_sources( } else { (2 << 20) / ids.len() as i64 }; - let stmts = ids.iter().map(|id| Stmt::new( - "SELECT CASE WHEN length(row)<=? THEN row WHEN length(row)<=? THEN length(row) END FROM st_rec WHERE id=?", - vec![SqlValue::Integer(per_row), SqlValue::Integer(MAX_RECORD_BLOB), blob(id)], - )).collect(); + // A left join keeps the slot of a missing or over-bound source. The + // ordinal also preserves caller order for ordinary, unsorted write batches. + let mut stmts = Vec::new(); + let max_ids = crate::index_codec::CodecLimits::HOSTED.max_parameters - 2; + for chunk in ids.chunks(max_ids) { + let slots = (0..chunk.len()) + .map(|i| format!("(?,{i})")) + .collect::>() + .join(","); + let mut params = vec![ + SqlValue::Integer(per_row), + SqlValue::Integer(MAX_RECORD_BLOB), + ]; + params.extend(chunk.iter().map(|id| blob(id))); + stmts.push(Stmt::new(format!( + "SELECT CASE WHEN length(row)<=? THEN row WHEN length(row)<=? THEN length(row) END FROM (VALUES {slots}) LEFT JOIN st_rec ON id=column1 ORDER BY column2" + ), params)); + } let results = index .borrow_mut() .run(&Batch { @@ -194,25 +206,32 @@ fn backfill_sources( stmts, }) .map_err(error)?; - if results.len() != ids.len() || results.iter().any(|r| r.columns != 1 || r.values.len() > 1) { + if results.len() != ids.len().div_ceil(max_ids) + || results + .iter() + .zip(ids.chunks(max_ids)) + .any(|(result, chunk)| result.columns != 1 || result.values.len() != chunk.len()) + { return Err(corrupt()); } - Ok(results.into_iter()) + Ok(results + .into_iter() + .flat_map(|result| result.values) + .collect::>() + .into_iter()) } fn backfill_row( index: &Rc>, id: &[u8], - mut source: StmtResult, + mut source: SqlValue, ) -> StoreResult> { - if matches!(source.values.as_slice(), [SqlValue::Integer(size)] if (1..=MAX_RECORD_BLOB).contains(size)) - { + if matches!(source, SqlValue::Integer(size) if (1..=MAX_RECORD_BLOB).contains(&size)) { source = backfill_sources(index, &[id])?.next().ok_or_else(corrupt)?; } - match source.values.as_slice() { - [] | [SqlValue::Null] => Ok(None), - [value] => crate::sql::record_d(value).map(Some), - _ => Err(corrupt()), + match source { + SqlValue::Null => Ok(None), + value => crate::sql::record_d(&value).map(Some), } } diff --git a/runtime/crates/store-file/src/sql_bases/tests.rs b/runtime/crates/store-file/src/sql_bases/tests.rs index 672124a86..39a842e35 100644 --- a/runtime/crates/store-file/src/sql_bases/tests.rs +++ b/runtime/crates/store-file/src/sql_bases/tests.rs @@ -159,6 +159,7 @@ impl IndexStorage for Probe { assert!(statement.sql.contains("CASE WHEN length(row)<=?")); Ok(vec![StmtResult { columns: 1, + values: vec![SqlValue::Null; statement.params.len() - 2], ..StmtResult::default() }]) } diff --git a/runtime/crates/wasm/src/app_index.rs b/runtime/crates/wasm/src/app_index.rs index feae8e68e..18db62187 100644 --- a/runtime/crates/wasm/src/app_index.rs +++ b/runtime/crates/wasm/src/app_index.rs @@ -13,9 +13,7 @@ use mdbn_store_file::index::{ Batch, BatchMode, IndexDurability, IndexError, IndexErrorKind, IndexInfo, IndexStorage, OpenState, Stmt, StmtResult, }; -use mdbn_store_file::index_codec::{ - CodecLimits, IndexReply, IndexRequest, decode_reply, encode_request, -}; +use mdbn_store_file::index_codec::{CodecLimits, IndexReply, decode_reply, encode_batch}; /// Must equal the optional TS app-storage bridge's envelope. pub const LIMITS: CodecLimits = CodecLimits { @@ -66,12 +64,10 @@ impl AppIndex { "app index fenced; reopen and reconcile", ) } - fn execute(&mut self, batch: Batch) -> Result, IndexError> { - let stmts = batch.stmts.len(); - let request = - encode_request(&IndexRequest::Run(batch), LIMITS).map_err(|_| self.failure())?; + fn execute(&mut self, mode: BatchMode, stmts: &[Stmt]) -> Result, IndexError> { + let request = encode_batch(mode, stmts, LIMITS).map_err(|_| self.failure())?; let reply = self.host.run(&request).ok_or_else(|| self.failure())?; - match decode_reply(&reply, LIMITS, Some(stmts)).map_err(|_| self.failure())? { + match decode_reply(&reply, LIMITS, Some(stmts.len())).map_err(|_| self.failure())? { IndexReply::Results(results) => Ok(results), IndexReply::Error(error) => { self.fenced = true; @@ -85,11 +81,8 @@ impl AppIndex { } /// One transaction-control statement on the host connection. fn control(&mut self, sql: &str) -> Result<(), IndexError> { - self.execute(Batch { - mode: BatchMode::Autocommit, - stmts: vec![Stmt::new(sql, Vec::new())], - }) - .map(|_| ()) + self.execute(BatchMode::Autocommit, &[Stmt::new(sql, Vec::new())]) + .map(|_| ()) } } /// Every statement is a `SELECT`: it cannot write, so inside a window it @@ -115,23 +108,20 @@ impl IndexStorage for AppIndex { return Err(self.failure()); } if !self.deferred { - return self.execute(batch.clone()); + return self.execute(batch.mode, &batch.stmts); } match batch.mode { // Inside the window's transaction. It needs no savepoint to stay // atomic: a statement that fails fences this handle for good, so // the window holding the cut-short batch is never committed. - BatchMode::Transaction => self.execute(Batch { - mode: BatchMode::Autocommit, - stmts: batch.stmts.clone(), - }), + BatchMode::Transaction => self.execute(BatchMode::Autocommit, &batch.stmts), BatchMode::Autocommit => { // Statements outside a transaction that may write keep their // own commit: the window closes first. if !plain_reads(batch) { self.defer_sync(false)?; } - self.execute(batch.clone()) + self.execute(batch.mode, &batch.stmts) } } } @@ -159,7 +149,7 @@ impl IndexStorage for AppIndex { mod tests { use super::*; use mdbn_store_file::index::{BatchMode, SqlValue, Stmt}; - use mdbn_store_file::index_codec::{decode_request, encode_reply}; + use mdbn_store_file::index_codec::{IndexRequest, decode_request, encode_reply}; use std::{cell::Cell, rc::Rc}; struct Echo; impl AppSqlHost for Echo { From 1f9c2965a3e7198eb2a2ed0c409dde5dfdef11fc Mon Sep 17 00:00:00 2001 From: mdbase release automation Date: Sun, 29 Nov 2026 00:25:58 +1100 Subject: [PATCH 2/3] Pin the verified Stage 4 application runtime --- runtime/packages/sdk/scripts/runtime-methods.json | 2 +- runtime/packages/sdk/src/application/asset-pins.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/packages/sdk/scripts/runtime-methods.json b/runtime/packages/sdk/scripts/runtime-methods.json index 9041a9315..26cc2b5bc 100644 --- a/runtime/packages/sdk/scripts/runtime-methods.json +++ b/runtime/packages/sdk/scripts/runtime-methods.json @@ -1,6 +1,6 @@ { "source": { - "commit": "e703c4a6c7d65d60233e2093c480d9f8c3b28773", + "commit": "5c481c30ff05b4b3a79425d8d3c395f8ad16a49b", "path": "runtime/crates/replica/src/frames.rs" }, "methods": [ diff --git a/runtime/packages/sdk/src/application/asset-pins.json b/runtime/packages/sdk/src/application/asset-pins.json index b177947c1..eb32848ca 100644 --- a/runtime/packages/sdk/src/application/asset-pins.json +++ b/runtime/packages/sdk/src/application/asset-pins.json @@ -1,11 +1,11 @@ { "runtime": { - "sha256": "bc0ece9ff1f987117ecb040b074278851284a3d828573a3f76c894683962afc7", - "bytes": 4140456, - "maxBytes": 4140456, + "sha256": "5ef991a30f99fdcca221058ff260bd932156559d42d693e5b5d504400ce15a2f", + "bytes": 4142486, + "maxBytes": 4142486, "source": { "repository": "mdbase-dev/mdbase-connect", - "commit": "e703c4a6c7d65d60233e2093c480d9f8c3b28773" + "commit": "5c481c30ff05b4b3a79425d8d3c395f8ad16a49b" } }, "sqlite": { From 9b94bb14254824d9962fb32e3b25f17b788a83fd Mon Sep 17 00:00:00 2001 From: mdbase release automation Date: Sun, 29 Nov 2026 00:47:48 +1100 Subject: [PATCH 3/3] Pin the path-remapped application WASM built by Runtime CI --- runtime/packages/sdk/scripts/runtime-methods.json | 2 +- runtime/packages/sdk/src/application/asset-pins.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/packages/sdk/scripts/runtime-methods.json b/runtime/packages/sdk/scripts/runtime-methods.json index 26cc2b5bc..b6cf5814b 100644 --- a/runtime/packages/sdk/scripts/runtime-methods.json +++ b/runtime/packages/sdk/scripts/runtime-methods.json @@ -1,6 +1,6 @@ { "source": { - "commit": "5c481c30ff05b4b3a79425d8d3c395f8ad16a49b", + "commit": "1f9c2965a3e7198eb2a2ed0c409dde5dfdef11fc", "path": "runtime/crates/replica/src/frames.rs" }, "methods": [ diff --git a/runtime/packages/sdk/src/application/asset-pins.json b/runtime/packages/sdk/src/application/asset-pins.json index eb32848ca..9fbe869bf 100644 --- a/runtime/packages/sdk/src/application/asset-pins.json +++ b/runtime/packages/sdk/src/application/asset-pins.json @@ -1,11 +1,11 @@ { "runtime": { - "sha256": "5ef991a30f99fdcca221058ff260bd932156559d42d693e5b5d504400ce15a2f", - "bytes": 4142486, - "maxBytes": 4142486, + "sha256": "d5452814d656c9611d0be04a934278d88ca8c83d3e823353f9842811a63a4795", + "bytes": 4141990, + "maxBytes": 4141990, "source": { "repository": "mdbase-dev/mdbase-connect", - "commit": "5c481c30ff05b4b3a79425d8d3c395f8ad16a49b" + "commit": "1f9c2965a3e7198eb2a2ed0c409dde5dfdef11fc" } }, "sqlite": {