Skip to content

About

Same-winding constraints for the villa spiral fit, derived from published ink detections (PHerc. Paris 4). Preregistered A/B campaign in progress.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

ink-constraints

Same-winding constraints for the villa spiral fit, derived from the published ink detections of PHerc. Paris 4, with a preregistered three-arm evaluation measuring whether they actually improve a real fit.

A legible letter is local proof that the fitted surface crosses the true ink-bearing sheet. This tool turns that observation into machine-made evidence: it extracts ordered point chains from the published ink rasters, retro-projects them through the band meshes into dataset-frame same-winding point collections (villa pcl JSON v1), and pairs every chain with a shape-matched placebo twin placed on ink-free sites, so the value of the ink information itself can be isolated from generic geometry re-import.

Status

  • Preregistration SEALED before any comparison run: commit 778a1e3900421cc8d083fb5b301ad51975dbbc8f (2026-08-08), tagged prereg-a1-sealed, protocol in docs/PREREG_A1.md; every later change is a dated addendum, never an edit. Publishing this repository is the public anchoring of that hash.
  • Campaign in progress: 3 arms × 3 seeds × 30,000 steps on the frozen window (dataset-z 10600-10900). All three dry-run gate sets passed. Verdict expected before 2026-08-31 and published whatever it is, the sealed claim ladder has five categories, negative included.
  • Sealed inputs: 3,287 ink chains / 15,065 points across all 28 published bands; placebo twin placed for 100.0% of chains. LF-canonical sha256 of both files are pinned in Addendum 1.

Why ink

Same-winding annotations are among the strongest evidence fit_spiral consumes and the most expensive to make (a human clicking same-wrap points). The official winding constraints page lists ink as an untried source of same-winding evidence ("likely the most easily verified"). The published detections carry that signal at scale, for free.

What is here

  • src/ink_constraints/: the extractor (threshold → components → locality and fold/sheet-switch guards → ordered decimation → bilinear retro-projection), the sealed-patch exclusion filter (anti-leak: drops every point within 10 voxels of the 94 held-out judge patches), the placebo generator (rigid pixel-displacement translation, seeded rejection sampling), and the merge that emits villa-schema pcl JSON.
  • scripts/generate_inputs.py: the sealed one-shot generation over all 28 bands, with per-band QC (S3 key+ETag+size of every input, full ink-value histograms).
  • scripts/judge_a1.py: the sealed verdict computer, zero free parameters, margins calibrated on the baseline arm only, five-category claim ladder.
  • docs/PREREG_A1.md: the sealed protocol + dated addenda; docs/FORMATS.md: every format/frame fact the pipeline relies on, with provenance and a re-verification script (scripts/verify_band_formats.py).
  • 116 unit tests (uv run --extra dev python -m pytest), including frozen-constant literals and golden values for the judge; the decision branches were additionally covered by a 113-mutant campaign (all killed).

How it plugs into villa

Standalone by design: the output is villa point-collection JSON (schema v1) that fit_spiral consumes as an extra pcl_json_paths entry, no modification of villa required.

Design constraints inherited from prior community work

winding-ruler (pscamillo) showed three automatic constraint generators that agreed with human labels at 93% on adjacent pairs and still degraded the fit, with identified root causes: anchors off the sheet, poisoned multi-wrap labels, and a wrong minority overpowering a correct majority under a heavy loss weight. This pipeline is designed against that post-mortem list, and adopts their cheap poison detector (short-run in-sample satisfaction gates) before any long run.

Known limitations (stated up front)

  • Circularity: the ink lives on surfaces produced by the very pipeline being fitted. The design answers with a placebo arm, a held-out judge (94 sealed patches, unseen points only), a fit-independent secondary reference (scroll-truth), and a claim ladder that reserves "improves the fit" for held-out improvement. Full discussion: PREREG §1, §7, §9.
  • Ink-map instability (villa issue #1372): different derivations of the same scan can move ink maps. The constraints are anchored to the exact published rasters, pinned by S3 ETag+size per band in the generation QC, and the placebo shares their value regime.
  • Bounded validity: the experiment runs the reference sparse-window protocol, not the production configuration (tracks OFF, among other differences, see PREREG §4). Claims are bounded to that regime.

Neighbouring work

  • winding-ruler: the three-generator post-mortem this pipeline is designed against.
  • constraint-gauge: calibration benchmark for winding-constraint generators, and the coordinate-frame audit.
  • winding-sync: automatic relative winding constraints from CT structure tensors, no ink.
  • scroll-truth: pairwise same-wrap reference built from raw CT, pre-engaged here as a sealed secondary (PREREG section 6).
  • sheetcheck: geometric measurement of traced surfaces; independently reports the same 20x ink-raster to tifxyz relation this pipeline depends on, on a different scroll.
  • vesuvius-ink-atlas: calibrated legibility over every published ink prediction, a ready-made site-selection map.
  • spiralcheck: the held-out evaluation suite used here as judge J2.
  • Two evaluation harnesses were opened for review in villa in early August 2026: a phantom-truth harness (PR #1380) and a cross-scan physical harness (PR #1382). Both address the same gap this preregistration is built around, that a real fit carries no ground truth of its own.
  • The villa spiral and lasagna stack throughout.

License

MIT.

About

Same-winding constraints for the villa spiral fit, derived from published ink detections (PHerc. Paris 4). Preregistered A/B campaign in progress.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages