Skip to content

Release UAT: user-programs-safe is red on every leg: 28 unsafe in the zlib/bzip2/sqlite3/libcurl fixtures until modeled C (D51) covers them #1376

Closed

Description

@ehartford

Symptom

Every nightly leg that reaches :release-uat fails user-programs-safe (latest: run 35616828206, linux-x86_64 and windows-aarch64):

error: user-programs-safe: 28 uses of `unsafe` in release UAT fixtures and examples; a user program never needs one - fix the compiler, never the program

The 28 uses are all in four fixtures:

  • build/release_uat_fixtures/libcurl_main.w (8): curl_easy_init, curl_easy_setopt, curl_easy_cleanup, curl_version_info and a field read
  • build/release_uat_fixtures/sqlite3_main.w (12): sqlite3_open, sqlite3_exec, sqlite3_prepare_v2, sqlite3_step, sqlite3_column_int, sqlite3_finalize, sqlite3_close
  • build/release_uat_fixtures/bzip2_main.w (4) and build/release_uat_fixtures/zlib_main.w (4): BZ2_bzBuffToBuff* and compress/uncompress through &raw mut buffers, plus an unsafe fn same_prefix

Class

This red is intentional. #1222 (db6f935) added the gate as the list of C surfaces the compiler has not yet made humane, and CLAUDE.md forbids editing the fixtures to pass it. The rule that clears it is D51 (docs/Ruling-modeled-C-ownership-effects-conventions-and-foreign-lifetimes.md): each of these surfaces needs an explicit c facade, an adopted convention profile or a proof. §66 orders the SQLite facade first, and the fixtures are rewritten only after that facade compiles against the real header.

This issue is the tracker, so the nightly red has an owner. It closes when the four fixtures pass user-programs-safe, each rewritten as part of the facade change that makes its safe spelling compile, not before.

Checklist

  • sqlite3: facade (D51 §66, first)
  • zlib: buffer in/out without &raw mut
  • bzip2: same shape as zlib
  • libcurl: handle lifecycle (curl_easy_init/cleanup) as an owned value, curl_version_info as a static-lifetime view

Activity

  1. ehartford commented on Sep 26, 2026

    @ehartford
    ContributorAuthor

    Verified fixed on main 55739d4 (release binary): zero unsafe in the release UAT fixtures; :user-programs-safe is a gate and green.

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions