Skip to content

docs: add binary integrity verification section (P0-4)#19

Merged
beonde merged 2 commits intomainfrom
fix/docs-p0-checksum-docs
May 2, 2026
Merged

docs: add binary integrity verification section (P0-4)#19
beonde merged 2 commits intomainfrom
fix/docs-p0-checksum-docs

Conversation

@beonde
Copy link
Copy Markdown
Member

@beonde beonde commented May 2, 2026

Summary

Document the checksum verification behavior for the capiscio-core binary download.

Documentation Audit Reference

Phase: P0-4
Severity: Critical

Changes

  • README.md: Added "Binary Integrity Verification" section documenting CAPISCIO_SKIP_CHECKSUM env var
  • README.md: Added troubleshooting entry for checksum verification failures

Verification

  • Code examples verified against src/capiscio/manager.py
  • No banned phrases added

Document the checksum verification behavior, CAPISCIO_SKIP_CHECKSUM env var,
and add troubleshooting entry for checksum failures.

Ref: DOCS_REMEDIATION_PLAN P0-4 Part B
Copilot AI review requested due to automatic review settings May 2, 2026 17:57
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 2, 2026

✅ All checks passed! Ready for review.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project README to document how the Python wrapper verifies the integrity of the downloaded capiscio-core binary, including the CAPISCIO_SKIP_CHECKSUM escape hatch and related troubleshooting guidance.

Changes:

  • Added a “Binary Integrity Verification” section describing SHA-256 verification against the release checksums.txt.
  • Added a troubleshooting entry for checksum verification failures and a pointer to the new section.

Comment thread README.md
Comment on lines +64 to +72
On first run, the wrapper downloads the capiscio-core binary and verifies its SHA-256 checksum
against the published `checksums.txt` from the GitHub release.

If verification fails or the checksums file is unavailable:

```bash
# Temporary bypass (not recommended for production)
export CAPISCIO_SKIP_CHECKSUM=true
```
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 26d82cd — rewrote the section to clearly distinguish the two failure modes:\n1. Checksum mismatch (hard failure, cannot be bypassed)\n2. Checksums unavailable (can bypass with CAPISCIO_SKIP_CHECKSUM=true)

Comment thread README.md Outdated
Comment on lines +85 to +87
**Checksum verification failures:**
If you see "Checksum verification failed", the binary integrity could not be confirmed.
This can happen with pre-release versions or network issues. See the [Binary Integrity Verification](#binary-integrity-verification) section above.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 26d82cd — now documents both cases separately with their distinct error messages:\n- "Binary integrity check failed" → corruption/tampering, cannot be bypassed\n- "Checksum verification failed: checksums.txt could not be fetched" → network issue, can bypass

Address review comment: CAPISCIO_SKIP_CHECKSUM only bypasses when
checksums.txt is unavailable/missing entry. Actual checksum mismatches
are hard failures that cannot be bypassed.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 2, 2026

✅ All checks passed! Ready for review.

@beonde beonde merged commit a1ac269 into main May 2, 2026
18 checks passed
@beonde beonde deleted the fix/docs-p0-checksum-docs branch May 2, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants