πŸ” Scan & Verify Tools

πŸ” Scan & Verify Tools

Rotkeeper includes tooling to audit file rot, detect drift, and confirm tomb integrity before archiving. These tools are designed for paranoid deployments, CI pipelines, and changelog enforcement rituals.

They complement one another: rc-scan.sh surfaces issues in the current filesystem, while rc-verify.sh inspects archived tombs and ensures SHA integrity against manifests.


πŸ“‚ What Gets Scanned?

Tools like rc-scan.sh and rc-verify.sh inspect:

For full usage details, see rc-scan.sh and rc-verify.sh.


πŸ§ͺ rc-scan.sh

This script walks the current environment and compares it to the tomb’s manifest. It detects:

Flags supported: - --manifest-only: skip disk scan, only report manifest status - --json-only, --md-only: limit output format - --dry-run: preview actions - --verbose: show extra debug info

Output includes a Markdown report in home/content/rotkeeper/scan-report-*.md and a JSON version in bones/reports/scan-report-*.json.


πŸ“ rc-verify.sh

This script compares file hashes against asset-manifest.yaml. It confirms that each listed file:

This is most useful after a pack/unpack cycle or before release. Failure will surface any corrupted or tampered content.

Flags: - --quiet: suppress normal output, exit codes only - --manifest: verify manifest entries only, skip full tomb unpack


🧾 Sample Output: Markdown Scan Report

## Missing Files
- bones/templates/ritual-missing.html

## Orphan Files
- home/assets/forgotten-favicon.ico

## File Digests
- `bones/scripts/rc-pack.sh`: a1b2c3d4e5f6…

🧠 Tips for Verification Workflows

Example integration into a CI pipeline:

bash rc-render.sh
bash rc-pack.sh
bash rc-scan.sh --json-only
bash rc-verify.sh --quiet

Exit codes: - 0: no issues - 1: warnings or mismatches (non-fatal) - 2: missing dependencies, unreadable manifests, or structural failures


Back to Documentation Index Continue to Changelog & Version Blessing

Author:

Project: Rotkeeper

Version: 0.2.3-pre

License: