Repository navigation
fix(host-core): clarify Edit parse recovery - #2465
Conversation
Name concrete replacement operations in malformed Edit diagnostics and teach the model to avoid empty PUT and foreign patch wrappers. Keep the existing grammar and rejection behavior unchanged. fixes vastsa#2453
|
Thanks — the diagnostics change is good, but there is one concrete defect in the Edit tool description in The edited line now ends with That ends the continuation and inserts a literal |
The new clause ended with an escaped quote instead of a line-continuation backslash, so the advertised Edit description carried a literal `"` plus a newline and indentation where the sentence should have joined. The existing assertions used `contains` on fragments that straddled nothing, so the broken join still passed. Assert the joined text (`survivors. All line numbers`) so a dropped continuation fails the suite.
|
Fixed in Also merged Local checks: |
Summary
PUT/CUT/ gap-insert replacements in malformed Edit op diagnostics.PUTdeletions and foreign patch/Markdown wrappers.Validation
cargo test -p host-core --locked tools::hashline::parse::tests— 5 passed.cargo test -p host-core --locked tool_defs_advertise_the_scoping_parameters— 1 passed.cargo fmt --all -- --check— passed.cargo clippy -p host-core --all-targets --locked— passed with one pre-existing warning intranscripts.rs.node scripts/check-pr-base-main.mjs— passed;origin/mainis an ancestor of the head.node scripts/e2e-smoke.mjs— 21/22 passed, 2 live-model checks skipped without an API key. The remainingE2E-fatal — revision not foundalso occurs on the unmodifiedmainbaseline (50b73f618).cargo test -p host-core --locked— 1339 passed, 2 failed, 1 ignored. Both failures reproduce on the unmodified baseline and come from the local AIE plugin and login-shell PATH environments.Known baseline result
The task-candidate smoke suite is not fully green because of the baseline
revision not foundfailure described above; it is recorded here explicitly rather than claimed as passing.Fixes #2453