Reuse native checkpoints before source length changes

This commit is contained in:
gloamxun committed 2026-12-01 21:42:04 +08:00
1 parent 465a574124
commit 6acd82dbfa
8 files changed
+222 -4

No files matched your search

@@ -376,6 +376,11 @@ pub trait SourceProvider {
) -> Result<(), String> {
Ok(())
}
/// Size of the entry read already validated by the host's prefix replay.
/// Hosts that report resource telemetry can opt in to resizing that read.
fn replayed_entry_bytes(&self) -> Option<u64> {
None
}
/// Observe resource accounting while preserving the typed report for replay.
fn observe_statistics(&mut self, report: &StatisticsReport) -> Result<(), String> {
self.observe_diagnostic(report.destination, &report.text)