Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

KDNA Python Core and Read — aikdna 0.8.0rc2

A separate Python implementation of a historical pinned Core and Read contract using only the standard library. Python 3.11 or later is declared; this material-reference repair is checked with CPython 3.12.13 on macOS arm64; prior release observations remain under their original scope. Other Python versions and platforms require separate verification. This is the 0.8.0rc2 source candidate, not the published PyPI aikdna==0.6.0 distribution. PyPI 0.6.0 has a different implementation and dependency graph; installing it does not install this source candidate. Implementation checks do not establish independent acceptance or registry availability.

Core admission

from kdna import admit_file, inspect_snapshot, component_semantics_contract

result = admit_file("asset.kdna")
if result["status"] == "accepted":
    view = inspect_snapshot(result["snapshot"])
else:
    print(result["reason"], result["diagnostics"])

print(component_semantics_contract())

admit_bytes(bytes) captures bytes and performs the same bounded admission. version_tuple() returns the pinned tuple. Snapshots are opaque and process-local; inspect_snapshot returns a defensive copy. Keep the snapshot object alive while using it. Serialized objects cannot recreate snapshot authority.

The public contract tuple is Core 0.3.0, Canonical IR 0.2.0 and Read 0.2.0. Container and Payload remain 0.2.0; A/C/E/P digest profiles are unchanged. Exact reference package and semantic source pins are in kdna/public-contract-binding.json: Core 0.24.0-rc.component-semantics.2 and Read 0.3.0-rc.component-semantics.2. These pins describe the reference observations for this implementation, not installable Python dependencies.

This source candidate does not implement native Container 0.6.0 / Read 0.7.0-candidate, the current browser contract, or parity with the native CLI 0.39.0-rc.native-sections.3 graph. Package versions do not upgrade its protocol tuple. See auxiliary support boundaries.

Finite component interpretation

component_semantics_contract() returns a defensive copy of the fixed public definition, profile and carrier descriptor. Explicit taxonomy, candidate-set and discriminator-set content is interpreted under that definition. Method IR values contain declaration, declaration_presence and component_interpretations. Missing authored arrays remain distinct from declared empty arrays. Content without an opt-in declaration stays undeclared.

Known critical carriers are accepted only in their prescribed typed extension locations. Unknown critical extensions block interpretation. Contents of an opaque extension value are not recursively treated as extensions. Component failures expose the public diagnostic, nullable judgment/component references and no interpreted body, with Core valid and interpretation blocked; structural invalidity remains distinct.

Static adoption fields and recomputable digests establish consistency only. They do not restore a live creation context, authenticate an editor or authorize an action.

Material references remain optional for statement-bearing materials. A present resource_ref must resolve to an actual resource; its entry and digest are still validated. Referenced materials and sources enter the complete IR/Read closure without inserting absent fields.

Read embedding

Import admit_read_request, project, read_file, read_bytes, read_snapshot, create_trusted_control_provider and create_trusted_host_provider from kdna.read. Read operations are async. Providers are explicit trusted embedding boundaries and must not be constructed from untrusted request data.

The control callback returns admission_response_limit_bytes. The Host observer receives {request, snapshot} and returns the public Host decision with snapshot/digest identity, scope, request/decision IDs, policy and bounded timing. Scope and current policy are observed again before disclosure. The optional delivery callback confirms transport only by returning exactly True. Expansion requires the original live snapshot and issuing Host provider; reopening a file creates a different snapshot. Projection alone does not grant reading permission.

Build and verify from the complete source checkout

Use Python 3.11 or later. CPython 3.12.13 on macOS arm64 has been checked for this source candidate; other interpreter/platform combinations need their own verification. From python-sdk/, build into a new output directory:

python -B -m unittest discover -s tests -p 'test_*.py' -v
python -I -B scripts/build-source-distribution.py --output /absolute/new-python-dist

The standard-library builder produces aikdna-0.8.0rc2-py3-none-any.whl, aikdna-0.8.0rc2.tar.gz and source-artifacts.json with their byte counts and SHA-256 hashes. It refuses an existing output directory. The in-tree PEP 517 backend has no build dependencies; a standard frontend can also build the wheel with python -m pip wheel --no-index --no-build-isolation --no-deps --wheel-dir /absolute/wheels ..

Check each artifact in a separate fresh virtual environment, from a working directory outside the source tree:

python -m venv /absolute/python-wheel-check
/absolute/python-wheel-check/bin/python -m pip install --no-index --no-deps --no-build-isolation --no-cache-dir /absolute/new-python-dist/aikdna-0.8.0rc2-py3-none-any.whl
/absolute/python-wheel-check/bin/python -I -B -m unittest discover -s /absolute/complete-source/python-sdk/tests -p 'test_*.py' -v

Repeat with another new environment and aikdna-0.8.0rc2.tar.gz to check source installation. Both routes use the installed runtime and the complete checkout's existing fixtures/oracles. Wheels contain kdna runtime source, generated JSON, metadata and licenses. Source distributions also contain the backend, source builder and tests. Retired sources and local caches are excluded. These checks cover the declared historical contract and Host/handle/budget/delivery boundaries; they do not establish native/browser parity or production Host identities.

The python-source-artifacts workflow job responds only to a genuine published, non-draft Python prerelease whose exact python/0.8.0rc2 tag resolves to the checked source commit. It builds unsigned source artifacts and checks both cold installations. It has read-only repository permissions and no PyPI upload step. The retired signing script is not a current build prerequisite. SHA-256 identifies bytes, not a publisher or human approval. Stable PyPI publication remains unavailable until a separate publication route, collision/identity checks and release approval are implemented; no --skip-existing success is treated as byte identity.

Authority limits

Core admission establishes technical validity, not content quality, authorship, Creation acceptance, reading permission or action authorization. Encrypted, signed and checksum-bearing containers remain capability-unavailable where the reference Core rejects them. Plan admission and execution remain unavailable. There is no legacy loader, raw-payload fallback, automatic migration or action executor. Historical files under retired/ are excluded from distribution; documentation outside this README remains historical.

Metadata

Release files for aikdna 0.8.0rc2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aikdna 0.8.0rc2
File Size Uploaded Provenance
aikdna-0.8.0rc2.tar.gz 569.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aikdna 0.8.0rc2
File Interpreter ABI Platform
aikdna-0.8.0rc2-py3-none-any.whl Python 3 none any Details

Total release size: 694.1 kB

Release files / aikdna-0.8.0rc2.tar.gz

Download URL aikdna-0.8.0rc2.tar.gz
Size 569.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0a236732ad0139ba453b54dc5202329a21a20484e7855695350770d47e09c5c6
BLAKE2b-256 checksum
How to use checksums
22ae5774762f36163e6c36029e466b019a04771c023889bf03c9a179ad4345ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.4

Release files / aikdna-0.8.0rc2-py3-none-any.whl

Download URL aikdna-0.8.0rc2-py3-none-any.whl
Size 124.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ab307691bf2fd413483c8c2be590242c8c00bd4b4ca3e370cd7896587a694ab
BLAKE2b-256 checksum
How to use checksums
5ba9c4ce6dac17c5ba2b244bebb4a0671aabbf75a6cb3eb7558906801a69b56d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.14.4

Security for aikdna 0.8.0rc2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page