fix(T-1008): Comparison context skips uppercase TASKS.md#155
Conversation
Code Review: fix(T-1008) — Comparison context skips uppercase TASKS.mdOverviewThis PR fixes a consistency gap where readSpecContext only checked for lowercase tasks.md, while the rest of the codebase (run.go, status/gatherer.go) already handled both tasks.md and TASKS.md. The fix brings the comparison context in line with those existing code paths. The approach is correct and clean. Code QualityThe fix is correct. The struct field rename from Consistent with the rest of the codebase. run.go:505-508 and status/gatherer.go:269-270 already probe both cases; this fix closes the gap in readSpecContext. IssuesPre-existing duplication (not introduced here, but worth noting). readSpecContext exists in two places with near-identical logic:
The PR correctly patches both copies. Long-term, extracting this into a shared helper would eliminate the drift risk that caused this bug in the first place. Missing test coverage for the internal/orbit copy. TestReadSpecContext_UppercaseTasksFile exercises the cmd/orbit version. There is no equivalent test for (o *Orbit).readSpecContext() in internal/orbit/comparison.go. Since both copies are structurally identical this is low risk, but a regression there would not be caught. requirements.md and design.md do not get the same fallback treatment. This is probably intentional — the spec and run.go only document dual-case support for the tasks file. Worth a brief comment confirming that, so a future contributor does not wonder why the pattern is not uniform. Suggestions
Test CoverageThe new test (TestReadSpecContext_UppercaseTasksFile) is well-structured: uses t.TempDir(), writes only the uppercase file, and asserts the content appears in the output. It follows project conventions correctly. The only gap is the missing companion test for internal/orbit/comparison.go. SummaryThe fix is correct, focused, and consistent with the existing codebase. The main actionable item is adding a test (or explanation) for the internal/orbit copy. Everything else is low-priority follow-up. Looks good to merge. |
1c63e38 to
2798e44
Compare
Code ReviewOverviewThis PR fixes a case-sensitivity bug (T-1008) where Code Quality & Style
Suggestions / Observations
Test Coverage
Potential IssuesNone blocking. The logic is straightforward and the fix is correct for its stated scope. SummarySolid, focused bug fix. Main actionable items are:
|
Fixes Transit ticket T-1008: Comparison context skips uppercase TASKS.md