refactor: remove updated field from frontmatter schemas#44
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
updatedfield from ADR, RFC, Memo, and PRD frontmatter schemasmigratecommand to removeupdatedand legacydatefieldsupdatedtimestamp can be derived from git history, eliminating manual maintenanceRationale
The
updatedfield 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 usinggit log.Changes
Schema Changes
updatedfield from ADR, RFC, Memo, and PRD schemasupdatedas a derived fieldMigrate Command
updatedfield from existing documentsdatefield after migrating value tocreatedTest plan
updatedfrom target repository🤖 Generated with Claude Code