feat(adr-0123): pool-emission-quality gate — weak pool faces recognized+marked, never mint auto suggestions #1507
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/v6-pool-emission-quality-gate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements ADR 0123 V1–V5 (merged as !1506): pool faces below
pool_min_confidence(detector confidence) orpool_min_quality(V138 crop quality: 0.7·sharpness + 0.3·exposure) stay full partition members — they cluster, densify, stay marked and re-proposable — but are never claimed by a candidate card; a group whose members are all gated mints nothing. Emission-scoped only: no scoring/envelope/contract (v6@5 stays)/cache change; v1–v5 byte-identical.Changes (
7c470ae6)discovery_domains.pool_min_confidence+pool_min_quality(NUMERIC(3,2), NULL = off, fail-open)OwnerFaceEmbeddingsController):qualityScoreadditive row key on both UNION branches (ADR 0119detectionConfidencepattern)settings.poolMinConfidence/poolMinQualitysnapshotted v6-only (SemisupervisedMethod.snapshotsPoolQualityGate()), finite [0,1] validated, absent = off_emit_group_candidates(emission_eligible=frozenset)—claimed_offsetsdrive refs, identity voting (wholeGroup), scoring n_source, and consumption; gated faces stay inavailable(re-proposable), never admitted/globally consumed, don't vote identity; empty claimed → early return. Both gates off → kwarg omitted (byte-identical; 4 existing call sites untouched)/pool-quality-gate+ Admin Discovery UI fields (en/da/de)Validation
PoolQualityGatePostgresTeston the production Flyway chain,OwnerFaceEmbeddingsControllerTest/AnchorMinConfidencePostgresTestre-run green, compileJava cleanOperator use
After deploy: set the floors via Admin Discovery (or GET/PATCH
/api/admin/people/pool-quality-gate), then trigger a recluster. Probe-recommended starting point: 0.60 / 0.25 (ADR 0123 context: demotion semantics — weak faces stay reviewable, manual similarity assignment untouched). UI note: one PATCH replaces both floors; blank field keeps the stored value (no accidental off-switch).