oliver-zehentleitner / maity

hub: own approvals: the standing a signature needs written once (three copies of the trust/role rule and of the standing-row read)

Sign in to report

tsk-w8392v1ykd9h Proposed

Audit round 6 (tsk-hgnbapyw7hnh), read at 046a4d3b. Kind: duplication (new module).

What is wrong

  • "Trust owner, or role base tasks:review / tasks:test" is spelled three times in own_approvals.py: signer_when_posted (:129-133), _human_of_the_project (:162-164), _own_agent (:188-191).
  • "Active, not removed, not isolated membership" is queried three times: :151-159, :179-187 and _current_row (:210-221).
  • _review_approvers reaches into the private review_delivery._card (:273).

Proposal

  • One _signs(trust, role_base, kind) predicate and one standing-row reader that the three paths call; a public card reader instead of review_delivery._card.

Effort / risk: S. Low; test_own_approvals_gate pins the outcomes.