Skip to content

fix(lint): ez 1.16.0, bolt 1.66.0; clear bolt findings - #71

Merged
ngngardner merged 5 commits into
mainfrom
build/bolt-1.65
Nov 16, 2026
Merged

ngngardner merged 5 commits into
mainfrom
build/bolt-1.65

Conversation

@ngngardner

@ngngardner ngngardner commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What moved

  • bolt tool pin v1.27.0 -> v1.65.0 (ez.toml, ez.lock.toml); bolt check is the lint command now
  • flake input ez -> c9f4855 (v1.16.0, whose mkLint runs bolt check); bend stays 222de99 (2.0.40)
  • bolt.bend: removed the retired param setting (C011) and the wrap warn override. closed (L002) is back at error, and the debt comments are gone

Rules fixed

  • S007 x11: String.eq(x, "") -> String.is_empty(x)
  • S012 x8: Bool.not(Nat.is_lt(..)) -> Nat.is_ge(..), Bool.not(U32.is_eq(..)) -> U32.is_ne(..). The framing proofs bridge through a new lemma ge_not_lt in NatOrder; no law statement changed
  • S013 x1, U020 x1, C011 x1
  • S009 x2: the server accept loops take one Step.Pool instead of slots/limited/done/tracked. New guarantee laws/MaxZeroIsNoLimit.bend: a pool is limited exactly when max is not 0, and it joins on the done channel it was made with
  • S003 x270: one parameter per line in wrapped headers (bolt format, whitespace only, plus hand wrapping)
  • L002 x166: every single-case law is now handled one of two ways
    • 108 are quantified into the rule they were an instance of, and proved. Each old case is an instance of its new law
    • 58 are deleted because a general law implies them. Examples: Reason* by ReasonPhrasesFollowRfc, Dechunk* by ChunkDataUnchanged, NoCache/NoStoreNotFresh by the existing NeverFresh laws
    • Per-family counts are in the commit body

No public API changed.

Left

  • S010 on src/entities.bend table: a generated list-literal table. It is a false positive, and bolt is being fixed to exempt list-literal tables. This is the only lint finding (1 error, 0 warnings)

Gate

  • bend PROOF.bend (bend 2.0.40): ALL PROOFS CHECK
  • ez prove: PASS
  • nix flake check -L --keep-going (x86_64-linux): proofs PASS, ezhttp-http-compare ALL HARD CHECKS PASSED; lint fails only on the S010 above (1 error, 0 warnings)

🤖 Generated with Claude Code

ngngardner and others added 3 commits November 16, 2026 11:00
Pin bolt v1.65.0 (bolt check is now the lint command) and move the ez
flake input to v1.16.0, whose mkLint runs `bolt check` for this pin.
bend stays at 222de99. Drop the retired `param` setting from bolt.bend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- S007 x11: String.eq(x, "") -> String.is_empty(x)
- S012 x8: Bool.not(Nat.is_lt(..)) -> Nat.is_ge(..),
  Bool.not(U32.is_eq(..)) -> U32.is_ne(..); the framing proofs bridge
  through a new NatOrder lemma ge_not_lt (law statements unchanged)
- S013: U32.to_nat(4294967295) -> 4294967295n
- U020: drop the unused Qs import in src/wirespec.bend
- S009 x2: server.loop.got/go (and server.fork, forever.go) take one
  Step.Pool (slots, limited, done, tracked) instead of four parameters;
  laws/MaxZeroIsNoLimit.bend states that a pool is limited exactly when
  max is not 0 and joins on the done channel it was made with
- S003 x270: one parameter per line in wrapped headers (bolt format,
  whitespace only, plus hand wrapping where it ran past 120 columns);
  the `wrap` warn override is gone

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bolt's `closed` (L002) is back at error. Each of the 166 single-case laws
is now either quantified into the rule it instanced (108, proved; old
cases are instances) or deleted because a general law implies it (58):

- cookie: 25 quantified, 11 deleted (max-age, default path, domain and
  path matching, Secure, SameSite, parse steps)
- cors: 19 quantified, 3 deleted
- url: 11 quantified, 5 deleted (UrlSchemeLowercased by
  SchemeBeforeFirstColon)
- cache: 5 quantified, 11 deleted (NoCache/NoStore by the existing
  NeverFresh laws)
- methods: method.safe/idempotent as one general file
  (MethodsSafeAndIdempotent, 14 cases), case-sensitive method tokens;
  Reason* by ReasonPhrasesFollowRfc, Respond*/HeadReply* by
  HeadAndNoContentHaveNoBody (13 deleted)
- request: 13 quantified, 4 deleted (Get/Post request text by
  RequestHeaderFieldsOrdered)
- response: 7 quantified, 11 deleted (dechunk by ChunkDataUnchanged,
  framing by HeadPlannedBeforeBody)
- codecs: Base64EncodesByQuantum, BearerTokenHasNoWhitespace,
  JsonParseIsEzjsonParse, Basic auth and JSON body over every input

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ngngardner ngngardner changed the title build: ez 1.16.0, bolt 1.65.0; fix lint fix(lint): ez 1.16.0, bolt 1.65.0; clear bolt findings Nov 16, 2026
bolt 1.66.0 no longer measures a list-literal data table under S010
(bolt#398), which clears src/entities.bend's generated table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ngngardner ngngardner changed the title fix(lint): ez 1.16.0, bolt 1.65.0; clear bolt findings fix(lint): ez 1.16.0, bolt 1.66.0; clear bolt findings Nov 16, 2026
@ngngardner
ngngardner enabled auto-merge (squash) November 16, 2026 16:43
[tools.bolt] v1.66.0 (bolt#398: a list-literal data table isn't measured
by S010). ci.yml at actions 4ea982d: macOS runs outside the required
check (actions#16), and only when C/JS effect code, the flake or ez's
lock changes (actions#17).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ngngardner
ngngardner merged commit 51cc94e into main Nov 16, 2026
5 checks passed
@ngngardner
ngngardner deleted the build/bolt-1.65 branch November 16, 2026 17:11
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.

1 participant