Skip to content

machine: the fingerprint is one hash, and Incoming one field - #97

Merged
aledbf merged 2 commits into
mainfrom
machine/one-fingerprint-hash
Oct 2, 2026
Merged

aledbf merged 2 commits into
mainfrom
machine/one-fingerprint-hash

Conversation

@aledbf

@aledbf aledbf commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor
  • One hash. identity() existed so FingerprintCache could memoise the file sums alone; the cache went in 2d9b7e3, and identity stayed as a second length-prefixed writer whose string was hashed again as identity=<len>:.... Shape, topology and host CPU are now written into the fingerprint's hash directly. Every fingerprint changes: no checkpoint saved before resumes after. Agreed: nothing is in production.
  • One Incoming. IncomingDefer bool and Incoming string were two fields for one -incoming argument, plus a validate case to keep them apart. Incoming = "defer" is QEMU's own word, as --incoming defer already was on the CLI. spin sets IncomingDefer in one place (internal/runner/qemu/spec.go); its PR follows this one.

Local mutate, empty SPIN_MACHINE_OUTPUT: 38 refused, 0 survived.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

aledbf and others added 2 commits October 1, 2026 22:24
identity() was split out so FingerprintCache could memoise the file sums alone; the cache is
gone, and identity was a second length-prefixed writer whose output was hashed again. The
shape, the topology and the host CPU are written into the fingerprint's hash directly. Every
fingerprint changes with it: no checkpoint taken before this resumes after it.

IncomingDefer and Incoming were two fields for -incoming's one argument, with a validate case
to keep them apart. Incoming takes "defer", QEMU's own word, as the CLI already did.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@aledbf
aledbf merged commit c5baaa7 into main Oct 2, 2026
1 check passed
@aledbf
aledbf deleted the machine/one-fingerprint-hash branch October 2, 2026 01:27
aledbf added a commit that referenced this pull request Oct 2, 2026
fingerprint-diff compared qemu, kernel, bios and pvh, so a change to what machine/ hashes or
how - #97 folded the fingerprint into one hash - moved every fingerprint while the verdict
said checkpoints still resume. hack/release records Fingerprint itself, of the shipped tree
with a named CPU, as fingerprint_sha256, and the verdict compares it with the rest.

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.

1 participant