feat: Gestão only pulls cards back, with a reason (Dropstar's rule D-20)
All checks were successful
Build and deploy / Validate source (push) Successful in 10s
Build and deploy / Integration suite on a real stack (push) Successful in 4m5s
Build and deploy / Secret scan and release gate (push) Successful in 10s
Build and deploy / Publish images (push) Successful in 1m33s

Dropstar's internal rules of 2026-10-26: the coordination pulls back, never
forward, always with a reason. The Gestão profile now sends orders to
Correção from any stage and steps them back, and no longer moves them
forward. Admin, Dropstar's own login, keeps every move but Finalizado, which
stays the Revisor's (D-29).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-27 09:16:00 -03:00
parent 19b8b8c509
commit f77de40b7f
4 changed files with 25 additions and 14 deletions

View File

@@ -21,9 +21,12 @@ class MovesTest(unittest.TestCase):
self.assertEqual(moves('operador'), {('tra', 'imp'), ('imp', 'rev')})
self.assertEqual(moves('revisor'), {('rev', 'fin')})
self.assertEqual(moves('vendedor'), set())
# Gestão sends to Correção and brings back, straight to Revisão too.
for pair in (('imp', 'cor'), ('cor', 'rev'), ('rev', 'cor'), ('tra', 'imp'), ('rec', 'tra')):
self.assertTrue(may_move('gestao', *pair), pair)
# Gestão, the coordination, pulls back and never forward (D-20): Correção
# from any stage, and steps back. Admin, Dropstar's login, moves forward too.
self.assertEqual(moves('gestao'), {('rec', 'cor'), ('tra', 'cor'), ('imp', 'cor'), ('rev', 'cor')})
for pair in (('tra', 'imp'), ('rec', 'tra'), ('cor', 'rev'), ('cor', 'tra'), ('imp', 'rev')):
self.assertFalse(may_move('gestao', *pair), pair)
self.assertTrue(may_move('admin', *pair), pair)
def test_only_the_revisor_releases_to_finalizado(self):
for role in ROLES: