Disjoint held-out setup. 12 synthetic completion records in two cohorts. Positive (4: WKT-001 through WKT-004): authenticated member, active membership, workout plan assigned to member, plan not yet completed for this session, member opted in to completion tracking. Negative (8: WKT-005 through WKT-012): plan not assigned to member, membership expired, plan already completed for this session, expired session, duplicate completion for same plan/date, unknown member, fitness platform API unavailable, revoked membership. Held-out excludes revocation (WKT-R101), restore (WKT-R201), dropped-response recovery (WKT-R301) and stale (fit_R_STALE_901). Training/tuning disjoint. All hypothetical.
Allowed workflow (fit_1, operation A). Fixture WKT-001: member MBR-8800 authenticates, starts assigned workout plan WP-6600 (upper body strength, assigned by trainer TRN-4400), logs exercises (bench press 3x8 at 185lb, overhead press 3x10 at 95lb, rows 3x10 at 135lb), completes plan, submits completion record with key op:fit_A_001 scoped to gym/member MBR-8800/plan WP-6600/date 2026-11-16/session SES-FIT-001. Fitness director independently reads: (a) member MBR-8800 status (active membership); (b) session SES-FIT-001 validity (current); (c) plan WP-6600 assigned to MBR-8800 by TRN-4400; (d) plan not yet completed for 2026-11-16; (e) member opted in to completion tracking. Approves the exact completion record for member MBR-8800, plan WP-6600, date 2026-11-16 under the configured fitness policy. Training coordinator (authorized executor) submits to fitness platform. Expected business receipt: completion record at fitness platform authority with reference WKT-REF-1101 (read platform independently, confirm present with correct member, plan, date and exercise data). Evidence: completion log at audit authority (read independently, confirm present for op:fit_A_001). Acceptance target: 4 of 4 positive records produce completion receipts at fitness platform authority.
Replay of A. Key op:fit_A_001 already committed at fitness platform authority. Exact replay returns existing receipt WKT-REF-1101 and status. 0 new completions created. 0 duplicate submissions.
Independently approved B (fit_1b, operation B). Fixture WKT-002: different member MBR-8801, different plan WP-6601 (lower body strength, assigned by trainer TRN-4401), different date 2026-11-17, key op:fit_B_002, session SES-FIT-002. Fitness director independently reads MBR-8801 active, session current, plan assigned and not completed for date, opted in. Freshly approves for this distinct action. Training coordinator submits. Expected business receipt: completion record at fitness platform authority with reference WKT-REF-1102 (read independently, confirm present). Evidence: completion log at audit authority (read independently, confirm present). Expected from three submissions (A, replay A, B): 2 new completion records (WKT-REF-1101 and WKT-REF-1102), 0 from replay. Acceptance target: 2 of 3 submissions produce new completions; 0 duplicate effects.
Denied: wrong member (fit_2a). WKT-005: plan not assigned to this member. 0 completions for unassigned plans. Denied: expired membership (fit_2b). WKT-006: membership expired. 0 completions on expired memberships. Denied: already completed (fit_2c). WKT-007: plan already completed for this session date. 0 duplicate completions. Denied: expired session (fit_2d). WKT-008: session expired. 0 completions on expired sessions. Denied: duplicate completion (fit_2e). WKT-009: completion already submitted for same plan/date. 0 duplicates. Denied: unknown member (fit_2f). WKT-010: MBR-ABSENT not in system. 0 completions from unknown members. Denied: platform unavailable (fit_2g). WKT-011: fitness platform API unreachable. Completion queued locally with notification. 0 completions confirmed without platform verification. Denied: revoked membership (fit_2h). WKT-012: membership revoked. 0 completions from revoked memberships.
Revocation and non-dispatchable parking (fit_4, WKT-R101). Fixture WKT-R101 with key op:fit_R_101: member MBR-8800 queues a follow-up completion while membership is still active. Before dispatch, MBR-8800 membership is revoked at authoritative version v2. Device detects revoked membership and parks queued completion non-dispatchable; app prevents retry. Platform independently rejects against membership v2 if stale submission arrives. If HealthKit write permission was previously granted, the app does not write workout data for a revoked member (write status checked via authorizationStatus(for:)). If Health Connect read or write permission is later revoked, app detects denied on next explicit permission check and falls back to local-only record. HealthKit read revocation is not directly observable; no readable samples triggers the manual local path with no authorization inference. Read platform before: WKT-REF-1101 from op:fit_A_001 present, WKT-REF-1102 from op:fit_B_002 present, no receipt for op:fit_R_101, no pending/in-flight. Read after: WKT-REF-1101 and WKT-REF-1102 unchanged, no receipt for op:fit_R_101. 0 new completions from revoked member.
Health permission denied before capture (fit_4c, WKT-P401). Fixture WKT-P401: member MBR-8803 (active membership, plan WP-6603 assigned) denies Health Connect read permission for heart rate before starting workout. App detects denied via explicit permission check. Workout proceeds with manual entry only: member logs exercises, sets and reps locally. No heart rate data read or recorded. Completion record submitted to fitness platform with plan data and manual entry; no health payload attached. Receipt WKT-REF-P401 at platform confirms completion with manual-only flag. HealthKit write permission for workout sessions checked separately via authorizationStatus(for:): if denied, workout logged locally with no HealthKit write; if granted, workout session written to HealthKit. Manual completion preserved regardless of health permission state.
Upload consent revoked after queued health capture (fit_4d, WKT-P402). Fixture WKT-P402: member MBR-8804 (active membership, plan WP-6604 assigned) completes workout. OS Health Connect read grant for heart rate and write grant for workout sessions remain valid throughout; membership remains active. The app's separate account-level upload-consent setting (which governs optional transfer of a minimized health summary to the fitness platform) is initially granted by MBR-8804. App reads heart rate samples via Health Connect read grant and assembles a minimized health payload (heart rate average, active calories) queued for optional upload to the fitness platform under key op:fit_P_402. Before first send: MBR-8804 revokes upload consent in the app/account authority. Device rechecks current upload-consent state at account authority before transmit: consent revoked; first send blocked. Exact queued retry of key op:fit_P_402 with same payload: device rechecks upload consent again, still revoked, retry blocked. Separately simulated stale request arriving at backend for op:fit_P_402: backend checks current authoritative upload consent for MBR-8804, finds revoked, rejects. Read fitness platform health-ingestion log for key op:fit_P_402: no entry. Read platform telemetry/analytics for MBR-8804 health data after revocation: none. No cloud fallback or telemetry substitute. Independently authorized manual completion (exercises, sets, reps, plan WP-6604) submitted to fitness platform without health payload. Receipt WKT-REF-P402 at platform confirms manual completion. Read platform after: WKT-REF-P402 present with manual-only data, no health metrics attached for op:fit_P_402. Previously committed receipts (WKT-REF-1101, WKT-REF-1102) with their authorized health data unchanged. If upload delivery for op:fit_P_402 was already in-flight or delivery status unknown at time of revocation check: hold for gym operations director and reconcile against platform ingestion log rather than guaranteeing zero remote data.
Dropped response recovery (fit_4b, WKT-R301). Distinct recovery-only fixture: member MBR-8802 submits completion WKT-R301 for plan WP-6602 on 2026-11-18 with key op:fit_R_301, response dropped. Independently check: (1) MBR-8802 active membership at current version; (2) session SES-FIT-003 current; (3) WP-6602 assigned to MBR-8802; (4) plan not completed for 2026-11-18; (5) member opted in to completion tracking; (6) durable log for op:fit_R_301; (7) platform receipt for op:fit_R_301; (8) audit log; (9) pending at platform; (10) in-flight. Receipt present with missing local log: reconcile without resend. All present and consistent, no pending/in-flight: complete. Any pending or in-flight: hold for gym operations director. Durable log committed but platform receipt absent, or durable/audit/receipt in contradictory states: hold for gym operations director; no silent replay or extra write. Conclusively uncommitted: no log, platform absent, audit absent, pending/in-flight clear, session current, plan assigned and not completed, member active and opted in; fitness director freshly approves; training coordinator resubmits same key op:fit_R_301 same payload. Any unknown, pending, expired session, plan completed, membership revoked or platform unreachable: hold for gym operations director. 0 duplicate submissions.
Staged restore (fit_5). Stage privately with no production completion submissions. Read platform before: WKT-REF-1101 from op:fit_A_001 present, WKT-REF-1102 from op:fit_B_002 present, op:fit_R_101 no receipt (revoked). Read audit: entries for op:fit_A_001 and op:fit_B_002 present, none for op:fit_R_101. Pending/in-flight: zero. Authorized route: training coordinator with current scope, fitness director accepted. Revoked route: member MBR-8800 (revoked at fit_4 membership v2) denied. Private fixture WKT-R201 with key op:fit_R_201: read platform and audit before restore (no receipt, no entry), read after (unchanged, no production writes). Verify: WKT-REF-1101 and WKT-REF-1102 unchanged, no receipt for WKT-R101 or WKT-R201. 0 production effects. Named fallback: gym operations director; completions revert to manual log with current platform state. Queue reconciliation: gym operations director reviews pending completions against platform receipts. Two named roles sign off: fitness director and training coordinator approve before production restore.
Stale-submission recovery. Member starts workout, goes offline. Reconnects after extended period. Re-check membership still active, plan still assigned, date still valid. If membership expired or plan changed, member notified with updated status. 0 stale completions for expired or reassigned plans.
Operations logging and access control (fit_6). Restricted audit: member identity, plan, exercise data, completion status, operation key and timestamp per gym privacy policy. General log: opaque reference, role, timestamp, decision outcome. No member PII, health data or workout details in general logs, analytics, crash reports or push notification bodies. Retention per gym retention policy. Training/tuning disjoint from held-out. All hypothetical.
Concrete native accessibility targets. On iPhone SE 3rd generation (iOS 17) with VoiceOver enabled, member logs workout completion: (1) open assigned plan and start workout (target: plan name and exercise list announced); (2) log sets, reps and weight for each exercise (target: fields labeled, keyboard input accepted, timer controls accessible, errors announced); (3) complete workout and view receipt (target: completion reference and summary announced; no silent commit). No mandatory custom gesture or device-only capture. On Samsung Galaxy A14 (Android 14) with TalkBack, same 3 completion tasks completable. On iPad 10th generation with hardware keyboard, fitness director navigates completion queue: Tab moves visible focus between rows; Enter opens detail. Dynamic Type/system font scaling to 200% does not clip exercise details or set/rep fields. Low-end device (Galaxy A14, 3 GB RAM): app load within 4 seconds on 3G; workout form renders without truncation. Weak/offline network: completion captured and queued locally with offline indicator; submission completes on reconnect. If health platform permission or upload consent denied or revoked before upload, workout recorded locally with manual entry option and no health payload in telemetry; device rechecks upload consent before each retry. Failed sync after 3 retries: held safely with pending indicator and no automatic replay of ambiguous outcome. Residual risk: platform outage prevents confirmation; app shows pending status. Target: 4 of 4 positive held-out completion workflows complete with screen reader active and no sighted assistance. Test plan with stated targets; no claim tests have been executed.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.