Repository navigation
[CTX-0244] feat(ipc): frameHash lossless digest method - #421
Merged
Merged
Conversation
Implements bitty.debug/frameHash: SHA-256 (std-only) over canonical BFH1 header + headless_rgba. Same CTX-0188 consent minter, no new scope, new AutomationFamily::FrameDigest (never widens Capture), TTL cap 120s, 2 digests/s, local-attested transport only, ScopeDenied fail-closed, digest audit in the bounded log. Raw pixel channel stays deferred. Task: CTX-0244, Closes #420.
This was referenced Sep 8, 2026
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.
Priority: P2 | Area: ipc | Labels: feat,area:ipc,P2 | Milestone: v0.1.0 | RFC: OQ-xxx | Task: CTX-0244
Closes #420.
Owner-approved spec (decisions not relitigated):
bitty.debug/frameHashdigest method per.worktrees/ctx-0244/ctx-0244-design-note.md. Raw pixel channel stays deferred indefinitely — this PR implements NO pixel transport.What it does:
BFH1 || width_be32 || height_be32 || frameSeq_be64 || headless_rgba; response is 32-byte hex + geometry, < 512 bytes.debug.trace+terminal.inspect); NEWAutomationFamily::FrameDigest(Capture never widened, both directions tested).attest_local_peerat the verified accept boundary; no TCP listener exists); ScopeDenied fail-closed on all auth failures;Unavailableon empty surfaces (never a hash of nothing).Tests (all headless/in-process, CI-safe):
Gates (local): fmt PASS; clippy -D warnings PASS; cargo test --workspace --all-targets --locked PASS (0 failed); windows-gnu check PASS; actionlint PASS; markdownlint PASS; act -n (ci + codeql) PASS. Evidence: worktree recording/ctx-0244/ (uncommitted).
Risks / follow-ups for reviewer: