Skip to content

README Section Catalog

osa_tool.operations.docs.readme_generation.pipeline.section_catalog

README section catalog — derived indexes, planner text, and intent-aware spec selection.

deterministic_specs_for_intent(intent, _ctx)

Deterministic and assembler-only plan slots; filtered on partial updates when affected_sections is set.

For partial scope with a non-empty affected_sections list, only deterministic/catalog sections whose internal names appear in that list (case-insensitive) are included. If none match, returns an empty list so only LLM sections from the planner run. When affected_sections is empty under partial scope, the full deterministic set is kept (defensive fallback).

_ctx is reserved for future conditional rules (e.g. repo signals); currently unused.

format_llm_catalog_for_planner()

Bulleted list of allowed LLM section internal names for the planning prompt.

section_specs_from_llm_names(names, intent, ctx)

Map planner-selected LLM section names to SectionSpec using catalog metadata (priority, prompts, keys).