synthetic-schema-deviation expectations (manually calculated, synthetic)
A top-level shape differing from the documented schema rejects the whole file, with session_schema_deviation:
- session-sid-not-string.json: sessionId is not a string. Detection checks key names only; scanning validates types.
- session-msgs-not-array.json: messages is not an array.
Expectations
- Both files have files[*].status=“pending”; no imported events or cursor advancement.
- Two diagnostics, code=session_schema_deviation, one per file.