Skip to content

Run receipt keeps VERIFIED for a report with writes but no readback block #2855

Backlog

Description

@abrichr

openadapt_flow/receipt_record.py (around _evidence_scope and build_statement, line ~429) keeps a VERIFIED outcome with no evidence scope when report.json has no readback block. The intent was to keep the old shape for a run that made no save. But the check doesn't look at whether the report has writes.

Reproduction: a reviewer passed build_statement a report with one confirmed tier-4 write and no field checks.

  • With a readback block, the receipt was UNKNOWN / RECORDED.
  • Without one, the receipt was a signable VERIFIED statement, even though its own line listed field_values as unchecked.

Fix: keep the no-block exception only when the report has no write lines. If the report has writes and no readback block, the outcome should be UNKNOWN (incomplete write coverage).

Found by: the independent review of #2849. This behaviour is already on main.

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