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

Build an Agent Research Packs layer for any agent host

Open HiveForensicsAI opened this issue 3 weeks ago • 1 comments

For human review. This is a feature request, not a ready implementation. A human maintainer will review and implement this manually. No code or PRs come with this issue. No version bump or npm publish is requested.

Summary

Build an Agent Research Packs layer on top of existing knolo-core primitives (Core Knowledge Images, the public Hub registry, MCP, Cortex/KAR, and Composition). Any agent host should be able to research with evidence-backed, receipted queries and share the results as portable, content-addressed artifacts that other agents, on the same host or a different one, can pin, verify, mount, and extend. This should not require a central vector database, a shared mutable memory, or trusting the producer.

This work is for every agent that can use Knolo, not for the separate Knolo Agents runtime. Existing examples already run @knolo/mcp with Google ADK, the OpenAI Agents SDK, Pydantic AI, and similar hosts. The same pack format and Hub flow should work for those hosts and for any later integration.

What already exists

Knolo (@knolo/core, Apache-2.0) is a local-first runtime and file format for Verifiable Knowledge Images. Sources, chunks, claims, metadata, and runtime state pack into a portable, content-addressed artifact (V4 packs / V5 images). Retrieval is lexical-first and deterministic (EQL), with optional semantic reranking. Everything runs locally after mount. Cryptographic roots (SHA-256, stateRoot/knowledgeRoot), commit history, and fail-closed verification make results reproducible and inspectable. Cortex supplies trace-based evidence loops. KAR supplies typed minimum-evidence sets and dossiers. Composition records cite images, packs, KAR sidecars, excerpts, or nested records offline without mutating roots. Offline attestations (cited / used) already exist.

Knolo Hub (hub.knolo.dev) is the public registry: discover, inspect, pin by digest, and mount packs. Queries never go through the Hub. Bytes are pulled and verified locally. The public registry supports agent metadata filters, a skills catalog, and a registry API (public GETs for discovery and manifests; kno_ Bearer tokens for publish). @knolo/cli already has commands for search, info, add, publish, and yank, plus knolo skill install and knolo skill publish. Private or partner registries are supported via --registry / KNOLO_HUB_URL.

@knolo/mcp 0.2.x already exposes a read-only stdio MCP server for pinned V5 images (knolo_search, knolo_get, knolo_verify, knolo_status, plus KAR and Cortex tools when a mount includes a kar block). Examples use it with Google ADK, the OpenAI Agents SDK, Pydantic AI, and other hosts. Mounts are pinned by sha256/stateRoot. Mismatches fail closed. The published server does not download images, open a runtime network connection, or write knowledge. Other host adapters in this repo (for example AI SDK tools) should be able to use the same images and receipts.

Recommended feature

Any agent host should be able to:

  1. Discover and mount existing knowledge (Hub packs or private registries) and run evidence-backed research queries that produce Cortex traces and retrieval receipts.
  2. Package research outputs (sources, claims, evidence links, traces, methodology metadata, and a host-supplied agent or session identity) into a new Verifiable Knowledge Image, or into a composition record plus a KAR sidecar.
  3. Share by publishing the image (or its digest) to Hub or a private registry. Other agents, regardless of host, pin by digest/stateRoot, verify, mount, cite via composition, and continue or review the research.

This keeps the core promise: knowledge is a durable, inspectable, portable runtime asset. Sharing is via immutable content-addressed digests and receipts, not a centralized mutable store. A separate knolo.io product is out of scope for this issue.

Proposed MVP

1. Research packaging helpers (Core / CLI / SDK)

Add a research-oriented template or a knolo research package command (or an equivalent SDK function) that takes agent session outputs plus Cortex/KAR traces and emits a V5 Knowledge Image with:

  • Research metadata: the question, methodology, sources with hashes/URIs, and findings linked to evidence chunks.
  • Embedded or sidecar Cortex traces and receipts.
  • Agent or session metadata so Hub can filter agent-produced or research packs. The identity should be host-supplied and host-agnostic, not tied to one runtime.

Lean on existing composition for citing prior packs and excerpts without rewriting them, and on KAR for the evidence set.

2. MCP extensions or thin host-side tools

Extend or complement @knolo/mcp with carefully scoped tools, or with host-side helpers that any agent can call:

  • knolo_hub_search / knolo_info: call the public Hub registry API.
  • knolo_pin / knolo_mount: download, verify digest/stateRoot, and mount. The image stays local after verification.
  • knolo_package_research: build the image from session artifacts and traces.
  • knolo_publish, or a host helper that uses the existing publish flow with a kno_ token.

