Module graph_projection

Module graph_projection 

Source
Expand description

Normalize parser-owned symbol facts into one generation-bound repository graph.

StructsΒ§

DerivedRelationFact πŸ”’
One conservative additive relation derived from already bounded parser facts.
EntityProjection πŸ”’
Entity/key facts prepared before relation resolution.
GraphOwners πŸ”’
File and symbol entities associated with one parser graph.
GraphSymbolIndex πŸ”’
Borrowed per-graph symbol lookup used by every relation in that file.
PackageIndex πŸ”’
Package names assigned by longest manifest-directory ownership.
PackageOwner πŸ”’
One Cargo package and its owning repository prefix.
ProjectResolutionRegistry πŸ”’
Project-wide stable entities and their canonical resolution-key bindings.
ProjectedGraphRows πŸ”’
One graph’s normalized rows, bounded by the parser graph already in memory.
ResolutionMatches πŸ”’
Resolve one relation from canonical dependency keys and bounded candidates.
StagedGraphDatabase πŸ”’
File-backed graph rows staged outside the main database writer transaction.
StagedRepositoryGraph πŸ”’
Complete normalized graph and canonical-key rows waiting for publication.

EnumsΒ§

DerivedRelationTarget πŸ”’
Closed target classes accepted by additive relation projection.
RepositoryGraphMutation πŸ”’
One graph mutation staged outside the database writer transaction.

ConstantsΒ§

CARGO_PACKAGE_MANAGER πŸ”’
Stable package manager for currently extracted Cargo manifest ownership.
CONFIGURATION_SYSTEM πŸ”’
External namespace for content-free configuration identities.
DEPLOYMENT_SYSTEM πŸ”’
External namespace for content-free deployment platform identities.
ENVIRONMENT_SYSTEM πŸ”’
External namespace for static environment-variable identities.
GRAPH_STAGE_DATABASE_FILE_NAME πŸ”’
Typed disposable database inside every owned staging directory.
GRAPH_STAGE_DIRECTORY_PREFIX πŸ”’
Direct child prefix owned by disposable graph staging.
GRAPH_STAGE_ENTITY_BATCH_SIZE πŸ”’
Borrowed entity references inserted per disposable staging call.
GRAPH_STAGE_LEASE_FILE_NAME πŸ”’
Stable cross-process lease protecting active staging and restart cleanup.
GRAPH_STAGE_OWNER_UNAVAILABLE πŸ”’
Internal invariant failure for a staging owner already entering teardown.
GRAPH_STAGE_ROW_BATCH_SIZE πŸ”’
Maximum normalized graph rows retained between disposable staging writes.
GRAPH_WORK_CHECK_INTERVAL πŸ”’
Maximum graph-map rows processed between cooperative cancellation checks.
MAX_GRAPH_KEY_BINDINGS πŸ”’
Maximum persisted key bindings retained by one complete in-memory graph projection.
MAX_INCREMENTAL_GRAPH_BYTES πŸ”’
Maximum conservative graph bytes admitted before requesting a complete refresh.
MAX_INCREMENTAL_GRAPH_ROWS πŸ”’
Maximum aggregate normalized graph rows admitted by one incremental closure.
MAX_INCREMENTAL_RESOLUTION_ITEMS πŸ”’
Maximum canonical keys or distinct source paths admitted by one incremental closure.
MAX_IN_MEMORY_GRAPH_WORK_BYTES πŸ”’
Maximum simultaneous parser/entity/key bytes before rows spill to typed SQLite staging.
NODE_SYSTEM πŸ”’
Stable external namespace for explicitly qualified Node.js built-ins.
PARTIAL_COVERAGE_REASON πŸ”’
Honest coverage diagnostic for fallback or structural relation extraction.
PERSISTED_GRAPH_PATHS_PER_CHUNK πŸ”’
Maximum persisted symbol-graph paths reconstructed between work checks.
RUST_TOOLCHAIN_SYSTEM πŸ”’
Stable external namespace for the Rust standard-library distribution.
STAGED_GRAPH_ROW_BYTES πŸ”’
Conservative fixed bytes counted for each staged graph or binding row.
UNKNOWN_REFERENCE πŸ”’
Stable fallback for a parser relation that omitted a usable display target.

FunctionsΒ§

admitted_persisted_footprint πŸ”’
Load and admit the persisted rows that an incremental replacement will remove.
build_entity_projection_with_config πŸ”’
Project entity/key facts with one shared configured-module snapshot.
call_leaf πŸ”’
Return the normalized leaf of one qualified call target.
check_graph_work πŸ”’
Observe cancellation and deadline state at bounded graph-map intervals.
cleanup_abandoned_graph_staging πŸ”’
Remove only validated, inactive disposable graph stages left by an earlier process.
cleanup_abandoned_graph_staging_while_locked πŸ”’
Remove direct child stages whose typed database binds the exact project.
cleanup_abandoned_repository_graph_staging πŸ”’
Remove inactive disposable graph stages owned by the selected project.
common_rust_path πŸ”’
Return the non-empty common Rust module path shared by two imports.
complete_symbol_graphs πŸ”’
Overlay staged symbol changes on persisted graphs for exact selected paths.
configuration_file_identity πŸ”’
Classify one exact repository configuration filename without reading values.
coverage_for_graph πŸ”’
Project parser trust into one path-scoped coverage record.
dependency_closure_limit πŸ”’
Construct deterministic full-refresh guidance for an oversized dependency closure.
deployment_platform_identity πŸ”’
Classify one accepted infrastructure path into a content-free platform.
derived_parser_relation πŸ”’
Copy source context while replacing only the statically selected target.
derived_relation_facts πŸ”’
Derive additive families only from exact bounded parser facts and path policy.
derived_relation_resolution πŸ”’
Resolve one additive relation through its closed target class.
distinct_resolution_count πŸ”’
Convert one exact distinct target count without truncation.
enforce_incremental_count πŸ”’
Enforce one path/key count before incremental graph work expands further.
enforce_incremental_projection_budget πŸ”’
Return typed full-refresh guidance when an incremental projection exceeds a bound.
enforce_incremental_projection_limits πŸ”’
Enforce aggregate old-removal and new-insertion work for one closure.
enforce_key_binding_limit πŸ”’
Enforce the complete-projection ceiling for canonical key bindings.
enforce_resolution_match_budget πŸ”’
Bound temporary maps and heap storage used while selecting relation targets.
enforce_resolution_registry_budget πŸ”’
Reject a temporary resolution registry before it can exceed publication memory.
enforce_resolution_staging_budget πŸ”’
Reject the simultaneous entity projection and lookup registry peak.
entity_owner_path πŸ”’
Return the source-owner path for entities eligible to export graph keys.
entity_retained_bytes πŸ”’
Count conservative fixed and variable bytes retained by one graph entity.
explicit_external_selector πŸ”’
Return one explicit external identity without guessing ordinary missing packages.
external_reference_identity πŸ”’
Normalize one explicit non-empty external reference.
file_has_extension πŸ”’
Match one exact extension without platform case assumptions.
file_owned_relation πŸ”’
Create one file-owned content-free configuration or deployment fact.
finish_projection πŸ”’
Resolve staged relationships and finish one complete normalized graph batch.
finish_projection_in_database πŸ”’
Spill a large full graph to typed disposable SQLite rows before main publication.
insert_entity πŸ”’
Insert one stable entity while rejecting digest collisions.
insert_relation πŸ”’
Deduplicate relation occurrences while conservatively retaining ambiguity.
invalid_graph_contract πŸ”’
Translate a graph-domain contract violation for the CLI boundary.
is_cargo_manifest_path πŸ”’
Return whether one normalized repository path is a Cargo package manifest.
is_test_path πŸ”’
Return whether a repository path is an accepted test-source location.
local_relation_matches πŸ”’
Resolve exact declarations owned by the relation’s source file.
merge_resolution_registries πŸ”’
Merge normalized candidate registries while retaining one entity per digest.
next_generation πŸ”’
Return the pending graph generation after one successful publication.
node_builtin_identity πŸ”’
Recognize only the explicit node: built-in module scheme.
nonempty_reference πŸ”’
Normalize an empty parser reference into one stable diagnostic identity.
normalize_static_repository_path πŸ”’
Normalize one static relative source literal into a repository path.
project_graph_rows πŸ”’
Resolve one parser graph and release its temporary owner/key workspace.
push_derived_relation πŸ”’
Retain one additive fact from the already bounded parser graph.
qualified_symbol_parents πŸ”’
Qualify graph-only parent identity from the parser’s existing containment rows.
quoted_ecmascript_module πŸ”’
Read the explicit quoted module from one parser-validated ECMAScript import.
registry_resolution_matches πŸ”’
Merge sorted candidate streams without materializing their full union.
relation_completeness πŸ”’
Map parser strength to relation completeness.
relation_confidence πŸ”’
Map parser strength to relation confidence.
relation_reference πŸ”’
Keep call arguments and literal values out of persisted relation diagnostics.
relation_resolution πŸ”’
Resolve one relation from canonical dependency keys and bounded candidates.
relation_source πŸ”’
Resolve one parser relation’s unique local source entity when possible.
remove_graph_stage_symlink πŸ”’
Remove only a graph-stage symlink leaf, never its target.
remove_owned_graph_stage_payload πŸ”’
Remove stage payloads while retaining the validated ownership database as a crash marker.
repository_path_belongs_to πŸ”’
Return whether one path belongs to a normalized repository prefix.
resolution_projection_with_config πŸ”’
Derive canonical resolution keys with repository compiler configuration.
resolution_registry_from_exports πŸ”’
Build current resolution candidates from newly staged entity exports.
resolution_registry_from_persisted πŸ”’
Rebind unaffected persisted candidates to the pending graph generation.
resolution_retained_bytes πŸ”’
Count conservative retained canonical resolution-key bytes.
rust_import_identity πŸ”’
Return one explicitly toolchain-owned Rust import identity.
rust_toolchain_identity πŸ”’
Recognize only explicitly qualified Rust toolchain roots.
rust_toolchain_root πŸ”’
Return the accepted toolchain root of one Rust module path.
selected_project πŸ”’
Load the project identity required by normalized graph projection.
sort_dedup_dependencies πŸ”’
Sort and deduplicate relation dependency bindings by canonical key and owner.
sort_dedup_exports πŸ”’
Sort and deduplicate entity export bindings by canonical identity and owner.
stage_full_repository_graph πŸ”’
Stage a complete repository graph from current parser output plus safe reused graphs.
stage_incremental_repository_graph πŸ”’
Stage one bounded dependency-aware graph closure for an incremental publication.
static_data_access_kind πŸ”’
Classify a call as one accepted bounded static read or write API.
static_environment_key πŸ”’
Extract one static environment key without retaining its value.
static_route_handler πŸ”’
Extract one exact handler identifier from a static route registration.
static_string_argument πŸ”’
Return the first argument only when it is one complete static string literal.
try_graph_stage_lease πŸ”’
Acquire the one project-local graph-staging lease without waiting.
unique_source_parent πŸ”’
Return one unambiguous containing scope for the parser relation source.