Repository navigation
Conversation
Refs MTGSCAN-274
## Summary Part of [MTGSCAN-274](https://app.plane.so/reilley/browse/MTGSCAN-274/). ```text bounded proof only GPUI camera toggle and presentation state proof-specific accessibility element for that same toggle native preview, text input, recognition and request controls existing detector and recognizer sources existing libwebp revision Mise local/CI tool versions and one presentation unit test ``` Draft only. The gate has not passed. Do not start downstream conversion. No general GPUI accessibility backend or replacement-app scaffold is included. ## Evidence - **Before:** The installed upstream example had only signing/install evidence and a locked-device launch failure. **After:** The unlocked physical iPhone rendered the existing example before any rebuild. The bounded hybrid proof then built, signed, installed and ran with GPUI revision `42fa909546bf85d92f3ddeac0690e4ca69776cc7` and `runtime_shaders`. - Physical checks exercised the GPUI toggle with the native camera preview, text entry, keyboard avoidance, safe-area layout, background/foreground recovery, and retained note/request state. - The phone returned **Authenticated test user. Request succeeded.** A short-lived test-user token was delivered in a temporary file and consumed once. No server credential, password, or refresh token enters this app. - The actual GPUI toggle appears in the accessibility tree with its label, bounds, button role and running state. Native actions and content appear in order. This is not spoken VoiceOver acceptance. - Native actions measured 44 pt high. The GPUI action measured 280 × 52 pt at the tested text size. - The presentation unit test was red before implementation and green after it. Removing the foreground guard made it fail. Rust formatting, iOS Clippy with warnings denied, Swift formatting, Python compilation, workflow lint, and device compilation/linking passed locally. - Strict signature verification and a local development-signed archive passed. Xcode 27.1 is at `/Applications/Xcode.app` on the tested Mac. No Xcode selection, installation, or component change occurred. No App Store export, validation, upload, or TestFlight release was performed. - Final [GPUI gate unit CI](https://github.com/Reilley64/mtgscan/actions/runs/43374629653) passed on `e9f706d89214e7fdf7aa7dd57b808d4e3d71caa7`. Title and path checks passed. Legacy app/database/site suites were path-skipped. The first CI failure was a missing Rustfmt component. It was fixed in project Mise configuration. - Full current acceptance ledger: `/tmp/mtgscan-273-implementation/274-resume.md`. - Sparse device evidence: `/tmp/mtgscan-273-implementation/274-final-keyboard.png`, `274-final-resumed.png`, `274-final-settled-recovery.json`, and `274-final-auth.log`. Raw device metadata stays off the PR. Remaining acceptance: - Actual VoiceOver focus order, spoken labels/state, and activation of these proof controls/content. - Larger system text on the physical phone. - A real card through the reused recognizer, installed gallery and crop encoder. They compile unchanged, but a capture was not exercised. - Any required shipping-distribution validation beyond the successful development archive. Public release remains separately approval-gated. ## Merge Danger **Door:** two-way The proof is separate from the product app. It installs only as `dev.reilley.mtgscan.test`. The installed test app now contains this proof. The production app and its data were not touched. **Blast Radius:** isolated No hosted data reset, infrastructure mutation, backend scaffold, algorithm change, automated integration/E2E suite, merge, or downstream ticket work. Keep the gate In Progress until the remaining evidence is accepted.
Refs MTGSCAN-275
Refs MTGSCAN-275
## Summary Part of [MTGSCAN-275](https://app.plane.so/reilley/browse/MTGSCAN-275/). ```text GPUI page Atomic Design native Apple / Google controls ID-token exchange -> isolated keychain -> refresh / sign-out GET /api/v1/account API -> one application use case -> domain caller policy identity adapter -> trusted Supabase Auth verification ``` Adds only the account slice. Mobile does not link backend application code. Root Mise drives compilation, format, Clippy, dependency boundaries and unit checks. The native build fetches checksummed, pinned GPUI source and uses locked GoogleSignIn dependencies. ADR 0016 and scoped standards preserve legacy rules and checks outside converted paths. ## Evidence - **Before:** unit tracer checks failed for missing use-case/API/session behavior. A later expired-session check and unresolved-account isolation check also failed before their fixes. **After:** 12 Rust unit checks pass. Native controller and in-memory HTTP unit checks pass for Apple/Google, restore, cancellation, rotation, refusals, outages, storage failures and sign-out races. - **Mutation:** removing the expiry refusal makes the real current-account use-case check fail. Restored code passes. - **Compile/lint:** root Cargo check, Rustfmt, Clippy, boundary check, Actionlint, Swift type checks and strict Swift format pass. The native GPUI example compiles and passes Clippy for aarch64 iOS Simulator. Xcode 27.1 builds the GPUI/Swift/GoogleSignIn app. - **Simulator:** selected existing iPhone 17, iOS 27.0. Installed only `dev.reilley.mtgscan.test`. Verified provider labels, disabled unconfigured state, scrolling and largest accessibility text. Restored the original large text setting. - Sparse local evidence: `/tmp/mtgscan-273-implementation/275-*`, including `275-normal.png`, `275-large.png`, `275-large-controls.png` and `275-large-privacy.png`. ### Verification limits and owner actions This draft does not claim successful real Apple/Google sign-in. No owner credentials, hosted resets, live deployment or release were used. Before native-provider acceptance: 1. Confirm the isolated App ID has Sign in with Apple and its development profile includes the entitlement. Allow that bundle audience in the approved Supabase Apple configuration. 2. Supply an approved Google iOS OAuth client for `dev.reilley.mtgscan.test`, its approved server/web client, and Supabase's allowed native client configuration. 3. Supply only the documented public configuration with an HTTPS API origin that actually serves this Rust route. The existing production endpoint is not silently replaced. Any live rollout still needs its separate reviewed plan and approval. 4. The owner completes both provider sign-ins on the isolated app and checks current-account success, real keychain restart/rotation/sign-out and VoiceOver. Unit tests and simulator screenshots do not prove those external behaviors. Keep the ticket open pending parent acceptance. Do not merge this draft or start downstream tickets. ## Merge Danger **Door:** two-way Adds an isolated native slice and an undeployed backend. No migrations or live cutover. **Blast Radius:** authentication Incorrect credential verification or session handling would affect the new native path. Legacy app/database/site paths remain unchanged.
Refs MTGSCAN-276 Add canonical collection read contracts, scoped persistence, and native collection presentation.
Refs MTGSCAN-279
Refs MTGSCAN-284
## Summary
```text
Collection -> Sets -> Set page
native controller, shared finish view and Atomic controls
versioned API -> one Rust application -> Sets domain
scoped read-only Postgres adapter
```
Part of [MTGSCAN-287](https://app.plane.so/reilley/browse/MTGSCAN-287/).
Part of [MTGSCAN-273](https://app.plane.so/reilley/browse/MTGSCAN-273/).
Restore released sets, main set, variants, ordered overlapping set
sections, other cards, finish exceptions, unique-printing completion and
current-price set art. Preserve account isolation, canonical refusals,
paging, query loading and close-based warm-cache behavior. Mobile calls
the API. No hosted activation or new permanent integration/E2E suite.
## Evidence
- **Before:** Independent gates found missing cursor expiry, unbounded
closed-list data, false successful-empty query resets, unreadable
titles, failed native collapse and live XXXL title clipping. Those STOP
reports remain preserved.
**After:** Current source restores cursor900/901 behavior,
close-based300-second expiry, cold replacement versus warm-empty
behavior, canonical title color and public native bar coordination.
Public unit tests and caught/restored mutations cover behavior policy.
Native pixels cover presentation fixes.
- Exact reviewed head: `f42aa887d59017a13872232c4b9f13ad725020ad`. Tree:
`675fde77c7f0621ec5695ef92d9e1fd1ad383d07`.
- Current f42 native evidence: fresh production64 and separate
faithful-runtime62 Swift inputs, real UIKit/Google SPM and GPUI linkage.
Production was not launched. Actual default-root initial live
window-XXXL title is60pt in a127pt bar/73pt slot before repair input.
Independent raw PNG audit finds20664 white glyph pixels, zero
clipping/pixel loss and19.7367:1 contrast. No-scroll repeats, real
normal/XXXL collapse/return, Back/copy44pt, paging20->24, cold
reset/empty notice/retry and bounded gallery/session regressions pass.
- **Specific user-approved mode exception:** This completed f42 run's
pinned driver/daemon created some tool-managed session-log/state
files0644. The original overall verdict stays
`STOP_PROTOCOL_TOOL_MANAGED_SESSION_LOG_MODES`, with product
`BOUNDED_PASS`. Controlled native files were0600 from creation.
Tool-managed files were removed without retention. No real
owner/provider credentials were supplied. Removed raw logs were not
forensically certified secret-free. Approval covers only this documented
tooling deviation, not product/privacy/CI/acceptance/merge/release
requirements. No all-logs0600 claim or global daemon/harness change.
- Original12a evidence retains its execution pin: actual
default-Date302.528s under a set page and302.516s closed.
Controller/time/close ownership bytes are unchanged. These are not new
f42 natural waits. Original582 timed art fades and actual44pt WebKit
half-fill pixels likewise keep their original pin and unchanged renderer
boundary.
- Actual local SQL acceptance remains at
`f60766f374fbbdea8f177a501369e5de2aaa1eb2`. Complete
crates/Supabase/Cargo manifest+lock trees are byte-identical through
f42. Real combined routes/application/domain/SQLx/Postgres17.11 use125
migrations, restricted owner-scoped reader and exact authorized local
Auth-owner provisioning. Normal cases use production SystemClock;
separate external-clock cases prove900/901 expiry. Initial rejected
scratch lock and private-file-mode correction inside0700 scratch remain
disclosed. This is not hosted provisioning or old f686 whole-head
acceptance.
- Live f42 CI: seven successful jobs, app/site scoped skips. Actual
database/migration, Rust50 unit/format/Clippy/boundary, native
unit/gallery/adapter and title checks succeed. Prose edits must also
finish their resulting checks before readiness.
Evidence and independent proof:
`/tmp/mtgscan-273-implementation/287-f42-merge.md` and
`287-f42-merge-proof.json`. Native actual
release:2026-11-14T09:03:41.515918Z. No new native or SQL run occurred
during review.
## Merge Danger
**Door:** two-way
Additive read paths and narrow reader grants. Merge only to the existing
integration branch. Legacy paths remain until coordinated cutover.
Hosted migration/Auth-owner provisioning and service activation need
separate approval.
**Blast Radius:** Sets
Also touches Collection navigation, generated native tokens and shared
artwork dimming. Parent273 remains unfinished. The separate288
Collection successful-empty baseline/localf73 is not imported, fixed,
accepted or waived; current Collection fixtures are nonempty. Natural
detail expiry and a separate successful-empty closed-list window are
unit-only. Physical/spoken VoiceOver, Reduce Motion, actual OS text
settings/background delivery, real
providers/keychain/gallery/networkTLS, hosted deployment, distribution,
publication and cutover remain separate unverified or unapproved gates.
Refs MTGSCAN-283
Refs MTGSCAN-280
Refs MTGSCAN-283
Refs MTGSCAN-286
Refs MTGSCAN-286
Refs MTGSCAN-286
Refs MTGSCAN-283
Refs MTGSCAN-283
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Draft integration for MTGSCAN-273. The bounded GPUI proof, native sign-in/account slice, collection browse/copy reads, native gallery updates, catalog search/details, and Sets/completion have merged. The legacy production app and backend remain in place.
Target boundaries:
Work items
Evidence
After: PR #526 merged the signed physical-device proof, native camera integration, authenticated test-user request, and simulator accessibility/Larger Text checks.
After: both review findings were fixed. Exact-head unit and native camera-status CI passed. Legacy app/database/site suites were path-skipped for that ticket.
After: PR #528 added native Apple/Google sign-in, isolated Keychain sessions, the four-layer account API and test-only foreground keep-awake behavior. Both providers, restart, real refresh rotation, foreground recovery, sign-out and cancellation passed the recorded owner/device checks. Refresh used one injected-clock expiry comparison, not a device-clock change. Integration-head Rust/native and GPUI checks are green. Temporary services and physical test configuration were removed.
After: PR #530 merged stable copy reads, scoped-role/verified-owner isolation, account-safe caches and shared native collection controls. Exact approved-head app/database/Rust/native checks passed; the merged tree matches that head. Isolated two-synthetic-owner Postgres checks and real synthetic GPUI previews cover the bounded adapter/UI behavior. The later hero-layout correction has UIKit red/green/mutation evidence, not a fresh final-head GPUI run. Edge-back probes remain inconclusive; no physical gesture or spoken VoiceOver pass is claimed.
After: PR #529 merged compatible native gallery installation, ordered cancellation and the build-owned background delegate bridge. Exact-head CI passed. Full local replay on reviewed source and actual remote main passed every gate with zero wrong-card accepts and no changed recognition results. The merged tree exactly matches the reviewed source. OS-generated background delivery, physical parity, spoken VoiceOver and release acceptance remain outside this bounded evidence.
After: PR #532 merged canonical catalog contracts, the shared backend/real scoped SQLx path, native catalog pages and the corrected read lifetimes. Exact-source CI, committed owner-provisioned local SQL/security checks and actual default-root native red/green evidence passed. Merge
a2b730c5has exactly the reviewed source tree and expected integration parent. Hosted Auth-owner provisioning remains unknown and requires separate approval before activation; bounded local proof is not hosted or release readiness.After: PR #535 merged the shared finish/completion queries, scoped SQLx adapters and native Sets pages with the minimal corrections. Fresh whole-source review and applicable exact-head CI passed. Merge
87d08bd2exactly matches reviewedf42aa887and has the expected sole integration parent. Current actual-root native product behavior has bounded positive evidence, including initial live XXXL geometry before repair input. Original natural cache windows and art pixels retain their original execution pins; SQL remains pinned tof60766f3across a complete unchanged backend boundary. The specific completed-run tool-managed 0644 log/state creation-mode deviation was user-approved; original strict-protocol STOP receipts remain preserved alongside product BOUNDED_PASS, with no broader privacy, CI, acceptance or release waiver. MTGSCAN-287 Done and its acceptance comment were independently retrieved. Separate Deck work and all release limits remain unfinished.Merge Danger
Door: two-way
Current changes add a bounded proof, an isolated native account shell, Rust account and owned-collection read services, native gallery/catalog/Sets coordination, additive scoped-reader/RLS migrations, narrow Auth-owner provisioning and development checks. No production deployment or cutover has occurred. Reassess before the final merge when persistence, authority and cutover changes land. Keep this PR draft until the whole spec and final review are complete.
Blast Radius: development
The intended final scope includes mobile, API/MCP, shared business policy, persistence adapters, and homelab deployment. Current production behavior is unchanged. Live mutations and release operations need their separately reviewed plans and approvals.