File size: 3,304 Bytes
1d21e88
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Production readiness: remaining acceptance gates

## Implemented in this iteration

Valid uploaded pairs produce a review response even if geometric alignment fails. Failed registration preserves both originals, reports the reason, offers next steps, and does not invent an aligned composite. Match support is explicitly defined, with null when not measurable. Successful numerical registration still requires visual review. Malformed uploads and service failures remain errors; the UI does not conceal them as results.

## Priority 1: establish the meaning of quality

Use independently marked matching fibers/crypts to measure median and tail landmark error on the real photographs, along with valid iris coverage and deformation limits. Establish acceptable thresholds with the client at native resolution. Separate development pairs from a new held-out real test set. Calibration must precede any confidence percentage or automatic “ready” label. Neither inlier percentage nor agreement with the matcher's own predictions establishes anatomical correctness.

## Priority 2: usable alignment workflow

Add iris/pupil/eyelid/glare masking with corrections. Promote the experimental ML matcher only behind an explicit reviewed mode and the validated acceptance gates. Provide manual landmarks for difficult pairs; never force an unsupported warp. Keep matching features separate from source pixels, and only borrow glare-free source regions after adjacent geometry is verified. Save the composed transformation, source contribution masks and versioned settings with each result. The experimental model is now an opt-in API mode for confirmed centered square crops; it is not a production-approved or full-frame pipeline.

## Priority 3: service and deployment

Complete VM Docker and Vercel configuration, explicit backend HTTPS URL and exact allowed frontend origins. No VM or Vercel domains have been supplied yet. Move processing from long HTTP requests and base64-heavy responses to a bounded worker queue, job-status endpoints and private downloadable artifacts. Add job timeout/cancellation/retry semantics, memory limits, request limits, and health monitoring. Separate invalid input, alignment rejection and infrastructure failure in the API and telemetry.

For CPU-heavy jobs, FastAPI's [background-task guidance](https://fastapi.tiangolo.com/tutorial/background-tasks/#caveat) describes when a separate worker system such as Celery is appropriate. Its [deployment concepts](https://fastapi.tiangolo.com/deployment/concepts/) cover HTTPS, restarts, worker replication and memory. The current app has not implemented these production facilities.

## Priority 4: client data and release checks

Add authentication, per-user access to results, private upload storage and defined deletion/retention. Load-test the largest supported images and concurrent jobs on the intended VM. Keep customer samples and research artifacts out of public static assets and container build context. Pin/version model weights and transformations. Establish rollback and regression tests on an approved real-image validation set.

Production release remains blocked on real-data accuracy and these operational requirements. Better error presentation alone does not make the registration engine production-ready.