deconvolute 0.1.0a1__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 (45) hide show
  1. deconvolute-0.1.0a1/.env.example +7 -0
  2. deconvolute-0.1.0a1/.github/workflows/ci.yml +85 -0
  3. deconvolute-0.1.0a1/.github/workflows/release.yml +101 -0
  4. deconvolute-0.1.0a1/.gitignore +38 -0
  5. deconvolute-0.1.0a1/.python-version +1 -0
  6. deconvolute-0.1.0a1/BENCHMARKS.md +18 -0
  7. deconvolute-0.1.0a1/CHANGELOG.md +9 -0
  8. deconvolute-0.1.0a1/CONTRIBUTING.md +117 -0
  9. deconvolute-0.1.0a1/DESIGN.md +48 -0
  10. deconvolute-0.1.0a1/LICENSE +202 -0
  11. deconvolute-0.1.0a1/PKG-INFO +151 -0
  12. deconvolute-0.1.0a1/README.md +126 -0
  13. deconvolute-0.1.0a1/cliff.toml +94 -0
  14. deconvolute-0.1.0a1/pyproject.toml +88 -0
  15. deconvolute-0.1.0a1/src/deconvolute/__init__.py +1 -0
  16. deconvolute-0.1.0a1/src/deconvolute/canary/__init__.py +3 -0
  17. deconvolute-0.1.0a1/src/deconvolute/canary/engine.py +115 -0
  18. deconvolute-0.1.0a1/src/deconvolute/canary/generator.py +22 -0
  19. deconvolute-0.1.0a1/src/deconvolute/config.py +0 -0
  20. deconvolute-0.1.0a1/src/deconvolute/core/__init__.py +0 -0
  21. deconvolute-0.1.0a1/src/deconvolute/core/interfaces.py +0 -0
  22. deconvolute-0.1.0a1/src/deconvolute/core/results.py +70 -0
  23. deconvolute-0.1.0a1/src/deconvolute/data/signatures/injection_keywords.txt +2 -0
  24. deconvolute-0.1.0a1/src/deconvolute/data/signatures/morris_worm.yar +0 -0
  25. deconvolute-0.1.0a1/src/deconvolute/exceptions.py +28 -0
  26. deconvolute-0.1.0a1/src/deconvolute/sanitizers/__init__.py +0 -0
  27. deconvolute-0.1.0a1/src/deconvolute/sanitizers/cleaning.py +0 -0
  28. deconvolute-0.1.0a1/src/deconvolute/sanitizers/hierarchy.py +0 -0
  29. deconvolute-0.1.0a1/src/deconvolute/scanners/__init__.py +0 -0
  30. deconvolute-0.1.0a1/src/deconvolute/scanners/base.py +0 -0
  31. deconvolute-0.1.0a1/src/deconvolute/scanners/ml.py +0 -0
  32. deconvolute-0.1.0a1/src/deconvolute/scanners/signatures.py +0 -0
  33. deconvolute-0.1.0a1/src/deconvolute/scanners/yara.py +0 -0
  34. deconvolute-0.1.0a1/src/deconvolute/utils/logger.py +11 -0
  35. deconvolute-0.1.0a1/tests/__init__.py +0 -0
  36. deconvolute-0.1.0a1/tests/integration/__init__.py +0 -0
  37. deconvolute-0.1.0a1/tests/regression/__init__.py +0 -0
  38. deconvolute-0.1.0a1/tests/regression/run_check.py +0 -0
  39. deconvolute-0.1.0a1/tests/regression/vectors.json +8 -0
  40. deconvolute-0.1.0a1/tests/unit/__init__.py +0 -0
  41. deconvolute-0.1.0a1/tests/unit/canary/__init__.py +0 -0
  42. deconvolute-0.1.0a1/tests/unit/canary/test_engine.py +145 -0
  43. deconvolute-0.1.0a1/tests/unit/canary/test_generator.py +56 -0
  44. deconvolute-0.1.0a1/tests/unit/test_core.py +7 -0
  45. deconvolute-0.1.0a1/uv.lock +789 -0
