[e7d5fb64] Assignment-path capability refusal (delegate, reassign, admin set) - #1124
Open
roboco-app[bot] wants to merge 2 commits into
Open
roboco-app[bot] wants to merge 2 commits into
roboco-app[bot] wants to merge 2 commits into
Conversation
added 2 commits
September 28, 2026 20:11
…on the task's status (delegate, reassign, admin set)
|
Thanks for opening your first pull request on RoboCo! Quick checklist before review (most of these are enforced by CI, but worth a glance):
See CONTRIBUTING.md for the full workflow and the Code of Conduct for the community standards we follow. Welcome aboard — a maintainer will review shortly. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend the role-transition map the enforcement layer already owns (do NOT invent a parallel capability system) with a capability check invoked on every assignment path: delegate, reassign, and the admin task-set path. When a task would be assigned to an agent whose role cannot act on the status it will hold, refuse at creation time and name the missing capability in the refusal reason (use the existing not_authorized error category with a capability-naming message — the intake leaves this choice to the cell). This covers the 54e30535 wedge shape (task assigned to a product-owner id with no delivery verbs, nobody could act). Business logic and DB writes belong in roboco/services per the architectural standard; routes stay thin. Confirm the exact module that owns the role-transition map and extend it there.