Files
infospace-bench/tests/fixtures/lefevre/sources/chapter2.xhtml
tegwick 348deca9f2 IB-WP-0016-T05: deterministic Lefevre acceptance fixture
Check in a small Lefevre-shaped EPUB fixture as separate source files
under tests/fixtures/lefevre/sources/ (container.xml, OPF, nav, cover,
PG header, three roman-numeral chapters with page anchors,
transcriber notes, license, PG footer). The test helper assembles
these into an EPUB at test time so the inputs stay inspectable in git.

Fixture responses tuned to the trading-literature profile (T04) live
at tests/fixtures/lefevre/responses.yaml: trader / institution /
strategy categories on entities, strategy_outcome / actor_venue
relation types, and all four trading-tuned evaluation criteria.

Three tests cover the acceptance:
- end-to-end Python pipeline: stable chapter-NN source slugs, full
  artifact tree (entities, relations, evaluations, metrics, history,
  generation report), budget registry persisted, chapter_number
  provenance round-trips through artifacts/index.yaml
- regression: PG boilerplate (cover, nav, header, notes, license,
  footer) is excluded by default and only appears under
  include_non_body=True
- CLI smoke through generate from-source --profile trading-literature
  --fixture-responses ...

125 tests pass.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 22:31:17 +02:00

20 lines
724 B
HTML

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><title>Reminiscences of a Stock Operator (Fixture)</title></head>
<body>
<h2>II</h2>
<p>
<span id="Page_15">15</span>
Between the discovery that the Cosmopolitan Stock Brokerage Company is
ready to load the dice and the narrator's discovery of pyramiding, he
sees that even an old bucket-shop hand can be ruined by the wrong
side of a one-sided market.
</p>
<p>
<span id="Page_16">16</span>
The lesson he draws is to test the size of his line against the size
of the float, and to scale in only when each successive purchase is
vindicated by the tape itself.
</p>
</body>
</html>