Skip to content

Phase 5: Security Gateway#62

Merged
YASSERRMD merged 16 commits into
mainfrom
phase_5_security
Jun 9, 2026
Merged

Phase 5: Security Gateway#62
YASSERRMD merged 16 commits into
mainfrom
phase_5_security

Conversation

@YASSERRMD

Copy link
Copy Markdown
Owner

Phase 5 — Security Gateway

The enforcement point: every agent action is checked before execution.

What's included (backend/controlplane/src/gateway/)

  • policy.rsSecurityPolicy (default() conservative gov-grade, permissive() for trusted automation).
  • request.rsActionRequest (carries the agent record + action specifics; gateway is stateless/pure).
  • decision.rsSecurityDecision (allowed, all denials, risk_score, risk_band(), summary()).
  • engine.rsSecurityGateway::evaluate running checks: agent state, tool, MCP, model, data access (clearance + policy ceiling), capabilities (network/file-export/db-write/PII), budget, human-approval gate, and a 0–100 risk score.
  • log.rsBlockedExecutionLog (append-only SQLite); record is a no-op for allowed decisions.
  • docs/security-gateway.md.

Verification

  • cargo test -p clawforge-controlplane ✅ (57 tests, incl. dedicated allowed- and blocked-execution suites)

16 atomic commits.

@YASSERRMD YASSERRMD merged commit 3407436 into main Jun 9, 2026
0 of 2 checks passed
@YASSERRMD YASSERRMD deleted the phase_5_security branch June 9, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant