Skip to content

feat: share runtime result preview validation#17

Merged
intel352 merged 1 commit into
mainfrom
refactor/result-preview-validation
May 25, 2026
Merged

feat: share runtime result preview validation#17
intel352 merged 1 commit into
mainfrom
refactor/result-preview-validation

Conversation

@intel352
Copy link
Copy Markdown
Contributor

Summary

  • add protocol.ValidateRuntimeResultPreview for bounded JSON result previews
  • route RuntimeExecutionResult validation through the shared helper
  • cover valid, oversized, and non-JSON-serializable preview cases

Verification

  • RED: with the production helper absent, GOWORK=off go test ./protocol -run TestValidateRuntimeResultPreview -count=1 failed because ValidateRuntimeResultPreview was undefined
  • GREEN: GOWORK=off go test ./protocol -run 'TestValidateRuntimeResultPreview|TestRuntimeExecutionResultValidatesTimingAndPreview' -count=1
  • GOWORK=off go test ./... -count=1
  • git diff --check

Adversarial note: this does not move proof receipt ownership into compute-core; it only extracts the generic bounded JSON preview validation rule shared by runtime and proof result surfaces.

@intel352 intel352 merged commit a72e88c into main May 25, 2026
4 checks passed
@intel352 intel352 deleted the refactor/result-preview-validation branch May 25, 2026 06:31
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