{
  "schema_version": 1,
  "record_id": "SW-R06-CONNECTION-SPECIMEN-CONTRACT",
  "revision": "R06",
  "status": "TEST_ONLY_AUTHORED_METRIC_SPECIMEN_NOT_REGIONAL_PLACEMENT",
  "observed_main_sha": "bfef0a6bc2f33e28ac5d07e84e51cf86687c3b7d",
  "author": "Marley / Codex / sw_geometry_spec / GPT-6 Astra / Extra High",
  "coordinate_frame_id": "SW-R06-SPECIMEN-LOCAL-M",
  "parent_convention": "SW-CK-AUTHORING-R03",
  "scope": "A deliberately synthetic two-shore connection implementing the R03 first 5% feasibility specimen. It is useful importable geometry and a calculation fixture, not the location, shape or size of any Southwest district or Crown Key connection.",
  "inputs": {
    "requirement": {
      "minimum_clear_height_m": 20,
      "pedestrian_switchbacks_each_end": true,
      "status": "CREATOR_REQUIREMENT",
      "mapping_to_actual_connection_ids": null
    },
    "source_basis": [
      "docs/southwest-prep/R03/foundation/WORLD_FRAME_PROPOSAL.json",
      "docs/southwest-prep/R03/foundation/FEASIBILITY_INPUTS.json",
      "docs/southwest-prep/R03/foundation/bridge_feasibility.py"
    ],
    "inherited_proposals": {
      "navigation_high_water_z_m": 0,
      "landing_z_m": 2,
      "deck_depth_m": 2,
      "additional_margin_m": 0,
      "opening_width_m": 100,
      "road_reservation_width_m": 24,
      "maximum_grade_pct": 5,
      "entry_transition_m": 60,
      "exit_transition_m": 60
    },
    "new_specimen_choices": {
      "channel_alignment": "north-south",
      "bridge_alignment": "east-west",
      "local_origin": "midpoint of opening at highest study water",
      "synthetic_shores_x_m": [
        -50,
        50
      ],
      "road_flat_extension_each_end_m": 100,
      "land_context_half_width_m": 100,
      "pedestrian_location": "north side, wholly separate side-by-side folds",
      "status": "EXPLICIT_TEST_FIXTURE_CHOICES_NO_SITE_EVIDENCE"
    },
    "measurement_evidence": "All dimensions are inherited proposals or explicit specimen choices except the creator's 20 m requirement. No metric value is recovered from perspective pixels."
  },
  "frame": {
    "units": "metres",
    "handedness": "right-handed",
    "axes": {
      "x": "specimen grid east",
      "y": "specimen grid north",
      "z": "up"
    },
    "geographic_north_azimuth_degrees": null,
    "datum": "Local z=0 is the proposed highest operating navigation-water plane for this specimen only.",
    "offset_to_existing_D2_datum_m": null,
    "placement_in_SW_CK_authoring_frame": null,
    "placement_in_accepted_world": null,
    "staging_interface_transform": {
      "matrix": [
        [
          100,
          0,
          0
        ],
        [
          0,
          -100,
          0
        ],
        [
          0,
          0,
          100
        ]
      ],
      "translation_cm": [
        0,
        0,
        0
      ],
      "status": "LOCAL_AXIS_FIXTURE_ONLY",
      "formula": "interface_cm=(100*x,-100*y,100*z)",
      "inverse": "authoring_m=(interface_x/100,-interface_y/100,interface_z/100)",
      "determinant": -1000000,
      "apply_only_once": true
    },
    "authoritative_world_transform": {
      "formula": "world_cm=R*interface_cm+T_cm",
      "proper_rotation_R": null,
      "translation_T_cm": null,
      "requires_unit_scale_and_no_shear": true,
      "actual_importer_verified": false
    }
  },
  "road": {
    "id": "TEST-SW-R06-ROAD",
    "centerline_domain_x_m": [
      -610,
      610
    ],
    "reserved_band_y_m": [
      -12,
      12
    ],
    "flat_landing_z_m": 2,
    "deck_top_z_m": 22,
    "structure_depth_m": 2,
    "plateau_x_m": [
      -50,
      50
    ],
    "approach_run_each_m": 460,
    "profile_total_m": 1020,
    "including_flat_extensions_total_m": 1220,
    "road_grade_definition": "dz / horizontal centerline distance; not dz / 3D length",
    "west_profile": {
      "s_m": "x+510",
      "domain_m": [
        0,
        460
      ],
      "height_m": "2+h(s)",
      "h_piecewise": [
        {
          "range_m": [
            0,
            60
          ],
          "formula": "0.05*s*s/120"
        },
        {
          "range_m": [
            60,
            400
          ],
          "formula": "1.5+0.05*(s-60)"
        },
        {
          "range_m": [
            400,
            460
          ],
          "formula": "18.5+0.05*(s-400)-0.05*(s-400)*(s-400)/120"
        }
      ]
    },
    "east_profile": {
      "s_m": "510-x",
      "domain_m": [
        0,
        460
      ],
      "height_m": "2+h(s)"
    },
    "critical_centerline_points_m": [
      [
        -610,
        0,
        2
      ],
      [
        -510,
        0,
        2
      ],
      [
        -450,
        0,
        3.5
      ],
      [
        -110,
        0,
        20.5
      ],
      [
        -50,
        0,
        22
      ],
      [
        50,
        0,
        22
      ],
      [
        110,
        0,
        20.5
      ],
      [
        450,
        0,
        3.5
      ],
      [
        510,
        0,
        2
      ],
      [
        610,
        0,
        2
      ]
    ],
    "surface_mesh_rule": "Use analytic z at stations spaced no more than 2 m, include all critical stations, and flat transverse section. The 24 m is a reserved test surface, not a released lane/sidewalk allocation.",
    "structure_rule": "A 2 m vertical-depth test slab may follow the surface. No real piers, foundations, barriers, drains, utilities or structural adequacy are represented.",
    "maximum_profile_chord_height_error_m": 0.000417,
    "tangent_continuity": "Analytic grade is 0 at each flat join and +/-0.05 at transition-to-tangent joins."
  },
  "navigation": {
    "id": "TEST-SW-R06-NAVIGATION-RESERVATION",
    "bounds_m": {
      "x": [
        -50,
        50
      ],
      "y": [
        -100,
        100
      ],
      "z": [
        0,
        20
      ]
    },
    "opening_width_normal_to_channel_m": 100,
    "water_surface_z_m": 0,
    "minimum_deck_soffit_z_m_over_opening": 20,
    "clearance_m": 20,
    "obstruction_rule": "The OPEN INTERIOR z<20 of the reserved prism must not intersect road/deck/support/terrain/pedestrian geometry. Contact by the deck underside at z=20 is intended, and the closed water/shore boundaries are datum boundaries, not collisions. No support is permitted inside the opening.",
    "vessel_beam_draft_airdraft_margin": null,
    "waterbed_and_draft": null,
    "claim_limit": "Air-clearance arithmetic only. No navigable-water, hydrology, vessel sweep, collision or engineering acceptance."
  },
  "terrain": {
    "id": "TEST-SW-R06-SYNTHETIC-LAND",
    "top_elevation_m": 2,
    "closed_rings_m": [
      {
        "id": "TEST-WEST-LAND",
        "ring": [
          [
            -610,
            -100,
            2
          ],
          [
            -50,
            -100,
            2
          ],
          [
            -50,
            100,
            2
          ],
          [
            -610,
            100,
            2
          ],
          [
            -610,
            -100,
            2
          ]
        ]
      },
      {
        "id": "TEST-EAST-LAND",
        "ring": [
          [
            50,
            -100,
            2
          ],
          [
            610,
            -100,
            2
          ],
          [
            610,
            100,
            2
          ],
          [
            50,
            100,
            2
          ],
          [
            50,
            -100,
            2
          ]
        ]
      }
    ],
    "shoreline_rule": "Straight vertical specimen edges at x=-50 and +50; not traced coast or designed seawall. Flat land extends beneath elevated approaches; support and terrain shaping remain absent.",
    "water_ring_m": [
      [
        -50,
        -100,
        0
      ],
      [
        50,
        -100,
        0
      ],
      [
        50,
        100,
        0
      ],
      [
        -50,
        100,
        0
      ],
      [
        -50,
        -100,
        0
      ]
    ],
    "slope_drainage_soil_status": "UNMODELED_TEST_CONTEXT"
  },
  "pedestrian": {
    "id": "TEST-SW-R06-PEDESTRIAN-ROUTE",
    "status": "PROPOSED_DIMENSIONED_ROUTE_NOT_ACCESSIBILITY_ACCEPTANCE",
    "per_end": {
      "parallel_runs": 8,
      "clear_width_m": 3,
      "gap_m": 1,
      "pitch_m": 4,
      "grade_pct": 5,
      "rise_m": 20,
      "rise_each_leg_m": 2.5,
      "flights_per_leg": 4,
      "flight_horizontal_m": 12.5,
      "flight_rise_m": 0.625,
      "inline_rests_each_leg": 3,
      "rest_horizontal_m": 1.8,
      "leg_plan_length_m": 55.4,
      "turn_centerline_radius_m": 2,
      "end_platform_depth_m": 4,
      "gross_length_m": 63.4,
      "gross_width_m": 31,
      "gross_area_m2": 1965.4,
      "exact_sloping_horizontal_run_m": 400,
      "exact_level_centerline_length_m": 87.18229715025711,
      "exact_total_horizontal_centerline_length_m": 487.1822971502571,
      "exact_total_3d_centerline_length_m": 487.6819850402728
    },
    "local_algorithm": [
      "Local coordinates (u,v,z). Leg i=0..7 has v=4*i and starts z=2+2.5*i.",
      "Even legs travel u=0 to 55.4; odd legs travel u=55.4 to 0. Each leg comprises four 12.5 m sloping flights (rise 0.625 m each), separated by three 1.8 m level rests.",
      "For each turn after leg i=0..6, theta=0..pi; u=end_u + sign*2*sin(theta), v=4*i+2-2*cos(theta), z=2+2.5*(i+1), where sign=+1 for even i and -1 for odd i. Sample each semicircle with at least 32 equal angular segments and include exact endpoints.",
      "Gross local reservation: u=-4..59.4; v=-1.5..29.5. The centerline and its 1.5 m half-clear-width fit within it. Runs are never vertically stacked.",
      "West mapping: (x,y,z)=(-54-u,20+v,z). East mapping: (x,y,z)=(54+u,20+v,z). Both are explicit specimen placements; no geographic significance."
    ],
    "west_gross_ring_xy_m": [
      [
        -113.4,
        18.5
      ],
      [
        -50,
        18.5
      ],
      [
        -50,
        49.5
      ],
      [
        -113.4,
        49.5
      ],
      [
        -113.4,
        18.5
      ]
    ],
    "east_gross_ring_xy_m": [
      [
        50,
        18.5
      ],
      [
        113.4,
        18.5
      ],
      [
        113.4,
        49.5
      ],
      [
        50,
        49.5
      ],
      [
        50,
        18.5
      ]
    ],
    "west_lower_connector_m": [
      [
        -550,
        10.5,
        2
      ],
      [
        -550,
        14.5,
        2
      ],
      [
        -54,
        14.5,
        2
      ],
      [
        -54,
        20,
        2
      ]
    ],
    "west_upper_connector_m": [
      [
        -54,
        48,
        22
      ],
      [
        -50,
        48,
        22
      ],
      [
        -50,
        10.5,
        22
      ]
    ],
    "east_lower_connector_m": [
      [
        550,
        10.5,
        2
      ],
      [
        550,
        14.5,
        2
      ],
      [
        54,
        14.5,
        2
      ],
      [
        54,
        20,
        2
      ]
    ],
    "east_upper_connector_m": [
      [
        54,
        48,
        22
      ],
      [
        50,
        48,
        22
      ],
      [
        50,
        10.5,
        22
      ]
    ],
    "upper_crossing_centerline_m": [
      [
        -50,
        10.5,
        22
      ],
      [
        50,
        10.5,
        22
      ]
    ],
    "connector_scope": "Extra flat connector lengths are explicit R06 fixture choices and are excluded from the inherited per-end 487.182 m fold length. Elevated connector support, edge protection, transition detail and collision remain untested.",
    "lower_and_upper_crossings": "Lower connectors run south of the fold footprints (centerline y=14.5 m) and meet only the lowest fold portals at z=2. Upper connectors stay at z=22; any XY overlap with roads or paths must retain actual Z and must never be snapped into a level junction.",
    "geometry_tolerance_m": 1e-06,
    "arc_chord_length_difference_bound_per_end_m": 0.018,
    "real_accessibility_standard_applied": false
  },
  "acceptance": {
    "metric_specimen_arithmetic": "REQUIRES_GENERATED_VALIDATION",
    "actual_engine_import": "NOT_TESTED",
    "regional_scale": null,
    "accepted_source_to_world_transform": null,
    "actual_connection_id": null,
    "approved_for_construction": false,
    "d03_pause_preserved": true,
    "shared_world_integration_authorized": false
  },
  "required_checks": [
    "Recompute all critical heights and maximum grades from analytic inputs.",
    "Confirm 20 m minimum soffit over the complete opening and no intruding test geometry.",
    "Confirm both flat road joins equal land top +2 m and all pedestrian route portals coincide in XYZ.",
    "Check each fold has 8 legs, 32 flights, 24 inline rests, 7 level semicircular turns and 20 m total rise.",
    "Compare analytic and sampled arc lengths; do not report sampled polylines as exact analytic lengths.",
    "Check each closed ring has nonzero area, consistent winding, no self-intersection and no duplicate nonclosing consecutive vertex.",
    "Keep specimen, historical Crown context and image-space region layers separately named; never overlay them as if registered.",
    "Export metre source and explicit centimetre adapter controls; importer roundtrip remains a user/Quik evidence gate."
  ]
}
