sheepdogai 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sheepdogai-0.1.1/.clusterfuzzlite/Dockerfile +4 -0
- sheepdogai-0.1.1/.clusterfuzzlite/build.sh +5 -0
- sheepdogai-0.1.1/.clusterfuzzlite/project.yaml +1 -0
- sheepdogai-0.1.1/.github/CODEOWNERS +6 -0
- sheepdogai-0.1.1/.github/ISSUE_TEMPLATE/bug_report.yml +13 -0
- sheepdogai-0.1.1/.github/ISSUE_TEMPLATE/config.yml +5 -0
- sheepdogai-0.1.1/.github/PULL_REQUEST_TEMPLATE.md +8 -0
- sheepdogai-0.1.1/.github/dependabot.yml +12 -0
- sheepdogai-0.1.1/.github/workflows/cflite_pr.yml +29 -0
- sheepdogai-0.1.1/.github/workflows/ci.yml +56 -0
- sheepdogai-0.1.1/.github/workflows/codeql.yml +23 -0
- sheepdogai-0.1.1/.github/workflows/release.yml +62 -0
- sheepdogai-0.1.1/.github/workflows/scorecard.yml +29 -0
- sheepdogai-0.1.1/.gitignore +13 -0
- sheepdogai-0.1.1/.pre-commit-config.yaml +25 -0
- sheepdogai-0.1.1/CHANGELOG.md +41 -0
- sheepdogai-0.1.1/CITATION.cff +13 -0
- sheepdogai-0.1.1/CODE_OF_CONDUCT.md +20 -0
- sheepdogai-0.1.1/CONTRIBUTING.md +21 -0
- sheepdogai-0.1.1/GOVERNANCE.md +14 -0
- sheepdogai-0.1.1/LICENSE +202 -0
- sheepdogai-0.1.1/Makefile +20 -0
- sheepdogai-0.1.1/NOTICE +8 -0
- sheepdogai-0.1.1/PKG-INFO +234 -0
- sheepdogai-0.1.1/README.md +201 -0
- sheepdogai-0.1.1/SECURITY.md +44 -0
- sheepdogai-0.1.1/agents/__init__.py +0 -0
- sheepdogai-0.1.1/agents/harness_runner.py +131 -0
- sheepdogai-0.1.1/agents/scripted/__init__.py +0 -0
- sheepdogai-0.1.1/agents/scripted/attacker_agent.py +56 -0
- sheepdogai-0.1.1/agents/scripted/benign_agent.py +98 -0
- sheepdogai-0.1.1/agents/scripted/obfuscate.py +296 -0
- sheepdogai-0.1.1/bench/__init__.py +0 -0
- sheepdogai-0.1.1/bench/injection_gauntlet/__init__.py +0 -0
- sheepdogai-0.1.1/bench/injection_gauntlet/corpus/v1/attacks_destructive.yaml +15 -0
- sheepdogai-0.1.1/bench/injection_gauntlet/corpus/v1/attacks_injection.yaml +9 -0
- sheepdogai-0.1.1/bench/injection_gauntlet/corpus/v1/attacks_installers.yaml +6 -0
- sheepdogai-0.1.1/bench/injection_gauntlet/corpus/v1/attacks_paths_mcp.yaml +10 -0
- sheepdogai-0.1.1/bench/injection_gauntlet/corpus/v1/attacks_repo_network.yaml +16 -0
- sheepdogai-0.1.1/bench/injection_gauntlet/corpus/v1/attacks_secrets.yaml +18 -0
- sheepdogai-0.1.1/bench/injection_gauntlet/corpus/v1/attacks_tamper.yaml +14 -0
- sheepdogai-0.1.1/bench/injection_gauntlet/corpus/v1/benign.yaml +47 -0
- sheepdogai-0.1.1/bench/injection_gauntlet/report.py +83 -0
- sheepdogai-0.1.1/bench/injection_gauntlet/run.py +311 -0
- sheepdogai-0.1.1/bench/report.json +254 -0
- sheepdogai-0.1.1/docs/adr/0001-fail-closed.md +22 -0
- sheepdogai-0.1.1/docs/adr/0002-decider-only-stricter.md +18 -0
- sheepdogai-0.1.1/docs/adr/0003-hooks-before-mcp.md +17 -0
- sheepdogai-0.1.1/docs/adr/0004-unix-socket-daemon.md +18 -0
- sheepdogai-0.1.1/docs/adr/0005-hash-chain-log.md +15 -0
- sheepdogai-0.1.1/docs/adr/0006-prov-o-reuse.md +15 -0
- sheepdogai-0.1.1/docs/adr/0007-dependencies.md +17 -0
- sheepdogai-0.1.1/docs/adr/0008-never-grant-permission.md +14 -0
- sheepdogai-0.1.1/docs/adr/0009-approvals-and-shared-config.md +25 -0
- sheepdogai-0.1.1/docs/architecture.md +72 -0
- sheepdogai-0.1.1/docs/index.md +8 -0
- sheepdogai-0.1.1/docs/limitations.md +84 -0
- sheepdogai-0.1.1/docs/ontology.md +58 -0
- sheepdogai-0.1.1/docs/phase2.md +74 -0
- sheepdogai-0.1.1/docs/publishing.md +37 -0
- sheepdogai-0.1.1/docs/threat-model.md +70 -0
- sheepdogai-0.1.1/examples/locked-down-ci.yaml +19 -0
- sheepdogai-0.1.1/examples/personal.yaml +10 -0
- sheepdogai-0.1.1/examples/solo-developer.yaml +13 -0
- sheepdogai-0.1.1/examples/team-repository.yaml +20 -0
- sheepdogai-0.1.1/fuzz/fuzz_policy.py +47 -0
- sheepdogai-0.1.1/mkdocs.yml +22 -0
- sheepdogai-0.1.1/pyproject.toml +71 -0
- sheepdogai-0.1.1/src/sheepdogai/__init__.py +16 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/__init__.py +94 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/__init__.py +0 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/claude/bash_bypass_mode_rm.json +12 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/claude/bash_curl_pipe_sh.json +12 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/claude/bash_npm_test.json +15 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/claude/edit_file.json +15 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/claude/mcp_tool.json +18 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/claude/not_pretooluse.json +12 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/claude/read_file.json +14 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/claude/webfetch.json +13 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/claude/write_file.json +13 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/claude/write_sheepdog_yaml.json +13 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/codex/apply_patch_UNVERIFIED_shape.json +14 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/codex/bash.json +14 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/codex/bash_rm.json +14 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/codex/mcp_tool_UNVERIFIED_name.json +14 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/framework/fetch.json +10 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/framework/not_a_tool_call.json +8 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/framework/read.json +10 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/framework/shell.json +10 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/gemini/mcp_tool.json +14 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/gemini/not_beforetool.json +9 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/gemini/read_file.json +11 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/gemini/shell.json +13 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/gemini/shell_rm.json +11 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/gemini/web_fetch.json +11 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/gemini/write_file.json +12 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/mcp/not_tools_call.json +10 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/mcp/tools_call_get_issue.json +18 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/mcp/tools_call_no_arguments.json +13 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/_fixtures/mcp/tools_call_write_file.json +17 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/claude_code.py +116 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/codex.py +96 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/framework_template.py +45 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/gemini.py +106 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/mcp_proxy.py +257 -0
- sheepdogai-0.1.1/src/sheepdogai/adapters/wrap.py +130 -0
- sheepdogai-0.1.1/src/sheepdogai/approvals.py +239 -0
- sheepdogai-0.1.1/src/sheepdogai/approvals_net.py +239 -0
- sheepdogai-0.1.1/src/sheepdogai/budget/__init__.py +0 -0
- sheepdogai-0.1.1/src/sheepdogai/budget/guard.py +76 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/__init__.py +0 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/approve.py +57 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/conformance.py +60 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/doctor.py +145 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/graph.py +22 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/hook.py +23 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/install.py +187 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/main.py +242 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/replay.py +122 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/report.py +110 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/setup.py +150 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/skills.py +107 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/status.py +63 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/tune.py +115 -0
- sheepdogai-0.1.1/src/sheepdogai/cli/verify_log.py +32 -0
- sheepdogai-0.1.1/src/sheepdogai/constants.py +23 -0
- sheepdogai-0.1.1/src/sheepdogai/core/__init__.py +0 -0
- sheepdogai-0.1.1/src/sheepdogai/core/adapter.py +48 -0
- sheepdogai-0.1.1/src/sheepdogai/core/canonical.py +34 -0
- sheepdogai-0.1.1/src/sheepdogai/core/decider.py +61 -0
- sheepdogai-0.1.1/src/sheepdogai/core/errors.py +25 -0
- sheepdogai-0.1.1/src/sheepdogai/core/events.py +48 -0
- sheepdogai-0.1.1/src/sheepdogai/core/verdict.py +89 -0
- sheepdogai-0.1.1/src/sheepdogai/daemon/__init__.py +0 -0
- sheepdogai-0.1.1/src/sheepdogai/daemon/client.py +157 -0
- sheepdogai-0.1.1/src/sheepdogai/daemon/server.py +473 -0
- sheepdogai-0.1.1/src/sheepdogai/graph/__init__.py +27 -0
- sheepdogai-0.1.1/src/sheepdogai/graph/builder.py +301 -0
- sheepdogai-0.1.1/src/sheepdogai/graph/export_json.py +24 -0
- sheepdogai-0.1.1/src/sheepdogai/graph/export_jsonld.py +104 -0
- sheepdogai-0.1.1/src/sheepdogai/graph/export_mermaid.py +52 -0
- sheepdogai-0.1.1/src/sheepdogai/log/__init__.py +0 -0
- sheepdogai-0.1.1/src/sheepdogai/log/chain.py +53 -0
- sheepdogai-0.1.1/src/sheepdogai/log/verify.py +69 -0
- sheepdogai-0.1.1/src/sheepdogai/log/writer.py +108 -0
- sheepdogai-0.1.1/src/sheepdogai/ontology/README.md +56 -0
- sheepdogai-0.1.1/src/sheepdogai/ontology/__init__.py +99 -0
- sheepdogai-0.1.1/src/sheepdogai/ontology/alignments.md +17 -0
- sheepdogai-0.1.1/src/sheepdogai/ontology/context.jsonld +54 -0
- sheepdogai-0.1.1/src/sheepdogai/ontology/mapping.md +31 -0
- sheepdogai-0.1.1/src/sheepdogai/ontology/shapes.ttl +97 -0
- sheepdogai-0.1.1/src/sheepdogai/ontology/sheepdogai.ttl +78 -0
- sheepdogai-0.1.1/src/sheepdogai/ontology/validate.py +52 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/__init__.py +0 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/engine.py +173 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/loader.py +466 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/matchers.py +1359 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/packs/__init__.py +0 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/packs/injection.yaml +28 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/packs/machine.yaml +43 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/packs/network.yaml +23 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/packs/personal.yaml +102 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/packs/repo.yaml +41 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/packs/secrets.yaml +61 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/packs/self_protect.yaml +49 -0
- sheepdogai-0.1.1/src/sheepdogai/policy/schema.py +177 -0
- sheepdogai-0.1.1/src/sheepdogai/py.typed +0 -0
- sheepdogai-0.1.1/src/sheepdogai/redact/__init__.py +0 -0
- sheepdogai-0.1.1/src/sheepdogai/redact/secrets.py +79 -0
- sheepdogai-0.1.1/src/sheepdogai/telemetry/__init__.py +0 -0
- sheepdogai-0.1.1/src/sheepdogai/telemetry/otel.py +65 -0
- sheepdogai-0.1.1/tests/__init__.py +0 -0
- sheepdogai-0.1.1/tests/conformance/test_adapters.py +204 -0
- sheepdogai-0.1.1/tests/conformance/test_e2e_smoke.py +53 -0
- sheepdogai-0.1.1/tests/conftest.py +35 -0
- sheepdogai-0.1.1/tests/fixtures/claude/bash_bypass_mode_rm.json +12 -0
- sheepdogai-0.1.1/tests/fixtures/claude/bash_curl_pipe_sh.json +12 -0
- sheepdogai-0.1.1/tests/fixtures/claude/bash_npm_test.json +15 -0
- sheepdogai-0.1.1/tests/fixtures/claude/edit_file.json +15 -0
- sheepdogai-0.1.1/tests/fixtures/claude/mcp_tool.json +18 -0
- sheepdogai-0.1.1/tests/fixtures/claude/not_pretooluse.json +12 -0
- sheepdogai-0.1.1/tests/fixtures/claude/read_file.json +14 -0
- sheepdogai-0.1.1/tests/fixtures/claude/webfetch.json +13 -0
- sheepdogai-0.1.1/tests/fixtures/claude/write_file.json +13 -0
- sheepdogai-0.1.1/tests/fixtures/claude/write_sheepdog_yaml.json +13 -0
- sheepdogai-0.1.1/tests/fixtures/codex/apply_patch_UNVERIFIED_shape.json +14 -0
- sheepdogai-0.1.1/tests/fixtures/codex/bash.json +14 -0
- sheepdogai-0.1.1/tests/fixtures/codex/bash_rm.json +14 -0
- sheepdogai-0.1.1/tests/fixtures/codex/mcp_tool_UNVERIFIED_name.json +14 -0
- sheepdogai-0.1.1/tests/fixtures/framework/fetch.json +10 -0
- sheepdogai-0.1.1/tests/fixtures/framework/not_a_tool_call.json +8 -0
- sheepdogai-0.1.1/tests/fixtures/framework/read.json +10 -0
- sheepdogai-0.1.1/tests/fixtures/framework/shell.json +10 -0
- sheepdogai-0.1.1/tests/fixtures/gemini/mcp_tool.json +14 -0
- sheepdogai-0.1.1/tests/fixtures/gemini/not_beforetool.json +9 -0
- sheepdogai-0.1.1/tests/fixtures/gemini/read_file.json +11 -0
- sheepdogai-0.1.1/tests/fixtures/gemini/shell.json +13 -0
- sheepdogai-0.1.1/tests/fixtures/gemini/shell_rm.json +11 -0
- sheepdogai-0.1.1/tests/fixtures/gemini/web_fetch.json +11 -0
- sheepdogai-0.1.1/tests/fixtures/gemini/write_file.json +12 -0
- sheepdogai-0.1.1/tests/fixtures/mcp/not_tools_call.json +10 -0
- sheepdogai-0.1.1/tests/fixtures/mcp/tools_call_get_issue.json +18 -0
- sheepdogai-0.1.1/tests/fixtures/mcp/tools_call_no_arguments.json +13 -0
- sheepdogai-0.1.1/tests/fixtures/mcp/tools_call_write_file.json +17 -0
- sheepdogai-0.1.1/tests/fuzz/test_fuzz.py +195 -0
- sheepdogai-0.1.1/tests/helpers.py +63 -0
- sheepdogai-0.1.1/tests/ontology/test_ontology.py +175 -0
- sheepdogai-0.1.1/tests/perf/test_perf.py +176 -0
- sheepdogai-0.1.1/tests/property/test_engine_properties.py +104 -0
- sheepdogai-0.1.1/tests/redteam/regressions.yaml +16 -0
- sheepdogai-0.1.1/tests/redteam/test_corpus.py +120 -0
- sheepdogai-0.1.1/tests/replay/golden/run.json +1242 -0
- sheepdogai-0.1.1/tests/replay/golden/run.jsonl +15 -0
- sheepdogai-0.1.1/tests/replay/golden/run.jsonld +1097 -0
- sheepdogai-0.1.1/tests/replay/golden/run.mmd +114 -0
- sheepdogai-0.1.1/tests/replay/golden/sheepdogai.yaml +10 -0
- sheepdogai-0.1.1/tests/replay/test_golden.py +30 -0
- sheepdogai-0.1.1/tests/replay/test_html_report.py +158 -0
- sheepdogai-0.1.1/tests/replay/test_replay.py +124 -0
- sheepdogai-0.1.1/tests/unit/log/test_log.py +121 -0
- sheepdogai-0.1.1/tests/unit/self_protect/test_self_protect.py +183 -0
- sheepdogai-0.1.1/tests/unit/test_agents.py +64 -0
- sheepdogai-0.1.1/tests/unit/test_approvals.py +501 -0
- sheepdogai-0.1.1/tests/unit/test_budget.py +79 -0
- sheepdogai-0.1.1/tests/unit/test_chat_and_tune.py +171 -0
- sheepdogai-0.1.1/tests/unit/test_core.py +90 -0
- sheepdogai-0.1.1/tests/unit/test_daemon_failclosed.py +194 -0
- sheepdogai-0.1.1/tests/unit/test_doctor.py +96 -0
- sheepdogai-0.1.1/tests/unit/test_fuzz_target.py +19 -0
- sheepdogai-0.1.1/tests/unit/test_gateway_cli.py +250 -0
- sheepdogai-0.1.1/tests/unit/test_graph.py +131 -0
- sheepdogai-0.1.1/tests/unit/test_hygiene.py +135 -0
- sheepdogai-0.1.1/tests/unit/test_matchers.py +285 -0
- sheepdogai-0.1.1/tests/unit/test_mcp_proxy_wrap.py +269 -0
- sheepdogai-0.1.1/tests/unit/test_personal_pack.py +252 -0
- sheepdogai-0.1.1/tests/unit/test_policy.py +262 -0
- sheepdogai-0.1.1/tests/unit/test_redact.py +44 -0
- sheepdogai-0.1.1/tests/unit/test_repo_docs.py +119 -0
- sheepdogai-0.1.1/tests/unit/test_setup.py +99 -0
- sheepdogai-0.1.1/tests/unit/test_shared_config.py +180 -0
- sheepdogai-0.1.1/tools/check_hygiene.py +59 -0
- sheepdogai-0.1.1/tools/check_suites.py +38 -0
- sheepdogai-0.1.1/tools/make_golden.py +96 -0
- sheepdogai-0.1.1/tools/sync_fixtures.py +30 -0
- sheepdogai-0.1.1/uv.lock +1300 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
language: python
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Something behaves differently from the docs
|
|
3
|
+
body:
|
|
4
|
+
- type: markdown
|
|
5
|
+
attributes: {value: "**Security bypass?** Do not open a public issue. See SECURITY.md."}
|
|
6
|
+
- type: input
|
|
7
|
+
attributes: {label: sheepdogai version, description: "output of `sheepdogai --version`"}
|
|
8
|
+
validations: {required: true}
|
|
9
|
+
- type: input
|
|
10
|
+
attributes: {label: Agent CLI and version}
|
|
11
|
+
- type: textarea
|
|
12
|
+
attributes: {label: What happened, description: "Redact secrets. `sheepdogai verify-log <run>` output helps."}
|
|
13
|
+
validations: {required: true}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## What and why
|
|
2
|
+
|
|
3
|
+
## Checklist
|
|
4
|
+
- [ ] `make verify` passes locally
|
|
5
|
+
- [ ] Tests written first or with the change (a bypass fix adds a case to `tests/redteam/regressions.yaml`)
|
|
6
|
+
- [ ] Docs updated (`docs/limitations.md` if a limitation changed)
|
|
7
|
+
- [ ] No new dependency (or an ADR justifies it)
|
|
8
|
+
- [ ] Commits are signed off (`git commit -s`, DCO)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: github-actions
|
|
4
|
+
directory: /
|
|
5
|
+
schedule: {interval: weekly}
|
|
6
|
+
groups:
|
|
7
|
+
actions: {patterns: ["*"]}
|
|
8
|
+
- package-ecosystem: uv
|
|
9
|
+
directory: /
|
|
10
|
+
schedule: {interval: weekly}
|
|
11
|
+
groups:
|
|
12
|
+
python: {patterns: ["*"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: clusterfuzzlite
|
|
2
|
+
# Coverage-guided fuzzing (Atheris) of the shell normaliser and policy engine on pull requests.
|
|
3
|
+
# UNTESTED CONFIG: written without Docker access; the first run may need adjustments.
|
|
4
|
+
on:
|
|
5
|
+
pull_request:
|
|
6
|
+
paths:
|
|
7
|
+
- "src/**"
|
|
8
|
+
- "fuzz/**"
|
|
9
|
+
- ".clusterfuzzlite/**"
|
|
10
|
+
permissions: read-all
|
|
11
|
+
concurrency:
|
|
12
|
+
group: cflite-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
jobs:
|
|
15
|
+
fuzz:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
timeout-minutes: 20
|
|
18
|
+
steps:
|
|
19
|
+
- id: build
|
|
20
|
+
uses: google/clusterfuzzlite/actions/build_fuzzers@884713a6c30a92e5e8544c39945cd7cb630abcd1 # v1
|
|
21
|
+
with:
|
|
22
|
+
language: python
|
|
23
|
+
sanitizer: address
|
|
24
|
+
- uses: google/clusterfuzzlite/actions/run_fuzzers@884713a6c30a92e5e8544c39945cd7cb630abcd1 # v1
|
|
25
|
+
with:
|
|
26
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
27
|
+
fuzz-seconds: 300
|
|
28
|
+
mode: code-change
|
|
29
|
+
sanitizer: address
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches: [main]
|
|
5
|
+
pull_request:
|
|
6
|
+
permissions: read-all
|
|
7
|
+
concurrency:
|
|
8
|
+
group: ci-${{ github.ref }}
|
|
9
|
+
cancel-in-progress: true
|
|
10
|
+
jobs:
|
|
11
|
+
verify:
|
|
12
|
+
name: verify (py${{ matrix.python }}, ${{ matrix.os }})
|
|
13
|
+
runs-on: ${{ matrix.os }}
|
|
14
|
+
timeout-minutes: 30
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
os: [ubuntu-latest, macos-latest]
|
|
19
|
+
python: ["3.11", "3.12", "3.13"]
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
22
|
+
with:
|
|
23
|
+
persist-credentials: false
|
|
24
|
+
- uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
|
|
25
|
+
with:
|
|
26
|
+
python-version: ${{ matrix.python }}
|
|
27
|
+
- name: Install (locked, hash-checked)
|
|
28
|
+
run: make setup
|
|
29
|
+
- name: Verify (lint, mypy --strict, all suites, latency gate)
|
|
30
|
+
run: make verify
|
|
31
|
+
- name: Benchmark report
|
|
32
|
+
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.13'
|
|
33
|
+
run: make bench
|
|
34
|
+
- name: Upload benchmark report
|
|
35
|
+
if: matrix.os == 'ubuntu-latest' && matrix.python == '3.13'
|
|
36
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
37
|
+
with:
|
|
38
|
+
name: injection-gauntlet-report
|
|
39
|
+
path: |
|
|
40
|
+
bench/report.md
|
|
41
|
+
bench/report.json
|
|
42
|
+
tests/perf/last_run.json
|
|
43
|
+
docs:
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
timeout-minutes: 10
|
|
46
|
+
steps:
|
|
47
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
48
|
+
with:
|
|
49
|
+
persist-credentials: false
|
|
50
|
+
- uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
|
|
51
|
+
with:
|
|
52
|
+
python-version: "3.13"
|
|
53
|
+
- name: Build and lint docs (strict)
|
|
54
|
+
run: |
|
|
55
|
+
uv sync --extra dev --extra docs --frozen
|
|
56
|
+
uv run mkdocs build --strict
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: codeql
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches: [main]
|
|
5
|
+
pull_request:
|
|
6
|
+
schedule:
|
|
7
|
+
- cron: "17 4 * * 1"
|
|
8
|
+
permissions: read-all
|
|
9
|
+
jobs:
|
|
10
|
+
analyze:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
timeout-minutes: 20
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
security-events: write
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
18
|
+
with:
|
|
19
|
+
persist-credentials: false
|
|
20
|
+
- uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
|
|
21
|
+
with:
|
|
22
|
+
languages: python
|
|
23
|
+
- uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
# Tag v* -> build sdist+wheel, CycloneDX SBOM, Sigstore signatures, PyPI trusted publishing.
|
|
3
|
+
# No long-lived tokens: PyPI uses OIDC. Do not publish before the project name is decided.
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
tags: ["v*"]
|
|
7
|
+
permissions: read-all
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
timeout-minutes: 20
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
14
|
+
with:
|
|
15
|
+
persist-credentials: false
|
|
16
|
+
- uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
|
|
17
|
+
with:
|
|
18
|
+
python-version: "3.13"
|
|
19
|
+
- run: make setup && make verify
|
|
20
|
+
- name: Build sdist and wheel
|
|
21
|
+
run: uv build
|
|
22
|
+
- name: SBOM (CycloneDX)
|
|
23
|
+
run: uv run --with cyclonedx-bom==9.0.0 cyclonedx-py environment --of JSON -o dist/sbom.cdx.json .venv
|
|
24
|
+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
25
|
+
with:
|
|
26
|
+
name: dist
|
|
27
|
+
path: dist/
|
|
28
|
+
sign:
|
|
29
|
+
needs: build
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
permissions:
|
|
32
|
+
id-token: write
|
|
33
|
+
contents: read
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
|
36
|
+
with:
|
|
37
|
+
name: dist
|
|
38
|
+
path: dist/
|
|
39
|
+
- uses: sigstore/gh-action-sigstore-python@f514d46b907ebcd5bedc05145c03b69c1edd8b46 # v3.0.0
|
|
40
|
+
with:
|
|
41
|
+
inputs: dist/*.whl dist/*.tar.gz dist/sbom.cdx.json
|
|
42
|
+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
43
|
+
with:
|
|
44
|
+
name: dist-signed
|
|
45
|
+
path: dist/
|
|
46
|
+
publish:
|
|
47
|
+
needs: sign
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
environment: pypi
|
|
50
|
+
permissions:
|
|
51
|
+
id-token: write
|
|
52
|
+
contents: read
|
|
53
|
+
steps:
|
|
54
|
+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
|
55
|
+
with:
|
|
56
|
+
name: dist-signed
|
|
57
|
+
path: dist/
|
|
58
|
+
- name: Keep only the wheel and sdist (PyPI rejects the SBOM and signature files)
|
|
59
|
+
run: mkdir upload && cp dist/*.whl dist/*.tar.gz upload/ && ls -l upload
|
|
60
|
+
- uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
|
|
61
|
+
with:
|
|
62
|
+
packages-dir: upload/
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: scorecard
|
|
2
|
+
on:
|
|
3
|
+
branch_protection_rule:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "31 5 * * 2"
|
|
6
|
+
push:
|
|
7
|
+
branches: [main]
|
|
8
|
+
permissions: read-all
|
|
9
|
+
jobs:
|
|
10
|
+
analysis:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
timeout-minutes: 15
|
|
13
|
+
permissions:
|
|
14
|
+
security-events: write
|
|
15
|
+
id-token: write
|
|
16
|
+
contents: read
|
|
17
|
+
actions: read
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
20
|
+
with:
|
|
21
|
+
persist-credentials: false
|
|
22
|
+
- uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
|
|
23
|
+
with:
|
|
24
|
+
results_file: results.sarif
|
|
25
|
+
results_format: sarif
|
|
26
|
+
publish_results: true
|
|
27
|
+
- uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
|
|
28
|
+
with:
|
|
29
|
+
sarif_file: results.sarif
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# pip install pre-commit && pre-commit install
|
|
2
|
+
repos:
|
|
3
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
4
|
+
rev: 3d44372123ca5e8617fdb65d9f11facd159b9e95 # v0.12.3
|
|
5
|
+
hooks:
|
|
6
|
+
- id: ruff
|
|
7
|
+
args: [--fix]
|
|
8
|
+
- id: ruff-format
|
|
9
|
+
- repo: https://github.com/gitleaks/gitleaks
|
|
10
|
+
rev: c7acf33d962e8effc070072f993c365af19e3661 # v8.27.2 (secret scanner)
|
|
11
|
+
hooks:
|
|
12
|
+
- id: gitleaks
|
|
13
|
+
- repo: local
|
|
14
|
+
hooks:
|
|
15
|
+
- id: mypy-strict
|
|
16
|
+
name: mypy --strict
|
|
17
|
+
entry: uv run mypy --strict
|
|
18
|
+
language: system
|
|
19
|
+
pass_filenames: false
|
|
20
|
+
types: [python]
|
|
21
|
+
- id: no-unverified-outside-experimental
|
|
22
|
+
name: UNVERIFIED only in experimental adapters, docs and tests
|
|
23
|
+
entry: python tools/check_hygiene.py
|
|
24
|
+
language: system
|
|
25
|
+
pass_filenames: false
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes are documented here. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/);
|
|
4
|
+
versioning: [Semantic Versioning](https://semver.org/).
|
|
5
|
+
|
|
6
|
+
## [Unreleased]
|
|
7
|
+
|
|
8
|
+
### Changed
|
|
9
|
+
- Renamed the command, config file (`sheepdogai.yaml`), state folder (`.sheepdogai/`), env vars (`SHEEPDOGAI_*`) and ontology
|
|
10
|
+
prefix from `sheepdog` to `sheepdogai`, to avoid clashing with the `sheepdog` PyPI package and sheepdog.sh. The chat
|
|
11
|
+
commands are `/sheepdogai` and the short `/sheepdog` (never overwrites an existing `/sheepdog` of yours).
|
|
12
|
+
|
|
13
|
+
Version bumped to 0.1.0 (not yet published).
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
- Core contracts (`ToolCallEvent`, `Verdict`, Decider clamp), policy engine with shell normaliser,
|
|
17
|
+
six rule packs, budget guard, redaction, hash-chained log with `verify-log`.
|
|
18
|
+
- Adapters for Claude Code and Gemini CLI (verified against official docs); Codex (experimental).
|
|
19
|
+
- Unix-socket daemon, thin hook client, `sheepdogai` CLI (init, install/uninstall, hook, status,
|
|
20
|
+
verify-log, graph, replay, conformance, bench).
|
|
21
|
+
- Run graph (Mermaid, JSON, JSON-LD), ontology (OWL, JSON-LD context, SHACL) and validation.
|
|
22
|
+
- Injection gauntlet corpus v1 and benchmark runner; fuzz, red-team, replay, ontology and perf suites.
|
|
23
|
+
|
|
24
|
+
- Phase 2: opt-in `personal` pack, approvals (single-use tokens, terminal/ntfy/telegram/webhook
|
|
25
|
+
notifiers), experimental MCP proxy and `wrap()`, static HTML replay report, shared repo config
|
|
26
|
+
(`approve-shared`, tighten-only).
|
|
27
|
+
|
|
28
|
+
- `sheepdogai setup`: detect agents, show the diff, confirm, install user-wide, self-test; `--undo`.
|
|
29
|
+
User-wide policy at `~/.config/sheepdogai/sheepdogai.yaml` for projects without their own.
|
|
30
|
+
|
|
31
|
+
- `sheepdogai doctor` (plain-language health check with fix hints) and `sheepdogai recent`.
|
|
32
|
+
|
|
33
|
+
- `/sheepdogai` chat command (Claude Code skill, Gemini CLI custom command) installed by `setup`; `sheepdogai mode|allow|block`;
|
|
34
|
+
bare `sheepdogai` runs the health check. Tuning commands always ask the human first.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
- The wheel no longer ships a top-level `agents` package (it collides with other libraries).
|
|
38
|
+
|
|
39
|
+
### Security
|
|
40
|
+
- Fixed while building (kept as permanent regressions): `curl | sudo bash`, `echo $TOKEN`,
|
|
41
|
+
`/proc/self/environ`, `/etc/shadow`, `ls ~/.ssh`, `~/.git-credentials`, `$IFS$9` word splitting.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If you use this software, please cite it as below."
|
|
3
|
+
title: "sheepdogai: a safety and observability gate for AI agent tool calls"
|
|
4
|
+
type: software
|
|
5
|
+
version: 0.1.1
|
|
6
|
+
license: Apache-2.0
|
|
7
|
+
authors:
|
|
8
|
+
- name: "sheepdogai contributors"
|
|
9
|
+
repository-code: "https://github.com/neoparadigm/sheepdog.ai"
|
|
10
|
+
abstract: >-
|
|
11
|
+
Framework-agnostic guard at the tool-call boundary of AI agents: deterministic policy, a
|
|
12
|
+
stricter-only Decider, budgets, and a tamper-evident replayable log mapped to PROV-O and OpenTelemetry.
|
|
13
|
+
keywords: [ai-safety, agents, guardrails, provenance, prov-o, opentelemetry]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
This project follows the spirit of the Contributor Covenant 2.1
|
|
4
|
+
(https://www.contributor-covenant.org/version/2/1/code_of_conduct/, CC BY 4.0), summarised here.
|
|
5
|
+
|
|
6
|
+
**Our pledge.** We want participation to be harassment-free for everyone, regardless of age, body
|
|
7
|
+
size, disability, ethnicity, sex characteristics, gender identity and expression, level of
|
|
8
|
+
experience, education, socio-economic status, nationality, personal appearance, race, religion, or
|
|
9
|
+
sexual identity and orientation.
|
|
10
|
+
|
|
11
|
+
**Expected:** be respectful and constructive; give and accept feedback gracefully; focus on what is
|
|
12
|
+
best for the community; show empathy.
|
|
13
|
+
|
|
14
|
+
**Unacceptable:** harassment, insults, personal attacks, sexualised language or imagery,
|
|
15
|
+
publishing others' private information, and other conduct reasonably considered inappropriate.
|
|
16
|
+
|
|
17
|
+
**Enforcement.** Maintainers may remove, edit or reject contributions that violate this code and
|
|
18
|
+
may ban contributors temporarily or permanently. Report incidents privately to the maintainers
|
|
19
|
+
(`conduct@example.invalid`, placeholder: replace before publishing). Reports are handled
|
|
20
|
+
confidentially. This applies in project spaces and when representing the project in public.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
1. `make setup` (uses `uv`, locked and hash-checked), then `make verify` must pass.
|
|
4
|
+
2. **Tests first.** Every behaviour change comes with a test. A bypass fix also adds a case to
|
|
5
|
+
`tests/redteam/regressions.yaml` (never delete one).
|
|
6
|
+
3. Keep dependencies minimal. A new one needs an ADR (`docs/adr/0007-dependencies.md`).
|
|
7
|
+
4. Do not claim what you cannot measure. Do not invent facts about external tools: link the
|
|
8
|
+
official doc, save a real payload as a fixture, and mark what you could not verify with the
|
|
9
|
+
word `UNVERIFIED` and an experimental flag (it may appear only in experimental adapters, docs
|
|
10
|
+
and tests; `tools/check_hygiene.py` enforces this).
|
|
11
|
+
5. Never write the word "secure" in marketing text. Say what was measured.
|
|
12
|
+
|
|
13
|
+
## Commit sign-off (DCO)
|
|
14
|
+
|
|
15
|
+
Every commit must carry a `Signed-off-by` line certifying the
|
|
16
|
+
[Developer Certificate of Origin](https://developercertificate.org/): `git commit -s`.
|
|
17
|
+
|
|
18
|
+
## Changing the golden run
|
|
19
|
+
|
|
20
|
+
Changing a pack or the schema changes the policy hash, so the golden run in
|
|
21
|
+
`tests/replay/golden/` must be regenerated: `uv run python tools/make_golden.py`. Review the diff.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Governance
|
|
2
|
+
|
|
3
|
+
* **Maintainers** merge changes, cut releases and handle security reports (`CODEOWNERS`).
|
|
4
|
+
* **Decisions** are made by lazy consensus on pull requests. A change that touches an invariant in
|
|
5
|
+
`docs/threat-model.md`, a pack's deny rules, the log format or the policy schema needs an ADR in
|
|
6
|
+
`docs/adr/` and two maintainer approvals.
|
|
7
|
+
* **Becoming a maintainer:** sustained, reviewed contributions and an invitation from existing
|
|
8
|
+
maintainers (a majority vote). Maintainers who are inactive for 12 months become emeritus.
|
|
9
|
+
* **Releases** follow semantic versioning. Policy-affecting changes (new default deny/ask rules,
|
|
10
|
+
new packs on by default) are listed under *Changed* in `CHANGELOG.md` because they change the
|
|
11
|
+
policy hash.
|
|
12
|
+
* **The name** `sheepdogai`/`sheepdogai` is a placeholder (see README); a rename is a maintainer
|
|
13
|
+
decision recorded in an ADR.
|
|
14
|
+
* **Conflicts of interest and conduct** follow `CODE_OF_CONDUCT.md`.
|
sheepdogai-0.1.1/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.PHONY: setup lint type test fuzz bench verify
|
|
2
|
+
PY = uv run python
|
|
3
|
+
setup:
|
|
4
|
+
uv sync --extra dev --frozen
|
|
5
|
+
lint:
|
|
6
|
+
uv run ruff check src tests agents bench
|
|
7
|
+
uv run ruff format --check src tests agents bench
|
|
8
|
+
type:
|
|
9
|
+
uv run mypy --strict
|
|
10
|
+
test:
|
|
11
|
+
uv run pytest tests/unit tests/property --cov --cov-report=term-missing:skip-covered
|
|
12
|
+
fuzz:
|
|
13
|
+
uv run pytest tests/fuzz --hypothesis-seed=0
|
|
14
|
+
bench:
|
|
15
|
+
$(PY) -m bench.injection_gauntlet.run --out bench/report.md
|
|
16
|
+
verify: lint type
|
|
17
|
+
$(PY) tools/check_suites.py
|
|
18
|
+
$(PY) tools/check_hygiene.py
|
|
19
|
+
uv run pytest tests --ignore=tests/perf --cov --cov-report=term-missing:skip-covered
|
|
20
|
+
uv run pytest tests/perf
|
sheepdogai-0.1.1/NOTICE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
sheepdogai
|
|
2
|
+
Copyright 2026 The sheepdogai contributors
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
The ontology reuses terms from the W3C PROV-O vocabulary (https://www.w3.org/TR/prov-o/) and
|
|
7
|
+
names from OpenTelemetry semantic conventions (https://github.com/open-telemetry/semantic-conventions),
|
|
8
|
+
both referenced by IRI/name only; no third-party text is redistributed.
|