Skip to content

Bundle 1: registry facades and zero-unsafe UATs for cjson, xz_utils, libxml2, pcre2 - #3659

Merged
ehartford merged 10 commits into
mainfrom
bundle1-facades
Nov 27, 2026
Merged

ehartford merged 10 commits into
mainfrom
bundle1-facades

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Summary

Bundled PR closing four registry-facade + zero-unsafe UAT issues in a single seed-driven battery run (per the bundled-issues workflow):

Shared compiler & contract foundations

  • D244 (delegated under D237): extend reads/fills/updates param N to flat complete C scalars alongside flat complete struct records (test/behavior/behav_d244_scalar_reads_fills_updates.with).
  • D245 (delegated under D237): ok >= C lower-bound status predicate for non-negative-count C APIs such as pcre2_substitute_8 (test/behavior/behav_d245_ok_nonneg.with).
  • FacadeRender / CiFacts / CiFacadeDraft: render non-receiver consumes param N on lend methods (test/behavior/behav_3151_facade_consumes_param_method.with), split value_res_fns from standalone fn stanzas, buffer fn stanzas in CiFacts so clause order never splits one function across entries and value_text, and allow registry_value_fns producers in fd_unpresentable_param.
  • SemaFacade / Sema: treat bare_callbacks as modeled parameters and contract items in verify_facade_buffers, and prefer the current module's own c_import extern declaration over an unrelated module's With function (std.engines.pcre2).

Verification

  • Iterate tier: with check, :dev, :stage2, targeted behavior tests (behav_d244_scalar_reads_fills_updates.with, behav_d245_ok_nonneg.with, behav_3151_facade_consumes_param_method.with), and all four UATs (cjson, xz_utils, libxml2, pcre2) green locally.
  • Seed-driven battery (WITH=$PWD/src/main with run tools/battery.with) on top commit 981a3da10: running now; verdict will be posted before marking ready.

@ehartford

Copy link
Copy Markdown
Contributor Author

Seed-driven battery on ff9d143a9: GREEN (rc=0, wall=1250s).

out/battery/battery.log: rc=0 green
behavior-tests: 2348 files ok
native-compile-error-tests: 2208 files ok
internals-tests: 144 files ok
EMIT-C SMOKE OK (54 cases)
uat: 16 scenarios: 15 pass, 1 skip (raylib_spiral_windows on darwin-aarch64)
  cjson:    pass (7 steps, 5.8s)
  libxml2:  pass (7 steps, 173.5s)
  pcre2:    pass (7 steps, 3.7s)
  xz_utils: pass (7 steps, 47.7s)

@ehartford
ehartford marked this pull request as ready for review November 27, 2026 18:44
@ehartford
ehartford merged commit a76cd09 into main Nov 27, 2026
1 check passed
@ehartford
ehartford deleted the bundle1-facades branch November 27, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant