Repository navigation
Guard "delete the resolved incidents" against the conflict-journal pull (closes #3097) - #3130
Conversation
Pragmatic Code Review: PR #3130Review Type: Initial review. There are no earlier reviews or comments. SummaryThe PR adds no production code. It adds one ignored live test file, Requirements Check (#3097)
Code Review Findings🔴 CriticalNone. 🟡 Improvements
🟢 Nits / Observations
RecommendationAPPROVE. The change is a net-positive, narrowly scoped regression guard. It is faithful to the production stack, its scope reduction is documented and was approved by the user, and it spun off the Stage-1 finding (#3129) as its own issue. Finding 1, asserting that |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Review addressed (c4cbf4b)
Re-ran live: both tests pass (deletion guard 3/3 with Re-review: not needed. These are small, low-risk changes to one test-only file. |
…ll (closes #3097) The reported failure (list_conflicts called 6/6 instead of acting on the incidents) no longer reproduces on main: 0/6 across an arm with the Incident schema embedded and an arm whose Stage-2 candidates match the original trace. The model now searches the incidents and names exactly the resolved ones. Adds a live production-stack guard (real LocalAgentService, seeded registry, embedding model, E4B, scored from the store): - the deletion request never calls list_conflicts, never removes the open incident, and deletes or names exactly the resolved incidents - "show me the resolved conflicts" / "list the open conflicts" still call list_conflicts "are there any unresolved conflicts?" clarifies at Stage 1 on unchanged main; filed as #3129. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- Every delete_node call must target a resolved incident; a turn that also deleted a skill or the schema no longer passes - Embedding model loads once per test instead of once per rep - Comment where the harness's workspace context differs from the daemon's and why that is inert here Skipped: switching the confirm path from reply-title matching to the search_nodes filter. No flake observed across 6 reps; revisit if it flakes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01M8ravhwjBi8ShMBthhVuji
c4cbf4b to
7541961
Compare
Summary
Closes #3097. The reported pull is gone on main. This PR adds a live production-stack guard so it stays gone, and adds no production code.
Measurement (E4B, real
LocalAgentService, seeded registry + embedding model, scored from the store, 3 reps)search_nodes(node_type: incident, state = resolved), names exactly the 2 resolved incidents, then asks to confirm.list_conflicts0/3search_nodes(node_type: "Incident")(the display name), finds nothing.list_conflicts0/3Cause, from the dumped Stage-2 prompt:
delete_nodeis offered and Node Deletion is Candidate 1 in both arms. The model no longer takes Conflict Journal'sstatus: resolvedfilter. It stops short of deleting because Node Deletion's guidance says "Confirm each deletion before proceeding to the next". Whether an agent delete should run without an explicit yes is #3096's decision, so the guard pins targeting (the right records, never the conflict journal), not delete-vs-confirm.Added:
packages/agent/tests/live_delete_resolved_incidents.rs(ignored, needs the models)delete_the_resolved_incidents_targets_the_incidents_not_the_conflict_journal: 3/3conflict_journal_requests_still_call_list_conflicts: "show me the resolved conflicts" and "list the open conflicts", 6/6Found, filed separately
route_clarifyat Stage 1 3/3 on unchanged main.Test plan
cargo test --release -p nodespace-agent --test live_delete_resolved_incidents -- --ignored --nocapture --test-threads=1: 2/2 pass🤖 Generated with Claude Code
https://claude.ai/code/session_01M8ravhwjBi8ShMBthhVuji