{
  "purpose": "Independent physical census of complete manuscript pages. Record observable drawing/text geometry and its uncertainty. No lexical readings, intended directions, object semantics, hypothesis testing or focal selection.",
  "source": "MANIFEST.json lists twenty coded full-page PNGs at original2000px width, decoded from retainedJPGs without resampling. Names conceal folio identifiers; recognition from imagery may still occur.",
  "allowed_inputs": [
    "This PROTOCOL.json",
    "MANIFEST.json",
    "listed images",
    "your own output folder"
  ],
  "exposure": "Do not inspect sibling reader output, other research packets, source filename maps, transcriptions or prior annotations. State any recognition from imagery; do not seek page identities.",
  "view_rules": [
    "View complete page first at native detail via view_image before local crop",
    "Inspect every page, system, prose block and row",
    "Use original pixel crops; nearest-neighbor enlargement allowed; no smoothing,contrast enhancement,OCR or generated imagery",
    "Save VIEW_LOG.json with actually viewed fullpages/crops and exact crop coordinates"
  ],
  "inventory": {
    "system": "Visibly connected illustration elements, including attached figures, grouped without connecting across prose ink or assumed flow; nested lobes/spouts are children; standalone figures retained as figure_only",
    "prose": "Visually continuous running rows; label and uncertain text groups logged separately; ambiguous block boundaries retained as alternatives",
    "pair_universe": "For each page, Cartesian product of system inventory and prose-block inventory; generated rather than hand-duplicated",
    "near_rule": "Actual drawing outline within 2h of a row's tight ink envelope; uncertain proximity included",
    "far_rule": "System and block bounding-box distance >2h certifies far; otherwise inspect actual outline",
    "bbox_false_positive": "Use near_bbox_only when bounding boxes qualify but actual outline is farther than 2h from every row; retain locator and reason",
    "detailed_unit": "system_id x block_id x row_id x local_feature_site_id; all eligible distinct near features including unequal local minima",
    "primary_cluster": "connected drawing system; multiple sites and pairs within it are dependent",
    "pair_status": [
      "far_bbox",
      "near_bbox_only",
      "near_annotated",
      "uncertain",
      "excluded_label_or_nonprose",
      "excluded_unreadable",
      "excluded_boundary_ambiguous"
    ]
  },
  "corrections": {
    "R1": "Use encounter_id for each distinct local feature/site within system/block/row. Retain unequal local minima; split distinct lobes/ends/corners within a continuous near span. Mark inseparable sites uncertain instead of omitting them.",
    "R2": "For pointed lobes: shoulder chord endpoints; foot of perpendicular from apex; chord normal toward apex. Clearance is signed distance along this normal from foot to facing ordinary-body envelope. Record body-envelope intersection and uncertainty. Row only maps to first. Position anchor is apex x; for nonpointed sites use geometric local outline extremum, never closest text pixel.",
    "R3": "Conservative check includes possible matches plus unknown/contact-capable grade ranges. Any possible matched contact prevents uncommon conclusion. Possible systems do not satisfy strict coverage floor. Unresolved exclusions prevent complete census claims.",
    "R4": "Inspect every row, record row count and all_rows_inspected; boxes only for near/uncertain rows. For h use first five unambiguous ordinary body boxes left-to-right from first legible prose row, continuing subsequent rows if needed. Exclude ascenders/descenders and record skips; reuse per block. Fewer than five means uncertain scale.",
    "R5": "Primary matching uses geometric horizontal zone of outline anchor: normalized row span x <=0.20 first_zone; x >=0.80 last_zone; else interior_zone. Outside row span uses outside_left/outside_right. Visual first/interior/last group or intergroup gap remains descriptive, not a match requirement, so between-group noncontacts are retained. This avoids matching on whether the outline projects onto a glyph."
  },
  "schema": {
    "page": [
      "reader_id",
      "page_code",
      "image_sha256",
      "viewed_whole_page",
      "prior_familiarity",
      "systems",
      "blocks",
      "uncertain_or_excluded_objects",
      "coverage_complete"
    ],
    "system": [
      "system_id",
      "bbox_xyxy",
      "type: apparatus|figure_only|mixed|uncertain",
      "child_ids",
      "connection_uncertainties",
      "locator"
    ],
    "block": [
      "block_id",
      "bbox_xyxy",
      "status: prose|label|uncertain",
      "row_count",
      "all_rows_inspected",
      "near_row_boxes",
      "h_px",
      "five_body_boxes",
      "sample_skips",
      "boundary_alternatives"
    ],
    "pair_override": [
      "system_id",
      "block_id",
      "pair_status",
      "reason",
      "locator"
    ],
    "encounter": [
      "encounter_id",
      "system_id",
      "block_id",
      "row_id",
      "crop_bbox_xyxy",
      "closest_point_pairs",
      "all_contact_patch_boxes",
      "geometry_class",
      "approach_side",
      "placement_external_or_enclosed",
      "row_position",
      "graphic_group_position",
      "horizontal_fraction",
      "apex_xy",
      "shoulder_points_xy",
      "shoulder_width_h",
      "projection_h",
      "shoulder_clearance_h",
      "pigment_wash_relation: none|wash_only|wash_plus_outline|uncertain",
      "contact_grade",
      "plausible_grade_range",
      "ownership_uncertainty",
      "measurement_uncertainty",
      "reason",
      "site_id",
      "geometric_position_anchor_xy",
      "horizontal_zone",
      "body_envelope_intersection_xy",
      "signed_clearance_px",
      "scale_or_coordinate_uncertainty"
    ],
    "nullable_rule": "Unavailable or inapplicable measurements must be null with reason; zero is a genuine measured zero",
    "coordinate_rule": "Integer native coordinates on the pinned 2000px-wide raster; no transcription coordinates"
  },
  "measurements": {
    "h": "Median body height of five indicated ordinary graphic bodies in the block, excluding ascenders and descenders; retain source boxes",
    "geometry_class": [
      "pointed_lobe",
      "free_stroke_end",
      "broad_or_rounded_boundary",
      "figure_extremity",
      "uncertain"
    ],
    "pointed_lobe": "Two flanks converge to one convex apex; annotate shoulders where flanks join surrounding body",
    "approach_side": [
      "above",
      "below",
      "left",
      "right",
      "uncertain"
    ],
    "row_position": [
      "first",
      "interior",
      "last",
      "only",
      "uncertain"
    ],
    "graphic_group_position": [
      "first",
      "interior",
      "last",
      "intergroup_gap",
      "uncertain"
    ],
    "horizontal_fraction": "(geometric_position_anchor_xy[0] minus near-row leftmost ink x)/(near-row rightmost ink x minus leftmost ink x); apex for pointed lobe, geometric outline extremum otherwise. Never anchor to nearest text pixel; do not clamp outside-span positions.",
    "shoulder_clearance_h": "Perpendicular distance from shoulder chord to prose body's facing envelope excluding exceptional ascenders, divided by h; signed if chord intrudes",
    "projection_h": "Apex projection beyond shoulder chord toward row divided by h",
    "shoulder_width_h": "Shoulder-chord length divided by h",
    "not_matching_variables": [
      "observed tip-to-glyph gap",
      "contact grade",
      "lexical identity"
    ]
  },
  "contact_scale": {
    "0": "Clear gap greater than h",
    "1": "Clear gap greater than two native pixels and no greater than h",
    "2": "Separation/contact unresolved around two native pixels or less",
    "3": "Apparent ink-to-ink touch with separately traceable drawing and writing strokes",
    "4": "Apparent overlap/crossing with separately traceable drawing and writing strokes",
    "unknown": "Ownership or image quality prevents grading",
    "resolution_rule": "One-pixel bridges, JPEG halos and paint wash alone cannot earn 3/4; give plausible range or unknown",
    "summary_rule": "Ordinal categories only; no means, fabricated subpixel distances, or production-order inference"
  },
  "geometry_anchor_rule": "For pointed lobes: shoulder chord endpoints; foot of perpendicular from apex; chord normal toward apex. Clearance is signed distance along this normal from foot to facing ordinary-body envelope. Record body-envelope intersection and uncertainty. Row only maps to first. Position anchor is apex x; for nonpointed sites use geometric local outline extremum, never closest text pixel.",
  "horizontal_zone": "Using drawing apex/extremum x relative to near-row ink-span x; <=0.20 first_zone, >=0.80 last_zone, otherwise interior_zone; outside-row separately.",
  "sampling": "Inspect every row, record row count and all_rows_inspected; boxes only for near/uncertain rows. For h use first five unambiguous ordinary body boxes left-to-right from first legible prose row, continuing subsequent rows if needed. Exclude ascenders/descenders and record skips; reuse per block. Fewer than five means uncertain scale.",
  "prose_rule": "Two or more visually running rows define candidate prose; single isolated groups/rows are label or uncertain. Record uncertain boundaries and alternative blocks. No semantic reading.",
  "pair_rule": "Inventory systems and blocks; all pairs generated later. For every system/block pair whose bounding boxes are <=2h apart or overlap, inspect actual outline against ALL rows. List overrides for near_bbox_only, boundary ambiguous, unreadable or other non-annotated possibly-near pairs. Detail every local near feature/site, not only globalclosest. Far pairs need no hand-duplicated rows.",
  "geometry_rule": "Record shoulders/apex/body-envelope intersection only for pointed lobes with identifiable shoulders; others null with reason. Estimates must state uncertainty. Do not fabricate precision or force a geometry class.",
  "output": "ANNOTATIONS.json containing reader_id, exposure, pages array with page_code,image_sha256,viewed_whole_page,systems,blocks,pair_overrides,encounters,uncertain_or_excluded_objects,coverage_complete; VIEW_LOG.json; short NOTES.md. Save incrementally. Finish with FIRST_RETURN.json hashing these files and all saved crop files. Do not change sealed first return after completion.",
  "style": "Compact records and concrete local reasons. Coverage_complete true only for actually inspected fullpage/allrows. Uncertain/difficult readings are valid output."
}