os-sdlc .rubocop.yml: allow trailing HTTP status codes in identifiers (Naming/VariableNumber AllowedPatterns) #230
Labels
No labels
P0
P1
P2
P3
bug
create
delete
enhancement
filed-by/agent
filed-by/user
frozen
lint-rule
needs-info
needs-triage
next
plugin/cc-architect
plugin/os
plugin/os-adr
plugin/os-aidd-lint
plugin/os-backlog
plugin/os-context
plugin/os-doc-hygiene
plugin/os-sdlc
plugin/os-vault
project/cc-os
ready-for-agent
ready-for-human
recurring
review
update
waiting
wayfinder:grilling
wayfinder:map
wayfinder:map
wayfinder:research
wayfinder:task
wayfinder:task
wontfix
worklist/deviations
worklist/lint-rule
worklist/new-implement-build
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jared/cc-os#230
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
During a fix-lints run on caldotcom-api,
Naming/VariableNumberforced the renametest_unprocessable_entity_raised_on_422→test_unprocessable_entity_raised_on_four_hundred_twenty_two. For API-wrapper test suites, "422" is domain vocabulary (HTTP status), and the spelled-out form is harder to read and grep.Proposed change to the plugin's shipped
.rubocop.yml:Deliberately narrow scope: only identifiers ending in
_<valid HTTP status>(100–599) are exempt, so an agent cannot use this to sneak arbitrary numeric names past the cop (test_thing2,test_422_foo,retry_5xall still flag). Per the fix-lints exemption ladder, filing for human application rather than editing plugin config from a session.Discoverer: /home/jared/dev/ruby-gems/caldotcom-api, session 640995ae-717a-443c-9430-772546887b90, 2026-08-01. Cop conflict surfaced during /os-sdlc:fix-lints residual phase; user requested this ticket.
Agent Brief (human)
Category: enhancement
Summary: Add a
Naming/VariableNumberAllowedPatterns exemption for trailing HTTP status codes to the plugin's shipped rubocop configWhy human: Per the fix-lints exemption ladder, shipped plugin lint config is edited only by a human — an agent granting itself a cop exemption is exactly what the ladder exists to prevent. The change itself is one stanza.
Current behavior:
Naming/VariableNumberforces renames liketest_unprocessable_entity_raised_on_422→test_unprocessable_entity_raised_on_four_hundred_twenty_twoin API-wrapper test suites, where the numeric status code is domain vocabulary and the spelled-out form is harder to read and grep.Desired behavior:
Identifiers ending in
_<valid HTTP status>(100–599) are exempt; everything else still flags (test_thing2,test_422_foo,retry_5xall still offend). Proposed stanza for the shipped.rubocop.yml:Acceptance criteria:
test_unprocessable_entity_raised_on_422no longer offends under the shipped configtest_thing2andtest_422_foostill offendbin/refresh-pluginsrun after the config editOut of scope:
Frozen in the 2026-08-16 backlog reset — see #419 for the expiry procedure. Do not work unless a live run rediscovers this issue.