Skip to content

Fix/series part roundtrip - #18

Merged
Mancolt merged 2 commits into
mainfrom
fix/series-part-roundtrip
Sep 18, 2026
Merged

Mancolt merged 2 commits into
mainfrom
fix/series-part-roundtrip

Conversation

@Mancolt

@Mancolt Mancolt commented Sep 18, 2026

Copy link
Copy Markdown
Owner

Bug and impact

The run log writes seriesparts as Pike Logan 17.5 but the log-mode reader (fix.csv, the books-mcp apply unit) split on #, so the
series came back named Pike Logan 17.5 with no part. The writer also ran the part through the author cleanser, so 17.5 was logged as
17 5 — the "decimal parts don't come through" half of upstream myxdvz#27.

Fix

  • Reader (Book.setSeriesFromLog): pairs seriesparts with the series column, cleansing both the same way; reads a pre-fix 17 5
    back as 17.5; hand-written Name #part rows still work.
  • Writer (getSeriesParts): the part is kept verbatim (17.5); the name is cleansed exactly as before.
  • docs/FORK.md item 6 marked closed (with target_path/in_series_no_part: a series entry without a part no longe… #17).

Validation

  • New tests in tests/test_logmode.py (round trip incl. a series ending in a number, old 17 5 rows, names the two columns cleanse
    differently, # form). 201 tests OK, ruff clean.
  • Corpus replay (1,577 books): only four novellas' fuzzy-match strings change by the dot (Jack Reacher 23 523.5); no match, cache
    key or target path changes.

Mancolt and others added 2 commits September 18, 2026 12:26
…stream myxdvz#27)

The log writes seriesparts as "Name part" and the reader split on "#", so
a fix.csv row came back with the series named "Pike Logan 17.5" and no part.
The reader now pairs seriesparts with the series column, cleansing both the
same way, and reads a pre-fix "17 5" back as 17.5. The writer keeps the
part verbatim (17.5, not "17 5"). Corpus replay: four novellas' match-rate
strings change by the dot, no match changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Mancolt
Mancolt merged commit ebd3ea4 into main Sep 18, 2026
2 of 3 checks passed
@Mancolt
Mancolt deleted the fix/series-part-roundtrip branch September 18, 2026 16:47
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