test(register-check): pin compact option controls #1017

Merged
pullings merged 1 commit from i/897-register-controls into main 2026-08-28 00:12:31 +02:00
Owner

Summary

  • Measured current main at 5192ba9e75ff5616f11358b354c40d31bdaf8c7a: the register-check scanned surface contains zero compact git commit -qm literals and six separated git commit -q -m references.
  • Kept the scrub-first remedy from the earlier change; the register matcher is unchanged.
  • Added CLI-level controls for the compact option cluster, separated options, real QM vocabulary, and the equomatic near miss.

The compact form remains a register-check hit in synthetic input so callers cannot solve the false positive by weakening or allow-listing the matcher. The repository callers use the separated form.

Verification

  • go test ./... -count=1
  • go vet ./...
  • go build ./...
  • bats tests (118/118)
  • warning-level ShellCheck over scripts/
  • go run ./cmd/rt register-check (0 hits)
  • git diff --check

Mutation evidence is preserved in the handoff:

  • Reintroducing git commit -qm base in a scanned test file made register-check exit 1.
  • Removing the QM pattern made the compact and real-vocabulary controls fail.
  • Broadening the pattern branch made the separated-options inverse control fail.

No-Changelog: test-only regression controls; the caller scrub is already shipped.

Refs #897

## Summary - Measured current `main` at `5192ba9e75ff5616f11358b354c40d31bdaf8c7a`: the register-check scanned surface contains zero compact `git commit -qm` literals and six separated `git commit -q -m` references. - Kept the scrub-first remedy from the earlier change; the register matcher is unchanged. - Added CLI-level controls for the compact option cluster, separated options, real `QM` vocabulary, and the `equomatic` near miss. The compact form remains a register-check hit in synthetic input so callers cannot solve the false positive by weakening or allow-listing the matcher. The repository callers use the separated form. ## Verification - `go test ./... -count=1` - `go vet ./...` - `go build ./...` - `bats tests` (118/118) - warning-level ShellCheck over `scripts/` - `go run ./cmd/rt register-check` (0 hits) - `git diff --check` Mutation evidence is preserved in the handoff: - Reintroducing `git commit -qm base` in a scanned test file made register-check exit 1. - Removing the `QM` pattern made the compact and real-vocabulary controls fail. - Broadening the pattern branch made the separated-options inverse control fail. No-Changelog: test-only regression controls; the caller scrub is already shipped. Refs #897
test(register-check): pin compact option controls
All checks were successful
fork-pr-approval-notice / explain fork workflow approval (pull_request_target) Successful in 3s
ac-closure-check / toolkit-self gate (PR's own rt) (pull_request) Successful in 4s
ac-closure-check / ac-closure check (pull_request) Successful in 6s
ac-closure-check / check (pull_request) Successful in 0s
changelog-body-check / toolkit-self gate (PR's own rt) (pull_request) Successful in 5s
changelog-body-check / changelog body Cold-Read linter (pull_request) Successful in 6s
changelog-body-check / check (pull_request) Successful in 0s
check-self-bootstrap / check (pull_request) Successful in 6s
fragment-check / toolkit-self gate (PR's own rt) (pull_request) Successful in 4s
fragment-check / changelog fragment-kind (pull_request) Successful in 7s
fragment-check / check (pull_request) Successful in 0s
go-ci / lint + build + test (pull_request) Successful in 26s
manifest-check / toolkit-self gate (PR's own rt) (pull_request) Successful in 4s
manifest-check / manifest-vs-tag consistency (pull_request) Successful in 7s
manifest-check / check (pull_request) Successful in 0s
register-check / toolkit-self gate (PR's own rt) (pull_request) Successful in 4s
register-check / register-drift check (pull_request) Successful in 7s
register-check / check (pull_request) Successful in 0s
tests / workflow-schema (pull_request) Successful in 3s
tests / bats (pull_request) Successful in 13s
tests / dated-examples (pull_request) Successful in 4s
tests / shellcheck (pull_request) Successful in 10s
workflow-parse-check / toolkit-self parse guard and controls (pull_request) Successful in 3s
workflow-parse-check / workflow parse and schema (pull_request) Successful in 4s
workflow-parse-check / check (pull_request) Successful in 0s
e0c68bce3e
sentry approved these changes 2026-08-28 00:07:15 +02:00
sentry left a comment

Reviewed exact head e0c68bce3e. The added test constructs the compact -qm token by concatenation, so it exercises the live matcher without introducing a production scanned literal; it covers compact and QM positive controls plus separated-options and equomatic boundary negatives, and asserts the drift sentinel/output. The current base advanced to 59dc767229; an independent scan there remains 0 compact and 6 separated references. Local Go tests, vet, build, Bats 118/118, ShellCheck, register-check, and diff-check pass; Forgejo CI is 25/25 success.

Reviewed exact head e0c68bce3eae62526a0af9be5c2f8136c3d25962. The added test constructs the compact -qm token by concatenation, so it exercises the live matcher without introducing a production scanned literal; it covers compact and QM positive controls plus separated-options and equomatic boundary negatives, and asserts the drift sentinel/output. The current base advanced to 59dc767229ac0712188130128691ef2ea0c403d6; an independent scan there remains 0 compact and 6 separated references. Local Go tests, vet, build, Bats 118/118, ShellCheck, register-check, and diff-check pass; Forgejo CI is 25/25 success.
pullings deleted branch i/897-register-controls 2026-08-28 00:12:32 +02:00
Sign in to join this conversation.
No description provided.