[Bug]: Project-boundary gate hard-codes /root/.local/ and /root/.claude/, so a non-root account cannot read its own tools, and there is no setting to allow a path
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 54/100
Hướng nghiên cứu
Read agents/context/check-project-boundary.sh, especially READ_ALLOWED_PREFIXES around line 753, and trace how ~ paths are expanded and checked. Reproduce the non-root case from the issue using ls ~/.local/bin/fw or grep -n x ~/some-tool; done means the account’s own configured read paths are handled as expected without weakening the boundary gate. The issue describes broader configuration and executable-tool requests that may need scope decisions.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug Description
agents/context/check-project-boundary.sh, READ_ALLOWED_PREFIXES (around line 753) contains '/root/.local/' # user shim install dir and '/root/.claude/' # Claude Code state. On a non-root account, $HOME/.local/ and $HOME/.claude/ are refused, although the comments describe exactly those directories.
Since 1.8.11 the gate expands ~ as bash does (T-3768), so every ~/... argument outside the project is now refused. Under the 1.8.6 hooks, ls -la ~/.local/bin/fw and cmp ~/.local/bin/fw <file> passed in the same session.
Cases met on this host after the upgrade, all read-only or the operator's own cross-project tool:
~/passer --help(the operator's script for leaving a message to another project);grep -n FW_ROUTED_FROM ~/.local/bin/fw;- reading a shared conventions file and another project's message file under
$HOME.
The gate gives no way to allow a path: READ_ALLOWED_PREFIXES and READ_ALLOWED_EXACT are literals, and no environment variable or fw config key is read. Meanwhile Claude Code's own Read tool still reads the same files, so the gate does not protect them; it only blocks shell use.
Steps to Reproduce
- Non-root account, project under
$HOME/<project>. - Ask the agent to run
ls ~/.local/bin/fworgrep -n x ~/some-tool. PROJECT BOUNDARY BLOCK — Command Targets Another Project,Reason: Outside-path argument /home/<account>/.local/bin/fw (not in read-side allowlist).
Expected Behavior
$HOME/.local/and$HOME/.claude/(expanded) instead of/root/....- A project or host setting for extra read-only paths (for example
fw config set BOUNDARY_READ_ALLOW "<path>:<path>"), and ideally one for named operator tools that may be executed.
Actual Behavior
The account's own tools and shared read-only files are unreadable from Bash on any non-root install, with no supported way to allow them.
fw doctor output
AI Agent
Claude Code
Operating System
Linux
Additional Context
1.8.11 (e42aa41bf), vendored consumer, Linux (Ubuntu 20.04), non-root account, Claude Code. Also found independently by another consumer project on the same host; its reproduction was re-run here on 1.8.11.
- Ngôn ngữ chính
- Shell
- Star
- 16
- Fork
- 6
- Merge trung bình
- 6 giờ 24 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DimitriGeelen/agentic-engineering-framework
-
area:cli bug severity:low status:fixed-on-bleeding-edge triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DimitriGeelen/agentic-engineering-framework#100 · 5 bình luận ·
-
area:cli bug severity:medium status:fixed-on-bleeding-edge triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
DimitriGeelen/agentic-engineering-framework#97 · 5 bình luận ·
-
area:context bug severity:low status:fixed-on-bleeding-edge triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
DimitriGeelen/agentic-engineering-framework#96 · 5 bình luận ·
-
area:docs bug severity:medium status:in-progress triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
DimitriGeelen/agentic-engineering-framework#95 · 4 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Tất cả issue của DimitriGeelen/agentic-engineering-framework
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Leonxlnx/taste-skill#164 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
patch: moving an executable script removes its executable bitCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởreproduced
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
anomalyco/opencode#58651 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`ODK_RESOURCES_DIR` not set when `ODK_USER_ID` is 0 or unsetCó thể đã có người làm @gouttegd đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
INCATools/ontology-development-kit#1390 · 1 người được giao ·
-
使用脚本 DD 腾讯云 报错Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
evals: run-validity calls runs VALID when every Bash call failed to start the sandbox (long TMPDIR)Đang mởpriority: medium status: needs-decision work-class: scoped
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
melodic-software/claude-code-plugins#9611 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày