fix(capture): align masked tape calibration with #99

This commit is contained in:
Ty
2026-09-24 16:49:17 -07:00
parent 4ca2ef57a7
commit d49ff2fab5
18 changed files with 757 additions and 181 deletions
+6 -4
View File
@@ -34,11 +34,13 @@ exit (QUALITY-30); agents record raw evidence, never declare green.
sandbox on the `m4` branch; `docs/design/issue-99-tape-line-overlay.html` (approved
wireframe); `frontend/src/png/crop.ts` (projection logic).
- **Work:** promote the prototype to the shipped calibration path (owner drags both
ticks), adopt the as-built length model (maskSpanAlong projection), delete the
ticks to the actual tape start/end; scale = tick-pixel distance / owner-declared
length — no `maskSpanAlong` check), delete the
sandbox + query-param gating, keep `crop_fill` (already landed in 818874e).
**Scope (Ty confirmed):** confined to the calibration step — the photos-ready
lineup (CAPTURE-130) stays as-is; #99 does not touch it.
- **Verification:** unit tests in `frontend/src/png/*` (tape geometry), `tsc --noEmit`,
- **Verification:** unit tests in `frontend/src/png/*` (tape geometry + tick-distance
scale math in photo px under pan/zoom/rotate), `tsc --noEmit`,
manual calibration on one slab at 375px.
- **Sequence:** parallel with T3–T5; no dependency on T1.
- **Stop:** prototype shipped, `?tape-prototype` removed, tests green.
@@ -76,8 +78,8 @@ exit (QUALITY-30); agents record raw evidence, never declare green.
wireframe, 2026-09-24) for the visual language + the interaction model.
- **Work:** 2–3 HTML variants of the thumb-first review flow. Standing paradigms:
*no tap-bubble chip clouds for long lists → collapsible searchable checklist*;
leftmost-kept-is-primary for wood (primary + optional secondaries); AI-assist
labeled as "suggested, confirm"; every metadata requirement present (primary
leftmost-kept-is-primary for wood (primary + optional secondaries);
no AI-assist surface (Call 1 decommissioned); every metadata requirement present (primary
wood-category required, secondaries optional).
- **Verification:** Ty reviews the served variants and accepts one (375/768/1280).
- **Sequence:** before T5/T6. **Stop:** Ty accepts a variant.