mortis-engine 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.
- mortis_engine-0.1.0/.gitignore +21 -0
- mortis_engine-0.1.0/AGENTS.md +90 -0
- mortis_engine-0.1.0/CHANGELOG.md +13 -0
- mortis_engine-0.1.0/CONTRIBUTING.md +64 -0
- mortis_engine-0.1.0/LICENSE +205 -0
- mortis_engine-0.1.0/PKG-INFO +430 -0
- mortis_engine-0.1.0/README.md +401 -0
- mortis_engine-0.1.0/SECURITY.md +39 -0
- mortis_engine-0.1.0/docs/python-suggestions.md +23 -0
- mortis_engine-0.1.0/docs/releasing.md +150 -0
- mortis_engine-0.1.0/docs/review-attribution.md +26 -0
- mortis_engine-0.1.0/docs/review-improvements/1-full-source.md +71 -0
- mortis_engine-0.1.0/docs/review-improvements/2-scope-preview.md +111 -0
- mortis_engine-0.1.0/docs/review-improvements/3-symbol-search.md +33 -0
- mortis_engine-0.1.0/docs/second-pass.md +55 -0
- mortis_engine-0.1.0/docs/supporting-test-evidence.md +25 -0
- mortis_engine-0.1.0/evals/review_improvements/README.md +117 -0
- mortis_engine-0.1.0/evals/review_improvements/acceptance.json +8 -0
- mortis_engine-0.1.0/evals/review_improvements/baseline-result.json +3686 -0
- mortis_engine-0.1.0/evals/review_improvements/baseline.json +38 -0
- mortis_engine-0.1.0/evals/review_improvements/expected.json +36 -0
- mortis_engine-0.1.0/evals/review_improvements/fixtures/cases.json +60 -0
- mortis_engine-0.1.0/evals/review_improvements/fixtures/replay.json +97 -0
- mortis_engine-0.1.0/evals/review_improvements/fixtures/second-pass.json +108 -0
- mortis_engine-0.1.0/evals/review_improvements/integrated-results.json +213 -0
- mortis_engine-0.1.0/evals/review_improvements/run.py +297 -0
- mortis_engine-0.1.0/mortis.toml +20 -0
- mortis_engine-0.1.0/pyproject.toml +87 -0
- mortis_engine-0.1.0/scripts/check_dist.py +76 -0
- mortis_engine-0.1.0/scripts/measure_full_tree_source.py +60 -0
- mortis_engine-0.1.0/scripts/release_check.py +29 -0
- mortis_engine-0.1.0/src/mortis_engine/__init__.py +3 -0
- mortis_engine-0.1.0/src/mortis_engine/__main__.py +3 -0
- mortis_engine-0.1.0/src/mortis_engine/admission.py +117 -0
- mortis_engine-0.1.0/src/mortis_engine/assessments.py +346 -0
- mortis_engine-0.1.0/src/mortis_engine/cli/__init__.py +39 -0
- mortis_engine-0.1.0/src/mortis_engine/cli/analysis.py +113 -0
- mortis_engine-0.1.0/src/mortis_engine/cli/config.py +41 -0
- mortis_engine-0.1.0/src/mortis_engine/cli/connect.py +255 -0
- mortis_engine-0.1.0/src/mortis_engine/cli/findings.py +46 -0
- mortis_engine-0.1.0/src/mortis_engine/cli/followups.py +70 -0
- mortis_engine-0.1.0/src/mortis_engine/cli/reports.py +89 -0
- mortis_engine-0.1.0/src/mortis_engine/cli/review.py +279 -0
- mortis_engine-0.1.0/src/mortis_engine/code_graph/Dockerfile +8 -0
- mortis_engine-0.1.0/src/mortis_engine/code_graph/__init__.py +122 -0
- mortis_engine-0.1.0/src/mortis_engine/code_graph/build.py +45 -0
- mortis_engine-0.1.0/src/mortis_engine/code_graph/contracts.py +266 -0
- mortis_engine-0.1.0/src/mortis_engine/code_graph/extract.py +248 -0
- mortis_engine-0.1.0/src/mortis_engine/code_graph/requirements.txt +14 -0
- mortis_engine-0.1.0/src/mortis_engine/code_graph/syntax.py +73 -0
- mortis_engine-0.1.0/src/mortis_engine/code_graph/transport.py +107 -0
- mortis_engine-0.1.0/src/mortis_engine/code_graph/validation.py +75 -0
- mortis_engine-0.1.0/src/mortis_engine/config.py +196 -0
- mortis_engine-0.1.0/src/mortis_engine/discovery.py +76 -0
- mortis_engine-0.1.0/src/mortis_engine/findings.py +150 -0
- mortis_engine-0.1.0/src/mortis_engine/gateway.py +85 -0
- mortis_engine-0.1.0/src/mortis_engine/history.py +178 -0
- mortis_engine-0.1.0/src/mortis_engine/llm_bedrock.py +112 -0
- mortis_engine-0.1.0/src/mortis_engine/llm_http.py +616 -0
- mortis_engine-0.1.0/src/mortis_engine/operations.py +135 -0
- mortis_engine-0.1.0/src/mortis_engine/providers.py +68 -0
- mortis_engine-0.1.0/src/mortis_engine/reporting.py +163 -0
- mortis_engine-0.1.0/src/mortis_engine/review/__init__.py +14 -0
- mortis_engine-0.1.0/src/mortis_engine/review/assessment.py +407 -0
- mortis_engine-0.1.0/src/mortis_engine/review/background.py +103 -0
- mortis_engine-0.1.0/src/mortis_engine/review/context.py +71 -0
- mortis_engine-0.1.0/src/mortis_engine/review/contracts.py +37 -0
- mortis_engine-0.1.0/src/mortis_engine/review/engine.py +628 -0
- mortis_engine-0.1.0/src/mortis_engine/review/errors.py +2 -0
- mortis_engine-0.1.0/src/mortis_engine/review/evidence.py +68 -0
- mortis_engine-0.1.0/src/mortis_engine/review/execution.py +216 -0
- mortis_engine-0.1.0/src/mortis_engine/review/file_policy.py +67 -0
- mortis_engine-0.1.0/src/mortis_engine/review/planning.py +532 -0
- mortis_engine-0.1.0/src/mortis_engine/review/policy.py +31 -0
- mortis_engine-0.1.0/src/mortis_engine/review/preview.py +67 -0
- mortis_engine-0.1.0/src/mortis_engine/review/service.py +208 -0
- mortis_engine-0.1.0/src/mortis_engine/review/settings.py +137 -0
- mortis_engine-0.1.0/src/mortis_engine/review/snapshots.py +239 -0
- mortis_engine-0.1.0/src/mortis_engine/review/source.py +273 -0
- mortis_engine-0.1.0/src/mortis_engine/review/source_navigation.py +104 -0
- mortis_engine-0.1.0/src/mortis_engine/review/summary.py +141 -0
- mortis_engine-0.1.0/src/mortis_engine/review/verification.py +271 -0
- mortis_engine-0.1.0/src/mortis_engine/review/workflow_contracts.py +70 -0
- mortis_engine-0.1.0/src/mortis_engine/review/workflows.py +398 -0
- mortis_engine-0.1.0/src/mortis_engine/schemas.py +156 -0
- mortis_engine-0.1.0/src/mortis_engine/security.py +47 -0
- mortis_engine-0.1.0/src/mortis_engine/security_scans/__init__.py +1 -0
- mortis_engine-0.1.0/src/mortis_engine/security_scans/advisories.py +82 -0
- mortis_engine-0.1.0/src/mortis_engine/security_scans/context.py +214 -0
- mortis_engine-0.1.0/src/mortis_engine/security_scans/contracts.py +77 -0
- mortis_engine-0.1.0/src/mortis_engine/security_scans/engine.py +510 -0
- mortis_engine-0.1.0/src/mortis_engine/security_scans/inference.py +133 -0
- mortis_engine-0.1.0/src/mortis_engine/security_scans/payload.py +78 -0
- mortis_engine-0.1.0/src/mortis_engine/security_scans/policy.py +39 -0
- mortis_engine-0.1.0/src/mortis_engine/security_scans/sandbox.py +36 -0
- mortis_engine-0.1.0/src/mortis_engine/security_scans/scanner.py +169 -0
- mortis_engine-0.1.0/src/mortis_engine/security_scans/service.py +466 -0
- mortis_engine-0.1.0/src/mortis_engine/workflow.py +274 -0
- mortis_engine-0.1.0/tests/code_graph/__init__.py +0 -0
- mortis_engine-0.1.0/tests/code_graph/test_graph.py +260 -0
- mortis_engine-0.1.0/tests/evals/test_review_improvements.py +185 -0
- mortis_engine-0.1.0/tests/evals/test_second_discovery.py +38 -0
- mortis_engine-0.1.0/tests/review/__init__.py +0 -0
- mortis_engine-0.1.0/tests/review/conftest.py +9 -0
- mortis_engine-0.1.0/tests/review/fixtures/partial_review.json +90 -0
- mortis_engine-0.1.0/tests/review/git_helpers.py +18 -0
- mortis_engine-0.1.0/tests/review/test_attribution.py +264 -0
- mortis_engine-0.1.0/tests/review/test_command.py +553 -0
- mortis_engine-0.1.0/tests/review/test_execution.py +532 -0
- mortis_engine-0.1.0/tests/review/test_full_tree_source.py +211 -0
- mortis_engine-0.1.0/tests/review/test_planning.py +291 -0
- mortis_engine-0.1.0/tests/review/test_preview.py +163 -0
- mortis_engine-0.1.0/tests/review/test_python_suggestions.py +193 -0
- mortis_engine-0.1.0/tests/review/test_recorded_review.py +55 -0
- mortis_engine-0.1.0/tests/review/test_saved_evidence_policy.py +313 -0
- mortis_engine-0.1.0/tests/review/test_second_discovery.py +217 -0
- mortis_engine-0.1.0/tests/review/test_snapshots.py +384 -0
- mortis_engine-0.1.0/tests/review/test_source_navigation.py +206 -0
- mortis_engine-0.1.0/tests/review/test_supporting_evidence.py +180 -0
- mortis_engine-0.1.0/tests/review/test_workflows.py +346 -0
- mortis_engine-0.1.0/tests/security_scans/test_security.py +726 -0
- mortis_engine-0.1.0/tests/smoke_test.py +28 -0
- mortis_engine-0.1.0/tests/test_admission.py +344 -0
- mortis_engine-0.1.0/tests/test_assessments.py +369 -0
- mortis_engine-0.1.0/tests/test_cli.py +347 -0
- mortis_engine-0.1.0/tests/test_discovery.py +33 -0
- mortis_engine-0.1.0/tests/test_findings.py +195 -0
- mortis_engine-0.1.0/tests/test_graph_limits.py +170 -0
- mortis_engine-0.1.0/tests/test_limits.py +30 -0
- mortis_engine-0.1.0/tests/test_llm_bedrock.py +328 -0
- mortis_engine-0.1.0/tests/test_llm_http.py +599 -0
- mortis_engine-0.1.0/tests/test_local_runtime.py +150 -0
- mortis_engine-0.1.0/tests/test_packaging.py +55 -0
- mortis_engine-0.1.0/tests/test_probe.py +160 -0
- mortis_engine-0.1.0/tests/test_release.py +78 -0
- mortis_engine-0.1.0/tests/test_report_cli.py +248 -0
- mortis_engine-0.1.0/tests/test_reporting.py +146 -0
- mortis_engine-0.1.0/tests/test_security_redaction.py +16 -0
- mortis_engine-0.1.0/uv.lock +767 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.venv/
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
.pytest_cache/
|
|
5
|
+
.ruff_cache/
|
|
6
|
+
dist/
|
|
7
|
+
*.egg-info/
|
|
8
|
+
reports/
|
|
9
|
+
build/
|
|
10
|
+
.DS_Store
|
|
11
|
+
.env
|
|
12
|
+
.env.*
|
|
13
|
+
!.env.example
|
|
14
|
+
.aws/
|
|
15
|
+
.coverage
|
|
16
|
+
.coverage.*
|
|
17
|
+
htmlcov/
|
|
18
|
+
.local/
|
|
19
|
+
.codex/
|
|
20
|
+
PLAN.md
|
|
21
|
+
REVIEW_IMPROVEMENTS.md
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Mortis Engine agent guidance
|
|
2
|
+
|
|
3
|
+
## Source of truth
|
|
4
|
+
|
|
5
|
+
Read [README.md](README.md) for supported commands, configuration, public contracts and
|
|
6
|
+
development checks, and [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidance.
|
|
7
|
+
Verify behavior against current source and callers. This repository is the standalone Python library
|
|
8
|
+
and CLI; GitHub authorization, scheduling and publication belong to the Code Mortis app.
|
|
9
|
+
There is no app backend, frontend, Celery, PostgreSQL or Redis test stack here.
|
|
10
|
+
|
|
11
|
+
The Code Mortis app's engine milestone records are historical integration/evaluation
|
|
12
|
+
evidence, not this repository's implementation guide. Preserve saved results and keep
|
|
13
|
+
personal adoption distinct from experimental acceptance. Do not restore OCR/subscription
|
|
14
|
+
execution or claim live quality from offline tests.
|
|
15
|
+
|
|
16
|
+
## Owning modules
|
|
17
|
+
|
|
18
|
+
- `src/mortis_engine/cli/`: argparse commands, terminal progress, JSON stdout and exit codes.
|
|
19
|
+
- `review/`: local Git snapshots, trusted revision configuration, file policy, planning,
|
|
20
|
+
execution, assessment, verification, summaries and background context.
|
|
21
|
+
- `security_scans/`: Trivy snapshots, semantic scans, evidence, verification and grading.
|
|
22
|
+
- `gateway.py`, `llm_http.py`, `llm_bedrock.py`, `workflow.py`: selected-provider transport,
|
|
23
|
+
retries, cancellation, stage budgets and usage accounting.
|
|
24
|
+
- `history.py`: private SQLite run history, task ownership, reservations and snapshot objects.
|
|
25
|
+
- `config.py`, `providers.py`, `discovery.py`, `security.py`: saved profiles, credentials,
|
|
26
|
+
model discovery and endpoint policy.
|
|
27
|
+
- `code_graph/`: bounded exact-revision extraction and isolated Docker parser.
|
|
28
|
+
- `schemas.py`, `review/contracts.py`, `review/workflow_contracts.py`,
|
|
29
|
+
`security_scans/contracts.py`, `code_graph/contracts.py`: typed contracts.
|
|
30
|
+
- `review/__init__.py` and `operations.py`: public Python entry points. Library results
|
|
31
|
+
and CLI JSON must retain their versioned contract; check both callers when changing it.
|
|
32
|
+
- `tests/`: pytest tests, recorded fixtures and mocked provider/scanner behavior.
|
|
33
|
+
|
|
34
|
+
Paths above are relative to `src/mortis_engine/` unless stated otherwise.
|
|
35
|
+
|
|
36
|
+
## Invariants
|
|
37
|
+
|
|
38
|
+
- Preserve prior reports and pinned plans. A finding absent in a later run is not silently
|
|
39
|
+
fixed. Keep validated partial results, explicit errors and incomplete coverage labels.
|
|
40
|
+
- Never silently switch providers, profiles or credentials on failure. Unknown consumption
|
|
41
|
+
stays unknown and retains its reservation; do not replay an uncertain dispatched request.
|
|
42
|
+
- Keep snapshot and configuration revision identities intact. Local reviews must leave
|
|
43
|
+
the user's Git index, objects, refs and working files untouched.
|
|
44
|
+
- Treat analyzed source, repository instructions, hooks and MCP configuration as untrusted
|
|
45
|
+
data. Product analysis must not execute them. Keep development agents separate from
|
|
46
|
+
the product's source-request tools and parser.
|
|
47
|
+
- Preserve exclusions, path validation, bounded evidence, secret redaction, private state
|
|
48
|
+
permissions, endpoint/redirect checks and OS-vault handling. Never read real credentials
|
|
49
|
+
to debug a change or put secrets in output, fixtures or commits.
|
|
50
|
+
- Keep the Docker parser without network, host mounts, inherited credentials or Docker
|
|
51
|
+
socket access. Extraction changes must account for the extractor version, compatible
|
|
52
|
+
parser image and fresh snapshots; do not relabel old results as current.
|
|
53
|
+
- Keep history/schema upgrades compatible with saved runs. Do not delete or rewrite user
|
|
54
|
+
state to make tests pass.
|
|
55
|
+
|
|
56
|
+
## Checks and isolation
|
|
57
|
+
|
|
58
|
+
Develop with Python 3.15, pinned in `.python-version`, using uv, pytest and Ruff.
|
|
59
|
+
Keep runtime code compatible with the supported Python 3.13–3.15 range in `pyproject.toml`:
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
uv sync --group dev
|
|
63
|
+
uv run pytest -q
|
|
64
|
+
uv run ruff check .
|
|
65
|
+
uv build
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Run focused regressions first, then checks appropriate to the change. Non-trivial logic
|
|
69
|
+
needs a runnable regression using existing fixtures. No new framework is needed.
|
|
70
|
+
Configuration/documentation-only changes need structural checks, not provider calls.
|
|
71
|
+
|
|
72
|
+
Tests use temporary Git repositories and isolated state/configuration paths; preserve
|
|
73
|
+
those fixtures. Exactly one agent owns local state/database-backed test execution at a
|
|
74
|
+
time, including the coordinator; explicitly transfer ownership before another agent runs them.
|
|
75
|
+
Do not point tests at the user's XDG directories, OS vault, saved runs or live profiles.
|
|
76
|
+
Worktrees do not isolate shared state, Docker resources, ports or external services.
|
|
77
|
+
Mocked HTTP/Bedrock/Trivy/Docker checks do not establish live integration or experimental
|
|
78
|
+
acceptance. Report each verification boundary separately.
|
|
79
|
+
|
|
80
|
+
## Collaboration
|
|
81
|
+
|
|
82
|
+
Keep one writer per file and preserve unrelated working changes. Give delegated work
|
|
83
|
+
clear ownership, acceptance criteria and verification scope. Review a stable diff and
|
|
84
|
+
affected callers; require file/line evidence and a reachable failure scenario for
|
|
85
|
+
findings. Keep personal agent configuration local; it is not required to contribute.
|
|
86
|
+
|
|
87
|
+
- Do not commit, push, publish, resolve GitHub issues/review threads, deploy, run live
|
|
88
|
+
provider evaluations or start long benchmarks without explicit task authorization.
|
|
89
|
+
Connection probes and model discovery may make network/provider calls; do not use them
|
|
90
|
+
as routine verification. Report checks and risks, separating local and hosted results.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
Initial Mortis Engine release preparation. Package version: 0.1.0.
|
|
6
|
+
No PyPI release is claimed by this entry.
|
|
7
|
+
|
|
8
|
+
- Review working-tree, staged, branch and full-tree Git snapshots with pinned evidence.
|
|
9
|
+
- Assess and verify findings; preserve reports, local history and incomplete coverage.
|
|
10
|
+
- Export JSON/Markdown reports, retry failed assessments and record local finding decisions.
|
|
11
|
+
- Scan repository security with Trivy and the selected AI connection.
|
|
12
|
+
- Extract optional isolated code graph context and support an opt-in second discovery pass.
|
|
13
|
+
- Package the Python library and `mortis` CLI for Python 3.13–3.15, with Python 3.15 as the development default.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Contributing to Mortis Engine
|
|
2
|
+
|
|
3
|
+
Mortis Engine is a local Python library and CLI. See [README.md](README.md) for
|
|
4
|
+
supported behavior and [AGENTS.md](AGENTS.md) for repository boundaries, module
|
|
5
|
+
ownership and invariants.
|
|
6
|
+
|
|
7
|
+
## Development
|
|
8
|
+
|
|
9
|
+
Use Python 3.15 for development and a current
|
|
10
|
+
[uv](https://docs.astral.sh/uv/getting-started/installation/) (CI uses 0.13.8).
|
|
11
|
+
The repository's `.python-version` selects Python 3.15. Then run:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
git clone https://github.com/code-mortis/mortis-engine.git
|
|
15
|
+
cd mortis-engine
|
|
16
|
+
uv sync --locked --group dev
|
|
17
|
+
uv run --locked mortis --help
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Git is required. The offline suite uses mocked providers, Trivy and Docker;
|
|
21
|
+
normal tests need no AI account or API keys. The native parser check installs
|
|
22
|
+
its separately pinned Python dependencies.
|
|
23
|
+
|
|
24
|
+
CI also checks Python 3.13 and 3.14 compatibility. Ruff targets the minimum
|
|
25
|
+
supported version so lint fixes do not introduce newer-only syntax.
|
|
26
|
+
|
|
27
|
+
## Checks
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
uv run --locked pytest -q
|
|
31
|
+
uv run --locked ruff check .
|
|
32
|
+
uv build
|
|
33
|
+
uv run --locked python scripts/check_dist.py
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
CI also installs the wheel and source archive in separate temporary environments
|
|
37
|
+
and runs `tests/smoke_test.py` outside the checkout. Release instructions include
|
|
38
|
+
the same installation checks in [docs/releasing.md](docs/releasing.md).
|
|
39
|
+
|
|
40
|
+
Tests must use temporary repositories and isolated configuration/state paths.
|
|
41
|
+
Never run them against personal profiles, saved runs or the OS credential vault.
|
|
42
|
+
Coordinate exclusive ownership of state-backed tests when multiple agents work
|
|
43
|
+
in this checkout. Live provider evaluations are separate and may incur charges.
|
|
44
|
+
|
|
45
|
+
## Changes and pull requests
|
|
46
|
+
|
|
47
|
+
Use issues for reproducible bugs and feature proposals. Discuss large behavior
|
|
48
|
+
changes before implementing them. Keep each PR focused and describe the problem,
|
|
49
|
+
resulting behavior and checks performed. Link the relevant issue when one exists.
|
|
50
|
+
|
|
51
|
+
Preserve versioned CLI/Python contracts, pinned revisions, saved history, explicit
|
|
52
|
+
provider selection, source exclusions and incomplete-coverage reporting. Include a
|
|
53
|
+
focused regression for non-trivial behavior changes. Use existing helpers and
|
|
54
|
+
dependencies. Update public documentation when supported behavior changes.
|
|
55
|
+
|
|
56
|
+
AI-assisted contributions are welcome when the contributor understands the change,
|
|
57
|
+
reviews it and verifies it. Personal agent settings, including the entire
|
|
58
|
+
`.codex/` directory, are local-only and are not required to contribute.
|
|
59
|
+
|
|
60
|
+
## Sharing evidence
|
|
61
|
+
|
|
62
|
+
Remove credentials, private URLs, personal paths and proprietary source from issues,
|
|
63
|
+
fixtures, reports and screenshots. Do not attach your configuration or history
|
|
64
|
+
database. Follow [SECURITY.md](SECURITY.md) for vulnerability reports.
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
203
|
+
|
|
204
|
+
Mortis Engine
|
|
205
|
+
Copyright 2026 Carlos Montecinos
|