Repository navigation
feat(core): E7 tools — uteke_search, read_file, gh - #26
Merged
Merged
Conversation
- uteke_search (ReadOnly): semantic memory recall via uteke CLI - read_file (ReadOnly): jailed file read, symlink-escape proof, 1 MiB cap - gh (Write, approval-gated): whitelisted ops only (issue_comment, issue_create, pr_create), fixed --repo, injectable binary for tests - refactor: shared subprocess module (run_with_timeout + 30s ceiling) replaces the copy inside cora_search - wiring: all tools registered in tole-cli build_registry Closes #7
| .get(k) | ||
| .and_then(Value::as_str) | ||
| .map(|v| v.to_string()) | ||
| .filter(|v| !v.trim().is_empty()) |
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
CodeCora PR review flagged that number/base/title were passed to gh as arbitrary non-empty strings; a leading-dash value could inject flags and redirect the fixed --repo. Now: - number: ASCII digits only - base: branch charset [A-Za-z0-9._/-], no leading dash - title: no leading dash - body: payload of --body (clap consumes it as a value); audit string still quotes anything dash-led Adds rejects_argument_injection test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
uteke_search(ReadOnly): semantic memory recall via the uteke CLI (uteke recall <q> --json), same pattern as cora_searchread_file(ReadOnly): jailed file read sharing the write_file jail semantics — traversal/symlink escapes rejected with distinct errors, 1 MiB capgh(Write, approval-gated): whitelist of 3 ops (issue_comment, issue_create, pr_create), fixed--repo, exact command line shown in the approval prompt, injectable binary for fake-binary testssubprocessmodule (run_with_timeout+ 30s ceiling) shared by cora_search / uteke_search / ghWhy
Issue #7: the agent needs memory recall, repo file access, and GitHub ops as first-class tools, each with the right risk classification so the E6 approval gate enforces Write ops while ReadOnly ops stay frictionless.
Testing
cargo test --workspace: 95 passed, 0 failed (17 new tests)cargo clippy --workspace --all-targets: 0 warningscora review: no issues found