Skip to content

Census listings: short banner-less numbered listings; stage-tree claiming pinned (Part of #8412) - #8574

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261117T1504Z
Nov 17, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8412-20261117T1504Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8412: change-management stage trees and banner-less compile listings.

Checklist: partial [c:81671baa] -- plain listings and the census's stage-tree claiming are done and tested; the feature inventory still counts every stage copy, and "first sorted stage stays the program" is not stage-aware.

What changed

  • listing_reason (gitgalaxy/tools/readiness/listings.py) missed a short listing with no banner and no listing path: the numbered-listing rule needs 20+ lines and a number above 49 (to rule out level numbers), so 8-24 line listings counted as programs. New rule: 8+ lines, 90% numbered, 90% of steps exactly +1 (level numbers 01/05/10 never step by one). Reason: listing line numbers (space-padded, consecutive).
  • Stage trees: probed cics_census.not_program_rows on an Endevor-style tree (same member in DEV / QA / PROD). It already lists the later copies as duplicate PROGRAM-ID (exact or near) and keeps one; no code change. Pinned by the new test, including a listing copy sitting in the first stage.
  • tests/tools/test_change_management_listings_8412.py: authored invented-name tree and listings (built in tmp_path), plus a real short program and level-number guard.

Class / Sibling gaps

Class: a COBOL source file in an estate that is not the estate's own program, because it is a stage copy or a compile listing. Members: banner listing (handled, #8112); listing path (handled); dense numbered listing 20+ lines (handled); short numbered listing (this PR); same member in several stages, census (handled, pinned here); same member in several stages, feature inventory (missing); which stage stays the program (partial: first sorted path); listing with no numbers, banner or path (not detectable by shape: out of scope). Sibling gaps: (1) inventory.py excludes listings but never calls duplicate_reasons, so stage copies are counted several times; needs a shared dedupe in listings.py plus inventory fixture counts. (2) Stage choice: prefer the production stage dir name (PROD/PRD/LIVE) over sort order. Source: probe in this PR.

Remaining slices

Sibling gaps 1 and 2 above, in that order (listings.py, inventory.py, test, fixture counts).

Gates

audit_check.py all clear; test_source_reads, change_classifier, sweep_plan guards pass; new + 8112 + feature_inventory tests pass. No golden (no detector change). ruff format applied.

Doc-refs fixes: none.

🤖 Generated with Claude Code

…e-tree claiming (Part of #8412)

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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 17, 2026 15:08
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 15:08
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit 5b0c4aa into main Nov 17, 2026
93 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8412-20261117T1504Z branch November 17, 2026 15:21
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