You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeScript does not ship a full policy engine; use the Rust CLI/daemon for evaluation. `@clawdstrike/hush-cli-engine` requires `hush` on your PATH (or pass `hushPath`).
Copy file name to clipboardExpand all lines: docs/src/concepts/design-philosophy.md
+13-20Lines changed: 13 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ guards:
26
26
27
27
Clawdstrike is one layer in a defense-in-depth strategy. It enforces policy at the **tool boundary**—the interface between your agent runtime and the actions it performs.
@@ -66,7 +66,7 @@ These are distinct concepts that should not be conflated:
66
66
67
67
Receipts prove what Clawdstrike observed and decided under a specific policy. They do not prove that the underlying OS prevented all side effects. A signed receipt is only as strong as the integration.
68
68
69
-
```rust
69
+
```rust,ignore
70
70
// Enforcement: your runtime decides based on GuardResult
71
71
let result = engine.check_file_access("/etc/passwd", &ctx).await?;
72
72
if !result.allowed {
@@ -93,7 +93,7 @@ This composability lets you:
93
93
2.**Layer multiple checks.** A file write might pass `ForbiddenPathGuard` but fail `SecretLeakGuard`.
94
94
3.**Add custom guards.** Extend `HushEngine` with your own guards via the `Guard` trait.
95
95
96
-
```rust
96
+
```rust,ignore
97
97
// Guards evaluate in order, fail-fast or aggregate
98
98
let report = engine.check_action_report(&action, &context).await?;
0 commit comments