Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/tracedecay/src/graph/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Test-risk analysis over the verified code graph.
pub mod test_risk;
pub(crate) mod test_risk;

/// AST-level functional-duplicate scanning over the code graph.
pub mod redundancy_scan;
pub(crate) mod redundancy_scan;
10 changes: 5 additions & 5 deletions crates/tracedecay/src/graph/test_risk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const MAX_TEST_RISK_SYMBOLS: usize = 500_000;
const MAX_TEST_RISK_RELATIONS: usize = 2_000_000;

#[derive(Debug, Serialize)]
pub struct TestRiskReport {
pub(crate) struct TestRiskReport {
pub risks: Vec<TestRiskEntry>,
pub summary: TestRiskSummary,
}

#[derive(Debug, Serialize)]
pub struct TestRiskEntry {
pub(crate) struct TestRiskEntry {
pub id: String,
pub name: String,
pub file: String,
Expand All @@ -37,7 +37,7 @@ pub struct TestRiskEntry {
}

#[derive(Debug, Serialize)]
pub struct TestRiskSummary {
pub(crate) struct TestRiskSummary {
pub total_functions: usize,
pub tested: usize,
pub skipped: usize,
Expand All @@ -51,7 +51,7 @@ pub struct TestRiskSummary {
}

#[derive(Debug, Serialize)]
pub struct TestRiskAttributionSummary {
pub(crate) struct TestRiskAttributionSummary {
pub depth: usize,
pub direct_unit_attributed: usize,
pub closure_attributed: usize,
Expand All @@ -62,7 +62,7 @@ pub struct TestRiskAttributionSummary {
}

#[derive(Debug, Serialize)]
pub struct TestRiskBucketSummary {
pub(crate) struct TestRiskBucketSummary {
pub attributed: usize,
pub reachable_unattributed: usize,
pub orphan_entry: usize,
Expand Down
4 changes: 2 additions & 2 deletions crates/tracedecay/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub mod daemon;
pub mod dashboard;
pub mod doctor;
pub use tracedecay_application::git_query;
pub mod graph;
mod graph;
mod hooks;
#[cfg(test)]
mod host_admission_test;
Expand All @@ -74,7 +74,7 @@ pub use runtime_ports::{hook_runtime, register_runtime_ports};
#[cfg(test)]
#[path = "sessions/claude_observation_benchmark.rs"]
mod claude_observation_benchmark;
pub mod runtime_telemetry;
mod runtime_telemetry;
pub mod serve;
#[cfg(test)]
#[path = "sessions/ingest_tests.rs"]
Expand Down
11 changes: 0 additions & 11 deletions crates/tracedecay/src/runtime_telemetry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,6 @@ use tracedecay_session_memory::runtime_telemetry::{
/// (b) `stat` the `SQLite` files and ask the connection for its journal
/// mode. Unavailable pragmas remain optional; failures to identify or stat the
/// store itself fail the read instead of fabricating a zero-sized database.
pub async fn collect(cg: &crate::tracedecay::TraceDecay) -> Result<RuntimeSnapshot> {
collect_with_integrity(cg, false).await
}

pub async fn collect_with_integrity(
cg: &crate::tracedecay::TraceDecay,
include_integrity: bool,
) -> Result<RuntimeSnapshot> {
collect_with_integrity_and_generation_census(cg, include_integrity, None).await
}

#[hotpath::measure(label = "runtime_ports.collect", future = true)]
pub(crate) async fn collect_with_integrity_and_generation_census(
cg: &crate::tracedecay::TraceDecay,
Expand Down
Loading