agentclaimguard 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agentclaimguard-0.3.1/.github/ISSUE_TEMPLATE/bug_report.md +25 -0
- agentclaimguard-0.3.1/.github/ISSUE_TEMPLATE/config.yml +11 -0
- agentclaimguard-0.3.1/.github/ISSUE_TEMPLATE/feature_request.md +16 -0
- agentclaimguard-0.3.1/.github/pull_request_template.md +12 -0
- agentclaimguard-0.3.1/.github/workflows/ci.yml +37 -0
- agentclaimguard-0.3.1/.gitignore +14 -0
- agentclaimguard-0.3.1/CHANGELOG.md +112 -0
- agentclaimguard-0.3.1/CODE_OF_CONDUCT.md +26 -0
- agentclaimguard-0.3.1/CONTRIBUTING.md +43 -0
- agentclaimguard-0.3.1/LICENSE +201 -0
- agentclaimguard-0.3.1/NOTICE +8 -0
- agentclaimguard-0.3.1/PKG-INFO +254 -0
- agentclaimguard-0.3.1/README.md +215 -0
- agentclaimguard-0.3.1/SECURITY.md +19 -0
- agentclaimguard-0.3.1/agentclaimguard/__init__.py +23 -0
- agentclaimguard-0.3.1/agentclaimguard/adapters/__init__.py +6 -0
- agentclaimguard-0.3.1/agentclaimguard/adapters/dify/__init__.py +2 -0
- agentclaimguard-0.3.1/agentclaimguard/adapters/dspy/__init__.py +2 -0
- agentclaimguard-0.3.1/agentclaimguard/adapters/langchain/__init__.py +18 -0
- agentclaimguard-0.3.1/agentclaimguard/adapters/langchain/runnable.py +126 -0
- agentclaimguard-0.3.1/agentclaimguard/adapters/langchain/types.py +8 -0
- agentclaimguard-0.3.1/agentclaimguard/adapters/langgraph/__init__.py +18 -0
- agentclaimguard-0.3.1/agentclaimguard/adapters/langgraph/node.py +78 -0
- agentclaimguard-0.3.1/agentclaimguard/adapters/langgraph/types.py +16 -0
- agentclaimguard-0.3.1/agentclaimguard/adapters/ragflow/__init__.py +2 -0
- agentclaimguard-0.3.1/agentclaimguard/core/__init__.py +23 -0
- agentclaimguard-0.3.1/agentclaimguard/core/claim.py +15 -0
- agentclaimguard-0.3.1/agentclaimguard/core/evidence.py +13 -0
- agentclaimguard-0.3.1/agentclaimguard/core/policy.py +83 -0
- agentclaimguard-0.3.1/agentclaimguard/core/result.py +41 -0
- agentclaimguard-0.3.1/agentclaimguard/core/runtime.py +54 -0
- agentclaimguard-0.3.1/agentclaimguard/core/tool_result.py +14 -0
- agentclaimguard-0.3.1/agentclaimguard/core/verifier.py +97 -0
- agentclaimguard-0.3.1/agentclaimguard/policies/generic_compliance.yaml +17 -0
- agentclaimguard-0.3.1/agentclaimguard/policies/generic_numeric.yaml +16 -0
- agentclaimguard-0.3.1/agentclaimguard/policies/generic_rag.yaml +14 -0
- agentclaimguard-0.3.1/agentclaimguard/policies/generic_strict.yaml +43 -0
- agentclaimguard-0.3.1/agentclaimguard/server/__init__.py +1 -0
- agentclaimguard-0.3.1/agentclaimguard/server/main.py +44 -0
- agentclaimguard-0.3.1/agentclaimguard/server/schemas.py +18 -0
- agentclaimguard-0.3.1/agentclaimguard/utils/__init__.py +1 -0
- agentclaimguard-0.3.1/agentclaimguard/utils/ids.py +6 -0
- agentclaimguard-0.3.1/agentclaimguard/utils/json_schema.py +16 -0
- agentclaimguard-0.3.1/agentclaimguard/utils/yaml_loader.py +13 -0
- agentclaimguard-0.3.1/agentclaimguard/validators/__init__.py +14 -0
- agentclaimguard-0.3.1/agentclaimguard/validators/citation_binding.py +41 -0
- agentclaimguard-0.3.1/agentclaimguard/validators/conflict_check.py +59 -0
- agentclaimguard-0.3.1/agentclaimguard/validators/evidence_required.py +37 -0
- agentclaimguard-0.3.1/agentclaimguard/validators/forbidden_verdict.py +93 -0
- agentclaimguard-0.3.1/agentclaimguard/validators/tool_required.py +59 -0
- agentclaimguard-0.3.1/docs/adapters.md +213 -0
- agentclaimguard-0.3.1/docs/concepts.md +28 -0
- agentclaimguard-0.3.1/docs/examples.md +77 -0
- agentclaimguard-0.3.1/docs/policy_spec.md +31 -0
- agentclaimguard-0.3.1/docs/project_plan_zh.md +1213 -0
- agentclaimguard-0.3.1/docs/quickstart.md +46 -0
- agentclaimguard-0.3.1/docs/release_checklist.md +19 -0
- agentclaimguard-0.3.1/docs/roadmap.md +45 -0
- agentclaimguard-0.3.1/docs/schema_spec.md +18 -0
- agentclaimguard-0.3.1/docs/troubleshooting.md +84 -0
- agentclaimguard-0.3.1/docs/vision.md +115 -0
- agentclaimguard-0.3.1/examples/compliance_judgement/demo.py +23 -0
- agentclaimguard-0.3.1/examples/compliance_judgement/policy.yaml +17 -0
- agentclaimguard-0.3.1/examples/compliance_judgement/sample_input.json +23 -0
- agentclaimguard-0.3.1/examples/langchain_guard/README.md +73 -0
- agentclaimguard-0.3.1/examples/langchain_guard/demo.py +59 -0
- agentclaimguard-0.3.1/examples/langgraph_guard/README.md +52 -0
- agentclaimguard-0.3.1/examples/langgraph_guard/demo.py +117 -0
- agentclaimguard-0.3.1/examples/numeric_conclusion/demo.py +23 -0
- agentclaimguard-0.3.1/examples/numeric_conclusion/policy.yaml +16 -0
- agentclaimguard-0.3.1/examples/numeric_conclusion/sample_input.json +29 -0
- agentclaimguard-0.3.1/examples/rag_citation/demo.py +23 -0
- agentclaimguard-0.3.1/examples/rag_citation/policy.yaml +14 -0
- agentclaimguard-0.3.1/examples/rag_citation/sample_input.json +22 -0
- agentclaimguard-0.3.1/profile-homepage/README.md +130 -0
- agentclaimguard-0.3.1/profile-homepage/assets/agent-review-workflow.svg +69 -0
- agentclaimguard-0.3.1/profile-homepage/assets/profile-banner.svg +55 -0
- agentclaimguard-0.3.1/profile-homepage-repo/README.md +130 -0
- agentclaimguard-0.3.1/profile-homepage-repo/assets/agent-review-workflow.svg +69 -0
- agentclaimguard-0.3.1/profile-homepage-repo/assets/profile-banner.svg +55 -0
- agentclaimguard-0.3.1/pyproject.toml +66 -0
- agentclaimguard-0.3.1/tests/test_citation_binding.py +21 -0
- agentclaimguard-0.3.1/tests/test_evidence_required.py +30 -0
- agentclaimguard-0.3.1/tests/test_fallback.py +22 -0
- agentclaimguard-0.3.1/tests/test_langchain_adapter.py +435 -0
- agentclaimguard-0.3.1/tests/test_langgraph_adapter.py +132 -0
- agentclaimguard-0.3.1/tests/test_policy_loader.py +20 -0
- agentclaimguard-0.3.1/tests/test_server.py +42 -0
- agentclaimguard-0.3.1/tests/test_tool_required.py +59 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Report a reproducible bug in AgentClaimGuard
|
|
4
|
+
title: "[Bug]"
|
|
5
|
+
labels: bug
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Summary
|
|
9
|
+
|
|
10
|
+
## Reproduction Steps
|
|
11
|
+
|
|
12
|
+
## Minimal Claim / Evidence / Tool Sample
|
|
13
|
+
|
|
14
|
+
## Active Policy
|
|
15
|
+
|
|
16
|
+
## Expected Behavior
|
|
17
|
+
|
|
18
|
+
## Actual Behavior
|
|
19
|
+
|
|
20
|
+
## Environment
|
|
21
|
+
|
|
22
|
+
- OS:
|
|
23
|
+
- Python:
|
|
24
|
+
- AgentClaimGuard version:
|
|
25
|
+
- Integration (if any):
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
blank_issues_enabled: false
|
|
2
|
+
contact_links:
|
|
3
|
+
- name: Roadmap
|
|
4
|
+
url: https://github.com/konoeph/AgentClaimGuard/blob/main/docs/roadmap.md
|
|
5
|
+
about: Read the current release and future roadmap before opening a new issue.
|
|
6
|
+
- name: Adapter docs
|
|
7
|
+
url: https://github.com/konoeph/AgentClaimGuard/blob/main/docs/adapters.md
|
|
8
|
+
about: Review the current adapter patterns before requesting a new integration.
|
|
9
|
+
- name: Example outputs
|
|
10
|
+
url: https://github.com/konoeph/AgentClaimGuard/blob/main/docs/examples.md
|
|
11
|
+
about: Check the bundled demos and expected outputs before reporting a behavior mismatch.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest a new adapter, policy pattern, or runtime improvement
|
|
4
|
+
title: "[Feature]"
|
|
5
|
+
labels: enhancement
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Problem
|
|
9
|
+
|
|
10
|
+
## Proposed Solution
|
|
11
|
+
|
|
12
|
+
## Target Integration or Workflow
|
|
13
|
+
|
|
14
|
+
## Why It Belongs in AgentClaimGuard
|
|
15
|
+
|
|
16
|
+
## Notes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
## Summary
|
|
2
|
+
|
|
3
|
+
## Validation
|
|
4
|
+
|
|
5
|
+
- [ ] `python -m pytest -q`
|
|
6
|
+
- [ ] `python -m compileall agentclaimguard examples tests`
|
|
7
|
+
- [ ] Relevant example or demo run when behavior or docs changed
|
|
8
|
+
|
|
9
|
+
## Notes
|
|
10
|
+
|
|
11
|
+
- [ ] Docs updated when user-facing behavior changed
|
|
12
|
+
- [ ] Changelog updated when release notes would need it
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout
|
|
19
|
+
uses: actions/checkout@v6
|
|
20
|
+
|
|
21
|
+
- name: Set up Python
|
|
22
|
+
uses: actions/setup-python@v6
|
|
23
|
+
with:
|
|
24
|
+
python-version: ${{ matrix.python-version }}
|
|
25
|
+
|
|
26
|
+
- name: Install package
|
|
27
|
+
run: |
|
|
28
|
+
python -m pip install --upgrade pip
|
|
29
|
+
pip install -e ".[dev,server,langgraph,langchain]"
|
|
30
|
+
|
|
31
|
+
- name: Run tests
|
|
32
|
+
run: |
|
|
33
|
+
python -m pytest -q
|
|
34
|
+
|
|
35
|
+
- name: Compile check
|
|
36
|
+
run: |
|
|
37
|
+
python -m compileall agentclaimguard examples tests
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to AgentClaimGuard will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [0.3.1] - 2026-05-27
|
|
6
|
+
|
|
7
|
+
### Maintenance
|
|
8
|
+
|
|
9
|
+
- Restored the canonical Apache-2.0 license text for GitHub license detection.
|
|
10
|
+
- Added explicit copyright ownership for Hao Peng in project metadata.
|
|
11
|
+
- Added package metadata for PyPI project links.
|
|
12
|
+
- Added release tooling optional dependencies for build and twine.
|
|
13
|
+
- Updated installation and release checklist notes for PyPI readiness.
|
|
14
|
+
- Removed duplicate policy-file wheel packaging configuration.
|
|
15
|
+
|
|
16
|
+
## [0.3.0] - 2026-05-27
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- Added a LangChain Runnable wrapper adapter.
|
|
21
|
+
- Added a LangChain adapter demo and tests.
|
|
22
|
+
- Added LangChain adapter documentation and quickstart notes.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Clarified LangChain `ainvoke(...)` usage in the demo and docs.
|
|
27
|
+
- Made LangChain adapter result-key collisions raise by default unless overwrite is enabled.
|
|
28
|
+
- Clarified LangChain field resolution order between Runnable output and input.
|
|
29
|
+
|
|
30
|
+
### Tests
|
|
31
|
+
|
|
32
|
+
- Added coverage for LangChain output-first field resolution.
|
|
33
|
+
- Added coverage for LangChain input fallback and callable field extractors.
|
|
34
|
+
- Added coverage for LangChain non-list field rejection.
|
|
35
|
+
|
|
36
|
+
### Maintenance
|
|
37
|
+
|
|
38
|
+
- Updated CI installs to include optional framework adapter dependencies.
|
|
39
|
+
- Normalized the Apache-2.0 license text for GitHub license detection.
|
|
40
|
+
|
|
41
|
+
## [0.2.1] - 2026-05-27
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
|
|
45
|
+
- Added a pull request template for release-oriented validation.
|
|
46
|
+
- Added clearer LangGraph demo notes under `examples/langgraph_guard/`.
|
|
47
|
+
- Added troubleshooting notes for common LangGraph adapter issues.
|
|
48
|
+
- Added a release checklist for maintainers.
|
|
49
|
+
|
|
50
|
+
### Changed
|
|
51
|
+
|
|
52
|
+
- Clarified README and adapter docs around LangGraph typed state usage.
|
|
53
|
+
- Clarified custom `result_key` usage for the LangGraph adapter helpers.
|
|
54
|
+
- Improved issue templates for integration-specific bug reports and feature requests.
|
|
55
|
+
|
|
56
|
+
### Maintenance
|
|
57
|
+
|
|
58
|
+
- Updated GitHub Actions workflow dependencies to Node 24 compatible versions.
|
|
59
|
+
|
|
60
|
+
## [0.2.0] - 2026-05-27
|
|
61
|
+
|
|
62
|
+
### Added
|
|
63
|
+
|
|
64
|
+
- LangGraph evidence guard node adapter.
|
|
65
|
+
- Guard status routing helper for LangGraph conditional edges.
|
|
66
|
+
- Built-in policy loader helper.
|
|
67
|
+
- Minimal LangGraph adapter demo.
|
|
68
|
+
- Adapter tests for passed, blocked, and routed guard results.
|
|
69
|
+
|
|
70
|
+
## [0.1.1] - 2026-05-27
|
|
71
|
+
|
|
72
|
+
### Added
|
|
73
|
+
|
|
74
|
+
- README badges.
|
|
75
|
+
- Example output documentation.
|
|
76
|
+
- Roadmap documentation.
|
|
77
|
+
- Adapter planning documentation.
|
|
78
|
+
- GitHub issue templates.
|
|
79
|
+
|
|
80
|
+
### Changed
|
|
81
|
+
|
|
82
|
+
- Improved README quickstart and project positioning.
|
|
83
|
+
|
|
84
|
+
## [0.1.0] - 2026-05-27
|
|
85
|
+
|
|
86
|
+
### Added
|
|
87
|
+
|
|
88
|
+
- Initial AgentClaimGuard core runtime.
|
|
89
|
+
- Pydantic schemas for Claim, Evidence, ToolResult, Policy, and VerificationResult.
|
|
90
|
+
- YAML-based policy loading.
|
|
91
|
+
- Core verifier for claim-level evidence and tool-result checks.
|
|
92
|
+
- Basic validators:
|
|
93
|
+
- required evidence check
|
|
94
|
+
- required tool result check
|
|
95
|
+
- citation binding check
|
|
96
|
+
- forbidden verdict check
|
|
97
|
+
- conflicting evidence check
|
|
98
|
+
- Built-in generic policies:
|
|
99
|
+
- generic_strict
|
|
100
|
+
- generic_numeric
|
|
101
|
+
- generic_compliance
|
|
102
|
+
- generic_rag
|
|
103
|
+
- FastAPI server with:
|
|
104
|
+
- `GET /health`
|
|
105
|
+
- `POST /v1/verify`
|
|
106
|
+
- `POST /v1/repair`
|
|
107
|
+
- Example demos:
|
|
108
|
+
- numeric conclusion
|
|
109
|
+
- compliance judgment
|
|
110
|
+
- RAG citation
|
|
111
|
+
- Initial documentation and Apache-2.0 license.
|
|
112
|
+
- Pytest test suite.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
AgentClaimGuard aims to be a welcoming, useful open-source project for people
|
|
4
|
+
building reliable LLM applications.
|
|
5
|
+
|
|
6
|
+
## Our Standards
|
|
7
|
+
|
|
8
|
+
Examples of behavior that contributes to a healthy project:
|
|
9
|
+
|
|
10
|
+
- Be respectful and constructive.
|
|
11
|
+
- Assume good intent, especially when discussing early ideas.
|
|
12
|
+
- Keep criticism focused on code, design, documentation, and project scope.
|
|
13
|
+
- Help newcomers understand the project boundary before redirecting their ideas.
|
|
14
|
+
|
|
15
|
+
Examples of unacceptable behavior:
|
|
16
|
+
|
|
17
|
+
- Harassment, insults, or discriminatory language.
|
|
18
|
+
- Personal attacks.
|
|
19
|
+
- Publishing private information without permission.
|
|
20
|
+
- Repeatedly disrupting project discussions.
|
|
21
|
+
|
|
22
|
+
## Enforcement
|
|
23
|
+
|
|
24
|
+
Project maintainers may remove comments, close issues, or restrict participation
|
|
25
|
+
when behavior does not align with this code of conduct.
|
|
26
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for your interest in AgentClaimGuard.
|
|
4
|
+
|
|
5
|
+
AgentClaimGuard is intentionally small in v0.1. The project focuses on one boundary:
|
|
6
|
+
structured claims come in, and AgentClaimGuard checks whether those claims are allowed
|
|
7
|
+
to be returned under a user-defined evidence and tool policy.
|
|
8
|
+
|
|
9
|
+
## Development Setup
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install -e ".[dev,server]"
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Verify Changes
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
python -m pytest -q
|
|
19
|
+
python -m compileall agentclaimguard examples tests
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Contribution Guidelines
|
|
23
|
+
|
|
24
|
+
- Keep v0.1 changes focused on the core runtime, schemas, policies, examples,
|
|
25
|
+
documentation, and tests.
|
|
26
|
+
- Prefer explicit, deterministic policy checks before adding semantic or
|
|
27
|
+
LLM-based verification.
|
|
28
|
+
- Do not add framework adapters, claim extraction, UI, or industry-specific
|
|
29
|
+
policy packs without first discussing the scope.
|
|
30
|
+
- Add tests for behavior changes.
|
|
31
|
+
- Keep public APIs small and easy to explain.
|
|
32
|
+
|
|
33
|
+
## Commit Style
|
|
34
|
+
|
|
35
|
+
Use short conventional-style commit messages when possible:
|
|
36
|
+
|
|
37
|
+
```text
|
|
38
|
+
feat: add policy validator
|
|
39
|
+
fix: handle missing tool result refs
|
|
40
|
+
docs: clarify evidence model
|
|
41
|
+
chore: update CI
|
|
42
|
+
```
|
|
43
|
+
|
|
@@ -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 [yyyy] [name of copyright owner]
|
|
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,8 @@
|
|
|
1
|
+
AgentClaimGuard
|
|
2
|
+
Copyright 2026 Hao Peng (彭浩)
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|