V5 quickstart
V5 KNOWLEDGE IMAGEVerify a V4 artifact, then migrate it into a V5 genesis image. The receipt records the source digest, the destination root, and the evidence identity mappings.
import {
migrateV4ToV5,
mountKnowledgeImageV5,
verifyKnowledgeImageV5,
} from '@knolo/core';
const { image, receipt } = await migrateV4ToV5(v4Bytes);
const verification = verifyKnowledgeImageV5(image);
const mounted = mountKnowledgeImageV5(image);
console.log({
verified: verification.valid,
stateRoot: mounted.commit.stateRoot,
migratedFrom: receipt.sourceDigest,
});Inspect the same bytes with the CLI:
knolo v5 info ./dist/knowledge.v5
knolo v5 health ./dist/knowledge.v5
knolo v5 studio ./dist/knowledge.v5knolo v5 studio prints the read-only KIP-0026 management snapshot. It does not open a Studio UI and it does not mutate the image.
V5 stateRoot identifies the image. KAR's knowledgeRoot is a different digest. Mount a V5 image before you evaluate KAR or open a Cortex session.