Repository navigation
Move the Section-Name Lookup Key Into spec/fidelity_text.py - #3708
Merged
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the section-name lookup key (strip, then case-fold) into
spec/fidelity_text.pyassection_key()and points every section-name site at it:section_spanandstrip_sections,scripts/build_dist.pyheading_body,scripts/carry.pyfold(),spec/audit.py,spec/audit_markdown.py(includingreadme_section_findings), andscripts/canonical_review.py. A future change to heading-key normalization now reaches every lookup path in those files. No behavior change: the existing tests are the proof, plus one new test of the helper. OPERATIONS.md's primitives entry names the new function.Closes on promotion: #3686
Remaining findings:
Make validate.py's files.json Section-Name Match Agree With section_key #3706:
spec/validate.pycompares files.json section names to H2 text exactly, which disagrees withsection_key(class: pre-existing, filed).Decide Whether section_key Should Casefold Rather Than Lowercase #3710:
section_keylowercases rather than casefolds (raised by Copilot; class: pre-existing, filed).🤖 Generated with Claude Code