Skip to content

[orc] TASK-780: Add docstring to formatInitiativeNotes helper - #544

Open
randalmurphal wants to merge 1 commit into
mainfrom
orc/TASK-780
Open

[orc] TASK-780: Add docstring to formatInitiativeNotes helper#544
randalmurphal wants to merge 1 commit into
mainfrom
orc/TASK-780

Conversation

@randalmurphal

Copy link
Copy Markdown
Owner

Task: Add docstring to formatInitiativeNotes helper

The formatInitiativeNotes function in internal/variable/resolver.go needs a Go docstring. This function formats initiative notes grouped by type for injection into prompts.


Created by orc workflow execution.

Extract pure formatting logic from loadAndFormatInitiativeNotes into a
reusable FormatInitiativeNotes function in the variable package. The new
function includes detailed documentation explaining:

- Input expectations (pre-filtered notes)
- Output format (markdown grouped by type)
- Type ordering (patterns, warnings, learnings, handoffs)
- Traceability (source task references)

This improves separation of concerns by having the executor handle
filtering logic while the variable package handles formatting.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant