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:
kidist demessie 2026-02-20 19:32:33 +03:00
parent 0273cee75f
commit 39e469b6ce
2 changed files with 21 additions and 0 deletions

10
.intentignore Normal file
View 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/

View 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."
}
}