haigou-web commented on PR #886:
URL: https://github.com/apache/burr/pull/886#issuecomment-5988399442

   Following up on the review above — I opened a PR against this branch with 
the fixes and the tests:
   
   **https://github.com/Agentic-JJ-Web3/burr/pull/1** (base: 
`docs/coding-agent-harness-example`)
   
   It covers all seven findings from @DeepGandhi01 and the two requirements 
from @skrawcz:
   
   | Finding | Fix |
   |---|---|
   | 1. Clean-install imports | dropped the unused `requests` / `openai` / 
`inspect` / `json` / `typing` / `burr.core` imports and the duplicate `os` in 
`tools.py` |
   | 2. `create_prompt` only ran once | tool actions now route back through 
`create_prompt`, so the seam runs before every model call |
   | 3. Unknown tool halted the run | the error is fed back to the model as a 
tool message and the loop retries |
   | 4. Tool errors crashed the run | `execute_tool` catches and returns an 
error result; `run_bash` creates the workspace first |
   | 5. Malformed tool-call JSON | `JSONDecodeError` is caught and surfaced as 
a tool error |
   | 6. `_resolve` symlink escape | `realpath` for both `root` and `full` |
   | 7. Graphviz nit | `visualize()` wrapped in `try/except` |
   | ASF header | added to `README.md` |
   | Tests | new `test_coding_agent.py` — 10 tests, driven by `ScriptedClient`, 
no API key needed |
   
   Verified locally: `pytest test_coding_agent.py` → 10 passed; `pytest 
validate_examples.py` → 48 passed; `python application.py` runs clean without 
credentials; black 23.11.0 / isort 5.12.0 / flake8 6.1.0 clean.
   
   The PR's base is this branch rather than `main`, so its diff is only the 
follow-up — the example itself is unchanged from #886.
   
   Happy to adjust anything, and if it's easier to fold this straight into #886 
rather than merging the follow-up, that works too.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to