Skip to content

docs(plans): prefix with YYYY-MM-DD for chronological sort#368

Merged
brianmhunt merged 3 commits into
mainfrom
claude/nifty-tesla-Botge
May 4, 2026
Merged

docs(plans): prefix with YYYY-MM-DD for chronological sort#368
brianmhunt merged 3 commits into
mainfrom
claude/nifty-tesla-Botge

Conversation

@brianmhunt
Copy link
Copy Markdown
Member

@brianmhunt brianmhunt commented Apr 23, 2026

Summary

  • Renames every plans/*.md to plans/YYYY-MM-DD-<slug>.md so ls plans/ self-sorts chronologically and stale plans are visually obvious. Dates come from each file's author date on its first-add commit (git log --diff-filter=A --follow --format=%as).
  • Updates every inbound reference so links still resolve — README.md, tko.io/src/content/docs/history.md, and three within-plans/ cross-references.
  • Adds a Naming: bullet to the ## Plans section of AGENTS.md documenting the convention, including the exact git command so future agents reproduce the same date.

Why

plans/ was a flat, unsorted pile — you had to open each file to know when it was written, and stale plans looked identical to live ones. Chronological prefixing turns the directory into a timeline. Author date (not committer date) is the right source: a plan drafted late one day and landed the next UTC morning should still sort by when it was written, which caught knip.md during adversarial review.

Test plan

  • git diff --stat --find-renames shows 13 clean renames (git rename-detection ≥50% similarity held on the three combined rename+edit files)
  • git log --follow plans/2026-04-16-dark-factory.md (and spot-checks on others) surfaces pre-rename history
  • grep -rn across *.md, *.ts, *.astro, *.mjs, *.js, *.json, *.yml for each old slug — zero stale references
  • Adversarial pass by fresh subagent flagged 2 issues (knip date, AGENTS.md wording drift); both fixed in follow-up commit 6b75c0a

Out of scope

No code, tests, or CI affected. Biome explicitly ignores markdown; bun run verify has no touch-surface for this change.

https://claude.ai/code/session_01Vk56tJZxSiLQPj26xhiPBV


Generated by Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated plan document naming convention to include commit-based date prefixes (YYYY-MM-DD format) for improved chronological organization and consistency across repository references.

claude added 2 commits April 23, 2026 19:26
Renames every plans/*.md to plans/YYYY-MM-DD-<slug>.md so the directory
self-sorts chronologically and stale plans become visually obvious. Dates
come from each file's first-add commit.

Also updates the three live inbound references (README.md, tko.io history.md,
three within-plans cross-references) and adds a Naming bullet to the Plans
section of AGENTS.md documenting the convention for future plans.

Adversarial pass: general-purpose subagent (initiated; see follow-up if it
surfaces findings). Scope: the rename + reference updates are markdown-only
and cannot affect biome/tsc/build/vitest; biome explicitly ignores .md.
Adversarial review on the prior rename commit (7831b01) caught two
related issues, both rooted in using committer date (%cs) instead of
author date (%as) when deriving the date prefix:

1. plans/knip.md was written 2026-04-15 but landed the next UTC
   morning, so committer date read 2026-04-16. Renames to
   2026-04-15-knip.md so it sorts with the other 2026-04-15 plans.

2. AGENTS.md Naming bullet said "when the plan was written," which
   matched intent but diverged from the implementation (committer
   date). Rewrites to name author date explicitly and to spell out
   the exact git command, so future agents reproduce the same answer.

No other plans were off — the 12 others had identical author and
committer dates.

Adversarial pass: general-purpose subagent. Flagged 2 (knip date +
AGENTS.md wording drift). Resolved: this commit. Finding 3 (split
rename+edit commits defensively) rejected — current git rename-
detection tied the three affected renames at the default threshold
and history is preserved via git log --follow.
Copilot AI review requested due to automatic review settings April 23, 2026 20:38
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 23, 2026

Warning

Rate limit exceeded

@brianmhunt has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 39 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 5 minutes and 39 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d31abec7-f18b-4a82-8f6e-8a10dba1dc17

📥 Commits

Reviewing files that changed from the base of the PR and between 6b75c0a and 1b0076f.

📒 Files selected for processing (1)
  • AGENTS.md
📝 Walkthrough

Walkthrough

The pull request introduces and implements a date-based naming convention for plan files throughout the repository. Documentation in AGENTS.md is updated to specify how to derive dates from git author dates, and all existing plan file references across multiple files are updated to conform to the new dated naming format.

Changes

Cohort / File(s) Summary
Plan naming convention documentation
AGENTS.md
Adds 7 lines documenting the explicit filename convention that includes a date derived from the plan's first-adding commit author date, with the git command to compute that date.
Documentation and plan references
README.md, tko.io/src/content/docs/history.md
Updates links to the dark-factory plan from plans/dark-factory.md to plans/2026-04-16-dark-factory.md across documentation files.
Plan file internal references
plans/2026-03-29-testing-modernization.md, plans/2026-04-15-biome.md, plans/2026-04-15-replace-make-lerna.md
Updates internal plan file references to use the new dated naming convention (e.g., plans/biome.mdplans/2026-04-15-biome.md, plans/modern-tooling.mdplans/2026-04-14-modern-tooling.md).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

  • PR #238: Directly touches AGENTS.md in the same manner, introducing or modifying plan governance documentation.
  • PR #293: Complements the main PR's changes by adding mandatory plan requirements and templates to AGENTS.md alongside the new filename convention.
  • PR #304: Also modifies AGENTS.md, though with governance-related edits that may interact with the date-convention documentation being added here.

Poem

🐰 With whiskers twitching, I organize with care,
Each plan gets a date-stamp fair,
No more confusion in our warren's nest,
Chronological chaos put to rest! 📅✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically summarizes the main change: adding YYYY-MM-DD prefixes to plan files for chronological sorting, which is the core objective of this changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/nifty-tesla-Botge

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames the repository’s plans/*.md documents to a YYYY-MM-DD-<slug>.md scheme so the directory self-sorts chronologically, and updates inbound links + contributor guidance to match.

Changes:

  • Renamed plan docs under plans/ to plans/YYYY-MM-DD-<slug>.md.
  • Updated references to the renamed plan files (README + docs history + intra-plans links).
  • Documented the new plans/ naming convention in AGENTS.md.

Reviewed changes

Copilot reviewed 6 out of 16 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
AGENTS.md Documents the new plans/YYYY-MM-DD-<slug>.md naming convention and how to derive the date.
README.md Updates the “dark factory” plan link to the new dated filename.
tko.io/src/content/docs/history.md Updates the GitHub link to the renamed dark-factory plan.
plans/2026-04-22-browser-test-runner.md Adds/renames the browser test runner plan under the dated naming scheme.
plans/2026-04-16-legacy-docs.md Adds/renames the legacy docs plan under the dated naming scheme.
plans/2026-04-16-dark-factory.md Adds/renames the dark factory plan under the dated naming scheme.
plans/2026-04-15-replace-make-lerna.md Updates intra-plan references to renamed plan filenames.
plans/2026-04-15-knip.md Adds/renames the knip plan under the dated naming scheme.
plans/2026-04-15-biome.md Updates references to renamed plan filenames.
plans/2026-04-14-modern-tooling.md Adds/renames the modern tooling plan under the dated naming scheme.
plans/2026-04-06-trusted-publishing.md Adds/renames the trusted publishing plan under the dated naming scheme.
plans/2026-03-29-tsx-doc-examples-rollout.md Adds/renames the TSX docs rollout plan under the dated naming scheme.
plans/2026-03-29-testing-modernization.md Updates the internal reference to the renamed testing modernization plan file.
plans/2026-03-29-jsx-playground.md Adds/renames the JSX playground plan under the dated naming scheme.
plans/2026-03-29-build-and-release-certainty.md Adds/renames the build/release certainty plan under the dated naming scheme.
plans/2026-03-29-agent-verified-behaviors.md Adds/renames the agent verified behaviors plan under the dated naming scheme.
Comments suppressed due to low confidence (1)

plans/2026-04-15-replace-make-lerna.md:101

  • After the rename, step 1 now reads as copying this plan to the same file path it already has. If this step is meant to describe creating the plan file from some other location (issue/notes), consider rephrasing (e.g., “Create the plan at …”) or dropping the step to avoid a self-referential instruction.

Comment thread AGENTS.md Outdated
Comment on lines +179 to +180
--diff-filter=A --follow --format=%as -- plans/<slug>.md | tail -1`. Use
author date, not committer date: a plan written late one day and landed
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example git command uses plans/<slug>.md, but the naming convention directly above is plans/YYYY-MM-DD-<slug>.md. As written, a future contributor following the convention won't have a plans/<slug>.md path to run the command against; consider updating the command to reference the actual filename pattern (or clarify when/how to run it) so the guidance is self-consistent.

Suggested change
--diff-filter=A --follow --format=%as -- plans/<slug>.md | tail -1`. Use
author date, not committer date: a plan written late one day and landed
--diff-filter=A --follow --format=%as -- plans/YYYY-MM-DD-<slug>.md | tail -1`.
Use author date, not committer date: a plan written late one day and landed

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6b75c0a61a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread AGENTS.md Outdated

**Naming:** `plans/YYYY-MM-DD-<slug>.md`, where the date is the **author
date** of the first commit that adds the plan — i.e. `git log
--diff-filter=A --follow --format=%as -- plans/<slug>.md | tail -1`. Use
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Update naming command to use date-prefixed plan path

The new Naming guidance says plans must be named plans/YYYY-MM-DD-<slug>.md, but the example command still queries plans/<slug>.md. In a repo that has already migrated to date-prefixed filenames, contributors following this instruction will get no date output for existing plans and can’t reliably reproduce the convention, which undermines the chronological sorting this commit is trying to enforce.

Useful? React with 👍 / 👎.

Copilot + Codex both flagged on PR #368 that the example git command
queried plans/<slug>.md, but the convention one line up is
plans/YYYY-MM-DD-<slug>.md. After the rename, no file matches the
old pattern, so a contributor running the command to reproduce the
convention gets nothing. Updates the command to use the actual
filename pattern.

Adversarial pass: PR reviewers (copilot-pull-request-reviewer,
chatgpt-codex-connector, coderabbit) flagged this finding. Resolved
by this commit.
@brianmhunt brianmhunt merged commit 7840419 into main May 4, 2026
9 checks passed
@brianmhunt brianmhunt deleted the claude/nifty-tesla-Botge branch May 4, 2026 12:34
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.

4 participants