Skip to content

Correct overstated v0.77.0 changelog entries, and a docstring they exposed - #4050

Merged
max-sixty merged 3 commits into
mainfrom
release
Sep 9, 2026
Merged

max-sixty merged 3 commits into
mainfrom
release

Conversation

@max-sixty

@max-sixty max-sixty commented Sep 9, 2026 •

Copy link
Copy Markdown
Owner

An audit of the published v0.77.0 notes against the actual diffs found eleven claims that overstated a bug's severity or did not match the code. The goal was accuracy in both directions — a bug described as worse than it was misleads as much as one described as milder.

The fork-PR entry (#3984) was the worst offender. It said a failed switch cost you the branch "and any commits only it held", which implies unrecoverable loss. Tested in scratch repos, recoverability depends on the case:

  • git refuses to delete a branch checked out in any worktree, so the deletion only lands on a branch not currently checked out anywhere
  • a branch committed on and then switched away from stays in that worktree's HEAD reflog, and git reflog recovers it
  • a branch whose creating worktree is gone is in no reflog, and only git fsck --unreachable finds it, until gc prunes

Rather than pick one, the entry now claims only what holds in every case — the ref was deleted — and names the race required to reach the deletion at all. At resolve time the chosen branch name is always free (resolve_fork_ref reuses a tracking branch, or falls to a prefixed name), so something has to claim it in the window after the forge answers.

The OpenCode version floor was wrong in a way users would act on. The entry said "below 1.14.19 no longer loads it". 1.14.19 is where the object export shape first loads, but 1.16 is the documented floor, because that is where OpenCode began filtering events per plugin instance — on 1.14.19–1.15.x the marker follows the wrong worktree. Someone on 1.15 would have read the old number and concluded they were fine.

The rest, each verified against the diff:

  • state never carried detached; a detached worktree previously reported branch_worktree_mismatch
  • plain wt config show never panicked — only --format=json and --full, plus the four wt step commands
  • wt step squash has no --branch flag
  • the APPROVALS section counts commands and links wt config approvals list; it never names them
  • the FAQ's new table lists three files, not five harnesses; the Claude and Codex plugin installs write nothing themselves
  • feat(config): install the Codex plugin, not just its marketplace #4019's break differs per harness: Codex uninstall previously left the plugin, Claude uninstall now also removes the marketplace
  • the marker fix's hooks end in || true, so the session kept going; wt exited 1 and printed a git error each turn
  • fix(switch): name the directory the --execute program runs in in its header #4043's entry linked only the issue, unlike every other entry
  • one entry attributed the empty-section cleanup to the wrong code path (it belongs to remove_section_key_in)
  • the wt step copy-ignored entry claimed a --dry-run plan "no longer reports files/bytes", wrong in both directions: an ordinary dry-run plan never reported them, and the source_path == dest_path early return still does. Clause dropped (caught by review — the first version of this description claimed a correction that had not landed)

One code comment, no behavior change

Chasing the copy-ignored claim turned up a docstring that misdescribed its own call sites. insert_empty_counts said "A --dry-run payload takes none of them" and named "the two early returns below"; there are three call sites, and the claim holds for two.

same_worktree returns before any dry-run branching and emits no dry_run key, so it is not a plan — it is a no-op exit in either mode, which is what the function's first line already describes. Taking the zeroed counts unconditionally there is correct. The docstring now scopes its claim to outcome: "planned", counts the call sites right, and says why same_worktree differs.

Worth noting the review read this asymmetry as a defect leaking counts into dry-run output. It isn't one: same_worktree was never a dry-run payload.

The published GitHub release notes for v0.77.0 have been updated to match (they are generated from the tree at the tag, so they do not pick this up automatically).

The v0.76.0 notes turned out to need nothing: the misfiled --output entry was added to CHANGELOG.md after v0.76.0 was tagged, so it never reached that release's published notes. Only the repo file was wrong, and moving the entry into 0.77.0 fixed it.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

https://claude.ai/code/session_0134XuJoGCzwoZ21XXbWujdY

An audit of the published v0.77.0 notes against the diffs found eleven
claims that overstated a bug's severity or did not match the code.

The fork-PR entry (#3984) was the worst: it said the deletion cost you
"any commits only it held", implying unrecoverable loss. Whether the
commits survive depends on the case — git refuses to delete a branch
checked out in any worktree, so a branch committed on and then switched
away from stays in that worktree's HEAD reflog, while one whose worktree
is gone is reachable only through `git fsck`. The entry now states what
is true in every case, that the ref was deleted, and names the race that
was required to reach the deletion at all.

The rest: the OpenCode floor is 1.16, not 1.14.19 (1.14.19 is where the
object shape loads, but 1.16 is where per-instance event filtering
began, and below it the marker follows the wrong worktree); `state` never
carried "detached", it reported branch_worktree_mismatch; plain
`wt config show` never panicked, only its JSON and --full paths did;
`wt step squash` has no --branch; the APPROVALS section counts commands
rather than naming them; the FAQ lists three files, not five harnesses;
the #4019 break differs per harness; the marker fix's hooks swallowed
their error with `|| true`; #4043's entry linked only the issue; and two
entries attributed behavior to the wrong code path.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_0134XuJoGCzwoZ21XXbWujdY

@worktrunk-bot worktrunk-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The eleven rewritten entries check out against the code and the commits they describe — including the fine points: is_worktree_at_expected_path returns false for a branchless worktree, so a detached row really did report branch_worktree_mismatch before #3998; SquashArgs has no --branch; render_diagnostics is reached only under --full; the forge round-trip in resolve_ref_shortcut_target runs ahead of run_pre_switch_hooks, so the collision window the #3984 entry now names is real; and the OpenCode floor matches the dev/opencode-plugin.ts header comment and the shipped claude-code.md.

One correction the description claims isn't in the diff. "Two entries attributed behavior to the wrong code path (remove_section_key_in, and the dry-run early returns)" — the remove_section_key_in half landed in the #3994 entry, but the wt step copy-ignored entry is unchanged and still reads "a --dry-run plan no longer reports files/bytes". That claim doesn't hold in either direction, which is the same failure the rest of this PR is fixing:

  • An ordinary --dry-run plan never reported them. Before #4025 the dry-run branch in step_copy_ignored built its payload from outcome/dry_run/from/to/entries and nothing else, exactly as it does now — "no longer" describes a change that didn't happen there.
  • The source_path == dest_path early return still reports them under --dry-run. It calls insert_empty_counts unconditionally, while the --require-include and no-matching-files returns gate it on if !dry_run. So wt step copy-ignored --dry-run --from X --to X --format=json emits zeroed files/bytes/reflinked/written today.

Only those two gated early returns changed, which is thin enough that the entry reads more accurately without the clause — that's the inline suggestion.

The second bullet may be the code's problem rather than the entry's. insert_empty_counts's own docstring says "A --dry-run payload takes none of them" and counts "the two early returns below", but there are three callers and the same-worktree one isn't gated. If that asymmetry is unintended, gating it on !dry_run like its two siblings is a one-line change and would make the JSON shape uniform across every dry-run exit. Happy to push that as a separate commit if you want it — it's outside this diff, so I've left it alone.

Comment thread CHANGELOG.md Resolved
The entry said a `--dry-run` plan "no longer reports `files`/`bytes`",
which is wrong in both directions: an ordinary dry-run plan never
reported them, and the `source_path == dest_path` early return still
does, because it calls `insert_empty_counts` ungated where its two
siblings check `!dry_run` first.

Caught by the PR review. The ungated early return is a real defect —
`insert_empty_counts`'s own docstring says a dry-run payload takes none
of these counts — but it predates this change and is left alone here.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_0134XuJoGCzwoZ21XXbWujdY
The docstring said "A `--dry-run` payload takes none of them" and
described "the two early returns below". There are three call sites, and
the claim holds only for two of them.

`same_worktree` returns before any dry-run branching and emits no
`dry_run` key, so it is not a plan — it is a no-op exit in either mode,
which is what the function's first line already describes. Taking the
zeroed counts unconditionally there is correct; the two `planned`
returns gate on `!dry_run` because a plan has nothing to count.

The docstring now scopes its claim to `outcome: "planned"`, counts the
call sites correctly, and says why `same_worktree` differs. No behavior
change.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_0134XuJoGCzwoZ21XXbWujdY
@max-sixty max-sixty changed the title Correct overstated and inaccurate v0.77.0 changelog entries Correct overstated v0.77.0 changelog entries, and a docstring they exposed Sep 9, 2026
@max-sixty
max-sixty merged commit 89373dd into main Sep 9, 2026
40 checks passed
@max-sixty
max-sixty deleted the release branch September 9, 2026 01:34
max-sixty added a commit that referenced this pull request Sep 9, 2026
…n run (#4051)

The v0.77.0 changelog verification pass reported 16 accurate, 6 needing
revision, 0 incorrect. Eleven factual errors reached users anyway and
were corrected in #4050. This changes the verification section so the
pass covers the text that ships.

Two mechanisms produced the eleven, both visible in the pass's own
report.

**Five of the errors were sentences the verifier itself wrote.** The
template asks it to "quote a shorter rewrite", and the section's gate
read "do not finalize until the subagent confirms every entry" — a gate
you pass once. So the rewrites were applied and shipped with nothing
having read them. The gate is now a clean run over `CHANGELOG.md` as it
stands, and the text says why: a rewrite the verifier suggests is a new
draft with no more evidence behind it than one you wrote yourself.

**Four were non-headline clauses inside entries stamped accurate.** The
FAQ entry is the clearest: the verifier's evidence line says "three
paths" and its verdict says accurate, under an entry claiming five
agents. The template now verifies claim by claim rather than entry by
entry, and its report format asks for the source read per claim, so a
contradiction like that one lands on the page. The others were claims
the diff cannot settle — a prior behavior, an untouched file, rendered
output, a documented version floor — against a template whose one strong
instruction ("read the actual diff") installed the diff as the sole
source.

**The template also said "[paste drafted entries]" while the gate below
it said to re-run over `CHANGELOG.md` as it stands** — the same drift
channel one layer down, and how the failing pass came to verify a draft
the working tree had already moved past. It now names the extraction
one-liner the section already carries, so the rule is a mechanism rather
than an instruction, and the gate drops the clause the template
enforces. Found in review.

The six-step list that duplicated the prompt template below it is gone,
so the section's line count is flat.

<details>
<summary>Measurement: A/B over the shipped 29-entry section, two runs
per arm</summary>

Each arm ran the verification template as a subagent prompt over the
whole v0.77.0 section, with the earlier per-group notes offered as a map
— the load the failing pass had. Handed only the four scenario entries,
every wording found everything, so that design measured nothing;
attention spread across 29 entries is the variable.

| scenario | old | first draft | shipped |
|---|---|---|---|
| before-state claim, diff looks confirming | 0/2 | 0/2 | **1/2** |
| falsifying fact in an added comment | 1/2 | 2/2 | 1/2 |
| non-headline clause, settled in the diff | 0/2 | **1/2** | **2/2** |
| accurate entry stays clean (guardrail) | 2/2 | 2/2 | 1/2, one soft
scope flag |

The first draft of step 2 failed the before-state case in both runs, so
it was sharpened and retested rather than shipped on the strength of
reading well. The cases are kept in `evals/README.md`.

No case has its truthmaker wholly outside the commit, and that is hard
to arrange here: this repo's commits routinely restate the surrounding
facts in added comments and doc lines, so the falsifying text usually
arrives in the diff. The rows score how much of the diff the verifier
reads, not whether it goes looking beyond one. The second row was
labelled "truthmaker outside the diff" until review pointed out that
`29a611b7c` states the fact in a comment it adds beside the fix.

The arms were run with the section pasted into the prompt, so the
measurement covers the verification procedure rather than how the
entries arrive. Now that the template resolves its own input,
`evals/README.md` runs the arm in a checkout at `v0.77.0`, where the top
section is that same 29 entries — so the template runs unedited. Review
caught that the first version of this change left the harness scoring
`## Unreleased` and reporting a clean pass.

The clean-run gate is not in that table. It changes the loop rather than
the subagent prompt, so two arms of the prompt cannot separate it; it is
argued structurally.

</details>

> _This was written by Claude Code on behalf of max-sixty_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Sep 9, 2026
)

#4051 fixed the changelog-verification section by adding procedure. A
procedure gets run literally and thinly, so this trades some of it back
for why the pass matters, stated where each reader can see it.

**The subagent never reads SKILL.md.** Stakes stated there reach the
agent that spawns the verifier and nothing else, so the prompt template
gets its own opener: the entries publish with the tag, and by the time
anyone corrects a wrong line readers have acted on it — and reading an
entry and finding it plausible is not a check, because it was written
from the same commits the verifier is about to read.

**SKILL.md's line now says what a late correction costs.** It replaces
"This is non-negotiable — changelog mistakes are a recurring problem".
The workflow builds the release body with `--notes-file` at tag time
(`.github/workflows/release.yaml:381`), so a later `CHANGELOG.md` edit
isn't picked up: correcting a published entry takes a follow-up PR *and*
a hand-edit of the release page.

**Cut in exchange:** a sentence from the clean-run gate. Net +5 lines.

An earlier revision of this branch also cut step 2's guidance for claims
whose source is outside the commit. The review caught that, and it's
back — reworded, because the sentence I'd removed pointed at "the
rendered output and the docs" and the docs would not have settled the
OpenCode version floor that shipped wrong in v0.77.0. It now names the
upstream project's own releases. `evals/README.md` states that none of
its cases has a truthmaker outside the commit, so the suite could not
have scored that cut in either direction.

<details>
<summary>Eval runs</summary>

Scored against `.claude/skills/release/evals/` — four entries from the
v0.77.0 section, three of them wrong — run in a `v0.77.0` checkout with
the `Skill` tool withheld, per that README.

| | before-state | hooks `\|\| true` | five agents vs three rows |
guardrail |
|---|---|---|---|---|
| #4051's wording | 2/2 | 2/2 | 2/2 | held |
| first draft here | 1/2 | 2/2 | 2/2 | held |
| this branch | 2/3 | 3/3 | 3/3 | held |

The first draft had also dropped four words from step 2, "and confirming
the old behavior there". Its failing run read the *new* file, found
`json_output.rs` dropping `WorktreeState::Detached`, concluded "schema 1
only", and wrote a suggested fix that still claimed `state` no longer
reports `detached` — reproducing the original error while flagging the
entry. That clause is restored, and the one miss in the three runs after
it failed the same way.

So the before-state case is 2/2 for #4051's wording and 2/3 for this
one, which this design cannot separate: seven runs is far too few, and
the case was already the weakest of the three when #4051 shipped it (0/2
before that PR's own fix, 1/2 after). What the eval supports is that
relaxing the mechanics did not break the two solid cases, and that the
four-word clause is load-bearing enough to keep. The argument for the
stakes paragraphs is structural, not measured.

The guardrail entry was never called inaccurate in any of the seven
runs. The runs predate the stakes correction below, which changes no
instruction the cases exercise.

</details>

<details>
<summary>The stakes claim this PR opened with was wrong</summary>

The first version of this change claimed a post-tag correction reaches
`CHANGELOG.md` and never the published release body, citing v0.77.0 as
evidence. The review disputed it and was right: the published v0.77.0
body carries all 29 corrected entries, hand-edited after #4050. Diffed
both ways, zero differences.

I had grepped the published body for "Claude Code, Codex, OpenCode",
matched the Pi entry's legitimate "markers … like Claude Code, Codex,
OpenCode, and Gemini", and read it as the FAQ entry's uncorrected error
— a plausible-looking string taken for the source, which is the failure
this PR is about.

Fixed in 4800a75; only the mechanism that actually holds is claimed
now.

</details>

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.

2 participants