Skip to content

chore: add PR review guardrails#43

Closed
jayparikh wants to merge 1 commit into
mainfrom
chore/pr-review-guardrails
Closed

chore: add PR review guardrails#43
jayparikh wants to merge 1 commit into
mainfrom
chore/pr-review-guardrails

Conversation

@jayparikh
Copy link
Copy Markdown
Owner

Summary

Add lightweight repo guardrails so contributors get better review feedback before Jay has to do a deep manual pass.

Changes

  • add a lean PR template with a conditional UI checklist
  • add CODEOWNERS for sensitive product surfaces
  • tighten CI to run typecheck, tests, build, and verify all 8 screenshots exist
  • add npm run pr:guard plus a GitHub PR digest comment/job summary
  • fail PRs that miss UI sync requirements or add new hardcoded hex colors in components
  • document the contributor workflow in README

Why this helps

This creates a review funnel:

  1. contributors explain scope and validation in the PR template
  2. CI catches missing UI sync and obvious design-system drift
  3. the digest comment summarizes blast radius and risk before manual review

Validation

  • npm run pr:guard -- --base origin/main --head HEAD
  • npm run typecheck
  • npm test
  • npm run build

- add a lean pull request template with conditional UI checklist
- add CODEOWNERS for UI, parser, docs, and workflow surfaces
- tighten CI with typecheck and full screenshot verification
- add pr:guard digest and policy checks for UI sync and hardcoded colors
- document the review funnel in README

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 2, 2026

agentviz@0.3.0 pr:guard
node scripts/pr-review-guard.mjs --base origin/main --head HEAD

PR review digest

  • Blast radius: workflow, docs
  • Size: 7 files, +384/-1
  • Tests touched: no
  • Recommendation: Ready for review.

Policy signals

Check Status
UI four-artifact sync not applicable
Hardcoded color check pass
Risk flags none

Changed files

  • .github/CODEOWNERS
  • .github/pull_request_template.md
  • .github/workflows/ci.yml
  • README.md
  • package.json
  • scripts/pr-review-guard.mjs
  • pr-review-summary.md

paulyuk added a commit to paulyuk/agentviz that referenced this pull request Apr 2, 2026
Addressed all PR review guardrails from jayparikh#43:

✅ Typecheck: clean (npx tsc --noEmit)
✅ Tests: 473/474 (1 pre-existing VS Code path test)
✅ Build: clean (npx vite build)
✅ Screenshots: all 8 originals present + journal-view.png added
✅ README: Steering view section added
✅ Style guide: Section 20 added for Steering view conventions
✅ Hardcoded colors: replaced all hex values with theme tokens
   (theme.accent.primary, theme.track.reasoning, theme.semantic.success)
✅ Test coverage: 3 test files for parser/server changes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jayparikh jayparikh closed this Apr 5, 2026
@jayparikh jayparikh deleted the chore/pr-review-guardrails branch April 5, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant