Skip to content

Write scope enforcement guardrail #18

@jdelfino

Description

@jdelfino

Write the scope enforcement guardrail check.

File

.github/workflows/guardrail-scope.yml

What

  • Trigger: PR opened or synchronized
  • Compare files changed in PR against files listed in the linked issue body
  • Parse fixes #N → read issue #N body → extract file paths mentioned
  • If extra files changed: report action_required with annotations
  • Check for non-stale PR approval override → report success if approved

Reference

  • docs/design.md: Scope Enforcement (Layer 4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    taskImplementation work item

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions