You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: JSON output can violate the v1 schema for non-integer transcript ordinals #56
--json output can fail validation against the published schemas/codex-unlock-v1.schema.json when the last transcript record carries a non-integer or negative ordinal.
The parser accepts any JavaScript number, while the schema requires integer | null with minimum: 0. With ordinal: 1.5 or ordinal: -1 in the last rollout record, both inspect --json (exit 0) and unlock --json (exit 2) produce documents that ajv rejects (/transcript/lastRecord/ordinal must be integer,null / must be >= 0). ordinal: 3 validates.
What you expected
Every JSON v1 document emitted by the CLI validates against the published schema, because docs/json-v1.md recommends that consumers validate. A single malformed transcript should not make a whole list result, or the result of a completed unlock, fail validation.
Activity
fix: escape terminal controls and bound transcript ordinals