← knobe.orgDocumentation
Implementations

One spec, one shared test corpus.

A protocol is defined by its specification and its test vectors. An implementation earns trust by agreeing with them. KNOBE Protocol v1 has a Python reference verifier and two JavaScript verifiers that reproduce its verdicts across the published test files, with one documented exception noted below.

The reference verifier

lens.py is the reference verifier: a single Python file that uses only the standard library, with no external dependencies. The published test vectors and their expected results are the arbiter of conformance; where they leave a detail undecided, lens.py is canonical for serialization ambiguity under spec §5, and rulings for everything else are documented in ERRATA.md, with normative text prevailing over observed reference behaviour and any conflict recorded there.

The browser Lens

The browser Lens (knobe.org/lens, site/lens.html) is a JavaScript verifier that runs entirely in the page: drop in a .knobe.md file and see the verdict, with nothing uploaded. It reproduces lens.py's verdicts across the 45 published test files, with one deliberate exception: in a browser, where numeric canonicalization cannot match Python's guarantees, it declines to issue a hash verdict on bare-numeric payloads (a §5 violation) and defers to lens.py as canonical for that case. That agreement was last checked in November 2026 with a harness that is not part of the repository's automated checks.

A JavaScript sibling engine

knobe-core.js is a JavaScript sibling verifier: a single standalone file, with no dependencies, that runs in Node and in the browser. It was written by closely studying lens.py: a sibling, sharing no code but sharing lineage.

Unlike the in-page browser Lens, it reproduces lens.py's verdicts including the bare-numeric case, and it goes beyond verification: it also seals, creates, and derives KNOBEs and evaluates their use conditions, using the same rules as the reference. It is the engine that Studio and the MCP server are built on.

Applications and integrations

Verifiers answer to the test vectors; applications build on the protocol. This page lists both. A listing is a factual entry, not an endorsement: each project answers to its own maintainer, and each states its own limits.

Listed on request. Each entry is self-reported by its maintainer and summarized from the listing request; the vector results are the maintainer's own, at the commit named.

To be listed, a project needs: a named maintainer; public source; if it verifies, behaviour checked against the published test vectors; and a plain statement of what it does and does not do. Open an issue with those four things and it goes in the list. For how to name a tool that builds on KNOBE, so people can tell it from the reference tools, see Name and mark use in the governance doc.

What has been checked

knobe-core.js and the reference verifier are run against the 45 published test files in this repository (the conformance vectors, the adversarial hardening set, the interpretation set, and the sealed examples). On every one, the two verifiers return identical verdicts: status, conformance level, body result, computed and stored hash, block counts, and exit code.

An unpublished generated-input run (about 61,000 inputs, July 2026) found no disagreements after an earlier run surfaced a floating-point formatting divergence, which was fixed. The harness is not public. Later review by an outside contributor found crash cases, fixed in November 2026.

The corpus is also how the specification improves. When an implementer building from the text reports an ambiguity, the steward resolves it as a documented ruling in ERRATA.md, pinned where practical by a new vector both reference engines agree on before publication; a Go verifier built in July 2026 with an AI coding agent at the steward's direction, from the specification text, with lens.py consulted for ambiguous edge cases, surfaced erratum E11 exactly this way. As of November 2026, no implementation has yet been confirmed as independent of the steward, as GOVERNANCE.md defines independence, and passed the full vector set: that is the open milestone the shared-governance triggers turn on, and the door is the issue tracker.

Running the check yourself

Both verifiers ship in this repository. The parity check runs both over every vector and example and reports agreement. It needs Python 3 and Node present, because it is a cross-language check by design.

# from the repository root
node knobe-core.selftest.mjs

What this shows, and what it does not. This demonstrates that a second implementation, in a different language, reproduces the reference verifier's behaviour across the published corpus and the generated inputs above. The scope is exactly that corpus and those inputs; KNOBE remains an open specification rather than a ratified standard, and lens.py remains the reference.

KNOBE is an open protocol for auditable plain-text knowledge objects that carry their source, history, limits, and obligations across human and AI systems. Built for accessibility, interoperability, and portability.