Skip to content

SOP-002-v1 gap-cell decoys: cpp, scala, php (6 cells) (#8863) - #9463

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
sop2-gaps-d
Nov 27, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
sop2-gaps-d

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

Specification-grade SOP-002-v1 decoy suites for the 6 keyword-family cells on C++, Scala and PHP that had a rule but no decoy test of any kind (tests/decoys/test_decoy_cpp.py, test_decoy_scala.py, test_decoy_php.py). Gap cells only, not a full-language graduation.

  • C++ (3): closures, import, telemetry
  • Scala (1): explicit_casts
  • PHP (2): api, telemetry

Each cell has a real positive control, every comment form in the language specification (C++ //, ///, //!, /* */, /** */, /*! */ and raw strings R"x(...)x"; Scala //, /* */, scaladoc, with nesting; PHP //, #, /* */, /** */, ?> ending a // comment, heredoc and nowdoc), the string-then-comment boundary, an all-branch boundary audit, and negative controls. Scala's nested block comments pass at depth 2 and 3 and Scala has no leaks; C++ and PHP do not nest, asserted as positive controls.

What it found (eight engine leaks, each filed and locked as xfail(strict=True))

Recall gaps noticed and not filed (not precision leaks): C++ spdlog::info(...), logger->info(...) and # include <x> with a space; Scala x.toChar; PHP namespaced #[\App\Route].

No rule or engine code is changed here, as the protocol requires. Strings count by design (#2535); quoted-string, raw-string, heredoc and nowdoc results are recorded in the baseline rows.

Baseline

6 new SOP-002-v1 rows (additions only, 66 lines); both charts regenerated. Untested code-stream cells for these three languages go from 3/1/2 to 0/0/0.

SOP-002 checklist

  • Protocol: SOP-002-v1
  • Scope: 3 languages (cpp, scala, php), gap cells only
  • Req A: all spec comment forms, inline and string-comment boundaries; nesting tested per language
  • Req B: all-branch boundary audit for the 6 rules
  • Req C: the 6 untested code-stream families now have positive controls
  • Req D: negative controls against the signal contracts
  • Req E: every leak has an issue and a strict xfail; baseline rows promoted
  • family_validity_chart.py --check passes; 321 tests pass, 33 xfail as intended; ruff audit and doc-refs audit: no new findings

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem

…Part of #8863)

cpp closures/import/telemetry, scala explicit_casts, php api/telemetry. Measurement only,
no engine change; 8 leaks filed (#9439 #9441 #9443-#9448) and locked as strict xfails.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 27, 2026 00:01
@squid-shepherd

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

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

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (acdd2f0) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 27, 2026 03:16
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 27, 2026
@squid-protocol
squid-protocol marked this pull request as ready for review November 27, 2026 03:17
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 27, 2026 03:19
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 27, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 27, 2026 03:23
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9463 @ acdd2f0: 7 failed check(s)

== db2 ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45933152330/job/140290312815
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45933152374/job/140290313009
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== ground-truth (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45933152434/job/140291866956
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth (when a ground-truth part failed too, run that part's repro)
log tail:
(log unavailable: gh: HTTP 404)

== publish-history (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45933152434/job/140291867590
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45933152330/job/140290312159
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== store the suite's durations (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45933152374/job/140290313506
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== suite time budget (#5166) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45933152374/job/140290313094
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)
This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 27, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (fd4c2ec) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 27, 2026 03:24
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (fd4c2ec) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 27, 2026
@squid-protocol
squid-protocol marked this pull request as ready for review November 27, 2026 03:25
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 27, 2026 03:26
@squid-shepherd squid-shepherd Bot added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 27, 2026
@squid-shepherd
squid-shepherd Bot merged commit d1865e9 into main Nov 27, 2026
62 of 78 checks passed
@squid-shepherd
squid-shepherd Bot deleted the sop2-gaps-d branch November 27, 2026 04:38
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