Objective
Centralize the definition of advisor response section headers (currently "Thought", "What to do", "Next step") into configuration so that section names can be changed or extended without modifying hard coded values across multiple files.
Initial Implementation Requirements
- add response section header values to config files
- refactor all places response section headers are hard coded to pull in the values from config
Other Considerations
Refers to this code in voice.py:
line 33-35:
_SECTION_HEADERS = re.compile(
r"\b(Thought|What to do|Next step)\s*[:.]?\s*", flags=re.IGNORECASE
)
and is also also hard-coded in app.models.persona:COMPACT_MARKDOWN_V1 and app.models.persona:_extract_heading_blocks
Objective
Centralize the definition of advisor response section headers (currently "Thought", "What to do", "Next step") into configuration so that section names can be changed or extended without modifying hard coded values across multiple files.
Initial Implementation Requirements
Other Considerations
Refers to this code in
voice.py:line 33-35:
and is also also hard-coded in
app.models.persona:COMPACT_MARKDOWN_V1andapp.models.persona:_extract_heading_blocks