From e8411f94560f34898b005953b0c33b62adda6d8f Mon Sep 17 00:00:00 2001 From: "zackary.l.jackson" Date: Mon, 5 Oct 2026 05:46:15 +0000 Subject: [PATCH 1/4] style(agent-hosts): fold scout settlement guards into patterns Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../src/agents/context_scout/owner.rs | 30 ++++++++----------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/crates/tracedecay-agent-hosts/src/agents/context_scout/owner.rs b/crates/tracedecay-agent-hosts/src/agents/context_scout/owner.rs index e06de7ab96..7cd16aea08 100644 --- a/crates/tracedecay-agent-hosts/src/agents/context_scout/owner.rs +++ b/crates/tracedecay-agent-hosts/src/agents/context_scout/owner.rs @@ -1012,26 +1012,20 @@ impl ProjectContextScoutOwnerV1 { let retired = match (&mutation, &receipt.result) { ( ContextScoutPublicMutationV1::Cancel { work }, - ContextScoutMutationResultV1::Cancel(outcome), - ) if matches!( - outcome, - ContextScoutDurableStoreOutcomeV1::Stored - | ContextScoutDurableStoreOutcomeV1::Duplicate - ) => - { - Some((*work, None)) - } + ContextScoutMutationResultV1::Cancel( + ContextScoutDurableStoreOutcomeV1::Stored + | ContextScoutDurableStoreOutcomeV1::Duplicate, + ), + ) => Some((*work, None)), ( ContextScoutPublicMutationV1::Delivery { work, .. }, - ContextScoutMutationResultV1::Delivery { outcome, receipt }, - ) if matches!( - outcome, - ContextScoutDurableStoreOutcomeV1::Stored - | ContextScoutDurableStoreOutcomeV1::Duplicate - ) => - { - Some((*work, Some(receipt.outcome))) - } + ContextScoutMutationResultV1::Delivery { + outcome: + ContextScoutDurableStoreOutcomeV1::Stored + | ContextScoutDurableStoreOutcomeV1::Duplicate, + receipt, + }, + ) => Some((*work, Some(receipt.outcome))), _ => None, }; if let Some((work, delivery)) = retired From 177915767339549f9098c077f600d0ed63ef38e2 Mon Sep 17 00:00:00 2001 From: "zackary.l.jackson" Date: Mon, 5 Oct 2026 05:46:15 +0000 Subject: [PATCH 2/4] style(mcp): probe signature edits through from_ref Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- crates/tracedecay-mcp/src/handlers/edit_check.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/tracedecay-mcp/src/handlers/edit_check.rs b/crates/tracedecay-mcp/src/handlers/edit_check.rs index 29e3bbf185..7def148940 100644 --- a/crates/tracedecay-mcp/src/handlers/edit_check.rs +++ b/crates/tracedecay-mcp/src/handlers/edit_check.rs @@ -335,8 +335,13 @@ mod tests { file: "caller.rs".to_owned(), line: 0, }; - let error = signature_edits(root.path(), &[target.clone()], &[target, caller], &[]) - .unwrap_err(); + let error = signature_edits( + root.path(), + std::slice::from_ref(&target), + &[target.clone(), caller], + &[], + ) + .unwrap_err(); assert!( matches!(error, TraceDecayError::Io(ref error) if error.kind() == std::io::ErrorKind::NotFound), "{missing}: {error}" From 170659d8501404900f0f6a8d5c04bb2b7192b2d1 Mon Sep 17 00:00:00 2001 From: "zackary.l.jackson" Date: Mon, 5 Oct 2026 05:46:15 +0000 Subject: [PATCH 3/4] test(index): repin canonical manifest and segment digests Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../code_index_suite/production_orchestration.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/tracedecay-code-index/tests/code_index_suite/production_orchestration.rs b/crates/tracedecay-code-index/tests/code_index_suite/production_orchestration.rs index e2612b6792..1a5cf9d3da 100644 --- a/crates/tracedecay-code-index/tests/code_index_suite/production_orchestration.rs +++ b/crates/tracedecay-code-index/tests/code_index_suite/production_orchestration.rs @@ -3111,15 +3111,15 @@ fn partitioned_codec_fixture() -> ( } const PARTITIONED_FORMAT_STATE_DIGEST: &str = - "sha256:ca971dd9b11abf99ed277e3f7808e23ec2a7b79dd38f431d81ed907ada6d6c21"; + "sha256:ab12b9eca3975dd7324ff093905fda1bfe7ee2a92dc9646e817b8052e9602faf"; const PARTITIONED_FORMAT_SEGMENTS: &[(&str, u64)] = &[ ( - "sha256:8e9ad377067c5f3b8f967a8b6e0ebe75c061683b6a33e83502b7a324373fec72", - 1_732, + "sha256:3b7947038f6d94ea076ac2cc89403bc3fe58cae074552c7096dc4d99eacebe5a", + 1_737, ), ( - "sha256:7c35a2c0b0dda1c2eb2f7f1e774a3e6eec5b31a0a9b473d28fa4ff60407e5205", - 1_261, + "sha256:5a85600a39a6eda3a6a214c1461f5f87821cd5d7f86849217d98d127197357e9", + 1_298, ), ( "sha256:72ba1636f87140dea312d95e797b5257ee1834eeca3c86a62b1bd1ba48548fed", @@ -3150,8 +3150,8 @@ const PARTITIONED_FORMAT_SEGMENTS: &[(&str, u64)] = &[ 1_075, ), ( - "sha256:209c0686cb2ca402c068a08b8fba0fc9d445d224d6bb7c4dddc78447e282f171", - 1_311, + "sha256:7cbe00299daee294c3562cc24d10ec0b1b4a24e3b5bb4140711bd5822e952cd7", + 1_354, ), ( "sha256:808085bc4aeb5167f643382c4c493d1853848941967d2efeb08646e2f009c912", From d570abcc2cb05ebc825530a450ede8ac449b91c5 Mon Sep 17 00:00:00 2001 From: ScriptedAlchemy Date: Mon, 5 Oct 2026 02:35:26 -0700 Subject: [PATCH 4/4] fix(ci): gate platform-specific test helpers --- .../tracedecay-cli/tests/core_cli_suite/tool_daemon_test.rs | 4 +++- .../src/session_registry/code_graph/layered_refresh_tests.rs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/tracedecay-cli/tests/core_cli_suite/tool_daemon_test.rs b/crates/tracedecay-cli/tests/core_cli_suite/tool_daemon_test.rs index 26cf4c8e9c..225670b0d0 100644 --- a/crates/tracedecay-cli/tests/core_cli_suite/tool_daemon_test.rs +++ b/crates/tracedecay-cli/tests/core_cli_suite/tool_daemon_test.rs @@ -9,8 +9,10 @@ use std::sync::mpsc; use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH}; use crate::common; +#[cfg(target_os = "linux")] +use crate::common::hermetic_path; use crate::common::{ - canonical_existing_path, hermetic_path, spawn_tracedecay_daemon, tracedecay_command_with_home, + canonical_existing_path, spawn_tracedecay_daemon, tracedecay_command_with_home, }; use serde_json::{Value, json}; use tempfile::TempDir; diff --git a/crates/tracedecay-store-runtime/src/session_registry/code_graph/layered_refresh_tests.rs b/crates/tracedecay-store-runtime/src/session_registry/code_graph/layered_refresh_tests.rs index c805b94c05..710c8c5a00 100644 --- a/crates/tracedecay-store-runtime/src/session_registry/code_graph/layered_refresh_tests.rs +++ b/crates/tracedecay-store-runtime/src/session_registry/code_graph/layered_refresh_tests.rs @@ -932,7 +932,9 @@ async fn a_small_refresh_materializes_the_same_output_pages_at_both_base_sizes() assert_eq!(small.delta_rows, large.delta_rows); } +#[cfg(target_os = "linux")] const PEAK_PROBE_MODULES: &str = "TRACEDECAY_LAYERED_PEAK_PROBE_MODULES"; +#[cfg(target_os = "linux")] const PEAK_PROBE_LINE: &str = "layered-refresh-peak-kib "; /// Kibibytes one `/proc/self/status` field holds.