kyno 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.
- kyno-0.1.0/.github/pull_request_template.md +23 -0
- kyno-0.1.0/.github/workflows/ci.yml +22 -0
- kyno-0.1.0/.github/workflows/release.yml +43 -0
- kyno-0.1.0/.gitignore +10 -0
- kyno-0.1.0/.hypothesis/.gitignore +9 -0
- kyno-0.1.0/.hypothesis/constants/00d791de999e953b +4 -0
- kyno-0.1.0/.hypothesis/constants/12c5117bedc28db5 +4 -0
- kyno-0.1.0/.hypothesis/constants/1f5a3dc2748b070a +4 -0
- kyno-0.1.0/.hypothesis/constants/214ce5515e7f1e3e +4 -0
- kyno-0.1.0/.hypothesis/constants/401b88e39711bc48 +4 -0
- kyno-0.1.0/.hypothesis/constants/41acd37072a373ce +4 -0
- kyno-0.1.0/.hypothesis/constants/46c073969bbac7c9 +4 -0
- kyno-0.1.0/.hypothesis/constants/4949cdaa5917f2f0 +4 -0
- kyno-0.1.0/.hypothesis/constants/4cfb2a7ed771ef99 +4 -0
- kyno-0.1.0/.hypothesis/constants/58a6eb6301bf01ef +4 -0
- kyno-0.1.0/.hypothesis/constants/76fc6f336cd08c02 +4 -0
- kyno-0.1.0/.hypothesis/constants/83576ec03c24f684 +4 -0
- kyno-0.1.0/.hypothesis/constants/910c12b1ef5f9f49 +4 -0
- kyno-0.1.0/.hypothesis/constants/949c2974fefdf78c +4 -0
- kyno-0.1.0/.hypothesis/constants/a1b22d95d91e13d7 +4 -0
- kyno-0.1.0/.hypothesis/constants/a2f997fcfac09ae9 +4 -0
- kyno-0.1.0/.hypothesis/constants/a6d01e77d482dc76 +4 -0
- kyno-0.1.0/.hypothesis/constants/a722f794ca932435 +4 -0
- kyno-0.1.0/.hypothesis/constants/bc9056c51bc0a3a6 +4 -0
- kyno-0.1.0/.hypothesis/constants/c9538d54c13443b0 +4 -0
- kyno-0.1.0/.hypothesis/constants/e747c5fae698e5e2 +4 -0
- kyno-0.1.0/.hypothesis/constants/e8181cf6d703f21c +4 -0
- kyno-0.1.0/.hypothesis/constants/f059049a6201ee14 +4 -0
- kyno-0.1.0/.hypothesis/constants/fa4071fbfa904a94 +4 -0
- kyno-0.1.0/.hypothesis/unicode_data/15.0.0/charmap.json.gz +0 -0
- kyno-0.1.0/.hypothesis/unicode_data/15.0.0/codec-v2-utf-8.json.gz +0 -0
- kyno-0.1.0/CONTRIBUTING.md +39 -0
- kyno-0.1.0/LICENSE +26 -0
- kyno-0.1.0/LICENSES/Elastic-2.0.txt +93 -0
- kyno-0.1.0/LICENSES/MIT.txt +21 -0
- kyno-0.1.0/PKG-INFO +479 -0
- kyno-0.1.0/README.md +436 -0
- kyno-0.1.0/alembic.ini +14 -0
- kyno-0.1.0/conformance/LICENSE +22 -0
- kyno-0.1.0/conformance/expected/block_before_any_direction.txt +2 -0
- kyno-0.1.0/conformance/expected/block_version1_compact.txt +8 -0
- kyno-0.1.0/conformance/expected/block_version1_full.txt +14 -0
- kyno-0.1.0/conformance/expected/block_version2_compact.txt +10 -0
- kyno-0.1.0/conformance/expected/response_before_any_direction.json +10 -0
- kyno-0.1.0/conformance/expected/response_version1_compact.json +22 -0
- kyno-0.1.0/conformance/expected/response_version1_full.json +26 -0
- kyno-0.1.0/conformance/expected/response_version2_after_knowing_1.json +24 -0
- kyno-0.1.0/conformance/v1.yaml +22 -0
- kyno-0.1.0/conformance/v2.yaml +23 -0
- kyno-0.1.0/constitution.yaml +109 -0
- kyno-0.1.0/docs/integrating.md +346 -0
- kyno-0.1.0/pyproject.toml +80 -0
- kyno-0.1.0/src/kyno/__init__.py +11 -0
- kyno-0.1.0/src/kyno/adapters/LICENSE +22 -0
- kyno-0.1.0/src/kyno/adapters/__init__.py +7 -0
- kyno-0.1.0/src/kyno/adapters/crewai/__init__.py +6 -0
- kyno-0.1.0/src/kyno/adapters/crewai/hooks.py +131 -0
- kyno-0.1.0/src/kyno/adapters/langgraph/__init__.py +20 -0
- kyno-0.1.0/src/kyno/adapters/langgraph/nodes.py +120 -0
- kyno-0.1.0/src/kyno/authoring.py +85 -0
- kyno-0.1.0/src/kyno/cli.py +299 -0
- kyno-0.1.0/src/kyno/config.py +95 -0
- kyno-0.1.0/src/kyno/conformance/LICENSE +22 -0
- kyno-0.1.0/src/kyno/conformance/__init__.py +78 -0
- kyno-0.1.0/src/kyno/conformance/__main__.py +37 -0
- kyno-0.1.0/src/kyno/errors.py +54 -0
- kyno-0.1.0/src/kyno/mcp_server.py +374 -0
- kyno-0.1.0/src/kyno/migrations/__init__.py +0 -0
- kyno-0.1.0/src/kyno/migrations/env.py +38 -0
- kyno-0.1.0/src/kyno/migrations/script.py.mako +20 -0
- kyno-0.1.0/src/kyno/migrations/versions/0001_initial.py +51 -0
- kyno-0.1.0/src/kyno/migrations/versions/0002_publication.py +35 -0
- kyno-0.1.0/src/kyno/migrations/versions/0003_declaration.py +29 -0
- kyno-0.1.0/src/kyno/migrations/versions/__init__.py +0 -0
- kyno-0.1.0/src/kyno/models.py +231 -0
- kyno-0.1.0/src/kyno/public_page.py +264 -0
- kyno-0.1.0/src/kyno/sdk/LICENSE +22 -0
- kyno-0.1.0/src/kyno/sdk/__init__.py +128 -0
- kyno-0.1.0/src/kyno/sdk/binder.py +70 -0
- kyno-0.1.0/src/kyno/sdk/cell.py +145 -0
- kyno-0.1.0/src/kyno/sdk/client.py +266 -0
- kyno-0.1.0/src/kyno/sdk/gate.py +154 -0
- kyno-0.1.0/src/kyno/sdk/plan.py +38 -0
- kyno-0.1.0/src/kyno/sdk/policy.py +68 -0
- kyno-0.1.0/src/kyno/sdk/subscriber.py +122 -0
- kyno-0.1.0/src/kyno/sdk/trace.py +140 -0
- kyno-0.1.0/src/kyno/service.py +330 -0
- kyno-0.1.0/src/kyno/store/__init__.py +3 -0
- kyno-0.1.0/src/kyno/store/base.py +39 -0
- kyno-0.1.0/src/kyno/store/schema.py +49 -0
- kyno-0.1.0/src/kyno/store/sql.py +254 -0
- kyno-0.1.0/src/kyno/templates/constitution.html +19 -0
- kyno-0.1.0/src/kyno/templates/index.html +16 -0
- kyno-0.1.0/src/kyno/templates/page.css +89 -0
- kyno-0.1.0/src/kyno/transports.py +177 -0
- kyno-0.1.0/tests/__init__.py +0 -0
- kyno-0.1.0/tests/adapters/__init__.py +0 -0
- kyno-0.1.0/tests/adapters/conftest.py +48 -0
- kyno-0.1.0/tests/adapters/test_bad_replies.py +188 -0
- kyno-0.1.0/tests/adapters/test_binder.py +213 -0
- kyno-0.1.0/tests/adapters/test_cell.py +178 -0
- kyno-0.1.0/tests/adapters/test_client.py +99 -0
- kyno-0.1.0/tests/adapters/test_crewai_hooks.py +331 -0
- kyno-0.1.0/tests/adapters/test_gate.py +189 -0
- kyno-0.1.0/tests/adapters/test_integration_smoke.py +50 -0
- kyno-0.1.0/tests/adapters/test_langgraph_nodes.py +326 -0
- kyno-0.1.0/tests/adapters/test_mcp_source.py +225 -0
- kyno-0.1.0/tests/adapters/test_package.py +24 -0
- kyno-0.1.0/tests/adapters/test_plan.py +138 -0
- kyno-0.1.0/tests/adapters/test_policy.py +35 -0
- kyno-0.1.0/tests/adapters/test_public_surface.py +72 -0
- kyno-0.1.0/tests/adapters/test_refresh.py +75 -0
- kyno-0.1.0/tests/adapters/test_sdk.py +129 -0
- kyno-0.1.0/tests/adapters/test_subscriber.py +236 -0
- kyno-0.1.0/tests/adapters/test_trace.py +122 -0
- kyno-0.1.0/tests/adapters/test_trace_lineage.py +102 -0
- kyno-0.1.0/tests/conftest.py +47 -0
- kyno-0.1.0/tests/test_authoring.py +248 -0
- kyno-0.1.0/tests/test_cli.py +297 -0
- kyno-0.1.0/tests/test_concurrency.py +99 -0
- kyno-0.1.0/tests/test_config.py +139 -0
- kyno-0.1.0/tests/test_conformance.py +110 -0
- kyno-0.1.0/tests/test_delta.py +122 -0
- kyno-0.1.0/tests/test_field_bounds.py +159 -0
- kyno-0.1.0/tests/test_licensing.py +33 -0
- kyno-0.1.0/tests/test_mcp_contract.py +839 -0
- kyno-0.1.0/tests/test_migrations.py +345 -0
- kyno-0.1.0/tests/test_models.py +132 -0
- kyno-0.1.0/tests/test_page_customization.py +361 -0
- kyno-0.1.0/tests/test_page_export.py +160 -0
- kyno-0.1.0/tests/test_page_templates.py +171 -0
- kyno-0.1.0/tests/test_property.py +63 -0
- kyno-0.1.0/tests/test_public_pages.py +638 -0
- kyno-0.1.0/tests/test_publish_use_case.py +92 -0
- kyno-0.1.0/tests/test_rich_constitution_use_case.py +92 -0
- kyno-0.1.0/tests/test_service_contract.py +682 -0
- kyno-0.1.0/tests/test_smoke.py +5 -0
- kyno-0.1.0/tests/test_sql_store.py +588 -0
- kyno-0.1.0/tests/test_store_fixture_gating.py +43 -0
- kyno-0.1.0/tests/test_store_protocol.py +37 -0
- kyno-0.1.0/tests/test_transports.py +321 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
## Summary
|
|
2
|
+
|
|
3
|
+
<!-- One or two sentences: what this PR does and why it matters to a user of the library. -->
|
|
4
|
+
|
|
5
|
+
## Why
|
|
6
|
+
|
|
7
|
+
<!-- The problem or motivation. Link public issues/discussions where they exist. -->
|
|
8
|
+
|
|
9
|
+
## Out of scope
|
|
10
|
+
|
|
11
|
+
<!-- What this deliberately does not do, if anything. -->
|
|
12
|
+
|
|
13
|
+
## Breaking changes
|
|
14
|
+
|
|
15
|
+
<!-- Any change an existing user would feel (API, CLI, config, baseline format). "None" is a fine answer. -->
|
|
16
|
+
|
|
17
|
+
## How to verify
|
|
18
|
+
|
|
19
|
+
<!-- Commands a reviewer can run; expected results. -->
|
|
20
|
+
|
|
21
|
+
## Notes for reviewers
|
|
22
|
+
|
|
23
|
+
<!-- Where to look first; the riskiest or most judgment-heavy part. -->
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version: ${{ matrix.python-version }}
|
|
19
|
+
- run: python -m pip install -e ".[dev]"
|
|
20
|
+
- run: python -m pytest -q
|
|
21
|
+
- run: python -m ruff check .
|
|
22
|
+
- run: python -m ruff format --check .
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: Release to PyPI on tag
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: actions/setup-python@v5
|
|
14
|
+
with:
|
|
15
|
+
python-version: "3.12"
|
|
16
|
+
# The tag names the release; pyproject names the build. Refuse to
|
|
17
|
+
# publish one under the other's name.
|
|
18
|
+
- run: |
|
|
19
|
+
version=$(python -c "import tomllib; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
|
|
20
|
+
test "v$version" = "$GITHUB_REF_NAME" || { echo "tag is $GITHUB_REF_NAME but pyproject says $version"; exit 1; }
|
|
21
|
+
- run: python -m pip install -e ".[dev]"
|
|
22
|
+
- run: python -m pytest -q
|
|
23
|
+
- run: python -m ruff check .
|
|
24
|
+
- run: python -m ruff format --check .
|
|
25
|
+
- run: python -m pip install build
|
|
26
|
+
- run: python -m build
|
|
27
|
+
- uses: actions/upload-artifact@v4
|
|
28
|
+
with:
|
|
29
|
+
name: dist
|
|
30
|
+
path: dist/
|
|
31
|
+
|
|
32
|
+
publish:
|
|
33
|
+
needs: build
|
|
34
|
+
runs-on: ubuntu-latest
|
|
35
|
+
environment: pypi
|
|
36
|
+
permissions:
|
|
37
|
+
id-token: write
|
|
38
|
+
steps:
|
|
39
|
+
- uses: actions/download-artifact@v4
|
|
40
|
+
with:
|
|
41
|
+
name: dist
|
|
42
|
+
path: dist/
|
|
43
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
kyno-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# This .gitignore file was automatically created by Hypothesis. Hypothesis gitignores
|
|
2
|
+
# .hypothesis by default, because we generally recommend that .hypothesis not be checked
|
|
3
|
+
# into version control.
|
|
4
|
+
#
|
|
5
|
+
# If you *would* like to check .hypothesis into version control, you should delete this
|
|
6
|
+
# file. Hypothesis will not re-create this .gitignore unless .hypothesis is deleted (and
|
|
7
|
+
# if it does, that's a bug - please report it!)
|
|
8
|
+
|
|
9
|
+
*
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/mcp_server.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
['anyOf', 'application/json', 'array', 'change_note', 'constitution', 'created_by', 'current constitution', 'declaration', 'description', 'detail', 'enum', 'get_changes_since', 'get_constitution', 'get_declaration', 'get_mission', 'get_principle', 'get_principles', 'integer', 'items', 'known_version', 'kyno', 'mission', 'null', 'object', 'principles', 'properties', 'required', 'set_direction', 'string', 'text', 'title', 'titles', 'type', 'version']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/config.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
['127.0.0.1', '8080', 'KYNO_DATABASE_URL', 'KYNO_HOST', 'KYNO_INDEX_TEMPLATE', 'KYNO_PAGE_ACCENT', 'KYNO_PAGE_BACKGROUND', 'KYNO_PAGE_FONT', 'KYNO_PAGE_MUTED', 'KYNO_PAGE_RULE', 'KYNO_PAGE_TEXT', 'KYNO_PORT', 'KYNO_TABLE_PREFIX', 'KYNO_TOKEN', '[<>{};@\\\\]', '[A-Za-z0-9_]+', 'accent', 'background', 'font_family', 'kyno_', 'muted', 'rule', 'text']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/sdk/cell.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
['Declaration:', 'Principles:', 'Recent changes:', 'What changed:', 'change_notes', 'constitution', 'context', 'declaration', 'injection context', 'mission', 'principles', 'version']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/models.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
['[kyno:direction', 'change_note', 'change_notes', 'changed', 'changed_at', 'changed_mission', 'changed_principles', 'compact', 'constitution', 'created_at', 'created_by', 'current_version', 'declaration', 'delta', 'description', 'detail', 'full', 'history', 'last_changed_at', 'mission', 'principles', 'title', 'version']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/sdk/trace.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
['agent', 'checked', 'child_id', 'constitution', 'delegation', 'edges', 'goal', 'kind', 'mission', 'occurred_at', 'output', 'parent_id', 'principles', 'run_id', 'step_id', 'steps', 'subgraph', 'task', 'verdict', 'version']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/store/schema.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
[255, 'change_note', 'changed_mission', 'changed_principles', 'constitution_id', 'created_at', 'created_by', 'current_version', 'declaration', 'history_public', 'id', 'kyno_', 'mission', 'name', 'principles', 'published_at', 'version']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/transports.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
[401, 404, 413, 5000000, '/constitutions.json', '/constitutions/', '/mcp', 'DENY', 'Referrer-Policy', 'X-Frame-Options', 'authorization', 'body', 'constitutions', 'content-length', 'error', 'headers', 'http.request', 'name', 'no-referrer', 'nosniff', 'not found', 'replace', 'type', 'unauthorized']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/store/sql.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
[':memory:', 'change_note', 'check_same_thread', 'connect_args', 'created_at', 'created_by', 'declaration', 'default', 'kyno_', 'mission', 'poolclass', 'principles', 'sqlite', 'sqlite://', 'sqlite:///:memory:', 'version']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/sdk/__init__.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
['Action', 'BackgroundSubscriber', 'COMPACT', 'DIRECTION_MARKER', 'DecompositionEdge', 'Direction', 'DirectionBinder', 'DirectionCell', 'DirectionSource', 'FULL', 'GateDecision', 'GatePolicy', 'KynoBinding', 'KynoConnection', 'LocalDirectionSource', 'LogSink', 'McpDirectionSource', 'PlanTracker', 'PullPolicy', 'RealignmentGate', 'RecordingSink', 'RunTrace', 'SessionRunner', 'StepRecord', 'TelemetryEvent', 'TelemetrySink', 'Verdict', 'VerdictSource', 'connect', 'http_session', 'is_direction_block', 'refresh']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/sdk/gate.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
[':', 'action', 'aligned', 'block', 'checked', 'constitution', 'drifted', 'no_source', 'pause', 'proceed', 'reason', 'source_error', 'unknown', 'unknown_verdict', 'verdict', 'version']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/public_page.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
['#1b1b19', '#6d6d66', '#e4e3de', '#fbfbf9', '%Y-%m-%d', 'constitution.html', 'count', 'declaration', 'history', 'html', 'image', 'index.html', 'items', 'js-default', 'kyno', 'mission', 'name', 'page.css', 'principles', 'stylesheet', 'templates', 'updated', 'utf-8', 'version']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/sdk/client.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
[10.0, 1024, 'Authorization', 'KYNO_TOKEN', 'KYNO_URL', 'change_notes', 'changed', 'changed_mission', 'changed_principles', 'constitution', 'current_version', 'declaration', 'default', 'delta', 'detail', 'get_changes_since', 'known_version', 'kyno-mcp', 'mission', 'principles']
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# file: /home/runner/work/kyno/kyno/src/kyno/cli.py
|
|
2
|
+
# hypothesis_version: 6.165.10
|
|
3
|
+
|
|
4
|
+
['%', '%%', '--by', '--constitution', '--declaration', '--file', '--from', '--mission', '--note', '--principle', '--to', '--transport', '--with-history', '1', 'default', 'export', 'head', 'hidden', 'http', 'init-db', 'kyno', 'migrations', 'ok', 'page', 'public', 'script_location', 'set', 'sqlalchemy.url', 'stdio', 'true', 'upgrade-db', 'utf-8', 'x']
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for helping! A few essentials keep the codebase consistent — anything
|
|
4
|
+
not listed here is not a review nit.
|
|
5
|
+
|
|
6
|
+
## Code style
|
|
7
|
+
|
|
8
|
+
- Standard PEP 8, as `ruff`/`black` format it. No custom style rules.
|
|
9
|
+
- **Code should explain itself.** Write a comment only for something the code
|
|
10
|
+
cannot say — a deliberate trade-off, a non-obvious constraint, a surprising
|
|
11
|
+
behavior kept on purpose — and keep it to four lines or less. Never comment
|
|
12
|
+
what the next line does.
|
|
13
|
+
- In tests, the test name and its assertions are the documentation. A comment
|
|
14
|
+
like "Deliberate: …" marks behavior that is intentional and should not be
|
|
15
|
+
changed casually — if you need to change it, say why in the PR.
|
|
16
|
+
|
|
17
|
+
## Tests
|
|
18
|
+
|
|
19
|
+
- Every change ships with its tests in the same PR: tests for the new
|
|
20
|
+
behavior, a test for each non-obvious decision you made along the way, and
|
|
21
|
+
— for bug fixes — a test that reproduces the bug before the fix.
|
|
22
|
+
- `python -m pytest -q` must pass. Postgres-specific tests run when
|
|
23
|
+
`KYNO_TEST_POSTGRES_URL` is set and skip otherwise.
|
|
24
|
+
- Prefer scripted, deterministic tests. A test may exercise real concurrency
|
|
25
|
+
only to prove a concurrency guarantee, and its assertion must hold under
|
|
26
|
+
every possible interleaving. Never use a fixed sleep as a synchronization
|
|
27
|
+
point — await the task, event, or condition itself.
|
|
28
|
+
|
|
29
|
+
## Pull requests
|
|
30
|
+
|
|
31
|
+
- Keep PR descriptions short: what it does, how to verify, where to look.
|
|
32
|
+
The durable explanation belongs in the code and commit messages.
|
|
33
|
+
|
|
34
|
+
## Licensing of new files
|
|
35
|
+
|
|
36
|
+
New files under `src/kyno/sdk/`, `src/kyno/adapters/`, or
|
|
37
|
+
`src/kyno/conformance/` start with the SPDX line — copy it from any
|
|
38
|
+
neighboring file; CI reminds you if you forget. Files anywhere else need no
|
|
39
|
+
header.
|
kyno-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Kyno licensing
|
|
2
|
+
|
|
3
|
+
Kyno uses two licenses. The idea behind the split is simple: the parts you
|
|
4
|
+
integrate with are yours to copy, and the control plane is free to run but
|
|
5
|
+
not to resell.
|
|
6
|
+
|
|
7
|
+
These directories are under the MIT license. They are the integration
|
|
8
|
+
surface, and we want people to copy them, fork them, and build better
|
|
9
|
+
adapters on top of them:
|
|
10
|
+
|
|
11
|
+
- src/kyno/sdk/
|
|
12
|
+
- src/kyno/adapters/
|
|
13
|
+
- src/kyno/conformance/
|
|
14
|
+
- conformance/
|
|
15
|
+
- docs/integrating.md
|
|
16
|
+
|
|
17
|
+
Everything else is under the Elastic License 2.0. That covers the control
|
|
18
|
+
plane: the server, the store, the CLI, and the publishing pages. You can
|
|
19
|
+
read it, change it, and self-host it in production for free, including
|
|
20
|
+
commercially. The one thing you cannot do is offer Kyno itself to third
|
|
21
|
+
parties as a hosted or managed service.
|
|
22
|
+
|
|
23
|
+
To know which license applies to a file, look at its first line: files
|
|
24
|
+
that begin with an MIT header are MIT, and everything else in this
|
|
25
|
+
repository is under the Elastic License 2.0. The full texts are in the
|
|
26
|
+
LICENSES directory.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Elastic License 2.0
|
|
2
|
+
|
|
3
|
+
URL: https://www.elastic.co/licensing/elastic-license
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
8
|
+
|
|
9
|
+
## Copyright License
|
|
10
|
+
|
|
11
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide,
|
|
12
|
+
non-sublicensable, non-transferable license to use, copy, distribute, make
|
|
13
|
+
available, and prepare derivative works of the software, in each case subject to
|
|
14
|
+
the limitations and conditions below.
|
|
15
|
+
|
|
16
|
+
## Limitations
|
|
17
|
+
|
|
18
|
+
You may not provide the software to third parties as a hosted or managed
|
|
19
|
+
service, where the service provides users with access to any substantial set of
|
|
20
|
+
the features or functionality of the software.
|
|
21
|
+
|
|
22
|
+
You may not move, change, disable, or circumvent the license key functionality
|
|
23
|
+
in the software, and you may not remove or obscure any functionality in the
|
|
24
|
+
software that is protected by the license key.
|
|
25
|
+
|
|
26
|
+
You may not alter, remove, or obscure any licensing, copyright, or other notices
|
|
27
|
+
of the licensor in the software. Any use of the licensor’s trademarks is subject
|
|
28
|
+
to applicable law.
|
|
29
|
+
|
|
30
|
+
## Patents
|
|
31
|
+
|
|
32
|
+
The licensor grants you a license, under any patent claims the licensor can
|
|
33
|
+
license, or becomes able to license, to make, have made, use, sell, offer for
|
|
34
|
+
sale, import and have imported the software, in each case subject to the
|
|
35
|
+
limitations and conditions in this license. This license does not cover any
|
|
36
|
+
patent claims that you cause to be infringed by modifications or additions to
|
|
37
|
+
the software. If you or your company make any written claim that the software
|
|
38
|
+
infringes or contributes to infringement of any patent, your patent license for
|
|
39
|
+
the software granted under these terms ends immediately. If your company makes
|
|
40
|
+
such a claim, your patent license ends immediately for work on behalf of your
|
|
41
|
+
company.
|
|
42
|
+
|
|
43
|
+
## Notices
|
|
44
|
+
|
|
45
|
+
You must ensure that anyone who gets a copy of any part of the software from you
|
|
46
|
+
also gets a copy of these terms.
|
|
47
|
+
|
|
48
|
+
If you modify the software, you must include in any modified copies of the
|
|
49
|
+
software prominent notices stating that you have modified the software.
|
|
50
|
+
|
|
51
|
+
## No Other Rights
|
|
52
|
+
|
|
53
|
+
These terms do not imply any licenses other than those expressly granted in
|
|
54
|
+
these terms.
|
|
55
|
+
|
|
56
|
+
## Termination
|
|
57
|
+
|
|
58
|
+
If you use the software in violation of these terms, such use is not licensed,
|
|
59
|
+
and your licenses will automatically terminate. If the licensor provides you
|
|
60
|
+
with a notice of your violation, and you cease all violation of this license no
|
|
61
|
+
later than 30 days after you receive that notice, your licenses will be
|
|
62
|
+
reinstated retroactively. However, if you violate these terms after such
|
|
63
|
+
reinstatement, any additional violation of these terms will cause your licenses
|
|
64
|
+
to terminate automatically and permanently.
|
|
65
|
+
|
|
66
|
+
## No Liability
|
|
67
|
+
|
|
68
|
+
*As far as the law allows, the software comes as is, without any warranty or
|
|
69
|
+
condition, and the licensor will not be liable to you for any damages arising
|
|
70
|
+
out of these terms or the use or nature of the software, under any kind of
|
|
71
|
+
legal claim.*
|
|
72
|
+
|
|
73
|
+
## Definitions
|
|
74
|
+
|
|
75
|
+
The **licensor** is the entity offering these terms, and the **software** is the
|
|
76
|
+
software the licensor makes available under these terms, including any portion
|
|
77
|
+
of it.
|
|
78
|
+
|
|
79
|
+
**you** refers to the individual or entity agreeing to these terms.
|
|
80
|
+
|
|
81
|
+
**your company** is any legal entity, sole proprietorship, or other kind of
|
|
82
|
+
organization that you work for, plus all organizations that have control over,
|
|
83
|
+
are under the control of, or are under common control with that
|
|
84
|
+
organization. **control** means ownership of substantially all the assets of an
|
|
85
|
+
entity, or the power to direct its management and policies by vote, contract, or
|
|
86
|
+
otherwise. Control can be direct or indirect.
|
|
87
|
+
|
|
88
|
+
**your licenses** are all the licenses granted to you for the software under
|
|
89
|
+
these terms.
|
|
90
|
+
|
|
91
|
+
**use** means anything you do with the software requiring one of your licenses.
|
|
92
|
+
|
|
93
|
+
**trademark** means trademarks, service marks, and similar rights.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Camilo Zambrano
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|