Skip to content

Builder signs receipts with empty fields and out-of-range scores #8

Description

@royalpinto007

Problem

The builder only checks None: empty query/answer, empty source id/content, and score=999.0 all finalize and verify as valid receipts.

Where

src/answerproof/builder.py (_validate checks is None only, no emptiness or [0, 1] range checks).

Acceptance

Add a failing test first finalizing with "" query/answer/source fields or an out-of-range score, expecting ValueError. Then fix.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions