card-grader/static
Barely Removable 0cbeb26665 Audit round 2: aspect measured the case too; defensive image decode; own-key state reset
4. aspect_profile had the same root cause as edges/centering but no guard.
   On the cased photo it reported 5.8% off standard -- the CASE's
   proportions -- and the UI would surface that as a trimming hint about a
   card it never measured. This one is more directly load-bearing than the
   other two, since the measurement IS the detected box. Now refuses, with
   both consumers (prompt block and UI hint) checking reliable.

5. _decode_images could KeyError/raise out of a plain read on a malformed
   row, and separately b64decode returns b'' rather than raising on some
   corrupt input -- which would have fed a zero-byte 'photo' into grading
   to fail confusingly deep in the pipeline. Both now degrade to the
   existing re-pick path.

6. _last_used_own_key is instance state on a handler that serves every
   request on a keep-alive connection, so it outlives the request that set
   it. Currently safe (every logging path assigns first), but a future path
   that logged without reaching the assignment would bill the previous
   request's payer. Cleared up-front now.

Full regression suite re-run: die-cut exclusion, uniform cards, centering,
aspect, cased-photo refusals, and the store layer all still behave.
2026-08-25 08:05:33 -07:00
..
app.js Audit round 2: aspect measured the case too; defensive image decode; own-key state reset 2026-08-25 08:05:33 -07:00
icon-180.png Initial commit: Card Grader deployed to hippofam.com/cards 2026-08-22 09:22:41 -07:00
icon-192.png Initial commit: Card Grader deployed to hippofam.com/cards 2026-08-22 09:22:41 -07:00
icon-512-maskable.png Initial commit: Card Grader deployed to hippofam.com/cards 2026-08-22 09:22:41 -07:00
icon-512.png Initial commit: Card Grader deployed to hippofam.com/cards 2026-08-22 09:22:41 -07:00
icon.svg Full PSA palette: light silver ground, brand red accent, dark text 2026-08-22 12:41:53 -07:00
index.html Track grading spend per user 2026-08-22 17:17:14 -07:00
manifest.json Full PSA palette: light silver ground, brand red accent, dark text 2026-08-22 12:41:53 -07:00
style.css Replace History-row authenticity dot with a visible badge 2026-08-23 11:55:29 -07:00
sw.js Initial commit: Card Grader deployed to hippofam.com/cards 2026-08-22 09:22:41 -07:00