Back to evidence records

Manuscript build and numerical supplement

v0.1.0:paper/build.md

Build the GeoMind manuscript

From the repository root, render the Markdown article and its citations with Python 3.11+ and Pandoc 3.8.3. The build uses Pandoc’s bundled citeproc and Chicago author–date style. It writes into the ignored data/local/paper-build/manuscript/ directory. No research dependencies or package installation are needed at render time.

python3 paper/build.py
python3 paper/build.py --pdf --chromium /path/to/chromium

Install Pandoc from its official 3.8.3 release for your platform and use the pandoc executable on PATH or pass --pandoc /path/to/pandoc (or PANDOC). PDF printing adds an installed Chromium/Chrome or Playwright Chromium headless shell. --chromium accepts the executable path (or CHROMIUM). Chromium 131 or later supports the stylesheet’s A4 page numbers. HTML output works without Chromium. Pandoc 3.8.3 releases

The builder also recognizes a binary named data/local/paper-build/tools/pandoc. The macOS arm64 verification used the official pandoc-3.8.3-arm64-macOS.zip, 43,592,399 response-body bytes (SHA-256 3eaeb3bd10982aecba5dd76158745a4f805afb39ab72a519bba2533c98ce002d), and the already installed Playwright Chromium headless shell 145.0.7632.6. A restricted local executor that already runs Chromium inside an external OS sandbox may require --restricted-chromium. Use standard Chromium launch for a normal shell.

manuscript.html embeds the stylesheet and local figures. Relative evidence links resolve in the checkout from the chosen output directory. External citation and evidence links remain clickable and do not fetch during rendering. manuscript.pdf prints the same HTML, with A4 margins and page numbers. The builder checks source files, resolved citation anchors, section uniqueness and embedded images, and records artifact/input SHA-256 digests and tool versions in build_receipt.json. A rebuild at the same relative depth with the same inputs produces the same HTML on the verified toolchain. Chromium includes generation timestamps and uses the host’s available fonts, so compare PDF layout and extracted text across builds alongside their individual checksums.

Prepare the IEEE JSTARS edition

The journal edition uses the same Pandoc 3.8.3, citeproc and Chromium build. It creates a separate local package under data/local/paper-build/. The manuscript’s single-paragraph abstract, human contributor placeholders and OpenAI Codex disclosure are shared with the reading edition. The journal stylesheet places the title and abstract across the page, flows the body and references in two single-spaced columns, spans tables across both columns, groups illustrations after the references, and numbers the US Letter pages consecutively. Its build checks the abstract length and technical abbreviations, actual numbered citation links, bibliography anchors and embedded illustrations. IEEE JSTARS author instructions · IEEE disclosure guidance

The journal edition requires the Citation Style Language project’s IEEE Reference Guide version 11.29.2023 style, updated 27 March 2024. The upstream Git blob is 7612c1512be1c1a5fa7c553b8a47a2170c0e52bd. Its 17,587 bytes have SHA-256 b4c7619fc16c45a31e4cc3271eab94ffe83192d3b4c7fc729470a3b459448de3. Place those exact bytes at data/local/paper-build/tools/ieee.csl. An existing verified copy works offline. The following one-time acquisition is for a network-authorized preparation period. Upstream style

mkdir -p data/local/paper-build/tools
curl --fail --location --silent --show-error \
  -H 'Accept: application/vnd.github.raw+json' \
  https://api.github.com/repos/citation-style-language/styles/git/blobs/7612c1512be1c1a5fa7c553b8a47a2170c0e52bd \
  -o data/local/paper-build/tools/ieee.csl.download
echo 'b4c7619fc16c45a31e4cc3271eab94ffe83192d3b4c7fc729470a3b459448de3  data/local/paper-build/tools/ieee.csl.download' | shasum -a 256 -c - &&
  mv data/local/paper-build/tools/ieee.csl.download data/local/paper-build/tools/ieee.csl

Once local rendering is authorized, prepare the six figure files with the locked research environment, the installed Poppler pdftocairo executable and the same Chromium used to print the article. Set CHROMIUM or provide --chromium to both commands. For an externally sandboxed host, both commands accept --restricted-chromium.

uv run --locked --offline python paper/jstars_figures.py --chromium /path/to/chromium
python3 paper/build.py --jstars --pdf --chromium /path/to/chromium

The figure package in data/local/paper-build/jstars-figures/ contains vector PDF files for journal production and SVG versions for the embedded article. Figure 1 uses the original study-area PDF and its initial-only cohort. Figure 2 uses the verified combined-cohort SVG and preserves the released/attempted denominators. Figure 3 plots the original 12 estimable paired contrasts and their marginal intervals from primary_contrasts.csv. The table hash must match the pinned original analysis receipt. The source checksums are fixed in paper/jstars_figures.py. The figure receipt binds the input and output bytes, tool versions or executable hashes, and the renderer source. The article build verifies the receipt against the preparation scripts and the three SVG files, then records the actual CSL, figure and article digests.

The article HTML, optional PDF, Supporting Material Index and build receipt go to data/local/paper-build/jstars/. Journal evidence references use numbered supporting-item labels. The index lists the corresponding paths in the source checkout. External license links and numbered citation anchors remain clickable. Keep the index with the journal PDF and the matching source release. For page acceptance, inspect page count, dimensions and URL annotations with Poppler, rasterize every page, and review columns, reading order, tables and captions, figure labels at final scale, citation numbering, the references, margins and consecutive footer numbers. Open the three standalone vector PDFs and compare their plotted positions or counts to the original tables. Record that review separately from the publication build. Human author metadata and contributions require confirmation before submission. Independent validation

mkdir -p data/local/paper-build/jstars/page-review
pdfinfo data/local/paper-build/jstars/manuscript.pdf
pdfinfo -url data/local/paper-build/jstars/manuscript.pdf
pdftoppm -r 120 -png data/local/paper-build/jstars/manuscript.pdf data/local/paper-build/jstars/page-review/page
pdftotext -layout data/local/paper-build/jstars/manuscript.pdf data/local/paper-build/jstars/page-review/text.txt

Rebuild the signed results tables

After G2 and the original run and analysis have completed, build a Markdown supplement from that run’s receipts and the registered fixed-lag GM-03 summary (generated with describe_forest_distances.py --run-dir for the same original run). These tables are regenerated from canonical results and omit conclusions about which method performs best.

uv run --locked python paper/results_tables.py \
  --registry "$G2_REGISTRY" --release "$G2_RELEASE" \
  --run-dir "$RUN_DIR" --analysis-dir "$ANALYSIS_DIR" \
  --gm03-dir "$GM03_DIR"

The default ignored output is data/local/paper-build/results-tables/results_tables.md with results_tables_receipt.json. The builder checks digests and row identities against the original analysis receipt and reconciles the results CSVs with the typed metrics and interval tables. It verifies primary estimates, intervals, inference status and Holm-adjusted probabilities from the observed value and ordered replicates in primary_bootstrap.parquet, using the signed confidence and undefined-replicate rules. Transfer rows must include every registered arm and draw, with denominators based on unique observations and independent groups. The absolute point estimate averages the registered seed estimates and remains blank when any seed has an undefined observed estimate. Withheld inference leaves the interval and p-value blank.

The builder checks absolute interval eligibility using the canonical replicate counts and the signed undefined-replicate limit. The original signed feature inputs must be available locally. The builder uses the existing GM-03 descriptive routine to verify the common-finite IDs, counts, quantiles and overlap with any completed fixed scores. It checks GM-08 coverage, byte accounting and dispositions against the original run’s observed receipts. Unavailable cells remain visible. Use --output to set the supplement’s location. Keep the linked canonical files at their relative locations when moving the Markdown into a release package.

Back to evidence records