Skip to content

feat(certification): add Hardware GOI reviewer subcategory#674

Draft
vandorena wants to merge 6 commits into
mainfrom
hardware-goi
Draft

feat(certification): add Hardware GOI reviewer subcategory#674
vandorena wants to merge 6 commits into
mainfrom
hardware-goi

Conversation

@vandorena

Copy link
Copy Markdown
Collaborator

Add a standalone hardware_guardian_of_integrity role that splits the YSWS review queue by project category: regular GOIs now see only software projects and Hardware GOIs only hardware projects (Project#hardware?). Admins are unaffected.

  • YswsPolicy::Scope filters the queue; a centralized User#can_review_project_category? enforces the split on every member action (YSWS show/update/complete/return/commits/report_fraud, devlog_reviews#update, devlog_commits#index)
  • Placeholder "Lookout videos" card on the devlog review screen, shown to Hardware GOIs/admins reviewing a hardware project
  • Role is admin-assignable and audited via the existing PaperTrail role_promoted/role_demoted flow; no migration (roles live in the users.granted_roles array)

AI???

YA CLAUDE

@vandorena vandorena marked this pull request as draft June 24, 2026 18:49
Add a standalone `hardware_guardian_of_integrity` role that splits the
YSWS review queue by project category: regular GOIs now see only
software projects and Hardware GOIs only hardware projects
(Project#hardware?). Admins are unaffected.

- YswsPolicy::Scope filters the queue; a centralized
  User#can_review_project_category? enforces the split on every member
  action (YSWS show/update/complete/return/commits/report_fraud,
  devlog_reviews#update, devlog_commits#index)
- Role is admin-assignable and audited via the existing PaperTrail
  role_promoted/role_demoted flow; no migration (roles live in the
  users.granted_roles array)
Several models carried schema annotations on main that were never
regenerated after their migrations — lookout_sessions.devlog_id, plus
mission/guide_variant, mission/step_body, post/ship_event, and user.
This tripped the `annotaterb models --frozen` CI gate. Regenerate the
affected model, test, and fixture annotations to match db/schema.rb.
No code changes.
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