chore: combined audit follow-ups (lefthook mirror, stale-ID strip, fixture comments, gremlins policy)#726
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Summary
Combined chore PR for 4 small items from the 2026-05-22 coverage-gaps review.
scripts/check-skip-additions.sh(Gap 4) — adds aforbid-should-skip-additionsstep topre-pushso the local hook catches net-newshould_skip:entries without a tracking ref before CI does. Mirrors the CIforbid-skipjob'sGuard new should_skip entriesstep. +13 LOC inlefthook.yml.R6.11afrominternal/chsql/builder_test.go,RC1-relevantfrominternal/optimizer/property_test.go, andRC1 baseline/M1.x ticketfromcompatibility/prometheus/cerberus-test-queries.yml. Also marks the 4 upstream-carryover prom-yml TODOs with explicitTODO(upstream):prefixes so the boundary between cerberus-actionable TODOs and upstream's own corpus notes is clear. RC2 + RC3 references in CHANGELOG.md / docs/forbid-skip.md / scripts/test-forbid-skip.sh are intentionally kept (they're either shipped releases or load-bearing regex examples).-- expected_rows --block is[]and had no explanatory header anywhere:traceql/count.txtar,traceql/count_eq_zero.txtar,traceql/structural_descendant_of_intersect.txtar,promql/binop_vv_on_compare_lt.txtar,logql/binop_vv_compare_filter.txtar. The other empty fixtures in the audit list already carry header comments.Surviving-mutant policysubsection todocs/test-strategy.md§ Gremlins mutation. Prefers (1) prove-equivalent + drop the phase threshold by 1pp over (2) add a distinguishing test over (3) refactor production code to defeat the mutant. PRs refactor(qlcommon): make label_replace loop-control observably distinguishable #504 / test(logql): kill gremlins phase4-logql survivors from #663 #664 carry pattern chore(deps): Bump actions/setup-go from 5 to 6 #3 refactors and are called out explicitly so future contributors don't repeat the pattern.Rec #14 from the dirty-fix audit (verify all
_comment/ tracking-ref escape hatches cite a tracking issue) was checked separately — moot, no changes: prom + tempoexpected-failures.jsonboth have emptyfailuresarrays; the loki overlay's 22should_skip:entries all already citedocs/loki-compliance-plan.md PR 6in theirjira:field. Task brief flagged this would likely be moot post-#712; verified true today against current main.Note on #1 in light of open PR #712 (which deletes
scripts/check-skip-additions.shwholesale): if #712 merges first, this PR's lefthook step will fail-loud on the next push (missing script). Whichever PR merges second should drop the corresponding side — the diffs are tiny and orthogonal otherwise.Test plan
lint+check+forbid-skip+compatibility/{prometheus,loki,tempo}+compose-smokeall green.LEFTHOOK=0was used locally for commits; the new lefthook step itself is exercised by CI's existingGuard new should_skip entriesjob + lefthook self-test from any future contributor who installs the hooks.txtar.Archive.Comment, ignored by the test runner).🤖 Generated with Claude Code