Skip to content

Framing core with contracts, ledger for every surface, and integer-rendering evidence (not yet run) - #58

Draft
hyperpolymath wants to merge 1 commit into
claude/beta-member-orderfrom
claude/beta-framing
Draft

hyperpolymath wants to merge 1 commit into
claude/beta-member-orderfrom
claude/beta-framing

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Stacked on #57 (base claude/beta-member-order), the top of the #53 → #54 → #55 → #57 stack. Follows the owner rulings of 2026-12-02: beta covers every ledger surface; keep the integer fast path and prove it; specify tests, do not prove them.

No verifier has been run. Nothing here is PROVEN.

What is in the PR

Path Content
src/framing_core.rs matches_canonical (the canonical bytes, optionally plus one line feed) and line_end (where a line stops), dependency-free, with Pearlite contracts behind cfg(creusot)
src/profile.rs, src/records.rs call the core; behaviour unchanged
verification/creusot/ includes the new file by path; one more true control and one more false control; SCOPE and the gate self-test follow
tests/integer_rendering.rs J-9 evidence: integer fast path against the ryu-js path
verification/PROOF-STATUS.adoc new sections: profiles and framing (F-1 to F-6), command-line tool (C-1 to C-5, boundary A-8), and a table giving each test file's oracle, inputs and what a pass shows

Not written, by agreement with the hub until the first Creusot run: contracts on classify, Records::parse, canonicalize_records, the JSON-LD entry point and the whole CLI, and the std::fs / std::io boundary specification (A-8). Their rows exist and say so.

Evidence (executed here, rustc 1.99.1)

Check Result
cargo test --locked --all-features 177 passed, 0 failed
matches_canonical against the previous rule all pairs of 364 short byte strings, both settings, equal
line_end and the record splitter against the previous splitter every start in those strings; 3,280 inputs; equal
Planted mutants of src/framing_core.rs 4 of 4 fail the tests
tests/integer_rendering.rs exhaustive for magnitudes up to 2^17, ±8 around powers of two and ten, 200,000 sampled: fast path and ryu-js path give the same bytes
Wider run of the same comparison (scratch program, not committed; ryu-js 1.0.3) 134,217,729 exhaustive, 18,448 boundary and 200,000,000 sampled values, all equal; fast path 26.0 vs 43.8 ns per value on large integers, 17.3 vs 53.6 on small ones (one machine, one run)
pearlite-syn 0.15.0 syntax check 37 + 7 + 13 + 8 contract terms parse
scripts/tests/proof-gate-test.sh (stub verifiers) 11 of 11 cases
clippy -D warnings, cargo fmt --check clean
scripts/proven-coverage.sh no new uncovered line; one counted test added to reach the mismatch branch through classify

While writing matches_canonical I introduced and caught a subtraction that would have underflowed on an empty input; the test for it (matches_canonical(b"", b"{}", true)) is in the file.

Row census

Denominator: 27 obligations across the four sections (J 9, R 7, F 6, C 5).

Token Count
PROVEN 0
PROVEN-WITH-AXIOMS 0
TESTED 19
ASSUMED 0
OPEN 8

Trust boundaries: 8, all ASSUMED; A-8 (std::fs, std::io) has no written specification yet. Under the beta gate, TESTED blocks a tag exactly as OPEN does, so all 27 remain to be proved. Engineering proofs are not PWG-graded.


Generated by Claude Code

Owner rulings of 2026-12-02: beta covers every ledger surface, the
integer fast path stays and is to be proved, and tests are specified,
not proved.

- src/framing_core.rs: matches_canonical and line_end, dependency-free,
  with Pearlite contracts (not yet run) and differential tests.
  profile.rs and records.rs call them. Included by path in the harness,
  with one more true and one more false control.
- tests/integer_rendering.rs: the integer fast path against the ryu-js
  path for the equal double, byte for byte (TESTED evidence for J-9).
- verification/PROOF-STATUS.adoc: sections for profiles and framing
  (F-1 to F-6), the command-line tool (C-1 to C-5, boundary A-8), and
  the oracle, generator and evidence boundary of every test file.

No verifier has been run. 27 obligations: PROVEN 0, TESTED 19, OPEN 8.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4QvDfneftEg71bUadt3v3
@gitnotebooks

gitnotebooks Bot commented Dec 2, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/hyperpolymath/ijson-jcs/pull/58

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: fcf14661-bd3c-44e1-8d98-5a09d3383ff3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

sonarqubecloud Bot commented Dec 2, 2026

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

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.

2 participants