Skip to content

Registry facade for c.cjson (JSON): complete, reviewed, with a zero-unsafe UAT #3151

Done

Description

@ehartford

Part of #3115.

Deliver registry/c/cjson/: a reviewed facts file (§16.2b.15) so that with get c.cjson presents the library's whole public API safely, or names, for each function left raw, why it is unsafe by nature.

UAT (fresh project, with get c.cjson, no unsafe, no project facade): cJSON_Parse, typed item access, cJSON_CreateObject/AddItemToObject, cJSON_Print, cJSON_Delete ownership.

Steps: draft and read the coverage report (#3116); file any grammar gap or proof misread it shows under #3115 rather than working around it; write the facts with each clause citing the library's manual; the UAT lands with the facts. Done when with get c.cjson reports full coverage (#3117) and the UAT passes on every platform its dependency chain supports.

Activity

  1. ehartford commented on Nov 9, 2026

    @ehartford
    ContributorAuthor

    From the #3116 survey rerun on main 6d478f1: cjson is now read whole (79 functions, #3167), but 0 present: cJSON_New_Item allocates through global_hooks.allocate and cJSON_Delete frees through global_hooks.deallocate, function-pointer fields of cJSON_Hooks (default malloc/free). Law 4 forbids taking those by name (#3172), so the registry facts for c.cjson must state the hooks convention: allocate is the allocation, deallocate the drop; then cJSON_Parse/Create*/Delete present. Same class as yyjson (#3150).

  2. added
    blocked
    on Nov 18, 2026
  3. ehartford commented on Nov 18, 2026

    @ehartford
    ContributorAuthor

    Blocked: a complete facade for this library waits on the contract-language rulings its raw functions need (#3173 buffers paired with record fields, #3174 calls through function-pointer fields, #3177 a destroyer at another position) and on the decision on #3115 whether with get builds from source by default, since a prebuilt binary's proofs grant nothing (13 functions presented across 22 libraries today, 1,239 from source). Unblock when those close.

  4. removed
    blocked
    on Nov 27, 2026
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