Skip to content

callgraph: build manifests reach the scan; oracle reads a body closed early before an #ifdef statement (Part of #6266) - #6951

Merged
squid-shepherd[bot] merged 11 commits into
mainfrom
churn/6266-slice4-build-manifests
Oct 29, 2026
Merged

squid-shepherd[bot] merged 11 commits into
mainfrom
churn/6266-slice4-build-manifests

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Part of #6266, slice 4. Stacked on #6943 (slice 3b, still open): the first commits here are its; review only the last four (221a8c13e, 832b737a8, cd7960748, the doomsday bless, plus the classifier regen).

File-cap exception: stacked on #6943, so the diff against main also counts #6943's 3 hand-written files (call_resolver.py, galaxyscope.py, test_cpp_ctor_init_span_6266.py); slice 4's own are 4 (aperture.py, test_aperture.py, callgraph_oracle.py, test_callgraph_oracle.py), the diff against #6943's head. The count falls to 4 when #6943 merges.

Changes

Golden drift (doomsday only)

doom_rosetta_check.py over all 44 ports: only doomsday drifts (1376 differences: 1306 exclusion-table entries, 55 files, summary counts). Cause: the shield no longer drops the project root's descendants, so +55 scanned files (+31 functions, +10k LOC). Crucible (both legs) passes with zero drift.

LogEntryStager

Of the 10 edges, the DD_Win32_Init ones were the oracle truncation above; the rest are macro-expansion (LOG_* -> LogEntryStager), which the scorer does not count. Doomsday still fails callgraph: 7 misses, 39 absent + 3 comment/string engine-only.

Class / Sibling gaps

Class: a build or config file blocked from the scan because its extension reads as a doc asset or its directory as generated docs, hiding toggle definitions from the unset-toggle table. Sibling gaps: other manifest names not in the set (*.cmake, configure.ac, .pro) are not covered and were not measured; remaining doomsday shapes: NativeFunctionSpec (6), Section (2), Base alias (packageswidget.cpp Impl), nested-argument, assignment-rhs, condition/return, plus other ports' callgraph misses.

Gates

pr_gates --fast 9/9 after change_classifier --write; audit_check clear; ratchets 8/9: fact-crosscheck fails with a new estate-crucible translator refusal (apps/INVT/cobol/INVTRLD.cbl), a COBOL path none of these changes touch; not checked against an unchanged-main control.

Lessons for agents

  • doom_rosetta_check.py takes a heavy slot itself: under heavy-run.sh it deadlocks silently (idle, empty log). Run it bare.
  • explain_call can say "matches the scan's rows" for a call the engine never saw; check the unset-toggle table and excluded_artifacts for a blocked build file.

Checklist: partial [c:0254d813] -- callgraph still in doomsday's expected_fails (7 misses, 42 scored engine-only left)
Checklist: partial [c:84996f5e] -- seven-check PERFECT count not posted

🤖 Generated with Claude Code

squid-protocol and others added 7 commits October 28, 2026 15:58
…Part of #6266)

doomsday's DE_PIMPL heads `Impl : Private<C>`, whose `typedef Private<P> Base` a ctor-init `: Base(i)` names.
The resolver pruned it when no class `Base` was include-visible (an unrelated LogEntry::Arg::Base exists), and
the oracle's text view read it as a data member where tree-sitter reads a base. The engine now collects the
repo's class-typedef names and keeps their entries; the oracle's text view reads any declared base for a
constructor of no declared class.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…e alias; bless doomsday (Part of #6266)

gzdoom's `PType *Type;` beside rapidjson's `typedef T Type` made `PSymbolType(..) : Type(ty)` a base call (4 new
engine-only edges). A name some class declares as a field is left out of the alias set. doomsday golden:
callgraph misses 46 -> 24, engine-only 67 -> 44; gzdoom unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…, so its toggle definitions reach the scan (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…apped statement is read as text (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ph misses 24 -> 7) (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 28, 2026
…6-slice4-build-manifests, #6951)

Restores the approved e5a13ea content of #6943.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
squid-shepherd Bot pushed a commit that referenced this pull request Oct 28, 2026
…doomsday DE_PIMPL Impl -> Base) (Part of #6266) (#6943)

* call graph: a ctor-init entry naming a class typedef is a base call (Part of #6266)

doomsday's DE_PIMPL heads `Impl : Private<C>`, whose `typedef Private<P> Base` a ctor-init `: Base(i)` names.
The resolver pruned it when no class `Base` was include-visible (an unrelated LogEntry::Arg::Base exists), and
the oracle's text view read it as a data member where tree-sitter reads a base. The engine now collects the
repo's class-typedef names and keeps their entries; the oracle's text view reads any declared base for a
constructor of no declared class.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* call graph: a class-typedef name that is also a data member is no base alias; bless doomsday (Part of #6266)

gzdoom's `PType *Type;` beside rapidjson's `typedef T Type` made `PSymbolType(..) : Type(ty)` a base call (4 new
engine-only edges). A name some class declares as a field is left out of the alias set. doomsday golden:
callgraph misses 46 -> 24, engine-only 67 -> 44; gzdoom unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* aperture: a build manifest holds source for the generated-docs shield, so its toggle definitions reach the scan (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* callgraph oracle: a body tree-sitter closed early before an #ifdef-wrapped statement is read as text (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* aperture: ruff format the build-manifest condition (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* doom rosetta: bless doomsday (build manifests reach the scan; callgraph misses 24 -> 7) (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* change_classifier: regenerate docs_read_by_tests.txt (Part of #6266)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Revert slice 4 commits pushed here by mistake (they live on churn/6266-slice4-build-manifests, #6951)

Restores the approved e5a13ea content of #6943.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 29, 2026
…, not a real failure (#6919) (#6959)

* ci_digest: equivalence-e2e and crucible roll-ups take their parts' triage (#6919)

Since ci-gate holds a merge on any red check, a roll-up missing from PARTS turned a
cancelled shard into a real failure: #6951's equivalence-e2e read `real` while its
cancelled db2 and shard 3/3 read `infra`. PARTS gains equivalence-e2e (shard N/M, db2,
plan, tested-tree) and crucible (measure (shard N/M), runner-tests, plan); a new test
fails when any pull_request job that summarises a matrix job is missing from PARTS
(three non-gating writers are listed as exempt).

Checked against #6951 live: main triages equivalence-e2e `real`, this branch `infra`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci_digest: name no test file in the PARTS comment, no doc path in the test (change classifier reach)

The change classifier and the ground-truth planner read paths in source as reach:
a test file named in ci_digest.py made the planner run test_ci_digest for ground-truth,
and docs/ci.md named in the test made it a reader of that doc. pr_gates --fast: 9/9.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 29, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 29, 2026 01:07
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 29, 2026 01:09
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 29, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 95a4cac into main Oct 29, 2026
110 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6266-slice4-build-manifests branch October 29, 2026 02:11
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