Skip to content

Rewrite wrap-up around one test: run what is quick and undoable, ask once about the rest - #601

Merged
ikuwow merged 9 commits into
mainfrom
rewrite-wrap-up-on-one-axis
Nov 23, 2026
Merged

ikuwow merged 9 commits into
mainfrom
rewrite-wrap-up-on-one-axis

Conversation

@ikuwow

@ikuwow ikuwow commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Purpose

wrap-up cost the user turns and reading at the point they wanted the session over. #595 records four confirmation rounds in one wrap-up, and #594 records proposals for every unrecorded finding, one of them routed to a repository whose owner could not act on it. This PR rewrites the skill around one test in place of another rule per case: an item that is quick and can be undone runs without a question, and everything else goes on one list that the user answers once.

Key changes

  • Items are sorted by what they cost the user, where the previous text sorted by operation type and made every write to a repository or to GitHub a proposal except closing a settled issue the user owns
    • Three kinds of write are asked about even when they are quick and can be undone, since an undo does not return what each one costs
      • A new issue or PR costs the user the triage it asks for
      • A write to what the user does not own takes the owner's say over their own issue, PR, or branch
      • A write to a repository visible to more people than one the session worked in puts text in front of readers who have it from the moment it is posted
    • A question about what is left gets the inventory only, and the rest runs once the user says the session or the task is over, since Step 2 commits, pushes, and switches branches without asking
  • The question is asked once, over one-line items, and the reply is acted on without a second round, following the three directions in Wrap-up asked for confirmation four times, re-asking after an urging reply and before an issue the user had requested #595: read an urging reply as "run all", run an operation the user names without a second approval round, and cap the selection at one ask
    • Draft text is shown only for a write to a more widely visible repository, and that write is posted only as shown
    • pr-issue-writing asks for its visibility confirmation before sending, and counts the choice to send a draft shown in chat beside the target and its visibility as that confirmation, so a selected item is not confirmed a second time
    • Accepted risk: when the target repository is no more widely visible than the session's, a new issue and a write to a target the user does not own are posted before the user reads their text, and a go-ahead without numbers runs both
      • The bound is that the list names the operation and target of each item before it runs
  • A finding is recorded only when it changes what the reader of the target issue or PR decides or does next, and a problem only a vendor or the OS can fix gets no repository record
  • The report describes each serious agent failure in one or two lines, saying what the agent did and what it cost the user, with no cause, no proposed change, and no record
    • Whether to act on it, and whether a change belongs in a global rule, a project rule, a skill, or a hook, is settled with the user in the conversation after the report
    • The previous text drafted an issue for each one and chose its repository by where the fix would land, which required deciding the fix first
    • Accepted risk: a failure the user does not take up leaves no record
    • Accepted risk: the two-condition test (the failure cost the user a correction, an error or a wrong assertion, or an unneeded confirmation, and the agent did not correct it on its own) admits more failures than the three-condition test Remove the retro skills and raise only severe failures from wrap-up #482 introduced, bounded by each one costing one or two lines of the report

Where each previous instruction went

The rewrite deletes instructions, so this section maps each group of the previous text to its place in the new one.

Eight groups keep their instruction and their step: the inventory sources and the attribution of uncommitted changes and stash entries (Step 1); git home then git cleanup with the skip on a dirty tree and the fallback on a failed pull, stopping background work and PR watches whose result was reported, closing a settled issue the user owns with its reason flags, writing scratchpad findings into the issue or PR, and staging a commit by path (Step 2); and ending at the last named operation with the stop rule (Step 4).

The table lists the groups that moved, changed, or were removed. A name in backticks such as slow is a tag Step 3 puts on a listed item to say why it is asked about.

Previous instruction In the rewrite
Trigger: the user asks what is left before quitting Kept as a trigger, answered from Step 1's inventory only
Count the items already safe to leave in the report Removed
Routine cleanup runs as it is sorted, and a doubtful local cleanup runs Step 2's opening, generalized to every quick and undoable item
git cleanup decides each branch on its own content, so the run needs no per-branch gate Step 2: the cleanup runs whichever session created a branch or worktree
git home fails inside a linked worktree Removed
What a stale default branch leaves behind, and why git cleanup still runs after a failed pull Removed
The ownership test for closing a settled issue Step 2's definitions
An issue with an unsettled item stays open, and the report names that item Step 2's closing condition keeps it open; the report line is removed
Closing an issue someone else owns is a proposal Step 3, tag others
Every other write is a proposal, as are removals of content held nowhere else and operations on another session's state Step 2 for quick and undoable writes to what the user owns; Step 3's tags for the rest
A proposal that holds local state keeps it, since git cleanup deletes nothing on a dirty tree and spares a branch whose content the default branch lacks Removed as a statement; Step 2 keeps the skip on a dirty tree
A proposal names its operation and target and carries its full draft Step 3's one-line item, with drafts as in Key changes
A proposal names the proposal it depends on The naming is removed; Step 4 keeps the stop for a selected item that needs a stopped one
A fact about a PR's change goes in its body or in a comment Step 2: an untrue body statement is corrected; other findings are comments under the record test
Unfinished work goes in a comment on the tracking issue, or a new issue Step 2 when quick; otherwise tag slow, with a one-line comment when not selected; a new issue is tag new
Decisions and investigation results that no file, issue, or PR holds are inventoried, and go to the tracking issue or a new issue Step 1 inventories findings that pass the record test; Step 2 comments on the tracking issue or PR; with none, the text names no destination, and creating an issue is tag new
A defect in the session's own merged change is proposed as a fix, with an issue as its alternative Step 3 tag slow, without the paired alternative
Serious failure: three conditions, description with fix directions, issue routed by where the directions land Step 4's report, as in Key changes
A failure the agent corrected on its own is not serious Step 4's report
A defect a failure left in a deliverable still gets its fix proposal Step 4's report, which points to Step 2 and Step 3
A failure matching a retrospective issue, open or closed, is serious at two of the three conditions Removed
A matching open retrospective issue takes a comment in place of a new issue Removed
Text for the public repository leaves out private names, numbers, code, and rule text Removed, since the skill writes no failure record
Draft against pr-issue-writing and technical-writing before the selection Steps 2 and 4 write through the same two skills; only a wider item is drafted before the selection
A preflight question becomes a choice in the proposal Step 2: the write moves to the list. Step 3: a wider item cannot be selected. Step 4: the item stops
Uncommitted changes on the default branch get a branch-and-commit proposal Step 3 tag slow
Selection: numbered proposals with drafts and a plain-text question in the same message Step 3, over one-line items
Ask again on an ambiguous reply, a changed draft, or a conversation about a fix Step 3 reads the reply once, as in Key changes
Run as drafted Step 4 writes the text after the selection, except a wider draft
Report: verdict, cleanup that ran, where each remaining item lives Step 4, which adds the URL of anything posted or edited

Verification

🤖 Generated with Claude Code

https://claude.ai/code/session_01YZoyddcGDNa7VtsdKYxCQA

ikuwow and others added 4 commits November 23, 2026 18:56
… asked once

wrap-up sorted items by operation type, so every write to a repository or to GitHub became a proposal shown with its full draft, and the selection rules asked again after an ambiguous or amending reply. The rewrite sorts by what an item costs the user. An item that is quick and can be undone runs without a question and appears in the report. Everything else goes on one list of one-line items, which the user answers once, and text is written only for the items selected.

A finding is recorded only when it changes what the reader of the target issue or PR decides. An agent failure becomes one line on the list, and its record states what happened in ikuwow/dotfiles without a cause or a fix, which are judged when the issue is worked.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZoyddcGDNa7VtsdKYxCQA
…ites through pr-issue-writing

A new issue, a write to something another person owns, and a write to a more widely visible repository go on the list even when they are quick and can be undone. Promised work runs unasked only when it passes the quick test. The failure test covers a failure the user never noticed and a confirmation the task did not need.

The rule that a selection from a list naming the target and its visibility is the visibility confirmation moves into pr-issue-writing, which holds the confirmation rule.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZoyddcGDNa7VtsdKYxCQA
A push to the session feature branch and a comment on a PR the user authored stay unasked in a repository an organization owns.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZoyddcGDNa7VtsdKYxCQA
@ikuwow
ikuwow marked this pull request as ready for review November 23, 2026 11:32
ikuwow and others added 5 commits November 23, 2026 20:36
…cted by number

A write to a repository visible to more people than the one the session
worked in reaches its readers the moment it is posted, so its line on
the list now carries the full draft, and a go-ahead without numbers
leaves it out, on a one-item list too. A wider item whose draft was not
shown is not posted.

pr-issue-writing asks for its visibility confirmation before sending,
and counts the choice to send a draft shown in chat beside the target
and its visibility as that confirmation.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZoyddcGDNa7VtsdKYxCQA
- A question about what is left gets the inventory only, since Step 2
  commits, pushes, and switches branches without asking, and a question
  does not say the session is over.
- The branch cleanup runs in Step 2 whichever session created a branch,
  so the others tag does not pull it onto the list.
- A wider item whose draft gave way to a pr-issue-writing question
  cannot be selected, so a reply cannot post text that was never shown.

Uncommitted changes on the default branch are slow because they need a
PR of their own, which the quick test excludes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZoyddcGDNa7VtsdKYxCQA
…cleanup reason

A reply that changes the text of a wider item produced text the user
had not read, which pr-issue-writing would stop on. The item is not
posted, and the report carries the changed draft.

git cleanup also removes detached worktrees, so its reason for running
without regard to the creating session is that nothing it removes holds
content a remaining ref lacks.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZoyddcGDNa7VtsdKYxCQA
A reply that named a new wider write had two answers: Step 3 ran it as
stated, and Step 4 withheld a write whose draft was not shown. Step 3
now defers to Step 4, which posts a wider write only as its draft was
shown and puts the draft, or the question that stopped it, in the
report.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZoyddcGDNa7VtsdKYxCQA
…it to the conversation

A record fixed to one repository put failures specific to another
project in the wrong place, and choosing the repository per failure
needs the fix decided first. The report now describes each serious
failure in one or two lines, with no cause, no proposed change, and no
record, so whether to act on it and where a change belongs are settled
with the user afterwards.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YZoyddcGDNa7VtsdKYxCQA
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.

1 participant