Repository navigation
fix(policy): detect final-line block comment type suppressions - #392
Open
BenSheridanEdwards wants to merge 3 commits into
Open
BenSheridanEdwards wants to merge 3 commits into
BenSheridanEdwards wants to merge 3 commits into
Conversation
Contributor
Enforcement sign-offRan at Tuesday, the 17th of November, at 7:48 pm on commit This PR changes gated enforcement or product intent, so it needs sign-off.
@BenSheridanEdwards: tick to approve.
|
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.
Why does this feature exist?
The suppression policy misses final-line TypeScript directives in multiline block comments, including directives the pinned checker honors. Fixes #386.
What changed?
Recognize final-line TypeScript ignore and expect-error directives in real block comments, retaining source line numbers and the existing handling of prose, strings and other directive families. The shared fake-agent fixture commits through normal hooks; every result-commit assertion is retained.
Behavioural Proof (with video and screenshots)
Verification Summary
pnpm exec jest --selectProjects tooling --testPathPattern tooling/trial/run-trial.test.ts --runInBand --testNamePattern '^runTrial makes the one result commit with the hooks on, whatever the agent committed$';pnpm install --frozen-lockfile;pnpm lint:anti-slop;pnpm verify;pnpm e2e. Full verification ran through the shared heavy-suite limiter in the normal pre-push hook.pnpm verifypnpm e2e.agents/project/ARCHITECTURE.mdandCONVENTIONS.md.PRD Behaviours to Review
PR Proof Law
.agents/project/PR_QUALITY.mdand.agents/skills/pr-quality-contract/SKILL.md; thePR qualitycheck verifies the proof format.