Skip to content

Include resolution: generated forwarder headers and the importer's own module tree (Part of #6266) - #6899

Merged
squid-shepherd[bot] merged 11 commits into
mainfrom
churn/6266-20261028T1238Z
Oct 28, 2026
Merged

squid-shepherd[bot] merged 11 commits into
mainfrom
churn/6266-20261028T1238Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #6266 (DOOM-rosetta check 7, call-graph oracle): include resolution in doomsday, plus the rescue fix for main's red DOOM-rosetta goldens.

Checklist: partial [c:0254d813] -- 18 of 22 scored licensed ports are now 0 misses / 0 engine-only with callgraph out of expected_fails; doomsday (46/67), doom3-bfg (19/0), gzdoom (0/6) and fastdoom (0/1) keep it for the engine defects under Sibling gaps; nightly not yet run at this head
Checklist: partial [c:84996f5e] -- PERFECT count to be posted once the remaining four ports clear

#6895 (slice 2, ctor-init tie) has merged and main is merged in, so this PR's diff is only its own work: 4 hand-written files (network_risk_sensor.py, test_import_resolution_by_language_rule.py, callgraph_oracle.py, test_callgraph_oracle.py), plus manifest.csv and re-blessed goldens.

Rescue: why the goldens went red (oracle, tests/tools/doom_speedrun/callgraph_oracle.py)

#6870 made the engine drop calls in preprocessor branches on a toggle that no C file or build file in the repo defines (preproc_toggles.unset_toggles, Orchestrator._c_repo_unset_toggles). The oracle still read those branches, so 19 ports reported engine "misses" that were the oracle's error, and main's goldens were blessed with expected_fails_met: False.

  • unset_toggles_of: builds the same table from the engine's own file selection (_C_SOURCE_EXTS, _BUILD_FILE_NAMES/_EXTS, first 2 MB), excluding vendored paths. srb2's PNG_TEXT_SUPPORTED is defined only in vendored libpng, which the engine never reads.
  • #if/#elif go through the engine's detector._directive_value, and #ifdef/#ifndef/#elifdef read the name, in both the tree-sitter and text views.
  • Tree-sitter mis-pairs conditionals in two shapes (srb2's M_PNGText: an #ifdef closed at an inner #endif; PNG_Read: a #else splitting an if head, which leaves an ERROR node). The function is then read by its directive lines (TextBody), but only when the brace walk ends on the node's last line. Eternity's concurrentqueue braces run past it, so that view stays as it was.

Include resolution (ENGINE, network_risk_sensor.py)

  • _resolve_header_forwarder: <de/EmbeddedApp> is a build-generated forwarder (absent from the repo). A directory-qualified, extensionless include with a capital letter resolves to the one de/embeddedapp.h (.h/.hpp/.hh/.hxx). With two claimants, no directory or no capital, there is no edge (<chrono> and <Foo> are unchanged).
  • _nearest_tree: a quoted C-family include that matches several same-path headers across module trees takes the one sharing the longest directory prefix with the importer (a tie, or no shared prefix, stays ambiguous).

Class table

Class A: code the engine drops as preprocessor-dead must be dropped by the oracle too (oracle side, #6870).

Member Status Evidence
Literal #if 0 / #if 1 handled (before this PR) existing oracle tests
#if / #elif expression on a toggle no file defines handled test_a_toggle_no_file_defines_is_dead_as_the_engine_reads_it (tree-sitter and text views)
#ifdef / #ifndef / #elifdef on such a toggle handled same test, parametrized shapes
Toggle defined only in a build file (-D in a Makefile/CMake) handled test_the_toggle_table_is_the_engines_over_the_ports_c_and_build_files
Toggle defined only in a vendored library handled test_a_vendored_librarys_define_is_not_in_the_toggle_table (srb2 libpng)
No toggle table (engine reads every branch) handled test_without_a_toggle_table_every_toggle_branch_is_read
Tree-sitter pairs #ifdef with an inner #endif handled test_a_conditional_paired_with_the_wrong_endif_is_read_by_its_directive_lines[inner-endif]
#else splitting an if head (ERROR node) handled same test [split-if-head]
Toggle defined only in a .vcxproj missing (engine) Sibling gaps

Class B: a C/C++ #include the import resolver leaves unresolved (engine side).

Member Status Evidence
Build-generated capitalised forwarder (<de/EmbeddedApp>, QtCore/QString) handled tests in test_import_resolution_by_language_rule.py
Same-path header repeated across module trees, one nearer handled same file
Same-path headers with a tie ambiguous by design same file (negative test)
Forwarder to a header under a different name missing none seen in the 22 ports; Sibling gaps

Evidence

  • doom_rosetta_check --update --yes re-blessed every port; doomsday was re-blessed again after merging main (callgraph_unscored 4668 -> 4664, misses 46 / engine-only 67 unchanged). Every golden is expected_fails_met: True.
  • An audit of every changed golden against the pre-rescue commit, field by field, found only summary callgraph columns and the fails/verdict that follow moved. 16 ports went 6/7 -> PERFECT. doom3-bfg misses 121 -> 19, fastdoom 17 -> 0, gzdoom 2 -> 0, doomsday 70 -> 46. Doomsday's one extra engine-only edge is audiosystem.cpp:652 Impl(Public *i) : Base(i), a constructor now scored; it is the DE_PIMPL Base gap below.
  • manifest.csv: callgraph added to expected_fails for doom3-bfg, fastdoom and gzdoom (doomsday already had it).
  • heavy-run.sh pr_gates.py --fast 9/9 at this head; test_callgraph_oracle.py 91 passed.

Sibling gaps

Member Status Why not here Source
Toggles defined only in .vcxproj (ID_RETAIL, ID_DEBUG_MEMORY, ID_DEBUG_UNINITIALIZED_MEMORY) missing, engine aperture rejects .vcxproj ("Unsupported Extension"), so _c_repo_unset_toggles never reads it although .vcxproj is in Orchestrator._BUILD_FILE_EXTS; a galaxyscope/aperture change with its own bless doom3-bfg, 19 misses (e.g. Achievements.cpp:236)
Function-like macro expanded at the function's own definition missing, engine (#6881) call extraction / macro expansion, a different mechanism gzdoom m_alloc.h:61 M_Realloc -> M_Realloc_Dbg; fastdoom v_video.h:79 V_DrawPatchNativeRes -> V_DrawPatch
Member initializer read as a call missing, engine detector call capture gzdoom symbols.h:71 PSymbolTreeNode -> Node
DE_PIMPL typedef Private<P> Base (Impl -> Base) missing, engine needs detector typedef/using alias capture doomsday
Forwarder include to a differently named header missing none seen Class B

Remaining slices

  1. Aperture/build-file read for .vcxproj toggles (doom3-bfg).
  2. Macro expansion at the definition head, and member initializers read as calls (gzdoom, fastdoom).
  3. Detector typedef/using alias capture + resolver use (doomsday Impl -> Base).
  4. Regenerate tests/tools/doom_speedrun/callgraph_baseline.json (needs a full speedrun scan at the merged sha).

Lessons for agents

  • When the engine starts dropping code (a toggle, aperture, vendoring), the call-graph oracle must drop the same code, or every port goes red at once. Mirror the engine's file selection by importing its constants, not by copying them.
  • Tree-sitter-c mis-pairs #ifdef blocks that hold a #define, and a #else splitting an if head. Check node.has_error and whether the node closes on its own last line before trusting preproc_* children.
  • The DOOM-rosetta re-bless rewrites the scan dir while it runs: a parallel rescore of the same --work reports "no scan" for that port.
  • A binary golden conflict after git merge origin/main is resolved by taking either side and re-blessing that port on the merged head, never by picking a side.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 28, 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 28, 2026 13:53
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 13:56
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #6899 @ 488c7e1: 1 failed check(s)

== shard 2 (1666363 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/40700617139/job/122861717995
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doom-ascii] tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[gzdoom] tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[nugget-doom] tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[odamex]
errors:
E AssertionError: odamex fails 'callgraph', the manifest expects ''
tests/doom_rosetta/test_doom_rosetta.py:48: AssertionError
E AssertionError: gzdoom fails 'callgraph', the manifest expects ''
E AssertionError: doom-ascii fails 'callgraph', the manifest expects ''
E AssertionError: nugget-doom fails 'callgraph', the manifest expects ''
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[odamex] - AssertionError: odamex fails 'callgraph', the manifest expects ''
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[gzdoom] - AssertionError: gzdoom fails 'callgraph', the manifest expects ''
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doom-ascii] - AssertionError: doom-ascii fails 'callgraph', the manifest expects ''
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[nugget-doom] - AssertionError: nugget-doom fails 'callgraph', the manifest expects ''
##[error]Process completed with exit code 1.
log tail:
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[gzdoom] - AssertionError: gzdoom fails 'callgraph', the manifest expects ''
assert False
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doom-ascii] - AssertionError: doom-ascii fails 'callgraph', the manifest expects ''
assert False
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[nugget-doom] - AssertionError: nugget-doom fails 'callgraph', the manifest expects ''
assert False
4 failed, 7 passed, 26 deselected in 147.39s (0:02:27)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 2 (1666363 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: agentic-cobol-doom-codex,doom-ascii,doom-fx,doom-scheme,doom3do,doomretro,fps-cob,gzdoom,mochadoom,nugget-doom,odamex
T0: 1793196980
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/473d23f4-8fe4-4747-949e-afeac6d025bb' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@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 Oct 28, 2026
…e engine does (Part of #6266)

#6870 made the engine drop preprocessor branches on toggles no C file or build file
defines; the oracle kept them, so 19 ports went red. The oracle now reads the same toggle
table (the engine's file selection, vendored libraries excluded) and evaluates #if/#ifdef
with the engine's _directive_value. Where tree-sitter pairs a conditional with the wrong
#endif or splits an if head over #else, the function is read by its directive lines.

Re-blessed every port. 18 licensed ports reach 0 misses / 0 engine-only; doom3-bfg,
fastdoom and gzdoom keep callgraph in expected_fails for engine defects (vcxproj toggles
unread; a function-like macro expanded at its own definition).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (285fd15) 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).

@squid-shepherd
squid-shepherd Bot disabled auto-merge October 28, 2026 15:13
@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 Oct 28, 2026
squid-protocol and others added 2 commits October 28, 2026 11:17
The merge conflict on the binary golden is resolved by a rescan of the merged head:
callgraph_unscored 4668 -> 4664; misses 46 and engine-only 67 unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 15:32
@squid-shepherd
squid-shepherd Bot merged commit ad8315e into main Oct 28, 2026
64 of 66 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6266-20261028T1238Z branch October 28, 2026 15:54
@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 Bot pushed a commit that referenced this pull request Oct 28, 2026
…Part of #5859, slice 3e) (#6910)

* Include resolution: generated forwarder headers and the importer's own module tree (Part of #6266) (#6899)

* call_resolver: a ctor-init tie keeps the class fewest include hops away (Part of #6266)

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

* DOOM-rosetta: re-bless doomsday callgraph_misses 74 -> 73 (Part of #6266)

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

* Include resolution: generated forwarder headers and the importer's own module tree (Part of #6266)

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

* DOOM-rosetta: re-bless doomsday callgraph_misses 73 -> 70 (Part of #6266)

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

* DOOM-rosetta: re-bless doomsday after merging main (Part of #6266)

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

* DOOM-rosetta: oracle drops branches on toggles no file defines, as the engine does (Part of #6266)

#6870 made the engine drop preprocessor branches on toggles no C file or build file
defines; the oracle kept them, so 19 ports went red. The oracle now reads the same toggle
table (the engine's file selection, vendored libraries excluded) and evaluates #if/#ifdef
with the engine's _directive_value. Where tree-sitter pairs a conditional with the wrong
#endif or splits an if head over #else, the function is read by its directive lines.

Re-blessed every port. 18 licensed ports reach 0 misses / 0 engine-only; doom3-bfg,
fastdoom and gzdoom keep callgraph in expected_fails for engine defects (vcxproj toggles
unread; a function-like macro expanded at its own definition).

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

* DOOM-rosetta: re-bless doomsday after merging main (Part of #6266)

The merge conflict on the binary golden is resolved by a rescan of the merged head:
callgraph_unscored 4668 -> 4664; misses 46 and engine-only 67 unchanged.

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

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* CICS fault vocabulary: RUN TRANSID and FETCH ANY faults, CRECUST 46 -> 52 of 70 (Part of #6882) (#6900)

* CICS fault vocabulary: SET / INQUIRE TERMINAL faults, CBSA SET arms (Part of #6882)

A scenario can plan TERMIDERR (RESP2 23) or INVREQ (RESP2 43) on SET TERMINAL
and TERMIDERR (RESP2 1) on INQUIRE TERMINAL, as DELAY does (X72): the stub's
injected() and the port's task.planned() read the same line, a planned fault
means the command is not performed. Four CBSA scenarios reach BNK1CCS 415/1134
and BNK1DCS 532/1676 (net branches 126->128 of 143 and 93->95 of 102).

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

* CICS fault vocabulary: RUN TRANSID and FETCH ANY faults, CBSA CRECUST 46 -> 52 of 70 net branches (Part of #6882)

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

* strengthen-loop fault-command test: plan the SET/INQ TERMINAL, RUN TRANSID and FETCH ANY conditions (Part of #6882)

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* HLASM lowering: rename symbols spelled like a COBOL reserved word (PASSWORD) (Part of #5859, slice 3e)

cobc stops at a DSECT field named PASSWORD (unexpected PASSWORD); _cobol() now gives a reserved-word symbol a -HL suffix and refuses a rename that collides with another symbol. GGCVER names the USERID it found no verdict for.

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

* hlasm: build the reserved-word set with findall (SIM905)

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 28, 2026
, re-bless 4 DOOM goldens after #6899 (#6908)

* Refresh the call-graph accuracy baseline for c, cpp, tcl after #6864/#6870/#6881

Per-commit runs on the pinned crucible (v1.7.0) attribute every drop:
- #6864 (tcl switch arms): tcl recall 71.2 -> 69.3
- #6870 (dead preprocessor branches): c recall 99.3 -> 96.4, cpp recall
  99.0 -> 97.6; the new misses are calls behind toggles never defined in
  the tree (Py_GIL_DISABLED, Py_REF_DEBUG, MZ_USE_JIT, MICROPY_GC_SPLIT_HEAP)
  that tree-sitter still counts
- #6881 (macro bodies expanded at the use site): c precision 99.4 -> 97.4,
  cpp 98.2 -> 97.8; tree-sitter cannot see calls inside macro bodies

None of the three refreshed the baseline, so the gate failed on every
engine PR since. Only c, cpp and tcl change; other languages untouched.

Part of #6770

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

* DOOM-rosetta: re-bless odamex, gzdoom, fastdoom, srb2 after #6899

#6899 merged with these four goldens drifted (its own DOOM-rosetta run
40715491522 failed on them). Only summary.callgraph_unscored moves, plus
callgraph_precision in the fourth decimal on three ports:
  odamex   precision 0.983 -> 0.9829, unscored 576 -> 578
  gzdoom   precision 0.9662 -> 0.9663, unscored 3894 -> 3889
  fastdoom precision 0.9993 -> 0.9997, unscored 87 -> 86
  srb2     unscored 2531 -> 2530
No expected_fails change. A local check on main reproduced CI's drift exactly.

Part of #6266

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-shepherd Bot pushed a commit that referenced this pull request Oct 28, 2026
…lice 3c) (#6905)

* EXEC CICS VERIFY PASSWORD: ZECS002 translates whole (Part of #5859, slice 3c)

Regraft of #6902 onto current main.

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

* EXEC CICS VERIFY PASSWORD: stub GGCVER, fault-plan validation (Part of #5859, slice 3d) (#6907)

The cobol-stub side models VERIFY PASSWORD: GGCVER looks up the verdict a
scenario states for the trimmed USERID and records one VERIFY-PASSWORD event;
the password is never passed (register X32). equivalence_cics_faults.py accepts
only NORMAL / USERIDERR / NOTAUTH / INVREQ and no RESP2. The zecs-zecs002 case
is not in this commit: GnuCOBOL reserves PASSWORD and the HLASM lowering emits
the DSECT field verbatim (see PR body).

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* test_strengthen_loop: plan VERIFY's fault by its userid, NOTAUTH with no RESP2 (Part of #5859)

The PR added VERIFY to FAULT_COMMANDS but not to the test's fault tables, so
the parametrized case planned NOTAUTH/RESP2 101 on a file, which the X32
registry entry rightly refuses (ground-truth red on #6905).

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

* HLASM lowering: rename reserved-word symbols; zecs002 case deferred (Part of #5859, slice 3e) (#6910)

* Include resolution: generated forwarder headers and the importer's own module tree (Part of #6266) (#6899)

* call_resolver: a ctor-init tie keeps the class fewest include hops away (Part of #6266)

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

* DOOM-rosetta: re-bless doomsday callgraph_misses 74 -> 73 (Part of #6266)

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

* Include resolution: generated forwarder headers and the importer's own module tree (Part of #6266)

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

* DOOM-rosetta: re-bless doomsday callgraph_misses 73 -> 70 (Part of #6266)

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

* DOOM-rosetta: re-bless doomsday after merging main (Part of #6266)

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

* DOOM-rosetta: oracle drops branches on toggles no file defines, as the engine does (Part of #6266)

#6870 made the engine drop preprocessor branches on toggles no C file or build file
defines; the oracle kept them, so 19 ports went red. The oracle now reads the same toggle
table (the engine's file selection, vendored libraries excluded) and evaluates #if/#ifdef
with the engine's _directive_value. Where tree-sitter pairs a conditional with the wrong
#endif or splits an if head over #else, the function is read by its directive lines.

Re-blessed every port. 18 licensed ports reach 0 misses / 0 engine-only; doom3-bfg,
fastdoom and gzdoom keep callgraph in expected_fails for engine defects (vcxproj toggles
unread; a function-like macro expanded at its own definition).

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

* DOOM-rosetta: re-bless doomsday after merging main (Part of #6266)

The merge conflict on the binary golden is resolved by a rescan of the merged head:
callgraph_unscored 4668 -> 4664; misses 46 and engine-only 67 unchanged.

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

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* CICS fault vocabulary: RUN TRANSID and FETCH ANY faults, CRECUST 46 -> 52 of 70 (Part of #6882) (#6900)

* CICS fault vocabulary: SET / INQUIRE TERMINAL faults, CBSA SET arms (Part of #6882)

A scenario can plan TERMIDERR (RESP2 23) or INVREQ (RESP2 43) on SET TERMINAL
and TERMIDERR (RESP2 1) on INQUIRE TERMINAL, as DELAY does (X72): the stub's
injected() and the port's task.planned() read the same line, a planned fault
means the command is not performed. Four CBSA scenarios reach BNK1CCS 415/1134
and BNK1DCS 532/1676 (net branches 126->128 of 143 and 93->95 of 102).

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

* CICS fault vocabulary: RUN TRANSID and FETCH ANY faults, CBSA CRECUST 46 -> 52 of 70 net branches (Part of #6882)

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

* strengthen-loop fault-command test: plan the SET/INQ TERMINAL, RUN TRANSID and FETCH ANY conditions (Part of #6882)

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* HLASM lowering: rename symbols spelled like a COBOL reserved word (PASSWORD) (Part of #5859, slice 3e)

cobc stops at a DSECT field named PASSWORD (unexpected PASSWORD); _cobol() now gives a reserved-word symbol a -HL suffix and refuses a rename that collides with another symbol. GGCVER names the USERID it found no verdict for.

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

* hlasm: build the reserved-word set with findall (SIM905)

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]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Joe Esquibel <[email protected]>
squid-shepherd Bot pushed a commit that referenced this pull request Oct 28, 2026
…) (#6923)

* EXEC CICS VERIFY PASSWORD: ZECS002 translates whole (Part of #5859, slice 3c)

Regraft of #6902 onto current main.

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

* EXEC CICS VERIFY PASSWORD: stub GGCVER, fault-plan validation (Part of #5859, slice 3d) (#6907)

The cobol-stub side models VERIFY PASSWORD: GGCVER looks up the verdict a
scenario states for the trimmed USERID and records one VERIFY-PASSWORD event;
the password is never passed (register X32). equivalence_cics_faults.py accepts
only NORMAL / USERIDERR / NOTAUTH / INVREQ and no RESP2. The zecs-zecs002 case
is not in this commit: GnuCOBOL reserves PASSWORD and the HLASM lowering emits
the DSECT field verbatim (see PR body).

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* test_strengthen_loop: plan VERIFY's fault by its userid, NOTAUTH with no RESP2 (Part of #5859)

The PR added VERIFY to FAULT_COMMANDS but not to the test's fault tables, so
the parametrized case planned NOTAUTH/RESP2 101 on a file, which the X32
registry entry rightly refuses (ground-truth red on #6905).

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

* HLASM lowering: rename reserved-word symbols; zecs002 case deferred (Part of #5859, slice 3e) (#6910)

* Include resolution: generated forwarder headers and the importer's own module tree (Part of #6266) (#6899)

* call_resolver: a ctor-init tie keeps the class fewest include hops away (Part of #6266)

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

* DOOM-rosetta: re-bless doomsday callgraph_misses 74 -> 73 (Part of #6266)

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

* Include resolution: generated forwarder headers and the importer's own module tree (Part of #6266)

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

* DOOM-rosetta: re-bless doomsday callgraph_misses 73 -> 70 (Part of #6266)

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

* DOOM-rosetta: re-bless doomsday after merging main (Part of #6266)

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

* DOOM-rosetta: oracle drops branches on toggles no file defines, as the engine does (Part of #6266)

#6870 made the engine drop preprocessor branches on toggles no C file or build file
defines; the oracle kept them, so 19 ports went red. The oracle now reads the same toggle
table (the engine's file selection, vendored libraries excluded) and evaluates #if/#ifdef
with the engine's _directive_value. Where tree-sitter pairs a conditional with the wrong
#endif or splits an if head over #else, the function is read by its directive lines.

Re-blessed every port. 18 licensed ports reach 0 misses / 0 engine-only; doom3-bfg,
fastdoom and gzdoom keep callgraph in expected_fails for engine defects (vcxproj toggles
unread; a function-like macro expanded at its own definition).

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

* DOOM-rosetta: re-bless doomsday after merging main (Part of #6266)

The merge conflict on the binary golden is resolved by a rescan of the merged head:
callgraph_unscored 4668 -> 4664; misses 46 and engine-only 67 unchanged.

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

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* CICS fault vocabulary: RUN TRANSID and FETCH ANY faults, CRECUST 46 -> 52 of 70 (Part of #6882) (#6900)

* CICS fault vocabulary: SET / INQUIRE TERMINAL faults, CBSA SET arms (Part of #6882)

A scenario can plan TERMIDERR (RESP2 23) or INVREQ (RESP2 43) on SET TERMINAL
and TERMIDERR (RESP2 1) on INQUIRE TERMINAL, as DELAY does (X72): the stub's
injected() and the port's task.planned() read the same line, a planned fault
means the command is not performed. Four CBSA scenarios reach BNK1CCS 415/1134
and BNK1DCS 532/1676 (net branches 126->128 of 143 and 93->95 of 102).

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

* CICS fault vocabulary: RUN TRANSID and FETCH ANY faults, CBSA CRECUST 46 -> 52 of 70 net branches (Part of #6882)

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

* strengthen-loop fault-command test: plan the SET/INQ TERMINAL, RUN TRANSID and FETCH ANY conditions (Part of #6882)

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

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>

* HLASM lowering: rename symbols spelled like a COBOL reserved word (PASSWORD) (Part of #5859, slice 3e)

cobc stops at a DSECT field named PASSWORD (unexpected PASSWORD); _cobol() now gives a reserved-word symbol a -HL suffix and refuses a rename that collides with another symbol. GGCVER names the USERID it found no verdict for.

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

* hlasm: build the reserved-word set with findall (SIM905)

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]>

* zecs-zecs002 case: VERIFY userid_hex, latin-1 fault logs (Part of #5859)

ZECS002 holds the USERID as EBCDIC bytes, so a plain-text VERIFY verdict could not
match it. `userid_hex` states the verdict for the field's own bytes; faults.cfg and
the fired-fault logs are read/written as latin-1 (COBOL stub) and UTF-8 (Java), split
on newline only. COBOL-reserved-word renaming (PASSWORD etc.) came with #6905.

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

* fact-crosscheck ledger: ZECS002.asm disagreements assigned hlasm-lowered-cobol (Part of #5859)

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Joe Esquibel <[email protected]>
squid-protocol added a commit that referenced this pull request Oct 28, 2026
…uto-merge off (#6919) (#6920)

* CI shepherd: ci-gate commit status on every open PR, and a red check turns auto-merge off (#6919)

Path-filtered workflows ran but never gated a merge: the ruleset requires five core checks,
and the shepherd only labelled other failures needs-fix while auto-merge stayed on. #6881,
#6894, #6895 and #6899 merged with DOOM-rosetta / call-graph-accuracy red.

- decide(): triage runs before the auto-merge decision; a real failure of any gating check
  (not the shepherd's own jobs, not ADVISORY) blocks and turns auto-merge off.
- gate_status(): ci-gate is pending (draft, running or rerun checks, main's failure, an
  unreported required check), failure (a real failure) or success; posted only on change,
  and the shepherd's own status is never read back as an input.
- reconcile covers every open PR (open_prs), so a hand merge is gated too; it also triggers
  on DOOM-rosetta and Call Graph Accuracy Audit (GATE_TRIGGERS).
- pr_check / graphql_reads fetch the status description, so an unchanged gate is not reposted.

The ruleset change (require ci-gate) is the owner's step after a soak.

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

* test_shepherd_gh: reconcile exit-code tests fake open_prs, not open_labelled (#6919)

reconcile now lists every open PR through open_prs; the two exit-code tests still faked
open_labelled, so they reached a real `gh api pulls?state=open`. They passed where gh is
logged in and failed in full-suite part 1/2 (no GH_TOKEN in CI).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018srRvfVvURyJ9zRpgVkace

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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