feat(group_td): optional SOURCE column with feature-flag detection#28
Merged
Conversation
Five new tests drive the SOURCE-column feature flag: - TestGroupTDPipeFormatWithSource: 8-column output when SOURCE provided - TestGroupTDPipeFormatWithoutSource: 7-column preserved when absent (baseline) - TestGroupTDPipeFormatMixedSource: empty SOURCE cells render as "| |" - TestGroupTDPipeFormatSourceWithCheckbox: checkbox + Source both last - TestGroupTDPipeFormatAppendWithSource: legacy 7-col sections coexist with new 8-col Four currently fail (RED); the without-source test passes as backward-compat baseline.
writeGroupedMarkdown now emits an 8th "Source" column after "Est Minutes" when any input row carries a non-empty SOURCE value. Absent SOURCE preserves the existing 7-column output byte-for-byte, keeping resolve-td and promote-tech-debt positional parsers compatible. Append-mode correctness: legacy 7-column sections coexist with newer 8-column sections in the same README.md. Row-count verification unchanged. Enables the unified tech-debt capture pipeline where /execute-sprint and /code-review both contribute rows tagged by source.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
writeGroupedMarkdowngains an optionalSourcecolumn, emitted only when at least one input row has a non-emptySOURCEvalue.SOURCEin--headers).Why
/execute-sprintnow surfaces tech-debt items mid-TDD, and/code-reviewpre-seeds its adversarial stream from them. To distinguish the two sources in the final README.md backlog, we need a provenance column. Appended-at-end preserves positional compatibility withresolve-tdandpromote-tech-debtparsers.Test plan
group_td_test.godrive the feature (RED -> GREEN)go test ./...)writeGroupedMarkdowncoverage: 95.5%; package: 80.3%make buildsucceedsCompatibility notes
SOURCEvalues render as| |to preserve column alignment (verified byTestGroupTDPipeFormatMixedSource).TestGroupTDPipeFormatAppendWithSource).headersis already a free-form string.