Skip to content

SL-13: certified standard-library canonical JSON reader #422

Closed

Description

@afflom

Scoped delivery child of #276, delivered by merged PR #415 (contributor: humuhumu33).

Scope: LexLeanStd.JsonRead.readJson and readJsonFile, reading the canonical JSON value of §21.7; the file form requires its final LF. Scope is the existing valid-UTF-8 contract and seeded differential, with its disclosed nesting-limit distinction.

Acceptance:

  • Resolve the current contributor-source SL-12 collision consistently to the reserved SL-13 across authored register, scenario, named test, dispatch and documentation before regeneration. Host retains SL-12; see PR SL-13: reading canonical JSON in the standard library (#276) #415 comment SL-13: reading canonical JSON in the standard library (#276) #415 (comment).
  • Run both readers under the calculus evaluator and pinned rustc against canonical_json::Json::parse plus exact canonical-byte equality, on canonical and edited texts; exercise the twelve fixed planted-defect vectors for whitespace, integer/string/key/container/trailing-byte rules.
  • Check actual Lean axiom policies, real pinned-Lean certification and exact rust-std effects; certified exports must equal committed packages and realize the tested lowered programs.
  • Complete the coordinated locks/export/golden writers, final source review and complete final-head gate.

This scoped delivery is complete. #276 remains open for compiler-wide adoption and self-hosting acceptance.

Closure evidence (2026-11-09)

  • SL-13: reading canonical JSON in the standard library (#276) #415 landed on release/v0.4 as 4dc5b803c5b0771f9f19563373515d0a2c2f313a. Its tree 33fe57a21b700d3232ae9bd46751364fbe9cedca is exactly the contributor head 5da570ae7413dadd4e4821312c25d5387a69a38e and hosted CI checkout b414e8594173f5df04149a66236a773bc5587ac0. The actual merge retains SL-14: maps and sets in the standard library (#276) #414 and contributor ancestry.
  • Final CI 42596285175 completed 45/45 jobs successfully, including same-run honesty, all supported hosts, example verification and Atlas join. Reproducibility 42596285277 also passed on the final head.
  • The rest-job log records conformance_sl_13 ... ok and conformance_sl_14 ... ok. The inspected JsonRead case checks 300 evaluator inputs and 1,500 rustc inputs per reader against parsing plus exact canonical-byte equality. The landed test has thirteen fixed planted defects, covering the original requested rules and the additional committed vector.
  • JsonRead uses SL-13 in its register, scenario, dispatch and named test; it does not take the reserved Host SL-12 identifier. Both roots are eligible for rust-std with exactly allocation, overflow. The case checks actual pinned-Lean certified exports, equality with committed packages and the tested lowered programs; the full gate also verifies the declared axiom policies and regenerated locks/goldens/records.

The valid-UTF-8 precondition, required file LF and disclosed nesting-limit distinction remain unchanged. This audit reused completed source and CI evidence, without rerunning any gate or regeneration. Only this delivery child is closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions