zenodotus 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.
- zenodotus-0.1.0/.github/workflows/ci.yml +57 -0
- zenodotus-0.1.0/.github/workflows/promote-main.yml +153 -0
- zenodotus-0.1.0/.github/workflows/release.yml +92 -0
- zenodotus-0.1.0/.gitignore +11 -0
- zenodotus-0.1.0/CODE_OF_CONDUCT.md +133 -0
- zenodotus-0.1.0/CONTRIBUTING.md +8 -0
- zenodotus-0.1.0/LICENSE +216 -0
- zenodotus-0.1.0/PKG-INFO +409 -0
- zenodotus-0.1.0/README.md +166 -0
- zenodotus-0.1.0/SECURITY.md +42 -0
- zenodotus-0.1.0/docs/CONCEPT.md +119 -0
- zenodotus-0.1.0/docs/POSITIONING.md +58 -0
- zenodotus-0.1.0/hestia.yml +8 -0
- zenodotus-0.1.0/pyproject.toml +44 -0
- zenodotus-0.1.0/src/zenodotus/__init__.py +7 -0
- zenodotus-0.1.0/src/zenodotus/__main__.py +5 -0
- zenodotus-0.1.0/src/zenodotus/cassette.py +84 -0
- zenodotus-0.1.0/src/zenodotus/cli.py +137 -0
- zenodotus-0.1.0/src/zenodotus/discovery_log.py +50 -0
- zenodotus-0.1.0/src/zenodotus/gates.py +196 -0
- zenodotus-0.1.0/src/zenodotus/leakcheck.py +153 -0
- zenodotus-0.1.0/src/zenodotus/panel.py +365 -0
- zenodotus-0.1.0/tests/evals/cassettes/clean-complete.json +29 -0
- zenodotus-0.1.0/tests/evals/cassettes/mediocre-readme.json +43 -0
- zenodotus-0.1.0/tests/evals/fixtures/clean-complete/CONTRIBUTING.md +14 -0
- zenodotus-0.1.0/tests/evals/fixtures/clean-complete/LICENSE +21 -0
- zenodotus-0.1.0/tests/evals/fixtures/clean-complete/README.md +261 -0
- zenodotus-0.1.0/tests/evals/fixtures/clean-complete/src/tablekit.py +48 -0
- zenodotus-0.1.0/tests/evals/fixtures/mediocre-readme/CONTRIBUTING.md +3 -0
- zenodotus-0.1.0/tests/evals/fixtures/mediocre-readme/LICENSE +1 -0
- zenodotus-0.1.0/tests/evals/fixtures/mediocre-readme/README.md +11 -0
- zenodotus-0.1.0/tests/evals/fixtures/mediocre-readme/src/core.py +2 -0
- zenodotus-0.1.0/tests/evals/suite.py +136 -0
- zenodotus-0.1.0/tests/test_cassette.py +95 -0
- zenodotus-0.1.0/tests/test_cli.py +174 -0
- zenodotus-0.1.0/tests/test_evalsuite.py +64 -0
- zenodotus-0.1.0/tests/test_gates.py +226 -0
- zenodotus-0.1.0/tests/test_leakcheck.py +94 -0
- zenodotus-0.1.0/tests/test_panel.py +265 -0
- zenodotus-0.1.0/tests/test_smoke.py +35 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [develop]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [develop]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: actions/setup-python@v5
|
|
16
|
+
with:
|
|
17
|
+
python-version: "3.11"
|
|
18
|
+
- run: python -m pip install --upgrade pip
|
|
19
|
+
- run: pip install -e ".[dev]"
|
|
20
|
+
- run: ruff check .
|
|
21
|
+
- run: python -m pytest -q
|
|
22
|
+
|
|
23
|
+
# Leak self-check (issue #11): scan the repo for Kromatic-internal markers.
|
|
24
|
+
# MUST pass before the public flip (issue #6) — this is that prerequisite.
|
|
25
|
+
leak-check:
|
|
26
|
+
name: Leak self-check
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4
|
|
30
|
+
- uses: actions/setup-python@v5
|
|
31
|
+
with:
|
|
32
|
+
python-version: "3.11"
|
|
33
|
+
- run: python -m pip install --upgrade pip
|
|
34
|
+
- run: pip install -e .
|
|
35
|
+
- run: python -m zenodotus.leakcheck .
|
|
36
|
+
|
|
37
|
+
# Aggregate gate (org standard): a single required check named "CI Required"
|
|
38
|
+
# that summarizes the real CI jobs, fail-closed.
|
|
39
|
+
ci-required:
|
|
40
|
+
name: CI Required
|
|
41
|
+
needs: [test, leak-check]
|
|
42
|
+
if: always()
|
|
43
|
+
runs-on: ubuntu-latest
|
|
44
|
+
steps:
|
|
45
|
+
- name: Aggregate CI result
|
|
46
|
+
env:
|
|
47
|
+
TEST_RESULT: ${{ needs.test.result }}
|
|
48
|
+
LEAK_RESULT: ${{ needs.leak-check.result }}
|
|
49
|
+
run: |
|
|
50
|
+
echo "test=$TEST_RESULT leak-check=$LEAK_RESULT"
|
|
51
|
+
for r in "$TEST_RESULT" "$LEAK_RESULT"; do
|
|
52
|
+
case "$r" in
|
|
53
|
+
success|skipped) ;;
|
|
54
|
+
*) echo "::error::CI job result '$r' is not green"; exit 1 ;;
|
|
55
|
+
esac
|
|
56
|
+
done
|
|
57
|
+
echo "CI Required: green"
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
name: Promote Main
|
|
2
|
+
|
|
3
|
+
# Deliberate, human-triggered develop -> main promotion. zenodotus is a 2-tier
|
|
4
|
+
# PyPI library: develop is integration, main is the ref that release tags are
|
|
5
|
+
# cut from (see release.yml). There is no staging env here — mirrors the
|
|
6
|
+
# pattern in Kromatic-Innovation/ideate-core and Kromatic-Innovation/panelist,
|
|
7
|
+
# adapted for this repo's `CI Required` aggregate check (.github/workflows/ci.yml).
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
inputs:
|
|
12
|
+
sha:
|
|
13
|
+
description: "SHA on develop to promote (default: current develop tip)"
|
|
14
|
+
required: false
|
|
15
|
+
reason:
|
|
16
|
+
description: Promotion reason for audit trail
|
|
17
|
+
required: true
|
|
18
|
+
|
|
19
|
+
permissions:
|
|
20
|
+
contents: write
|
|
21
|
+
actions: read
|
|
22
|
+
statuses: read
|
|
23
|
+
|
|
24
|
+
jobs:
|
|
25
|
+
promote:
|
|
26
|
+
name: Fast-forward Promote to Main
|
|
27
|
+
runs-on: ubuntu-latest
|
|
28
|
+
env:
|
|
29
|
+
PROMOTION_REASON: ${{ github.event.inputs.reason }}
|
|
30
|
+
REQUESTED_SHA: ${{ github.event.inputs.sha }}
|
|
31
|
+
steps:
|
|
32
|
+
- name: Check out repository
|
|
33
|
+
uses: actions/checkout@v6
|
|
34
|
+
with:
|
|
35
|
+
fetch-depth: 0
|
|
36
|
+
|
|
37
|
+
- name: Resolve promoted SHA and verify develop ancestry
|
|
38
|
+
run: |
|
|
39
|
+
set -euo pipefail
|
|
40
|
+
git fetch --no-tags --prune origin develop main
|
|
41
|
+
|
|
42
|
+
if [ -n "${REQUESTED_SHA}" ]; then
|
|
43
|
+
SOURCE_SHA="${REQUESTED_SHA}"
|
|
44
|
+
else
|
|
45
|
+
SOURCE_SHA="$(git rev-parse origin/develop)"
|
|
46
|
+
fi
|
|
47
|
+
TARGET_SHA="$(git rev-parse origin/main)"
|
|
48
|
+
|
|
49
|
+
if ! git merge-base --is-ancestor "$SOURCE_SHA" origin/develop; then
|
|
50
|
+
echo "::error::${SOURCE_SHA} is not an ancestor of develop."
|
|
51
|
+
exit 1
|
|
52
|
+
fi
|
|
53
|
+
|
|
54
|
+
if ! git merge-base --is-ancestor "$TARGET_SHA" "$SOURCE_SHA"; then
|
|
55
|
+
echo "::error::Fast-forward precondition failed: main is not an ancestor of the promoted SHA."
|
|
56
|
+
exit 1
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
echo "source_sha=$SOURCE_SHA" >> "$GITHUB_ENV"
|
|
60
|
+
echo "target_sha=$TARGET_SHA" >> "$GITHUB_ENV"
|
|
61
|
+
|
|
62
|
+
- name: Require successful develop CI run for the promoted SHA
|
|
63
|
+
env:
|
|
64
|
+
GH_TOKEN: ${{ github.token }}
|
|
65
|
+
run: |
|
|
66
|
+
set -euo pipefail
|
|
67
|
+
echo "Waiting for a completed, successful 'CI' run on develop @ ${source_sha}..."
|
|
68
|
+
for i in $(seq 1 30); do
|
|
69
|
+
run_json=$(gh api "/repos/${GITHUB_REPOSITORY}/actions/workflows/ci.yml/runs?head_sha=${source_sha}&branch=develop&event=push" --jq '.workflow_runs[0] // empty')
|
|
70
|
+
if [ -n "$run_json" ]; then
|
|
71
|
+
status=$(echo "$run_json" | jq -r '.status')
|
|
72
|
+
conclusion=$(echo "$run_json" | jq -r '.conclusion')
|
|
73
|
+
if [ "$status" = "completed" ]; then
|
|
74
|
+
if [ "$conclusion" = "success" ]; then
|
|
75
|
+
echo "develop CI succeeded for ${source_sha}."
|
|
76
|
+
break
|
|
77
|
+
fi
|
|
78
|
+
echo "::error::develop CI run for ${source_sha} completed with conclusion '${conclusion}'."
|
|
79
|
+
exit 1
|
|
80
|
+
fi
|
|
81
|
+
echo " ($i/30) CI run status=${status}; waiting 30s..."
|
|
82
|
+
else
|
|
83
|
+
echo " ($i/30) no CI push run found yet for ${source_sha}; waiting 30s..."
|
|
84
|
+
fi
|
|
85
|
+
if [ "$i" -eq 30 ]; then
|
|
86
|
+
echo "::error::Timed out waiting for a successful develop CI run for ${source_sha}."
|
|
87
|
+
exit 1
|
|
88
|
+
fi
|
|
89
|
+
sleep 30
|
|
90
|
+
done
|
|
91
|
+
|
|
92
|
+
- name: Load workflow-bot App credentials from 1Password
|
|
93
|
+
uses: 1password/load-secrets-action@v4
|
|
94
|
+
with:
|
|
95
|
+
export-env: true
|
|
96
|
+
env:
|
|
97
|
+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
|
|
98
|
+
KROMATIC_WORKFLOW_BOT_APP_ID: op://Infrastructure/kromatic-workflow-bot/app-id
|
|
99
|
+
KROMATIC_WORKFLOW_BOT_PRIVATE_KEY: op://Infrastructure/kromatic-workflow-bot/private-key
|
|
100
|
+
|
|
101
|
+
- name: Mint GitHub App installation token
|
|
102
|
+
id: app-token
|
|
103
|
+
uses: actions/create-github-app-token@v3
|
|
104
|
+
with:
|
|
105
|
+
app-id: ${{ env.KROMATIC_WORKFLOW_BOT_APP_ID }}
|
|
106
|
+
private-key: ${{ env.KROMATIC_WORKFLOW_BOT_PRIVATE_KEY }}
|
|
107
|
+
|
|
108
|
+
- name: Validate promotion push token
|
|
109
|
+
env:
|
|
110
|
+
PROMOTION_PUSH_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
111
|
+
run: |
|
|
112
|
+
set -euo pipefail
|
|
113
|
+
if [ -z "${PROMOTION_PUSH_TOKEN:-}" ]; then
|
|
114
|
+
echo "::error::App-minted promotion token is empty; GitHub App token minting likely failed."
|
|
115
|
+
exit 1
|
|
116
|
+
fi
|
|
117
|
+
|
|
118
|
+
- name: Push fast-forward promotion as bot
|
|
119
|
+
env:
|
|
120
|
+
PROMOTION_PUSH_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
121
|
+
run: |
|
|
122
|
+
set -euo pipefail
|
|
123
|
+
update_payload=$(jq -nc --arg sha "$source_sha" '{sha:$sha,force:false}')
|
|
124
|
+
update_url="https://api.github.com/repos/${GITHUB_REPOSITORY}/git/refs/heads/main"
|
|
125
|
+
http_status=$(curl -sS -o /tmp/promote_main_ref_update.json -w "%{http_code}" -L -X PATCH \
|
|
126
|
+
-H "Accept: application/vnd.github+json" \
|
|
127
|
+
-H "Authorization: Bearer ${PROMOTION_PUSH_TOKEN}" \
|
|
128
|
+
-H "X-GitHub-Api-Version: 2022-11-28" \
|
|
129
|
+
"$update_url" \
|
|
130
|
+
-d "$update_payload")
|
|
131
|
+
if [ "$http_status" != "200" ]; then
|
|
132
|
+
echo "::error::Failed to fast-forward main to ${source_sha} via refs API (HTTP ${http_status})."
|
|
133
|
+
cat /tmp/promote_main_ref_update.json
|
|
134
|
+
exit 1
|
|
135
|
+
fi
|
|
136
|
+
|
|
137
|
+
- name: Write promotion audit summary
|
|
138
|
+
run: |
|
|
139
|
+
{
|
|
140
|
+
echo "## Main Promotion"
|
|
141
|
+
echo "- repository: \`${GITHUB_REPOSITORY}\`"
|
|
142
|
+
echo "- initiated_by: \`${GITHUB_ACTOR}\`"
|
|
143
|
+
echo "- promoted_sha: \`${source_sha}\`"
|
|
144
|
+
echo "- reason: ${PROMOTION_REASON}"
|
|
145
|
+
echo "- run_url: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
|
|
146
|
+
echo ""
|
|
147
|
+
echo "main is now at this SHA. Tag a release from main:"
|
|
148
|
+
echo ""
|
|
149
|
+
echo '```'
|
|
150
|
+
echo "git fetch origin main && git checkout main && git merge --ff-only origin/main"
|
|
151
|
+
echo "git tag vX.Y.Z && git push origin vX.Y.Z"
|
|
152
|
+
echo '```'
|
|
153
|
+
} >> "$GITHUB_STEP_SUMMARY"
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Actions pinned to full commit SHAs (not mutable tags). A compromised
|
|
4
|
+
# maintainer of any upstream action can retag `v4`/`release/v1`/etc. and
|
|
5
|
+
# push malicious code into our next release, which our trusted-publishing
|
|
6
|
+
# identity would then happily sign. SHA pins make action content
|
|
7
|
+
# immutable — upgrades are explicit PRs, not silent.
|
|
8
|
+
# Comment after each pin records the semver tag the SHA corresponded to
|
|
9
|
+
# at pin time, for human-readable version tracking.
|
|
10
|
+
#
|
|
11
|
+
# Modeled directly on athenaeum's working release.yml (Kromatic-Innovation/
|
|
12
|
+
# athenaeum, verified live via PyPI Trusted Publishing — no API token
|
|
13
|
+
# anywhere). PyPI's Trusted Publishing supports registering a "pending
|
|
14
|
+
# publisher" for a project name that has never been uploaded, so — unlike
|
|
15
|
+
# npm — zenodotus does NOT need a manual bootstrap upload: register the
|
|
16
|
+
# pending publisher on pypi.org first, then the first `git push origin
|
|
17
|
+
# vX.Y.Z` publishes for real with zero stored secrets from day one.
|
|
18
|
+
|
|
19
|
+
on:
|
|
20
|
+
push:
|
|
21
|
+
tags:
|
|
22
|
+
- "v*"
|
|
23
|
+
|
|
24
|
+
permissions:
|
|
25
|
+
contents: read
|
|
26
|
+
|
|
27
|
+
jobs:
|
|
28
|
+
build:
|
|
29
|
+
name: Build sdist + wheel
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
permissions:
|
|
32
|
+
contents: read
|
|
33
|
+
id-token: write # for PEP 740 build-provenance attestations
|
|
34
|
+
attestations: write
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
37
|
+
|
|
38
|
+
- name: Set up Python
|
|
39
|
+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
|
|
40
|
+
with:
|
|
41
|
+
python-version: "3.12"
|
|
42
|
+
|
|
43
|
+
- name: Install build tooling
|
|
44
|
+
run: |
|
|
45
|
+
python -m pip install --upgrade pip
|
|
46
|
+
pip install build
|
|
47
|
+
|
|
48
|
+
- name: Verify tag matches pyproject.toml version
|
|
49
|
+
run: |
|
|
50
|
+
tag="${GITHUB_REF_NAME#v}"
|
|
51
|
+
proj=$(python -c "import tomllib,sys; print(tomllib.load(open('pyproject.toml','rb'))['project']['version'])")
|
|
52
|
+
if [ "$tag" != "$proj" ]; then
|
|
53
|
+
echo "::error::Tag $GITHUB_REF_NAME ($tag) does not match pyproject.toml version ($proj)"
|
|
54
|
+
exit 1
|
|
55
|
+
fi
|
|
56
|
+
|
|
57
|
+
- name: Build distributions
|
|
58
|
+
run: python -m build
|
|
59
|
+
|
|
60
|
+
- name: Upload build artifacts
|
|
61
|
+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
62
|
+
with:
|
|
63
|
+
name: dist
|
|
64
|
+
path: dist/
|
|
65
|
+
|
|
66
|
+
publish:
|
|
67
|
+
name: Publish to PyPI
|
|
68
|
+
needs: build
|
|
69
|
+
runs-on: ubuntu-latest
|
|
70
|
+
environment:
|
|
71
|
+
name: pypi
|
|
72
|
+
url: https://pypi.org/p/zenodotus
|
|
73
|
+
permissions:
|
|
74
|
+
id-token: write # OIDC exchange with PyPI + attestation signing
|
|
75
|
+
attestations: write
|
|
76
|
+
steps:
|
|
77
|
+
- name: Download build artifacts
|
|
78
|
+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
79
|
+
with:
|
|
80
|
+
name: dist
|
|
81
|
+
path: dist/
|
|
82
|
+
|
|
83
|
+
# pypa/gh-action-pypi-publish is a Docker container action, pinned by
|
|
84
|
+
# semver tag rather than SHA — pinning at a SHA causes the container
|
|
85
|
+
# pull to 404 ("manifest unknown"). pypa is a first-party trusted
|
|
86
|
+
# publisher and the OIDC exchange with PyPI verifies both the repo
|
|
87
|
+
# and the workflow ref at publish time, same tradeoff athenaeum's
|
|
88
|
+
# release.yml documents.
|
|
89
|
+
- name: Publish to PyPI via Trusted Publishing
|
|
90
|
+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
|
|
91
|
+
with:
|
|
92
|
+
attestations: true
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
+
orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
- Demonstrating empathy and kindness toward other people
|
|
21
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
- Giving and gracefully accepting constructive feedback
|
|
23
|
+
- Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
- Focusing on what is best not just for us as individuals, but for the overall
|
|
26
|
+
community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
- The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
+
any kind
|
|
32
|
+
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
- Public or private harassment
|
|
34
|
+
- Publishing others' private information, such as a physical or email address,
|
|
35
|
+
without their explicit permission
|
|
36
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official email address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
**oss@kromatic.com**. All complaints will be reviewed and investigated promptly
|
|
64
|
+
and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series of
|
|
86
|
+
actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
|
93
|
+
ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
113
|
+
community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.1, available at
|
|
119
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by
|
|
122
|
+
[Mozilla's code of conduct enforcement ladder][mozilla].
|
|
123
|
+
|
|
124
|
+
[homepage]: https://www.contributor-covenant.org
|
|
125
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
126
|
+
[mozilla]: https://github.com/mozilla/diversity
|
|
127
|
+
|
|
128
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
129
|
+
[https://www.contributor-covenant.org/faq][faq]. Translations are available at
|
|
130
|
+
[https://www.contributor-covenant.org/translations][translations].
|
|
131
|
+
|
|
132
|
+
[faq]: https://www.contributor-covenant.org/faq
|
|
133
|
+
[translations]: https://www.contributor-covenant.org/translations
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Zenodotus is a bootstrap scaffold under active build-out (see issues). Until it
|
|
4
|
+
reaches its "prove itself" milestone (docs/CONCEPT.md) it stays private.
|
|
5
|
+
|
|
6
|
+
- Python >= 3.11. `pip install -e ".[dev]"`, `ruff check .`, `pytest`.
|
|
7
|
+
- The `discovery_log` module is load-bearing — do not weaken its schema without
|
|
8
|
+
updating docs/CONCEPT.md and the prove-itself evals.
|
zenodotus-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
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
|
+
Copyright 2026 Kromatic Innovation
|
|
205
|
+
|
|
206
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
207
|
+
you may not use this file except in compliance with the License.
|
|
208
|
+
You may obtain a copy of the License at
|
|
209
|
+
|
|
210
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
211
|
+
|
|
212
|
+
Unless required by applicable law or agreed to in writing, software
|
|
213
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
214
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
215
|
+
See the License for the specific language governing permissions and
|
|
216
|
+
limitations under the License.
|