docs: streamline project instructions and engineering constraints

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-01 00:57:03 +08:00
1 parent 678cd8f4a7
commit d3d70f2065
6 files changed
+69 -112

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
# Security Boundaries
The agent operates with significant power (file system, shell, web). The following guards must not be bypassed when modifying related code.
Consult this document when changing path access, outbound HTTP/MCP, or shell execution. The agent operates with filesystem, shell, and network access; preserve the guards below on every affected path.
## Workspace Restriction
@@ -26,4 +26,4 @@ HTTP/SSE MCP transports are part of this boundary: validate configured MCP URLs
`tools/sandbox.py` provides optional command wrapping: `bwrap` (bubblewrap) on Linux and `seatbelt` (`sandbox-exec`) on macOS. Seatbelt must not expose shared host temporary directories; scratch stays in the workspace. On Windows a configured backend warns and leaves only the application guard. On Unix a configured backend that cannot start must fail, not silently execute without isolation.
**Rule**: If adding a new sandbox backend, implement `_wrap_<name>(command, workspace, cwd) -> str` and register it in `_BACKENDS`.
**Rule**: If adding a sandbox backend, match the backend callable contract in `nanobot/agent/tools/sandbox.py` and register it in `_BACKENDS`. Preserve read/write root handling and the configured backend's failure behavior.