crates.sage_oracle_harness.crate.independent_coverage

Equality is accepted only after independent coverage. Each emitter accounts for every in-scope item and body and rejects forbidden placeholders before comparison. Paired omission, paired unsupported nodes, or paired debug fallback values therefore cannot satisfy conformance even if the remaining serialized bytes agree.

Read in specification context · design/crates/sage_oracle_harness/crate.sage

Implementation

Implemented crates/sage-oracle-harness/tests/oracle_compare.rs:363–368

sage_oracle_harness::fixture_runner · test:independent_coverage

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_oracle_harness.crate.independent_coverage`
pub(crate) fn run_fixture(fixture: &Fixture, out_dir: &Path) -> Result<(), Failed> {
    let source = fixture.source_text();
    let parsed = sage_oracle_harness::annotations::parse_annotations(&source);

    if !parsed.annotations.is_empty() || parsed.directives.rustc_ok || parsed.directives.rustc_error

}

See more source ↗

TODO crates/sage-oracle-harness/tests/independent_coverage.rs:39–44

sage_oracle_harness::todo · test:independent_coverage

TODO: run_fixture has independent coverage checks for three named fixtures, but lacks generic per-emitter source item/body inventories and rejection of forbidden unsupported/debug placeholders. Implement shared coverage validation and independent source inventories before requiring every fixture to reject paired omissions and placeholders. Keep the existing fixture checks ordinary.

#![allow(unused)]
fn main() {
    // {anchor}`crates.sage_oracle_harness.crate.independent_coverage`
    // TODO: run_fixture has independent coverage checks for three named fixtures,
    // but lacks generic per-emitter source item/body inventories and rejection of
    // forbidden unsupported/debug placeholders. Implement shared coverage validation
    // and independent source inventories before requiring every fixture to reject
    // paired omissions and placeholders. Keep the existing fixture checks ordinary.

}

See more source ↗

Implemented crates/sage-oracle-harness/tests/oracle_compare.rs:363–368

sage_oracle_harness · test:oracle_compare

#![allow(unused)]
fn main() {
// {anchor}`crates.sage_oracle_harness.crate.independent_coverage`
pub(crate) fn run_fixture(fixture: &Fixture, out_dir: &Path) -> Result<(), Failed> {
    let source = fixture.source_text();
    let parsed = sage_oracle_harness::annotations::parse_annotations(&source);

    if !parsed.annotations.is_empty() || parsed.directives.rustc_ok || parsed.directives.rustc_error

}

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_oracle_harness_crate_independent_coverage

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

#![allow(unused)]
fn main() {
#[test]
    #[sage::test(crates.sage_oracle_harness.crate.independent_coverage)]
    fn crates_sage_oracle_harness_crate_independent_coverage() {
        // TODO: Associate and review the complete evidence for Coverage tests independently remove or
        // replace each representative item, associated body, generated/source-written body, expression
        // family, and type family on either side and require rejection before exact comparison.
    }
}

See more source ↗

TODO sage_oracle_harness::todo::generic_independent_coverage_requires_source_inventories_and_validator

crates/sage-oracle-harness/tests/independent_coverage.rs · test:independent_coverage

#![allow(unused)]
fn main() {
#[test]
    #[sage::test(crates.sage_oracle_harness.crate.independent_coverage)]
    fn generic_independent_coverage_requires_source_inventories_and_validator() {
        // TODO: Once independent source inventories and the shared coverage validator
        // exist, enable paired_unsupported_bodies_cannot_satisfy_conformance above.
        // Add cases for paired omitted items/bodies and paired debug fallbacks, and
        // require each emitter to fail independently before exact comparison.
        // The ignored expected-rejection regression records the known failure;
        // this explicit TODO is the eligible deferred test, not behavioral coverage.
    }
}

See more source ↗

Review: Accepted · final_quality.

Reviewed the complete independent_coverage claim, three implementation entries (the same run_fixture compiled in two test targets plus the explicit TODO), and both associated TODO tests. Requirements are independent item/body accounting and forbidden-placeholder rejection before equality, so paired omissions, unsupported nodes and debug fallback values cannot pass. This claim is only partially implemented; the generic guarantee remains deferred.

Both ordinary run_fixture associations point to the same implementation. Standard fixtures obtain independent oracle and Sage results from run_combined, write their outputs, then run separate checks on each side for three specifically named fixtures before exact comparison. Captured combined entry confirms separate output values; no coverage check repairs either value. Diagnostic-annotated fixtures take a separate annotation-checking path and are not generic emitted-body coverage evidence.

For mini_redis/db_drop_guard.rs, the coverage helper requires the source-written db block/tail, an external core Clone::clone path with exact Mod/Trait/Fn kinds, a shared borrow, resolved field index zero, explicit dereference and self local zero. Each side also independently matches the checked-in exact snapshot. For mini_redis/parse_next.rs, checks require the next body, ok_or direct target and owner/method substitutions, nested Iterator::next static dispatch, concrete IntoIter<Frame,Global> Self and mutable receiver borrow. Its snapshot check rejects unresolved alias/debug/unsupported strings and independently compares each side to the fixed snapshot. For basics/external_adt_default.rs, the helper requires take's parameter type, external IntoIter and its local element plus external Global default. These are useful narrow acceptance checks but not exhaustive per-source item/body inventories. Captured snapshot dependencies are expected observations, not inputs used to rewrite emission. This review evaluates validation logic, not the authored expression checker which produces some native nodes.

Outside those fixture names, run_fixture goes directly to exact equality without a generic independent coverage validator. Captured comparator source accepts equal text and supplies diagnostic differences only after inequality; therefore it cannot detect paired absence by itself. The associated implementation TODO explicitly states this limitation and requires shared coverage validation and independent source inventories. This is an acknowledged gap rather than a newly resolved implementation claim.

Both complete associated tests are TODO-only with no executable assertions. service_spec requests the full independent-removal/replacement matrix over items, associated/generated/source bodies, expressions and types. generic_independent_coverage_requires_source_inventories_and_validator names the concrete prerequisite and requires enabling the paired-unsupported regression, then adding paired item/body omissions and debug fallbacks. The captured ignored paired_unsupported_bodies_cannot_satisfy_conformance creates a source if-expression fixture and expects run_fixture rejection; its ignore reason explicitly records the missing generic validator. It is not eligible ordinary coverage and was not run during this review. No claim is made that its expected rejection currently passes.

Captured oracle-guide explicitly describes this destination and the interim vertical-slice checks, including the stated exclusion of compiler derive bodies while source-written and source-macro methods remain in scope. No broad conformance guarantee is inferred from the current checks or centrally reported suites. No Rust edits or tests executed; commands were fresh review start/read and source inspection before record. No additional requested edits beyond existing explicit deferral; implementing inventories/validator and the adversarial matrix remains necessary to complete the claim.

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