# S5 — candidate decisions, approved projection and replay

2026-09-26. A5B-031a–035b implemented. Nine desk-completable cards / 16 points accepted; 032b / 3 points remains Blocked for physical multi-viewpoint offset measurement. Standing user instruction: physical testing deferred. No observed phone-camera accuracy, surveyed registration, field approval or reviewer sign-off is claimed.

## 031 — confidence, automatic proposals and correction

RecognitionPolicy consumes the S4 ranking and emits unavailable, uncertain, reviewRequired, high, conflict or manual. Strong geometry is not sufficient by itself: automatic eligibility also requires a reviewed ApprovalManifest entry matching target ID, anchor ID, exact point/baseline/normal and source snapshot revision, approved/field-verified frontage metadata, and the candidate's automatic permission. A returned card must separately permit automatic recognition and be field verified. Card ID, BBL and optional BIN must match the requested target, and source/fact validation still applies. Existing API v1 remains unchanged and emits provisional targets/cards with automatic permission false.

**Current real-pilot automatic eligibility is zero.** The native approval manifest is intentionally empty because source anchors and physical calibration remain provisional. There is no UI action to manufacture approval. Enabling real automatic display later requires closing the physical/reviewer gates, reviewing versioned geometry approvals, and deliberately advancing the source/card permission contract. The automatic code path is desk-verified with explicitly synthetic approved fixtures, not enabled on unverified Bronx properties.

The controller requires three consecutive qualifying camera-score samples, at 2 Hz, before proposing an automatic selection. UI refreshes do not count as sensor samples. It does not repeat the same proposal each frame. A user choice locks automatic switching until explicit resume or session stop. The top candidate and confidence reason appear on screen; alternatives remain sorted by score with stable ID ordering for ties. Corrections use the same exact-ID card request API, clear previous placement, and reject late replies by request generation. Optional local feedback records previous/chosen/suggested IDs and confidence; initial explicit choices are also recorded, while repeat taps of the same ID are not.

For a manual correction, ambiguity can be acknowledged explicitly without calling the result high confidence: selected candidate score must still be ≥0.60, supported and not possibly occluded. Tracking, calibration, pitch, visibility and position/heading uncertainty gates cannot be bypassed. Manual display remains labeled approximate/unverified. Unknown evidence suppresses spatial cards even if an ID is retained for correction.

## 032 — approved facade projection and deferred measurement

FacadeProjector selects a currently supported, non-occluded approved frontage, not simply the first frontage on a corner building. It requires the approval manifest to match exact geometry and source revision. The selected longitude/latitude point is converted into the pilot's approximate east/north coordinates and transformed into AR horizontal (x, −z). An ARAnchor uses that local position. Unknown source elevation is not invented: label height uses current local camera height and the projection is explicitly horizontal-only. Provisional/unapproved, wrong-session, changed-source, back-facing and unsupported references cannot project.

032a is a desk build/test acceptance only. Approved synthetic point (-73.913, 40.803), under a known 90° transform and translation (5,7), projects to AR (5, cameraHeight, −7). Tests also reject tampered source/point, absent approvals and back-facing reference. The real pilot has no approved reference yet; explicit manual local placement remains available when current evidence supports it.

032b measurement plumbing is implemented: explicit tapped-reference offset estimates, selected ID, confidence state and sequence can be retained in the opt-in feedback buffer. Estimates are in pixels and explicitly unsynchronized, not ground truth. `s5-offset-template.csv` is an empty field ledger. To finish 032b, after 029b and reference approvals, use at least three independently reviewed viewpoints spanning both sidewalks, distances and turn/occlusion conditions from the S3 protocol. Record independent feature, pixel offset, tracking/uncertainty, source revision, selected ID, view and reviewer; repeat after restarting calibration. Report distribution and failed/abstained views rather than excluding them. Exact facade registration must not be claimed from an approximate horizontal fit. **No multi-viewpoint offsets have been measured.**

## 033 — provider contract and local fallback

AlignmentProvider is a narrow, synchronous, Sendable transform interface. AlignmentContext carries current session ID, local calibration, age and displacement; it carries no image, property credentials or network client. The router validates session, finite transform/quality and the 60-second/20-m bounds. Absent/unavailable/invalid optional providers fall back to valid local calibration. If neither is valid, it returns unavailable; stale local calibration is never resurrected.