@@ -0,0 +1,7 @@
1
+ # Environment Variables for Deconvolute
2
+
3
+ # Optional: Path to custom model directory
4
+ DECONVOLUTE_MODEL_DIR=./models
5
+
6
+ # Optional: Log level
7
+ LOG_LEVEL=INFO
@@ -0,0 +1,85 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ concurrency:
9
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10
+ cancel-in-progress: true
11
+
12
+ jobs:
13
+ lint:
14
+ name: Lint & Format (Ruff)
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v6
18
+ - uses: astral-sh/setup-uv@v7
19
+ with:
20
+ enable-cache: true
21
+ - name: Install Python 3.11
22
+ run: uv python install 3.11
23
+
24
+ - name: Install Lint Deps
25
+ run: uv sync --only-group dev
26
+
27
+ - name: Check Format
28
+ run: uv run ruff format --check .
29
+
30
+ - name: Lint
31
+ run: uv run ruff check .
32
+
33
+ check:
34
+ name: Types & Tests
35
+ needs: lint
36
+ runs-on: ubuntu-latest
37
+ strategy:
38
+ matrix:
39
+ python-version: ["3.11", "3.12", "3.13"]
40
+ steps:
41
+ - uses: actions/checkout@v6
42
+ - uses: astral-sh/setup-uv@v7
43
+ with:
44
+ enable-cache: true
45
+
46
+ - name: Set up Python ${{ matrix.python-version }}
47
+ uses: actions/setup-python@v6
48
+ with:
49
+ python-version: ${{ matrix.python-version }}
50
+
51
+ - name: Install All Deps
52
+ run: uv sync --all-extras
53
+
54
+ - name: Type Check (Mypy)
55
+ run: uv run mypy .
56
+
57
+ - name: Run Tests
58
+ run: uv run pytest
59
+
60
+ tests:
61
+ name: Tests (Pytest)
62
+ runs-on: ubuntu-latest
63
+ strategy:
64
+ matrix:
65
+ python-version: ["3.11", "3.12", "3.13"]
66
+ steps:
67
+ - uses: actions/checkout@v6
68
+
69
+ - name: Install uv
70
+ uses: astral-sh/setup-uv@v2
71
+
72
+ - name: Set up Python ${{ matrix.python-version }}
73
+ uses: actions/setup-python@v6
74
+ with:
75
+ python-version: ${{ matrix.python-version }}
76
+
77
+ - name: Install dependencies
78
+ run: uv sync --all-extras
79
+
80
+ - name: Run Tests
81
+ run: uv run pytest --cov=deconvolute --cov-report=xml
82
+
83
+ # Optional: Upload coverage to Codecov (free for public repos)
84
+ # - name: Upload coverage
85
+ # uses: codecov/codecov-action@v3
@@ -0,0 +1,101 @@
1
+ name: Release to PyPI
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ version:
7
+ description: 'Version to release (e.g. 0.1.0)'
8
+ required: true
9
+ type: string
10
+
11
+ permissions:
12
+ contents: write # Needed to push the tag back to the repo
13
+ id-token: write # Needed for trusted publishing
14
+
15
+ jobs:
16
+ validate-and-release:
17
+ runs-on: ubuntu-latest
18
+ if: github.ref == 'refs/heads/main' # Only runs on main branch
19
+ environment:
20
+ name: pypi
21
+ url: https://pypi.org/p/deconvolute
22
+
23
+ steps:
24
+ - uses: actions/checkout@v6
25
+ with:
26
+ fetch-depth: 0 # Fetch all history to see previous tags
27
+
28
+ - name: Install uv
29
+ uses: astral-sh/setup-uv@v7
30
+
31
+ - name: Validate Version Input
32
+ run: |
33
+ NEW_VERSION="${{ inputs.version }}"
34
+
35
+ # Get the latest tag (e.g. v0.0.9), default to v0.0.0 if none
36
+ LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
37
+ LAST_VER=${LAST_TAG#v} # Remove 'v' prefix
38
+
39
+ echo "Previous Version: $LAST_VER"
40
+ echo "Target Version: $NEW_VERSION"
41
+
42
+ # Simple Python script to compare versions
43
+ python3 -c "
44
+ from packaging.version import parse
45
+ import sys
46
+
47
+ old = parse('$LAST_VER')
48
+ new = parse('$NEW_VERSION')
49
+
50
+ if new <= old:
51
+ print(f'ERROR: New version {new} must be greater than {old}')
52
+ sys.exit(1)
53
+ "
54
+
55
+ - name: Verify __init__.py matches
56
+ run: |
57
+ # Extract version from file
58
+ FILE_VERSION=$(grep '__version__' src/deconvolute/__init__.py | cut -d'"' -f2)
59
+ if [ "$FILE_VERSION" != "${{ inputs.version }}" ]; then
60
+ echo "ERROR: src/deconvolute/__init__.py says $FILE_VERSION but you requested ${{ inputs.version }}"
61
+ exit 1
62
+ fi
63
+
64
+ - name: Verify CHANGELOG.md updated
65
+ run: |
66
+ # 1. Check if file exists
67
+ if [ ! -f CHANGELOG.md ]; then
68
+ echo "ERROR: CHANGELOG.md file not found in the root directory."
69
+ exit 1
70
+ fi
71
+
72
+ # 2. Check if the version string is present in the file
73
+ if ! grep -Fq "${{ inputs.version }}" CHANGELOG.md; then
74
+ echo "ERROR: CHANGELOG.md does not contain version ${{ inputs.version }}."
75
+ echo "Please run locally: uv run git-cliff --tag ${{ inputs.version }} --output CHANGELOG.md"
76
+ echo "Then commit and push the changes."
77
+ exit 1
78
+ fi
79
+ echo "SUCCESS: Found version ${{ inputs.version }} in CHANGELOG.md"
80
+
81
+ - name: Run Tests & Linters
82
+ run: |
83
+ uv sync --all-extras --dev
84
+ uv run ruff check .
85
+ uv run mypy .
86
+ uv run pytest
87
+
88
+ - name: Build Package
89
+ run: uv build
90
+
91
+ - name: Publish to PyPI
92
+ uses: pypa/gh-action-pypi-publish@release/v1
93
+ with:
94
+ verbose: true
95
+
96
+ - name: Create and Push Tag
97
+ run: |
98
+ git config user.name "GitHub Actions"
99
+ git config user.email "actions@github.com"
100
+ git tag -a "v${{ inputs.version }}" -m "Release v${{ inputs.version }}"
101
+ git push origin "v${{ inputs.version }}"
@@ -0,0 +1,38 @@
1
+ # --- Python ---
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # Tools
7
+ .mypy_cache
8
+ .ruff_cache
9
+
10
+ # Distribution / Builds
11
+ build/
12
+ dist/
13
+ *.egg-info/
14
+ .eggs/
15
+ *.egg
16
+
17
+ # --- Virtual Environments ---
18
+ # uv creates .venv by default
19
+ .venv/
20
+ venv/
21
+ env/
22
+ ENV/
23
+
24
+ # --- macOS ---
25
+ .DS_Store
26
+ .AppleDouble
27
+ .LSOverride
28
+
29
+ # --- IDEs / Editors ---
30
+ .idea/
31
+ .vscode/
32
+ *.swp
33
+
34
+ # --- Testing / Coverage ---
35
+ .coverage
36
+ coverage.xml
37
+ htmlcov/
38
+ .pytest_cache/
@@ -0,0 +1 @@
1
+ 3.11
@@ -0,0 +1,18 @@
1
+ # Performance Benchmarks and Efficacy Validation
2
+
3
+ ## Purpose
4
+ The efficacy of RAG security controls is non-deterministic and highly dependent on the underlying Large Language Model (LLM) used in the pipeline. While the Deconvolute SDK ensures the *mechanism* of defense (e.g. proper token injection, correct XML encapsulation), the *robustness* of these defenses against adversarial attacks varies by model.
5
+
6
+ This document serves as the central registry for empirical validation results.
7
+
8
+ TODO
9
+
10
+ ## Methodology
11
+ Validation is conducted using an adversarial red-teaming framework.
12
+
13
+ TODO
14
+
15
+ ## Current Status
16
+ TODO
17
+
18
+ *Note: Absence of a benchmark for a specific model does not imply incompatibility, but rather a lack of empirical security guarantees.*
@@ -0,0 +1,9 @@
1
+ ## [0.1.0a1] - 2026-01-05
2
+
3
+ ### 🚀 Features
4
+
5
+ - Add canary token feature
6
+
7
+ ### ⚙️ Miscellaneous Tasks
8
+
9
+ - Finalize release workflow
@@ -0,0 +1,117 @@
1
+ # Contributing
2
+
3
+ Thank you for your interest in making RAG pipelines safer!
4
+
5
+ ## 1. Development Setup
6
+
7
+ We use [uv](https://github.com/astral-sh/uv) for dependency management. It is extremely fast and manages Python versions automatically.
8
+
9
+ ### Prerequisites
10
+ * Install `uv`:
11
+ ```bash
12
+ # On macOS/Linux
13
+ curl -LsSf https://astral.sh/uv/install.sh | sh
14
+
15
+ # On Windows
16
+ powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
17
+ ```
18
+
19
+ ### Installation
20
+ 1. Clone the repository:
21
+ ```bash
22
+ git clone https://github.com/daved01/deconvolute.git
23
+ cd deconvolute
24
+ ```
25
+
26
+ 2. Create the environment and install all dependencies (including dev tools, ML, and YARA):
27
+ ```bash
28
+ uv sync --all-extras
29
+ ```
30
+
31
+ 3. Activate the environment:
32
+ ```bash
33
+ # macOS/Linux
34
+ source .venv/bin/activate
35
+
36
+ # Windows
37
+ .venv\Scripts\activate
38
+ ```
39
+
40
+ 4. Verify installation:
41
+ ```bash
42
+ # Should run without errors
43
+ pytest --version
44
+ python -c "import deconvolute; print(deconvolute.__version__)"
45
+ ```
46
+
47
+ ## 2. Development
48
+ TODO
49
+
50
+ ### Running Tests & Linting
51
+ We enforce high code quality using **Ruff** (linting/formatting) and **Mypy** (static typing).
52
+
53
+ These checks run in CI, so please run them locally before pushing. You can run tools directly via `uv run` (no activation needed) or inside the activated shell.
54
+
55
+
56
+ #### 1. Run the Linters (Ruff)
57
+ Ruff checks for bugs, security issues, and formatting violations.
58
+
59
+ ```bash
60
+ # Check for errors (Read-only)
61
+ uv run ruff check .
62
+
63
+ # Auto-fix simple errors and format code
64
+ uv run ruff check --fix .
65
+ uv run ruff format .
66
+ ```
67
+
68
+ #### 2. Run Type Checking (Mypy)
69
+
70
+ Mypy ensures you aren't passing the wrong types to functions.
71
+
72
+ ```bash
73
+ uv run mypy .
74
+ ```
75
+
76
+ #### 3. Run Tests (Pytest)
77
+
78
+ ```bash
79
+ # Run all tests
80
+ uv run pytest
81
+
82
+ # Run tests with coverage report
83
+ uv run pytest --cov=deconvolute
84
+ ```
85
+
86
+ ### Commit Messages
87
+ We follow Conventional Commits. This allows us to generate changelogs automatically.
88
+
89
+ - `feat`: add new YARA scanner (Adds functionality)
90
+ - `fix`: handle empty PDF inputs (Fixes a bug)
91
+ - `docs`: update README quickstart (Documentation only)
92
+ - `chore`: update dependencies (Maintenance)
93
+ - `test`: add regression vectors (Tests only)
94
+
95
+
96
+ ### Release Process (Maintainers Only)
97
+
98
+ 1. **Generate Changelog:**
99
+ Run the following command locally to generate the changelog for the new version (e.g. `0.1.0`):
100
+
101
+ ```bash
102
+ uv run git-cliff --tag 0.1.0 --output CHANGELOG.md
103
+ ```
104
+ 2. **Bump Version:** Update `__version__` string in `src/deconvolute/__init__.py`.
105
+ 3. **Commit & Push:**
106
+ Commit the `CHANGELOG.md` and `__init__.py` files, then push to `main`.
107
+ ```bash
108
+ git commit -am "chore(release): prepare v0.1.0"
109
+ git push origin main
110
+ ```
111
+ 4. **Trigger Release:**
112
+ * Go to the **Actions** tab on GitHub.
113
+ * Select **Release to TestPyPI** (or **Release to PyPI** once configured).
114
+ * Click **Run workflow** and enter the version number (e.g. `0.1.0`).
115
+
116
+ ## 3. TODO: More coming soon
117
+
@@ -0,0 +1,48 @@
1
+ # Design Document
2
+ This document lists the important components and explains the why behind design decisions to make the design trade-offds transparent.
3
+
4
+ ## Architecture
5
+
6
+ Deconvolute follows a layered defense strategy:
7
+
8
+ 1. **Scanning**: Detects potential threats using multiple engines (Regex, YARA, ML).
9
+ 2. **Sanitization**: Neutralizes detected threats and normalizes output.
10
+ 3. **Canary**: Verifies integrity and detects jailbreaks using canary tokens.
11
+
12
+ ## Modules
13
+
14
+ - **Core**: Interfaces and data types.
15
+ - **Scanners**: Detection logic.
16
+ - **Sanitizers**: Cleaning and structure enforcement.
17
+ - **Canary**: Verification tools.
18
+
19
+ ### Canary Module Design Principles
20
+
21
+ #### Token format
22
+ - Uses 16 hexadecimal characters to balance security and model reliability.
23
+ - Large enough to prevent guessing, short enough for smaller models to reproduce.
24
+ - Restricted hex alphabet ensures stable tokenization across models.
25
+ - Avoids special characters that commonly trigger hallucinations.
26
+
27
+ #### Static prefix
28
+ - Uses the prefix dcv- as a namespace anchor.
29
+ - Prevents false positives from valid hex strings like color codes or hashes.
30
+ - Forces attackers to explicitly target the token during jailbreak attempts.
31
+ - Targeted attacks reliably trigger detection when the token is filtered.
32
+
33
+ #### Integrity model
34
+ - Uses Active Integrity Checks instead of passive leakage detection.
35
+ - Designed to detect context overwrites in RAG systems.
36
+ - Mandatory token inclusion verifies that the System Prompt retains control over retrieved context.
37
+ - Token with enclosing characters is added at the end of the system prompt to utilize the recency bias (Liu et al. 2023) and to avoid that it gets ignored as a comment (Gakh and Bahsi, 2024)
38
+
39
+
40
+ #### Detection output
41
+ - Returns a structured DetectionResult Pydantic object instead of a boolean.
42
+ - Ensures consistent metadata and timestamps for all security events.
43
+
44
+
45
+ # References
46
+ Liu, Nelson F, Kevin Lin, John Hewitt, et al. Lost in the Middle: How Language Models Use Long Contexts. 2024. https://aclanthology.org/2024.tacl-1.9/.
47
+
48
+ Gakh, Valerii, and Hayretdin Bahsi. “Enhancing Security in LLM Applications: A Performance Evaluation of Early Detection Systems.” arXiv:2506.19109. Preprint, arXiv, June 23, 2025. https://doi.org/10.48550/arXiv.2506.19109.
@@ -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 [2026] [David Kirchhoff]
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.