chore(brain): rename CLAUDE.md to schema.md for clarity

CLAUDE.md has a specific meaning in the Claude Code ecosystem (agent
instructions). The wiki schema for the ingestion pipeline should live
in schema.md to avoid confusion.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mathias Bergqvist
2026-04-22 23:06:32 +02:00
parent 2ae6bfe81e
commit 1b0706f270
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ type CompleteFunc func(ctx context.Context, system, user string) (string, error)
type Config struct { type Config struct {
Complete CompleteFunc Complete CompleteFunc
ChunkSize int // 0 = no chunking ChunkSize int // 0 = no chunking
Schema string // overrides brain/CLAUDE.md when set (useful in tests) Schema string // overrides brain/schema.md when set (useful in tests)
} }
// Result is the outcome of a pipeline run. // Result is the outcome of a pipeline run.
@@ -108,11 +108,11 @@ func mergeAll(pages []wiki.Page) []wiki.Page {
const defaultSchema = `# Brain Wiki Schema const defaultSchema = `# Brain Wiki Schema
Three page types: wiki/sources/, wiki/concepts/, wiki/entities/. Three page types: wiki/sources/, wiki/concepts/, wiki/entities/.
See brain/CLAUDE.md for the full schema. See brain/schema.md for the full schema.
` `
func loadSchema(brainDir string) string { func loadSchema(brainDir string) string {
b, err := os.ReadFile(filepath.Join(brainDir, "CLAUDE.md")) b, err := os.ReadFile(filepath.Join(brainDir, "schema.md"))
if err != nil { if err != nil {
return defaultSchema return defaultSchema
} }