VPSStubProvider deliberately returns unavailable. The native Try optional VPS stub control exercises fallback but does not start a third-party SDK or transmit anything. Baseline and fallback preserve target IDs, source geometry, card endpoint and test fixtures. A future real provider needs its own permission, data-use and accuracy review; this sprint does not enable one.

## 034 — suppression and manual recovery

Unavailable or degraded tracking, absent/expired calibration, low visibility, excessive pitch, degraded position/heading, unsupported frontage, insufficient separation and ID conflicts suppress spatial cards and remove anchors. A selected ID may remain for explicit correction. A conflicting card response is rejected; returning to normal tracking alone does not resurrect the old anchor. Correction starts a new request generation and manual lock. Strong geometry with unapproved data is reviewRequired, never automatic. Tested examples include persistent manual choice, ambiguity correction, a correction that cannot bypass tracking loss, missing calibration, mismatched chosen/top ID, and conflicting response identity.

## 035 — image-free sensor summaries and deterministic regression

Feedback is off by default, separate from S3's smaller numeric trace. Opt-in permits at most 100 correction records and 100 explicit offset estimates. Save current viewpoint summary is an explicit action, capped at 20 records. It captures typed numeric position/heading uncertainty, pitch, visibility, tracking/calibration state, candidate geometry, source target IDs, selected/expected ID and decision context. There is no raw camera frame, pixel buffer, recognized prose, credential, exact timestamp, automatic sensor trail or absolute observer-coordinate field. Candidate geometry is translated relative to an observer fixed at (0,0), preserving the scoring calculation.

Relative geometry is **not anonymization**: combining it with property IDs/source geometry can reveal a viewing position. Exports are restricted local pilot records. The screen discloses the data and 30-day review/deletion responsibility. Nothing is uploaded; stop, backgrounding or opt-out clears memory. A5B cannot delete copies/backups the user exports. User-selected expected IDs are labeled USER_SELECTION_UNVERIFIED, not reviewer truth. The S0 005b reviewer-sign-off task remains open. Only synthetic fixtures/results are committed or published.

ReplaySnapshot version A5B-REPLAY-1 calls the actual GeometryScorer and RecognitionPolicy. Unknown versions fail closed. Fourteen versioned JSON fixtures include synthetic sensor summaries, geometry, approval context, expected ranked IDs and confidence state. Each is replayed six times with exact equality of scores/order/state. High decisions assert expected automatic target; all other states assert no automatic target. Tests verify that translated relative captures reproduce the absolute synthetic scene's ranking. The suite also verifies source-tamper rejection, supported-anchor choice, card permission agreement, three-sample stability, correction lock, provider fallback, old-response rejection, feedback consent/bounds/clearing and unchanged S3/S4 behavior.

GeometryScorer's legacy automaticSelectionAllowed=false means geometry alone cannot choose; the S5 RecognitionDecision is the additional approved-target decision layer. No threshold was relaxed to turn current provisional source data into an approved target.

## Evidence and tracker treatment

- `docs/evidence/S5/core-tests.txt`: 35 passing native-core tests, including prior regressions.
- `docs/evidence/S5/replay-results.json`: 14 deterministic synthetic replay results.
- `ios/A5BCore/Tests/A5BCoreTests/Fixtures/s5-scenes.json`: versioned replay inputs and expected results.
- `docs/evidence/S5/simulator-build.txt` and `device-build.txt`: Debug simulator / unsigned Release iPhone builds; no device installation claim.
- `docs/evidence/S5/ui-review.md`: simulator confidence states and consent/clear controls.
- `ios/A5BCore/Sources/A5BCore/{Recognition,Alignment,Replay}.swift`: core implementations; AppModel, ARCameraView, RecognitionScreen and CameraScreen provide native integration.

031a, 032a and 033a retain originalDependsOn/deferredDependsOn for 029b; 035a retains those fields for 005b. This follows the user's standing physical-test deferral and permits desk implementation without silently closing prerequisites. 032b remains Blocked. Other completed dependencies and original acceptance text are unchanged. No physical acceptance point is earned by the simulator build.
