Skip to content

Family oracle: C and C++ debug_prints count stdio writers only on stdout/stderr (Part of #8863, #8862) - #9276

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8863-20261125T0802Z
Nov 25, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8863-20261125T0802Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8863 (#8862 contract readings).
Checklist: partial [c:a9dfa2bb] -- owner rulings (assert as abort, doc form, generator expressions, ??) and the llm_api absence entries remain

Cross-repo: no companion repo. Nothing re-runs after.

What

The C and C++ tree-sitter oracles counted fprintf, vfprintf, fputs, fputc and putc as debug_prints whatever the stream. The contract says output addressed to a file or writer is not a site. family_oracle_ts.py now counts these five only when an argument is stdout or stderr (_to_console); printf, puts, perror etc. 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 left docs/family_oracle_readings.md alone to avoid conflicting with it).

No engine change, no golden bless. Baseline cells for C and C++ debug_prints predate 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:

Remaining slices

  1. Audit the other languages' print callee lists against the writer clause.
  2. Rescan C and C++ cells.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 25, 2026 08:09
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant