Repository navigation
fix(pr-quality): validate rendered markdown proof boundaries - #389
Open
BenSheridanEdwards wants to merge 6 commits into
Open
BenSheridanEdwards wants to merge 6 commits into
BenSheridanEdwards wants to merge 6 commits into
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.
Why does this feature exist?
Valid PR bodies can lose verification fields when code looks like a heading, and empty proof labels can pass without an actual exemption reason. Fixes #378. Fixes #379. Fixes #382.
What changed?
Use Marked block tokens to split top-level ATX sections, count exemption reasons after their label, and detect portable-path violations after publishing punctuation. Add the pinned development dependency, its ESM test transform, ADR 0130, and focused regressions. The shared fake-agent fixture commits through normal hooks; every result-commit assertion is retained.
Section extraction:
Markdown body → Marked block tokens → top-level ATX headings → raw section content → proof and metadata checks.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.