mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-19 00:01:19 +00:00
feat(phase-2): implement security boundary and hook middleware
- Created .intentignore to protect core system files. - Defined command classification policy in security_policy.json. - Established JSON error protocol for autonomous recovery.
This commit is contained in:
parent
0273cee75f
commit
39e469b6ce
2 changed files with 21 additions and 0 deletions
10
.intentignore
Normal file
10
.intentignore
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# GLOBAL SECURITY BOUNDARY
|
||||
.env
|
||||
.git/
|
||||
node_modules/
|
||||
.orchestration/trace_storage.db
|
||||
.clinerules
|
||||
|
||||
# INTENT-SPECIFIC PROTECTION
|
||||
# Prevents the AI from modifying the core orchestration logic
|
||||
.orchestration/hooks/
|
||||
11
.orchestration/security_policy.json
Normal file
11
.orchestration/security_policy.json
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"version": "1.0.0",
|
||||
"command_classification": {
|
||||
"safe": ["read_file", "list_files", "search_files"],
|
||||
"destructive": ["write_to_file", "delete_file", "execute_command"]
|
||||
},
|
||||
"error_protocol": {
|
||||
"type": "JSON_TOOL_ERROR",
|
||||
"template": "Scope Violation: {intent_id} is not authorized to edit {file}. Request scope expansion."
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue