Add task-routing and permission-boundary regression tests #145

Closed
opened 2026-07-05 01:51:46 -05:00 by jcwalker3 · 0 comments
Owner

Purpose

Add focused regression coverage for the #139 role-aware routing decision and #137 permission-separation fix.

Acceptance criteria

  • Tests prove:
    • gitea.issue.comment does not imply issue close
    • gitea.pr.comment does not imply gitea.issue.comment
    • author profile cannot review or merge
    • reviewer profile cannot branch push or repo commit unless explicitly configured
    • self-review remains blocked
    • self-merge remains blocked
    • missing required permission returns structured failure guidance
    • resolver recommends gitea-reviewer for review/merge
    • resolver recommends gitea-author for authoring/PR creation
    • resolver recommends issue-comment-capable profile for discussion comments
  • Tests must be synthetic and not require live Gitea network calls.
  • No code behavior changes unless necessary to expose structured guidance.

Related to #139.

## Purpose Add focused regression coverage for the #139 role-aware routing decision and #137 permission-separation fix. ## Acceptance criteria * Tests prove: * `gitea.issue.comment` does not imply issue close * `gitea.pr.comment` does not imply `gitea.issue.comment` * author profile cannot review or merge * reviewer profile cannot branch push or repo commit unless explicitly configured * self-review remains blocked * self-merge remains blocked * missing required permission returns structured failure guidance * resolver recommends `gitea-reviewer` for review/merge * resolver recommends `gitea-author` for authoring/PR creation * resolver recommends issue-comment-capable profile for discussion comments * Tests must be synthetic and not require live Gitea network calls. * No code behavior changes unless necessary to expose structured guidance. Related to #139.
jcwalker3 added the status:in-progress label 2026-07-05 02:32:37 -05:00
sysadmin removed the status:in-progress label 2026-07-05 09:58:16 -05:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Scaled-Tech-Consulting/Gitea-Tools#145