import-agent-normalizers-share-intermediate-schema

IN premise

Both `_normalize_markdown()` and `_normalize_json()` produce identical intermediate dicts (id, text, is_out, source, source_hash, date, metadata, raw_justifications) before hitting shared `_import_claims`/`_sync_claims` logic.

Summary

Both normalizer functions in the import agent convert their respective formats into the same dictionary structure before passing data to the shared import logic. This means changes to the intermediate schema or the downstream import pipeline affect both markdown and JSON import paths equally, and new import formats only need to produce that same dictionary shape to plug in.

Details

Sourceentries/2026/04/29/reasons_lib-import_agent.md