Your guess is right. Windsurf has a character limit on rules: roughly 6,000 characters per rule file and around 12,000 across all active rules. Anything past that is cut off without a warning.
wc -c .windsurfrulesIf that's above 6000, that's your answer. Fix:
- Move to
.windsurf/rules/with several small files instead of one big file. - Give each file an activation mode. Only the few hard rules (like the legacy folder) should be "Always On". Folder-specific stuff can be "Glob" (e.g.
api/**). - Put the style guide itself in a normal markdown doc and have one short rule say "for naming and folder structure, follow docs/STYLE.md".