Skip to content

tools: measurement harnesses send the fixture directory as project_root - #342

Closed
d-q222 wants to merge 1 commit into
mainfrom
agent/daniel-parent/harness-project-root
Closed

d-q222 wants to merge 1 commit into
mainfrom
agent/daniel-parent/harness-project-root

Conversation

@d-q222

@d-q222 d-q222 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Claim GH-HARNESS-IMAGES, announced on #2 before the work. GoKubar's 06:55Z re-measure on #2 flagged the gap.

Change

tools/real-world-corpus/run.py and tools/visual-oracle/rank.py now send payload.project_root set to the fixture directory, as display-list-v2-image §2 describes. Before this, every fixture with \includegraphics got a harness-only error: "no project root was supplied with the request, so image files cannot be read". This touches tools only; no crates are changed.

Evidence

flashtex-render and flashtex-pdf-exact were built from main f9bab2a7; main is now 8f83ab5c, which only changes the README. The run used TeX Live 2026 lm, ec and amsfonts TFMs, with --no-oracle --no-pixels.

fixture pages before pages after reference image error before image error after
article-twocolumn 1 1 2 no project root block-cache not found
conf-paper 2 2 4 no project root fig.pdf not found
hyperref-toc 3 3 4 no project root pipeline-diagram not found
lab-report 2 2 3 no project root plot.png not found
thesis-chapter 3 3 5 no project root network.pdf not found

The page counts don't change, so the image gap was not what caused these mismatches. The fixtures ship no image files, and every include except article-twocolumn's is [draft]. Under draft, pdflatex only warns for a missing file and sets a framed placeholder. The remaining page-count causes are in the product:

  • \includegraphics key 'draft' is not honoured yet;
  • "only \includegraphics, \caption, \label and \centering are typeset inside a float so far";
  • \chapter and natbib \citep/\citet/\newblock errors in thesis-chapter.

python3 -m py_compile passes on both files.

🤖 Generated with Claude Code

https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz

tools/real-world-corpus/run.py and tools/visual-oracle/rank.py built
compile requests without payload.project_root, so every fixture with
\includegraphics got "no project root was supplied with the request, so
image files cannot be read", a harness-only error no real user sees.

Measured on conf-paper, hyperref-toc, lab-report, thesis-chapter and
article-twocolumn (flashtex-render built from main f9bab2a, TeX Live
2026 lm/ec/amsfonts TFMs, --no-oracle --no-pixels):
- before: that error on all five; pages 2/3/2/3/1 (references 4/4/3/5/2)
- after: the error is the product's own "image file 'fig.pdf' not found
  (tried ...)"; pages unchanged, 2/3/2/3/1

So the image gap did not cause these page-count mismatches. The fixtures
ship no image files: every include is [draft] except article-twocolumn's
block-cache. pdflatex only warns for a missing file under draft and sets
a placeholder. The remaining causes are product-side: draft not
honoured, float content, \chapter, natbib.

Implementation-Agent: Claude Code (daniel-parent, mac-m5pro-dq222)
Commit-Executor: Claude Code (daniel-parent)
Lane-Owner: daniel-parent (mac-m5pro-dq222)
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
@d-q222

d-q222 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #344 (GoKubar, parity-measurement lane). #344 makes the same project_root change in both harnesses and also fixes four more harness gaps I missed: --images for --v2, the exporter's --project-root, --tfm-dirs, and object-stream page counts. Closing mine to avoid two PRs on the same lines. The before/after page-count evidence in this PR's description agrees with #344 §2.

@d-q222 d-q222 closed this Sep 14, 2026
@GoKubar
GoKubar deleted the agent/daniel-parent/harness-project-root branch September 16, 2026 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant