Skip to content

[CTX-0242] feat(ux): wire V1-V3 harness gates on frameHash equality - #423

Merged
Xuepoo merged 2 commits into
mainfrom
ctx-0242/feat-panel-live-v1-v3
Sep 8, 2026
Merged

Xuepoo merged 2 commits into
mainfrom
ctx-0242/feat-panel-live-v1-v3

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Task: CTX-0242 | Closes #422

Wires the CTX-0238 §(d) V1–V3 visual harness to the CTX-0244 frameHash digest (on origin/main via #421).

Headless gates (crates/bitty-runtime/tests/panel_live_framehash.rs, 4 passed + 1 ignored-manual):

  • V1: gapped digest differs from no-gap baseline; fresh re-run reproduces exactly; gap pixel == theme bg.
  • V2: focus switch changes digest; switch-back restores exactly.
  • V3: workspace-alias vs tabs-shim digests equal for identical content.
  • Socket round-trip: real Runtime frame digests identically over bitty.debug/frameHash; zero pixel bytes on wire.

Live ws4 (prebuilt binary, grim proofs in worktree recording/ctx-0242/ uncommitted): V1 gap band #1E1E2E + marker isolation PASS; V2 tab-focus diffs confined to content bbox + bit-exact restore (excl. compositor clock) PASS; V3 CLI parity (old+new resolve, same 6 cmds) PASS; ungranted frameHash ScopeDenied fail-closed PASS. Live digest equality stays human-consent manual by design (no bypass).

Gates: fmt/clippy -D warnings/workspace-tests/windows-gnu/actionlint/markdownlint/act -n green, except pre-existing intermittent flake control_socketpair_roundtrip_headless_live_instance (reproduces on clean origin/main; passes solo; may need CI retry).

Headless digest gates (V1 gap-diff+rerun, V2 focus-change+restore, V3 alias-equal) plus a real-Unix-socket frameHash round-trip proving the served digest equals the present-path digest with zero pixel bytes. Live-grant ws4 ceremony stays local-manual (ignore-gated). Task: CTX-0242
@Xuepoo Xuepoo added feat Feature area:ux P2 Priority: medium labels Sep 8, 2026
@Xuepoo Xuepoo added this to the v0.1.0 milestone Sep 8, 2026
… digest-store race

V1/V2/V3 ticks auto-publish into the global RGBA digest store while a FrameDigest bearer is live; untethered from the file-local guard, a parallel tick (V2 frame 2) could overwrite the socket test's published frame mid-window, failing only on slow macOS runners. Take the serial guard in all tests, assert single-present quiescence, and pin served frameSeq.
@Xuepoo
Xuepoo merged commit 29772a3 into main Sep 8, 2026
10 checks passed
@Xuepoo
Xuepoo deleted the ctx-0242/feat-panel-live-v1-v3 branch September 8, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ux feat Feature P2 Priority: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CTX-0242] Panel live V1-V3 gates on frameHash equality + ws4 proof

1 participant