fix(parser): warn when a task has no **Files:** section at all - #63
Merged
Conversation
Twin of the 0.6.22 **Interfaces:** fix, same root cause: extractSection flattened "missing" and "empty" to ''. A header typo (**File:**) silently removed the task from file-based serialization — overlapping tasks ran in parallel and hit avoidable merge conflicts, with a misleading symptom (the missing dependency looked like a Consumes/Produces problem). parseFiles now uses extractOptionalSection and warns. extractSection is now unused (both parseFiles and parseInterfaces use the optional variant) and has been removed.
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
Twin of the 0.6.22
**Interfaces:**fix, same root cause, other section:parseFilesstill usedextractSection, which flattens "section missing" and "section present but empty" to''. A header typo (**File:**,**Archivos:**) silently removed the task from file-based serialization — two tasks sharing a file could run in parallel and hit an avoidable merge conflict, with a misleading symptom (looks like a Consumes/Produces problem, not a Files one).Type of change
Main changes
parseFilesnow usesextractOptionalSection(same helperparseInterfacesalready uses) and warns when the**Files:**section is missing entirely.extractSectionis now unused (bothparseFilesandparseInterfacesuse the optional variant) and has been removed.skills/plan/SKILL.md: extended the 0.6.22 rule to cover both**Files:**and**Interfaces:**headers.plan-parser.jsis not inlined into the generated workflow (npm run build+git diff --exit-code workflows/parallel-plan-executor.js— no change).Version
Checklist
npm test), TDD (RED confirmed before GREEN)