From c48c49488dc7209cd55a8d79f0d8f5e6ffe3144f Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 14 Oct 2026 04:16:31 +0800 Subject: [PATCH] lessons: the review of 10-11 to 10-13; failed reads, locks, another app's values, guarantee tests, network-free tests, tags and commit bodies move to the code standards The nightly fold of the review of 10-11 05:20 to 10-14 04:00 (602 commits, tags v0.1.1173 to v0.1.1228, 54 of 56 published). Moved to docs/code-standards.md, each seen a third day or more: - a failed read means unknown (7d9382db2, e297a8ab2); - nothing that can block runs under a lock its reader needs (a2afc1828, a75de4c21); - another app's values come from that app (accc8c090 -> e0ecf0161); - a test named for a guarantee fails without it (9dd5917a4, cc93b566e); - a test never reaches the network (f230fa23b, bde11c778); - a tag waits for a green run and is not a release (v0.1.1192/1193 on one commit, v0.1.1213 and v0.1.1218 unpublished, #1846); - a large commit's body holds what was run (ea3d480ed, 1cd814004, 3ccbe6bc1's "push notes"). Criterion 3 now names the guard tests that chosen-package runs broke on 10-13 (494609866, 24146c031, c6de0d2a5). LESSONS.md keeps pointers. LESSONS.md: reading the report and two-sessions-one-checkout seen a second day (def3a41e3 reverted in 2c30e5cee; 3e88fc09d). New 1x lessons: WebKitGTK vs Playwright WebKit (f5dd4d604), per-OS paths in tests (f38f65030), neutral text in vendor-bound prompts (3c4f8f9ae), one owner per flag bit (8179ce768), a flag is never data to write (76db4c6c2). contributors.md: ggbdpq's Watched row gains #1919 and #2017. Run: every shown sha read with git log; anchors #moved-to-the-code-standards and the code-standards.md links resolve. Docs only, no code. --- LESSONS.md | 208 ++++++++++++++++++++++------------------- docs/code-standards.md | 38 +++++++- docs/contributors.md | 2 +- 3 files changed, 147 insertions(+), 101 deletions(-) diff --git a/LESSONS.md b/LESSONS.md index 1ff76c824..ef2275a1b 100644 --- a/LESSONS.md +++ b/LESSONS.md @@ -1,4 +1,4 @@ - + # Lessons from merged work magpie's code is written, reviewed, merged and released by agents. Each night @@ -44,6 +44,18 @@ those reds was a real rate-limit gap. Two lessons were seen a third day and moved into the code standards: whatever a test starts ends when it does, and a timing test leaves room on both sides. +From 10-11 05:20 to 10-14 04:00 there were 602 commits and 56 tags +(v0.1.1173 to v0.1.1228). Every tag the review checked was on a green run, +but v0.1.1213 and v0.1.1218 were never published (#1846), and two sessions +tagged one commit twice. What went wrong was mostly running less than the +suite: four commits on 10-13 ran chosen packages and turned main red through +guard tests in packages they didn't touch, and two left GUI files red. Seven +lessons were seen a third day and moved into the code standards: a failed +read means unknown, nothing blocks under a lock its reader needs, another +app's values come from that app, a test named for a guarantee fails without +it, a test never reaches the network, a tag waits for a green run and is not +a release, and a large commit has a body with what was run. + ## Reading the report **Reproduce the reporter's exact case, on the surface they use, before you @@ -57,7 +69,10 @@ not a step on the way to it. TUI in WSL. Fixed in f3c05b5e. - 60b910b7 made a warm /api/state faster. The report was the cold start (~8.5s of SyncCatalog). Fixed in 2a4042a9. -- Seen 1× (2026-10-05). +- 10-13: def3a41e3 built on a request its reporter (Fallmonkey) had put on + hold ("先别做"), and was reverted in 2c30e5cee. Read the whole thread, + to its last comment, before starting. +- Seen 2× (2026-10-05, 2026-10-13). **Build fixtures from the reporter's literal bytes, not a similar sample you made up.** @@ -148,6 +163,31 @@ protocol, never by a key's name.** - When writing such a sentence, file an issue in the same commit. - Seen 1× (2026-10-10). +**Text magpie adds to a prompt that goes to a vendor names neither magpie +nor the vendor's limits.** +- 5d33f060b (10-12) headed the models it added to Codex's spawn_agent + description "(Codex names only five above; magpie serves these too)". + That text goes upstream, to OpenAI too. 3c4f8f9ae made it neutral, and + its test fails when the text names magpie, Codex or "five". The cost is + ban risk, so a prompt change gets the same care as a header change. +- Seen 1× (2026-10-12). + +**A bit or enum value has one owner.** +- d4c2512d2 (#1874) gave a usage row's Flags bit 256 to rowOwnCost while + a rebase of #1463 gave it to rowReasoningHidden, so every reported cost + read back as hidden reasoning. 8179ce768's TestRowFlagsApart fails when + a bit is used twice. After a rebase, grep the values both sides claim. +- Seen 1× (2026-10-13). + +**A command never takes a flag, or a value it doesn't know, as data to +write.** +- `magpie snow --help` took "--help" as a model: it deleted + profiles/magpie.json and wrote "--help" into the user's profile. 76db4c6c2 + (#1457) made --help print usage on every command, and Snow and Gemini CLI + refuse an unknown value. Try each command with --help and a bad value in + a sandbox HOME. +- Seen 1× (2026-10-11). + ## The user's own files and settings **Never let magpie's default override a value the user set themselves.** @@ -165,30 +205,6 @@ protocol, never by a key's name.** - Each was written first without a test that holds a user-set value. - Seen 2× (2026-10-05, 2026-10-10). -**A failed read, parse or hash means "unknown". It never means "empty" or -"equal".** -- relink's `fresh()` treated two unreadable folders as equal and deleted the - copy (9fb9a8ab). -- readLogins returned an empty list on a parse error, which the next add or - sign-out wrote back as "no accounts" (d5619d5a only retried for 15ms). - Fixed in b363327d: the accounts read before are kept, and a file that - doesn't parse is copied aside before it is written over. -- Done right on 10-07: d40fee80 (#1097) backs up Pi's mcp.json before - moving it whole, and doesn't move it when the backup fails. 2c2137be - deletes a dsh session only under its own folder, to the trash, with - Restore, and was tried with real dsh. -- 10-11: agent/stash.go, which holds every agent's config from before - magpie, had readLogins' bug, never looked at when b363327d fixed it. A - stash.json that didn't parse read as empty, writes were plain - os.WriteFile with no lock, and 40 stashes at once kept none of them - (270b5257). 8b393938 (StepCode, the same evening) noticed and wrote its - own strict reader beside the shared one instead of fixing it. When you - find a shared helper wrong, fix the helper. -- Done right on 10-10: 89271cd4 (#1505) recovers zeroed state files from a - .bak, copies a bad one aside, and deliberately doesn't recover caller - keys (a revoked key must stay revoked). -- Seen 2× (2026-10-05, 2026-10-11). - **Before deleting or overwriting a live credential, find every record that could match the same key.** - 43a65950 matched Codex accounts by display name. Two Team seats of one @@ -201,19 +217,6 @@ could match the same key.** start (20bdf1e9). - Seen 1× (2026-10-05). -**Take another app's field types from that app's own data or validator.** -- 84554e57 wrote updatedAt as milliseconds, without trying the real Claude - Desktop. Its skills page hung for 2 days (#863, 50d6c9a3). -- For layered vendor configs, read the vendor's merge code first. 9761248d - guessed dsh's merge rules (#838). -- 10-06: #966's review asked that Codex's limit_reached count as "held", - without reading the app. 38 minutes later #996 read ChatGPT.app's app.asar. - Its composer only stops on rate_limit.allowed === false, so #996 undid part - of #966. #996 and e2f1c6ba are how to do it: e2f1c6ba sealed its fixture - the way OpenHanako 1.0 seals provider-catalog.json and was checked on a - copy of the owner's real ~/.hanako. -- Seen 2× (2026-10-05, 2026-10-06). - ## Verification **Windows CI only compiles the tests, so a Windows-only red shows @@ -235,17 +238,6 @@ re-derives every place that discloses it.** privacy text in the same commit. - Seen 1× (2026-10-08). -**A test never loads a real third-party page.** -- 9755201b's test opened ChatGPT, whose Cloudflare challenge hung it. - 9f0831b2 and 88f2eb8a did the same with other vendor pages. -- Serve the page from httptest, built from bytes saved from the real one. -- 10-11: the same holds for a test's broken state. With the icon proxy - turned off by hand, a library test's github.com avatar URL reached the - real GitHub, and a worker test's stub fell through to a real fetch - (f04792f9 moved them to .invalid hosts and a stub that throws). Break the - change and watch where the test's requests go. -- Seen 2× (2026-10-08, 2026-10-11). - **A test that reads a dependency's source needs the dependency on disk.** - 884dbdb2's TestTrayMenuOpenFrameIsWails read Wails' source through `go list -m` Dir. CI's fresh module cache hasn't unpacked it, so main was @@ -261,6 +253,22 @@ re-derives every place that discloses it.** TestMask too. - Seen 1× (2026-10-10). +**Playwright's WebKit is not WebKitGTK.** A GUI change with motion or a new +browser API is tried in the real Linux app too. +- 18e82adc6 (10-11) traded the layouts in a view transition. The GUI suite + passed in WebKit, but under Wayland magpie turns WebKitGTK's compositing + off, and WebKitGTK 2.52 crashed in the transition and froze the window + (f5dd4d604, a reporter on X). +- Seen 1× (2026-10-12). + +**A path that differs by OS is tested with each OS's value.** +- ee7a9b24a (10-11) read Grok App's folder from $XDG_DATA_HOME on Linux. + The test sandbox set HOME, XDG_CONFIG_HOME and XDG_CACHE_HOME but not + XDG_DATA_HOME, so the drift test was red on ubuntu CI (f38f65030). Force + the OS switch in a test, and give the sandbox every variable the code + reads. +- Seen 1× (2026-10-11). + **Reproduce on CI's Go version.** - #1184 couldn't be reproduced on go1.27.1 locally. CI ran 1.26.x, and the cause was a Go 1.26.8 segfault. Docker `golang:1.26.8` with @@ -269,21 +277,6 @@ re-derives every place that discloses it.** ## Concurrency and tests -**Never send on a channel, or call anything that can block, while holding a -lock the receiver needs before it reads. Set shared state before the -handoff that lets another goroutine look at it.** -- 85fd35ab's emit sent to a full 64-slot segment while holding r.mu, and the - reader takes r.mu first. It hung macOS -race CI for 20 minutes - (4fb8e887). -race -count=50 locally didn't catch it. A test that fills the - buffer first catches it every time. -- The Claude subscription run recorded run.tools after continueWith had - already answered the agent, so a quick turn read the old tools - (TestToolSearchLoadKeepsTheRun, c8690ca0). -- 10-08: 01e66e0f's claudeCredentials.marshal wrote into the raw map that - every copy of the struct shares. A struct copied by value that holds a - map is not a copy (15afd988). -- Seen 2× (2026-10-06, 2026-10-08). - **A fake or child process a test starts ends when the test does**, and **a timing test leaves room on both sides**, are in the code standards since 10-11. See [Moved to the code standards](#moved-to-the-code-standards). @@ -294,13 +287,6 @@ Two habits from them: - Reproduce a timing flake by injecting the delay, not by rerunning until it fails (0f8e4ebc, 229ce19a, 9e35eef3). -**A test named for a guarantee fails when the guarantee breaks.** -- #1318's TestHistoryWriteHoldsNoWaiter still passes with the waiter held: - nothing in it waits while the history write is held. Filed as #1358 with - a design that fails on the old code. -- Before merging, break the guarantee by hand and watch the test go red. -- Seen 1× (2026-10-08). - ## Red tests and releases **Flaky tests: find the cause.** "A test that fails on main is a bug to fix @@ -342,6 +328,13 @@ cause: test was being written. Checking `git log` isn't enough while both are working; say on an issue, or file one, that you are on it before you start. +- 10-12/10-13: #1794 got four "seen again" comments before anyone took + it (fixed in 6ae6b3402), and #1543 was seen three times with no owner + (097479dab). A comment that a red came back is not work on it: take it + or say who has it. 31c1e3ab1 named 8 GUI files that "fail the same way + on an origin/main 552e974f2 copy" and filed none of them; they were + fixed one by one over the next day (searcher-pick, profile-in-use, + library-mcp-tools among them). - Done right: 2bd49cc5's race was fixed at its cause in 25 minutes (28049bd2, -race -count=40 -cpu 1,2). 60f87223, b1cba654, 443f1cbc and 395c4bc5 fixed flakes at their cause instead of retrying. 06420a71 fixed @@ -349,22 +342,6 @@ cause: - Seen 3× (2026-10-05, 2026-10-06, 2026-10-07); the rule itself is in the code standards. -**Don't tag until a CI Test run on that commit, or one containing it, has -finished green. A cancelled run is not a pass.** -- On 10-05 nearly every CI run was cancelled by the next push. Linux-only - TestCursorLocal failed from v0.1.877 to v0.1.892 (b7fef387). -- Batch fixes rather than tagging every commit. 294 tags in 51 hours left - no run to finish. -- Before naming a version to a reporter, check it has all 16 assets. - v0.1.956 was announced on #856 but never built. -- Before listing a package in market.json, check it resolves with - `npm view`. 2f135ed4's middleware packages reached npm 5h after the - release. Done right on 10-07: 35485f2d, 01aaa8e9 and 92e4fc32 each checked - the package on npm first. -- 10-08: 01e66e0f's own run was cancelled, so its red showed up on the next - commit's run. Every tag that day waited for a green run. -- Seen 2× (2026-10-05, 2026-10-08). - ## Merging and closing **Never merge a PR whose own new test fails, or with known problems a @@ -392,14 +369,6 @@ it doesn't.** GUI tests up to date. - Seen 2× (2026-10-05, 2026-10-06). -**A large commit has a body: what changed, why, and what was run.** -- 586f2bce changed 5133 lines with a subject line only. bb8a3e30, ed4476b9, - e22d5eef and d2241a57 had no body either, so a later review can't tell - what was verified. -- Seen 1× (2026-10-08). -- Done right on 10-09/10-10: none of the 22 commits over 400 lines lacks a - body. - **A squash merge's message is written, not GitHub's default.** Give `gh pr merge --squash` a `--subject` and a `--body-file` holding the PR's own change and what was run at the reviewed head. @@ -419,7 +388,10 @@ own change and what was run at the reviewed head. - Work in a worktree of your own (`git worktree add --detach`). After committing, `git show --stat HEAD` must list your files and only yours. An empty commit means another session took your index. -- Seen 1× (2026-10-09). +- 10-12 21:25: 3e88fc09d carries the auto-mode subject but holds the Get + started card; the auto-mode change is 24350a372. A review reads + `git show --stat` against the subject, not the subject alone (#1825). +- Seen 2× (2026-10-09, 2026-10-12). ## Moved to the code standards @@ -471,6 +443,48 @@ each one. - **A timing test leaves room on both sides** (10-08, 10-09, 10-11). On 10-10 8424a004 assumed two concurrent handlers let go in order (3a1ade97). On 10-11 TestMaxRPM and the queued-stream tests (above). +- **A failed read, parse or hash means "unknown"** (10-05, 10-11, 10-12, + 10-13). On 10-12 7a9490638's IP allow list let every address in when + settings.json couldn't be read (7d9382db2). On 10-13 #2017's patch read an + unreadable codex-autoreset.json as "no reset spent" (e297a8ab2). When a + shared reader is wrong, fix it, not a strict copy beside it. +- **Nothing that can block runs under a lock its reader needs** (10-06, + 10-08, 10-11, 10-13). 7cba316b9's timer went red under -race + (a2afc1828); a fake Codex appended from two goroutines (a75de4c21). +- **Another app's values come from that app** (10-05, 10-06, 10-13). + accc8c090 sent 127.0.0.1 where Claude Code sends localhost (e0ecf0161). +- **A test named for a guarantee fails when it breaks** (10-08, 10-12, + 10-13). bbe8825c0 (9dd5917a4) and ggbdpq's 44b5b2b96 and e21b1dbc1 + (cc93b566e) passed on the old code. Break it by hand, watch it go red. +- **A test never reaches the network** (10-08, 10-11, 10-13). TestPiPackage + tested npm's latest pi (f230fa23b); tests waited 30s on models.dev + (bde11c778). +- **A tag waits for a green run, and a tag is not a release** (10-05, + 10-08, 10-12, 10-13). v0.1.1192/1193 tagged one commit; v0.1.1213 and + v0.1.1218 never published (#1846). `npm view --prefer-online` a plugin + version before naming it. +- **A large commit has a body with what was run** (10-08, 10-12, 10-13). + ea3d480ed and 1cd814004 (community, no record); 3ccbe6bc1's "push notes" + hid two red GUI tests (2dcc51417, ba0712888). +- **10-11 to 10-13, criteria still missed.** + - The suite: 6fa3109ea, 43d8a5633, 5617281f5 and cdb7b5ff7 ran chosen + packages and broke guard tests elsewhere (494609866, 24146c031, + c6de0d2a5). + - GUI: 18e82adc6 left 8 GUI files red after a run cut short (054bdb8bb); + e3a497d7a left gui-ja red ~3h (28aac86bc). + - Sibling: 4ed379f11 left three deciders on the raw body (0c6752dbd); + 90ac1f038 mended StepCode only (cb003877f). + - Timing: #1874's TestUsageIngestTouchesNoLimit stamped its calls a + minute ago and went red a minute after midnight UTC (1acdf3a8f). + - Whatever a test starts: Devin's held installer (2ff4ecb42) and a + Claude sign-in's `claude auth login` run (ebbe76420, #1802) outlived + their tests. +- **Done right on 10-11 to 10-13.** 2dcc51417 found 3ccbe6bc1's reds the + same evening. 5241de909 guards a caller's image URL at the one place all + three draw paths download it. 86b2f4d05 fixed revoked sign-ins for every + built-in at once. 8179ce768 says what it broke by hand. 097479dab fixed + #1543 at its cause, and ebbe76420 forced each failure by hand instead of + rerunning. - **Done right on 10-10/10-11.** - 9e35eef3 fixed #1469 half an hour after it was filed, reproducing CI's numbers with an injected pause. diff --git a/docs/code-standards.md b/docs/code-standards.md index 5907adff4..c3e07eaa8 100644 --- a/docs/code-standards.md +++ b/docs/code-standards.md @@ -14,13 +14,17 @@ describe and review a change to a subsystem is in the | A change holds on the whole path. | Follow it from the user's input to the end result, through the callers, the state it changes and the side effects. One correct function doesn't make the whole operation correct. For example, an agent's model picks are saved under one id and read under another (#926). An update button doesn't update the binary that actually runs (#930). | | A fix reaches every sibling of the bug. | Grep for the same pattern: every agent, subcommand, guard of the same shape and caller of a changed predicate gets the fix in the same change. That includes the other branches of the same operation and the other messages that name the same endpoint or rule. On 2026-10-05 six fixes needed a second release because they covered only the case in the report. On 10-06 #933's Codex models followed an hour after its sign-in. On 10-07 cd8d64a9 (#1059) offered sub2api's balance URL in one hint, while the error shown after a failed balance read still names only new-api's. Pi's whole-file move of mcp.json had no backup until d40fee80 (#1097), though the merge branch beside it already had one. | | A change re-derives everything built on what it changes. | When a change alters a formula, a list, a layout breakpoint or the timing of an async step, find every caller, saved copy and test that assumed the old meaning, and run it. 12cba74a kept Zed's old clamp under a new max_tokens. 5d871723 (#860) moved the Requests page's columns to 1150px, and click-scroll was red on main for most of 10-07 (82a36a35). ee2588c2 added an immediate re-read, and the test's assertion about the state in between became a race on Linux CI (3e38bd76). | +| A failed read, parse or hash means "unknown". | It never means "empty", "none" or "equal". Keep what was read before, copy a file that doesn't parse aside before writing over it, and fix the shared reader rather than writing a strict one beside it. A list that guards access (an allow list, a key limit) fails closed when its file can't be read. Test with the file unreadable. readLogins wrote a parse error back as "no accounts" (b363327d), and agent/stash.go had the same bug two days later (270b5257). On 10-12 7a9490638's IP allow list read an unreadable settings.json as an empty list and let every address in (7d9382db2). On 10-13 #2017's patch read an unreadable codex-autoreset.json as "no reset spent" (e297a8ab2). | +| Another app's values come from that app. | When magpie writes another app's file or speaks for it, take each field's type and value from that app's own data, binary, merge code or docs, not only its field names. 84554e57 wrote updatedAt in milliseconds and hung Claude Desktop's skills page (#863). #966 guessed Codex's limit_reached, which #996 undid after reading ChatGPT.app. On 10-13 accc8c090 copied Claude Code's OAuth client names but sent its own redirect_uri (127.0.0.1, where Claude Code sends localhost); e0ecf0161 read the binary and fixed it. | +| Nothing that can block runs under a lock its reader needs. | Never send on a channel or call anything that can block while holding a lock the receiver takes first. Set shared state before the handoff that lets another goroutine look at it, and a struct copied by value that holds a map is not a copy. A fake server's handler runs on many goroutines: guard what it records with a lock, and count only the calls the test makes, since background reads reach it too. A change that starts a goroutine or timer runs `-race` before it is pushed. 85fd35ab hung macOS -race CI (4fb8e887). 01e66e0f's marshal wrote into a shared map (15afd988). On 10-11 7cba316b9's turn-done timer read fields on its own goroutine and went red under -race (a2afc1828). On 10-13 TestKeptLoginStandsAtItsPlace's fake Codex appended from two goroutines (a75de4c21). | | Checks cover the edges the change touches. | For numbers, check the boundaries. For paths, check each platform (macOS, Linux, Windows). For concurrency, check races and stale state. Pick checks by risk. | ## Tests | Rule | What a reviewer looks at | | --- | --- | -| A fix comes with a test that fails without it. | The reviewer puts the old code back and runs the test, and the test must fail. A PR description says what it failed with. | +| A fix comes with a test that fails without it. | The reviewer puts the old code back and runs the test, and the test must fail. A PR description says what it failed with. A test named for a guarantee goes red when that guarantee is broken by hand: #1318's TestHistoryWriteHoldsNoWaiter passed with the waiter held (#1358). On 10-12 bbe8825c0's memo test passed with its eviction reversed (9dd5917a4), and on 10-13 e21b1dbc1's tests passed with is_error dropped (cc93b566e). | +| A test never reaches the network. | A vendor's page or API is served from httptest, built from bytes saved from the real one. A package comes from a lock file, not a registry's latest. Break the change and watch where the test's requests go. 9755201b opened ChatGPT and hung on its Cloudflare challenge. On 10-11 a library test reached the real GitHub with the icon proxy off (f04792f9). On 10-13 TestPiPackage tested npm's latest pi that minute (f230fa23b), and plugin and cli tests waited 30s on the real models.dev (bde11c778). | | Tests use real inputs. | Fixtures look like real requests, real serialized output and real files on disk. That includes missing fields, empty values and defaults. | | Tests check behavior, not implementation. | Assert what the user or caller needs. Formatting changes and internal refactors shouldn't break a test, unless exact bytes are the requirement. | | A test that fails on `main` is a bug to fix now. | "Fails the same on origin/main" is not a baseline, and neither is "fails under the full run, passes alone". Fix it at its cause, or open an issue naming the cause, in a commit of its own, before shipping on top of it. From 10-05 to 10-07 dozens of commits shipped past red tests. Some were real bugs: a data race (a45b3e09), test order (bfe8bcaf), and click-scroll red since 5d871723 while dcbae2ef, 76d82528 and b2345078 shipped past it. Run `go test -race -count=20 -run X` before calling a Go test a flake. | @@ -56,7 +60,15 @@ listed as not run, never left out. `syscall.Getsid`, which Linux's syscall package doesn't have, and bb8a3e30 and e7de897f shipped unformatted. In a chain of commands, set `set -o pipefail`, so that `go test | tail && git push` stops on a - failure. + failure. Run `./...`, not the packages you think you touched: the + repo's guard tests live in packages a change doesn't touch. + TestFolderVarsAreListed (internal/agent) fails when a new agent + variable isn't in `agentenv.Vars`, TestNoCommandBypassesProc + (internal/proc) when code calls `exec.Command` instead of + `proc.Command`, and an output format change breaks another package's + test that pinned the old text. On 10-13 four commits ran chosen + packages and turned main red this way: 6fa3109ea (494609866), + 43d8a5633 (24146c031), 5617281f5 and cdb7b5ff7 (c6de0d2a5). 4. **GUI tests in both engines.** A change to `internal/gui/assets` runs the Playwright tests it touches in Chromium and WebKit (`make test-ui`, or `BROWSER=webkit node --test …`). The suite must also pass in Chinese, @@ -113,7 +125,16 @@ A release counts only when all of these hold: - That release is marked Latest, the highest version. Check `git tag` for the next free version first, because releases can be -made from more than one place. A PR that only adds tests doesn't get a +made from more than one place. `git fetch --tags` and check the commit +isn't tagged already: on 10-12 two sessions tagged 396a6a3d4 a minute +apart, and the lower v0.1.1192 became Latest. A tag is not a release: +check the release exists with its 16 assets before naming the version to +anyone, and file a release whose build failed instead of letting the next +tag cover it. v0.1.1213 (hdiutil "Resource busy") and v0.1.1218 (notarising +lost the network) were never published, and nobody noticed the first for +1.5 hours (#1846). The same holds for a plugin version: `npm view +@ --prefer-online` before a mover's `min` or a reply +names it. A PR that only adds tests doesn't get a release of its own. ## Reviewing a PR @@ -179,3 +200,14 @@ sees, written as plain behavior: `gateway: a 429 that says the balance is spent is out of credit, not a rate limit`. Give the issue number or the reporter. The body says how it was verified, and which test fails without the change. + +The record of what was run is in the commit body, where a later review can +read it: not in push notes, a chat or only on the PR. A large commit with +no body can't be reviewed afterwards: 586f2bce changed 5133 lines with a +subject only. On 10-12 fjrtdk's ea3d480ed (+237) and liubing's 1cd814004 +(+505) were applied with no record, and their review commits found real +bugs in them (1f0ff81df, 9935119f1). On 10-13 3ccbe6bc1 (plugin runtime +P0, 2137 lines) put its full-suite results in "the push notes"; it had +left two GUI tests red, found by 2dcc51417 the same evening. When a +community commit is applied without a body, the review commit says what +was run against that author's code. diff --git a/docs/contributors.md b/docs/contributors.md index ded1ff33c..8ca074d5b 100644 --- a/docs/contributors.md +++ b/docs/contributors.md @@ -89,4 +89,4 @@ and not extra care: the review checks the named gaps before merging. | Author | Check | Evidence | | --- | --- | --- | -| ggbdpq | Break each fix by hand and see its new test go red. Grep for the sibling sites (other deciders, other routes, other providers) the change didn't touch. | On 10-13 two of their batches needed a follow-up. 44b5b2b96 and e21b1dbc1 were merged with tests that pass on the old code. 4ed379f11 decoded `\uXXXX` at four sites but left three deciders reading the raw body, and one site had no test (0c6752dbd). | +| ggbdpq | Break each fix by hand and see its new test go red. Grep for the sibling sites (other deciders, other routes, other providers, other agents) the change didn't touch. Check what a failed read becomes. | On 10-13 two of their batches needed a follow-up. 44b5b2b96 and e21b1dbc1 were merged with tests that pass on the old code. 4ed379f11 decoded `\uXXXX` at four sites but left three deciders reading the raw body, and one site had no test (0c6752dbd). #1919 (90ac1f038) mended a renamed provider's models for StepCode only; Pi, OmO and Prime Agent followed in cb003877f. #2017's patch kept an unreadable codex-autoreset.json aside but still read it as "no reset spent", so its own crash-and-restart case spent a second reset (fixed at the read in e297a8ab2). |