Repository navigation
CLI: send images by SHA-256 alone and stop decoding them (sc-8999); CLI 0.2.20 - #129
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
cli-sha256-snapshots
branch
from
December 3, 2026 10:30
31a40d8 to
0697326
Compare
ndbroadbent
force-pushed
the
cli-sha256-snapshots
branch
from
December 3, 2026 10:43
0697326 to
1189584
Compare
VisualCIdocspring/visualci · build #112 · 333 unchanged · no changes This PR vs base: 4 changed since #71, across 5 builds docspring/visualci · journeys · build #110 · 12 unchanged · no changes This PR vs base: 2 changed since #80, across 4 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
marked this pull request as ready for review
December 3, 2026 11:26
…LI 0.2.19 Images go to POST /snapshots with sha256 and no fingerprint; the server fingerprints files it doesn't have. The group check hashes image entries by file SHA-256 and sends image_hash: sha256. PDFs keep their fingerprint, since their bytes change every run while the drawing doesn't. Needs #127 live in production first.
…the CLI's fingerprint; plugin 0.1.48 cli.md and screenshots.md say the CLI sends images by their SHA-256 and VisualCI fingerprints them; pdfs.md (and its skill) says why PDFs keep their fingerprint: their bytes change every run while what they draw doesn't.
…keep the CLI's fingerprint
ndbroadbent
force-pushed
the
cli-sha256-snapshots
branch
from
December 3, 2026 11:43
1189584 to
eacdd50
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CLI half of sc-8999. Depends on #127 being merged and live in production (kept as a draft until then): today's production server requires
fingerprint, and this PR's CI visual job uploads to production with the CLI it builds.What changes
client::classifyno longer decodes images: an image's registration hassha256and nofingerprint. The server answers known or unknown per file and fingerprints new files (app/: snapshots by SHA-256 with the fingerprint optional; the server fingerprints new files; registration in a few queries (sc-8999) #127).entry_ofuses the file's SHA-256 for an image's manifest entry, andcheck_groupssendsimage_hash: "sha256", which app/: snapshots by SHA-256 with the fingerprint optional; the server fingerprints new files; registration in a few queries (sc-8999) #127 understands. So the group path doesn't decode either.visualci fingerprint <file>still decodes; that's its job.visualci uploadlocally ("decoding X"); now the server fails that snapshot ("the image couldn't be read").uploadsends), screenshots.md and pdfs.md say images go by hash and VisualCI fingerprints them, and why PDFs keep the CLI's fingerprint. pdfs.md is a skill page: skills/ regenerated, plugin 0.1.48. design.md and reference/api.md say the same (images by hash, Nathan's decision; PDFs keep the CLI's fingerprint, and why). The docs'VISUALCI_VERSION=lines move in a later commit, after the release is out.Tests
On agents-build-2:
cargo fmt --all --check,cargo clippy --locked -p visualci-cli --all-targets -- -D warnings,cargo test --locked -p visualci-cli, skills.mjs --check, (33 passed after rebasing onto #128; the registration test now checks images carry no fingerprint and texts do), andcargo metadata --lockedin app/ is clean.Shortcut: sc-8999