knolo-core icon indicating copy to clipboard operation
knolo-core copied to clipboard

Feature request: KAR evaluation and KITE certificate replay in the Python runtime

Open The3seus opened this issue 3 weeks ago • 0 comments

Problem

The Python runtime knolo on PyPI is 5.5.1. It mounts, queries, and verifies V5 Knowledge Images, but its README says it does not implement KAR, coverage, or composition, and the KITE docs say Python does not implement KITE. The Rust crate (also 5.5.1) already evaluates the public KAR V5 conformance vectors (#77, #88) and replays a KITE certificate from a knolo-kite-world-1 snapshot. The README roadmap lists "KAR on Rust, Python, and ICP" as still ahead. Python agent hosts (CrewAI, Pydantic AI, Google ADK in Python, smolagents, Haystack, Agno) can mount an image natively, but cannot check a KAR result or a KITE certificate without Node.

Proposal

Bring the Python runtime to the same read-only verification level as the Rust crate:

  1. evaluate_kar_v5 and verify_kar_v5 for the frozen kar-1-research-1 evaluator over a mounted V5 image and a committed evidence graph.
  2. replay_kite_certificate that replays a KITE derivation from a knolo-kite-world-1 snapshot, as the Rust crate does, without searching the image.

Scope and acceptance criteria

  • Python passes the public KAR vectors in conformance/kar/v1 and the KITE vectors in conformance/kite/v1, with byte-identical roots to TypeScript and Rust.
  • SATISFIED keeps its KAR meaning: evidence requirements were met, not that a claim is proven. UNSATISFIED_EVIDENCE_REQUIREMENTS is a completed evaluation.
  • Fail-closed behavior on malformed graphs, plans, snapshots, and root mismatches, with typed errors.
  • No new runtime dependencies beyond what the package already uses, or a documented reason for any new one.
  • CI runs the Python vectors next to the existing Rust and TypeScript checks.
  • The Python README "Current Scope" section and the root README version paragraph are updated, and a new PyPI version is cut only through the existing release workflow.

Out of scope

  • A Python pack builder, V5 writer, or CEG compiler.
  • Cortex and composition in Python (can be a later issue).
  • ICP canister changes.

Related

  • #77 and #88 (native Rust KAR vectors)
  • #175 (KITE certificate replay in Rust)
  • #95 (CrewAI), #103 (Pydantic AI), #102 (Google ADK), #128 (smolagents), #127 (Haystack), #126 (Agno)

A human maintainer will review and implement this manually.

The3seus avatar Nov 15 '26 11:11 The3seus