Repository navigation
Ask the user when a write's ids do not resolve (closes #3808) - #3809
Conversation
|
Review Type: Initial Review Code Review SummarySmall, well-scoped change that follows the existing refusal + turn-end-backstop pattern (duplicate entity, declined work). The typed Requirements Check
Findings🟡 Important:
|
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: COMMENT (self-authored PR; leaning request-changes on the two Important correctness findings: NotFound over-capture for collections, and over-broad backstop release). Full findings in the review comment above.
|
Addressed review (commit pushed):
Re-review needed: logic changed in the backstop and a new error variant was added. |
|
Review Type: Re-review (delta: e0579ec) SummaryBoth Important findings are addressed correctly and the new variant is cleanly threaded. No new blockers. Prior findings
Remaining (all Nit)
RequirementsE4B in-process verification remains pending by design, not a defect. Verdict: APPROVE (no re-review needed) |
malibio
left a comment
There was a problem hiding this comment.
Re-review verdict: APPROVE in substance (self-authored PR, posted as a comment). Both Important findings are fixed correctly; only optional nits remain. Details in the comment above.
A write whose id resolves to no node now returns a typed UnresolvedId refusal; the loop lets the model search and retry once, and a turn-end backstop asks the user, offering name-search candidates, when it did not. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ease - OpsError::CollectionNotFound so a missing collection is not read as an unresolved node id (daemon maps it to the same not_found status) - Backstop releases only on a landed write of the refused tool, and picks the last unreleased refusal - Tests: unrelated write, earlier released refusal, collection not-found - Skipped: excluding delete_node (asking which node was meant is sound for a delete of an unknown id); prose-question parity matches declined_work_backstop Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
e0579ec to
b3e5948
Compare
What
A write whose id resolves to no node ended the turn on the raw tool error. It now follows the same shape as the duplicate-entity and declined-work guards.
ToolError::UnresolvedIdis a typed error the executor raises when a write tool getsOpsError::NotFound(no string matching).unresolved_idrefusal that tells the model to search and retry once, orroute_clarify.unresolved_id_backstopruns at turn end: if the refusal is unresolved, the model did not ask, and no write landed after it, the reply becomes a question offering the candidates a name search returned.Tests
Unit tests for the typed error, the refusal, and the backstop (asks / model already asked / write landed after), plus a loop-level test that a corrected retry runs.
nodespace-agentsuite: 1156 passed.Not done here: the in-process E4B run of
question-blocks-task(needs a calm machine for the model).🤖 Generated with Claude Code