rampart test— Dry-run a single command against your policyrampart bench— Score policy coverage against an attack corpusrampart policy explain— Trace evaluation to see which rules match
rampart test
Test a single command without executing it.Basic Usage
JSON Output
Test Specific Tools
Test Against Specific Policy
Stdin Input
Pipe commands from a file:rampart bench
Benchmark your policy against a corpus of known attack commands.Basic Usage
CI Mode
Fail the build if coverage drops below a threshold:Filter by Severity
Filter by OS
JSON Output
rampart policy explain
Trace how a command is evaluated against your policy.Basic Usage
Specify Tool and Agent
Explain Against Specific Policy
rampart policy lint
Validate policy syntax and structure.Testing Workflow
1. Write a Policy Rule
2. Lint the Policy
3. Test Specific Commands
4. Explain the Decision
5. Benchmark Coverage
6. Deploy
Common Testing Patterns
Test a List of Commands
Create a test file:Regression Test Suite
Create a JSON test suite:Test Project Policy in Isolation
See Also
- Writing Policies — Full YAML schema reference
- Profiles — Built-in policy presets
- Project Policies — Team-shared repo-specific rules