redloop 0.1.0__tar.gz → 0.1.2__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 (93) hide show
  1. {redloop-0.1.0 → redloop-0.1.2}/.github/ISSUE_TEMPLATE/bug_report.yml +1 -1
  2. {redloop-0.1.0 → redloop-0.1.2}/.github/dependabot.yml +7 -0
  3. redloop-0.1.2/.github/requirements/build.txt +13 -0
  4. redloop-0.1.2/.github/requirements/ci.txt +38 -0
  5. {redloop-0.1.0 → redloop-0.1.2}/.github/workflows/ci.yml +6 -6
  6. redloop-0.1.2/.github/workflows/codeql.yml +36 -0
  7. {redloop-0.1.0 → redloop-0.1.2}/.github/workflows/live-model.yml +4 -4
  8. redloop-0.1.2/.github/workflows/release.yml +98 -0
  9. {redloop-0.1.0 → redloop-0.1.2}/.github/workflows/scorecard.yml +3 -3
  10. {redloop-0.1.0 → redloop-0.1.2}/CHANGELOG.md +21 -0
  11. {redloop-0.1.0 → redloop-0.1.2}/CITATION.cff +2 -2
  12. {redloop-0.1.0 → redloop-0.1.2}/PKG-INFO +23 -21
  13. {redloop-0.1.0 → redloop-0.1.2}/README.md +22 -20
  14. redloop-0.1.2/SECURITY.md +32 -0
  15. {redloop-0.1.0 → redloop-0.1.2}/action.yml +8 -4
  16. {redloop-0.1.0 → redloop-0.1.2}/examples/github-workflow.yml +1 -1
  17. {redloop-0.1.0 → redloop-0.1.2}/pyproject.toml +1 -1
  18. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/__init__.py +1 -1
  19. {redloop-0.1.0 → redloop-0.1.2}/tests/test_cli.py +1 -1
  20. {redloop-0.1.0 → redloop-0.1.2}/tests/test_governance_evidence.py +1 -1
  21. redloop-0.1.0/.github/workflows/release.yml +0 -76
  22. redloop-0.1.0/SECURITY.md +0 -16
  23. {redloop-0.1.0 → redloop-0.1.2}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  24. {redloop-0.1.0 → redloop-0.1.2}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  25. {redloop-0.1.0 → redloop-0.1.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  26. {redloop-0.1.0 → redloop-0.1.2}/.gitignore +0 -0
  27. {redloop-0.1.0 → redloop-0.1.2}/CODE_OF_CONDUCT.md +0 -0
  28. {redloop-0.1.0 → redloop-0.1.2}/CONTRIBUTING.md +0 -0
  29. {redloop-0.1.0 → redloop-0.1.2}/LICENSE +0 -0
  30. {redloop-0.1.0 → redloop-0.1.2}/NOTICE +0 -0
  31. {redloop-0.1.0 → redloop-0.1.2}/docs/demo.svg +0 -0
  32. {redloop-0.1.0 → redloop-0.1.2}/docs/governance.md +0 -0
  33. {redloop-0.1.0 → redloop-0.1.2}/docs/maturity-model.md +0 -0
  34. {redloop-0.1.0 → redloop-0.1.2}/docs/methodology.md +0 -0
  35. {redloop-0.1.0 → redloop-0.1.2}/docs/probes.md +0 -0
  36. {redloop-0.1.0 → redloop-0.1.2}/docs/targets.md +0 -0
  37. {redloop-0.1.0 → redloop-0.1.2}/docs/threat-model.md +0 -0
  38. {redloop-0.1.0 → redloop-0.1.2}/examples/assessment.toml +0 -0
  39. {redloop-0.1.0 → redloop-0.1.2}/examples/redloop-http.toml +0 -0
  40. {redloop-0.1.0 → redloop-0.1.2}/examples/redloop-ollama.toml +0 -0
  41. {redloop-0.1.0 → redloop-0.1.2}/examples/redloop-openai.toml +0 -0
  42. {redloop-0.1.0 → redloop-0.1.2}/examples/redloop-sandbox.toml +0 -0
  43. {redloop-0.1.0 → redloop-0.1.2}/examples/redloop.toml +0 -0
  44. {redloop-0.1.0 → redloop-0.1.2}/examples/risk-acceptances.toml +0 -0
  45. {redloop-0.1.0 → redloop-0.1.2}/examples/threatmodel.toml +0 -0
  46. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/__main__.py +0 -0
  47. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/cli.py +0 -0
  48. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/config.py +0 -0
  49. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/converters.py +0 -0
  50. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/crosswalk.py +0 -0
  51. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/data/aixwalk/README.md +0 -0
  52. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/data/aixwalk/crosswalk.json +0 -0
  53. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/data/aixwalk/frameworks/iso-42001-annex-a.json +0 -0
  54. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/data/aixwalk/frameworks/mitre-atlas.json +0 -0
  55. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/data/aixwalk/frameworks/nist-ai-rmf-1.0.json +0 -0
  56. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/data/aixwalk/frameworks/owasp-agentic-2026.json +0 -0
  57. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/data/aixwalk/frameworks/owasp-llm-2025.json +0 -0
  58. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/data/maturity-model.json +0 -0
  59. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/data/templates/assessment.toml +0 -0
  60. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/data/templates/redloop.toml +0 -0
  61. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/data/templates/risk-acceptances.toml +0 -0
  62. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/data/templates/threatmodel.toml +0 -0
  63. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/detectors.py +0 -0
  64. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/evidence.py +0 -0
  65. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/governance.py +0 -0
  66. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/maturity.py +0 -0
  67. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/probes/__init__.py +0 -0
  68. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/probes/base.py +0 -0
  69. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/probes/catalog.py +0 -0
  70. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/py.typed +0 -0
  71. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/report/__init__.py +0 -0
  72. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/report/jsonout.py +0 -0
  73. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/report/md.py +0 -0
  74. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/report/sarif.py +0 -0
  75. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/report/text.py +0 -0
  76. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/results.py +0 -0
  77. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/runner.py +0 -0
  78. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/sandbox.py +0 -0
  79. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/targets/__init__.py +0 -0
  80. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/targets/base.py +0 -0
  81. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/targets/http.py +0 -0
  82. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/targets/mock.py +0 -0
  83. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/targets/openai.py +0 -0
  84. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/targets/transport.py +0 -0
  85. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/threats.py +0 -0
  86. {redloop-0.1.0 → redloop-0.1.2}/src/redloop/util.py +0 -0
  87. {redloop-0.1.0 → redloop-0.1.2}/tests/test_converters_detectors.py +0 -0
  88. {redloop-0.1.0 → redloop-0.1.2}/tests/test_hygiene.py +0 -0
  89. {redloop-0.1.0 → redloop-0.1.2}/tests/test_maturity.py +0 -0
  90. {redloop-0.1.0 → redloop-0.1.2}/tests/test_runner.py +0 -0
  91. {redloop-0.1.0 → redloop-0.1.2}/tests/test_sandbox.py +0 -0
  92. {redloop-0.1.0 → redloop-0.1.2}/tests/test_targets.py +0 -0
  93. {redloop-0.1.0 → redloop-0.1.2}/tests/test_threats.py +0 -0
@@ -12,7 +12,7 @@ body:
12
12
  attributes:
13
13
  label: redloop version
14
14
  description: Output of `redloop --version`
15
- placeholder: "redloop 0.1.0"
15
+ placeholder: "redloop 0.1.1"
16
16
  validations:
17
17
  required: true
18
18
  - type: input
@@ -7,3 +7,10 @@ updates:
7
7
  groups:
8
8
  actions:
9
9
  patterns: ["*"]
10
+ - package-ecosystem: pip
11
+ directory: /.github/requirements
12
+ schedule:
13
+ interval: weekly
14
+ groups:
15
+ ci-tools:
16
+ patterns: ["*"]
@@ -0,0 +1,13 @@
1
+ # Tools used to build the sdist and wheel.
2
+ # Hash-pinned so CI installs exactly these files (pip --require-hashes).
3
+ # Dependabot keeps this file up to date.
4
+
5
+ build==1.6.1 \
6
+ --hash=sha256:51cc11666391ab6f092070437ac747002ff46f3e4113a3622177ee6b488bfc53 \
7
+ --hash=sha256:ecd351a4be9d35a9eaaba244a7687143c9c7d4aea6ac964e7e7ddab20cbcf4e7
8
+ packaging==26.4 \
9
+ --hash=sha256:81383611a09c1bc0b08b76e0fd5829d7c6824c65b27a6aee339da133f4233ea2 \
10
+ --hash=sha256:c4b671c41ddb9bf26e543c37723610d28fb6bf7affc4da17cf048d419d2c062a
11
+ pyproject-hooks==1.3.3 \
12
+ --hash=sha256:5fc53fdac9f7bd63fbcdc868fb5f90b4784d78a53a3d3388cd738b807441a20b \
13
+ --hash=sha256:defda19b854fa0d3bd4f76ea4ddcba8abd7dcfcdd585a6690ade050744fc5f43
@@ -0,0 +1,38 @@
1
+ # Tools used by CI: lint and tests.
2
+ # Hash-pinned so CI installs exactly these files (pip --require-hashes).
3
+ # Dependabot keeps this file up to date.
4
+
5
+ ruff==0.17.6 \
6
+ --hash=sha256:0692088e6b33455572fb18465e891b443f196e98dc1986825685c77ff6f4c5ac \
7
+ --hash=sha256:084d9c8f5ec718e7eba007dba339e7cb4f7571d2f267558ae080bf428fb6a69b \
8
+ --hash=sha256:1939b3d701c7b6981b7cf93473de5bf88b129b9ba84efaed5154cc517c44634d \
9
+ --hash=sha256:1a0bea6aa1216e0ec4cd35d3dbccec0d772a7c2aad28ec9c6e82571dff2c20b0 \
10
+ --hash=sha256:2b04276561331300325040bdca21460770029ec574d4c479099e39e8ad1ed43c \
11
+ --hash=sha256:3db61f5015600543a581b07fa7f6f64afa0eeedefe16034cadd88c4074087582 \
12
+ --hash=sha256:435241c61af5909a022f76219d3d1bf24730dc1bf0acabb5ddf4b569ab3cbb30 \
13
+ --hash=sha256:6a12c50a33936dc00db2be21ba25fb168a8b95c55eda2a3ac85005af69885e4b \
14
+ --hash=sha256:9cd2fd9923e9806b8b6b67a3469e2258e84bd4d21e45d5a1a690afdfb9c8e57d \
15
+ --hash=sha256:9d44ef2140402043fd6f689ef541858b80883a8b0a02e38539ef0614ebe57d0c \
16
+ --hash=sha256:9fbddc08577592e283c265d865e0182de6e33db185494db7b06290d989d888e5 \
17
+ --hash=sha256:aa3b08254a732acba246891089a152c47c5733dc36b8ecb76ce8602f8326e5e4 \
18
+ --hash=sha256:b5aba93b3db4b70c5697e4fee6e0d5b9c8452a9a3a03679611cadc25915a2173 \
19
+ --hash=sha256:c2f4af6670b7a0501904e881bb3f1f24bd0d964dec1eedbd85f0eb73786e1128 \
20
+ --hash=sha256:d006bbb2945edb17b0ce6a0c1b5f5a8d81ba11dbac294a0a925effa22ce34feb \
21
+ --hash=sha256:d8b14e1473dc86ab9069cf7a2ba5041dc012f59110201844ed04cfddf07055a0 \
22
+ --hash=sha256:fb589e032806bb942e4fb526f30b80a1a64112147ed9f1d38cc3de2e255b6f45 \
23
+ --hash=sha256:fd661702202a89c00a4c9d0339008805fa5876bfa1c57e165495c2e62230dfbf
24
+ pytest==9.2.0 \
25
+ --hash=sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588 \
26
+ --hash=sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b
27
+ iniconfig==2.3.1 \
28
+ --hash=sha256:67f4b9c50da0dedf52af349e7749a80a9057a5031199791b906c3bb3ae878960 \
29
+ --hash=sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7
30
+ packaging==26.4 \
31
+ --hash=sha256:81383611a09c1bc0b08b76e0fd5829d7c6824c65b27a6aee339da133f4233ea2 \
32
+ --hash=sha256:c4b671c41ddb9bf26e543c37723610d28fb6bf7affc4da17cf048d419d2c062a
33
+ pluggy==1.7.0 \
34
+ --hash=sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec \
35
+ --hash=sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8
36
+ pygments==2.21.0 \
37
+ --hash=sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9 \
38
+ --hash=sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c
@@ -16,13 +16,13 @@ jobs:
16
16
  matrix:
17
17
  python-version: ["3.11", "3.12", "3.13", "3.14"]
18
18
  steps:
19
- - uses: actions/checkout@v4
20
- - uses: actions/setup-python@v5
19
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
20
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
21
21
  with:
22
22
  python-version: ${{ matrix.python-version }}
23
23
  allow-prereleases: true
24
24
  - name: Install tools
25
- run: python -m pip install --upgrade pip ruff pytest
25
+ run: python -m pip install --require-hashes -r .github/requirements/ci.txt
26
26
  - name: Lint
27
27
  run: ruff check .
28
28
  - name: Test
@@ -35,11 +35,11 @@ jobs:
35
35
  build:
36
36
  runs-on: ubuntu-latest
37
37
  steps:
38
- - uses: actions/checkout@v4
39
- - uses: actions/setup-python@v5
38
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
39
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
40
40
  with:
41
41
  python-version: "3.12"
42
- - run: python -m pip install --upgrade pip build
42
+ - run: python -m pip install --require-hashes -r .github/requirements/build.txt
43
43
  - run: python -m build
44
44
  - name: Install wheel and run
45
45
  run: |
@@ -0,0 +1,36 @@
1
+ name: CodeQL
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ schedule:
8
+ - cron: "29 3 * * 2"
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ analyze:
15
+ name: Analyze (${{ matrix.language }})
16
+ runs-on: ubuntu-latest
17
+ permissions:
18
+ actions: read
19
+ contents: read
20
+ security-events: write
21
+ strategy:
22
+ fail-fast: false
23
+ matrix:
24
+ language: [python, actions]
25
+ steps:
26
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
27
+ with:
28
+ persist-credentials: false
29
+ - uses: github/codeql-action/init@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
30
+ with:
31
+ languages: ${{ matrix.language }}
32
+ build-mode: none
33
+ queries: security-extended
34
+ - uses: github/codeql-action/analyze@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
35
+ with:
36
+ category: "/language:${{ matrix.language }}"
@@ -36,12 +36,12 @@ jobs:
36
36
  ports:
37
37
  - 11434:11434
38
38
  steps:
39
- - uses: actions/checkout@v4
40
- - uses: actions/setup-python@v5
39
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
40
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
41
41
  with:
42
42
  python-version: "3.12"
43
43
  - name: Install redloop
44
- run: python -m pip install .
44
+ run: python -m pip install --no-deps -e .
45
45
  - name: Pull the model and check it answers
46
46
  run: |
47
47
  for i in $(seq 1 60); do curl -sf http://localhost:11434/api/version && break; sleep 2; done
@@ -62,7 +62,7 @@ jobs:
62
62
  if [ "$status" -ge 2 ]; then exit "$status"; fi
63
63
  - name: Keep evidence
64
64
  if: always()
65
- uses: actions/upload-artifact@v4
65
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
66
66
  with:
67
67
  name: redloop-evidence-${{ github.run_id }}
68
68
  path: examples/evidence/
@@ -0,0 +1,98 @@
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
23
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
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 --require-hashes -r .github/requirements/ci.txt && pytest -q
32
+ - name: Build sdist and wheel
33
+ run: python -m pip install --require-hashes -r .github/requirements/build.txt && python -m build
34
+ - name: Attest build provenance
35
+ id: attest
36
+ if: github.event.repository.private == false
37
+ uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
38
+ with:
39
+ subject-path: "dist/*"
40
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
41
+ with:
42
+ name: dist
43
+ path: dist/
44
+ - name: Keep the provenance bundle as a release asset
45
+ if: steps.attest.outcome == 'success'
46
+ run: |
47
+ mkdir -p provenance
48
+ cp "${{ steps.attest.outputs.bundle-path }}" "provenance/redloop-${GITHUB_REF_NAME#v}.intoto.jsonl"
49
+ - if: steps.attest.outcome == 'success'
50
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
51
+ with:
52
+ name: provenance
53
+ path: provenance/
54
+
55
+ github-release:
56
+ needs: build
57
+ runs-on: ubuntu-latest
58
+ permissions:
59
+ contents: write
60
+ steps:
61
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
62
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
63
+ with:
64
+ name: dist
65
+ path: dist/
66
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
67
+ continue-on-error: true # absent while the repository is private
68
+ with:
69
+ name: provenance
70
+ path: provenance/
71
+ - name: Create GitHub release
72
+ env:
73
+ GH_TOKEN: ${{ github.token }}
74
+ run: |
75
+ version="${GITHUB_REF_NAME#v}"
76
+ shopt -s nullglob
77
+ assets=(dist/* provenance/*)
78
+ awk -v v="$version" '$0 ~ "^## \\[" v "\\]" {f=1; next} /^## \[/ {f=0} f' CHANGELOG.md > notes.md
79
+ [ -s notes.md ] || echo "Release $GITHUB_REF_NAME" > notes.md
80
+ if gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1; then
81
+ gh release upload "$GITHUB_REF_NAME" "${assets[@]}" --clobber
82
+ exit 0
83
+ fi
84
+ gh release create "$GITHUB_REF_NAME" "${assets[@]}" --title "redloop $GITHUB_REF_NAME" --notes-file notes.md
85
+
86
+ pypi:
87
+ needs: build
88
+ if: vars.PUBLISH_TO_PYPI == 'true'
89
+ runs-on: ubuntu-latest
90
+ environment: pypi
91
+ permissions:
92
+ id-token: write
93
+ steps:
94
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
95
+ with:
96
+ name: dist
97
+ path: dist/
98
+ - uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
@@ -20,14 +20,14 @@ jobs:
20
20
  contents: read
21
21
  actions: read
22
22
  steps:
23
- - uses: actions/checkout@v4
23
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24
24
  with:
25
25
  persist-credentials: false
26
- - uses: ossf/scorecard-action@v2.4.0
26
+ - uses: ossf/scorecard-action@23f22cd43608bae7a1f1fa2603d7314dee9538a5 # v2.6.0
27
27
  with:
28
28
  results_file: results.sarif
29
29
  results_format: sarif
30
30
  publish_results: true
31
- - uses: github/codeql-action/upload-sarif@v3
31
+ - uses: github/codeql-action/upload-sarif@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
32
32
  with:
33
33
  sarif_file: results.sarif
@@ -4,6 +4,24 @@ All notable changes to this project are documented here. The format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
5
5
  [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [Unreleased]
8
+
9
+ ## [0.1.2] - 2026-12-01
10
+
11
+ ### Changed
12
+
13
+ - GitHub Action: inputs and the exit code reach the shell only through environment variables.
14
+ - CI installs its tools from hash-pinned requirement files; GitHub Actions are pinned by commit; CodeQL scanning added.
15
+
16
+ ## [0.1.1] - 2026-12-01
17
+
18
+ ### Changed
19
+
20
+ - README uses absolute links, so the demo, badges and links also work on PyPI.
21
+ - Release workflow: re-running a release updates it instead of failing.
22
+ - OpenSSF Scorecard workflow uses `scorecard-action` v2.6.0.
23
+ - README records the first results against a real open-weight model.
24
+
7
25
  ## [0.1.0] - 2026-11-30
8
26
 
9
27
  ### Added
@@ -38,4 +56,7 @@ All notable changes to this project are documented here. The format follows
38
56
  - Outputs: text, Markdown, JSON, SARIF 2.1.0. CI gate on severity and attack success rate.
39
57
  - Composite GitHub Action.
40
58
 
59
+ [Unreleased]: https://github.com/rajyavardhan01/redloop/compare/v0.1.2...HEAD
60
+ [0.1.2]: https://github.com/rajyavardhan01/redloop/compare/v0.1.1...v0.1.2
61
+ [0.1.1]: https://github.com/rajyavardhan01/redloop/compare/v0.1.0...v0.1.1
41
62
  [0.1.0]: https://github.com/rajyavardhan01/redloop/releases/tag/v0.1.0
@@ -2,8 +2,8 @@ cff-version: 1.2.0
2
2
  message: "If you use redloop in research or assessments, please cite it as below."
3
3
  type: software
4
4
  title: "redloop: continuous AI red teaming as code"
5
- version: 0.1.0
6
- date-released: 2026-11-30
5
+ version: 0.1.2
6
+ date-released: 2026-12-01
7
7
  license: Apache-2.0
8
8
  repository-code: "https://github.com/rajyavardhan01/redloop"
9
9
  keywords:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: redloop
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Continuous AI red teaming as code: threat model, adaptive adversarial tests, resilience maturity scoring, audit-ready evidence and a CI gate. Zero dependencies.
5
5
  Project-URL: Homepage, https://github.com/rajyavardhan01/redloop
6
6
  Project-URL: Repository, https://github.com/rajyavardhan01/redloop
@@ -38,13 +38,15 @@ then scores your resilience maturity and produces audit-ready evidence plus a CI
38
38
  Zero dependencies.
39
39
 
40
40
  [![CI](https://github.com/rajyavardhan01/redloop/actions/workflows/ci.yml/badge.svg)](https://github.com/rajyavardhan01/redloop/actions/workflows/ci.yml)
41
+ [![PyPI](https://img.shields.io/pypi/v/redloop.svg)](https://pypi.org/project/redloop/)
42
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/rajyavardhan01/redloop/badge)](https://scorecard.dev/viewer/?uri=github.com/rajyavardhan01/redloop)
41
43
  [![Live model](https://github.com/rajyavardhan01/redloop/actions/workflows/live-model.yml/badge.svg)](https://github.com/rajyavardhan01/redloop/actions/workflows/live-model.yml)
42
- [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
44
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/rajyavardhan01/redloop/blob/main/LICENSE)
43
45
  ![Python](https://img.shields.io/badge/python-3.11%2B-blue.svg)
44
46
 
45
- <p align="center"><img src="docs/demo.svg" alt="redloop running its probe suite against the mock target and failing the gate" width="860"></p>
47
+ <p align="center"><img src="https://raw.githubusercontent.com/rajyavardhan01/redloop/main/docs/demo.svg" alt="redloop running its probe suite against the mock target and failing the gate" width="860"></p>
46
48
 
47
- > Status: alpha (v0.1.0). Interfaces may change before 1.0.
49
+ > Status: alpha (v0.1.2). Interfaces may change before 1.0.
48
50
 
49
51
  ```
50
52
  threatmodel.toml ──► threat register ──► probe plan ──► adaptive attacks ──► findings ──► CI gate
@@ -83,7 +85,7 @@ verify. redloop links those steps:
83
85
  ## Quickstart
84
86
 
85
87
  ```sh
86
- pip install git+https://github.com/rajyavardhan01/redloop
88
+ pip install redloop
87
89
  # or from a clone, with nothing to install:
88
90
  PYTHONPATH=src python -m redloop run --target mock
89
91
  ```
@@ -159,7 +161,7 @@ redloop maturity assessment.toml # scorecard; picks up evidence from ./evid
159
161
  | `http` | Your own application's JSON API, via a body template with `{{prompt}}`, `{{system}}`, `{{document}}` and a `response_path` | depends on which placeholders you declare |
160
162
 
161
163
  Probes that need a capability the target lacks (for example a planted system prompt) are
162
- skipped with a reason. See [docs/targets.md](docs/targets.md).
164
+ skipped with a reason. See [docs/targets.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/targets.md).
163
165
 
164
166
  ## Probes
165
167
 
@@ -179,7 +181,7 @@ skipped with a reason. See [docs/targets.md](docs/targets.md).
179
181
 
180
182
  AIX IDs come from [aixwalk](https://github.com/rajyavardhan01/aixwalk), so every finding
181
183
  carries OWASP LLM Top 10 (2025), OWASP Agentic Top 10 (2026), MITRE ATLAS, NIST AI RMF and
182
- ISO/IEC 42001 mappings. Details: [docs/probes.md](docs/probes.md).
184
+ ISO/IEC 42001 mappings. Details: [docs/probes.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/probes.md).
183
185
 
184
186
  ## Outputs and CI
185
187
 
@@ -192,7 +194,7 @@ ISO/IEC 42001 mappings. Details: [docs/probes.md](docs/probes.md).
192
194
  - GitHub Action:
193
195
 
194
196
  ```yaml
195
- - uses: rajyavardhan01/redloop@v0.1.0
197
+ - uses: rajyavardhan01/redloop@v0.1.2
196
198
  with:
197
199
  config: redloop.toml
198
200
  fail-on: high
@@ -201,16 +203,16 @@ ISO/IEC 42001 mappings. Details: [docs/probes.md](docs/probes.md).
201
203
  LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
202
204
  ```
203
205
 
204
- See [examples/github-workflow.yml](examples/github-workflow.yml).
206
+ See [examples/github-workflow.yml](https://github.com/rajyavardhan01/redloop/blob/main/examples/github-workflow.yml).
205
207
 
206
208
  ## Documentation
207
209
 
208
- - [docs/threat-model.md](docs/threat-model.md): component types, rules, severity rubric and chains
209
- - [docs/probes.md](docs/probes.md): probes, converters, detectors and the adaptive loop
210
- - [docs/targets.md](docs/targets.md): configuring mock, openai and http targets, plus the sandbox
211
- - [docs/maturity-model.md](docs/maturity-model.md): the resilience maturity model v1 and its scoring rules
212
- - [docs/governance.md](docs/governance.md): risk acceptances, evidence bundles and the gate
213
- - [docs/methodology.md](docs/methodology.md): how each feature maps to the published methodology
210
+ - [docs/threat-model.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/threat-model.md): component types, rules, severity rubric and chains
211
+ - [docs/probes.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/probes.md): probes, converters, detectors and the adaptive loop
212
+ - [docs/targets.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/targets.md): configuring mock, openai and http targets, plus the sandbox
213
+ - [docs/maturity-model.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/maturity-model.md): the resilience maturity model v1 and its scoring rules
214
+ - [docs/governance.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/governance.md): risk acceptances, evidence bundles and the gate
215
+ - [docs/methodology.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/methodology.md): how each feature maps to the published methodology
214
216
 
215
217
  ## How redloop relates to other tools
216
218
 
@@ -223,10 +225,10 @@ evidence. The two approaches complement each other.
223
225
 
224
226
  ## Tested against
225
227
 
226
- - **A real model.** The [live model workflow](.github/workflows/live-model.yml) runs the full
228
+ - **A real model.** The [live model workflow](https://github.com/rajyavardhan01/redloop/blob/main/.github/workflows/live-model.yml) runs the full
227
229
  probe suite every week against an open-weight model (`qwen2.5:0.5b`) served by Ollama's
228
230
  OpenAI-compatible API on a GitHub-hosted runner. No API key is needed
229
- ([`examples/redloop-ollama.toml`](examples/redloop-ollama.toml)). Results appear in the job
231
+ ([`examples/redloop-ollama.toml`](https://github.com/rajyavardhan01/redloop/blob/main/examples/redloop-ollama.toml)). Results appear in the job
230
232
  summary and are kept as an evidence artifact. A small model is easy to bypass; the point is
231
233
  to exercise redloop end to end against a real model and server. In the first runs, 5 of 11
232
234
  probes were bypassed: direct and delimiter injection, confidential-context disclosure,
@@ -269,10 +271,10 @@ and the containerized validation pipeline described in §4.1 of:
269
271
  Vulnerabilities," *Journal of Information Systems Engineering and Management*, 10(62s),
270
272
  941–951, 2025. doi:[10.52783/jisem.v10i62s.13722](https://doi.org/10.52783/jisem.v10i62s.13722)
271
273
 
272
- See [docs/methodology.md](docs/methodology.md) for the section-by-section mapping, and
273
- [CITATION.cff](CITATION.cff) to cite the software.
274
+ See [docs/methodology.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/methodology.md) for the section-by-section mapping, and
275
+ [CITATION.cff](https://github.com/rajyavardhan01/redloop/blob/main/CITATION.cff) to cite the software.
274
276
 
275
277
  ## License
276
278
 
277
- [Apache-2.0](LICENSE). Third-party reference data is attributed in [NOTICE](NOTICE).
278
- Only test systems you own or are authorized to test. See [SECURITY.md](SECURITY.md).
279
+ [Apache-2.0](https://github.com/rajyavardhan01/redloop/blob/main/LICENSE). Third-party reference data is attributed in [NOTICE](https://github.com/rajyavardhan01/redloop/blob/main/NOTICE).
280
+ Only test systems you own or are authorized to test. See [SECURITY.md](https://github.com/rajyavardhan01/redloop/blob/main/SECURITY.md).
@@ -6,13 +6,15 @@ then scores your resilience maturity and produces audit-ready evidence plus a CI
6
6
  Zero dependencies.
7
7
 
8
8
  [![CI](https://github.com/rajyavardhan01/redloop/actions/workflows/ci.yml/badge.svg)](https://github.com/rajyavardhan01/redloop/actions/workflows/ci.yml)
9
+ [![PyPI](https://img.shields.io/pypi/v/redloop.svg)](https://pypi.org/project/redloop/)
10
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/rajyavardhan01/redloop/badge)](https://scorecard.dev/viewer/?uri=github.com/rajyavardhan01/redloop)
9
11
  [![Live model](https://github.com/rajyavardhan01/redloop/actions/workflows/live-model.yml/badge.svg)](https://github.com/rajyavardhan01/redloop/actions/workflows/live-model.yml)
10
- [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
12
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/rajyavardhan01/redloop/blob/main/LICENSE)
11
13
  ![Python](https://img.shields.io/badge/python-3.11%2B-blue.svg)
12
14
 
13
- <p align="center"><img src="docs/demo.svg" alt="redloop running its probe suite against the mock target and failing the gate" width="860"></p>
15
+ <p align="center"><img src="https://raw.githubusercontent.com/rajyavardhan01/redloop/main/docs/demo.svg" alt="redloop running its probe suite against the mock target and failing the gate" width="860"></p>
14
16
 
15
- > Status: alpha (v0.1.0). Interfaces may change before 1.0.
17
+ > Status: alpha (v0.1.2). Interfaces may change before 1.0.
16
18
 
17
19
  ```
18
20
  threatmodel.toml ──► threat register ──► probe plan ──► adaptive attacks ──► findings ──► CI gate
@@ -51,7 +53,7 @@ verify. redloop links those steps:
51
53
  ## Quickstart
52
54
 
53
55
  ```sh
54
- pip install git+https://github.com/rajyavardhan01/redloop
56
+ pip install redloop
55
57
  # or from a clone, with nothing to install:
56
58
  PYTHONPATH=src python -m redloop run --target mock
57
59
  ```
@@ -127,7 +129,7 @@ redloop maturity assessment.toml # scorecard; picks up evidence from ./evid
127
129
  | `http` | Your own application's JSON API, via a body template with `{{prompt}}`, `{{system}}`, `{{document}}` and a `response_path` | depends on which placeholders you declare |
128
130
 
129
131
  Probes that need a capability the target lacks (for example a planted system prompt) are
130
- skipped with a reason. See [docs/targets.md](docs/targets.md).
132
+ skipped with a reason. See [docs/targets.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/targets.md).
131
133
 
132
134
  ## Probes
133
135
 
@@ -147,7 +149,7 @@ skipped with a reason. See [docs/targets.md](docs/targets.md).
147
149
 
148
150
  AIX IDs come from [aixwalk](https://github.com/rajyavardhan01/aixwalk), so every finding
149
151
  carries OWASP LLM Top 10 (2025), OWASP Agentic Top 10 (2026), MITRE ATLAS, NIST AI RMF and
150
- ISO/IEC 42001 mappings. Details: [docs/probes.md](docs/probes.md).
152
+ ISO/IEC 42001 mappings. Details: [docs/probes.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/probes.md).
151
153
 
152
154
  ## Outputs and CI
153
155
 
@@ -160,7 +162,7 @@ ISO/IEC 42001 mappings. Details: [docs/probes.md](docs/probes.md).
160
162
  - GitHub Action:
161
163
 
162
164
  ```yaml
163
- - uses: rajyavardhan01/redloop@v0.1.0
165
+ - uses: rajyavardhan01/redloop@v0.1.2
164
166
  with:
165
167
  config: redloop.toml
166
168
  fail-on: high
@@ -169,16 +171,16 @@ ISO/IEC 42001 mappings. Details: [docs/probes.md](docs/probes.md).
169
171
  LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
170
172
  ```
171
173
 
172
- See [examples/github-workflow.yml](examples/github-workflow.yml).
174
+ See [examples/github-workflow.yml](https://github.com/rajyavardhan01/redloop/blob/main/examples/github-workflow.yml).
173
175
 
174
176
  ## Documentation
175
177
 
176
- - [docs/threat-model.md](docs/threat-model.md): component types, rules, severity rubric and chains
177
- - [docs/probes.md](docs/probes.md): probes, converters, detectors and the adaptive loop
178
- - [docs/targets.md](docs/targets.md): configuring mock, openai and http targets, plus the sandbox
179
- - [docs/maturity-model.md](docs/maturity-model.md): the resilience maturity model v1 and its scoring rules
180
- - [docs/governance.md](docs/governance.md): risk acceptances, evidence bundles and the gate
181
- - [docs/methodology.md](docs/methodology.md): how each feature maps to the published methodology
178
+ - [docs/threat-model.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/threat-model.md): component types, rules, severity rubric and chains
179
+ - [docs/probes.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/probes.md): probes, converters, detectors and the adaptive loop
180
+ - [docs/targets.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/targets.md): configuring mock, openai and http targets, plus the sandbox
181
+ - [docs/maturity-model.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/maturity-model.md): the resilience maturity model v1 and its scoring rules
182
+ - [docs/governance.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/governance.md): risk acceptances, evidence bundles and the gate
183
+ - [docs/methodology.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/methodology.md): how each feature maps to the published methodology
182
184
 
183
185
  ## How redloop relates to other tools
184
186
 
@@ -191,10 +193,10 @@ evidence. The two approaches complement each other.
191
193
 
192
194
  ## Tested against
193
195
 
194
- - **A real model.** The [live model workflow](.github/workflows/live-model.yml) runs the full
196
+ - **A real model.** The [live model workflow](https://github.com/rajyavardhan01/redloop/blob/main/.github/workflows/live-model.yml) runs the full
195
197
  probe suite every week against an open-weight model (`qwen2.5:0.5b`) served by Ollama's
196
198
  OpenAI-compatible API on a GitHub-hosted runner. No API key is needed
197
- ([`examples/redloop-ollama.toml`](examples/redloop-ollama.toml)). Results appear in the job
199
+ ([`examples/redloop-ollama.toml`](https://github.com/rajyavardhan01/redloop/blob/main/examples/redloop-ollama.toml)). Results appear in the job
198
200
  summary and are kept as an evidence artifact. A small model is easy to bypass; the point is
199
201
  to exercise redloop end to end against a real model and server. In the first runs, 5 of 11
200
202
  probes were bypassed: direct and delimiter injection, confidential-context disclosure,
@@ -237,10 +239,10 @@ and the containerized validation pipeline described in §4.1 of:
237
239
  Vulnerabilities," *Journal of Information Systems Engineering and Management*, 10(62s),
238
240
  941–951, 2025. doi:[10.52783/jisem.v10i62s.13722](https://doi.org/10.52783/jisem.v10i62s.13722)
239
241
 
240
- See [docs/methodology.md](docs/methodology.md) for the section-by-section mapping, and
241
- [CITATION.cff](CITATION.cff) to cite the software.
242
+ See [docs/methodology.md](https://github.com/rajyavardhan01/redloop/blob/main/docs/methodology.md) for the section-by-section mapping, and
243
+ [CITATION.cff](https://github.com/rajyavardhan01/redloop/blob/main/CITATION.cff) to cite the software.
242
244
 
243
245
  ## License
244
246
 
245
- [Apache-2.0](LICENSE). Third-party reference data is attributed in [NOTICE](NOTICE).
246
- Only test systems you own or are authorized to test. See [SECURITY.md](SECURITY.md).
247
+ [Apache-2.0](https://github.com/rajyavardhan01/redloop/blob/main/LICENSE). Third-party reference data is attributed in [NOTICE](https://github.com/rajyavardhan01/redloop/blob/main/NOTICE).
248
+ Only test systems you own or are authorized to test. See [SECURITY.md](https://github.com/rajyavardhan01/redloop/blob/main/SECURITY.md).
@@ -0,0 +1,32 @@
1
+ # Security policy
2
+
3
+ ## Reporting a vulnerability
4
+
5
+ Please report security problems in redloop privately through GitHub Security Advisories: open
6
+ the [Security tab](https://github.com/rajyavardhan01/redloop/security) of this repository and
7
+ choose **Report a vulnerability** (direct link:
8
+ <https://github.com/rajyavardhan01/redloop/security/advisories/new>). Do not open a public
9
+ issue for security problems.
10
+
11
+ Include the redloop version, the configuration (with secrets removed), and steps to reproduce.
12
+ You can expect an acknowledgement within 7 days. Fixes are released as patch versions and
13
+ credited in the changelog unless you prefer otherwise.
14
+
15
+ ## Scope
16
+
17
+ In scope: secrets that leak into output or evidence bundles, evidence-manifest bypasses,
18
+ redloop executing a tool call or command that a model requested, and sandbox containers that
19
+ are not removed or that bind beyond localhost. False positives and missed detections are
20
+ welcome as regular issues.
21
+
22
+ ## Scope and safe use
23
+
24
+ redloop sends adversarial test prompts to systems you point it at. Only test systems you own
25
+ or are explicitly authorized to test. The built-in probes are benign by design: success is
26
+ measured with random canary tokens and fake tool calls to `.invalid` domains, and redloop
27
+ never executes the tools a model asks for. API keys are read from environment variables and
28
+ redacted from evidence bundles.
29
+
30
+ ## Supported versions
31
+
32
+ Only the latest release receives security fixes during the 0.x series.
@@ -33,12 +33,14 @@ inputs:
33
33
  runs:
34
34
  using: composite
35
35
  steps:
36
- - uses: actions/setup-python@v5
36
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
37
37
  with:
38
38
  python-version: "3.12"
39
39
  - name: Install redloop
40
40
  shell: bash
41
- run: python -m pip install "${{ github.action_path }}"
41
+ env:
42
+ ACTION_PATH: ${{ github.action_path }}
43
+ run: python -m pip install "$ACTION_PATH"
42
44
  - name: Run redloop
43
45
  id: run
44
46
  shell: bash
@@ -58,10 +60,12 @@ runs:
58
60
  echo "exit-code=$code" >> "$GITHUB_OUTPUT"
59
61
  - name: Upload SARIF
60
62
  if: always() && inputs.upload-sarif == 'true'
61
- uses: github/codeql-action/upload-sarif@v3
63
+ uses: github/codeql-action/upload-sarif@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
62
64
  with:
63
65
  sarif_file: ${{ inputs.sarif }}
64
66
  category: redloop
65
67
  - name: Enforce gate
66
68
  shell: bash
67
- run: exit ${{ steps.run.outputs.exit-code }}
69
+ env:
70
+ RL_EXIT_CODE: ${{ steps.run.outputs.exit-code }}
71
+ run: exit "${RL_EXIT_CODE:-2}"
@@ -15,7 +15,7 @@ jobs:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
17
  - uses: actions/checkout@v4
18
- - uses: rajyavardhan01/redloop@v0.1.0
18
+ - uses: rajyavardhan01/redloop@v0.1.2
19
19
  with:
20
20
  config: redloop.toml
21
21
  fail-on: high
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "redloop"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "Continuous AI red teaming as code: threat model, adaptive adversarial tests, resilience maturity scoring, audit-ready evidence and a CI gate. Zero dependencies."
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
@@ -1,5 +1,5 @@
1
1
  """redloop - continuous AI red teaming as code."""
2
2
 
3
- __version__ = "0.1.0"
3
+ __version__ = "0.1.2"
4
4
 
5
5
  __all__ = ["__version__"]
@@ -188,7 +188,7 @@ class OtherCommands(unittest.TestCase):
188
188
  def test_version(self):
189
189
  code, out, _ = run("--version")
190
190
  self.assertEqual(code, 0)
191
- self.assertIn("0.1.0", out)
191
+ self.assertIn(__import__("redloop").__version__, out)
192
192
 
193
193
 
194
194
  if __name__ == "__main__":
@@ -98,7 +98,7 @@ class EvidenceBundles(unittest.TestCase):
98
98
  run = json.loads((bundle / "run.json").read_text())
99
99
  self.assertTrue(run["ci"])
100
100
  self.assertEqual(run["commit"], "abc123")
101
- self.assertEqual(run["redloop_version"], "0.1.0")
101
+ self.assertEqual(run["redloop_version"], __import__("redloop").__version__)
102
102
  self.assertIn("RL-PI-001", run["probes_run"])
103
103
  self.assertNotIn("SUPERSECRET", (bundle / "sandbox-run.log").read_text())
104
104
  lines = (bundle / "transcript.jsonl").read_text().splitlines()
@@ -1,76 +0,0 @@
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
redloop-0.1.0/SECURITY.md DELETED
@@ -1,16 +0,0 @@
1
- # Security policy
2
-
3
- ## Reporting a vulnerability
4
-
5
- Please report security problems in redloop privately through GitHub: open the repository's
6
- **Security** tab and choose **Report a vulnerability**. Do not open a public issue.
7
-
8
- Only the latest release receives fixes.
9
-
10
- ## Scope and safe use
11
-
12
- redloop sends adversarial test prompts to systems you point it at. Only test systems you own
13
- or are explicitly authorized to test. The built-in probes are benign by design: success is
14
- measured with random canary tokens and fake tool calls to `.invalid` domains, and redloop
15
- never executes the tools a model asks for. API keys are read from environment variables and
16
- redacted from evidence bundles.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes