Skip to content

Inventory: compile listings, expanded copies and duplicate PROGRAM-IDs are listed, not programs (Part of #8112) - #8115

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8112-20261108T1644Z
Nov 8, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8112-20261108T1644Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8112. Compile listings, expanded copies and duplicate PROGRAM-IDs are no longer counted as programs by the census / survey tooling; they are listed separately (as copy members are, #7901) and the preflight reports them as findings. Tools only, counts only.

Class / Sibling gaps

Class: a file with a COBOL extension that is not a distinct program. Members, all handled in this PR through one marker key (not_program, skipped by load_surveys and the markdown count, listed by load_not_programs):

  • compile listing / translator output: banner or inserted-statement markers, a listing-named file or directory (hidden, listing, sysprint...), space-padded increasing line numbers (a zero-padded sequence area is a real program and never matches);
  • expanded copy (COPY inlined): the hidden / listing directory shape plus the duplicate rule below;
  • exact or near duplicate PROGRAM-ID in one estate (first sorted path stays the program).

Sibling gaps: (1) gap_prevalence.headline does not yet print a "Listings and duplicates" line (a 6th file; format_blockers already prints the basis note); needed by the next blind-estate re-measure, scope sweep. (2) The engine scan / aperture does not classify listings or duplicates; only the tools basis changes, no burned program needs it. (3) The rglob basis loops in cics_census.py (usage, census_root_problems, corpus_programs) are not unified on one predicate; #8081 touches the same lines (hidden-dir skip), so do it after it merges.

Facts checked

  • Mainframe root (GITGALAXY_MAINFRAME_CORPORA), classifier run per corpus: 135 programs, 0 listings, 4 duplicates, all four in two non-burned corpora (3 in one, 1 in the other, all "near copy"). No burned estate moves. This is a basis change of 4 files in those two non-burned repos, reported as asked.
  • No census / candidate repo was opened; the new preflight lines print counts only (test asserts no repo or PROGRAM-ID name in the output).
  • Preflight: duplicates are excluded before the copybook-prefix check, so a duplicate no longer hides or adds unknown prefixes; one existing test needed a distinct PROGRAM-ID.

Gates

  • audit_check.py: all clear (ruff baseline, mypy, dead-key, doc-refs, format with the pinned ruff).
  • pr_gates.py --fast: 7/9, failing test_the_committed_list_is_fresh (my test literal read as a path; fixed, docs_read_by_tests.txt regenerated) and affected (same test). The re-run of the affected 64 files was not repeated after the fix; the touched tests (236 in the census / preflight / change-classifier files) pass.
  • No golden bless: no engine code changed. --ratchets not run (tests/tools only).

Remaining slices

  1. gap_prevalence.py headline line + test_gap_prevalence.py (after census: EXEC SQL: other splits by IBM statement keyword; blind re-measure (Part of #8075) #8081 merges).
  2. Unify the rglob loops in cics_census.py on one predicate (after census: EXEC SQL: other splits by IBM statement keyword; blind re-measure (Part of #8075) #8081).

Lessons for agents

  • change_classifier.py reads any string literal that looks like a path (e.g. a hidden-dir name) in a test as a docs-read-by-tests entry: build such names with "." + "name" or run change_classifier.py --write.
  • A test fixture that copies a program under one PROGRAM-ID twice now makes the second a duplicate (not a program) in the preflight and survey.

🤖 Generated with Claude Code

…s are listed, not programs (Part of #8112)

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 Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 8, 2026 17:04
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 17:05
@squid-shepherd
squid-shepherd Bot merged commit 3b5c595 into main Nov 8, 2026
63 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8112-20261108T1644Z branch November 8, 2026 17:20
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