Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,6 @@ cython_debug/
marimo/_static/
marimo/_lsp/
__marimo__/

# Custom ignores
.ig-*
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and sanitization functions to limit data exposure, and ensures least-privilege a
traditional information flow control systems, ShardGuard avoids complex labeling and taint tracking, offering a more
practical yet effective path to safe LLM-driven automation.

SGTest - ShardGuard Testing framework is a simple script to feed a YAML file, run test-cases and capture relevant output.
Mainly helps bulk-run ShardGuard with multiple prompts and capture metrics including time taken per-run, average run-time,
success Rate, verbose errors and warnings. Can be easily extended to capture further required metrics.

> **⚠️ Note**: This is a basic prototype of [a MCP security system](https://docs.google.com/document/d/1fB_DedbmW5E7MQSgXd98iNj9aQfXtajNKSEtAGUzLYI/edit?tab=t.0).
> Don't use it for anything production. We're still testing things to see if this is a good approach!

Expand Down Expand Up @@ -70,6 +74,12 @@ practical yet effective path to safe LLM-driven automation.
poetry run shardguard plan "Send an email to john@example.com about the meeting"
```

4. **Run SGTest**:

```bash
poetry run sgtest test_cases.yaml -v --output test_report.json
```

#### Using Google Gemini (Remote Models)

1. **Get a Gemini API key**:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies = [

[project.scripts]
shardguard = "shardguard.cli:app"
sgtest = "shardguard.test_framework:main"

[project.optional-dependencies]
dev = [
Expand Down
Loading