deleted-file-archaeology-guide: Document Deleted File Archaeology #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/deleted-file-archaeology-guide"
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?
Assigned idea
Benchmark authoring specification.
Summary: Add a focused recipe to
skills/git-archaeology/SKILL.mdfor finding the commit that deleted a whole file and viewing the file as it existed immediately before deletion.Task intent: Improve the upstream git-archaeology skill so users investigating removed files have a bounded, copyable workflow that matches the existing guidance to start narrow and avoid broad
git log -poutput.Benchmark plan: Construct the task package around a Markdown-only documentation improvement. The solver should update
skills/git-archaeology/SKILL.md, preserve its YAML frontmatter and existing decision-tree style, and add a section for whole-file deletion archaeology with exact commands for locating deletion commits, viewing the parent version, and following prior renames.Environment plan: The task/environment contains the instruction file and a Python verifier only. The environment/repo is the materialized
pullfrog/pullfrogcheckout at commit1e27180a7064f7240e0d8b8933b795983bd6a58d; no network access or external dependencies are needed beyond Python and pytest-style execution.Verifier plan: Create
test_outputs.pythat readsskills/git-archaeology/SKILL.mdand asserts: the frontmatter still containsname: git-archaeology; a new decision-tree heading about deleted files exists; the file contains the exact commandsgit log --diff-filter=D --summary -- <path>,git show <deletion-sha>^:<path>, andgit log --follow --oneline -- <path>; the new prose explains that<deletion-sha>^:<path>shows the file before deletion; and no new unscoped fenced command line uses plaingit log -pwithout a path filter.Oracle plan: The oracle patch should insert one Markdown subsection under
## Decision tree (by agent intent)inskills/git-archaeology/SKILL.md, using the existing heading-plus-bash-block-plus-notes format. The section should cover: identify deletion withgit log --diff-filter=D --summary -- <path>, inspect the pre-deletion contents withgit show <deletion-sha>^:<path>, and usegit log --follow --oneline -- <path>when the file may have been renamed before deletion.Difficulty plan: Current coding systems may over-edit the skill file, dump broad history commands contrary to the documented output discipline, omit the crucial parent-tree
^:<path>syntax, or confuse deleted-line pickaxe searches with whole-file deletion recovery.Repo patch scope: Expected upstream edits are limited to
skills/git-archaeology/SKILL.md; do not modify other skill files, repository configuration, or code directories.Anti-leakage notes: Solver-facing materials must not mention benchmark, harness, Snorkel, Harbor, std-ts, agent, stage, attempt, retry, generated task, or evaluation context; present this only as a normal documentation improvement.
Approach: Use a minimal Markdown edit that mirrors the existing git-archaeology style: scoped command first, then a narrower inspection command, then short notes warning against broad patch logs.
Verification: Run
python -m pytest test_outputs.py; the verifier checksskills/git-archaeology/SKILL.mdfor the deleted-file section and the concrete commandsgit log --diff-filter=D --summary -- <path>,git show <deletion-sha>^:<path>, andgit log --follow --oneline -- <path>.Risk: The main risk is making the verifier too wording-specific for prose. Keep exact assertions to headings and commands, while allowing explanatory text to vary as long as it states the parent-version behavior.
Path rules: task package is tasks/; mutable upstream checkout is tasks//task/environment/repo; benchmark package files are under tasks//task; verifier/container environment belongs under tasks//task/environment; regular and UI verifier logic belongs in task/tests/test_outputs.py and test.sh only runs that file through pytest.
Agent context
Task slug: deleted-file-archaeology-guide
Branch: task/deleted-file-archaeology-guide
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.