docs(judgement,events): state comments plainly

This commit is contained in:
sam committed 2026-11-23 23:46:27 +11:00
1 parent 0ad4374a2a
commit 2bfb262e9c
12 files changed
+37 -35

No files matched your search

+3 -2
View File
@@ -172,8 +172,9 @@ type Delivery interface {
Notify(ctx context.Context, n deliveries.Notification) error
}
// Action types updates action-type autonomy. Denials reduce autonomy; approvals
// count towards an increase that a person must approve separately.
// ActionTypes updates the autonomy level of action types. A denial lowers the
// level; approvals count towards a proposal to raise it, which a person must
// approve separately.
type ActionTypes interface {
Approved(ctx context.Context, decisionID uuid.UUID, by string, need int, deadline time.Time) (*judgement.AutonomyProposal, error)
Denied(ctx context.Context, decisionID uuid.UUID) error