Skip to content

Wave 2b: CCodegen place-walk unification (#651), hermetic offline with-get & cache integrity (#624), CoreFoundation convention profile & retain clause (#357) - #3673

Merged
ehartford merged 4 commits into
mainfrom
wave2b
Nov 28, 2026
Merged

ehartford merged 4 commits into
mainfrom
wave2b

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Summary

Bundled Wave 2b PR covering three issues (one commit per logical issue):

  1. Cathedral sweep: audit each compiler file for per-path logic that should be a single source of truth #651 — CCodegen place-projection cathedral sweep (bf6bd5517):
    • Unified the 4 duplicated place-projection walkers (place_tid, place_ref_target_tid, place_tid_no_infer, place_text) in src/CCodegen.with into a single canonical walker walk_place_projections returning CcPlaceWalk (+156 / -373 lines net).
  2. Restore hermetic with-get gate coverage and add a content-addressed cache #624 — Hermetic offline with get gate & content-addressed build cache integrity (6d1d29f17):
    • Added WITH_CONAN_INDEX (file:// or https://), WITH_C_BUILD_CACHE_DIR, offline-safe version resolution from local config.yml, deferred Conan Center recipe_rev lookup until binary fallback is actually needed, and WITH_GET_OFFLINE guards in registry lookup.
    • Added deterministic content-digest verification (v1:<sha256>) on .complete in the content-addressed C build cache so corrupt or truncated cache entries are detected, reported, and cleanly rebuilt.
    • Replaced the commented-out live-network bs_check_get_zlib_versions call in build/selfhost.with with bs_check_get_local_fixture_and_cache, exercising offline resolution, source build, metadata, running a With program against the built C lib, cache reuse across clean project roots, corrupt cache detection + rebuild, source archive sha256 mismatch refusal, and lockfile restoration.
    • Closes Restore hermetic with-get gate coverage and add a content-addressed cache #624.
  3. CoreFoundation's reference-counted type family: model it as a D51 convention profile #357 — CoreFoundation reference-counted type-family convention profile & retain clause (D258, 57d475230):
    • Added retain <fn> resource clause and <name>: retain <pattern> convention rule (delegated under D237 as D258; recorded in docs/meetings/2026-11-28-D258-retain-clause-and-corefoundation-profile.md and docs/spec/031_contract-language.md), rendering fn retain() -> R and impl Clone for R for non-dependent pointer resources, plus extends Base inheritance of methods uniquely hosted by Base.
    • Shipped lib/std/conventions/corefoundation/v1.with (c convention std.conventions.corefoundation.v1:) modeling CFRelease, CFRetain, CF*Create*, CF*Copy*, and CF*Get*.
    • Added cross-platform family test (behav_357_corefoundation_convention_family.with), real macOS -framework CoreFoundation test (behav_357_corefoundation_darwin_framework.with), negative name-only test (err_357_cf_name_only_no_wrapper.with), and contract-audit test (ok_357_corefoundation_profile.with).
    • Closes CoreFoundation's reference-counted type family: model it as a D51 convention profile #357.

Verification

Seed-driven battery running on 57d475230; verdict will be posted before marking ready.

@ehartford

Copy link
Copy Markdown
Contributor Author

Seed-driven battery on 80f314d60 (macOS arm64, pinned seed):

out/battery/battery.log: rc=0 green
battery rc=0 wall=217s

Marking ready and merging.

@ehartford
ehartford marked this pull request as ready for review November 28, 2026 13:42
@ehartford
ehartford merged commit d8ceb96 into main Nov 28, 2026
1 check passed
@ehartford
ehartford deleted the wave2b branch November 28, 2026 13:42
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