From 836f74edb9d509354fe01e836345acb1a02a7321 Mon Sep 17 00:00:00 2001 From: CyberSecurityUP Date: Sat, 14 Nov 2026 12:41:23 -0300 Subject: [PATCH] feat(harness): cross-worker trace search, checkpoint/rollback, intent negotiation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three Artex-inspired features: 1. Cross-worker trace search (traces.rs): search(), who_observed(), search_prompt_block() with secret redaction — agents query what other workers observed without reading full traces. 2. Checkpoint/rollback (exploration_graph.rs): checkpoint(), rollback(), list_checkpoints(), auto_checkpoint(), rollback_before() — snapshot dual-graph state between phases, rollback failed branches. 3. Collaborative intent negotiation (planner.rs): Negotiator with AgentProfile scoring, multi-agent bid resolution, capacity-aware assignment, specialization matching. negotiate_and_assign() applies results to todolist. complete_with_profile()/fail_with_profile() track agent success rates for future rounds. All 557 tests pass. --- .../crates/harness/src/exploration_graph.rs | 87 ++++ neurosploit-rs/crates/harness/src/lib.rs | 2 +- neurosploit-rs/crates/harness/src/planner.rs | 403 +++++++++++++++++- neurosploit-rs/crates/harness/src/traces.rs | 166 ++++++++ 4 files changed, 656 insertions(+), 2 deletions(-) diff --git a/neurosploit-rs/crates/harness/src/exploration_graph.rs b/neurosploit-rs/crates/harness/src/exploration_graph.rs index 38ada2d..7adba2f 100644 --- a/neurosploit-rs/crates/harness/src/exploration_graph.rs +++ b/neurosploit-rs/crates/harness/src/exploration_graph.rs @@ -498,6 +498,93 @@ impl DualGraph { serde_json::from_str(&json) .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e)) } + + // ── Checkpoint / Rollback ── + + /// Create a named checkpoint (snapshot) of the entire dual-graph state. + /// Checkpoints are stored as `/checkpoints/