Repository navigation
Description
Summary
origin has 101 non-main branches, and every one of them predates the 4.41 wave. Their last commits run from 2026-04-06 to 2026-06-21; all but three (the 0.4.31.1-era chore/0.4.31.1-slack-fixes, fix/slack-138-…, fix/slack-95-…, all squash-merged) predate the 4.31 release. Pruning them before the wave makes the new sync/4.41-* branches easy to find. One-off repo hygiene: no code, no PR (except an optional docs note).
Upstream changes
None. This task is housekeeping for this repository only.
Current Python behavior
Snapshot from 2026-09-29, taken after git fetch --prune origin:
git branch -rlists 102 branches includingmain(excludingorigin/HEAD). By prefix:claude/*40,fix/*15,feat/*8,test/*6,wt30/*4,release/*4,integ/*4, and 20 others.git branch -r --merged origin/mainlists 34 fully merged branches:bump-a3,cleanup/remove-old-duplicate-tests,coverage-and-docs,docs/comprehensive-documentation,fix-action-shas,fix-lazy-crypto,fix-lint,fix-permissions,fix/acquire-lock-toctou-race,fix/all-remaining-gaps,fix/fixture-xfails,fix/launch-must-fix-items,fix/markdown-streaming-audit-fixes,fix/merge-conflict-and-release,fix/mock-open-modal,fix/port-bugs-batch,fix/pr-review-comments,fix/slack-client-cache-bugs,fix/slack-surface-upload-confirmation,fix/systematic-scan-port-bugs,fixtures-and-postgres-fix,process/test-fidelity-enforcement,release-a10,release-a11,release-a5,release-a6,release-a8,security-fixes,ship,test/100pct-fidelity,test/core-sdk-parity,test/faithful-translations,test/port-ts-coverage-tests,test/slack-client-cache.git branch -r --no-merged origin/mainlists 67 branches. 57 of them have a MERGED PR, meaning they were squash-merged so their commits are not ancestors ofmain. 2 have only CLOSED PRs and 8 have no PR (table below).- Repo setting
delete_branch_on_mergeisfalse(gh api repos/Chinchill-AI/chat-sdk-python --jq .delete_branch_on_merge), so merged heads pile up.mainis branch-protected.
Unmerged branches without a merged PR. Each needs a maintainer decision.
| Branch | Last commit | Ahead of main | PR |
|---|---|---|---|
claude/type-cleanup-0.4.26.1 |
2026-04-17 | 19 | no PR |
claude/improve-sync-process-docs |
2026-05-21 | 1 | no PR |
claude/markdown-parser-swap-spike |
2026-05-28 | 6 | #100 CLOSED |
claude/release-0.4.27.1 |
2026-05-29 | 2 | no PR |
release/0.4.27.1 |
2026-05-29 | 2 | #120 CLOSED |
release/0.4.27.2 |
2026-05-29 | 3 | no PR |
wt30/fixes |
2026-06-13 | 16 | no PR |
wt30/slack |
2026-06-13 | 15 | no PR |
wt30/telegram |
2026-06-13 | 12 | no PR |
wt30/twilio |
2026-06-13 | 13 | no PR |
Notes:
release/0.4.27.2holds an unpublished backport. There is nov0.4.27.2tag.- The
wt30/*branches were integrated viainteg/wt30-*(feat(slack): primitives subpaths (4.30 — vercel/chat#538,547,548,555,559) #139–feat(twilio): new SMS/MMS + voice adapter (4.30 — vercel/chat#558) #142, all MERGED). claude/type-cleanup-0.4.26.1predatesv0.4.26.1.
Unmerged by ancestry but PR MERGED (squash). 57 branches, low risk.
| Branch | Last commit | PR |
|---|---|---|
fix/comprehensive-quality-audit |
2026-04-09 | #36 |
feat/contextvar-resolver-and-docs |
2026-04-10 | #38 |
release/v0.4.25 |
2026-04-10 | #41 |
sync/upstream-v4.25.0 |
2026-04-10 | #40 |
feat/ioredis-prefix-71 |
2026-04-24 | #73 |
feat/options-load-50 |
2026-04-24 | #66 |
feat/plan-tests-55 |
2026-04-24 | #75 |
feat/rehydrate-attachment-52 |
2026-04-24 | #67 |
feat/streaming-tests-56 |
2026-04-24 | #74 |
feat/teams-cert-58 |
2026-04-24 | #65 |
get-participants-54 |
2026-04-24 | #64 |
release/0.4.26.2 |
2026-04-24 | #77 |
test/async-sleep-sweep |
2026-04-24 | #76 |
claude/review-pr-1003-placement-pmA7S |
2026-05-07 | #82 |
claude/port-external-select-option-groups-J7S7H |
2026-05-09 | #84 |
claude/wizardly-heisenberg-VLInV |
2026-05-23 | #99 |
claude/port-slack-socket-mode-J7S7H |
2026-05-27 | #86 |
claude/port-slack-team-id-teams-dm-graph-J7S7H |
2026-05-27 | #85 |
claude/port-teams-native-dm-streaming-J7S7H |
2026-05-27 | #88 |
claude/sync-upstream-release-J7S7H |
2026-05-27 | #83 |
claude/accept-dict-streamchunks-slack-github-gchat |
2026-05-28 | #105 |
claude/parser-chat-completeness |
2026-05-28 | #101 |
claude/port-adapter-bugfix-sweep-J7S7H |
2026-05-28 | #89 |
claude/port-adapter-init-logs-and-not-found-context |
2026-05-28 | #104 |
claude/port-chat-getuser-J7S7H |
2026-05-28 | #90 |
claude/port-queue-debounce-concurrency |
2026-05-28 | #114 |
claude/port-slack-dynamic-bot-token-J7S7H |
2026-05-28 | #87 |
claude/release-0.4.27 |
2026-05-28 | #106 |
claude/wizardly-euler-gDArT |
2026-05-28 | #103 |
claude/bump-python-floor-3.12 |
2026-05-29 | #111 |
claude/fix-contributing-python-floor |
2026-05-29 | #115 |
claude/flip-slack-verifier-precedence |
2026-05-29 | #113 |
claude/nifty-fermat-tnfiX |
2026-05-29 | #107 |
claude/port-chat-ai-module-move |
2026-05-29 | #116 |
claude/port-messenger-adapter-scaffolding |
2026-05-29 | #118 |
claude/sync-upstream-4.29 |
2026-05-29 | #108 |
claude/port-chat-ai-tools |
2026-05-30 | #122 |
claude/port-dm-routing-docs |
2026-05-30 | #121 |
claude/port-gchat-fail-closed-verifier |
2026-05-30 | #130 |
claude/port-github-eager-bot-id |
2026-05-30 | #128 |
claude/port-linear-token-encryption |
2026-05-30 | #129 |
claude/port-messenger-adapter |
2026-05-30 | #124 |
claude/port-slack-socket-token-timing |
2026-05-30 | #126 |
claude/port-streaming-doc-fixups |
2026-05-30 | #123 |
claude/port-telegram-attachments |
2026-05-30 | #119 |
claude/port-slack-web-client |
2026-06-01 | #127 |
claude/upbeat-goodall-4djz9p |
2026-06-14 | #134 |
feat/teams-file-attachments |
2026-06-14 | #125 |
claude/port-message-subject |
2026-06-17 | #131 |
claude/pr133-dm-threading-fix |
2026-06-17 | #137 |
integ/wt30-fixes |
2026-06-18 | #141 |
integ/wt30-slack |
2026-06-18 | #139 |
integ/wt30-telegram |
2026-06-18 | #140 |
integ/wt30-twilio |
2026-06-18 | #142 |
chore/0.4.31.1-slack-fixes |
2026-06-21 | #177 |
fix/slack-138-empty-dm-thread-ts-fetch |
2026-06-21 | #175 |
fix/slack-95-grid-startstream-team-id |
2026-06-21 | #176 |
Scope
- Re-run the inventory:
git fetch --prune origin, then--merged/--no-merged, thengh pr list --state all --limit 500 --json number,headRefName,state. Post the refreshed tables as a comment here if they changed. - Delete the fully merged branches:
git push origin --delete <branch>for each branch ingit branch -r --merged origin/main, excludingmain. - Get a maintainer ack in this issue for the unmerged set. The proposed default is to delete the 57 squash-merged branches and the 2 CLOSED-PR branches, and to delete the 8 no-PR branches only after the maintainer has looked at
git log origin/main..origin/<b>for each. - After the ack, delete the approved set.
- Ask the maintainer to enable "Automatically delete head branches" (admin action; do not change settings from automation).
- Optional: add one line to
docs/UPSTREAM_SYNC.md§ "How to Sync an Upstream Release" saying that wave branches usesync/<version>-<id>and are deleted on merge.
Out of scope
- Tags. Never delete or move any tag (
v*, or anything referenced bylint.yml). - Local branches and worktrees on developer machines.
- Branches created for the 4.41 wave (
sync/4.41-*). - Pin and fidelity tooling, which is [4.41/P0] Fidelity tooling for the 4.41 wave: single pin constant, SHA pin, it.each expansion, map new core test files #185.
Porting notes
- Irreversible for branches with no other ref: before deleting a no-PR or CLOSED-PR branch, record its head SHA in a comment here (restore:
git push origin <sha>:refs/heads/<name>). - Delete one branch at a time or from a reviewed list; no pattern deletes.
mainmust never appear in a delete list.
Tests
None. Verify with git ls-remote --heads origin | wc -l before and after, and include both counts in the closing comment.
Acceptance criteria
- All
--mergedbranches exceptmainare deleted. - The unmerged set is deleted per the maintainer ack, and every deleted no-PR or CLOSED-PR branch has its SHA recorded here.
- No tags were touched (
git ls-remote --tags originis the same before and after). - If the docs note is added,
docs/UPSTREAM_SYNC.mdis updated and the full validation command from CLAUDE.md passes. No CHANGELOG entry is needed (no release impact), and there is no consumer-visible behavior change.
Dependencies
None. This can start immediately. Do it before or alongside #185.
Verify first
- Re-check PR states. A branch may have gained or lost a PR since this 2026-09-29 snapshot.
Metadata
- Effort: S (no code).
- Consumer impact: none. Downstream consumers pin by tag or SHA, not by these branches. Before deleting, confirm that no consumer pins one of these branch names.
- Suggested branch: n/a (
sync/4.41-hk1only if the optional docs note is added).
Part of #184.
Activity
patrick-chinchill commentedon Oct 1, 2026
Pruning stale remote branches (2026-10-01)
All 102 non-
mainbranches onoriginare being deleted. None has an open PR: 91 have merged PRs, 2 have only closed PRs, and 9 never had a PR, includingwip/4.41-sl4-full, a 4.41-wave WIP snapshot that #286/#307 superseded.Recovery: any branch can be restored from the head SHA below:
The maintainer also has a local
git bundleof every head:~/chat-sdk-python-remote-branches-2026-10-01.bundle, 3.3 MB, verified.The repo setting
delete_branch_on_mergeis stillfalse. I didn't change it; turning it on would stop merged heads piling up again.Manifest (102 branches)
bump-a36c2f65bda8114d0db39917c0eed1f376a7523424chore/0.4.31.1-slack-fixesddaf94d020f1405ddee93cc366430271e626b5e0claude/accept-dict-streamchunks-slack-github-gchated1deaf0ab0d315fcaa8b763c6e1ddf86c4fcbecclaude/bump-python-floor-3.1266128014fe3effb120262e516fd259ebbffd0648claude/fix-contributing-python-floora9ee5f3bb196ac019c72ccbb416993254beb9eb1claude/flip-slack-verifier-precedencee80faeeec559258fbc7b4103c1d1de4e89b4a0daclaude/improve-sync-process-docsa7587abf927d732d474506b0460697cae5961a8eclaude/markdown-parser-swap-spikee317741915fe00ca84d05bb920516ffa388f08d4claude/nifty-fermat-tnfiXf5c6b6bfe44344b5fd413cdf7cb00228f099ee66claude/parser-chat-completeness4fda9b438a6acc5c9722a65d005a7182f3f23c12claude/port-adapter-bugfix-sweep-J7S7H2d1f4cd56309626c8d987e16f6c4b926cf8d69b2claude/port-adapter-init-logs-and-not-found-contextfcdfbea2eee332d50a68e8457c3734019e13a2d3claude/port-chat-ai-module-movebf66edb6da99443a83f00190ada210883dc9391dclaude/port-chat-ai-toolsfb8c50ac785cc93f49a2539ce3d7641f01359151claude/port-chat-getuser-J7S7H64e089683cd7fca1603f4232dba56d13042218abclaude/port-dm-routing-docs0054978689ae7b996f7f9640c4c65558d456aac9claude/port-external-select-option-groups-J7S7H99a52a4c3a8fe94f15a5b2dbffd2df41bedadb94claude/port-gchat-fail-closed-verifier89cedd2c8e20c6f4f9d48ea6cfaa7d404a56a8e3claude/port-github-eager-bot-idc8919355768cb9890a05844e0f34077d23774823claude/port-linear-token-encryption2be4fdbe2ecca768d127c78ad83a85e3fde56700claude/port-message-subjectac956e130ab349ac032af09f21a8ea3cc990cc67claude/port-messenger-adapter14052713c1ce4bfe133210002aa01b674a7da148claude/port-messenger-adapter-scaffolding3ad373a14b45a41dad7096f3cff2f790e4988fe2claude/port-queue-debounce-concurrencyebcb877f57883a4d3ba9456161597a293f022d85claude/port-slack-dynamic-bot-token-J7S7H49a7752ba9929d75755105bb3a1335397cc39c53claude/port-slack-socket-mode-J7S7H1f3aa3c797acd9c8de6ad5e5024ae8a0d5eab7cbclaude/port-slack-socket-token-timing87f1ced2275c0a0a09f5749a3b919c8a2a1303c0claude/port-slack-team-id-teams-dm-graph-J7S7Hab15302bf7e61ea75182f06f75247591a1e6c8f3claude/port-slack-web-clienteff1a007ca5b8abaf5fe9ab90a82fc39437eb82aclaude/port-streaming-doc-fixupsf6d05dc3cea063324f3482379755546e931756e9claude/port-teams-native-dm-streaming-J7S7Ha6b9c7856a65ffa71bf00976b96ab61dd6484867claude/port-telegram-attachmentsc5502e79380259f902e5dea2c64bfbfd72db872aclaude/pr133-dm-threading-fixc94e87c8bfec521d8684cfe912879c2452e6e340claude/release-0.4.27fee58ac6af63dcab54974c6ab1a34a20b35f0943claude/release-0.4.27.1e45069f686206158f79e56d90d43229b3e028301claude/review-pr-1003-placement-pmA7S84cfb3879cd3b86bbc7e0ddf62b3cc06b0a3f05eclaude/sync-upstream-4.295c2f7c6758102d4a94deba6905b969d1761dfc02claude/sync-upstream-release-J7S7H36a3f8496b4ec1f62279d921f2ded5e7f6425f13claude/type-cleanup-0.4.26.1bd9b3a10c096ecaac5ef54ab52499041aa4a7a0eclaude/upbeat-goodall-4djz9p44c44fd57d8e231cdf2d0b60160e37b8d835f57cclaude/wizardly-euler-gDArT7ab59a97d75d3ff9381ab2bb31ef74beed6b7f08claude/wizardly-heisenberg-VLInV0bb035324174b215f3a2a9853444ed4dc741fe86cleanup/remove-old-duplicate-testse2cae2e03f0435fdd26cedf8cbecabf438a79ae4coverage-and-docs94cbf9c26aea90fc154b053b88990fa56a6f4343docs/comprehensive-documentationa94deec2f5dea309ff2dec55fdd273514983d890feat/contextvar-resolver-and-docsd26bb0d103608ea9002a3a40e076aaa90b3b725dfeat/ioredis-prefix-71ac591514ec3811cda4871c2079063661dfe5f5edfeat/options-load-501776b7d50ad860205255f1e5f1bc285a6e003a0efeat/plan-tests-55b3fe67035f25fdcdf614a2efe381bb42049661cbfeat/rehydrate-attachment-527224871dcfe63a383418629c2e4fac0385178d1ffeat/streaming-tests-5605095e63070e6817c7d28ee494cfc04875ee051efeat/teams-cert-5853b29482e08afc66a4d3b2ddd5e3ca94d68452a6feat/teams-file-attachmentse3e2bcceca49fd51f1b14cb137c9bab57d3f898cfix-action-shase61b33dd5aea6bcc065521769a84ac2a2d650390fix-lazy-crypto420e7989eff985099b7ae32b67c6ffba5f7581e6fix-lint31057e7421b89306ed87a1f3cf984f7c0c18434dfix-permissions5100ece9b81ff7b10c253acd0acffd27991a46bbfix/acquire-lock-toctou-race232608958354c2c42ea490fae398c60b4815ab63fix/all-remaining-gaps2982290d5a562a38774459428712c20a38c9c3c3fix/comprehensive-quality-audit20614f8639751a32f34d2dc8ee24fecd3fffc3ecfix/fixture-xfails2b5c26b20665dcb10238fc6f9c9a6c0170e1d2fefix/launch-must-fix-items68e05957fbf59bf388b5843cd3c2ce2827d8396cfix/markdown-streaming-audit-fixesab35767141f8ce0b4eb4c0333dde07df54728e0bfix/merge-conflict-and-release885587501c2d78cd2f751c2ded5dcc9161806ffffix/mock-open-modald4d9ce963747d4117bc2f41644bb9a954beee55efix/port-bugs-batch0788d1efd53aebc2930c8d2c4ebaf03c425635dffix/pr-review-comments9519a81e08b1dc2ea2d00ad436bbef948198ac6dfix/slack-138-empty-dm-thread-ts-fetch9d8791d7f76856f8455ae48967d7d30432a9eb4efix/slack-95-grid-startstream-team-idb82620441099ff190e2425384a76e2c12893ab1efix/slack-client-cache-bugse5f49c355217f45bc06e3ff2349bc0473c51030ffix/slack-surface-upload-confirmation823dbd403ac4df1b45a701ab03c9bdcd91032334fix/systematic-scan-port-bugs938291006c0e0045914eb64610f3d1858b3490e1fixtures-and-postgres-fix4fac8f60a882b53bf4a4ea89166d7ba58a0626e9get-participants-541523d275a195581bc517d91e561919eaf0ee1e29integ/wt30-fixesc113931a10e5627cfe2b5230630570daabb99fbainteg/wt30-slack03bbea29eae36a22a94aa40508de08a71368451einteg/wt30-telegramd797f2c5328978f9f3524faa1e3a1640774225fbinteg/wt30-twilio341c7904a6a50e1f4c71290213f04de73af021f8process/test-fidelity-enforcement925adea1d065311c1dc73c78a7197b4eb1fd64a2release-a10c83e5c41be3b9e96ade08ba960989480ab00e38erelease-a115f009647a7ef3a02d9509cb2635745a8a43e1557release-a5ea60898e77e0b03e67dda05499d7918ca187a8b0release-a63101ac4cd762b5aeaf0cf74a9ffc67fdd34606c1release-a85f1f086d96f9f312de9201b3fc4c25565b9e143arelease/0.4.26.2e337f037c7fd71883fcbef94a10c979fc61dd1ddrelease/0.4.27.1e45069f686206158f79e56d90d43229b3e028301release/0.4.27.2151af5bfb75c846fc20a81413cad8336468d7e13release/v0.4.2542006c6b885ee1f90abdaf8223eee093e057c5d9security-fixesddb4042199f9edb51e8cffcad9557c478d9dffe0ship42aff67c18be7ace5990a1d577723000abc6fa00sync/upstream-v4.25.05dab59a283211911b3344eaffd0b6c30c90a37a0test/100pct-fidelity7ca9f08c05f9a1cbef661ea191cfa88fe182fe94test/async-sleep-sweep7883a733c4358b597cb8ed3cdfe3b26a1445f605test/core-sdk-parity00a072590b103be8407b3fa2c6d5dc83755e333ctest/faithful-translations4f0f515bef0be50701e369a0dc1b44dc1400f7adtest/port-ts-coverage-tests96c8b41b7e332553f58ef9a0e0ac83d15d578925test/slack-client-cache2dbeba7e26f0f9652bc2aa91b924e042dfdb5531wip/4.41-sl4-fullc0788056b592a90121e01e74aba77905190ab1ebwt30/fixesb9b516e41b5d717f7d8e89d91e418e53010f430awt30/slack0b005c8c8c7e801c3d8ba1f563e249570c66743dwt30/telegram8f290d19021f6ba967c41602da782d3ea80901a9wt30/twilioa8d05d1cfe254bbc4bd5ae31b31fac5044a699a4patrick-chinchill commentedon Oct 1, 2026
Done: all 102 stale branches were deleted, and
originnow has onlymain. Deletions had to go one ref per push, because GitHub rejects a single push that deletes many refs at once ("repository rule violations"). Recovery details (head SHAs,git push origin <sha>:refs/heads/<branch>, and the local bundle) are in the comment above.