feat(tool): add built-in file tools #276

Closed
opened 2026-02-22 23:40:49 +00:00 by freemo · 1 comment
Owner

Metadata

  • Commit: feat(tool): add built-in file tools
  • Branch: feature/m1-tool-builtins

Subtasks

  • Add built-in file tools (file.read, file.write, file.edit, file.delete, file.list, file.search) with namespaced names.
  • Require resource bindings to fs-directory/git-checkout slots and resolve worktree root for git-checkout.
  • Wire built-in tools to ChangeSet capture hooks (create/modify/delete/move events) and include file metadata in entries.
  • Add docs/reference/builtin_tools.md describing file tool inputs/outputs and resource slot requirements.
  • Tests (Behave): Add scenarios for each file tool, resource binding resolution, and ChangeSet integration.
  • Tests (Robot): Add Robot test that runs file.write on a git-checkout sandbox and verifies ChangeSet output.
  • Tests (ASV): Add benchmarks/tool_builtin_file_bench.py for file tool latency baseline.
  • Run nox (all default sessions, including benchmark), fix any errors if needed ensuring nox passes.
  • Verify coverage >=97% via nox -s coverage_report. If coverage is <97% then review the current unit test coverage report at build/coverage.xml and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun nox -s coverage_report to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%.

Section: ### Section 5: Actors, Skills & Tool Execution [WORKSTREAM C - Aditya Lead]
Status: Completed

## Metadata - **Commit**: `feat(tool): add built-in file tools` - **Branch**: `feature/m1-tool-builtins` ## Subtasks - [x] Add built-in file tools (`file.read`, `file.write`, `file.edit`, `file.delete`, `file.list`, `file.search`) with namespaced names. - [x] Require resource bindings to `fs-directory`/`git-checkout` slots and resolve worktree root for git-checkout. - [x] Wire built-in tools to ChangeSet capture hooks (create/modify/delete/move events) and include file metadata in entries. - [x] Add `docs/reference/builtin_tools.md` describing file tool inputs/outputs and resource slot requirements. - [x] Tests (Behave): Add scenarios for each file tool, resource binding resolution, and ChangeSet integration. - [x] Tests (Robot): Add Robot test that runs file.write on a git-checkout sandbox and verifies ChangeSet output. - [x] Tests (ASV): Add `benchmarks/tool_builtin_file_bench.py` for file tool latency baseline. - [x] Run `nox` (all default sessions, including benchmark), fix any errors if needed ensuring nox passes. - [x] Verify coverage >=97% via `nox -s coverage_report`. If coverage is <97% then review the current unit test coverage report at `build/coverage.xml` and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun `nox -s coverage_report` to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%. **Section**: ### Section 5: Actors, Skills & Tool Execution [WORKSTREAM C - Aditya Lead] **Status**: Completed
freemo added this to the v3.1.0 milestone 2026-02-22 23:40:49 +00:00
freemo self-assigned this 2026-02-22 23:40:49 +00:00
Author
Owner

Implementation Notes — C0.files: Built-in File Tools

2026-02-14: Stage C0.files Complete - Built-in File Tools

  • Created src/cleveragents/tool/builtins/ package with 6 file tools (file-read/write/edit/delete/list/search), path traversal prevention, ChangeSetEntry/ChangeSet/ChangeSetCapture models.
  • 2026-02-14: Commit traceability sweep found no matching git log entries for skill schema/examples, skill CLI, provider actors, MCP config/adapter, actor compiler, or skill registry persistence; Section 2B traceability tasks remain open.

(Migrated from docs/implementation-notes.md)

## Implementation Notes — C0.files: Built-in File Tools **2026-02-14**: Stage C0.files Complete - Built-in File Tools - Created `src/cleveragents/tool/builtins/` package with 6 file tools (file-read/write/edit/delete/list/search), path traversal prevention, ChangeSetEntry/ChangeSet/ChangeSetCapture models. - 2026-02-14: Commit traceability sweep found no matching git log entries for skill schema/examples, skill CLI, provider actors, MCP config/adapter, actor compiler, or skill registry persistence; Section 2B traceability tasks remain open. *(Migrated from `docs/implementation-notes.md`)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks
#354 Epic: Actor & Skill Schema + CLI (C0)
cleveragents/cleveragents-core
Depends on
#64 feature/m1-tool-builtins
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core#276
No description provided.