You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Follow-ups from the sourcery-ai threads on W2's picks: release.yml's wheel and index checks (code#12) and 006's macOS rerun (spec#11) #352
Follow-ups from four sourcery-ai review threads on W2's picks (code#12 and spec#11), left for after W2 on Brett's choice. Brett chose "Follow-ups, rerun (Recommended)" by interactive choice in lane 3's session at 2026-11-09T22:11:38Z. So these threads were answered with a link here and resolved, and W2's landing went on. None of them is a wrong-release bug: each fails closed, or is hardening.
Extra wheel directories pass verification (r4506270224, about line 904). The inventory's entries filter drops names ending in /, so an extra directory entry in the release wheel is never seen. Include directory entries in the inventory, and refuse any that are not allowed.
Large wheels exhaust runner memory (r4506270229, about line 906). The loop keeps every member's uncompressed bytes until all are compared. Read and discard members during the pass, or cap the total uncompressed size.
Nested index responses cause tracebacks (r4506270238, about line 1223, and :1218, :1274, :1277, :1782, :1785–1786, :1827, :1830–1831). json.loads can raise RecursionError, which the handler does not catch. The step then fails with a traceback instead of the named ::error:: refusal. Add RecursionError to the handlers' exception tuples.
opensoft/openRepoTools-spec#11 (specs/006-release-pypi/contracts/workflows.md, about :308–315):
4. The macOS rerun is unchanged. The contract asks for a separate bin directory and 16 placements under bash 3.2, but the diff does not change the workflow rerun that reuses the first run's directory. Since Brett's 2026-10-15 decision (tests.yml:7–8), the suite runs on Linux only. So check first whether that rerun still exists, then align the contract or the workflow.
Not a follow-up: spec#13's thread asked whether the release environments' settings (brettheap as the required reviewer, self-review allowed, administrators not bypassing) are Brett's. He answered "Yes, they're mine" in lane 3's session at 2026-11-09T22:11:38Z, so the spec stands as written.
CLAIMED — lane openRepoTools-3, session 83619980-06bb-4469-ae73-2a8c5e61981a@Eagle, 2026-11-10T01:15:23Z, for #352
Logged in lanes/log/openRepoTools-3.md at 316ce7a8d47e1fac0c30ef644c91b69561ac03a0.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoTools#352:
none
2. `gh pr list --repo opensoft/openRepoTools --state all --search "#352"`, kept where the row or its body names `#352`:
none
3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `352` as a whole token:
none
Lane openRepoTools-3, 2026-11-10T01:52Z: items 1 to 3 are opensoft/openRepoTools-code#23, a draft at 8510181. Lane 3's independent review and its delta check of the fix round both pass. CI is running. It lands only on Brett's word. Item 4 waits for spec#18, and two further follow-ups are logged below.
code#23 (fix/352-release-wheel-checks, on code main0a168a6). It changes .github/workflows/release.yml and tests/test_release_workflow.py.
Directory entries: names ending in / are now in the wheel's inventory. Only a parent directory of a file the wheel may hold is allowed, compared as whole strings. Everything else is refused with a named ::error:: line, including ../, /, a backslash, a doubled slash and openrepotools/pay/.
Memory:
the declared sizes are summed before anything is read, and a wheel over 256 MiB is refused unread;
a member in any compression method but stored or deflated is refused unread;
the rest are read in 1 MiB chunks, hashed, and dropped. Only the stamp, METADATA and entry_points.txt are kept whole.
RecursionError is in the handlers at all four index-check sites, so a nested answer ends with the named ::error:: line, not a traceback.
The review (lane 3, an independent reviewer) was READY AFTER FIXES. Its MUST: BZIP2 and LZMA are decompressed with no limit, so a 2 KB bzip2 member padded with zeros peaked at 622 MiB. The fix commit 8510181 refuses both methods before any read, and that bomb now ends 1 at 36 MiB.
Lane 3's delta check of e7ec834..8510181: PASS.
The method check runs before the read loop, and with such a member present no member is read.
The NESTED cases are balanced and require (RecursionError:.
Comment lines are within 80 columns, and the references are qualified.
The writer's narrow run (tests/run.sh -k 'test_release_workflow or repo_hygiene'): 797 passed, 18 skipped.
A real hatchling 1.27.0 wheel still passes: 32 members, all deflated, with no directory entries, and output identical to main's check.
Item 4 (006's workflows.md, the macOS rerun) waits for spec#18, lane openRepoTools-4's, which edits the same file.
Two further follow-ups, found in the review and left out of code#23. Both predate it, and both fail closed or affect no pip install:
5. Hidden bytes past a member's declared size.zipfile cuts a member at its declared file_size and checks the CRC of that part only. It never compares the local headers with the central directory. So a member can carry bytes past its declared size, and pip reads the same declared bytes. A name with a NUL byte also passes as the part before the NUL.
6. The install job's TestPyPI fetch step (json.load(handle)["urls"], about release.yml:1404) has no handler and no ::error:: line. A bad answer ends in a traceback. It fails closed, since shell: bash runs with -eo pipefail.
Lane openRepoTools-3, 2026-11-10T03:13Z: opensoft/openRepoTools-code#23 is READY at d23268d. All 14 checks are green, SonarCloud included, and GitHub reads it CLEAN. It lands only on Brett's word.
Since 6756663731, one test-only commit, d23268d. CI runs CPython 3.15.2 (python-version: 3.x), where the balanced 100,000-deep nested answer decodes without a RecursionError, so the step refuses it on its shape instead. Both ends are named ::error:: lines.
The four nested cases now ask the step's own python3 what it does with the answer, and require that refusal.
They still require exit 1, the one named line, and no traceback.
The narrow run gives 797 passed on 3.12.3.
Lane 3's checks:
the independent review (READY AFTER FIXES, the MUST fixed in 8510181);
the delta checks of 8510181 and d23268d.
Not in code#23: item 4, which waits for spec#18, and follow-ups 5 and 6 (6756663731).
Lane openRepoTools-3, 2026-11-10T04:13Z: code#23's head is now b69a8b1, after 6757919522's d23268d. All 14 checks are green, SonarCloud shows 0 open issues on the PR, and GitHub reads it CLEAN. It lands only on Brett's word.
b69a8b1 splits one composite assert in a_directory_entry (tests/test_release_workflow.py:2095) into two, each with its own message. It closes SonarCloud's one new issue on the PR, python:S9073. Lane 3's delta check finds that change and nothing else.
The narrow run gives 797 passed. "Sourcery review" is skipped, because sourcery-ai's weekly budget is spent.
RELEASED — lane openRepoTools-3, session 83619980-06bb-4469-ae73-2a8c5e61981a@Eagle, 2026-11-10T17:44:13Z, for #352 — closed by opensoft/openRepoTools-code#26 (squash b039fa4)
Activity
brettheap commentedon Nov 10, 2026
CLAIMED — lane openRepoTools-3, session 83619980-06bb-4469-ae73-2a8c5e61981a@Eagle, 2026-11-10T01:15:23Z, for #352
Logged in
lanes/log/openRepoTools-3.mdat316ce7a8d47e1fac0c30ef644c91b69561ac03a0.The three reads (lane-collision-protocol Rule 1):
Refuse wheel members in any compression method but STORED and DEFLATE…
brettheap commentedon Nov 10, 2026
Lane openRepoTools-3, 2026-11-10T01:52Z: items 1 to 3 are opensoft/openRepoTools-code#23, a draft at
8510181. Lane 3's independent review and its delta check of the fix round both pass. CI is running. It lands only on Brett's word. Item 4 waits for spec#18, and two further follow-ups are logged below.fix/352-release-wheel-checks, on codemain0a168a6). It changes.github/workflows/release.ymlandtests/test_release_workflow.py./are now in the wheel's inventory. Only a parent directory of a file the wheel may hold is allowed, compared as whole strings. Everything else is refused with a named::error::line, including../,/, a backslash, a doubled slash andopenrepotools/pay/.METADATAandentry_points.txtare kept whole.RecursionErroris in the handlers at all four index-check sites, so a nested answer ends with the named::error::line, not a traceback.8510181refuses both methods before any read, and that bomb now ends 1 at 36 MiB.e7ec834..8510181: PASS.(RecursionError:.tests/run.sh -k 'test_release_workflow or repo_hygiene'): 797 passed, 18 skipped.main's check.Item 4 (006's
workflows.md, the macOS rerun) waits for spec#18, lane openRepoTools-4's, which edits the same file.Two further follow-ups, found in the review and left out of code#23. Both predate it, and both fail closed or affect no pip install:
5. Hidden bytes past a member's declared size.
zipfilecuts a member at its declaredfile_sizeand checks the CRC of that part only. It never compares the local headers with the central directory. So a member can carry bytes past its declared size, and pip reads the same declared bytes. A name with a NUL byte also passes as the part before the NUL.6. The install job's TestPyPI fetch step (
json.load(handle)["urls"], aboutrelease.yml:1404) has no handler and no::error::line. A bad answer ends in a traceback. It fails closed, sinceshell: bashruns with-eo pipefail.This gives no word of Brett's.
Lane: openRepoTools-3
brettheap commentedon Nov 10, 2026
Lane openRepoTools-3, 2026-11-10T03:13Z: opensoft/openRepoTools-code#23 is READY at
d23268d. All 14 checks are green, SonarCloud included, and GitHub reads it CLEAN. It lands only on Brett's word.d23268d. CI runs CPython 3.15.2 (python-version: 3.x), where the balanced 100,000-deep nested answer decodes without aRecursionError, so the step refuses it on its shape instead. Both ends are named::error::lines.python3what it does with the answer, and require that refusal.8510181);8510181andd23268d.This gives no word of Brett's.
Lane: openRepoTools-3
brettheap commentedon Nov 10, 2026
Lane openRepoTools-3, 2026-11-10T04:13Z: code#23's head is now
b69a8b1, after 6757919522'sd23268d. All 14 checks are green, SonarCloud shows 0 open issues on the PR, and GitHub reads it CLEAN. It lands only on Brett's word.b69a8b1splits one composite assert ina_directory_entry(tests/test_release_workflow.py:2095) into two, each with its own message. It closes SonarCloud's one new issue on the PR, python:S9073. Lane 3's delta check finds that change and nothing else.This gives no word of Brett's.
Lane: openRepoTools-3
Release wheel check: refuse extra directory entries and over-cap whee…
brettheap commentedon Nov 10, 2026
Lane: openRepoTools-3
Lane openRepoTools-3, 2026-11-10T12:01Z: items 1 to 3 have landed as opensoft/openRepoTools-code#23, squash
3460f5eon codemain.main86d635b, and its tree equals the tested merge tree06e671fd;b69a8b1merged onto86d635b, and all 14 checks were green;e7ec834; its MUST is fixed in8510181, which passed lane 3's delta check;workflows.md, waits for The 006 workflows contract describes tests.yml as opensoft/openRepoTools-code#22 leaves it: tests and tests-no-submodule are gates over a matrix of shard jobs, and the Held-by list names each assertion (opensoft/openRepoTools#77) openRepoTools-spec#18. Brett chose "Land when ready (Recommended)" for it: lane 4 lands it once an independent review says READY and every check is green.🤖 Generated with Claude Code
Release wheel check: read the last central record's three lengths fro…
brettheap commentedon Nov 10, 2026
RELEASED — lane openRepoTools-3, session 83619980-06bb-4469-ae73-2a8c5e61981a@Eagle, 2026-11-10T17:44:13Z, for #352 — closed by opensoft/openRepoTools-code#26 (squash b039fa4)