markitect-main/examples
tegwick e3e5b8ecc1 feat(infospace): systematic long-text processing — rich commit bodies, per-source eval/classify, chapters view
Three coordinated changes that let the pipeline produce a clean
chapter-by-chapter git history on long texts without archaeology after
the fact.

1. Richer commit messages. `SourcePipeline._git_commit` now diffs the
   staged changes, buckets added files by output subdirectory (entities,
   evaluations, classifications, mappings, analyses, metrics, logs), and
   includes counts in the commit body. So `git log` reads "entities:
   +23, evaluations: +23" per chapter instead of the same generic blurb
   on every commit. Zero behaviour change when no output changed; falls
   back to the original message if the diff query fails.

2. --eval-after-source / --classify-after-source on `infospace process`.
   After a source's stages succeed, the pipeline identifies which entity
   files are *new* (set diff of entity slugs before vs after), loads
   their EntityMeta, and runs per-entity evaluation and/or
   classification scoped to just those slugs before the per-source git
   commit lands. Result: each chapter's commit is self-contained —
   extraction + evaluation + classification in one atomic unit. Gated
   behind explicit flags because the cost is real (LLM latency per
   chapter rather than amortised across one bulk batch).

3. `markitect infospace chapters` subcommand. Lists source files in
   canonical order with entity count, evaluated count, classified
   count, and mean per-entity score per source. Text or JSON output.
   Natural triage surface for long-text infospaces — spot chapters that
   under-extracted or evaluated poorly.

Also: `docs/advanced-usage.md` gets a new "Systematic processing of
long texts" section with the recommended flag combo and the tradeoff
note on cost.

11 new unit tests cover the chapters command (text/json/no-sources),
the process flag wiring (help + provider requirement), and the
commit-body bucket logic. Full infospace+llm unit suite (315 tests)
green; 3 pre-existing infospace failures unchanged.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-22 08:24:26 +02:00
..
asset-management refactor: reorganize examples directory with topic-based subdirectories 2025-10-29 22:31:52 +01:00
content-generator chore: rename markitect_project to markitect-main across project 2026-04-21 01:57:35 +02:00
design-patterns docs: Add design pattern examples and update submodule 2025-12-16 17:00:31 +01:00
essays refactor: reorganize examples directory with topic-based subdirectories 2025-10-29 22:31:52 +01:00
image-assets feat: implement comprehensive asset shipping for md-render command 2025-10-29 23:12:44 +01:00
infospace-with-history feat(infospace): systematic long-text processing — rich commit bodies, per-source eval/classify, chapters view 2026-04-22 08:24:26 +02:00
invoicing refactor: reorganize examples directory with topic-based subdirectories 2025-10-29 22:31:52 +01:00
issue-demos refactor: reorganize examples directory with topic-based subdirectories 2025-10-29 22:31:52 +01:00
manpages docs: update manpage and terminology examples to schema-of-schemas standard 2026-01-05 13:13:24 +01:00
plugins refactor: reorganize examples directory with topic-based subdirectories 2025-10-29 22:31:52 +01:00
schemas chore: establish schema-of-schemas workplan and reorganize roadmap 2026-01-04 23:47:02 +01:00
supply-chain-vsm feat(example): add supply-chain-vsm composition demo (S3.5) 2026-02-23 00:08:51 +01:00
templates feat: complete schema-evolution topic with ADR schema and markdown support 2026-01-06 12:32:38 +01:00
terminology docs: update manpage and terminology examples to schema-of-schemas standard 2026-01-05 13:13:24 +01:00