Skip to content

Spec/Dit: vg_dit_enter's contract makes the mode public - #4327

Closed
reaperhulk wants to merge 1 commit into
claude/dit-modefrom
claude/dit-mode-spec
Closed

reaperhulk wants to merge 1 commit into
claude/dit-modefrom
claude/dit-mode-spec

Conversation

@reaperhulk

@reaperhulk reaperhulk commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Spec change. vg_dit_enter's contract now makes the mode public. It is stacked on the TCB change #4326, and #4328 builds on it.

What changes

  • Spec.Dit.enterContract is enterSig.contract (A.withMode true) ….
  • enterApi sets pubMode := true.
  • The docs say the function's time may depend on whether the mode was on, which is public. The regenerated doc comment in crates/verified-garbage-asm-aarch64/src/dit.rs says the same.

Why

So that vg_dit_enter can branch on whether data independent timing is already on, and not write PSTATE.DIT then (#4328).

Proofs

vg_dit_clear's contract is unchanged. The current proof of vg_dit_enter still checks against the stronger contract. The only difference is the added mode equality in pub, which sig_implies_pub ignores.

🤖 Generated with Claude Code

https://claude.ai/code/session_015ajQWwnPmAfvKpXDUq9Tjq

So that `vg_dit_enter` may branch on whether data independent timing was
already on and not write PSTATE.DIT then.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ajQWwnPmAfvKpXDUq9Tjq
@reaperhulk

Copy link
Copy Markdown
Member Author

Folded into #4157, which now carries both Spec changes, on main. The DIT stack is being consolidated into four PRs: Spec (#4157), implementation (#4168), tokens (#4210), scope and the Apple barrier (#4357).

@reaperhulk reaperhulk closed this Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant