Repository navigation
Family oracle: C and C++ debug_prints count stdio writers only on stdout/stderr (Part of #8863, #8862) - #9276
Merged
Conversation
…out/stderr (Part of #8863, #8862) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This was referenced Nov 25, 2026
Open
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.
Part of #8863 (#8862 contract readings).
Checklist: partial [c:a9dfa2bb] -- owner rulings (assert as abort, doc form, generator expressions,
??) and thellm_apiabsence entries remainCross-repo: no companion repo. Nothing re-runs after.
What
The C and C++ tree-sitter oracles counted
fprintf,vfprintf,fputs,fputcandputcasdebug_printswhatever the stream. The contract says output addressed to a file or writer is not a site.family_oracle_ts.pynow counts these five only when an argument isstdoutorstderr(_to_console);printf,puts,perroretc. are unchanged. This is the oracle fix PR #9264 lists as its first Remaining slice; the plan to ratify the provisional rows was dropped because #9264 already does it (I leftdocs/family_oracle_readings.mdalone to avoid conflicting with it).No engine change, no golden bless. Baseline cells for C and C++
debug_printspredate this and are rescanned per corpus (not here).Tests
test_family_oracle_langs.py::test_c_stream_writers_count_as_debug_prints_only_on_the_console(C and C++): writer-addressed calls count 0, console-addressed 4. 373 pass across the two family_oracle test files.Class / Sibling gaps
Class: oracle callee lists that count a call the contract excludes (writer-addressed output under
debug_prints). Members handled: C and C++ stdio stream writers. Sibling gaps:write!/writeln!, JavaPrintStreamon a file, PHPfputs/fwrite, Ruby$stderr.write) were not audited for writer-addressed output: same contract clause, different per-language mechanism.family_oracle.py --lang X --corpus NAME --update-baseline).llm_apiabsence entries (see Readings ledger: ratify the provisional tree-sitter rows, record the C++ reading (Part of #8863, #8862) #9264).Remaining slices
🤖 Generated with Claude Code