chore: add collaboration scope + validator gating#3
Merged
Soundchazer2k merged 9 commits intomainfrom Nov 12, 2025
Merged
Conversation
…normalize paths for group check
Reviewer's GuideThis PR introduces a new “collaboration” scope in the style frontmatter schema, updates the validation logic to only warn on multi-artist names when the scope is “single-artist”, fixes cross‐platform path checks in the validator, flips three existing style cards to use the collaboration scope (with associated ratio updates), and adds documentation outlining the style data model and validator behavior. Entity relationship diagram for style cards with collaboration scopeerDiagram
STYLE_CARD {
id string
group string
display_name string
artist string
movement string
style_scope string
ratios string[]
modes string[]
}
COLLABORATION_STYLE_CARD {
style_scope string
artist string
movement string
ratios string[]
}
STYLE_CARD ||--|| COLLABORATION_STYLE_CARD : has
Class diagram for updated style frontmatter schemaclassDiagram
class Frontmatter {
+string id
+string group
+string display_name
+string artist
+string movement
+"single-artist"|"movement"|"collaboration" style_scope
+string[] ratios
+string[] modes
}
Frontmatter : style_scope = "single-artist" (default)
Flow diagram for updated validator logic on multi-artist namesflowchart TD
A["Start validation"] --> B["Read frontmatter.artist"]
B --> C["Check if artist string looks multi-artist"]
C --> D["Check style_scope"]
D -->|"single-artist"| E["Warn: multi-artist string not allowed"]
D -->|"movement or collaboration"| F["No warning"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey there - I've reviewed your changes - here's some feedback:
- Consider extracting the path normalization logic (the norm helper) into a shared utility or using path.posix to keep scripts consistent rather than inlining regex replacements in validate-style.ts.
- Update the README or style-template to document the new "collaboration" style_scope so contributors know to set it when adding duo or studio styles.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider extracting the path normalization logic (the norm helper) into a shared utility or using path.posix to keep scripts consistent rather than inlining regex replacements in validate-style.ts.
- Update the README or style-template to document the new "collaboration" style_scope so contributors know to set it when adding duo or studio styles.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
What changed & why
artiststrings only when style_scope is "single-artist"; keep warnings off for "movement" and "collaboration".Validation / Build outputs
Risks & rollback
Follow-ups
Summary by Sourcery
Extend the style frontmatter schema with a collaboration scope and enhance the validator to reduce false positives, then update three existing style cards to use the new scope and document these changes.
New Features:
Enhancements:
Documentation: