Skip to content

calls_out: LOG_AS before try is not a function-try-block head (Part of #6266) - #6990

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6266-20261029T0548Z
Oct 29, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6266-20261029T0548Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

doomsday's LOG_AS("Updater") opens a log section with no ;, so LOG_AS("X") followed by try { read as a function-try-block head (f() try {). The cpp func_start regex emitted a phantom LOG_AS function and the real function (handleReply / finished) lost its body's calls. A shield lookahead for LOG_AS is added beside the existing macro-statement shields in cpp.py.

Checklist: partial [c:0254d813] -- doomsday still lists callgraph in expected_fails (3 misses, 16 scored engine-only edges left); the other 16 ports are already clear.

Evidence

  • DOOM-rosetta --only doomsday --update --yes (LOG_AS appears in no other cloned port): callgraph_misses 5 -> 3, recall 0.9999 -> 1.0, precision 0.9687 -> 0.9684, functions 25485 -> 25484 (the phantom LOG_AS in updater.cpp, 35 -> 34 functions). Golden re-blessed: tests/golden_doom_rosetta/doomsday.json.gz.
  • golden-lock.sh crucible_check.py: full_precision PASS, zero_dependency PASS (zero drift).
  • pr_gates.py --fast: 9/9 pass. pr_gates.py --ratchets: 9 pass, 0 fail, 0 skipped.
  • Guard tests (source reads, cics spec, generated branch, sweep plan, critical path, classifier, db2 wait bound, proof reach) plus the new test: 269 passed.
  • New test test_log_as_statement_before_try_is_not_a_function_try_block_head also pins that a real A() try : x(1) {...} constructor still yields its calls.

Class / Sibling gaps

Class: a macro statement with no trailing ; that the cpp func_start regex reads as a definition head (here NAME(...) followed by try {). Handled member: LOG_AS. Other no-; macros in the burned/cloned ports are already shielded (DE_FOR_EACH, IFVIRTUAL*, MOODYCAMEL_*).

Sibling gaps still keeping doomsday's check 7 red (each needs its own mechanism; none checked against a burned-estate program, no burned COBOL estate involved):

  • at -> delta (edgetip.h:162): oracle likely reads delta < epsilon || delta > (...) as a template call.
  • sortSegments -> map (line.cpp:149): qualified template call de::map<decltype(segments)>(...) missed by the engine.
  • hasSkyMaskedMaterial -> surfaceMaterialChanged (surface.h:157): callee is a DE_AUDIENCE(...) declaration.
  • libraryfile.cpp.old, sdlnativefont.cpp.old: 4 absent edges (File, NativeFont), no class declaration anywhere.
  • packageswidget.cpp: Impl -> Base, PackagesWidget -> GuiWidget x2.
  • fontlinewrapping.cpp: DE_PIMPL_NOREF -> CString (absent), -> line (member init in a nested struct).
  • amethyst outputstate.cpp: filledLine -> isDone/remove/replace.
  • fluidsynth: delete_fluid_defsfont, delete_fluid_ramsfont -> context.
  • inputdevice.cpp: description -> isActive/name (oracle likely mis-parses the _E() macro beside a string literal).
  • Pre-existing, out of scope: a function-try-block constructor's catch handler calls are not collected.

Remaining slices

Close the sibling gaps above, then drop callgraph from doomsday's expected_fails and re-bless; then the nightly-green item.

Cross-repo

None.

Lessons for agents

A full doom_rosetta_check runs for hours; when a change touches text found in one port, use --only <port> (grep the clones first).

🤖 Generated with Claude Code

…#6266)

doomsday's `LOG_AS("X")` has no `;`, so `LOG_AS("X")\n try {` read as a
function-try-block head and the real function lost its calls to a phantom
LOG_AS function. Shield LOG_AS in the cpp func_start regex; re-bless doomsday.

Co-Authored-By: Claude Sonnet 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 10:18
@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 10:36
@squid-shepherd
squid-shepherd Bot merged commit 832559e into main Oct 29, 2026
121 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6266-20261029T0548Z branch October 29, 2026 11:04
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