crates.sage_inspector.inspection.detail_free_index

Local search starts from one complete detail-free index. The browser filters the returned local directory without sending search text or fetching branches. Dependency symbols are excluded. Index construction may use external facts needed for macro expansion, but no broader semantic metadata or item details.

Read in specification context · design/crates/sage_inspector/inspection.sage

Implementation

Implemented crates/sage-ir/src/local_syms/associated.rs:76–81

sage_ir::local_syms::associated · lib:sage_ir

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_inspector.inspection.detail_free_index`
// {anchor}`crates.sage_ir.checking.signature.narrow_detail`
pub fn local_associated_items<'db>(
    db: &'db dyn crate::Db,
    owner: LocalAssociatedOwner<'db>,
) -> &'db [LocalModItemSym<'db>] {

}

See more source ↗

Implemented crates/sage-ir/src/local_syms/mods.rs:558–563

sage_ir::local_syms::mods · lib:sage_ir

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_inspector.inspection.detail_free_index`
#[salsa::tracked]
pub fn module_expansion_complete_for_symbol_listing<'db>(
    db: &'db dyn Db,
    module: LocalModSym<'db>,
) -> bool {

}

See more source ↗

Implemented src/inspector.rs:1825–1830

sage::inspector · lib:sage

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_inspector.inspection.detail_free_index`
fn indexed_symbols<'db>(context: &'db SageContext<'db>) -> Vec<IndexedSymbol<'db>> {
    let crate_name = safe_segment(&context.target.name);
    let root_path = format!("local/{crate_name}");
    let root_display = context.target.name.clone();
    let mut output = vec![IndexedSymbol {

}

See more source ↗

Tests and review

Indexed tests and the implementation-completeness and test-adequacy review; no test run is implied.

TODO sage_meta::todo::crates_sage_inspector_inspection_detail_free_index

crates/sage-meta/tests/service_spec.rs · test:service_spec

#![allow(unused)]
fn main() {
#[test]
    #[sage::test(crates.sage_inspector.inspection.detail_free_index)]
    fn crates_sage_inspector_inspection_detail_free_index() {
        // TODO: Prerequisite: source-backed Inspector integration fixtures with nested modules,
        // associated items, macro-generated items, and dependency symbols, plus a browser request
        // recorder. Assert one complete local index excludes dependency symbols and item details.
        // Snapshot the closed set of directory-construction operation families, including permitted
        // macro metadata, and forbid signatures, bodies, associated values, and impl discovery.
        // Exercise browser filtering and branch expansion against that index; assert matching
        // results, no search-text transmission, and no additional branch or search requests.
        // Associate and review those assertions before replacing this deferred coverage.
    }
}

See more source ↗

Review: Accepted · macro_fix_precedence/detail_free_index.

Reviewed the full detail-free-index claim, all three ordinary implementation associations (inspector, local associated-item membership, module expansion completeness), and the sole TODO test. Captured InspectorApp.tsx and api.ts as additional dependencies for the browser requirements. No production or test source edits were made.

Backend index construction: symbols() calls build_symbol_directory once for a response and retains the directory. indexed_symbols starts at the local crate root; walk_symbols recursively enumerates all represented ownership children into one flat SymbolIndex with parent links. canonical_children filters external symbols before emitting summaries. owned_symbol_children follows local modules, enum variants and directly owned trait/impl associated symbols; it does not enumerate dependency branches. Returned summaries contain identity/presentation/search text/child completeness, not signature/body/value products. local_symbol_presentation reads only origin spans for Source-written/Generated badges. Detailed product rendering and external browsing remain separate paths in inspector.rs.

The associated.rs membership boundary deliberately uses local_associated_items rather than owner.items/sig: it reads parsed associated members and creates keyed identities, not checked signatures or associated values. Copying stored CST to establish identities is distinct from semantic detail queries. mods.rs module_expansion_complete_for_symbol_listing uses the stricter SymbolListing policy; unsupported/unresolved/depth-limited macro contributions make the affected branch explicitly incomplete. The directory thus includes all represented local children and honestly signals unavailable expansion contributions rather than claiming such missing source is complete. Computing membership/completeness may consult macro names, expansion inputs and outputs, and derive metadata as allowed by the claim. The changed local-item helper used for provenance only inspects symbol kind/origin; it does not add signature, checked-body, impl discovery or associated-value demands to index construction.

Browser: InspectorApp bootstrap requests api.symbols with no search argument and stores its entire returned value. SymbolDirectory builds its parent/child map from index.symbols, filters search_text in a local useMemo, and changes a local Set for branch expansion. Search text is maintained in router state/query string; the API symbols endpoint is fixed /api/v1/symbols, and these filtering/toggle paths do not call fetch or branch endpoints. Selecting a symbol is a separate user action. Revision changes may refresh the index; this does not imply per-keystroke search or per-toggle requests.

Verification remains explicitly deferred: service_spec::todo::crates_sage_inspector_inspection_detail_free_index requires source-backed integration fixtures with nested modules, associated/generated items and dependency symbols, a browser request recorder, and a closed-set operation trace proving allowed macro metadata while excluding signatures, bodies, associated values and impl discovery. It also requires actual filtering/expansion results with no search-text or extra branch/search requests. These are necessary negative-demand and transport assertions; names, source inspection and the no-op TODO do not establish them. There are no ordinary behavioral tests or N/A entries associated with this anchor. The existing TODO accurately accounts for this incomplete test evidence, and this review does not relabel it as complete coverage. Only start/read/record commands were executed for this anchor; no browser or integration suite was run. No requested edits.

Browse crates anchors

139 anchors

Specification anchors and declared coverage
AnchorImplementationTests
crates (139)114 Implemented37 TODO2 N/A74 Implemented107 TODO
crates.sage_inspector (15)13 Implemented1 TODO2 N/A3 Implemented15 TODO
crates.sage_inspector.inspection (15)13 Implemented1 TODO2 N/A3 Implemented15 TODO
balanced_tracesImplementedTODO
canonical_ownershipImplementedImplementedTODO
derive_reflectionImplementedImplementedTODO
detail_free_indexImplementedTODO
deterministic_traceImplementedTODO
durable_navigationN/ATODO
generic_browserN/ATODO
owned_reflectionImplementedImplementedTODO
product_availabilityImplementedTODO
revision_and_demandImplementedTODO
semantic_phase_boundaryImplementedTODO
source_evidenceImplementedTODO
typed_serviceImplementedTODO
unknown_workImplementedTODOTODO
workspace_actorImplementedTODO
crates.sage_ir (90)67 Implemented34 TODO40 Implemented88 TODO
crates.sage_ir.checking (12)12 Implemented3 TODO5 Implemented12 TODO
crates.sage_ir.checking.body (5)5 Implemented2 TODO3 Implemented5 TODO
elaborationImplementedImplementedTODO
expected_typesImplementedTODOTODO
interface_dependenciesImplementedImplementedTODO
isolated_completionImplementedImplementedTODO
operator_callsImplementedTODOTODO
identity_mintingImplementedTODO
owned_productsImplementedImplementedTODO
crates.sage_ir.checking.signature (4)4 Implemented1 TODO1 Implemented4 TODO
body_independenceImplementedTODO
narrow_detailImplementedTODOTODO
owner_binderImplementedImplementedTODO
storageImplementedTODO
symbol_keyed_interfacesImplementedTODO
crates.sage_ir.crate (9)9 TODO9 TODO
explicit_restrictionsTODOTODO
identity_before_detailTODOTODO
incremental_evidenceTODOTODO
narrow_demandsTODOTODO
reexecution_and_invalidationTODOTODO
represented_completenessTODOTODO
restrictions_and_gapsTODOTODO
semantic_query_boundariesTODOTODO
terminal_incompletenessTODOTODO
crates.sage_ir.inference (8)8 Implemented6 Implemented8 TODO
atomic_checkingImplementedImplementedTODO
body_local_quiescenceImplementedImplementedTODO
canonical_boundaryImplementedImplementedTODO
completed_body_boundaryImplementedTODO
numeric_domainsImplementedImplementedTODO
subtyping_and_coercionImplementedImplementedTODO
terminal_obligationsImplementedTODO
transaction_isolationImplementedImplementedTODO
crates.sage_ir.metadata (4)4 Implemented1 TODO4 TODO
explicit_incompletenessImplementedTODO
keyed_reuseImplementedTODOTODO
product_boundariesImplementedTODO
provider_authorityImplementedTODO
crates.sage_ir.modules (8)7 Implemented1 TODO4 Implemented8 TODO
crates.sage_ir.modules.expand (4)4 Implemented2 Implemented4 TODO
completenessImplementedImplementedTODO
dependenciesImplementedTODO
direct_membersImplementedTODO
recursion_and_fixpointImplementedImplementedTODO
crates.sage_ir.modules.parse (4)3 Implemented1 TODO2 Implemented4 TODO
dependenciesImplementedTODO
detail_firewallImplementedImplementedTODO
recovery_completenessTODOTODO
syntax_identitiesImplementedImplementedTODO
crates.sage_ir.resolution (5)5 Implemented1 TODO3 Implemented4 TODO
crates.sage_ir.resolution.lookup (5)5 Implemented1 TODO3 Implemented4 TODO
completenessImplementedTODOImplementedTODO
dependenciesImplementedTODO
expansion_import_ambiguityImplementedImplemented
identity_onlyImplementedTODO
precedenceImplementedImplementedTODO
crates.sage_ir.solver (9)7 Implemented7 TODO5 Implemented9 TODO
alternative_isolationImplementedTODOImplementedTODO
bounded_completenessImplementedTODOTODO
candidate_completenessImplementedTODO
canonical_cyclesTODOTODO
canonical_outputsImplementedImplementedTODO
local_index_firewallTODOTODO
normalization_demandImplementedTODOImplementedTODO
schedule_independenceImplementedTODOImplementedTODO
shared_final_resultImplementedTODOImplementedTODO
crates.sage_ir.symbols (8)8 Implemented4 Implemented7 TODO
associated_identityImplementedImplemented
associated_interfacesImplementedTODO
body_interfacesImplementedImplementedTODO
definition_identityImplementedTODO
external_fact_queriesImplementedTODO
external_identityImplementedTODO
kind_wrappersImplementedImplementedTODO
local_identityImplementedImplementedTODO
crates.sage_ir.types (27)16 Implemented12 TODO13 Implemented27 TODO
crates.sage_ir.types.aliases (2)1 Implemented1 TODO1 Implemented2 TODO
identityImplementedImplementedTODO
revelationTODOTODO
crates.sage_ir.types.binder (1)1 Implemented1 TODO1 Implemented1 TODO
owner_parametersImplementedTODOImplementedTODO
crates.sage_ir.types.body (13)4 Implemented9 TODO3 Implemented13 TODO
awaitTODOTODO
closuresTODOTODO
conditional_patternsTODOTODO
coroutinesTODOTODO
diagnosed_recoveryImplementedImplementedTODO
elaboratedTODOImplementedTODO
for_iterationTODOTODO
indexingTODOTODO
macro_expansionTODOTODO
no_inferenceImplementedImplementedTODO
resolved_referencesImplementedTODO
try_residualTODOTODO
typed_provenanceImplementedTODO
crates.sage_ir.types.calls (2)1 Implemented1 TODO1 Implemented2 TODO
dispatch_familiesTODOTODO
selected_semanticsImplementedImplementedTODO
crates.sage_ir.types.lifetimes (2)2 Implemented2 Implemented2 TODO
dummyImplementedImplementedTODO
unchecked_borrowsImplementedImplementedTODO
crates.sage_ir.types.operators (2)2 Implemented1 Implemented2 TODO
lazy_control_flowImplementedTODO
trait_callsImplementedImplementedTODO
scoped_identitiesImplementedTODO
crates.sage_ir.types.spans (4)4 Implemented4 Implemented4 TODO
generated_identityImplementedImplementedTODO
item_originImplementedImplementedTODO
offset_reuseImplementedImplementedTODO
relative_compositionImplementedImplementedTODO
crates.sage_oracle_harness (4)4 Implemented2 TODO1 Implemented4 TODO
crates.sage_oracle_harness.crate (4)4 Implemented2 TODO1 Implemented4 TODO
deterministic_emissionImplementedTODO
exact_comparisonImplementedTODOImplementedTODO
fixed_projectionImplementedTODO
independent_coverageImplementedTODOTODO
crates.sage_stash (5)5 Implemented5 Implemented
crates.sage_stash.storage (5)5 Implemented5 Implemented
handle_ownershipImplementedImplemented
immutable_entriesImplementedImplemented
query_valueImplementedImplemented
rooted_equalityImplementedImplemented
typed_interningImplementedImplemented
crates.sage_test_harness (25)25 Implemented25 Implemented
crates.sage_test_harness.compile_tests (25)25 Implemented25 Implemented
annotation_validationImplementedImplemented
blessing_gateImplementedImplemented
callsite_updatesImplementedImplemented
checking_scopeImplementedImplemented
compiler_conditionsImplementedImplemented
completed_typesImplementedImplemented
coordinatesImplementedImplemented
dependenciesImplementedImplemented
diagnostic_countsImplementedImplemented
diagnostic_locationsImplementedImplemented
editionImplementedImplemented
fixturesImplementedImplemented
grouped_observationsImplementedImplemented
invocationImplementedImplemented
production_executionImplementedImplemented
project_isolationImplementedImplemented
query_captureImplementedImplemented
query_projectionImplementedImplemented
renderingImplementedImplemented
resolved_symbolsImplementedImplemented
review_visibilityImplementedImplemented
rustc_executionImplementedImplemented
rustc_lintsImplementedImplemented
starting_expressionsImplementedImplemented
target_lineImplementedImplemented