Skip to content

FCL-M2 Batch A local coach - #3

Draft
PNHD wants to merge 18 commits into
feat/focelle-betafrom
task/FCL-M2-batch-a-local-coach
Draft

FCL-M2 Batch A local coach#3
PNHD wants to merge 18 commits into
feat/focelle-betafrom
task/FCL-M2-batch-a-local-coach

Conversation

@PNHD

@PNHD PNHD commented Aug 1, 2026

Copy link
Copy Markdown
Owner

FCL-M2 Batch A integration candidate.\n\n- Source SHA: dc72e04\n- CI validation pending\n- No merge requested.

PNHD added 18 commits August 1, 2026 08:52
Adds the balanced 24 MP tier (default for clean installs), preserves every meaningful supported dimension, enables AVCapturePhotoOutput automatic deferred photo delivery before session start/reconfiguration, saves deferred proxies via PHAssetResourceType.photoProxy, and keeps requested / capture-resolved / proxy-resolved / final Photos dimensions distinct until Photos confirms the fused asset. Camera switching recomputes 12/24/48 availability. A filter or non-4:3 crop truthfully falls back to the immediate 12 MP path because the deferred proxy cannot honor in-app post-processing.
PlanSession snapshots zoom/exposure baselines and never mutates the camera; Apply uses absolute values, Undo restores the exact baseline, and a capability-generation change invalidates the session. OnDeviceAnalyzer now emits a privacy-safe SceneDescriptor (pose/face landmarks, lighting, blur proxy, cached classifications, availability-gated low-cadence 3D pose) with SubjectIdentityTracker association that never jumps to an unrelated object. coachV2Enabled and aestheticsEnabled default OFF.
Versioned owned-synthetic template schema with deterministic generation from 14 canonical seeds to 92 validated variants (mirroring, framing scale, camera height, lean, multi-subject spacing). Validation covers joint angles, limb ratios, crop-safe face zones and ground placement; deduplication uses canonical rounding, mirror equivalence and a distance threshold. Regenerate with scripts/generate_pose_templates.py; output is byte-deterministic.
LocalPlanner runs hard rejection before scoring and returns Primary/Safe/Creative plans with deterministic weights and greedy max-min diversity. CameraSession snapshots PlanSession on Analyze, applies absolute zoom/exposure on Apply, restores the exact baseline on Undo, and invalidates on camera/capability change. The beta Settings toggle (default OFF) routes Analyze through the local planner; plan titles, selection, Apply and Undo render in the existing guidance overlay. Aesthetics remain protocol-only with zero weight. Adds locked architecture doc and project wiring.
High-value tests: Analyze never mutates zoom/exposure, absolute Apply, exact-baseline Undo, ten-cycle no-drift, capability-generation invalidation, stale SceneDescriptor rejection, deterministic stabilization, no subject jump after tracking loss, bundle schema validation, deterministic/mirror dedup, implausible and crop-unsafe rejection, hard constraints before scoring, feasible diverse Primary/Safe/Creative plans, and default-OFF persisted feature flags. 12/48 MP and manual shutter behavior remains covered by the existing resolution tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant