finagent-redrange 0.5.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 (78) hide show
  1. finagent_redrange-0.5.0/.env.example +8 -0
  2. finagent_redrange-0.5.0/.github/dependabot.yml +14 -0
  3. finagent_redrange-0.5.0/.github/workflows/ci.yml +45 -0
  4. finagent_redrange-0.5.0/.github/workflows/publish.yml +42 -0
  5. finagent_redrange-0.5.0/.gitignore +30 -0
  6. finagent_redrange-0.5.0/CITATION.cff +26 -0
  7. finagent_redrange-0.5.0/CLAUDE.md +115 -0
  8. finagent_redrange-0.5.0/LICENSE +201 -0
  9. finagent_redrange-0.5.0/LICENSE-docs +39 -0
  10. finagent_redrange-0.5.0/NOTICE +17 -0
  11. finagent_redrange-0.5.0/PKG-INFO +261 -0
  12. finagent_redrange-0.5.0/README.md +227 -0
  13. finagent_redrange-0.5.0/SECURITY.md +33 -0
  14. finagent_redrange-0.5.0/data/incidents.yaml +54 -0
  15. finagent_redrange-0.5.0/data/seeds.yaml +32 -0
  16. finagent_redrange-0.5.0/docs/HANDOUTS.md +194 -0
  17. finagent_redrange-0.5.0/docs/RECOMMENDATIONS.md +39 -0
  18. finagent_redrange-0.5.0/docs/WALKTHROUGH.md +119 -0
  19. finagent_redrange-0.5.0/docs/real-model-note.md +134 -0
  20. finagent_redrange-0.5.0/docs/scorecard.png +0 -0
  21. finagent_redrange-0.5.0/docs/whitepaper-outline.md +89 -0
  22. finagent_redrange-0.5.0/notebooks/v0_2_demo.ipynb +106 -0
  23. finagent_redrange-0.5.0/pyproject.toml +68 -0
  24. finagent_redrange-0.5.0/requirements.txt +2 -0
  25. finagent_redrange-0.5.0/results/.gitkeep +0 -0
  26. finagent_redrange-0.5.0/src/finagent_redrange/__init__.py +3 -0
  27. finagent_redrange-0.5.0/src/finagent_redrange/__main__.py +4 -0
  28. finagent_redrange-0.5.0/src/finagent_redrange/attacker/__init__.py +1 -0
  29. finagent_redrange-0.5.0/src/finagent_redrange/attacker/engine.py +266 -0
  30. finagent_redrange-0.5.0/src/finagent_redrange/attacker/seeds.py +59 -0
  31. finagent_redrange-0.5.0/src/finagent_redrange/attacker/transforms.py +52 -0
  32. finagent_redrange-0.5.0/src/finagent_redrange/cli.py +280 -0
  33. finagent_redrange-0.5.0/src/finagent_redrange/exports/__init__.py +32 -0
  34. finagent_redrange-0.5.0/src/finagent_redrange/exports/assurance.py +249 -0
  35. finagent_redrange-0.5.0/src/finagent_redrange/exports/compliance.py +184 -0
  36. finagent_redrange-0.5.0/src/finagent_redrange/exports/detection.py +135 -0
  37. finagent_redrange-0.5.0/src/finagent_redrange/exports/navigator.py +83 -0
  38. finagent_redrange-0.5.0/src/finagent_redrange/exports/sarif.py +184 -0
  39. finagent_redrange-0.5.0/src/finagent_redrange/exports/sigma.py +162 -0
  40. finagent_redrange-0.5.0/src/finagent_redrange/llm/__init__.py +1 -0
  41. finagent_redrange-0.5.0/src/finagent_redrange/llm/client.py +266 -0
  42. finagent_redrange-0.5.0/src/finagent_redrange/scenarios/__init__.py +1 -0
  43. finagent_redrange-0.5.0/src/finagent_redrange/scenarios/base.py +64 -0
  44. finagent_redrange-0.5.0/src/finagent_redrange/scenarios/data_poisoning.py +87 -0
  45. finagent_redrange-0.5.0/src/finagent_redrange/scenarios/excessive_agency.py +98 -0
  46. finagent_redrange-0.5.0/src/finagent_redrange/scenarios/indirect_prompt_injection.py +104 -0
  47. finagent_redrange-0.5.0/src/finagent_redrange/scenarios/judge.py +97 -0
  48. finagent_redrange-0.5.0/src/finagent_redrange/scenarios/multimodal_injection.py +93 -0
  49. finagent_redrange-0.5.0/src/finagent_redrange/scenarios/supply_chain.py +112 -0
  50. finagent_redrange-0.5.0/src/finagent_redrange/scenarios/system_prompt_leakage.py +81 -0
  51. finagent_redrange-0.5.0/src/finagent_redrange/scenarios/unbounded_consumption.py +88 -0
  52. finagent_redrange-0.5.0/src/finagent_redrange/scenarios/unsafe_output_handling.py +87 -0
  53. finagent_redrange-0.5.0/src/finagent_redrange/scenarios/vector_embedding_weakness.py +88 -0
  54. finagent_redrange-0.5.0/src/finagent_redrange/scoring/__init__.py +1 -0
  55. finagent_redrange-0.5.0/src/finagent_redrange/scoring/airq.py +31 -0
  56. finagent_redrange-0.5.0/src/finagent_redrange/scoring/frameworks.py +84 -0
  57. finagent_redrange-0.5.0/src/finagent_redrange/scoring/scorecard.py +461 -0
  58. finagent_redrange-0.5.0/src/finagent_redrange/target/__init__.py +1 -0
  59. finagent_redrange-0.5.0/src/finagent_redrange/target/agent.py +219 -0
  60. finagent_redrange-0.5.0/src/finagent_redrange/target/guardrails.py +217 -0
  61. finagent_redrange-0.5.0/src/finagent_redrange/target/knowledge/policies.md +23 -0
  62. finagent_redrange-0.5.0/src/finagent_redrange/target/tools.py +265 -0
  63. finagent_redrange-0.5.0/src/finagent_redrange/types.py +241 -0
  64. finagent_redrange-0.5.0/tests/__init__.py +1 -0
  65. finagent_redrange-0.5.0/tests/conftest.py +29 -0
  66. finagent_redrange-0.5.0/tests/test_anthropic_adapter.py +83 -0
  67. finagent_redrange-0.5.0/tests/test_autonomous.py +65 -0
  68. finagent_redrange-0.5.0/tests/test_cli.py +64 -0
  69. finagent_redrange-0.5.0/tests/test_export_assurance.py +87 -0
  70. finagent_redrange-0.5.0/tests/test_export_compliance.py +60 -0
  71. finagent_redrange-0.5.0/tests/test_export_navigator.py +58 -0
  72. finagent_redrange-0.5.0/tests/test_export_sarif.py +73 -0
  73. finagent_redrange-0.5.0/tests/test_export_sigma.py +80 -0
  74. finagent_redrange-0.5.0/tests/test_guardrails.py +252 -0
  75. finagent_redrange-0.5.0/tests/test_judge.py +83 -0
  76. finagent_redrange-0.5.0/tests/test_llm_planner.py +101 -0
  77. finagent_redrange-0.5.0/tests/test_regression.py +93 -0
  78. finagent_redrange-0.5.0/tests/test_seeds.py +53 -0
