Repository navigation
D208: a process domain names its writers; a writer's call is checked against every linked contract (#3127) - #3436
Merged
Merged
Conversation
added 9 commits
November 18, 2026 11:54
… static buffer is a view of the library's process domain, under the C-global rule (#3127)
…ve a viewed process domain is checked; a domain may name its writers
…rs or says any; a writer's call is checked against every linked contract
…ts domain's writers (Eric 2026-11-18)
…eaves out the ones not imported
…riters; the toolchain contract's view gains the thread line
ehartford
marked this pull request as ready for review
November 18, 2026 20:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3127. Implements spec v7.60 §16.2b.7 (D208) as Eric ruled it on 2026-11-18.
domain D process written by f, gorwritten by any; a process domain with neither is an error with a fix-it.preserves domain Dat a contract's own level says the library's own threads do not rewrite D.runs no threadsorpreserves domain D. Otherwise E0921.mainholding the version text while a task calls another function of the library is accepted.runs no threads,environ … written by setenv, unsetenv, putenv, clearenv, _putenv, _putenv_sandstrerror_text … written by strerror.getenvis no writer (Eric, 2026-11-18): POSIX.1-2024 requires its pointer to point into the environment data. A writer the program did not import is left out by the checker.domain f process written by fwithreturns borrow CStr from domain f.written by any, which changes nothing in their behaviour; naming their writers (and deleting about 550preserveslines) is a follow-up.preserves domain version_infoand the writer list on its domain.preserves domainitem joins the FACADE_CLAUSE_* table.Not in this PR: the derived spec words (the
written bygrammar, the contract-levelpreserves domainline, the §16.2b.7 example), which wait on Eric.Battery green on the stack's top (2be269f); UAT 12 pass, 1 skip;
:release-checksgreen.