oacs 0.3.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 (135) hide show
  1. oacs-0.3.0a1/.github/workflows/ci.yml +78 -0
  2. oacs-0.3.0a1/.github/workflows/release.yml +98 -0
  3. oacs-0.3.0a1/.gitignore +33 -0
  4. oacs-0.3.0a1/CHANGELOG.md +25 -0
  5. oacs-0.3.0a1/CONTRIBUTING.md +71 -0
  6. oacs-0.3.0a1/LICENSE +171 -0
  7. oacs-0.3.0a1/PKG-INFO +335 -0
  8. oacs-0.3.0a1/README.md +287 -0
  9. oacs-0.3.0a1/docs/API.md +61 -0
  10. oacs-0.3.0a1/docs/ARCHITECTURE.md +48 -0
  11. oacs-0.3.0a1/docs/BENCHMARK.md +99 -0
  12. oacs-0.3.0a1/docs/BUILD.md +65 -0
  13. oacs-0.3.0a1/docs/COMPATIBILITY.md +81 -0
  14. oacs-0.3.0a1/docs/CONTEXT_CAPSULES.md +31 -0
  15. oacs-0.3.0a1/docs/DOGFOOD.md +97 -0
  16. oacs-0.3.0a1/docs/GLOSSARY.md +37 -0
  17. oacs-0.3.0a1/docs/MCP_BINDINGS.md +11 -0
  18. oacs-0.3.0a1/docs/MEMORY_LOOP.md +51 -0
  19. oacs-0.3.0a1/docs/MEMORY_MODEL.md +100 -0
  20. oacs-0.3.0a1/docs/PQ_CRYPTO.md +18 -0
  21. oacs-0.3.0a1/docs/RELEASE.md +141 -0
  22. oacs-0.3.0a1/docs/ROADMAP.md +207 -0
  23. oacs-0.3.0a1/docs/RULES.md +11 -0
  24. oacs-0.3.0a1/docs/SECURITY.md +68 -0
  25. oacs-0.3.0a1/docs/SKILLS.md +23 -0
  26. oacs-0.3.0a1/docs/SPEC.md +117 -0
  27. oacs-0.3.0a1/examples/benchmarks/full_context_gemma_e2b_2026-05-02.md +68 -0
  28. oacs-0.3.0a1/examples/benchmarks/memory_calls_gemma_e2b_2026-05-01.md +121 -0
  29. oacs-0.3.0a1/examples/skills/repo_development_memory/SKILL.md +43 -0
  30. oacs-0.3.0a1/examples/skills/repo_development_memory/scripts/repo_memory.py +335 -0
  31. oacs-0.3.0a1/examples/skills/repo_development_memory/skill.json +36 -0
  32. oacs-0.3.0a1/oacs/__init__.py +3 -0
  33. oacs-0.3.0a1/oacs/api/routes_audit.py +23 -0
  34. oacs-0.3.0a1/oacs/api/routes_benchmark.py +118 -0
  35. oacs-0.3.0a1/oacs/api/routes_context.py +303 -0
  36. oacs-0.3.0a1/oacs/api/routes_memory.py +127 -0
  37. oacs-0.3.0a1/oacs/api/server.py +40 -0
  38. oacs-0.3.0a1/oacs/app.py +89 -0
  39. oacs-0.3.0a1/oacs/audit.py +70 -0
  40. oacs-0.3.0a1/oacs/benchmark/external.py +638 -0
  41. oacs-0.3.0a1/oacs/benchmark/generator.py +96 -0
  42. oacs-0.3.0a1/oacs/benchmark/models.py +22 -0
  43. oacs-0.3.0a1/oacs/benchmark/packs.py +111 -0
  44. oacs-0.3.0a1/oacs/benchmark/reports.py +60 -0
  45. oacs-0.3.0a1/oacs/benchmark/runner.py +284 -0
  46. oacs-0.3.0a1/oacs/benchmark/scorer.py +21 -0
  47. oacs-0.3.0a1/oacs/benchmark/selectors.py +64 -0
  48. oacs-0.3.0a1/oacs/cli/main.py +1038 -0
  49. oacs-0.3.0a1/oacs/context/builder.py +203 -0
  50. oacs-0.3.0a1/oacs/context/capsule.py +96 -0
  51. oacs-0.3.0a1/oacs/context/explainer.py +16 -0
  52. oacs-0.3.0a1/oacs/context/reducer.py +8 -0
  53. oacs-0.3.0a1/oacs/core/config.py +30 -0
  54. oacs-0.3.0a1/oacs/core/errors.py +21 -0
  55. oacs-0.3.0a1/oacs/core/ids.py +7 -0
  56. oacs-0.3.0a1/oacs/core/json.py +19 -0
  57. oacs-0.3.0a1/oacs/core/time.py +7 -0
  58. oacs-0.3.0a1/oacs/crypto/aead.py +18 -0
  59. oacs-0.3.0a1/oacs/crypto/hybrid_pqc.py +65 -0
  60. oacs-0.3.0a1/oacs/crypto/kdf.py +42 -0
  61. oacs-0.3.0a1/oacs/crypto/key_provider.py +39 -0
  62. oacs-0.3.0a1/oacs/crypto/local_passphrase.py +107 -0
  63. oacs-0.3.0a1/oacs/identity/actors.py +45 -0
  64. oacs-0.3.0a1/oacs/identity/capabilities.py +236 -0
  65. oacs-0.3.0a1/oacs/identity/policy.py +98 -0
  66. oacs-0.3.0a1/oacs/llm/lmstudio.py +92 -0
  67. oacs-0.3.0a1/oacs/llm/prompts.py +39 -0
  68. oacs-0.3.0a1/oacs/loop/context_policy.py +70 -0
  69. oacs-0.3.0a1/oacs/loop/engine.py +199 -0
  70. oacs-0.3.0a1/oacs/loop/evaluator.py +7 -0
  71. oacs-0.3.0a1/oacs/loop/evidence_selectors.py +143 -0
  72. oacs-0.3.0a1/oacs/loop/intent.py +8 -0
  73. oacs-0.3.0a1/oacs/loop/memory_calls.py +170 -0
  74. oacs-0.3.0a1/oacs/loop/traces.py +10 -0
  75. oacs-0.3.0a1/oacs/memory/blur.py +7 -0
  76. oacs-0.3.0a1/oacs/memory/distill.py +6 -0
  77. oacs-0.3.0a1/oacs/memory/lifecycle.py +16 -0
  78. oacs-0.3.0a1/oacs/memory/models.py +59 -0
  79. oacs-0.3.0a1/oacs/memory/retrieval.py +165 -0
  80. oacs-0.3.0a1/oacs/memory/search.py +13 -0
  81. oacs-0.3.0a1/oacs/memory/service.py +220 -0
  82. oacs-0.3.0a1/oacs/memory/sharpen.py +7 -0
  83. oacs-0.3.0a1/oacs/rules/builtin.py +56 -0
  84. oacs-0.3.0a1/oacs/rules/engine.py +57 -0
  85. oacs-0.3.0a1/oacs/rules/models.py +39 -0
  86. oacs-0.3.0a1/oacs/skills/models.py +25 -0
  87. oacs-0.3.0a1/oacs/skills/registry.py +86 -0
  88. oacs-0.3.0a1/oacs/skills/runner.py +53 -0
  89. oacs-0.3.0a1/oacs/storage/backend.py +31 -0
  90. oacs-0.3.0a1/oacs/storage/migrations.py +12 -0
  91. oacs-0.3.0a1/oacs/storage/repositories.py +33 -0
  92. oacs-0.3.0a1/oacs/storage/sqlite.py +236 -0
  93. oacs-0.3.0a1/oacs/tools/local.py +7 -0
  94. oacs-0.3.0a1/oacs/tools/mcp.py +82 -0
  95. oacs-0.3.0a1/oacs/tools/mcp_client.py +56 -0
  96. oacs-0.3.0a1/oacs/tools/models.py +40 -0
  97. oacs-0.3.0a1/oacs/tools/registry.py +62 -0
  98. oacs-0.3.0a1/pyproject.toml +89 -0
  99. oacs-0.3.0a1/schemas/actor.schema.json +1 -0
  100. oacs-0.3.0a1/schemas/audit_event.schema.json +1 -0
  101. oacs-0.3.0a1/schemas/benchmark_task.schema.json +1 -0
  102. oacs-0.3.0a1/schemas/benchmark_task_pack.schema.json +1 -0
  103. oacs-0.3.0a1/schemas/capability_grant.schema.json +25 -0
  104. oacs-0.3.0a1/schemas/context_capsule.schema.json +1 -0
  105. oacs-0.3.0a1/schemas/context_capsule_export.schema.json +42 -0
  106. oacs-0.3.0a1/schemas/context_operation.schema.json +32 -0
  107. oacs-0.3.0a1/schemas/evidence_ref.schema.json +1 -0
  108. oacs-0.3.0a1/schemas/mcp_binding.schema.json +1 -0
  109. oacs-0.3.0a1/schemas/memory_call.schema.json +22 -0
  110. oacs-0.3.0a1/schemas/memory_loop_run.schema.json +33 -0
  111. oacs-0.3.0a1/schemas/memory_operation.schema.json +39 -0
  112. oacs-0.3.0a1/schemas/memory_record.schema.json +1 -0
  113. oacs-0.3.0a1/schemas/rule_manifest.schema.json +1 -0
  114. oacs-0.3.0a1/schemas/skill_manifest.schema.json +1 -0
  115. oacs-0.3.0a1/schemas/tool_binding.schema.json +1 -0
  116. oacs-0.3.0a1/tests/conftest.py +20 -0
  117. oacs-0.3.0a1/tests/integration_test_lmstudio.py +14 -0
  118. oacs-0.3.0a1/tests/test_api.py +110 -0
  119. oacs-0.3.0a1/tests/test_benchmark_generator.py +57 -0
  120. oacs-0.3.0a1/tests/test_benchmark_packs.py +173 -0
  121. oacs-0.3.0a1/tests/test_capabilities.py +73 -0
  122. oacs-0.3.0a1/tests/test_cli.py +237 -0
  123. oacs-0.3.0a1/tests/test_context_capsule.py +78 -0
  124. oacs-0.3.0a1/tests/test_docs_publication.py +58 -0
  125. oacs-0.3.0a1/tests/test_encryption.py +32 -0
  126. oacs-0.3.0a1/tests/test_external_benchmark.py +339 -0
  127. oacs-0.3.0a1/tests/test_memory_lifecycle.py +22 -0
  128. oacs-0.3.0a1/tests/test_memory_loop.py +119 -0
  129. oacs-0.3.0a1/tests/test_packaging.py +38 -0
  130. oacs-0.3.0a1/tests/test_retrieval_contract.py +139 -0
  131. oacs-0.3.0a1/tests/test_rules.py +8 -0
  132. oacs-0.3.0a1/tests/test_skills.py +152 -0
  133. oacs-0.3.0a1/tests/test_storage_backend.py +92 -0
  134. oacs-0.3.0a1/tests/test_v026_conformance.py +204 -0
  135. oacs-0.3.0a1/tests/test_v03_adapters.py +194 -0
@@ -0,0 +1,78 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: ["main"]
6
+ pull_request:
7
+ branches: ["main"]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ quality:
14
+ name: Quality / Python ${{ matrix.python-version }}
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ python-version: ["3.11", "3.12"]
20
+
21
+ steps:
22
+ - name: Checkout
23
+ uses: actions/checkout@v4
24
+
25
+ - name: Set up Python
26
+ uses: actions/setup-python@v5
27
+ with:
28
+ python-version: ${{ matrix.python-version }}
29
+ cache: pip
30
+
31
+ - name: Install package with dev extras
32
+ run: python -m pip install -e ".[dev,crypto]"
33
+
34
+ - name: Ruff
35
+ run: ruff check .
36
+
37
+ - name: Mypy
38
+ run: mypy oacs
39
+
40
+ - name: Pytest
41
+ run: pytest -q
42
+
43
+ package:
44
+ name: Package build and smoke
45
+ runs-on: ubuntu-latest
46
+ needs: quality
47
+
48
+ steps:
49
+ - name: Checkout
50
+ uses: actions/checkout@v4
51
+
52
+ - name: Set up Python
53
+ uses: actions/setup-python@v5
54
+ with:
55
+ python-version: "3.11"
56
+ cache: pip
57
+
58
+ - name: Build sdist and wheel
59
+ run: |
60
+ python -m pip install build
61
+ python -m build
62
+
63
+ - name: Upload package artifacts
64
+ uses: actions/upload-artifact@v4
65
+ with:
66
+ name: oacs-dist
67
+ path: dist/*
68
+
69
+ - name: Install wheel and smoke test CLI
70
+ run: |
71
+ SMOKE_DIR="$RUNNER_TEMP/oacs-wheel-smoke"
72
+ python -m venv "$SMOKE_DIR"
73
+ "$SMOKE_DIR/bin/python" -m pip install dist/*.whl
74
+ "$SMOKE_DIR/bin/acs" --help
75
+ export OACS_DB="$SMOKE_DIR/oacs.db"
76
+ export OACS_PASSPHRASE="ci-smoke-passphrase"
77
+ "$SMOKE_DIR/bin/acs" init --json
78
+ "$SMOKE_DIR/bin/acs" key init --passphrase "$OACS_PASSPHRASE" --json
@@ -0,0 +1,98 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+ inputs:
9
+ target:
10
+ description: "Package index"
11
+ required: true
12
+ default: "testpypi"
13
+ type: choice
14
+ options:
15
+ - testpypi
16
+ - pypi
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ build:
23
+ name: Build package
24
+ runs-on: ubuntu-latest
25
+ steps:
26
+ - name: Check out repository
27
+ uses: actions/checkout@v4
28
+
29
+ - name: Set up Python
30
+ uses: actions/setup-python@v5
31
+ with:
32
+ python-version: "3.11"
33
+
34
+ - name: Install build tools
35
+ run: python -m pip install --upgrade pip build twine
36
+
37
+ - name: Build distributions
38
+ run: python -m build
39
+
40
+ - name: Check distributions
41
+ run: python -m twine check dist/*
42
+
43
+ - name: Upload distributions
44
+ uses: actions/upload-artifact@v4
45
+ with:
46
+ name: oacs-dist
47
+ path: dist/*
48
+ if-no-files-found: error
49
+
50
+ publish-testpypi:
51
+ name: Publish to TestPyPI
52
+ needs: build
53
+ runs-on: ubuntu-latest
54
+ if: >-
55
+ github.event_name == 'workflow_dispatch' && inputs.target == 'testpypi'
56
+ || github.event_name == 'push' && (
57
+ contains(github.ref_name, 'a') ||
58
+ contains(github.ref_name, 'b') ||
59
+ contains(github.ref_name, 'rc')
60
+ )
61
+ environment:
62
+ name: testpypi
63
+ url: https://test.pypi.org/project/oacs/
64
+ permissions:
65
+ contents: read
66
+ id-token: write
67
+ steps:
68
+ - name: Download distributions
69
+ uses: actions/download-artifact@v4
70
+ with:
71
+ name: oacs-dist
72
+ path: dist
73
+
74
+ - name: Publish package
75
+ uses: pypa/gh-action-pypi-publish@release/v1
76
+ with:
77
+ repository-url: https://test.pypi.org/legacy/
78
+
79
+ publish-pypi:
80
+ name: Publish to PyPI
81
+ needs: build
82
+ runs-on: ubuntu-latest
83
+ if: github.event_name == 'workflow_dispatch' && inputs.target == 'pypi'
84
+ environment:
85
+ name: pypi
86
+ url: https://pypi.org/project/oacs/
87
+ permissions:
88
+ contents: read
89
+ id-token: write
90
+ steps:
91
+ - name: Download distributions
92
+ uses: actions/download-artifact@v4
93
+ with:
94
+ name: oacs-dist
95
+ path: dist
96
+
97
+ - name: Publish package
98
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,33 @@
1
+ .venv/
2
+ __pycache__/
3
+ .agent/
4
+ .codex/
5
+ .claude/
6
+ AGENTS.md
7
+ CLAUDE.md
8
+ .pytest_cache/
9
+ .ruff_cache/
10
+ .mypy_cache/
11
+ .coverage
12
+ htmlcov/
13
+ *.pyc
14
+ *.db
15
+ *.db-shm
16
+ *.db-wal
17
+ *.sqlite
18
+ *.sqlite3
19
+ .oacs/
20
+ .oacs*/
21
+ .env
22
+ .env.*
23
+ *.key
24
+ *.pem
25
+ *.crt
26
+ *.p12
27
+ *.log
28
+ key.json
29
+ unlocked.key
30
+ dist/
31
+ build/
32
+ *.egg-info/
33
+ examples/**/generated/
@@ -0,0 +1,25 @@
1
+ # Changelog
2
+
3
+ ## 0.3.0a1 - Unreleased
4
+
5
+ Initial public prerelease candidate for the OACS v0.1 draft reference
6
+ implementation.
7
+
8
+ ### Added
9
+
10
+ - OACS v0.1 draft documentation and JSON schemas.
11
+ - Python reference implementation with `acs` CLI and FastAPI API.
12
+ - Encrypted SQLite memory storage with local passphrase key provider.
13
+ - Context Capsule build/export/import/validation.
14
+ - Capability-scoped memory, context, tool, skill, and MCP adapter operations.
15
+ - Deterministic `memory_calls` and memory-loop execution.
16
+ - Script-backed skill execution through `acs skill scan` / `acs skill run`.
17
+ - Benchmark validation adapters and LM Studio-compatible benchmark execution.
18
+ - CI build, package build, wheel smoke tests, and release workflow.
19
+
20
+ ### Notes
21
+
22
+ - This is an alpha prerelease of a draft standard reference implementation.
23
+ - Public benchmark adapters are validation artifacts, not OACS conformance.
24
+ - Repo dogfood lives in `examples/skills/repo_development_memory` and is not
25
+ part of the installed core package surface.
@@ -0,0 +1,71 @@
1
+ # Contributing / Участие
2
+
3
+ ## EN
4
+ OACS is an **OACS v0.1 draft** memory/context standard with a Python reference
5
+ implementation. Contributions should keep the standard small: memory records,
6
+ context capsules, capabilities, rules, skills/tools metadata, audit, and
7
+ deterministic operation traces.
8
+
9
+ Please do not turn the core into an agent framework, vector database, benchmark
10
+ harness, MCP replacement, or repository workflow system. Integration and
11
+ benchmark code belongs in adapters and examples.
12
+
13
+ Before opening a PR:
14
+
15
+ ```bash
16
+ ruff check .
17
+ mypy oacs
18
+ pytest -q
19
+ python3 -m pip wheel --no-deps . -w /tmp/oacs-wheel-check
20
+ ```
21
+
22
+ Publication hygiene:
23
+
24
+ - Do not commit `.env*`, local databases, SQLite WAL files, keys, certs, logs,
25
+ caches, or generated build artifacts.
26
+ - Use placeholders in docs and examples.
27
+ - Keep docs bilingual EN/RU when they describe user-facing standard behavior.
28
+ - Update `docs/ROADMAP.md` only when the standard scope or implementation stage
29
+ changes.
30
+
31
+ Compatibility:
32
+
33
+ - Before v1.0, schema and CLI/API breaking changes are allowed when they make
34
+ the draft cleaner.
35
+ - Breaking changes must be named in docs and tests.
36
+ - Avoid compatibility shims unless there is an explicit migration requirement.
37
+
38
+ ## RU
39
+ OACS - это **OACS v0.1 draft** стандарта memory/context с Python reference
40
+ implementation. Вклад должен сохранять стандарт небольшим: memory records,
41
+ context capsules, capabilities, rules, metadata для skills/tools, audit и
42
+ deterministic operation traces.
43
+
44
+ Не превращайте core в agent framework, vector database, benchmark harness,
45
+ замену MCP или систему workflow для репозитория. Integration и benchmark code
46
+ должны жить в adapters и examples.
47
+
48
+ Перед PR:
49
+
50
+ ```bash
51
+ ruff check .
52
+ mypy oacs
53
+ pytest -q
54
+ python3 -m pip wheel --no-deps . -w /tmp/oacs-wheel-check
55
+ ```
56
+
57
+ Publication hygiene:
58
+
59
+ - Не коммитьте `.env*`, локальные базы, SQLite WAL файлы, keys, certificates,
60
+ logs, caches или generated build artifacts.
61
+ - Используйте placeholders в docs и examples.
62
+ - Для user-facing поведения стандарта держите документацию bilingual EN/RU.
63
+ - Обновляйте `docs/ROADMAP.md` только когда меняется scope стандарта или стадия
64
+ implementation.
65
+
66
+ Compatibility:
67
+
68
+ - До v1.0 breaking changes в schemas и CLI/API допустимы, если они делают draft
69
+ чище.
70
+ - Breaking changes должны быть явно названы в docs и tests.
71
+ - Не добавляйте compatibility shims без явного migration requirement.
oacs-0.3.0a1/LICENSE ADDED
@@ -0,0 +1,171 @@
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, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
13
+ owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other entities
16
+ that control, are controlled by, or are under common control with that entity.
17
+ For the purposes of this definition, "control" means (i) the power, direct or
18
+ indirect, to cause the direction or management of such entity, whether by
19
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
20
+ outstanding shares, or (iii) beneficial ownership of such entity.
21
+
22
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
23
+ permissions granted by this License.
24
+
25
+ "Source" form shall mean the preferred form for making modifications, including
26
+ but not limited to software source code, documentation source, and configuration
27
+ files.
28
+
29
+ "Object" form shall mean any form resulting from mechanical transformation or
30
+ translation of a Source form, including but not limited to compiled object code,
31
+ generated documentation, and conversions to other media types.
32
+
33
+ "Work" shall mean the work of authorship, whether in Source or Object form,
34
+ made available under the License, as indicated by a copyright notice that is
35
+ included in or attached to the work.
36
+
37
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
38
+ is based on (or derived from) the Work and for which the editorial revisions,
39
+ annotations, elaborations, or other modifications represent, as a whole, an
40
+ original work of authorship. For the purposes of this License, Derivative Works
41
+ shall not include works that remain separable from, or merely link (or bind by
42
+ name) to the interfaces of, the Work and Derivative Works thereof.
43
+
44
+ "Contribution" shall mean any work of authorship, including the original
45
+ version of the Work and any modifications or additions to that Work or
46
+ Derivative Works thereof, that is intentionally submitted to Licensor for
47
+ inclusion in the Work by the copyright owner or by an individual or Legal Entity
48
+ authorized to submit on behalf of the copyright owner. For the purposes of this
49
+ definition, "submitted" means any form of electronic, verbal, or written
50
+ communication sent to the Licensor or its representatives, including but not
51
+ limited to communication on electronic mailing lists, source code control
52
+ systems, and issue tracking systems that are managed by, or on behalf of, the
53
+ Licensor for the purpose of discussing and improving the Work, but excluding
54
+ communication that is conspicuously marked or otherwise designated in writing by
55
+ the copyright owner as "Not a Contribution."
56
+
57
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
58
+ of whom a Contribution has been received by Licensor and subsequently
59
+ incorporated within the Work.
60
+
61
+ 2. Grant of Copyright License.
62
+
63
+ Subject to the terms and conditions of this License, each Contributor hereby
64
+ grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
65
+ irrevocable copyright license to reproduce, prepare Derivative Works of,
66
+ publicly display, publicly perform, sublicense, and distribute the Work and such
67
+ Derivative Works in Source or Object form.
68
+
69
+ 3. Grant of Patent License.
70
+
71
+ Subject to the terms and conditions of this License, each Contributor hereby
72
+ grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
73
+ irrevocable (except as stated in this section) patent license to make, have
74
+ made, use, offer to sell, sell, import, and otherwise transfer the Work, where
75
+ such license applies only to those patent claims licensable by such Contributor
76
+ that are necessarily infringed by their Contribution(s) alone or by combination
77
+ of their Contribution(s) with the Work to which such Contribution(s) was
78
+ submitted. If You institute patent litigation against any entity (including a
79
+ cross-claim or counterclaim in a lawsuit) alleging that the Work or a
80
+ Contribution incorporated within the Work constitutes direct or contributory
81
+ patent infringement, then any patent licenses granted to You under this License
82
+ for that Work shall terminate as of the date such litigation is filed.
83
+
84
+ 4. Redistribution.
85
+
86
+ You may reproduce and distribute copies of the Work or Derivative Works thereof
87
+ in any medium, with or without modifications, and in Source or Object form,
88
+ provided that You meet the following conditions:
89
+
90
+ (a) You must give any other recipients of the Work or Derivative Works a copy
91
+ of this License; and
92
+
93
+ (b) You must cause any modified files to carry prominent notices stating that
94
+ You changed the files; and
95
+
96
+ (c) You must retain, in the Source form of any Derivative Works that You
97
+ distribute, all copyright, patent, trademark, and attribution notices from the
98
+ Source form of the Work, excluding those notices that do not pertain to any part
99
+ of the Derivative Works; and
100
+
101
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then
102
+ any Derivative Works that You distribute must include a readable copy of the
103
+ attribution notices contained within such NOTICE file, excluding those notices
104
+ that do not pertain to any part of the Derivative Works, in at least one of the
105
+ following places: within a NOTICE text file distributed as part of the
106
+ Derivative Works; within the Source form or documentation, if provided along
107
+ with the Derivative Works; or within a display generated by the Derivative
108
+ Works, if and wherever such third-party notices normally appear. The contents of
109
+ the NOTICE file are for informational purposes only and do not modify the
110
+ License. You may add Your own attribution notices within Derivative Works that
111
+ You distribute, alongside or as an addendum to the NOTICE text from the Work,
112
+ provided that such additional attribution notices cannot be construed as
113
+ modifying the License.
114
+
115
+ You may add Your own copyright statement to Your modifications and may provide
116
+ additional or different license terms and conditions for use, reproduction, or
117
+ distribution of Your modifications, or for any such Derivative Works as a
118
+ whole, provided Your use, reproduction, and distribution of the Work otherwise
119
+ complies with the conditions stated in this License.
120
+
121
+ 5. Submission of Contributions.
122
+
123
+ Unless You explicitly state otherwise, any Contribution intentionally submitted
124
+ for inclusion in the Work by You to the Licensor shall be under the terms and
125
+ conditions of this License, without any additional terms or conditions.
126
+ Notwithstanding the above, nothing herein shall supersede or modify the terms of
127
+ any separate license agreement you may have executed with Licensor regarding
128
+ such Contributions.
129
+
130
+ 6. Trademarks.
131
+
132
+ This License does not grant permission to use the trade names, trademarks,
133
+ service marks, or product names of the Licensor, except as required for
134
+ reasonable and customary use in describing the origin of the Work and
135
+ reproducing the content of the NOTICE file.
136
+
137
+ 7. Disclaimer of Warranty.
138
+
139
+ Unless required by applicable law or agreed to in writing, Licensor provides the
140
+ Work (and each Contributor provides its Contributions) on an "AS IS" BASIS,
141
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
142
+ including, without limitation, any warranties or conditions of TITLE,
143
+ NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
144
+ solely responsible for determining the appropriateness of using or
145
+ redistributing the Work and assume any risks associated with Your exercise of
146
+ permissions under this License.
147
+
148
+ 8. Limitation of Liability.
149
+
150
+ In no event and under no legal theory, whether in tort (including negligence),
151
+ contract, or otherwise, unless required by applicable law (such as deliberate
152
+ and grossly negligent acts) or agreed to in writing, shall any Contributor be
153
+ liable to You for damages, including any direct, indirect, special, incidental,
154
+ or consequential damages of any character arising as a result of this License or
155
+ out of the use or inability to use the Work (including but not limited to
156
+ damages for loss of goodwill, work stoppage, computer failure or malfunction,
157
+ or any and all other commercial damages or losses), even if such Contributor has
158
+ been advised of the possibility of such damages.
159
+
160
+ 9. Accepting Warranty or Additional Liability.
161
+
162
+ While redistributing the Work or Derivative Works thereof, You may choose to
163
+ offer, and charge a fee for, acceptance of support, warranty, indemnity, or
164
+ other liability obligations and/or rights consistent with this License.
165
+ However, in accepting such obligations, You may act only on Your own behalf and
166
+ on Your sole responsibility, not on behalf of any other Contributor, and only if
167
+ You agree to indemnify, defend, and hold each Contributor harmless for any
168
+ liability incurred by, or claims asserted against, such Contributor by reason of
169
+ your accepting any such warranty or additional liability.
170
+
171
+ END OF TERMS AND CONDITIONS