Knolo Verify Action: Check Knowledge Images in GitHub CI
Knolo Verify is a composite GitHub Action that runs a pinned @knolo/cli over the packs, Knowledge Images, attestations and Cortex traces you commit. Here is how to set it up.
Knolo is the open-source, local-first Knowledge Image runtime and format from Hive AI: Apache-2.0, published as @knolo/core on npm, with the source in the Knolo Core GitHub repo. A Knolo Knowledge Image is a bounded, content-addressed artifact, so it can be checked byte for byte. The Knolo Verify action runs that check in CI on every pull request.
What the Knolo Verify action does
Knolo Verify is a composite GitHub Action that lives in the Knolo Core repo. It installs a pinned @knolo/cli and runs it over the artifacts you have committed: .knolo packs, V5 Knowledge Images, compositions, attestations and Cortex traces.
It is deliberately small. It does not add verification rules of its own, build packs, call a model or talk to Knolo Hub. The rules are the ones the Knolo CLI already applies on your machine, so a result in CI means the same thing as a result locally.
Pin the Knolo action and the Knolo CLI
Two pins make the job reproducible:
- Pin the action to a commit of the Knolo Core repo, not a branch.
- Set
cli-versionto an exact version. It is required. The action installs that version withnpm install --global --ignore-scripts, and Node defaults to 20.
The current @knolo/cli on npm is 6.2.9, so a minimal workflow step looks like this:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: HiveForensics-AI/knolo-core/.github/actions/knolo-verify@<commit>
with:
cli-version: 6.2.9
packs: dist/*.knolo
images: dist/knowledge.v5
attestations: attestations/cited.json
cortex-traces: dist/knowledge.v5=traces/answer.cortex.json
Replace <commit> with the Knolo Core commit you have reviewed.
Which Knolo command runs for each input
Each input maps to one existing Knolo CLI command:
packsrunsknolo verifyon V4 packs.imagesrunsknolo v5 healthon V5 Knowledge Images.compositionsrunsknolo compose verify.attestationsrunsknolo verify-attestation.cortex-tracesrunsknolo cortex verifyagainst the image the trace was made from.diff-baserunsknolo difffor V4 packs against a base commit.
The action docs list the full set of inputs. Background on what each check proves is in Knolo verification, composition, attestations and Knolo Cortex.
Two Knolo CI details that trip people up
diff-baseneeds a commit the checkout can already resolve. A shallow clone will not have it, which is why the example setsfetch-depth: 0.fail-on-diffdefaults tofalse. A diff is reported, but the job only fails on it if you turn that on.
What a green Knolo check means
A passing job means the pinned Knolo CLI accepted the artifacts: the bytes, roots and references check out. It does not mean a claim inside the knowledge is true. That line matters. Knolo verification proves which knowledge was used and that it was not changed. Whether the knowledge is right is still a human decision.
Get started with Knolo
- Install Knolo and try the V5 quickstart to build your first Knowledge Image.
- Add the Knolo Verify action to the repo where you commit it.
- Read the open specifications and project records on Knolo.org.
- Star or open an issue on the Knolo Core repo on GitHub.
More Knolo developer docs live at knolo.dev.
knolo · github-actions · ci · verification · knolo-cli · open-source