redloop 0.1.0__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.
Files changed (88) hide show
  1. redloop-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +56 -0
  2. redloop-0.1.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
  3. redloop-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +20 -0
  4. redloop-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +11 -0
  5. redloop-0.1.0/.github/dependabot.yml +9 -0
  6. redloop-0.1.0/.github/workflows/ci.yml +48 -0
  7. redloop-0.1.0/.github/workflows/live-model.yml +69 -0
  8. redloop-0.1.0/.github/workflows/release.yml +76 -0
  9. redloop-0.1.0/.github/workflows/scorecard.yml +33 -0
  10. redloop-0.1.0/.gitignore +18 -0
  11. redloop-0.1.0/CHANGELOG.md +41 -0
  12. redloop-0.1.0/CITATION.cff +43 -0
  13. redloop-0.1.0/CODE_OF_CONDUCT.md +83 -0
  14. redloop-0.1.0/CONTRIBUTING.md +33 -0
  15. redloop-0.1.0/LICENSE +202 -0
  16. redloop-0.1.0/NOTICE +16 -0
  17. redloop-0.1.0/PKG-INFO +278 -0
  18. redloop-0.1.0/README.md +246 -0
  19. redloop-0.1.0/SECURITY.md +16 -0
  20. redloop-0.1.0/action.yml +67 -0
  21. redloop-0.1.0/docs/demo.svg +9 -0
  22. redloop-0.1.0/docs/governance.md +53 -0
  23. redloop-0.1.0/docs/maturity-model.md +375 -0
  24. redloop-0.1.0/docs/methodology.md +79 -0
  25. redloop-0.1.0/docs/probes.md +73 -0
  26. redloop-0.1.0/docs/targets.md +106 -0
  27. redloop-0.1.0/docs/threat-model.md +86 -0
  28. redloop-0.1.0/examples/assessment.toml +41 -0
  29. redloop-0.1.0/examples/github-workflow.yml +29 -0
  30. redloop-0.1.0/examples/redloop-http.toml +24 -0
  31. redloop-0.1.0/examples/redloop-ollama.toml +31 -0
  32. redloop-0.1.0/examples/redloop-openai.toml +27 -0
  33. redloop-0.1.0/examples/redloop-sandbox.toml +24 -0
  34. redloop-0.1.0/examples/redloop.toml +41 -0
  35. redloop-0.1.0/examples/risk-acceptances.toml +11 -0
  36. redloop-0.1.0/examples/threatmodel.toml +136 -0
  37. redloop-0.1.0/pyproject.toml +59 -0
  38. redloop-0.1.0/src/redloop/__init__.py +5 -0
  39. redloop-0.1.0/src/redloop/__main__.py +3 -0
  40. redloop-0.1.0/src/redloop/cli.py +431 -0
  41. redloop-0.1.0/src/redloop/config.py +130 -0
  42. redloop-0.1.0/src/redloop/converters.py +273 -0
  43. redloop-0.1.0/src/redloop/crosswalk.py +63 -0
  44. redloop-0.1.0/src/redloop/data/aixwalk/README.md +8 -0
  45. redloop-0.1.0/src/redloop/data/aixwalk/crosswalk.json +452 -0
  46. redloop-0.1.0/src/redloop/data/aixwalk/frameworks/iso-42001-annex-a.json +45 -0
  47. redloop-0.1.0/src/redloop/data/aixwalk/frameworks/mitre-atlas.json +949 -0
  48. redloop-0.1.0/src/redloop/data/aixwalk/frameworks/nist-ai-rmf-1.0.json +369 -0
  49. redloop-0.1.0/src/redloop/data/aixwalk/frameworks/owasp-agentic-2026.json +49 -0
  50. redloop-0.1.0/src/redloop/data/aixwalk/frameworks/owasp-llm-2025.json +49 -0
  51. redloop-0.1.0/src/redloop/data/maturity-model.json +425 -0
  52. redloop-0.1.0/src/redloop/data/templates/assessment.toml +41 -0
  53. redloop-0.1.0/src/redloop/data/templates/redloop.toml +41 -0
  54. redloop-0.1.0/src/redloop/data/templates/risk-acceptances.toml +11 -0
  55. redloop-0.1.0/src/redloop/data/templates/threatmodel.toml +136 -0
  56. redloop-0.1.0/src/redloop/detectors.py +138 -0
  57. redloop-0.1.0/src/redloop/evidence.py +140 -0
  58. redloop-0.1.0/src/redloop/governance.py +106 -0
  59. redloop-0.1.0/src/redloop/maturity.py +340 -0
  60. redloop-0.1.0/src/redloop/probes/__init__.py +48 -0
  61. redloop-0.1.0/src/redloop/probes/base.py +194 -0
  62. redloop-0.1.0/src/redloop/probes/catalog.py +383 -0
  63. redloop-0.1.0/src/redloop/py.typed +0 -0
  64. redloop-0.1.0/src/redloop/report/__init__.py +22 -0
  65. redloop-0.1.0/src/redloop/report/jsonout.py +13 -0
  66. redloop-0.1.0/src/redloop/report/md.py +98 -0
  67. redloop-0.1.0/src/redloop/report/sarif.py +103 -0
  68. redloop-0.1.0/src/redloop/report/text.py +90 -0
  69. redloop-0.1.0/src/redloop/results.py +253 -0
  70. redloop-0.1.0/src/redloop/runner.py +99 -0
  71. redloop-0.1.0/src/redloop/sandbox.py +207 -0
  72. redloop-0.1.0/src/redloop/targets/__init__.py +59 -0
  73. redloop-0.1.0/src/redloop/targets/base.py +109 -0
  74. redloop-0.1.0/src/redloop/targets/http.py +132 -0
  75. redloop-0.1.0/src/redloop/targets/mock.py +254 -0
  76. redloop-0.1.0/src/redloop/targets/openai.py +145 -0
  77. redloop-0.1.0/src/redloop/targets/transport.py +125 -0
  78. redloop-0.1.0/src/redloop/threats.py +485 -0
  79. redloop-0.1.0/src/redloop/util.py +135 -0
  80. redloop-0.1.0/tests/test_cli.py +195 -0
  81. redloop-0.1.0/tests/test_converters_detectors.py +160 -0
  82. redloop-0.1.0/tests/test_governance_evidence.py +165 -0
  83. redloop-0.1.0/tests/test_hygiene.py +109 -0
  84. redloop-0.1.0/tests/test_maturity.py +145 -0
  85. redloop-0.1.0/tests/test_runner.py +172 -0
  86. redloop-0.1.0/tests/test_sandbox.py +164 -0
  87. redloop-0.1.0/tests/test_targets.py +284 -0
  88. redloop-0.1.0/tests/test_threats.py +117 -0
@@ -0,0 +1,56 @@
1
+ name: Bug report
2
+ description: Something in redloop does not work as documented
3
+ labels: [bug]
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ Thanks for reporting! For security vulnerabilities in redloop itself, please use
9
+ **Security → Report a vulnerability** instead of a public issue.
10
+ - type: input
11
+ id: version
12
+ attributes:
13
+ label: redloop version
14
+ description: Output of `redloop --version`
15
+ placeholder: "redloop 0.1.0"
16
+ validations:
17
+ required: true
18
+ - type: input
19
+ id: python
20
+ attributes:
21
+ label: Python version and OS
22
+ placeholder: "Python 3.12, Ubuntu 24.04"
23
+ validations:
24
+ required: true
25
+ - type: dropdown
26
+ id: area
27
+ attributes:
28
+ label: Area
29
+ options:
30
+ - probes / converters
31
+ - targets
32
+ - threat model
33
+ - maturity model
34
+ - evidence / reports
35
+ - sandbox
36
+ - GitHub Action
37
+ - docs
38
+ - type: textarea
39
+ id: what
40
+ attributes:
41
+ label: What happened, and what did you expect?
42
+ validations:
43
+ required: true
44
+ - type: textarea
45
+ id: repro
46
+ attributes:
47
+ label: Steps to reproduce
48
+ description: Minimal commands, config and input. Remove secrets and confidential data.
49
+ render: shell
50
+ validations:
51
+ required: true
52
+ - type: textarea
53
+ id: output
54
+ attributes:
55
+ label: Relevant output
56
+ render: text
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: true
2
+ contact_links:
3
+ - name: Report a security vulnerability
4
+ url: https://github.com/rajyavardhan01/redloop/security/advisories/new
5
+ about: Please report vulnerabilities privately, not as public issues.
@@ -0,0 +1,20 @@
1
+ name: Feature request
2
+ description: Suggest an improvement to redloop
3
+ labels: [enhancement]
4
+ body:
5
+ - type: textarea
6
+ id: problem
7
+ attributes:
8
+ label: Problem
9
+ description: What are you trying to do, and what gets in the way today?
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: proposal
14
+ attributes:
15
+ label: Proposed solution
16
+ - type: textarea
17
+ id: references
18
+ attributes:
19
+ label: References
20
+ description: Related standards (OWASP, MITRE ATLAS, NIST AI RMF, ...), papers or tools.
@@ -0,0 +1,11 @@
1
+ ## What and why
2
+
3
+ <!-- What does this change, and why is it needed? Link related issues. -->
4
+
5
+ ## Checklist
6
+
7
+ - [ ] Tests added or updated (`PYTHONPATH=src python -m unittest discover -s tests`)
8
+ - [ ] `ruff check .` passes
9
+ - [ ] Docs / README / CHANGELOG updated where behaviour changes
10
+ - [ ] No new runtime dependencies (redloop stays standard-library only)
11
+ - [ ] No secrets, customer data or copyrighted standard text added
@@ -0,0 +1,9 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ groups:
8
+ actions:
9
+ patterns: ["*"]
@@ -0,0 +1,48 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ python-version: ["3.11", "3.12", "3.13", "3.14"]
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - uses: actions/setup-python@v5
21
+ with:
22
+ python-version: ${{ matrix.python-version }}
23
+ allow-prereleases: true
24
+ - name: Install tools
25
+ run: python -m pip install --upgrade pip ruff pytest
26
+ - name: Lint
27
+ run: ruff check .
28
+ - name: Test
29
+ run: pytest -q
30
+ - name: Demo (offline mock target)
31
+ run: |
32
+ PYTHONPATH=src python -m redloop run --target mock --preset hardened --max-asr 0
33
+ PYTHONPATH=src python -m redloop threats examples/threatmodel.toml
34
+
35
+ build:
36
+ runs-on: ubuntu-latest
37
+ steps:
38
+ - uses: actions/checkout@v4
39
+ - uses: actions/setup-python@v5
40
+ with:
41
+ python-version: "3.12"
42
+ - run: python -m pip install --upgrade pip build
43
+ - run: python -m build
44
+ - name: Install wheel and run
45
+ run: |
46
+ python -m pip install dist/*.whl
47
+ redloop probes
48
+ redloop run --target mock --preset hardened
@@ -0,0 +1,69 @@
1
+ name: Live model red team
2
+
3
+ # Runs redloop against a real open-weight model (qwen2.5:0.5b) served by Ollama's
4
+ # OpenAI-compatible API on the GitHub-hosted runner. No API keys are involved.
5
+ # Findings go to the job summary and an evidence artifact; the job fails only if redloop
6
+ # could not test anything (exit code 2), not because the model was bypassed.
7
+ on:
8
+ workflow_dispatch:
9
+ schedule:
10
+ - cron: "17 6 * * 1"
11
+ push:
12
+ branches: [main]
13
+ paths:
14
+ - "src/redloop/targets/**"
15
+ - "src/redloop/probes/**"
16
+ - "examples/redloop-ollama.toml"
17
+ - ".github/workflows/live-model.yml"
18
+
19
+ permissions:
20
+ contents: read
21
+
22
+ concurrency:
23
+ group: live-model
24
+ cancel-in-progress: false
25
+
26
+ env:
27
+ MODEL: qwen2.5:0.5b
28
+
29
+ jobs:
30
+ redteam:
31
+ runs-on: ubuntu-latest
32
+ timeout-minutes: 60
33
+ services:
34
+ ollama:
35
+ image: ollama/ollama:latest
36
+ ports:
37
+ - 11434:11434
38
+ steps:
39
+ - uses: actions/checkout@v4
40
+ - uses: actions/setup-python@v5
41
+ with:
42
+ python-version: "3.12"
43
+ - name: Install redloop
44
+ run: python -m pip install .
45
+ - name: Pull the model and check it answers
46
+ run: |
47
+ for i in $(seq 1 60); do curl -sf http://localhost:11434/api/version && break; sleep 2; done
48
+ echo
49
+ curl -sf http://localhost:11434/api/pull -d "{\"model\":\"$MODEL\",\"stream\":false}"
50
+ echo
51
+ curl -sf http://localhost:11434/v1/chat/completions -H "Content-Type: application/json" \
52
+ -d "{\"model\":\"$MODEL\",\"messages\":[{\"role\":\"user\",\"content\":\"Reply with the word pong.\"}],\"max_tokens\":5}"
53
+ echo
54
+ - name: Run redloop against the model
55
+ working-directory: examples
56
+ run: |
57
+ set +e
58
+ redloop run -c redloop-ollama.toml --format md -o report.md
59
+ status=$?
60
+ cat report.md >> "$GITHUB_STEP_SUMMARY"
61
+ echo "redloop exit code: $status"
62
+ if [ "$status" -ge 2 ]; then exit "$status"; fi
63
+ - name: Keep evidence
64
+ if: always()
65
+ uses: actions/upload-artifact@v4
66
+ with:
67
+ name: redloop-evidence-${{ github.run_id }}
68
+ path: examples/evidence/
69
+ if-no-files-found: warn
@@ -0,0 +1,76 @@
1
+ name: Release
2
+
3
+ # Push a tag like v0.1.0 to build, attest and publish a GitHub release.
4
+ # PyPI publishing (trusted publishing, no tokens) runs only when the repository variable
5
+ # PUBLISH_TO_PYPI is set to "true" and a PyPI trusted publisher is configured for this
6
+ # repository with environment "pypi".
7
+ on:
8
+ push:
9
+ tags: ["v*"]
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ build:
16
+ runs-on: ubuntu-latest
17
+ permissions:
18
+ contents: read
19
+ id-token: write
20
+ attestations: write
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - uses: actions/setup-python@v5
24
+ with:
25
+ python-version: "3.12"
26
+ - name: Check the tag matches the package version
27
+ run: |
28
+ version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
29
+ test "v$version" = "$GITHUB_REF_NAME" || { echo "tag $GITHUB_REF_NAME != version $version"; exit 1; }
30
+ - name: Test
31
+ run: python -m pip install --upgrade pip pytest && pytest -q
32
+ - name: Build sdist and wheel
33
+ run: python -m pip install build && python -m build
34
+ - name: Attest build provenance
35
+ if: github.event.repository.private == false
36
+ uses: actions/attest-build-provenance@v2
37
+ with:
38
+ subject-path: "dist/*"
39
+ - uses: actions/upload-artifact@v4
40
+ with:
41
+ name: dist
42
+ path: dist/
43
+
44
+ github-release:
45
+ needs: build
46
+ runs-on: ubuntu-latest
47
+ permissions:
48
+ contents: write
49
+ steps:
50
+ - uses: actions/checkout@v4
51
+ - uses: actions/download-artifact@v4
52
+ with:
53
+ name: dist
54
+ path: dist/
55
+ - name: Create GitHub release
56
+ env:
57
+ GH_TOKEN: ${{ github.token }}
58
+ run: |
59
+ version="${GITHUB_REF_NAME#v}"
60
+ awk -v v="$version" '$0 ~ "^## \\[" v "\\]" {f=1; next} /^## \[/ {f=0} f' CHANGELOG.md > notes.md
61
+ [ -s notes.md ] || echo "Release $GITHUB_REF_NAME" > notes.md
62
+ gh release create "$GITHUB_REF_NAME" dist/* --title "redloop $GITHUB_REF_NAME" --notes-file notes.md
63
+
64
+ pypi:
65
+ needs: build
66
+ if: vars.PUBLISH_TO_PYPI == 'true'
67
+ runs-on: ubuntu-latest
68
+ environment: pypi
69
+ permissions:
70
+ id-token: write
71
+ steps:
72
+ - uses: actions/download-artifact@v4
73
+ with:
74
+ name: dist
75
+ path: dist/
76
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,33 @@
1
+ name: OpenSSF Scorecard
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ schedule:
7
+ - cron: "23 4 * * 1"
8
+ workflow_dispatch:
9
+
10
+ permissions: read-all
11
+
12
+ jobs:
13
+ analysis:
14
+ # Scorecard only supports public repositories.
15
+ if: github.event.repository.private == false
16
+ runs-on: ubuntu-latest
17
+ permissions:
18
+ security-events: write
19
+ id-token: write
20
+ contents: read
21
+ actions: read
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ with:
25
+ persist-credentials: false
26
+ - uses: ossf/scorecard-action@v2.4.0
27
+ with:
28
+ results_file: results.sarif
29
+ results_format: sarif
30
+ publish_results: true
31
+ - uses: github/codeql-action/upload-sarif@v3
32
+ with:
33
+ sarif_file: results.sarif
@@ -0,0 +1,18 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.egg-info/
4
+ .eggs/
5
+ build/
6
+ dist/
7
+ .venv/
8
+ venv/
9
+ .env
10
+ .pytest_cache/
11
+ .ruff_cache/
12
+ .mypy_cache/
13
+ .coverage
14
+ htmlcov/
15
+ .DS_Store
16
+ # redloop outputs
17
+ evidence/
18
+ *.sarif
@@ -0,0 +1,41 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
5
+ [Semantic Versioning](https://semver.org/).
6
+
7
+ ## [0.1.0] - 2026-11-30
8
+
9
+ ### Added
10
+
11
+ - Client-side pacing (`requests_per_minute`) and retries with exponential backoff that honour
12
+ `Retry-After`, for the `openai` and `http` targets.
13
+ - `[sandbox] command` to override the container image's default command.
14
+ - Echo-resistant canaries for instruction-following probes, and a compliance classifier that
15
+ needs a positive signal (validated against a real open-weight model).
16
+ - Non-JSON responses are reported with HTTP status, content type and a short body snippet;
17
+ gzip-encoded bodies are decoded.
18
+ - A probe counts as defended only if at least one attempt reached the target; `redloop run`
19
+ exits with code 2 when every probe failed with a target error.
20
+ - `examples/redloop-ollama.toml` and a scheduled workflow that red-teams a real open-weight
21
+ model (served by Ollama's OpenAI-compatible API) on a GitHub-hosted runner.
22
+ - Threat model as code (`threatmodel.toml`): 16 component types, flows, and a rule engine
23
+ that produces a threat register with likelihood x impact severity, multi-vector chain
24
+ detection and framework mappings via the aixwalk crosswalk.
25
+ - 11 canary-based probes covering direct and indirect prompt injection, document-to-tool
26
+ exfiltration chains, system prompt leakage, confidential context disclosure, output
27
+ handling, excessive agency, refusal robustness and metamorphic consistency.
28
+ - 11 payload converters, depth-2 converter chains and an adaptive scheduler that prioritises
29
+ mutations that already succeeded in the run.
30
+ - Targets: offline mock simulation (vulnerable/hardened presets), OpenAI-compatible Chat
31
+ Completions, and generic JSON-over-HTTP.
32
+ - Resilience maturity model v1: 4 dimensions, 23 criteria, 5 levels, NIST AI RMF mappings,
33
+ automatic evidence from redloop runs, scorecard and roadmap.
34
+ - Governance as code: risk acceptances with owner, approver, justification and expiry.
35
+ - Evidence bundles (run metadata, transcript, findings, SARIF, Markdown report) with a
36
+ SHA-256 manifest and `redloop report` verification.
37
+ - Ephemeral Docker sandbox runner (`redloop sandbox`) with per-run or per-probe isolation.
38
+ - Outputs: text, Markdown, JSON, SARIF 2.1.0. CI gate on severity and attack success rate.
39
+ - Composite GitHub Action.
40
+
41
+ [0.1.0]: https://github.com/rajyavardhan01/redloop/releases/tag/v0.1.0
@@ -0,0 +1,43 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use redloop in research or assessments, please cite it as below."
3
+ type: software
4
+ title: "redloop: continuous AI red teaming as code"
5
+ version: 0.1.0
6
+ date-released: 2026-11-30
7
+ license: Apache-2.0
8
+ repository-code: "https://github.com/rajyavardhan01/redloop"
9
+ keywords:
10
+ - AI security
11
+ - red teaming
12
+ - adversarial simulation
13
+ - resilience engineering
14
+ - continuous validation
15
+ authors:
16
+ - family-names: Handa
17
+ given-names: Rajyavardhan
18
+ orcid: "https://orcid.org/0000-0002-5247-7880"
19
+ references:
20
+ - type: article
21
+ title: "Adversarial Simulation and Resilience Engineering for Enterprise AI Systems"
22
+ authors:
23
+ - family-names: Handa
24
+ given-names: Rajyavardhan
25
+ journal: "International Journal of Computational and Experimental Science and Engineering"
26
+ volume: 11
27
+ issue: 4
28
+ start: 9288
29
+ end: 9294
30
+ year: 2025
31
+ doi: 10.22399/ijcesen.4413
32
+ - type: article
33
+ title: "AI-Driven Zero-Day Simulation: Predictive Offensive Modeling for Emerging Vulnerabilities"
34
+ authors:
35
+ - family-names: Handa
36
+ given-names: Rajyavardhan
37
+ journal: "Journal of Information Systems Engineering and Management"
38
+ volume: 10
39
+ issue: 62s
40
+ start: 941
41
+ end: 951
42
+ year: 2025
43
+ doi: 10.52783/jisem.v10i62s.13722
@@ -0,0 +1,83 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or advances of any kind
22
+ * Trolling, insulting or derogatory comments, and personal or political attacks
23
+ * Public or private harassment
24
+ * Publishing others' private information, such as a physical or email address, without their explicit permission
25
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
26
+
27
+ ## Enforcement Responsibilities
28
+
29
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
32
+
33
+ ## Scope
34
+
35
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
36
+
37
+ ## Enforcement
38
+
39
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at the project maintainer, privately, using the contact options on [github.com/rajyavardhan01](https://github.com/rajyavardhan01). All complaints will be reviewed and investigated promptly and fairly.
40
+
41
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
42
+
43
+ ## Enforcement Guidelines
44
+
45
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
46
+
47
+ ### 1. Correction
48
+
49
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
50
+
51
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
52
+
53
+ ### 2. Warning
54
+
55
+ **Community Impact**: A violation through a single incident or series of actions.
56
+
57
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
58
+
59
+ ### 3. Temporary Ban
60
+
61
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
62
+
63
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
64
+
65
+ ### 4. Permanent Ban
66
+
67
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
68
+
69
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
70
+
71
+ ## Attribution
72
+
73
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
74
+
75
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
76
+
77
+ For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
78
+
79
+ [homepage]: https://www.contributor-covenant.org
80
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
81
+ [Mozilla CoC]: https://github.com/mozilla/diversity
82
+ [FAQ]: https://www.contributor-covenant.org/faq
83
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,33 @@
1
+ # Contributing
2
+
3
+ Thanks for your interest in redloop.
4
+
5
+ ## Development setup
6
+ redloop has no runtime dependencies. From a clone:
7
+
8
+ ```sh
9
+ PYTHONPATH=src python -m unittest discover -s tests -v # run the tests
10
+ PYTHONPATH=src python -m redloop run --target mock # offline demo
11
+ ```
12
+
13
+ CI runs `ruff check .` and `pytest` on Python 3.11 to 3.14.
14
+
15
+ ## Adding a probe
16
+ 1. Add it to `src/redloop/probes/catalog.py` with an `RL-XXX-NNN` id, an aixwalk category
17
+ (`AIX-NN`), an adversarial category, a severity, the target capabilities it needs and a
18
+ remediation.
19
+ 2. Payloads must be benign and canary-based: success means a per-run canary or a fake
20
+ `.invalid` destination shows up where it must not. Do not add payloads that ask for
21
+ harmful content.
22
+ 3. Make the mock target able to fail and pass the probe, and add tests for both.
23
+ 4. Document it in `docs/probes.md`.
24
+
25
+ ## Pull request checklist
26
+ - [ ] Tests added or updated, `python -m unittest` passes
27
+ - [ ] `ruff check .` is clean
28
+ - [ ] Docs and `CHANGELOG.md` updated
29
+ - [ ] No new runtime dependencies
30
+
31
+ ## Code of conduct
32
+
33
+ This project follows the [Contributor Covenant](CODE_OF_CONDUCT.md).