chore: ignore and remove throwaway scratch files - #1439
Merged
Conversation
Agent working notes (HANDOVER/handoff) and one-off UI prototype HTML files were committed by mistake. Remove the already-tracked ones, add .gitignore patterns for these classes of files and a .tmp/ scratch dir, and document the rule plus a pre-commit self-check in AGENTS.md so future mistakes are caught mechanically. No publishable package is affected, so this PR needs no changeset.
|
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.
Related Issue
No linked issue. This is recurring repo hygiene — see the problem below.
Problem
Scratch / exploratory files keep getting committed by accident and then have to be deleted in a follow-up. Concretely, this PR removes the most recent offenders that were already tracked:
HANDOVER-kimi-web-table-width.mdcomposer-toolbar-designs.html(repo root) andapps/kimi-web/design/{queue-composer-mockup,sidebar-show-more-demo,undo-exit-demos}.htmlNone of these belong in the source tree, but there was no rule or ignore pattern to stop them from being staged.
What changed
.gitignore: ignore common scratch-file patterns by class so they cannot be staged again:HANDOVER*.md,HANDOFF*.md,handoff.md,handover.md*-designs.html,*-design.html,*-mockup.html,*-demo.html,*-demos.html.tmp/AGENTS.md: document the rule so agents can catch this proactively — never stage handoff notes or throwaway HTML prototypes, rungit status+git diff --staged --statbefore committing, and keep scratch work under.tmp/.Verified with
git check-ignore: the new patterns match the scratch files (e.g.*-designs.html,HANDOVER-*.md,.tmp/*) and do not match legitimate files such as the Viteindex.htmlentrypoints orpackages/agent-core/.../handoff.ts.No publishable package is affected, so this PR needs no changeset.
Checklist
gen-changesetsskill, or this PR needs no changeset. (No publishable package affected.)gen-docsskill, or this PR needs no doc update. (Only internalAGENTS.mdguidance changed; no user-facing docs.)