Skip to content

[deep-report] Resolve schema-valid-but-unreachable maintain/triage values in on.roles enum #37853

Description

@github-actions

Description

The Schema Consistency audit found that the on.roles enum accepts maintain and triage, but the runtime permission check never matches them (it does not consult role_name/permission hierarchy), making them schema-valid yet unreachable — the worst-of-both outcome. Either (a) remove maintain/triage from the schema enum, or (b) fix the runtime role check to consult role_name and/or a permission hierarchy, and align the test fixtures with the real API shape.

Expected Impact

Eliminates a silent foot-gun where users set a role that has no runtime effect; restores schema/runtime consistency for workflow authorization.

Suggested Agent

copilot-swe-agent

Estimated Effort

Medium (1-4 hours) if fixing runtime; Quick if removing enum values

Data Source

DeepReport 2026-06-08 analysis, source audit #37770

Generated by 🔬 DeepReport - Intelligence Gathering Agent · 148 AIC · ⌖ 18.2 AIC · ⊞ 10.8K ·

  • expires on Jun 10, 2026, 8:03 AM UTC-08:00

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions