Skip to content

feat: versioned wire formats between Rust and Python - #61

Merged
wiseodd merged 6 commits into
mainfrom
feat/wire-schemas
Nov 27, 2026
Merged

wiseodd merged 6 commits into
mainfrom
feat/wire-schemas

Conversation

@wiseodd

@wiseodd wiseodd commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Adds crates/mogs-schema: Rust types for the job, events, bundle, results and inspect output, with JSON Schemas generated into schemas/. Every message except results.json carries "schema": 1. A different version fails with schema version N, expected M, and a missing or unknown key fails naming the key.

The Python grader writes and reads the new keys, and its tests check real child output and bundles against the schemas. Test cells gain a label. A test file's error is sent as data, so Python can rebuild the v0.7 message.

Closes #43

@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; the previous unknown-key issue is fixed, and no new blocking issue was found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous unknown-key issue is fixed, and no new blocking issue was found.

Summary

Adds Rust types and generated JSON Schemas for messages shared with Python.

  • Grader jobs, bundles, and events carry schema version 1.
  • Inspect output describes notebook details and test-file errors as structured data.
  • Rust types describe the existing Gradescope results format.
  • Test cells use source labels that show up in errors and tracebacks.

No new actionable issues were found in the changes since the previous review.

Reviews (2) · Last reviewed commit: "fix(grader): reject unknown keys in Pyth..." · Reviewed by Greptile

Comment thread src/mogs/grader/protocol.py Resolved
@wiseodd
wiseodd merged commit facf84f into main Nov 27, 2026
11 checks passed
@wiseodd
wiseodd deleted the feat/wire-schemas branch November 27, 2026 01:18
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.

Rust rewrite: versioned schemas for the Rust–Python boundary

1 participant