Skip to content

feat(verifier): commit terminal mode on verifier instance#1322

Closed
kunxian-xia wants to merge 3 commits into
feat/verifier-crypto-contractfrom
feat/verifier-mode
Closed

feat(verifier): commit terminal mode on verifier instance#1322
kunxian-xia wants to merge 3 commits into
feat/verifier-crypto-contractfrom
feat/verifier-mode

Conversation

@kunxian-xia
Copy link
Copy Markdown
Collaborator

Follow-up to #1321.

Moves the full-trace / prefix-run / single-shard-debug distinction from a per-call expect_halt flag onto the verifier instance as a VerifierMode field. Fixes the e2e callers that were deriving expect_halt from the proof itself, which made the halt-consistency check tautological.

  • VerifierMode { FullRun, PrefixRun, DebugSegment }; ZKVMVerifier::new(vk) defaults to FullRun.
  • verify_full_trace_proofs_halt + verify_single_shard_segment_halt collapsed into one mode-dispatched verify_proofs.
  • Callers pick mode at construction from out-of-band knowledge (exit_code, target_shard_id), never from the proof.
  • CLAUDE.md + docs/src/technical-overview.md rewritten around the three modes.

kunxian-xia and others added 3 commits April 22, 2026 21:03
Add VerifierMode{FullRun,PrefixRun,DebugSegment} on ZKVMVerifier and
collapse the full-trace + single-shard APIs into one mode-dispatched
verify_proofs. Fixes the e2e callers that were deriving expect_halt
from the proof itself, which made the halt-consistency check
tautological. Mode is chosen at construction from out-of-band info.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…dbook

technical-overview.md now states only the production-mode (FullRun)
guarantee. CLAUDE.md keeps the three-mode summary for contributors
and drops the stale pointer to the mdbook's long form.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Re-adds the check on the halting shard; bound to public_values.exit_code
via the halt-ecall chip's a0 register instance. PrefixRun and
DebugSegment, as dev-only modes, remain unaffected. Updates the
contract in CLAUDE.md and docs/src/technical-overview.md accordingly.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@kunxian-xia
Copy link
Copy Markdown
Collaborator Author

Per discussion offline, we think this change is not necessary any more.

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