{
  "task": "Read-only source-layout tool recovery for f77v physical-layout sprint",
  "date": "2026-11-07",
  "status": "DISCOVERY_COMPLETE",
  "conclusion": "Reusable source-image annotation and segmentation functions exist. No already-verified f75r-f84v row/word/glyph coordinate corpus was found in the inspected local stores. Retained apparatus-region boxes and exact f77v inspection crops are available, but they do not supply the missing fine geometry.",
  "anchors_read": [
    "../../../../assets/tools/source-items/b7e461533c8344670c1311b4.md",
    "../../../../assets/tools/source-items/a35e7ebe160e0b34e92ad834.md",
    "../../../../assets/tools/source-items/2844136a4bc868dbe2e4d1fc.md"
  ],
  "scope": "Local canonical catalogue plus focused existing code/data discovery under Voynich and working. No archive mounts or archive image reads, downloads, provider calls, canonical edits, database writes, or historical test reruns. Current sprint files were not modified.",
  "search_limits": "Catalogue is a path/metadata snapshot, not proof of exhaustive content coverage. Focused source-code scan excluded dependencies and legacy repositories; unrelated protected Archon runtime folders returned permission denied and were not bypassed. Negative findings are bounded to the inspected corpus and code routes.",
  "entries": [
    {
      "id": "item9_native_components_and_row_fitter",
      "paths": [
        "../../../tools/analysis-programs/code/item9_seed_crosstab.py",
        "../../../tools/analysis-programs/code/item9_bench_segment.py",
        "../../../tools/analysis-programs/data/hartlieb/item9b/pieces_geom.csv",
        "../../../tools/analysis-programs/data/hartlieb/item9b/piece_lines.csv",
        "../../../tools/analysis-programs/data/hartlieb/item9c/pieces_c.csv"
      ],
      "input_contract": "item9_seed_crosstab.py SRC maps folio to (image_path, coordinate_scale, [(x0,y0,x1,y1),...]); segment(ink_k=0.45,wide=1.6,min_area_frac=0.05) reads those source pixels. Reuse with a caller-owned isolated mapping and scale=1 for source-pixel ROIs. Existing SRC is hard-coded to f1r/f49v/f88r archive TIFFs; do not execute existing historical main commands.",
      "output_contract": "segment() returns component-piece records with src, box, mask, true source x/y, w/h, med_h and original approximate x_csv/y_csv. fit_rows(P,spacing,thr=0.10,max_ang=1.5), line 291, needs x,y,w_px,h_px,h_norm,med_h and returns ([(a,b),...],angle), with row equation y=a+b*x. assign_lines(P,lines), line 311, adds row and row_dist. Caller must map segment w/h fields and derive h_norm=h/med_h. fit_rows uses component centres, not actual writing baselines.",
      "source_evidence": "3,482 saved item9b component records and row assignments exist for f1r/f49v/f88r only; 3,389 item9c records exist for those same folios. Original glyph_shape_inventory.py used approximate x for split pieces; item9b fixes true origins. Existing ROWMAP is manually checked only for the three original folios and excludes clipped/spurious rows.",
      "limits": "Local-darkness threshold, 3x3 morphology, red suppression and column-profile splitting are heuristics. Connected pieces may be glyph fragments or multiple glyphs. Item9c repairs benched-gallows over-splitting. Shape labels are not text identification. No f75r-f84v word/row/glyph ground truth is supplied.",
      "reuse": "Best existing component/row proposal engine. Reuse functions in the active packet without changing or replaying old outputs; independently inspect overlays and exact source ROIs before accepting measurements.",
      "code_sha256": {
        "source-key-c9eed68b8d689b542cba": "3e4effc3a6abe38a82ea49411bc424241b89a5fe75d314a56e073f36f8edfee6",
        "source-key-8171d2e79c4dfacc814b": "26644e47f81aacb287431520caf3daccaeb4ba01f69bd7290b7803c1502ea1c3"
      }
    },
    {
      "id": "atlas_row_band_proposals",
      "paths": [
        "../../../tools/analysis-programs/code/build_atlas.py",
        "../../eva-reference/atlas/METHOD.source.html",
        "../../eva-reference/atlas/REPORT.source.html"
      ],
      "input_contract": "detect_lines(img_path), line 123, takes any local raster. It downsamples widths over 1600, examines the middle 10%-90% of the width, thresholds against 0.65 times median grey level, smooths a horizontal profile and finds row runs.",
      "output_contract": "Returns ([(y0,y1),...],(W,H)), with bands rescaled into the supplied image pixel coordinates. crop_line(img_path,y0,y1,pad=8), line 192, returns a PIL image using column ink bounds; it does not return its chosen x crop origin.",
      "source_evidence": "Existing atlas includes f78r line crops, but its METHOD explicitly calls alignment approximate. main() pairs first N detected bands with first N IVTFF loci and can silently drift after a missed or merged line. No per-glyph boxes exist.",
      "limits": "Whole-page figure ink, labels and wrapped rows can merge or distort bands. Import has mkdir calls; main has download and canonical output behavior. The method prose describes older parameter values; actual code governs.",
      "reuse": "Use detector function only as proposals on independently selected source ROIs; preserve offset to parent source. Do not reuse automatic IVTFF row pairing or call main().",
      "code_sha256": {
        "source-key-2b6c147a78f383b8ba40": "3a01ff21fedcce0e5c7c95153548b0230502cb6e14f655479cb5e6256a5bf9b7"
      }
    },
    {
      "id": "manual_native_image_box_editor",
      "paths": [
        "../../../tools/workbench/index.html",
        "../../eva-reference/tools/anchor_ui/app.js",
        "../../eva-reference/tools/anchor_ui/glyph_tab.js",
        "../../../../assets/tools/source-items/47171345e8eabf71c7160272.json",
        "../../provenance/source-1e14a26b32d808b4.html"
      ],
      "input_contract": "Word tab loads /vms/analysis/eva_reference/folio_maps/<folio>.boxes.json or .raw.json plus atlas/folios/<folio>.jpg. Glyph tab accepts a local file or URL and operates at its actual natural pixel dimensions.",
      "output_contract": "Word tab draw/move/resize outputs boxesByLocus and words[].bbox_polygon in loaded-image coordinates. Glyph tab exports schema 0.2 with image.loaded_dimensions, image.loaded_url, boxesBySta and unlabeledLines[{id,seq,bbox,note,created}]; rectangles are [x1,y1,x2,y2].",
      "source_evidence": "Scanning 222 folio-map JSONs found coordinates only for f1r: 210 imported raw boxes, 214 registered boxes, and 41 manually drawn word boxes across six lines. f66r.boxes.json is an empty seed. f77v.raw.json contains 45 transcription loci and no coordinates. One f1r glyph_xref sample has 15 manually labelled boxes. None establishes independent verification of a new f77v box.",
      "limits": "f77v atlas image is absent. f77v.raw.json lacks provenance, and saveBoxes() unconditionally assigns out.provenance.human_reviewed, so word-tab save would fail on that raw seed. Word exporter assigns confidence=1 and human_reviewed=true automatically; those flags are not independent review. Neither UI pins SHA256 automatically. Native means pixels of the loaded image, which may be a 2000px JPEG, not a native TIFF.",
      "reuse": "Glyph tab is the least-coupled existing source-image annotation UI for rows or cells. Pair its output with active source hash and origin ledger. Use a localhost-only server if needed; legacy serve scripts bind all interfaces. Word-tab use requires an isolated complete image/provenance seed or fix, not copying inherited flags.",
      "code_sha256": {
        "source-key-623ca914018b765ef2e6": "a6007033705540d0ab86bc7664a98648ceff96a6c69830c39a0e66379e7edc70",
        "source-key-2b37a4043bb7a2bcd662": "00301a42d163b6b2c99970f81851fca0b45af65407220a10c2b0d695e125edb9"
      }
    },
    {
      "id": "balneo_existing_region_coordinates",
      "paths": [
        "../../provenance/source-4813d0cb6223a219.html",
        "../../provenance/source-29feedb40531ee71.html",
        "../../provenance/source-d8b79584b4ccef44.html",
        "../../provenance/source-51d1f459e5e353cb.html",
        "../../../../assets/tools/source-items/944b0793c32d483c9ed9abf7.md",
        "../../../../assets/tools/source-items/6ab19eca6a3b04eddaacaae9.md"
      ],
      "input_contract": "apparatus.tsv has bbox_orig_px as x0,y0,x1,y1 on retained 2000px JPEG pages from ../../provenance/source-b7f1ce9338da1cad.html mask_v1_seed_shapes.json uses 1100px-preview rectangle/ellipse units; mask_v2.seed_mask scales by loaded_width/1100.",
      "output_contract": "125 apparatus region rows over 19 folios f75r-f84v, including seven f77v elements. f77v nymph seed set has seven rectangles. mask_v2 returns image, masked image, nymph mask, pool mask, seed mask and metadata; masks are derived heuristic display masks.",
      "source_evidence": "Actual image-bound region coordinates and audited source comparisons exist. f77v manifold bbox is [363,154,1900,609]; drip-bulbs bbox is [1009,518,1190,627], in the 2000px JPEG coordinate space.",
      "limits": "Catalogued apparatus rectangles and nymph masking seeds do not define tight body silhouettes, text rows, words, glyphs, or contact geometry. Audit records initial apparatus clipping and later corrections; pale pool wash can be lost. Masked JPEG crops are edited display derivatives and should not serve as ink evidence.",
      "reuse": "Reuse as region-finding hints and prior object IDs. Measure on unmasked pinned source pixels. This fills region inventory, not the missing row/word/glyph geometry.",
      "code_sha256": {
        "source-key-d8b79584b4ccef44ac48": "5779b139710ce0ce0e1f2d3c8ddcaa8616661c8a6de4e98154741cf4c3cbc000",
        "source-key-51d1f459e5e353cbb906": "36b5e71b570072ef25df23f2ce8b8b6b5522293152ba40c5de6e973fddbef8a4"
      }
    },
    {
      "id": "retained_f77v_native_crop_ledger",
      "paths": [
        "../../provenance/source-077756d7dd2d15e6.html",
        "../../provenance/source-c1687246c4d001f4.html"
      ],
      "input_contract": "Original source recorded as 0139_77v.tif at [2861,3697]; ledger states unchanged RGB TIFF-to-PNG conversion and unscaled crops.",
      "output_contract": "Five exact inspection rectangles including contact_detail [1400,760,1740,980], top_to_P1 [650,600,2750,1100], P1_P2_boundary [620,1260,2750,1600], P2_P3_boundary [650,2040,2700,2370], P3_end [650,2910,2700,3190].",
      "source_evidence": "Retained source-bound inspection crops exist. UNIT_MAP combines paragraph loci with image observations, not per-row coordinates.",
      "limits": "No exact chal word boundary, glyph boundary, row baseline, or full-page body mask is supplied. Recorded source route is historical; archive not accessed during this task.",
      "reuse": "Reuse source/crop binding and contact inspection route, subject to active packet source hash.",
      "code_sha256": {}
    },
    {
      "id": "installed_neural_baseline_segmentation_prior",
      "paths": [
        "../../provenance/source-3db7b73e610235ce.html",
        "../../provenance/source-80b6351700fda383.html",
        "../../provenance/source-872276555e170ae7.html",
        "../../provenance/source-ddfb0dc3c13026b1.html"
      ],
      "input_contract": "Retained Kraken 7.0.1 CPU invocation used segment -bl with default blla model on a pinned local caption crop, then recognition.",
      "output_contract": "ALTO serialization includes line/string geometry. Fixed-line successor accepts supplied complete-line baselines and polygons; returned character cuts remain model suggestions.",
      "source_evidence": "Real local execution is retained, but automatic segmentation failed the source-read task; manual supplied-line successor yielded limited aid.",
      "limits": "No validated Voynich baseline model or f77v segmentation result found. Presence of installed model is not evidence that its output is accurate.",
      "reuse": "Secondary proposal option only; deterministic component/row code is simpler to audit for this sprint. No model execution or download performed.",
      "code_sha256": {}
    },
    {
      "id": "paleo_feature_components",
      "paths": [
        "../../provenance/source-11f7d794e15ac36e.html"
      ],
      "input_contract": "extract_features(image,physical_dimensions) uses adaptive Gaussian threshold and connected components; resizes above 2200px height.",
      "output_contract": "Aggregate body_crop_px, component counts and interline spacing; diagnostics include resize_scale. Internal _component_records(mask) gives x,y,w,h,area.",
      "source_evidence": "Executable existing segmentation primitives, not verified word coordinates.",
      "limits": "body_crop_px is a percentile-based whole-text-region estimate in processed dimensions, not individual body/glyph boxes. Physical scaling inputs and reverse coordinate transform are caller responsibilities.",
      "reuse": "Available lower-level threshold/component alternative; do not treat aggregate feature output as source-native rows.",
      "code_sha256": {
        "source-key-11f7d794e15ac36e1ff2": "d5c87420e39d45bfea60c7103b20524ff2a7c2bf4f54ac0fa235cd18d927243b"
      }
    }
  ],
  "recommended_reuse_order": [
    "Use current pinned unmasked page/ROI and recover exact crop origin.",
    "Reuse item9_seed_crosstab segment plus fit_rows as coordinate proposals, or detect_lines for horizontal row bands. Preserve algorithm parameters and input dimensions.",
    "Inspect and correct proposals on source pixels with existing glyph-tab box/line editor or native crop review. Record source hash, row/cell identity, bbox, review state and uncertainty separately.",
    "Accept geometry only after independent source inspection; keep row-to-IVTFF locus alignment explicit. Existing automated human_reviewed/confidence flags do not count as such inspection."
  ],
  "no_execution_claim": "Functions were read and their retained outputs inspected; no new segmentation or browser session was executed.",
  "memory_lead": {
    "path": "../../provenance/source-ab4408ff973f7f35.html",
    "lines": "1605-1633",
    "use": "Located completed f57v geometry packet; the distinction between representative-centre geometry and actual ink segmentation was then checked in the live RESULT.md."
  }
}