#[non_exhaustive]pub struct IndexedConfig {
pub max_delta_chain_depth: u32,
pub relay_lag_bound_ms: u64,
pub max_pack_bytes: u64,
pub decode_budget: u64,
pub extract_min_bytes: u64,
pub max_extract_bytes: Option<u64>,
pub verification: VerificationMode,
pub max_ancestry_commits: u32,
}Expand description
Limits for opt-in indexed mode. A deployment cannot switch an existing
opaque repository to indexed mode: its member packs have no i rows.
Native embedders configure it programmatically; Workers enable it through
the Paid Workers launch profile with scheduled verification, permanent retention
and GC disabled. Async inspection and holds remain post-launch features.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_delta_chain_depth: u32Maximum total delta chain depth across in-pack and member bases.
relay_lag_bound_ms: u64Repository membership lag window in milliseconds.
max_pack_bytes: u64Largest accepted indexed pack.
decode_budget: u64Whole-pack decoding budget; at least max_pack_bytes. Each canonical
entry and encoded frame also obeys geometry, in either verification mode.
extract_min_bytes: u64Least Blob size extracted into the global object store, at least 1. Never advertised (SPEC-SERVER §9.6).
max_extract_bytes: Option<u64>Most content bytes one advance may reassemble into the object store,
and most member bytes it may resolve to do so. A small manifest over
many member chunks amplifies into a large reassembly; exceeding this
is pack exceeds indexed decode budget. None derives
4 * max_pack_bytes when the pipeline is built; a set value must be
at least max_pack_bytes.
verification: VerificationModeWhere verification runs: inline in the advance, or in checkpointed alarm slices (WP-4.8). Programmatic only.
max_ancestry_commits: u32Most member commits and uncached delta bases one fast-forward check
may resolve (WP-4.17), from 1 to MAX_ANCESTRY_COMMITS_LIMIT.
Beyond it the check is unproven and
the write is denied.
Implementations§
Source§impl IndexedConfig
impl IndexedConfig
Sourcepub fn scheduled(max_pack_bytes: u64) -> Self
pub fn scheduled(max_pack_bytes: u64) -> Self
Scheduled verification (WP-4.8) for packs up to max_pack_bytes, every
other limit at its default; the decode budget is raised to cover the
pack cap when that is larger.
Sourcepub fn effective_max_extract_bytes(&self) -> u64
pub fn effective_max_extract_bytes(&self) -> u64
Self::max_extract_bytes, or 4 * max_pack_bytes when unset.