Skip to content

Refactor compiler around schema-based knowledge units#22

Merged
nahiyankhan merged 1 commit into
mainfrom
codex/madrigal-core-compiler-refactor
Jun 5, 2026
Merged

Refactor compiler around schema-based knowledge units#22
nahiyankhan merged 1 commit into
mainfrom
codex/madrigal-core-compiler-refactor

Conversation

@nahiyankhan

Copy link
Copy Markdown
Collaborator

Summary

  • Refactor Madrigal's core model into a neutral schema-configurable knowledge unit shape with preserved frontmatter, normalized attributes, provenance, and relationships.
  • Add schema config for ID/title/kind mapping, path-based fallbacks, kind-required fields, vocabularies, and wikilink extraction/resolution.
  • Update loader linting so validate treats strict lint violations as failures while build warns and continues with valid records.
  • Keep rule-oriented formats compatible by treating missing enforcement defensively, and update README examples away from design-only assumptions.

Validation

  • pnpm run typecheck
  • pnpm test
  • pre-push hook: pnpm vitest run, pnpm biome check ., pnpm tsc --noEmit

Notes

  • No customer-intel-specific terms or brand vocabularies are hardcoded into Madrigal; vocabularies remain consumer-owned config.

@nahiyankhan nahiyankhan marked this pull request as ready for review June 5, 2026 13:46
@nahiyankhan nahiyankhan merged commit 93ac9b8 into main Jun 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant