merge-fold backup lifecycle and fold script

Open
#2,880 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
bash, git, github
Domain
devtools, testing

Research direction

Read .claude/skills/merge-fold/SKILL.md, especially sections 7 and 8, then add the fold script at .claude/skills/merge-fold/fold.sh and a scratch repository test for each listed case. Check the resulting refs and ledger rows, including that one backup remains and backups for landed batches are preserved. Done means the test runs in the fold's gate and each assertion fails without the lifecycle behavior.

Written by the indexing model from the issue text.

Description

backlog

Evidence at d082ef2e3 (the release tip when measured)

  • git grep -n 'release-v6.20.0/\|at the release cut' d082ef2e3 -- .claude/skills/merge-fold AGENTS.md: SKILL.md:133 and
    :135. The fold's backup step is "Kept until then", with remove-when "at the release cut". Nothing deletes a backup.
  • git for-each-ref refs/heads/backup/release-v6.20.0/ on the same tree: 173 local refs. Every one is an ancestor of
    release/v6.20.0, and none is on origin (git ls-remote --heads origin 'refs/heads/backup/release-v6.20.0/*': no refs).
  • git ls-tree -r --name-only d082ef2e3 -- .claude/skills/merge-fold: SKILL.md only. The fold script existed only in the
    work root, outside the repository, so the procedure the skill describes had no committed executable form.

Not shown

  • Whether the fold script's failure cases behave as section 7 of the skill says. No automated test runs the script.
  • Whether the backup lifecycle holds across a sequence of folds: the measurement is the state at one commit.

Falsifier

A run of the fold script against a scratch repository in which a successful fold leaves two backups (the previous one
not deleted), or deletes the only backup of the tip the release moved from, or deletes a backup of a batch that landed.

Work

  1. Commit the fold script as .claude/skills/merge-fold/fold.sh with the lifecycle of section 7 and invariant 8 of
    .claude/skills/merge-fold/SKILL.md (commit ce9b591aa on the branch nevr-runtime-merge-handler/backup-lifecycle, under
    review at the time of filing).
  2. A test that runs the script against a scratch repository and checks, for each case of section 7 (fast-forward succeeds;
    fast-forward refused; tips differ after the fast-forward; release tree not clean; a previous backup cannot be deleted;
    a red before the tip moves), the refs that exist afterwards and the ledger rows. Each assertion fails without the
    lifecycle code (mutant proof, AGENTS.md "What a landed commit carries").
  3. Close this issue when the test runs in the fold's gate.
Dominant language
C++
Stars
3
Forks
5
Avg merge
4h 37m
Merged PRs (30d)
524

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EchoTools/nevr-runtime

All issues in EchoTools/nevr-runtime

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.