Add YAML frontmatter to journal entries for machine-queryable structure #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Dev journals and validation journals are the primary evidence source for
learning-analysis(seecloseout/procedures/learning-analysis.md). They will become more valuable as we move toward analyzing patterns across features, repos, and projects — not just within a single closeout.The current format is markdown headers + bold-label fields:
Strong implicit typing already exists (
STRUGGLE,DISCOVERY,$ISSUE_TYPE,COMPLETE) and fields are reasonably consistent. But it's only parseable via regex or markdown AST traversal — brittle to format drift, and a renamed field (Affected→Component) breaks parsers silently.Proposed change
Add a small YAML frontmatter block to each journal entry containing the structured/queryable fields. Keep the long-form prose fields (
Attempts, narrative) as markdown.Example for a STRUGGLE entry:
Benefits:
Schema sketch (to be refined)
Per entry type, the YAML carries:
type(struggle | discovery | issue | complete),tags(free list)affected,attempts,resolvedpattern_kind,whereseverity, domain-specific fields (already parameterized via$ISSUE_FIELDS)items_checked,issues_foundFinal schema decided during implementation. The narrative/long-form fields stay below the YAML as prose.
Files affected
_shared/procedures/journal-template.md— primary templatedevelop/SKILL.md— has its own embedded journal format (see related issue on consolidation)*-validateskills that reference the journal templateOut of scope
Related