Skip to main content

GATED_SECTIONS

Constant GATED_SECTIONS 

Source
pub const GATED_SECTIONS: &[(&str, &[&str], bool)];
Expand description

Every registry-gated section paired with the tool names it declares (#4602).

Why: the gate and its tests must range over the SAME set — a section added to the assembler but missing here would silently escape both. Pairing the text with its list in one table is what lets every_gated_section_declares_the_tools_it_names check the hand-maintained lists against the prose they describe. What: (section text, declared tool names, DailyDriver-only) for all three gated sections, in the order assemble_system_prompt_for_mode appends them. Only DISCOVERY_GUIDANCE is DailyDriver-only: search_code is itself registered only in that mode. Test: prompt::tests::every_gated_section_declares_the_tools_it_names.