Repository navigation
The acceptance scenarios write their contracts inline; lib/contracts is gone; the tests that import them use test/lib/contracts - #3349
Merged
Merged
Conversation
added 2 commits
November 15, 2026 00:05
…is gone (a scenario's support file is not With's library); the c-interop example owns its SQLite contract
…s, their own module root
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.
Eric, 2026-11-14: "we should not store acceptance scenario support files in lib/contracts. we should write them inline with the UATs that require them."
lib/is With's library; a contract for SDL, zlib, bzip2, libcurl or SQLite is knowledge about another project's package (its place for users is the registry, #3118).uat/{zlib,bzip2,libcurl,sqlite3,sdl}.uat: thecopy lib/contracts/<lib>.w …step iswrite src/contracts/<lib>.w:with the contract inline. The contract text is unchanged except the sentence that said where the file lives.lib/contracts/is deleted.use contracts.<lib>, which resolved through the repository'slib/. They now resolve throughtest/lib/contracts/(sqlite3, libcurl, zlib, bzip2). SDL has no test and lives only in its scenario.examples/c-interop: the example owns its SQLite contract (Eric's choice): its header is reworded (comment lines only) and the examples lane no longer checks it byte for byte against a toolchain copy.InitTemplates.wcarries the guide's changed line.lib/contractsis no longer an input of three targets;build/uncited-claims.tsvdrops its four lines.Battery: GREEN on the top commit (all five scenarios pass with the inline contracts). The first run was red: I had deleted the directory before finding the eighteen tests that import through it.