Skip to content

Conversation

@jrepp
Copy link
Owner

@jrepp jrepp commented Jan 27, 2026

Summary

  • Remove updated field from ADR, RFC, Memo, and PRD frontmatter schemas
  • Update migrate command to remove updated and legacy date fields
  • The updated timestamp can be derived from git history, eliminating manual maintenance

Rationale

The updated field was previously required in frontmatter, but this creates manual overhead since authors need to update it every time they edit a document. Since git already tracks modification history, this timestamp can be automatically derived using git log.

Changes

Schema Changes

  • Remove updated field from ADR, RFC, Memo, and PRD schemas
  • Update schema docstrings to document updated as a derived field

Migrate Command

  • Now removes updated field from existing documents
  • Removes legacy date field after migrating value to created
  • Tested on 103 documents, modified 74 files

Test plan

  • All 549 tests passing
  • Lint and format checks pass
  • Migration successfully removes updated from target repository

🤖 Generated with Claude Code

jrepp and others added 3 commits January 26, 2026 17:45
The `updated` field can be derived from git history, so it doesn't need
to be stored in frontmatter. This simplifies the schema and reduces
manual maintenance burden.

- Remove `updated` field from ADR, RFC, Memo, and PRD schemas
- Update schema docstrings to document `updated` as a derived field
- Update tests to reflect schema changes

Co-Authored-By: Claude <noreply@anthropic.com>
The migrate command now:
- Removes 'updated' field (derived from git history)
- Removes legacy 'date' field after migrating to 'created'

This reduces manual maintenance since 'updated' can be computed
from git commit history on demand.

Co-Authored-By: Claude <noreply@anthropic.com>
- Migrate now normalizes date-only created values to ISO 8601 datetime
- Add tests for field removal (updated, date) and datetime normalization
- 5 new tests for migrate command

Co-Authored-By: Claude <noreply@anthropic.com>
@jrepp jrepp merged commit 9acf3c2 into main Jan 27, 2026
8 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.

2 participants