Repository navigation
Replace a reply that claims a record was created when every create failed (closes #3819) - #3829
Conversation
Code Review SummaryVerdict: COMMENT (initial review; no blockers, two improvements worth doing before merge). The mechanism is sound and well scoped: it reuses the existing surfacing block, the failure/landed predicates are the right ones, and byte handling is correct ( FindingsCritical IssuesNone. Suggested Improvements
Answers to the focus questions
Nitpicks
|
|
Addressed review. Done:
Limitation, recorded in the doc comment: results are the turn's, so a reply describing an earlier turn's record in a turn whose own create failed is read as a claim about this turn. The replacement is still truthful. Not done: a test for a landed RE-REVIEW NEEDED: the claim detector was reworked, not just reworded. |
Re-review (commit 1c114bb)Verdict: COMMENT. The five prior items are addressed and the design (read the verb's object, derive record tools from the registry) is right. No blockers. Two real holes in the new code worth fixing before merge, both cheap. Verified
Suggested Improvements
Tests
AGENTS.mdNo violations seen: no compatibility code, no node-type literals, no lifecycle reads, logging uses tracing. Nit: |
|
Addressed re-review. Done:
Left as is: 'I made sure …' / 'I made a note …' read as claims. Bounded to a turn where a create failed and none landed, where the replacement is the truthful failure text; an object stoplist would be guesswork. 'I created the link and the task' is shielded by its first object (rare false negative), noted. All changes are in the detector and pinned by the new table test; test:changed passes. NO RE-REVIEW NEEDED. |
…iled (refs #3819) The tool-failure surfacing guard let a reply through whenever it named an error, so 'I couldn't assign it, but I have successfully created the question task' reached the user after create_node had refused. When a create failed and none landed in the turn, a claim that a record was made is replaced by what failed. A claim about a link is not a record claim, and a landed create grounds the claim as before. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…; passive subjects; registry-derived record tools (refs #3819) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…liaries, whole-word verbs, table test (refs #3819) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
3a83954 to
b15a64c
Compare
What
The tool-failure surfacing guard passed any reply that contained an error word (
error,fail,couldn't,unable), so a reply could name a failure and still claim the record it was asked for: "I couldn't assign it, but I have successfully created the question task" aftercreate_nodehad refused.Now, when a create tool (
create_node,create_nodes_from_markdown,create_schema,create_question_task) failed unrecovered in the turn, no create landed, and the reply says a record was created, the reply is replaced by what failed (the same sentence the guard already writes).This is acceptance 3 of the issue.
Measured
agent_loop.rs(false claim replaced though it names an error; landed create grounds the claim; link claim not a record claim; honest account untouched) and the existing failure-surfacing tests pass.test:changedpasses.Not measured
create_question_task) is untouched by it. The whole tasks suite was not re-run.closes #3819
🤖 Generated with Claude Code