Keep the server read-only for mounted images. Any write or publish stays host-controlled and verified. This matches the current MCP design and the examples already shipping with ADK, the OpenAI Agents SDK, and similar hosts. Equivalent helpers should be available to non-MCP adapters in this repo where that is straightforward.

3. Collaboration across agents and hosts

The sharing primitive is the published, content-addressed image, not a vendor-specific handoff protocol. A researcher agent produces a research pack and publishes it, or shares its digest/stateRoot. A reviewer or extender agent, on the same host or a different one, pins that digest, verifies it, mounts it, and continues or reviews. Composition and attestations handle citation.

Co-located agents can use shared local mounts and digests. Distributed agents publish to Hub or a private registry, then pin. No shared mutable memory is required.

4. Hub and skills polish

  • Filters and tags for research packs and agent-produced images.
  • Skills such as research-and-cite or share-findings that enforce searching pinned images, citing receipts, and packaging outputs. These should be installable via the existing knolo skill install command and usable from any host that can run Knolo skills or MCP tools.
  • An end-to-end example: one agent on a documented host researches a topic (mounts base packs, uses external tools as needed, runs a Cortex evidence loop), packages findings, and publishes; a second agent, preferably on a different documented host, discovers and pins by digest, verifies, and continues or reviews.

5. Private sharing (incremental)

This is already possible via custom registries (KNOLO_HUB_URL / --registry). Later work could add policy-gated private hubs or peer exchange of digests, with optional sync or merge for collaborative research graphs. Always require local verification of stateRoot/digest before use.

Priorities and philosophy

Start with the packaging helpers, MCP or host-side Hub discovery and pin, and a published example research loop that runs on at least one existing knolo-core host integration, with a second agent consuming the pack through the same pin-and-verify path. That is the highest-leverage addition, because the runtime, receipts, Cortex/KAR, composition, and Hub publish flow already exist.

Stay local-first. Hub is only for discovery and distribution. All queries, verification, and evidence evaluation happen after mount. Do not introduce a central mutable shared memory or vector index. The verifiable, content-addressed image is the sharing primitive: agents produce, pin, verify, cite, and extend research the same way developers pin packages, with cryptographic receipts instead of trust.

Out of scope

  • Implementation of hub-service internals in this issue
  • A version bump, tag, or npm publish as part of filing this issue
  • Silently changing the read-only contract of @knolo/mcp for mounted images
  • A centralized mutable shared-memory store, or work on the separate knolo.io product
  • Host-specific private paths or one person's computer layout
  • Work in the separate Knolo Agents runtime. That runtime may consume these packs later, but this issue should not depend on it.

Related

  • #143 (closed): Knolo Hub community sharing and a one-install path for agent hosts. This issue builds a research packaging and sharing layer on the same public hub, not a second catalog or a one-install plan.
  • #119 (closed): skill packs that users create and share on a hub (knolo skill install / publish). Research skills such as research-and-cite should reuse that flow.
  • #146 (open): Ollama-facing knolo_search / knolo_share tools. Related sharing theme, different surface.
  • #79 (closed) and #84 (closed): the read-only @knolo/mcp server and KAR/Cortex evidence tools.
  • #90 (closed), #102 (closed), and #103 (closed): MCP examples with the OpenAI Agents SDK, Google ADK, and Pydantic AI.
  • #81 (closed): Knolo Cortex traces, which research queries should produce and package.
  • #55 (closed): CLI publish and yank against live Hub APIs.

A human maintainer will review and implement this manually.

HiveForensicsAI avatar Nov 11 '26 19:11 HiveForensicsAI

The filed slice is on main.

  • #171 cites a research pack with one digest-bound composition record, and --graph stores the checked graph in the same image.
  • #172 adds knolo search --research (research=true, separate from --agents) and the skills research-and-cite and share-findings. A shared pack is pinned by the SHA-256 of the file bytes and the state root from knolo verify. commitDigest is not that pin.
  • knolo-hub#41 filters GET /api/v1/packs?research=true separately from agents=true. Production https://hub.knolo.dev is Ready. Existing rows stay out of that filter until they are verified again.

No version bump and no npm publish. @knolo/[email protected] does not include this work. Public skill publish to hub.knolo.dev was not run. The local proof is knolo skill publish and knolo skill install with --hub ./catalog.

HiveForensicsAI avatar Nov 13 '26 18:11 HiveForensicsAI