cernora 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.
- cernora-0.1.0/.github/workflows/ci.yml +95 -0
- cernora-0.1.0/.github/workflows/release.yml +122 -0
- cernora-0.1.0/.gitignore +11 -0
- cernora-0.1.0/CHANGELOG.md +42 -0
- cernora-0.1.0/CONTRIBUTING.md +84 -0
- cernora-0.1.0/LICENSE +201 -0
- cernora-0.1.0/NOTICE +9 -0
- cernora-0.1.0/PKG-INFO +299 -0
- cernora-0.1.0/README.md +278 -0
- cernora-0.1.0/README.zh-CN.md +258 -0
- cernora-0.1.0/ROADMAP.md +838 -0
- cernora-0.1.0/ROADMAP.zh-CN.md +747 -0
- cernora-0.1.0/SECURITY.md +47 -0
- cernora-0.1.0/docs/public/README.md +23 -0
- cernora-0.1.0/docs/public/acceptance-summary.json +62 -0
- cernora-0.1.0/docs/public/acceptance.md +61 -0
- cernora-0.1.0/docs/public/adapter-conformance.md +98 -0
- cernora-0.1.0/docs/public/architecture.md +138 -0
- cernora-0.1.0/docs/public/compatibility-matrix.md +77 -0
- cernora-0.1.0/docs/public/evidence-publication-and-rebuild.md +89 -0
- cernora-0.1.0/docs/public/local-release-checklist.md +116 -0
- cernora-0.1.0/docs/public/profile-authoring.md +146 -0
- cernora-0.1.0/docs/public/release-day-runbook.md +90 -0
- cernora-0.1.0/examples/coding_task/README.md +15 -0
- cernora-0.1.0/examples/offline_workflow/README.md +17 -0
- cernora-0.1.0/examples/offline_workflow/run.py +19 -0
- cernora-0.1.0/pyproject.toml +102 -0
- cernora-0.1.0/scripts/check_release.py +201 -0
- cernora-0.1.0/scripts/rebuild_acceptance.py +290 -0
- cernora-0.1.0/src/cernora/__init__.py +94 -0
- cernora-0.1.0/src/cernora/__main__.py +5 -0
- cernora-0.1.0/src/cernora/adapter.py +31 -0
- cernora-0.1.0/src/cernora/cli/__init__.py +1 -0
- cernora-0.1.0/src/cernora/cli/main.py +121 -0
- cernora-0.1.0/src/cernora/cli/profiles.py +25 -0
- cernora-0.1.0/src/cernora/composition/__init__.py +1 -0
- cernora-0.1.0/src/cernora/composition/gating.py +126 -0
- cernora-0.1.0/src/cernora/composition/scoring.py +18 -0
- cernora-0.1.0/src/cernora/conformance.py +195 -0
- cernora-0.1.0/src/cernora/core/__init__.py +1 -0
- cernora-0.1.0/src/cernora/core/canonical.py +65 -0
- cernora-0.1.0/src/cernora/core/case.py +62 -0
- cernora-0.1.0/src/cernora/core/errors.py +13 -0
- cernora-0.1.0/src/cernora/core/evidence.py +124 -0
- cernora-0.1.0/src/cernora/core/evidence_bundle_v2.py +391 -0
- cernora-0.1.0/src/cernora/core/gate.py +72 -0
- cernora-0.1.0/src/cernora/core/identity.py +69 -0
- cernora-0.1.0/src/cernora/core/score.py +41 -0
- cernora-0.1.0/src/cernora/evaluation/__init__.py +1 -0
- cernora-0.1.0/src/cernora/evaluation/contracts.py +209 -0
- cernora-0.1.0/src/cernora/evaluation/imported_case.py +255 -0
- cernora-0.1.0/src/cernora/evaluation/package.py +370 -0
- cernora-0.1.0/src/cernora/examples/__init__.py +1 -0
- cernora-0.1.0/src/cernora/examples/coding_task/__init__.py +11 -0
- cernora-0.1.0/src/cernora/examples/coding_task/__main__.py +20 -0
- cernora-0.1.0/src/cernora/examples/coding_task/adapter.py +402 -0
- cernora-0.1.0/src/cernora/examples/coding_task/resources/candidates/backend-v1.json +1 -0
- cernora-0.1.0/src/cernora/examples/coding_task/resources/candidates/fail-closed-v1.json +1 -0
- cernora-0.1.0/src/cernora/examples/coding_task/resources/candidates/frontend-v1.json +1 -0
- cernora-0.1.0/src/cernora/examples/coding_task/workflow.py +115 -0
- cernora-0.1.0/src/cernora/examples/offline_workflow/__init__.py +13 -0
- cernora-0.1.0/src/cernora/examples/offline_workflow/__main__.py +21 -0
- cernora-0.1.0/src/cernora/examples/offline_workflow/adapter.py +390 -0
- cernora-0.1.0/src/cernora/examples/offline_workflow/resources/completed-export.json +1 -0
- cernora-0.1.0/src/cernora/examples/offline_workflow/workflow.py +106 -0
- cernora-0.1.0/src/cernora/ingestion/__init__.py +1 -0
- cernora-0.1.0/src/cernora/ingestion/contracts_v2.py +192 -0
- cernora-0.1.0/src/cernora/ingestion/errors.py +31 -0
- cernora-0.1.0/src/cernora/ingestion/package_v2.py +952 -0
- cernora-0.1.0/src/cernora/profile.py +56 -0
- cernora-0.1.0/src/cernora/profile_loader.py +98 -0
- cernora-0.1.0/src/cernora/profile_workspace.py +324 -0
- cernora-0.1.0/src/cernora/profiles/coding_task/__init__.py +318 -0
- cernora-0.1.0/src/cernora/profiles/coding_task/resources/checks/backend-v1.json +1 -0
- cernora-0.1.0/src/cernora/profiles/coding_task/resources/checks/fail-closed-v1.json +1 -0
- cernora-0.1.0/src/cernora/profiles/coding_task/resources/checks/frontend-v1.json +1 -0
- cernora-0.1.0/src/cernora/profiles/coding_task/resources/profile.json +44 -0
- cernora-0.1.0/src/cernora/profiles/offline_workflow/__init__.py +270 -0
- cernora-0.1.0/src/cernora/profiles/offline_workflow/resources/lookup-result.json +1 -0
- cernora-0.1.0/src/cernora/profiles/offline_workflow/resources/profile.json +38 -0
- cernora-0.1.0/src/cernora/py.typed +1 -0
- cernora-0.1.0/src/cernora/resources.py +27 -0
- cernora-0.1.0/src/cernora/schemas/__init__.py +1 -0
- cernora-0.1.0/src/cernora/schemas/case-profile-v1.schema.json +71 -0
- cernora-0.1.0/src/cernora/schemas/evidence-bundle-v2.schema.json +321 -0
- cernora-0.1.0/src/cernora/schemas/evidence-v1.schema.json +109 -0
- cernora-0.1.0/src/cernora/schemas/gate-decision-v1.schema.json +55 -0
- cernora-0.1.0/src/cernora/schemas/import-manifest-v2.schema.json +38 -0
- cernora-0.1.0/src/cernora/schemas/import-receipt-v2.schema.json +169 -0
- cernora-0.1.0/src/cernora/schemas/imported-evaluation-authority-v1.schema.json +218 -0
- cernora-0.1.0/src/cernora/schemas/imported-evaluation-manifest-v1.schema.json +55 -0
- cernora-0.1.0/src/cernora/schemas/imported-evaluation-receipt-v1.schema.json +469 -0
- cernora-0.1.0/src/cernora/schemas/score-v1.schema.json +37 -0
- cernora-0.1.0/tests/__init__.py +1 -0
- cernora-0.1.0/tests/public/__init__.py +1 -0
- cernora-0.1.0/tests/public/test_core_contracts.py +237 -0
- cernora-0.1.0/tests/public/test_v2_import_evaluation.py +223 -0
- cernora-0.1.0/tests/public_profiles/test_profiles.py +384 -0
- cernora-0.1.0/tests/public_sdk/__init__.py +1 -0
- cernora-0.1.0/tests/public_sdk/test_coding_example.py +268 -0
- cernora-0.1.0/tests/public_sdk/test_offline_example.py +237 -0
- cernora-0.1.0/tests/public_sdk/test_profile_loader_cli.py +84 -0
- cernora-0.1.0/tests/public_sdk/test_profile_workspace.py +117 -0
- cernora-0.1.0/tests/public_sdk/test_release_metadata.py +169 -0
- cernora-0.1.0/uv.lock +395 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
public-gates:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
python-version: ["3.12", "3.13"]
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
19
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
20
|
+
with:
|
|
21
|
+
python-version: ${{ matrix.python-version }}
|
|
22
|
+
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
|
|
23
|
+
with:
|
|
24
|
+
version: "0.10.2"
|
|
25
|
+
- run: uv sync --frozen --all-groups
|
|
26
|
+
- run: uv run pytest -q
|
|
27
|
+
- run: uv run ruff check .
|
|
28
|
+
- run: uv run ruff format --check .
|
|
29
|
+
- run: uv run mypy
|
|
30
|
+
|
|
31
|
+
build-distributions:
|
|
32
|
+
needs: public-gates
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
36
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
37
|
+
with:
|
|
38
|
+
python-version: "3.12"
|
|
39
|
+
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
|
|
40
|
+
with:
|
|
41
|
+
version: "0.10.2"
|
|
42
|
+
- run: uv sync --frozen --all-groups
|
|
43
|
+
- run: uv run python -m build
|
|
44
|
+
- name: Inspect the closed release tree and artifacts
|
|
45
|
+
run: >-
|
|
46
|
+
uv run python scripts/check_release.py
|
|
47
|
+
--tree .
|
|
48
|
+
--wheel dist/cernora-0.1.0-py3-none-any.whl
|
|
49
|
+
--sdist dist/cernora-0.1.0.tar.gz
|
|
50
|
+
- name: Retain the inspected distributions for acceptance and release reuse
|
|
51
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
|
|
52
|
+
with:
|
|
53
|
+
name: cernora-dist-${{ github.sha }}
|
|
54
|
+
path: |
|
|
55
|
+
dist/cernora-0.1.0-py3-none-any.whl
|
|
56
|
+
dist/cernora-0.1.0.tar.gz
|
|
57
|
+
if-no-files-found: error
|
|
58
|
+
retention-days: 7
|
|
59
|
+
|
|
60
|
+
wheel-acceptance:
|
|
61
|
+
needs: build-distributions
|
|
62
|
+
runs-on: ubuntu-latest
|
|
63
|
+
strategy:
|
|
64
|
+
fail-fast: false
|
|
65
|
+
matrix:
|
|
66
|
+
python-version: ["3.12", "3.13"]
|
|
67
|
+
steps:
|
|
68
|
+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
69
|
+
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
|
70
|
+
with:
|
|
71
|
+
python-version: ${{ matrix.python-version }}
|
|
72
|
+
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
|
|
73
|
+
with:
|
|
74
|
+
version: "0.10.2"
|
|
75
|
+
- name: Download the inspected distributions
|
|
76
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
|
|
77
|
+
with:
|
|
78
|
+
name: cernora-dist-${{ github.sha }}
|
|
79
|
+
path: dist
|
|
80
|
+
- run: python -m venv /tmp/cernora-wheel-venv
|
|
81
|
+
- run: >-
|
|
82
|
+
uv export --frozen --no-dev --no-emit-project
|
|
83
|
+
--output-file /tmp/cernora-runtime-requirements.txt
|
|
84
|
+
- run: >-
|
|
85
|
+
uv pip install --python /tmp/cernora-wheel-venv/bin/python
|
|
86
|
+
--requirement /tmp/cernora-runtime-requirements.txt
|
|
87
|
+
- run: >-
|
|
88
|
+
uv pip install --python /tmp/cernora-wheel-venv/bin/python
|
|
89
|
+
--offline --no-deps dist/cernora-0.1.0-py3-none-any.whl
|
|
90
|
+
- working-directory: ${{ runner.temp }}
|
|
91
|
+
run: >-
|
|
92
|
+
env -u PYTHONPATH PYTHONNOUSERSITE=1
|
|
93
|
+
/tmp/cernora-wheel-venv/bin/python
|
|
94
|
+
${{ github.workspace }}/scripts/rebuild_acceptance.py
|
|
95
|
+
--output cernora-public-acceptance-${{ matrix.python-version }}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
name: Publish inspected distributions
|
|
2
|
+
|
|
3
|
+
# This workflow is inert until it is committed to GitHub, its environments are protected,
|
|
4
|
+
# and matching Trusted Publishers are configured separately on TestPyPI/PyPI. It never builds.
|
|
5
|
+
on:
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
inputs:
|
|
8
|
+
target:
|
|
9
|
+
description: Package index selected for this explicit rehearsal or release
|
|
10
|
+
required: true
|
|
11
|
+
type: choice
|
|
12
|
+
options:
|
|
13
|
+
- testpypi
|
|
14
|
+
- pypi
|
|
15
|
+
ci_run_id:
|
|
16
|
+
description: Successful CI workflow run that produced the inspected distributions
|
|
17
|
+
required: true
|
|
18
|
+
type: string
|
|
19
|
+
commit_sha:
|
|
20
|
+
description: Full commit SHA used in the CI artifact name and dispatch ref
|
|
21
|
+
required: true
|
|
22
|
+
type: string
|
|
23
|
+
|
|
24
|
+
permissions:
|
|
25
|
+
contents: read
|
|
26
|
+
|
|
27
|
+
concurrency:
|
|
28
|
+
group: cernora-publish-${{ inputs.target }}
|
|
29
|
+
cancel-in-progress: false
|
|
30
|
+
|
|
31
|
+
jobs:
|
|
32
|
+
publish-testpypi:
|
|
33
|
+
if: inputs.target == 'testpypi' && github.sha == inputs.commit_sha
|
|
34
|
+
runs-on: ubuntu-latest
|
|
35
|
+
environment: testpypi
|
|
36
|
+
permissions:
|
|
37
|
+
actions: read
|
|
38
|
+
contents: read
|
|
39
|
+
id-token: write
|
|
40
|
+
steps:
|
|
41
|
+
- name: Require a successful CI run for this exact commit
|
|
42
|
+
shell: bash
|
|
43
|
+
env:
|
|
44
|
+
CI_RUN_ID: ${{ inputs.ci_run_id }}
|
|
45
|
+
EXPECTED_SHA: ${{ inputs.commit_sha }}
|
|
46
|
+
GH_TOKEN: ${{ github.token }}
|
|
47
|
+
run: |
|
|
48
|
+
set -euo pipefail
|
|
49
|
+
[[ "$CI_RUN_ID" =~ ^[0-9]+$ ]]
|
|
50
|
+
[[ "$EXPECTED_SHA" =~ ^[0-9a-f]{40}$ ]]
|
|
51
|
+
run_json="$(gh api "repos/${GITHUB_REPOSITORY}/actions/runs/${CI_RUN_ID}")"
|
|
52
|
+
test "$(jq -r .name <<<"$run_json")" = CI
|
|
53
|
+
test "$(jq -r .conclusion <<<"$run_json")" = success
|
|
54
|
+
test "$(jq -r .head_sha <<<"$run_json")" = "$EXPECTED_SHA"
|
|
55
|
+
- name: Download the inspected CI distributions without rebuilding
|
|
56
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
|
|
57
|
+
with:
|
|
58
|
+
name: cernora-dist-${{ inputs.commit_sha }}
|
|
59
|
+
path: dist
|
|
60
|
+
github-token: ${{ github.token }}
|
|
61
|
+
run-id: ${{ inputs.ci_run_id }}
|
|
62
|
+
- name: Require the closed 0.1.0 artifact set
|
|
63
|
+
shell: bash
|
|
64
|
+
run: |
|
|
65
|
+
set -euo pipefail
|
|
66
|
+
test "$(find dist -maxdepth 1 -type f | wc -l | tr -d ' ')" = 2
|
|
67
|
+
test -f dist/cernora-0.1.0-py3-none-any.whl
|
|
68
|
+
test -f dist/cernora-0.1.0.tar.gz
|
|
69
|
+
sha256sum dist/*
|
|
70
|
+
- name: Publish to TestPyPI through OIDC
|
|
71
|
+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # release/v1
|
|
72
|
+
with:
|
|
73
|
+
repository-url: https://test.pypi.org/legacy/
|
|
74
|
+
packages-dir: dist/
|
|
75
|
+
print-hash: true
|
|
76
|
+
|
|
77
|
+
publish-pypi:
|
|
78
|
+
if: >-
|
|
79
|
+
inputs.target == 'pypi' &&
|
|
80
|
+
startsWith(github.ref, 'refs/tags/v') &&
|
|
81
|
+
github.sha == inputs.commit_sha
|
|
82
|
+
runs-on: ubuntu-latest
|
|
83
|
+
environment: pypi
|
|
84
|
+
permissions:
|
|
85
|
+
actions: read
|
|
86
|
+
contents: read
|
|
87
|
+
id-token: write
|
|
88
|
+
steps:
|
|
89
|
+
- name: Require a successful CI run for this exact commit
|
|
90
|
+
shell: bash
|
|
91
|
+
env:
|
|
92
|
+
CI_RUN_ID: ${{ inputs.ci_run_id }}
|
|
93
|
+
EXPECTED_SHA: ${{ inputs.commit_sha }}
|
|
94
|
+
GH_TOKEN: ${{ github.token }}
|
|
95
|
+
run: |
|
|
96
|
+
set -euo pipefail
|
|
97
|
+
[[ "$CI_RUN_ID" =~ ^[0-9]+$ ]]
|
|
98
|
+
[[ "$EXPECTED_SHA" =~ ^[0-9a-f]{40}$ ]]
|
|
99
|
+
run_json="$(gh api "repos/${GITHUB_REPOSITORY}/actions/runs/${CI_RUN_ID}")"
|
|
100
|
+
test "$(jq -r .name <<<"$run_json")" = CI
|
|
101
|
+
test "$(jq -r .conclusion <<<"$run_json")" = success
|
|
102
|
+
test "$(jq -r .head_sha <<<"$run_json")" = "$EXPECTED_SHA"
|
|
103
|
+
- name: Download the inspected CI distributions without rebuilding
|
|
104
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
|
|
105
|
+
with:
|
|
106
|
+
name: cernora-dist-${{ inputs.commit_sha }}
|
|
107
|
+
path: dist
|
|
108
|
+
github-token: ${{ github.token }}
|
|
109
|
+
run-id: ${{ inputs.ci_run_id }}
|
|
110
|
+
- name: Require the closed 0.1.0 artifact set
|
|
111
|
+
shell: bash
|
|
112
|
+
run: |
|
|
113
|
+
set -euo pipefail
|
|
114
|
+
test "$(find dist -maxdepth 1 -type f | wc -l | tr -d ' ')" = 2
|
|
115
|
+
test -f dist/cernora-0.1.0-py3-none-any.whl
|
|
116
|
+
test -f dist/cernora-0.1.0.tar.gz
|
|
117
|
+
sha256sum dist/*
|
|
118
|
+
- name: Publish to production PyPI through OIDC
|
|
119
|
+
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # release/v1
|
|
120
|
+
with:
|
|
121
|
+
packages-dir: dist/
|
|
122
|
+
print-hash: true
|
cernora-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Cernora are documented here. The project follows semantic versioning
|
|
4
|
+
while pre-1.0 compatibility is further defined by the documented compatibility tiers.
|
|
5
|
+
|
|
6
|
+
## 0.1.0 - 2026-08-14
|
|
7
|
+
|
|
8
|
+
Initial public release.
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Offline completed-export evaluation through EvidenceBundle v2, canonical import and
|
|
13
|
+
strict reload.
|
|
14
|
+
- Evaluator-owned Evidence v1, Score v1 and GateDecision v1 composition with fail-closed
|
|
15
|
+
outcomes.
|
|
16
|
+
- Explicit built-in offline-workflow and coding-task Profiles.
|
|
17
|
+
- Preview Profile and Adapter authoring protocols plus conformance helpers.
|
|
18
|
+
- Private-by-default project-local Profile scaffolding and explicit trusted local loading.
|
|
19
|
+
- Wheel-packaged workflow and coding examples that perform adapt, import, evaluate and strict
|
|
20
|
+
result reload without repository assets.
|
|
21
|
+
- A sanitized V1/V2 representative acceptance rebuild with deterministic three-run results
|
|
22
|
+
and corrupt, missing, authority-mismatch and traversal fail-closed checks.
|
|
23
|
+
- Apache-2.0 governance, compatibility, evidence-publication and local release guidance.
|
|
24
|
+
|
|
25
|
+
### Documentation
|
|
26
|
+
|
|
27
|
+
- Clarified that Cernora is the independent evaluation core in a composed system. Packaged
|
|
28
|
+
examples start from synthetic completed exports and do not claim Agent-runtime, sandbox,
|
|
29
|
+
runtime-receipt capture or Experiment Harness acceptance.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- No product-code or wire-contract change was made after final candidate acceptance;
|
|
34
|
+
release-day changes are limited to publication metadata and documentation.
|
|
35
|
+
|
|
36
|
+
### Compatibility
|
|
37
|
+
|
|
38
|
+
- Python 3.12 and 3.13 are the supported language targets; operating-system support is
|
|
39
|
+
narrower and follows the documented native-evidence matrix.
|
|
40
|
+
- EvidenceBundle v2 and import v2 are the only accepted public input formats.
|
|
41
|
+
- Supported Preview surfaces are preserved within `0.1.x`; authoring APIs are Preview and
|
|
42
|
+
may evolve with changelog and migration notes.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Contributing to Cernora
|
|
2
|
+
|
|
3
|
+
Thank you for helping improve Cernora. Contributions should preserve its narrow purpose:
|
|
4
|
+
deterministic, offline evaluation of already completed agent exports.
|
|
5
|
+
|
|
6
|
+
## Before you start
|
|
7
|
+
|
|
8
|
+
- Keep the evaluator independent of agent execution. It must not launch, credential,
|
|
9
|
+
supervise, sandbox or clean an agent process.
|
|
10
|
+
- Keep Agent Runtime and Experiment Harness implementations outside this package. Cernora may
|
|
11
|
+
accept a pure completed-export Adapter, but it must not absorb execution or orchestration.
|
|
12
|
+
- Do not add a Profile registry, automatic discovery, marketplace, hosted service or
|
|
13
|
+
runtime-provider abstraction.
|
|
14
|
+
- Do not include secrets, private evidence, real endpoint details, personal paths, raw
|
|
15
|
+
transcripts or customer data in code, fixtures, documentation or commit messages.
|
|
16
|
+
- Discuss compatibility-sensitive changes before implementation when the repository's
|
|
17
|
+
issue tracker is available.
|
|
18
|
+
|
|
19
|
+
See the [architecture](docs/public/architecture.md),
|
|
20
|
+
[compatibility matrix](docs/public/compatibility-matrix.md), and
|
|
21
|
+
[evidence policy](docs/public/evidence-publication-and-rebuild.md) before changing a public
|
|
22
|
+
contract.
|
|
23
|
+
|
|
24
|
+
## Development setup
|
|
25
|
+
|
|
26
|
+
Cernora supports Python 3.12 and 3.13. Install `uv`, clone the repository, and create the
|
|
27
|
+
locked development environment:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
uv sync --all-groups
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Run focused tests while developing. Before submitting a change, run the complete local
|
|
34
|
+
gate from the repository root:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
uv run pytest -q
|
|
38
|
+
uv run ruff check .
|
|
39
|
+
uv run ruff format --check .
|
|
40
|
+
uv run mypy
|
|
41
|
+
uv run python -m build
|
|
42
|
+
git diff --check
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The [local release checklist](docs/public/local-release-checklist.md) adds artifact and
|
|
46
|
+
wheel-only checks for release-candidate changes.
|
|
47
|
+
|
|
48
|
+
## Change requirements
|
|
49
|
+
|
|
50
|
+
Pull requests should:
|
|
51
|
+
|
|
52
|
+
1. explain the user-visible behavior and compatibility tier affected;
|
|
53
|
+
2. include deterministic tests for success, behavioral failure and malformed or
|
|
54
|
+
incompatible input where applicable;
|
|
55
|
+
3. preserve strict unknown-field, version, identity, digest and authority checks;
|
|
56
|
+
4. classify missing, corrupt or unverifiable evidence as inconclusive rather than pass;
|
|
57
|
+
5. keep fixtures small, neutral, reproducible and free of credentials or machine-specific
|
|
58
|
+
data; and
|
|
59
|
+
6. update `CHANGELOG.md` and migration notes for any Preview or Supported Preview change.
|
|
60
|
+
|
|
61
|
+
Do not weaken a fixture, expected observation, score, threshold or gate to make a test pass.
|
|
62
|
+
Fix the implementation or explain why the contract itself needs a reviewed versioned
|
|
63
|
+
change.
|
|
64
|
+
|
|
65
|
+
## Compatibility policy
|
|
66
|
+
|
|
67
|
+
Supported Preview interfaces remain compatible throughout `0.1.x`. A breaking change to
|
|
68
|
+
those interfaces requires `0.2.0` and migration notes. Profile and Adapter authoring APIs
|
|
69
|
+
are Preview: they may evolve within `0.1.x`, but breaking changes require a changelog entry,
|
|
70
|
+
migration notes and deprecation first where feasible. Internal modules carry no
|
|
71
|
+
compatibility promise.
|
|
72
|
+
|
|
73
|
+
EvidenceBundle v2 and import v2 are the only public input formats in `0.1.x`. Evidence,
|
|
74
|
+
Score and GateDecision retain their v1 wire identifiers; do not relabel or reinterpret
|
|
75
|
+
those bytes.
|
|
76
|
+
|
|
77
|
+
## Documentation and provenance
|
|
78
|
+
|
|
79
|
+
Use relative links, runnable commands and public names only. Generated evidence should be
|
|
80
|
+
rebuildable by a documented deterministic command. Digests establish content integrity;
|
|
81
|
+
they do not prove who produced content, malicious-producer resistance or immutable
|
|
82
|
+
history.
|
|
83
|
+
|
|
84
|
+
Contributions are accepted under the Apache License 2.0 as described in `LICENSE`.
|
cernora-0.1.0/LICENSE
ADDED
|
@@ -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 of
|
|
171
|
+
any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
cernora-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Cernora
|
|
2
|
+
Copyright 2026 杨杨
|
|
3
|
+
|
|
4
|
+
Cernora is developed by its individual contributors. This notice does not identify or
|
|
5
|
+
imply a sponsoring legal entity.
|
|
6
|
+
|
|
7
|
+
The Cernora source distribution and wheel do not vendor third-party source code. Runtime
|
|
8
|
+
and build dependencies are obtained separately and remain subject to their own licenses
|
|
9
|
+
and notices.
|