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

Feature request: knolo research verify to check a received research pack's citations and trace

Open The3seus opened this issue 3 weeks ago • 1 comments

Problem

knolo research package (#170, #171, #172, shipped in @knolo/cli 6.2.5) writes a V5 research image that can carry a digest-bound composition record for a cited image, an optional checked KAR graph, and a Cortex trace that was verified before write. The receiving side has no single step that answers "where did this research come from and does it still check out?" Today a recipient runs knolo verify for the image roots, then has to know which composition, attestation, and Cortex commands to run, and with which embedded records, to re-check the citation and the trace.

Proposal

Add knolo research verify <image> (and a --json mode) for the receiving agent or person:

  • Verifies the image roots as knolo verify does.
  • Extracts the stored composition record, recomputes compositionRoot, and reports each cited image as digest-bound or material. With --cited <file> (repeatable) it checks supplied bytes against the record.
  • Re-verifies the stored Cortex trace against the cited image when that image is supplied.
  • Re-checks a stored KAR graph if present.
  • Prints a short provenance summary: host-supplied agent, cited stateRoot and SHA-256 values, trace status, and the artifact pin to share (file SHA-256 and stateRoot, not commitDigest).

Scope and acceptance criteria

  • Reuses verifyCompositionRecord, the existing Cortex verifier, and the KAR verifier. No new verification semantics.
  • Exit code is non-zero on any failed check, with the existing typed error codes (for example COMPOSITION_ROOT_MISMATCH, COMPOSITION_DIGEST_MISMATCH).
  • Digest mode without cited bytes succeeds and says so clearly. --require-material makes missing cited bytes fail.
  • examples/research-pack gains a step that runs the new command, and docs/guides/research-packs.md documents it.
  • The share-findings example skill is updated to tell the receiver to run this command.

Out of scope

  • Downloading cited images from Hub or a peer.
  • MCP write tools. @knolo/mcp stays read-only.
  • Model calls.

Related

  • #170, #171, #172 (research packages, citation, and skills)
  • #163 (Agent Research Packs, the umbrella request)
  • #78 (composition and attestation), #81 and #82 (Cortex)

A human maintainer will review and implement this manually.

The3seus avatar Nov 15 '26 11:11 The3seus

knolo research verify shipped in #187 and is in npm latest @knolo/[email protected] (it is also in @knolo/[email protected]).

The command reuses verifyKnowledgeImageV5, verifyCompositionRecord, verifyCortexAnswer, and the KAR checks. A failed check exits non-zero with the existing codes. Digest mode without cited bytes succeeds and says the bytes were not supplied. --require-material fails when they are missing.

examples/research-pack runs the command. docs/guides/research-packs.md documents it. examples/skills/share-findings/SKILL.md tells the receiver to run it.

Closing this issue.

HiveForensicsAI avatar Nov 18 '26 11:11 HiveForensicsAI