Status and verify should report a stale index when source files change
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
- Run
knolo-box build --config <config>so a scope (for exampleskills) has a pinned V5 image and a recorded source fingerprint. - Confirm
knolo-box status(andknolo_statusthrough@knolo/mcp) reports the pin matches. - Edit, add, or remove files under that scope without rebuilding.
- Run status again. The pin still matches the image bytes, and there is no
stale: true(or equivalent) and nobuiltAtcontrast 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: truealong withbuiltAt(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: truewithbuiltAt. - After a rebuild that matches current sources, status reports not stale and the pin still matches.
- Docs for
knolo-box statusandknolo_statusdescribe 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/box0.1.0
A human maintainer will review and implement this manually.