Skip to content

fix(c0): single-source type enums + daily validator round-trip#67

Draft
m3talux wants to merge 2 commits into
mainfrom
fix/c0-types
Draft

fix(c0): single-source type enums + daily validator round-trip#67
m3talux wants to merge 2 commits into
mainfrom
fix/c0-types

Conversation

@m3talux

@m3talux m3talux commented Jun 6, 2026

Copy link
Copy Markdown
Owner

v1.0.0 Wave C C0 pre-flight. Single-sources the three note-type enumerations and fixes the daily template/validator so a generated daily passes validateNote (it was rejecting every system-produced daily). Banked for the June 12 v1.0.0 reassessment; not for merge during the 0.8.1 bake.

m3talux added 2 commits June 5, 2026 22:22
…\n\nG2: introduce src/types.ts as the single source of truth for ROUTABLE_KINDS,\nFILE_NOTE_TYPES, and VALID_FRONTMATTER_TYPES; re-export Kind from router.ts\nand NoteType from templates.ts; replace the VALID_TYPES literal in\nfrontmatter.ts with VALID_FRONTMATTER_TYPES. Adds tests/types.test.ts\nasserting the subset invariant, no duplicates, and per-consumer alignment.\n\nG5: update REQUIRED_SECTIONS.daily to the structurally-loose set\n[## Summary, ## Also did] matching buildDailyNote output; update\nrenderDaily to emit the matching four sections; narrow the wikilink\nvalidation rule to the Decisions and gotchas section only. Adds\nround-trip tests: buildDailyNote -> validateNote('daily') passes for\nboth a populated and an empty day.\n\nCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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