Skip to content

scaffold_verifier draft hides fields a minimized capture withheld #2821

Backlog

Description

@abrichr

scaffold_verifier._candidate_from_request doesn't say when a minimized capture withheld some of the write's fields.

Where: packages/flow/openadapt_flow/scaffold_verifier.py, around lines 278–306. The candidate payload is built from rcs._write_values(...). With a minimized network capture (the default since #2480), that payload contains only the kept, demonstrated values. Nothing in the candidate says that other fields were withheld.

Impact: This affects only the TODO draft verifier, which a person reviews before use, so severity is low. A reviewer could still take the draft for the whole request.

Fix: Note the withheld fields on the candidate, using rcs._write_unseen, so the draft says which fields it couldn't see. Add a test that uses a capture produced by the real minimize_line.

Found while fixing #2789 (#2819).

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