Skip to content

feat!: check C runtime and variadic interface contracts - #27

Merged
owenthcarey merged 2 commits into
mainfrom
codex/rfc0024-runtime-contracts
Sep 12, 2026
Merged

owenthcarey merged 2 commits into
mainfrom
codex/rfc0024-runtime-contracts

Conversation

@owenthcarey

Copy link
Copy Markdown
Contributor

No description provided.

Implement RFC 0024 so checked code can validate comparisons, searches,
descriptor and stream I/O, formatted output, and variadic forwarding.
Model initialized prefixes, promoted format types, independent cursors,
cleanup and standard-stream lifetime across source units, objects and caches.
Use checked encoding 6, summary format 19 and sidecar format 20.

Reuse bounded immutable call ledgers and expanded report paths to contain
the added explanation cost without changing proof or analysis budgets.

Validation: 1171/1171 tests in both Debug and ASan/UBSan, 25 strict lint
translation units, and 51/51 frozen runtime cases. Preserve all 130
baseline-complete corpus identities and gain 12. Uncached/cold/warm reports
are equivalent; warm reuse has zero function analyses and 51 cache hits.
Ordinary median time and RSS ratios are 0.9849 and 0.9884. Both Lua checked
runs finish below 600 seconds with narrow margins. Retain failed timing
attempts and the cJSON comparison and Jansson lifecycle misses in evidence.

Design: docs/rfcs/0024-checked-runtime-contracts.md
Evidence: docs/validation-rfc0024.md
Copy the guarded argument-list input, format precision, and search bound
optionals directly. This satisfies bugprone-optional-value-conversion in
the Linux clang-tidy job while preserving the RFC 0024 contract values.

Validate the Debug build, strict lint and formatting for all three files,
runtime unit tests, source/object/cache evaluations, and the full lit suite.
@owenthcarey
owenthcarey merged commit 4f05ecc into main Sep 12, 2026
10 checks passed
@owenthcarey
owenthcarey deleted the codex/rfc0024-runtime-contracts branch September 12, 2026 22:25
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