Skip to content

feat(clist): identifier_case, label units, security scope (Part of #8625, slice 5) - #8649

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8625-20261119T0652Z
Nov 19, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8625-20261119T0652Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8625 (slice 5 of 5, CLIST): CLIST labels become census-able units, fold case, and CLIST is a mainframe-scope language for the security lens.

Design: three small, linked edits.

  • clist.py: identifier_case: insensitive (top level, never in rules). Pinned in test_unreferenced_by_name_contract_2806.py (declared set + a SYSCALL clean_up / CLEAN_UP: case-fold shape; the shape proves the key does the work by stripping it).
  • detector.py: while writing that shape, splice returned zero units for any CLIST member (the func_start label matched but CLIST fell through to the brace slicer). CLIST is added to the Mode A label slicer next to REXX (label runs to RETURN/EXIT or next label). Without it the new key would be inert.
  • security_lens.py: _MAINFRAME += clist, so IKJEFT01 / BPXBATCH / IRXJCL are vectors in a CLIST (test in test_mainframe_secrets_lens_8625.py, still false for rust).

Gates: crucible_check.py both legs PASS (zero diff; no CLIST in the pinned corpora); audit_check.py all clear; ruff format --check clean on the 5 files; touched tests pass (97 + 36).

Class / Sibling gaps

Class: the registry surfaces a language must declare so a new language is a full citizen (unit extraction, census lexicon, security scope). CLIST members: unit slicing (fixed here), identifier_case (fixed here), security _MAINFRAME (fixed here), extension and body routing (slices 2-4, merged), mainframe secrets shapes (slice 2). Sibling gaps: docs/language_status/clist.md and docs index row, rosetta data/clist plus _GG_ONLY_LANGS, cost ledger line, and tests/extraction/languages/test_clist_strict.py are not done (docs/corpus surfaces and a new strict suite; they would break the 5-file cap). The slice 2 test docstring that says extensionless members are not routed is stale.

Remaining slices

  1. docs/language_status/clist.md + docs index row, and the cost ledger line (docs).
  2. keyword-rosetta data/clist and _GG_ONLY_LANGS (companion PR in the rosetta repo; Cross-repo note needed).
  3. tests/extraction/languages/test_clist_strict.py (strict signature suite).
  4. Fix the stale docstring in the slice 2 test.

Hand-written files (5): gitgalaxy/core/detector.py, gitgalaxy/security/security_lens.py, gitgalaxy/standards/language_standards/languages/clist.py, tests/core_engine/test_unreferenced_by_name_contract_2806.py, tests/security_auditing/test_mainframe_secrets_lens_8625.py.

Lessons for agents

  • StructuralExtractor(lang, LANGUAGE_DEFINITIONS).splice(code, "")["functions"] returning [] while equations.func_start is nonzero means the language is missing from the Mode A label-slicer tuple in detector.py (it fell to the brace slicer).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 19, 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 19, 2026 07:01
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 07:01
@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 8896e7c into main Nov 19, 2026
123 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8625-20261119T0652Z branch November 19, 2026 07:20
squid-protocol added a commit that referenced this pull request Nov 19, 2026
squid-shepherd Bot pushed a commit that referenced this pull request Nov 19, 2026
… slice 6) (#8650)

* docs+test(clist): status page, strict suite, cost ledger row (Part of #8625, slice 6)

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

* test(clist): strict suite pins identifier_case and Mode A units now that #8649 merged

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