Skip to main content

Module topic

Module topic 

Source
Expand description

§Module: topic

§Spec

  • Pure text parsing of ### Re: topic sections from an exchange component body.
  • Splits a component body into preamble (before the first ### Re: heading), the per-topic sections, and any trailing content after a managed <!-- agent:boundary: --> marker.
  • Boundary markers are managed by the binary and are never archived, so they are stripped from the parsed output.

§Agentic Contracts

  • Lives in agent-doc-core so both the compaction layer (orchestration) and the archive index (the SQLite crate) can parse topic sections without a crate cycle.

§Evals

  • parse_topic_sections_basic: ### Re: headings split into sections
  • parse_topic_sections_strips_boundary_marker: boundary markers excluded from sections

Structs§

TopicSections
Parsed topic-section view of an exchange component body.

Functions§

parse_topic_sections
Split a component body into its preamble and per-topic sections.
parse_topic_sections_with_tail
Split a component body into preamble, per-topic sections, and post-boundary trailing content.