ScanRuntimePlan

Struct ScanRuntimePlan 

Source
pub(crate) struct ScanRuntimePlan {
    pub(crate) root: PathBuf,
    pub(crate) config: Option<AtlasMapConfig>,
    selected_config_path: Option<PathBuf>,
    config_path_override: Option<PathBuf>,
    pub(crate) scan_options: ScanOptions,
    pub(crate) text_options: TextIndexOptions,
    text_index_max_bytes_override: Option<u64>,
    optional_parser_selection: OptionalParserPackProjectSelection,
}
Expand description

Resolved scan runtime policy shared by CLI and MCP adapters.

Fields§

§root: PathBuf

Canonical project root.

§config: Option<AtlasMapConfig>

Optional ProjectAtlas config discovered for the root.

§selected_config_path: Option<PathBuf>

Exact config file selected for this plan, if one exists.

§config_path_override: Option<PathBuf>

Explicit config selector supplied by the caller, if any.

§scan_options: ScanOptions

Filesystem scanner options derived from config.

§text_options: TextIndexOptions

SQLite text-index options derived from config and command override.

§text_index_max_bytes_override: Option<u64>

Explicit text-index limit supplied by the caller, if any.

§optional_parser_selection: OptionalParserPackProjectSelection

Content-free optional parser selection bound into derived publication identity.

Implementations§

Source§

impl ScanRuntimePlan

Source

pub(crate) fn for_path( config_path: Option<&Path>, path: &Path, text_index_max_bytes: Option<u64>, ) -> Result<Self, CliError>

Resolve scan policy for one project path.

Source

pub(crate) fn for_path_controlled( config_path: Option<&Path>, path: &Path, text_index_max_bytes: Option<u64>, control: &IndexWorkControl, ) -> Result<Self, CliError>

Resolve scan policy through the operation-owned bounded config reader.

Source

fn for_path_controlled_with_limits( config_path: Option<&Path>, path: &Path, text_index_max_bytes: Option<u64>, control: &IndexWorkControl, purpose_limits: PurposeImportLimits, ) -> Result<Self, CliError>

Resolve scan policy under explicit authored-input limits used by focused tests.

Source

fn reload(&self) -> Result<Self, CliError>

Reload the effective filesystem and text policy from current local state.

Source

fn reload_controlled( &self, control: &IndexWorkControl, ) -> Result<Self, CliError>

Reload effective policy through the operation-owned bounded input reader.

Source

fn reload_controlled_with_limits( &self, control: &IndexWorkControl, purpose_limits: PurposeImportLimits, ) -> Result<Self, CliError>

Reload effective policy under explicit authored-input limits used by focused tests.

Source

fn publication_contract_fingerprint(&self) -> String

Hash the durable parser and configured source/index policy contract.

Request-scoped text limits control one scan or watcher operation but do not become project compatibility state that later reads must repeat.

Source

fn purpose_import_snapshot_controlled( &self, nodes: &[Node], control: &IndexWorkControl, ) -> Result<PurposeImportSnapshot, CliError>

Capture every purpose input from one existing controlled repository scan.

Source

fn purpose_import_snapshot_controlled_with_limits( &self, nodes: &[Node], control: &IndexWorkControl, limits: PurposeImportLimits, ) -> Result<PurposeImportSnapshot, CliError>

Capture purpose inputs under explicit limits used by focused tests.

Source

fn purpose_import_fingerprint_for_records_controlled_with_limits( &self, records: &[ImportedPurposeRecord], control: &IndexWorkControl, limits: PurposeImportLimits, ) -> Result<String, CliError>

Recheck external purpose inputs while reusing records from exact unchanged source nodes.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,