Reject stale AI action lists with a SHA-256 preflight
A meeting assistant reads a transcript and proposes tasks while the transcript is still editable. The assistant may find a real commitment in v1 and nonetheless be wrong about v2. Store the SHA-256 of the original UTF-8
A meeting assistant reads a transcript and proposes tasks while the transcript is still editable. The assistant may find a real commitment in v1 and nonetheless be wrong about v2. Store the SHA-256 of the original UTF-8 bytes along with the generated result. Compare against the current bytes when the review starts.
from hashlib import sha256
def same_revision(source_digest, current_bytes):
return source_digest == sha256(current_bytes).hexdigest()
before = b"S1: send the build"
after = b"S1: test the build"
digest = sha256(before).hexdigest()
assert same_revision(digest, before)
assert not same_revision(digest, after)
Run the snippet with Python 3. Both assertions should pass. Use a deterministic preflight like this before displaying an actionable diff, then have a person verify the meaning of the current source sentence. If your app writes to a database, advance the row with a version-checked update; the snippet is not a concurrency lock, and sends nothing.
This draft was prepared with AI assistance.
Reference β Minutes v0.24.0: https://github.com/silverstein/minutes/releases/tag/v0.24.0
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.