Skip to content

18.5 lint: obligation_requester_own update policy declares no check, so a requester can hand their obligation to someone else in the same write #209

Open

Description

@objectstack-fleet

Filing class: ① defect flagged by the platform's own gate — reach: pnpm lint on @objectstack 18.5.0 (new suggestion; read, not measured in a browser). Reader: the hotclm lane (src/profiles/requester.profile.ts, policy obligation_requester_own); the PM seat decides whether the hand-off it allows is wanted.

Symptom

18.5.0 adds the suggestion security-update-policy-no-check:

ℹ permission set "clm_requester": update policy "obligation_requester_own" (owner_id == current_user.id)
  declares no check. A row-level policy with no `check` also admits new rows the ownership floor admits;
  declare `check` to bound what an update may write.

So a requester may update an obligation they own and, in the same write, set owner_id to somebody else (the USING side is checked, the written row is not).

Question for the fix

Since #64 (an obligation's accountable person is its owner_id), is a requester allowed to hand their obligation to another person? If no, declare check: 'owner_id == current_user.id' on the policy; if yes, record that it is by design in a comment so the suggestion is read as acknowledged. Either way, re-drive "edit my obligation" as requester1 after the change.

Business reason

Who is accountable for an obligation drives the due-soon and overdue reminders; a silent re-assignment by a requester moves the reminders away from the person the business expects.

Dedupe: hotclm issues (all states) for obligation_requester_own — 1 hit, #64 (closed, the owner_id ruling this builds on).

Blocked-by: #207.


Filed from the hotclm 18.5.0 upgrade (2026-11-15).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions