touchstone-agent 0.1.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.
- touchstone_agent-0.1.0/.github/ISSUE_TEMPLATE/bug.yml +40 -0
- touchstone_agent-0.1.0/.github/ISSUE_TEMPLATE/feature.yml +30 -0
- touchstone_agent-0.1.0/.github/dependabot.yml +16 -0
- touchstone_agent-0.1.0/.github/pull_request_template.md +24 -0
- touchstone_agent-0.1.0/.github/workflows/ci.yml +60 -0
- touchstone_agent-0.1.0/.github/workflows/release.yml +59 -0
- touchstone_agent-0.1.0/.gitignore +17 -0
- touchstone_agent-0.1.0/CHANGELOG.md +29 -0
- touchstone_agent-0.1.0/CONTRIBUTING.md +48 -0
- touchstone_agent-0.1.0/LICENSE +201 -0
- touchstone_agent-0.1.0/PKG-INFO +289 -0
- touchstone_agent-0.1.0/README.md +257 -0
- touchstone_agent-0.1.0/SECURITY.md +23 -0
- touchstone_agent-0.1.0/assets/brand/README.md +23 -0
- touchstone_agent-0.1.0/assets/brand/touchstone-readme-hero-dark.png +0 -0
- touchstone_agent-0.1.0/assets/brand/touchstone-readme-hero.png +0 -0
- touchstone_agent-0.1.0/docs/graph.md +42 -0
- touchstone_agent-0.1.0/docs/research/2026-08-24-langchain-deep-agents.md +85 -0
- touchstone_agent-0.1.0/docs/superpowers/plans/2026-08-24-distribution.md +326 -0
- touchstone_agent-0.1.0/docs/superpowers/plans/2026-08-24-foundation.md +313 -0
- touchstone_agent-0.1.0/docs/superpowers/plans/2026-08-24-lifecycle.md +417 -0
- touchstone_agent-0.1.0/docs/superpowers/specs/2026-08-24-ready-to-use-design.md +435 -0
- touchstone_agent-0.1.0/langgraph.json +7 -0
- touchstone_agent-0.1.0/pyproject.toml +66 -0
- touchstone_agent-0.1.0/src/touchstone/__init__.py +3 -0
- touchstone_agent-0.1.0/src/touchstone/cli.py +327 -0
- touchstone_agent-0.1.0/src/touchstone/config.py +505 -0
- touchstone_agent-0.1.0/src/touchstone/discovery.py +89 -0
- touchstone_agent-0.1.0/src/touchstone/doctor.py +410 -0
- touchstone_agent-0.1.0/src/touchstone/engines/__init__.py +3 -0
- touchstone_agent-0.1.0/src/touchstone/engines/base.py +75 -0
- touchstone_agent-0.1.0/src/touchstone/engines/claude.py +130 -0
- touchstone_agent-0.1.0/src/touchstone/engines/codex.py +84 -0
- touchstone_agent-0.1.0/src/touchstone/events.py +122 -0
- touchstone_agent-0.1.0/src/touchstone/execution/__init__.py +26 -0
- touchstone_agent-0.1.0/src/touchstone/execution/base.py +73 -0
- touchstone_agent-0.1.0/src/touchstone/execution/local.py +61 -0
- touchstone_agent-0.1.0/src/touchstone/execution/ssh.py +89 -0
- touchstone_agent-0.1.0/src/touchstone/forge.py +328 -0
- touchstone_agent-0.1.0/src/touchstone/graph.py +167 -0
- touchstone_agent-0.1.0/src/touchstone/initialize.py +90 -0
- touchstone_agent-0.1.0/src/touchstone/ledger.py +164 -0
- touchstone_agent-0.1.0/src/touchstone/lifecycle.py +394 -0
- touchstone_agent-0.1.0/src/touchstone/migrate.py +98 -0
- touchstone_agent-0.1.0/src/touchstone/nodes/__init__.py +5 -0
- touchstone_agent-0.1.0/src/touchstone/nodes/audit.py +149 -0
- touchstone_agent-0.1.0/src/touchstone/nodes/classify.py +155 -0
- touchstone_agent-0.1.0/src/touchstone/nodes/context.py +75 -0
- touchstone_agent-0.1.0/src/touchstone/nodes/publish.py +154 -0
- touchstone_agent-0.1.0/src/touchstone/nodes/review.py +103 -0
- touchstone_agent-0.1.0/src/touchstone/resources/__init__.py +1 -0
- touchstone_agent-0.1.0/src/touchstone/resources/briefs/code-audit.md +133 -0
- touchstone_agent-0.1.0/src/touchstone/resources/briefs/harness-review.md +104 -0
- touchstone_agent-0.1.0/src/touchstone/resources/briefs/review.md +44 -0
- touchstone_agent-0.1.0/src/touchstone/runner.py +336 -0
- touchstone_agent-0.1.0/src/touchstone/scheduling/__init__.py +37 -0
- touchstone_agent-0.1.0/src/touchstone/scheduling/base.py +84 -0
- touchstone_agent-0.1.0/src/touchstone/scheduling/launchd.py +138 -0
- touchstone_agent-0.1.0/src/touchstone/scheduling/model.py +84 -0
- touchstone_agent-0.1.0/src/touchstone/scheduling/systemd.py +126 -0
- touchstone_agent-0.1.0/src/touchstone/setup.py +46 -0
- touchstone_agent-0.1.0/src/touchstone/status.py +76 -0
- touchstone_agent-0.1.0/src/touchstone/visualise.py +72 -0
- touchstone_agent-0.1.0/tests/__init__.py +1 -0
- touchstone_agent-0.1.0/tests/support/fake_gh.py +79 -0
- touchstone_agent-0.1.0/tests/test_acceptance.py +539 -0
- touchstone_agent-0.1.0/tests/test_agent_contracts.py +59 -0
- touchstone_agent-0.1.0/tests/test_config.py +193 -0
- touchstone_agent-0.1.0/tests/test_context.py +18 -0
- touchstone_agent-0.1.0/tests/test_discovery.py +51 -0
- touchstone_agent-0.1.0/tests/test_distribution.py +83 -0
- touchstone_agent-0.1.0/tests/test_doctor.py +282 -0
- touchstone_agent-0.1.0/tests/test_events.py +85 -0
- touchstone_agent-0.1.0/tests/test_forge.py +98 -0
- touchstone_agent-0.1.0/tests/test_initialize.py +126 -0
- touchstone_agent-0.1.0/tests/test_ledger.py +62 -0
- touchstone_agent-0.1.0/tests/test_lifecycle.py +120 -0
- touchstone_agent-0.1.0/tests/test_migrate.py +56 -0
- touchstone_agent-0.1.0/tests/test_package.py +25 -0
- touchstone_agent-0.1.0/tests/test_policy.py +21 -0
- touchstone_agent-0.1.0/tests/test_publication.py +192 -0
- touchstone_agent-0.1.0/tests/test_readme_commands.py +44 -0
- touchstone_agent-0.1.0/tests/test_resume.py +172 -0
- touchstone_agent-0.1.0/tests/test_runner_safety.py +67 -0
- touchstone_agent-0.1.0/tests/test_schedule.py +40 -0
- touchstone_agent-0.1.0/tests/test_scheduling.py +139 -0
- touchstone_agent-0.1.0/tests/test_setup.py +62 -0
- touchstone_agent-0.1.0/tests/test_status.py +91 -0
- touchstone_agent-0.1.0/touchstone.example.toml +57 -0
- touchstone_agent-0.1.0/uv.lock +2246 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report reproducible incorrect behavior
|
|
3
|
+
title: "bug: "
|
|
4
|
+
labels: [bug]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: Remove credentials, private repository content, and model transcripts.
|
|
9
|
+
- type: input
|
|
10
|
+
id: version
|
|
11
|
+
attributes:
|
|
12
|
+
label: Touchstone version
|
|
13
|
+
placeholder: "0.1.0"
|
|
14
|
+
validations:
|
|
15
|
+
required: true
|
|
16
|
+
- type: dropdown
|
|
17
|
+
id: platform
|
|
18
|
+
attributes:
|
|
19
|
+
label: Platform
|
|
20
|
+
options: [macOS, Linux]
|
|
21
|
+
validations:
|
|
22
|
+
required: true
|
|
23
|
+
- type: textarea
|
|
24
|
+
id: reproduction
|
|
25
|
+
attributes:
|
|
26
|
+
label: Minimal reproduction
|
|
27
|
+
description: Include commands, expected behavior, and actual behavior.
|
|
28
|
+
validations:
|
|
29
|
+
required: true
|
|
30
|
+
- type: textarea
|
|
31
|
+
id: doctor
|
|
32
|
+
attributes:
|
|
33
|
+
label: Redacted doctor output
|
|
34
|
+
description: Run `touchstone doctor --json` and remove sensitive values.
|
|
35
|
+
render: json
|
|
36
|
+
- type: textarea
|
|
37
|
+
id: verification
|
|
38
|
+
attributes:
|
|
39
|
+
label: Verification evidence
|
|
40
|
+
description: Tests, logs, or lifecycle state that demonstrate the problem.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Propose a bounded change to Touchstone's public contract
|
|
3
|
+
title: "feat: "
|
|
4
|
+
labels: [enhancement]
|
|
5
|
+
body:
|
|
6
|
+
- type: textarea
|
|
7
|
+
id: problem
|
|
8
|
+
attributes:
|
|
9
|
+
label: Problem
|
|
10
|
+
description: What operator workflow or safety invariant is missing?
|
|
11
|
+
validations:
|
|
12
|
+
required: true
|
|
13
|
+
- type: textarea
|
|
14
|
+
id: proposal
|
|
15
|
+
attributes:
|
|
16
|
+
label: Proposed behavior
|
|
17
|
+
description: Describe the CLI or configuration contract, not an implementation only.
|
|
18
|
+
validations:
|
|
19
|
+
required: true
|
|
20
|
+
- type: textarea
|
|
21
|
+
id: alternatives
|
|
22
|
+
attributes:
|
|
23
|
+
label: Alternatives considered
|
|
24
|
+
- type: textarea
|
|
25
|
+
id: safety
|
|
26
|
+
attributes:
|
|
27
|
+
label: Safety and compatibility
|
|
28
|
+
description: Explain effects on credentials, GitHub mutations, resume, and existing configs.
|
|
29
|
+
validations:
|
|
30
|
+
required: true
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: pip
|
|
4
|
+
directory: /
|
|
5
|
+
schedule:
|
|
6
|
+
interval: weekly
|
|
7
|
+
groups:
|
|
8
|
+
python-non-major:
|
|
9
|
+
update-types: [minor, patch]
|
|
10
|
+
- package-ecosystem: github-actions
|
|
11
|
+
directory: /
|
|
12
|
+
schedule:
|
|
13
|
+
interval: weekly
|
|
14
|
+
groups:
|
|
15
|
+
actions-non-major:
|
|
16
|
+
update-types: [minor, patch]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
## Change
|
|
2
|
+
|
|
3
|
+
Describe the user-visible behavior or invariant changed.
|
|
4
|
+
|
|
5
|
+
## Test first
|
|
6
|
+
|
|
7
|
+
Name the failing test added before the implementation and what it proves.
|
|
8
|
+
|
|
9
|
+
## Safety and compatibility
|
|
10
|
+
|
|
11
|
+
Describe effects on configuration, credentials, Git/GitHub mutations, lifecycle state, and migration.
|
|
12
|
+
|
|
13
|
+
## Verification
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
uv run pytest
|
|
17
|
+
uv run ruff check .
|
|
18
|
+
uv run touchstone graph --check
|
|
19
|
+
uv build
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
- [ ] No secrets, personal paths, or project-specific operational defaults were added.
|
|
23
|
+
- [ ] Documentation and changelog match the implemented command surface.
|
|
24
|
+
- [ ] The graph diagram is current when graph edges changed.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ci-${{ github.workflow }}-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
test:
|
|
17
|
+
name: Python ${{ matrix.python-version }}
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
strategy:
|
|
20
|
+
fail-fast: false
|
|
21
|
+
matrix:
|
|
22
|
+
python-version: ["3.12", "3.13"]
|
|
23
|
+
steps:
|
|
24
|
+
- name: Check out source
|
|
25
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
26
|
+
- name: Set up Python
|
|
27
|
+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
28
|
+
with:
|
|
29
|
+
python-version: ${{ matrix.python-version }}
|
|
30
|
+
cache: pip
|
|
31
|
+
- name: Install project
|
|
32
|
+
run: python -m pip install --disable-pip-version-check -e ".[dev]"
|
|
33
|
+
- name: Test
|
|
34
|
+
run: python -m pytest -q
|
|
35
|
+
- name: Lint
|
|
36
|
+
run: python -m ruff check .
|
|
37
|
+
- name: Check formatting
|
|
38
|
+
run: python -m ruff format --check src tests
|
|
39
|
+
- name: Check graph documentation
|
|
40
|
+
run: touchstone graph --check
|
|
41
|
+
|
|
42
|
+
package:
|
|
43
|
+
name: Distribution
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
steps:
|
|
46
|
+
- name: Check out source
|
|
47
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
48
|
+
- name: Set up Python
|
|
49
|
+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
50
|
+
with:
|
|
51
|
+
python-version: "3.12"
|
|
52
|
+
cache: pip
|
|
53
|
+
- name: Install build tools
|
|
54
|
+
run: python -m pip install --disable-pip-version-check -e ".[dev]"
|
|
55
|
+
- name: Build distributions
|
|
56
|
+
run: python -m build
|
|
57
|
+
- name: Check metadata
|
|
58
|
+
run: python -m twine check dist/*
|
|
59
|
+
- name: Smoke-test wheel
|
|
60
|
+
run: python -m pytest tests/test_distribution.py -q
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
name: Build release distributions
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- name: Check out released tag
|
|
16
|
+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
17
|
+
with:
|
|
18
|
+
ref: ${{ github.event.release.tag_name }}
|
|
19
|
+
- name: Set up Python
|
|
20
|
+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
21
|
+
with:
|
|
22
|
+
python-version: "3.12"
|
|
23
|
+
cache: pip
|
|
24
|
+
- name: Install release tools
|
|
25
|
+
run: python -m pip install --disable-pip-version-check ".[dev]"
|
|
26
|
+
- name: Verify source
|
|
27
|
+
run: |
|
|
28
|
+
python -m pytest -q
|
|
29
|
+
python -m ruff check .
|
|
30
|
+
python -m ruff format --check src tests
|
|
31
|
+
touchstone graph --check
|
|
32
|
+
- name: Build distributions from the tag
|
|
33
|
+
run: python -m build
|
|
34
|
+
- name: Check distribution metadata
|
|
35
|
+
run: python -m twine check dist/*
|
|
36
|
+
- name: Upload verified distributions
|
|
37
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
38
|
+
with:
|
|
39
|
+
name: python-distributions
|
|
40
|
+
path: dist/
|
|
41
|
+
if-no-files-found: error
|
|
42
|
+
|
|
43
|
+
publish:
|
|
44
|
+
name: Publish to PyPI
|
|
45
|
+
needs: build
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
environment:
|
|
48
|
+
name: pypi
|
|
49
|
+
url: https://pypi.org/p/touchstone-agent
|
|
50
|
+
permissions:
|
|
51
|
+
id-token: write
|
|
52
|
+
steps:
|
|
53
|
+
- name: Download verified distributions
|
|
54
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
55
|
+
with:
|
|
56
|
+
name: python-distributions
|
|
57
|
+
path: dist/
|
|
58
|
+
- name: Publish with trusted identity
|
|
59
|
+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.pyc
|
|
3
|
+
.venv/
|
|
4
|
+
# Local sibling checkouts must never be committed as gitlinks.
|
|
5
|
+
.worktrees/
|
|
6
|
+
.langgraph_api/
|
|
7
|
+
.env
|
|
8
|
+
.env.*
|
|
9
|
+
!.env.example
|
|
10
|
+
touchstone.toml
|
|
11
|
+
*.sqlite
|
|
12
|
+
*.sqlite-shm
|
|
13
|
+
*.sqlite-wal
|
|
14
|
+
dry-run.diff
|
|
15
|
+
dist/
|
|
16
|
+
build/
|
|
17
|
+
*.egg-info/
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable user-facing changes are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and releases use [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
4
|
+
|
|
5
|
+
## [0.1.0] - 2026-08-24
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Installable `touchstone-agent` distribution with the `touchstone` command.
|
|
10
|
+
- Interactive repository discovery, strict versioned configuration, diagnostics, and idempotent setup.
|
|
11
|
+
- Append-only finding lifecycle with GitHub reconciliation, safe reaping, status output, and structured run events.
|
|
12
|
+
- Independent review, verified auto-merge arming, draft parking, and head-SHA-bound human resume.
|
|
13
|
+
- Native launchd and systemd user scheduling with portable hourly, daily, and weekly schedules.
|
|
14
|
+
- Built-in generic audit and review briefs packaged in the wheel.
|
|
15
|
+
- Per-repository XDG state isolation and target-aware local/SSH diagnostics.
|
|
16
|
+
- Online publication preflight for GitHub access, auto-merge, labels, workflows, and branch protection visibility.
|
|
17
|
+
|
|
18
|
+
### Security
|
|
19
|
+
|
|
20
|
+
- Removed project-specific paths and personal commit identities from runtime behavior.
|
|
21
|
+
- Invalid agent output is inconclusive rather than clean.
|
|
22
|
+
- GitHub mutation results are checked before lifecycle state advances.
|
|
23
|
+
- Built-in control-path escalation cannot be disabled by project config, and protected-path globs cover environment variants.
|
|
24
|
+
- Secret-shaped SSH environment keys and invalid configuration types or ranges are rejected before execution.
|
|
25
|
+
- A failed fetch cannot fall back to a stale default-branch worktree.
|
|
26
|
+
- Dry runs no longer reconcile or close live pull requests, and persisted failure notes exclude model output.
|
|
27
|
+
- GitHub API payloads and native scheduler command results are validated before state advances.
|
|
28
|
+
|
|
29
|
+
[0.1.0]: https://github.com/Misoto22/touchstone/releases/tag/v0.1.0
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Contributing to Touchstone
|
|
2
|
+
|
|
3
|
+
## Development setup
|
|
4
|
+
|
|
5
|
+
Prerequisites: Python 3.12 or 3.13, Git, and [uv](https://docs.astral.sh/uv/).
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
git clone https://github.com/Misoto22/touchstone.git
|
|
9
|
+
cd touchstone
|
|
10
|
+
uv sync --extra dev
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Workflow
|
|
14
|
+
|
|
15
|
+
1. Create a focused branch. Codex-authored branches use the `codex/` prefix.
|
|
16
|
+
2. Add a failing test that demonstrates the behavior change.
|
|
17
|
+
3. Implement the smallest change that makes the test pass.
|
|
18
|
+
4. Refactor only while the suite remains green.
|
|
19
|
+
5. Update the README, example config, graph, or changelog when their public contract changes.
|
|
20
|
+
|
|
21
|
+
English is used for code identifiers, comments, documentation, and commit messages. Match the existing module boundaries and avoid project-specific paths, repository names, credentials, models, workflows, or personal identities as operational defaults.
|
|
22
|
+
|
|
23
|
+
## Verification
|
|
24
|
+
|
|
25
|
+
Run the same local gates used by CI:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
uv run pytest
|
|
29
|
+
uv run ruff check .
|
|
30
|
+
uv run ruff format --check src tests
|
|
31
|
+
uv run touchstone graph --check
|
|
32
|
+
uv build
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Distribution changes must also install the built wheel into an isolated environment and run `touchstone --help` and `touchstone graph` outside the source checkout.
|
|
36
|
+
|
|
37
|
+
## Pull requests
|
|
38
|
+
|
|
39
|
+
Keep pull requests incremental and explain:
|
|
40
|
+
|
|
41
|
+
- the invariant or user behavior being changed;
|
|
42
|
+
- the failing test added first;
|
|
43
|
+
- safety and compatibility implications;
|
|
44
|
+
- exact verification commands and results.
|
|
45
|
+
|
|
46
|
+
Never force-push `main`. Do not weaken tests, branch protection, required checks, or secret scanning to make a change pass.
|
|
47
|
+
|
|
48
|
+
By contributing, you agree that your contribution is licensed under the [Apache License 2.0](LICENSE).
|
|
@@ -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 Touchstone contributors
|
|
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.
|