| 56 | |
| 57 | /** Generic authoring scaffold; no repository facts are invented. */ |
| 58 | export function appendDecision(content: string): string { |
| 59 | const heading = content.trim() ? '\n\n---\n\n## Decision title' : '# Architecture decisions\n\n## Decision title'; |
| 60 | return `${content.trimEnd()}${heading}\n\n**Status:** Proposed\n\n### Context\n\nWhat problem or constraint led to this decision?\n\n### Decision\n\nWhat will change, and why?\n\n### Alternatives\n\nWhich options were considered?\n\n### Consequences\n\nWhat benefits, costs, and follow-up work should readers know?\n`; |
| 61 | } |