fix(plugin): add missing CLAUDE.md reference to plugin engine rule
Test TestPluginEngineRuleIsCanonicalAndSharedByAgentInstructions was missing entirely, letting CLAUDE.md drift out of sync with ARCHITECTURE.md#plugin-engine-rule-strict. Added the test and the missing reference.
This commit is contained in:
1 parent
88a995a736
commit
5fa010c9c2
32 files changed
+1148
-1118
No files matched your search
@@ -18,6 +18,20 @@ const (
|
||||
engineRuleLink = "ARCHITECTURE.md#plugin-engine-rule-strict"
|
||||
)
|
||||
|
||||
func TestPluginEngineRuleIsCanonicalAndSharedByAgentInstructions(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
architecture := readTestFile(t, filepath.Join("..", "..", "ARCHITECTURE.md"))
|
||||
if !strings.Contains(architecture, engineRuleHeading) {
|
||||
t.Fatalf("ARCHITECTURE.md missing canonical heading %q", engineRuleHeading)
|
||||
}
|
||||
|
||||
claudeMD := readTestFile(t, filepath.Join("..", "..", "CLAUDE.md"))
|
||||
if !strings.Contains(claudeMD, engineRuleLink) {
|
||||
t.Fatalf("CLAUDE.md missing reference to %q", engineRuleLink)
|
||||
}
|
||||
}
|
||||
|
||||
func TestEngineFamilyInspectionRejectsInvalidShapes(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
||||
Reference in new issue
Block a user