Repository navigation
feat(work-items): delete dossier branches when a spec container closes - #16907
Conversation
The container close ritual now owns the dossier-branch delete: once the close-out review passes, it deletes the container's own dossier branch and the one named in the closing comment of the wayfind map the container was published from. The prefix comes from the source-control dossier_branch_prefix setting; a branch name read from a comment must match the prefix and a safe ref charset; a branch with an open pull request is skipped; an attended run asks once and an unattended run only reports; a container that stays open deletes nothing. The closing comment reports each branch deleted or skipped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…elete unattended An attended close now shows, per dossier branch, the commits the default branch cannot reach and the files they change before asking, and deletes only what the user confirms. An unattended run never deletes: the closing comment and the run's report list each branch due for deletion. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9d6b338855
ℹ️ 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".
…iner close Four scaffolded cases give the close ritual a real origin holding the dossier branch: unattended runs list it as due and delete nothing, attended runs show its unshared commits and files before asking once, two matching branches are both reported and neither deleted, and a branch that heads an open pull request is skipped with that reason. Every deterministic grader carries pass and fail samples. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…iguous match is report-only The close ritual now reads the dossier prefix from the dossier_branch_prefix key of docs/conventions/source-control.yaml in the repository being closed out, not from the plugin's files, and leaves the default to the source-control setting that owns it. More than one matching branch, like a branch that heads an open pull request, is reported only: the run neither deletes it nor asks whether to, attended or not. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The open-pull-request case now needs the branch reported as skipped on the same line as the pull request, so a reply that only repeats the prompt's names fails, and a not_contains grader fails any offer to delete the branch in this run. The ambiguous-match case gets the same no-offer grader. The unattended case no longer grades whether the container closes, which no run can do with the tracker out of reach. Every model-graded grader now has pass and fail calibration samples. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-only cases from offering a delete /work-items:ship now links the container-lifecycle file it routes the close to, so a run opens it instead of searching the plugin, and names the dossier-branch step as part of that close. An ambiguous match or an open pull request's head is reported only: the run does not offer to delete it on request, and leaves it to a person or a later attended run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
no-delete-offer now also fails a conditional offer such as "say which and I'll delete it". lists-branch-as-due accepts a due heading up to 600 characters before the branch, in either order, and fails any reply that claims the branch was deleted. reports-both needs both branches reported as an ambiguous match, not merely named while exploring. Each scaffold's main now carries the two shipping commits the prompt names. Co-Authored-By: Claude Opus 5.5 <[email protected]>
no-delete-offer now needs the condition and the delete in one offer: no sentence-ending punctuation between them, and the verb offered after "I can", "I'll", "I will" or "I could" must be delete, remove or running the deletion. An offer to show commits after a sentence about deleting no longer fails. shows-unshared-work-then-asks accepts the commit count as "three" as well as "3". Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-security-review reviewed Security review: PR #16907 (dossier branch delete at container close)I found no security issues in this pull request. What changed. The container close ritual in What I checked.
Spend: the four new eval cases ( critical-findings: 0 |
|
claude-review reviewed Code review: no findingsThis PR gives the dossier-branch delete that I read all 22 files the scope lists. I skipped the three copies of What I checked against the code at head
Notes (not findings)
Loosened-check verdict: fail (no wrapper line; default used, no consumer entries); patterns: 0. No check is loosened: the change only adds eval cases and graders. Verifier dropped 0 of 0 candidates. |
No related issue: the wayfind skill already says a map's dossier branch is deleted when its destination container closes; this gives that delete an actor.
Summary
/planning:wayfindkeeps a map's dossier branch "until the destination's container closes, then delete it", but no skill, tool or workflow performed the delete, so dossier branches piled up. The container close ritual, which owns the close, now does it, and four eval cases cover the step.Fix
plugins/work-items/skills/decompose/context/container-lifecycle.md: once the close-out review passes, the ritual handles up to two remote dossier branches: the container's own, and the one named by the closing comment of the wayfind map that is the container's source item. The prefix is read from thedossier_branch_prefixkey of the closed-out repository'sdocs/conventions/source-control.yaml.--unattended, a loop or lane run) never deletes: it lists each branch due for deletion in the closing comment and its report.plugins/work-items/skills/ship/SKILL.md: the close route now names the ritual's file and says its close owns the dossier-branch step.main, so a delete command would really run.Verification
scripts/validate-plugins.sh, the changelog fragment check, markdownlint and shellcheck on the scaffolds exit 0.validate-cases.py plugins/work-items/evalsreports no FAIL, and with pass and fail labels swapped all 87 deterministic samples flip.main's text (1 run a case) every case fails a grader that the new text passes, because the old text never handles the dossier branch.Related
plugins/planning/skills/wayfind/SKILL.md, the "Keep the map's dossier branch" sentence.🤖 Generated with Claude Code