Skip to content

Feature inventory: example-health-apis counts the 29 authored programs, lists .expanded copies as excluded (Closes #8411) - #8569

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

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8411-20261117T1324Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #8411

Slice 2 of 2 (slice 1 is #8555, merged). Regenerates tests/fixtures/feature_inventory/example-health-apis.json and tightens test_schema_over_fixtures.

What changed

  • Fixture regenerated with tests/tools/feature_inventory.py <clone> --out ... (not hand-edited): eras.programs is 29 (was 58, half were .expanded/ compile-listing copies), no .expanded/ path among programs, and a new excluded_listings key (count 29, each member with its path and reason) records the copies that are left out.
  • tests/cobol_mainframe/test_feature_inventory.py: asserts the authored estate (29 programs, none under /.expanded/, excluded_listings count equals members equals 29, every member under /.expanded/); the era-tag loop skips excluded_listings as a non-program section. The six older fixtures are unchanged and still asserted to carry no excluded_listings.

Source of the scan

Upstream ibm/example-health-apis is 404, so mainframe_corpus.py fetch fails. I scanned a clone of the private squid-protocol/example-health-apis-archive (main; its commit message reads "Archive of ibm/example-health-apis at 9cfe321e2028"). I could not verify the tree against the pin: the pinned commit object is not in the archive clone (a fresh single commit) and no local checkout of the pinned corpus exists. The match rests on the archive's own commit message. corpora.json is unchanged; it may want a note that the URL is dead and the archive is the source.

Class / Sibling gaps

Class: a committed feature-inventory fixture whose program count includes compile-listing copies (hidden-directory .expanded/ files, COPY already inlined) that the authored estate does not contain. Members: the seven burned-estate fixtures. example-health-apis is the only one with such a listing directory, so it is the only member affected and is handled here; the six older fixtures are asserted to have no excluded_listings key. Sibling gaps: none known. Residual: the pin-versus-archive tree identity is unverified (above), and the no-jsonschema fallback validate in feature_inventory.py rejects the new excluded_listings section (I ran with jsonschema installed via pip --target in scratch); --all-burned in an env without jsonschema would hit the same ValueError if it ever listed this estate.

Gates

audit_check.py (ruff, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage): all clear. pytest tests/cobol_mainframe/test_feature_inventory.py: 23 passed, 1 skipped. ruff format --check clean. No parser/engine code touched, so no golden bless.

Lessons for agents

  • tests/tools/feature_inventory.py without jsonschema installed falls back to a validate that raises a bare ValueError on a new top-level section such as excluded_listings; install jsonschema with pip --target into scratch and add it to PYTHONPATH.

🤖 Generated with Claude Code

… programs, lists the .expanded copies as excluded (Part 2 of #8411)

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 13:28
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 17, 2026 13:29
@squid-shepherd
squid-shepherd Bot merged commit 21c0f8c into main Nov 17, 2026
61 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8411-20261117T1324Z branch November 17, 2026 13:49
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.

Feature inventory: compile listings and expanded copies are still counted as programs (follow-up to #8112)

1 participant