Skip to main content

lean_ctx_ext/core/context_prefetch/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2//! Predictive context pre-loading (OSS stub).
3//!
4//! Enterprise pre-caches files based on task triage predictions.
5//! OSS: no-op (no prefetching).
6
7/// Plans prefetch after triage (OSS: no-op).
8pub fn plan_after_triage(_task_class: &str) {}
9
10/// Records a file read for trajectory learning (OSS: no-op).
11pub fn record_file_read(_path: &str) {}
12
13/// Checks if a path was predicted by the prefetch engine (OSS: always false).
14pub fn is_prefetch_prediction(_path: &str) -> bool {
15    false
16}