@@ -0,0 +1,8 @@
1
+ # Copy to .env and fill in to run against a real model (`--model claude`).
2
+ # The CLI auto-loads .env on startup (real environment variables take precedence).
3
+ # The offline EchoClient (`--model echo`, the default) needs none of this.
4
+ ANTHROPIC_API_KEY=
5
+
6
+ # Optional: override the model used for `--model claude` (default: claude-opus-4-8).
7
+ # A cheaper option for capturing demo transcripts: claude-sonnet-4-6
8
+ # ANTHROPIC_MODEL=claude-opus-4-8
@@ -0,0 +1,14 @@
1
+ # Dependabot keeps the (small) dependency surface and the CI actions current.
2
+ # Defensive-research repo: low-volume, weekly, to surface known-vulnerable deps early.
3
+ version: 2
4
+ updates:
5
+ - package-ecosystem: "pip"
6
+ directory: "/"
7
+ schedule:
8
+ interval: "weekly"
9
+ open-pull-requests-limit: 5
10
+ - package-ecosystem: "github-actions"
11
+ directory: "/"
12
+ schedule:
13
+ interval: "weekly"
14
+ open-pull-requests-limit: 5
@@ -0,0 +1,45 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ # Least privilege: CI only reads the repo (no writes, no token use).
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ test:
14
+ name: lint, type-check & regression suite
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ python-version: ["3.11", "3.12"]
20
+ steps:
21
+ # Actions are pinned to a full commit SHA (supply-chain hardening); the trailing comment is
22
+ # the human-readable version and lets Dependabot keep the pin current.
23
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
24
+ with:
25
+ persist-credentials: false
26
+
27
+ - name: Set up Python ${{ matrix.python-version }}
28
+ uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
29
+ with:
30
+ python-version: ${{ matrix.python-version }}
31
+
32
+ - name: Install (editable, with dev tools)
33
+ run: pip install -e ".[dev]"
34
+
35
+ - name: Ruff lint
36
+ run: ruff check .
37
+
38
+ - name: Ruff format check
39
+ run: ruff format --check .
40
+
41
+ - name: Type-check
42
+ run: mypy src
43
+
44
+ - name: Regression suite (attacks must stay blocked with controls on)
45
+ run: pytest -q
@@ -0,0 +1,42 @@
1
+ name: Publish to PyPI
2
+
3
+ # Publishes to PyPI when a GitHub Release is published, using PyPI **Trusted Publishing** (OIDC) —
4
+ # no API token is stored in the repo.
5
+ #
6
+ # ONE-TIME SETUP on pypi.org (do this before the first release):
7
+ # PyPI → your project (or "Publishing" → "Add a pending publisher") → add a Trusted Publisher:
8
+ # Owner: emmanuelgjr Repository: finagent-redrange
9
+ # Workflow: publish.yml Environment: pypi
10
+ # After that, publishing is just: create a GitHub Release (which fires this workflow).
11
+
12
+ on:
13
+ release:
14
+ types: [published]
15
+
16
+ permissions:
17
+ contents: read
18
+
19
+ jobs:
20
+ publish:
21
+ name: Build & publish to PyPI
22
+ runs-on: ubuntu-latest
23
+ environment: pypi
24
+ permissions:
25
+ id-token: write # OIDC token for PyPI Trusted Publishing (no password/token needed)
26
+ steps:
27
+ # Actions pinned to full commit SHAs (supply-chain hardening); trailing comment = version.
28
+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
29
+ with:
30
+ persist-credentials: false
31
+
32
+ - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
33
+ with:
34
+ python-version: "3.12"
35
+
36
+ - name: Build sdist + wheel
37
+ run: |
38
+ python -m pip install --upgrade build
39
+ python -m build
40
+
41
+ - name: Publish to PyPI (Trusted Publishing)
42
+ uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
@@ -0,0 +1,30 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ venv/
5
+ *.egg-info/
6
+ build/
7
+ dist/
8
+ .env
9
+ .mypy_cache/
10
+ .ruff_cache/
11
+ .pytest_cache/
12
+ .ipynb_checkpoints/
13
+ # editor / agent local settings
14
+ .claude/
15
+ # generated artifacts (keep the dir, ignore outputs — all regenerated on each run)
16
+ results/*.md
17
+ results/*.json
18
+ results/*.html
19
+ results/*.sarif
20
+ results/sigma/
21
+ results/assurance/
22
+ results/compliance/
23
+ results/navigator/
24
+
25
+ # local-only interview / prep doc (not part of the public repo)
26
+ /interviewRBC.docx
27
+
28
+ # local-only working docs — kept on disk, deliberately not part of the public repo
29
+ /run.md
30
+ /docs/DEMO.md
@@ -0,0 +1,26 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use this software, its harness, its framework crosswalk, or its findings, please cite it as below."
3
+ title: "FinAgent-RedRange: a reproducible, defensive red-team range for financial-services AI agents"
4
+ abstract: >-
5
+ A self-contained sandbox for defensive AI-security research. It develops
6
+ proof-of-concept exploits against a mock financial-services AI agent and
7
+ validates that specific guardrails close each one end to end — from POC
8
+ through regression test — with every finding mapped to OWASP, MITRE ATLAS,
9
+ and NIST AI RMF.
10
+ type: software
11
+ authors:
12
+ - given-names: Emmanuel
13
+ family-names: Guilherme Junior
14
+ repository-code: "https://github.com/emmanuelgjr/finagent-redrange"
15
+ url: "https://github.com/emmanuelgjr/finagent-redrange"
16
+ version: "0.5.0"
17
+ date-released: "2026-07-03"
18
+ license: Apache-2.0
19
+ keywords:
20
+ - ai-security
21
+ - llm-security
22
+ - red-team
23
+ - agentic-ai
24
+ - owasp
25
+ - mitre-atlas
26
+ - nist-ai-rmf
@@ -0,0 +1,115 @@
1
+ # CLAUDE.md
2
+
3
+ Context for Claude Code working in this repository. Read this first.
4
+
5
+ ## What this project is
6
+
7
+ **FinAgent-RedRange** is a self-contained sandbox for **defensive** AI security research.
8
+ It develops proof-of-concept (POC) exploits against a *mock* financial-services AI agent,
9
+ then validates that mitigations close them — end to end, from POC through regression test.
10
+
11
+ This is a portfolio piece demonstrating the work of a Principal AI Security Researcher:
12
+ identify how agentic AI systems could be attacked, build reproducible POCs, validate the
13
+ fixes, and map every finding to the frameworks engineering and risk teams already use.
14
+
15
+ The deliverable is **evidence that defenses work**, not an attack toolkit. Every scenario
16
+ exists to be *blocked* once the corresponding control is enabled.
17
+
18
+ ## Hard scope boundaries (do not cross)
19
+
20
+ - The **only** target is the bundled mock agent in `src/finagent_redrange/target/`.
21
+ Never add code that points attacks at real, third-party, or production systems.
22
+ - Keep payloads at the level of publicly documented technique *categories* (OWASP LLM Top 10,
23
+ OWASP Agentic Top 10, MITRE ATLAS). The novelty is in the *harness, mapping, and
24
+ mitigation-validation*, not in weaponizing novel zero-days against live targets.
25
+ - Every scenario must ship with (a) an oracle that detects success and (b) a mitigation
26
+ that, when enabled, makes the oracle return `False`. No exploit without its fix.
27
+ - Preserve `SECURITY.md` (responsible-disclosure posture). Don't remove safety framing.
28
+
29
+ ## Architecture
30
+
31
+ ```
32
+ target/ The system under test: a mock retail-banking agent. agent.py runs a
33
+ plan->act->observe tool loop over permission-checked tools, with TOGGLEABLE
34
+ guardrails (input / retrieval / action / output) so you can run "controls off"
35
+ (POC lands) vs "controls on" (POC blocked).
36
+ attacker/ The red-team engine. engine.run_campaign runs a Scenario's scripted campaign and
37
+ judges it with the oracle. engine.run_autonomous composes seeds x transforms until
38
+ an oracle fires (deterministic offline; an LLM-driven planner is the seam).
39
+ seeds.py loads attack seeds (hook to pull from an external incident DB).
40
+ scenarios/ One file per attack class. v0.3 ships eight (full OWASP LLM Top 10 coverage):
41
+ indirect prompt injection, data poisoning, excessive agency, system-prompt leakage,
42
+ unsafe output handling, vector/embedding weakness, unbounded consumption, supply
43
+ chain. judge.py holds the semantic adoption-vs-refutation oracle. Each scenario
44
+ subclasses scenarios/base.Scenario.
45
+ scoring/ frameworks.py maps a Finding to OWASP/ATLAS/NIST IDs (the "crosswalk").
46
+ airq.py scores Attack Surface / Blast Radius / Defense Controls.
47
+ scorecard.py renders the results table (markdown + JSON) into results/.
48
+ llm/ Provider-agnostic client. EchoClient is deterministic + offline so tests
49
+ run with no API key. AnthropicClient is the real one (wire it up).
50
+ types.py Shared dataclasses (Finding, Turn, Transcript, ...). Import from here to
51
+ avoid circular deps.
52
+ cli.py One-command entrypoint: `python -m finagent_redrange run`.
53
+ ```
54
+
55
+ Data flow: `cli.run()` → for each `Scenario`: `setup(target)` → `engine.run_campaign()` →
56
+ `scenario.oracle(transcript)` → `Finding` → `frameworks.map_finding()` + `airq.score()` →
57
+ `Scorecard` → `results/scorecard.md`.
58
+
59
+ ## Status
60
+
61
+ **v0.1 — shipped.** A reviewer can clone, run one command, and see a scorecard proving each
62
+ attack lands with controls off and is blocked with controls on.
63
+
64
+ - [x] `llm/client.py`: `AnthropicClient.complete()` returns structured `ModelResponse`;
65
+ `EchoClient` is deterministic + offline.
66
+ - [x] `target/`: 5 permission-checked tools; RAG over `knowledge/`.
67
+ - [x] `target/guardrails.py`: input / retrieval / action / output checks.
68
+ - [x] `scenarios/indirect_prompt_injection.py` + `scenarios/data_poisoning.py` with oracles.
69
+ - [x] `scoring/`: framework lookup tables + AIRQ weights; scorecard (md/json/html).
70
+ - [x] `tests/test_regression.py`: with guardrails ON, every scenario stays blocked.
71
+ - [x] `notebooks/` narrative walkthrough; CI workflow (ruff + mypy + pytest, 3.11/3.12).
72
+
73
+ **v0.2 — shipped.** Built on v0.1:
74
+
75
+ - [x] Permission-checked **tool-execution loop** in `target/agent.py` (`MAX_PLANNING_STEPS`);
76
+ `EchoClient` deterministically emits tool calls so the loop is exercised offline.
77
+ - [x] Three more scenarios: **excessive agency** (action-authorization control),
78
+ **system-prompt leakage** (output canary detector), **unsafe output handling** (link
79
+ sanitiser). Five total: dedicated POC+control for 5 primary OWASP risks
80
+ (LLM01/04/05/06/07), mapped across 7/10 once impact tags (LLM02, LLM09) are counted.
81
+ - [x] **Autonomous attacker** (`attacker/run_autonomous` + `auto` CLI): composes seeds ×
82
+ transforms until an oracle fires; offline-deterministic.
83
+ - [x] Richer scorecard: summary, OWASP coverage matrix, AIRQ off→on, HTML report.
84
+ - [x] Hardened via a multi-agent **adversarial review** (oracle soundness, control
85
+ attribution, framework accuracy, guardrail over-blocking). See `tests/test_guardrails.py`.
86
+
87
+ **v0.3 — shipped.** Full OWASP LLM Top 10 coverage: three more scenarios (vector/embedding
88
+ weakness → access-scoped retrieval; unbounded consumption → per-request tool budget; supply
89
+ chain → verified-publisher tool allowlist), an OWASP Agentic Top 10 (ASI01–ASI10) crosswalk
90
+ alongside the T1–T15 codes, and a semantic adoption-vs-refutation oracle (`scenarios/judge.py`)
91
+ that fixes the real-model keyword false positive. Relicensed Apache-2.0 (code) + CC BY 4.0 (docs).
92
+
93
+ **Defer to later (the next roadmap):** an LLM-driven autonomous *planner* (replace the
94
+ deterministic composer), multimodal attacks,
95
+ and seeding the attacker from a real incident corpus (`SeedLibrary.from_incident_db`).
96
+
97
+ ## Conventions
98
+
99
+ - Python 3.11+. Type hints everywhere. `dataclasses` for data, `Protocol` for seams.
100
+ - No network calls in tests — use `EchoClient`. Tests must pass offline.
101
+ - Keep `target/` and `attacker/` decoupled: the attacker only talks to the agent's public
102
+ `respond()` surface, never reaches into its internals (black/grey-box discipline).
103
+ - Findings carry framework IDs and AIRQ sub-scores as structured fields, never free text only.
104
+ - Format with `ruff format`, lint with `ruff check`, type-check with `mypy src`.
105
+ - Run: `pip install -e ".[dev]"` then `python -m finagent_redrange run` and `pytest`.
106
+
107
+ ## Useful commands
108
+
109
+ ```bash
110
+ pip install -e ".[dev]" # editable install with dev tools
111
+ python -m finagent_redrange run # run all scenarios, write results/scorecard.md
112
+ python -m finagent_redrange run --controls on # run with mitigations enabled
113
+ pytest -q # regression suite (attacks must stay blocked)
114
+ ruff check . && mypy src # lint + types
115
+ ```
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Emmanuel Guilherme Junior
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,39 @@
1
+ Documentation & Research License — Creative Commons Attribution 4.0 International
2
+ (CC BY 4.0)
3
+ SPDX-License-Identifier: CC-BY-4.0
4
+
5
+ Copyright 2026 Emmanuel Guilherme Junior
6
+
7
+ The written and research materials in this repository — everything in the docs/
8
+ directory (including the whitepaper outline, the engineering recommendations, and
9
+ the real-model methodology note), the README and SECURITY documents, and the
10
+ generated scorecards (results/) — are licensed under the Creative Commons
11
+ Attribution 4.0 International license.
12
+
13
+ You are free to:
14
+ - Share — copy and redistribute the material in any medium or format
15
+ - Adapt — remix, transform, and build upon the material for any purpose,
16
+ even commercially
17
+
18
+ Under the following term:
19
+ - Attribution — You must give appropriate credit to Emmanuel Guilherme Junior,
20
+ provide a link to this repository and to the license, and indicate if
21
+ changes were made. You may do so in any reasonable manner, but not in any
22
+ way that suggests the licensor endorses you or your use.
23
+
24
+ No additional restrictions — You may not apply legal terms or technological
25
+ measures that legally restrict others from doing anything the license permits.
26
+
27
+ This is a human-readable summary of (and not a substitute for) the license. The
28
+ full legal code is available at:
29
+
30
+ https://creativecommons.org/licenses/by/4.0/legalcode
31
+
32
+ How to attribute:
33
+
34
+ "FinAgent-RedRange" by Emmanuel Guilherme Junior, licensed under CC BY 4.0.
35
+ Source: https://github.com/emmanuelgjr/finagent-redrange
36
+
37
+ NOTE ON SCOPE: This license applies to the documentation and research prose only.
38
+ The software source code in this repository is licensed separately under the
39
+ Apache License, Version 2.0 (see LICENSE and NOTICE).
@@ -0,0 +1,17 @@
1
+ FinAgent-RedRange
2
+ Copyright 2026 Emmanuel Guilherme Junior
3
+
4
+ This product includes software and documentation created by
5
+ Emmanuel Guilherme Junior — https://github.com/emmanuelgjr/finagent-redrange
6
+
7
+ Licensing (dual):
8
+ - Source code is licensed under the Apache License, Version 2.0 (see LICENSE).
9
+ - Documentation and written research materials (the docs/ directory and other
10
+ prose content such as README.md and SECURITY.md, plus the generated scorecards)
11
+ are licensed under the Creative Commons Attribution 4.0 International license
12
+ (CC BY 4.0); see LICENSE-docs.
13
+
14
+ Attribution is required. If you reuse this work, its harness, its framework
15
+ crosswalk, or its findings, retain this notice and cite the project as described
16
+ in CITATION.cff. This NOTICE file must be propagated with redistributions per
17
+ section 4(d) of the Apache License.