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

Status and verify should report a stale index when source files change

Open HiveForensicsAI opened this issue 3 weeks ago • 0 comments

For human review. This came from a usage review of knolo-box. 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

knolo_status and knolo-box status only check that the image file matches its pin. They do not compare the current source fingerprint with the one the index was built from. After sources under a scope change, status can still report a pin match with no staleness signal, so callers keep querying an index that no longer matches the files on disk.

Steps to reproduce

  1. Run knolo-box build --config <config> so a scope (for example skills) has a pinned V5 image and a recorded source fingerprint.
  2. Confirm knolo-box status (and knolo_status through @knolo/mcp) reports the pin matches.
  3. Edit, add, or remove files under that scope without rebuilding.
  4. Run status again. The pin still matches the image bytes, and there is no stale: true (or equivalent) and no builtAt contrast that shows sources moved on.

Expected behavior

  • Status (CLI and knolo_status) compares the current source fingerprint to the fingerprint stored when the index was built.
  • When they differ, report stale: true along with builtAt (and ideally both fingerprints or a short summary of what changed).
  • Optionally support rebuild on a schedule or when files change, so a stale index can be refreshed without a manual knolo-box build.
  • Pin checks stay fail-closed: a matching pin must not be presented as "fresh" when sources have drifted.

Why it matters

Operators and agents treat a green pin match as "safe to search." Without a source-staleness signal, deleted or rewritten content stays searchable until someone happens to rebuild, and new content stays invisible.

Acceptance criteria

  • After editing sources under a scoped root without rebuilding, status reports stale: true with builtAt.
  • After a rebuild that matches current sources, status reports not stale and the pin still matches.
  • Docs for knolo-box status and knolo_status describe the staleness fields.
  • Related #115 (closed) fixed reloading a running MCP server after a rebuild. This issue is about detecting source changes before a rebuild.

Related

  • #115 (closed): stale image served after rebuild
  • #110 (closed): Knolo Box Memory
  • #111 @knolo/box 0.1.0

A human maintainer will review and implement this manually.

HiveForensicsAI avatar Nov 09 '26 10:11 HiveForensicsAI