Skip to content

Dead code: /verify liveness floor 0.4 compared against a 0–100 score (no-op) #153

Description

@ahmetabdullahgultekin

On /verify, VERIFY_MIN_LIVENESS_SCORE = 0.4 is compared against a liveness score that is on a 0–100 scale, so score < 0.4 is effectively always false — the floor never fires. The real gate is is_live (threshold 70). The 0.4 check is dead/redundant and misleading.

Evidence: app/api/routes/verification.py:414-416; scale per liveness_result.py (0–100) and config.py LIVENESS_THRESHOLD=70.0.

Fix: delete the redundant floor, or rescale it to the 0–100 range if a separate floor is actually wanted.

Source: MASTER_ISSUE_REGISTER_2026-06-03 (BIO-3), re-verified on HEAD 2026-06-13.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dead-codeVerified-unused code slated for deletion (DI-aware V&V)surface/biobiometric-processor (FastAPI/Python)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions