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

Feature request: KITE evaluate and certificate verify tools in @knolo/mcp and the @knolo/tools adapters

Open The3seus opened this issue 3 weeks ago • 1 comments

Problem

KITE shipped in @knolo/core 6.2.3 as the optional @knolo/core/kite entry, and knolo kite evaluate / knolo kite verify shipped in @knolo/cli 6.2.6 (#174, #175). Agents that use Knolo through tools cannot reach it yet. @knolo/mcp 0.2.3 exposes knolo_search, knolo_get, knolo_verify, knolo_status, and, for mounts with a kar block, knolo_kar_evaluate, knolo_kar_verify, and knolo_cortex_verify. The adapters built on @knolo/tools (@knolo/ai-sdk, @knolo/mastra, @knolo/openai-agents) expose the same set. An agent host that receives a KITE certificate has to shell out to the CLI to check it.

Proposal

Add read-only KITE tools to the shared tool layer so every host gets them the same way:

  • knolo_kite_evaluate: takes mountId and an inline knolo-kite-contract-1 contract, runs the evaluation against the pinned image, and returns the verdict, met and unmet obligations, and the InvarianceRoot.
  • knolo_kite_verify: takes mountId and a certificate, remounts the pinned image, recomputes the derivation with verifyKiteCertificate, and returns pass or fail with a typed reason.

Enable them only when a mount opts in (for example a kite block, mirroring how kar enables the KAR tools), so existing configs keep the current tool list.

Scope and acceptance criteria

  • Tools live in @knolo/tools and are surfaced by @knolo/mcp and the AI SDK, Mastra, and OpenAI Agents adapters.
  • Caller bounds can only lower the documented caps (5000 graph nodes, 2048 variants, 2 counterfactual changes, 64 retrievals). A request that tries to raise one is rejected.
  • BOUND_EXCEEDED returns no certificate, matching core.
  • Each call writes a receipt in the existing audit directory.
  • Tool descriptions keep the KITE wording: a verdict describes the contract, not real-world truth, and SATISFIED stays a KAR word.
  • Tests cover a passing certificate, a tampered certificate, a mount without the opt-in, and a bound violation.
  • Docs: packages/mcp/README.md and docs/kite/README.md describe the tools and the opt-in.

Out of scope

  • Any write, publish, or Hub tool.
  • Model calls. The host still owns any model.
  • Changes to KITE semantics, verdicts, or caps.

Related

  • #174 and #175 (KITE core and CLI)
  • #84 and #87 (KAR and Cortex tools in @knolo/mcp, the pattern to follow)
  • #79 (@knolo/mcp), #92 (@knolo/ai-sdk), #93 (@knolo/mastra), #90 (OpenAI Agents SDK)

A human maintainer will review and implement this manually.

The3seus avatar Nov 15 '26 11:11 The3seus

knolo_kite_evaluate and knolo_kite_verify shipped in #188. They are in npm latest @knolo/[email protected], @knolo/[email protected], @knolo/[email protected], @knolo/[email protected], and @knolo/[email protected].

A mount opts in with a kite block. Configs without that block keep the previous tool list. A caller can lower a documented bound and cannot raise one. BOUND_EXCEEDED returns no certificate. After the mount is authorized and opted in, the call writes one evidence receipt. A verdict describes the contract, not real-world truth. SATISFIED stays a KAR word.

packages/mcp/README.md and docs/kite/README.md describe the tools and the opt-in.

Closing this issue.

HiveForensicsAI avatar Nov 18 '26 11:11 HiveForensicsAI