crates.sage_inspector.inspection.source_evidence

Inspector integration evidence starts from Rust source. A checked-in Cargo sample project enters through the production workspace host, live inspection provider, actor, and Axum server. Reviewed snapshots record returned values and demand; precomputed JSON and scripted semantic providers never supply results to an integration test. This is the Inspector-local consequence of Semantic evidence starts from source.

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

Implementation

Implemented crates/sage-inspector/src/server.rs:69–74

sage_inspector::server · lib:sage_inspector

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_inspector.inspection.source_evidence`
pub async fn run_server(listener: TcpListener, client: InspectionClient) -> std::io::Result<()> {
    axum::serve(listener, router(client)).await
}

async fn revision(State(state): State<AppState>) -> ApiResponse<()> {

}

See more source ↗

Implemented src/main.rs:102–107

sage · bin:cargo-sage

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_inspector.inspection.source_evidence`
fn run_inspector(
    project_dir: std::path::PathBuf,
    packages: Vec<String>,
    port: u16,
    no_open: bool,

}

See more source ↗

Implemented tests/semantic_inspector.rs:99–104

sage · test:semantic_inspector

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_inspector.inspection.source_evidence`
fn inspector_project() -> std::path::PathBuf {
    std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
        .join("test-projects/semantic-inspector/db-drop-guard")
}


}

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_source_evidence

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

#![allow(unused)]
fn main() {
#[test]
    #[sage::test(crates.sage_inspector.inspection.source_evidence)]
    fn crates_sage_inspector_inspection_source_evidence() {
        // TODO: Associate and review the complete evidence for Backend and browser integration tests
        // launch the real command over the same sample project, drive production routes, and snapshot
        // the returned values, visible UI, and actor/query demand. A source edit must change results
        // only through the live database; no snapshot is read as an API response.
    }
}

See more source ↗

Review: Accepted · Codex anchor_036 fresh CI review.

Fresh source assessment of crates.sage_inspector.inspection.source_evidence. The claim requires Rust-source integration inputs in a checked-in Cargo project, traversal through the production workspace host/live inspection provider/actor/Axum, output snapshots of values and demand, and exclusion of precomputed JSON or scripted semantic providers as semantic-result suppliers. The captured architectural-foundations section distinguishes focused unit tests or injected OS failures from semantic end-to-end evidence.

All three ordinary implementation entries were inspected. tests/semantic_inspector.rs::inspector_project selects test-projects/semantic-inspector/db-drop-guard. The captured Cargo.toml defines the db-drop-guard library and the captured src/lib.rs contains Db, DbDropGuard, and the db method returning self.db.clone(). src/main.rs::run_inspector opens SageHost::try_open with the working directory/package choice, constructs a LiveInspectionProvider borrowing that host, moves it into serve_actor on the database actor thread, and passes the typed InspectionClient to the production server. crates/sage-inspector/src/server.rs::run_server calls axum::serve over router(client); the actual session/symbol/product/run routes delegate to that client and encode its returned values. The captured actor dispatch calls the supplied provider and records each demand; there is no fixture JSON result injection in this path.

The current real_command_serves_embedded_assets_and_correlated_request_logs scenario launches CARGO_BIN_EXE_cargo-sage with sage inspect --port 0 --no-open in that Cargo project. It extracts the actual readiness URL, sends TCP HTTP requests, derives the selected method path, advertised identity URL and run identifier from returned responses, and asserts protocol version, local root, db label, product title and run kind. It snapshots the real revision/identity/error responses and constructs the visible-summary/demand snapshot from live response values and inspection-request events read from child stderr. The twelve-event length and exact request/operation/argument/status/run snapshot make the demand observations concrete. Expected snapshots are only comparison targets; neither those strings nor a scripted semantic provider supplies the responses. Asset/fallback and occupied-port assertions are transport/OS boundary checks, not substitutes for semantic execution.

Other supplied source-driven scenarios open the same project using run_sage_host_with and LiveInspectionProvider. real_symbol_index_is_complete_local_and_detail_free inspects returned labels, reflection shapes and cold/warm query demand. edit_matrix_distinguishes_relevant_execution_from_unrelated_validation changes source through FileUpdate, compares before/after typed-IR values, and asserts executed-body versus validated work. retained_host_separates_edits_from_demand_and_preserves_symbol_paths tests live edits and source-derived references. These show meaningful partial backend evidence; they do not by themselves establish a complete browser UI acceptance scenario. Synthetic tracked-query probes and FakeWatcher unit tests do not masquerade as source-derived semantic integration results.

The entire formally associated test set consists of sage_meta::todo::crates_sage_inspector_inspection_source_evidence. Its body has no assertions. Its explicit prerequisite is to associate and review complete backend and browser integration evidence that launches the real command over the same sample, drives production routes, snapshots returned values/visible UI/actor-query demand, and demonstrates source edits taking effect only through the live database. I accept this as a visible evidence-completion deferral: the existing command and provider scenarios are substantive partial support, but the TODO is not counted as passing behavioral verification, and full browser/source-edit integration coverage is not approved as complete. No N/A entries exist. All claim requirements have either concrete source-path support above or remain within that explicit comprehensive-evidence TODO. I found no contradictory precomputed semantic-result supplier in the reviewed paths and request no changes for this refresh.

This refresh executed review start/read and source inspection only, followed by review record; it made no Rust edits and ran no behavioral tests or build. Central test execution is assigned to the coordinator, and no earlier test result or prior verdict is used as current execution evidence. Dependencies used for this judgment were captured with review read, including the checked-in fixture, actor dispatch, source-evidence rationale and review-decision rule.

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