Expand description
Process-local source observation for long-lived verified index reads.
StructsΒ§
- Observation
State π - Mutable verified-epoch state serialized for one source binding.
- Source
Binding π - Exact root/database/config identity used to isolate one observer.
- Source
Observation πEntry - Concrete watcher and state for one exact source binding.
- Source
Observation πRegistry - Bounded process-local registry shared by every clone of one MCP server.
- Verified
Read πOutcome - Accepted owned result plus its epoch stamp and measured freshness work.
- Verified
Read πStamp - Exact process-local evidence attached to one accepted
SQLiteread snapshot. - Verified
Read πWork - Measured freshness work consumed before one result was accepted.
- Verified
Source πEpoch - One successfully verified source epoch retained only by this process.
ConstantsΒ§
- MAX_
POLICY_ πINPUT_ BYTES - Maximum bytes read from any one external source-selection policy input.
- SOURCE_
OBSERVATION_ πCAPACITY - Maximum independent project bindings observed by one MCP process.
- SOURCE_
OBSERVATION_ πQUEUE_ CAPACITY - Maximum unprocessed native watcher events retained per project.
- VERIFIED_
READ_ πATTEMPTS - Fixed attempts used to reconcile an edit that overlaps a query or verification.
FunctionsΒ§
- absolute_
path_ πfrom - Resolve a possibly relative path against the canonical source root.
- hash_
field π - Append one domain-separated field to a policy witness.
- hash_
policy_ πfile - Hash one bounded policy file with cancellation checks between chunks.
- is_
database_ πruntime_ path - Return whether a path is the database or one of its runtime sidecar files.
- lock_
error π - Build a root-scoped diagnostic for poisoned observer state.
- observer_
error π - Convert watcher startup failure into a root-scoped observer diagnostic.
- observer_
event_ πchanges - Classify source events without letting this bindingβs own
SQLitefiles self-invalidate it. - process_
nonce π - Generate one process identity, with a deterministic local entropy fallback.
- read_
policy_ πchunk - Read one policy chunk while retaining the file path in any I/O error.
- same_
native_ πpath - Compare normalized native paths using platform case semantics.
- source_
policy_ πpaths - Collect every scanner policy input whose state contributes to source selection.
- source_
policy_ πwitness - Hash the bounded external inputs that may change the scannerβs source selection.
- watcher_
callback π - Convert native watcher callbacks into bounded ingress and continuity state.