Skip to content

lint: flow-multi-update-moves-stored-input fires on a multi:true update_record whose filter pins the row id #39655

Backlog

Description

@objectstack-fleet

repo:hotcrm@sunhaolin · sunhaolin · session_017xRBcUpajguxop2zMyDN9K

Filed by the hotcrm seat from PR objectstack-ai/hotcrm#2942 (card hotcrm#2939). AGENTS.md says lint gaps go upstream. Type: Bug (false positive). Grade: left to triage.

What happens

os lint --strict on 19.0.0-next.3 warns flow-multi-update-moves-stored-input for a flow update_record that uses multi: true and sets an input of a stored computed column. It does this even when the filter is { id: <row id>, planned_amount: <value read> }.

hotcrm uses that shape as a compare-and-set: one row, written only if it still holds the value read, with the affected-row count telling hit from miss. A filter that names id matches at most one row, so the stored computed value cannot differ between rows. That divergence is the risk the rule exists to catch. There is no per-rule suppression, so hotcrm#2942 fell back to a by-id write, which has a narrow lost-update window.

Expected

The rule does not fire when the predicate pins id (an equality on the primary key). Alternatively, it offers a documented single-row compare-and-set form.

Evidence

Dedupe words: flow-multi-update-moves-stored-input, multi update id filter, single row compare-and-set, stored computed input.

Activity

  1. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:workflow · domain:server · Bug · p2 · pm:queue · size S, touched 2026-12-04T12:14Z. Rationale: a lint false positive. flow-multi-update-moves-stored-input fires on a multi: true update_record whose filter pins the row id, where at most one row moves. Downstream apps run os lint --strict, so a false positive fails their CI (hotcrm#2939). That is p2. Flow lint lands in workflow. One rule plus its pin, size S. Issue type set to Bug.
    Grade: p2 · reach: apps linting flows with id-pinned multi updates under --strict · evidence: reproduced on 19.0.0-next.3 by the hotcrm seat (objectstack-ai/hotcrm#2942) · claimable.

  2. added
    area:workflow
    bug
    domain:server
    pm:queue
    priority:p2
    on Dec 4, 2026
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

    area:workflowbugdomain:serverpm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions