From 24150d1e01458981e6f4ab6f683445a5754579c2 Mon Sep 17 00:00:00 2001 From: Derek Ross Date: Wed, 25 Nov 2026 10:40:42 -0500 Subject: [PATCH] docs/review: lessons from round 68 Adds 9 lessons (L-1181 to L-1189) and 1 correction (C-65) from the 12 candidate lessons of review round 68, so the next round's reviewer checks what this one caught or nearly missed: 4 to safety (a chroot bind mount judged by everything its processes can open, an upstream unit's "safe because" comment checked on a phone, shared paths in a device draft, a stock boot between trials ageing the backup), 1 to shell (a daemon newly offering a mode, against upstream's defaults), 1 to kernel (firmware-written addresses through a sliding BAR window), and 3 to reviews (two-dot diffs on a stale branch, a blocker planned for a follow-up, a gate keyed on another open PR's field). Two candidates extend existing entries instead: L-982 now covers shipped code that watches a process with kill -0 (#1014), and L-1051 the mirror case of a "not in any release tag yet" line (#1028). C-65 corrects round 67's memory estimate for #998, which counted whole-process RSS. safety.md, shell-2.md, kernel.md, reviews.md and claims.md passed 30 kB, so their oldest entries move to the top of the next part as LESSONS.md says, cascading where a part then passed 30 kB too; the index carries the new counts. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01BeEcdTihbUaQF9HBVigJ49 --- docs/review/LESSONS.md | 10 ++-- docs/review/lessons/claims-2.md | 19 ++++---- docs/review/lessons/claims-3.md | 10 ++++ docs/review/lessons/claims.md | 16 +++---- docs/review/lessons/corrections.md | 9 ++++ docs/review/lessons/kernel-2.md | 38 +++++++-------- docs/review/lessons/kernel-3.md | 44 ++++++++--------- docs/review/lessons/kernel-4.md | 24 ++++++++++ docs/review/lessons/kernel.md | 28 ++++------- docs/review/lessons/reviews-2.md | 74 ++++++++++++++--------------- docs/review/lessons/reviews-3.md | 76 +++++++++++++++--------------- docs/review/lessons/reviews-4.md | 39 +++++++++++++++ docs/review/lessons/reviews.md | 67 ++++++++++++-------------- docs/review/lessons/safety-2.md | 62 +++++++++++++----------- docs/review/lessons/safety-3.md | 57 +++++++++++----------- docs/review/lessons/safety-4.md | 30 ++++++++++++ docs/review/lessons/safety.md | 72 ++++++++++++++-------------- docs/review/lessons/shell-2.md | 14 +++--- docs/review/lessons/shell-3.md | 14 +++--- docs/review/lessons/shell-4.md | 8 ++++ docs/review/lessons/shell.md | 10 ++++ 21 files changed, 415 insertions(+), 306 deletions(-) diff --git a/docs/review/LESSONS.md b/docs/review/LESSONS.md index ba396e600..2a73db43a 100644 --- a/docs/review/LESSONS.md +++ b/docs/review/LESSONS.md @@ -23,14 +23,14 @@ reviews can cite them, and each number is in exactly one file | Area | Files | Entries | Read for | | --- | --- | --- | --- | -| Safety model (AGENTS.md section 1) | [`safety.md`](lessons/safety.md), [`safety-2.md`](lessons/safety-2.md), [`safety-3.md`](lessons/safety-3.md), [`safety-4.md`](lessons/safety-4.md) | 159 | every review | +| Safety model (AGENTS.md section 1) | [`safety.md`](lessons/safety.md), [`safety-2.md`](lessons/safety-2.md), [`safety-3.md`](lessons/safety-3.md), [`safety-4.md`](lessons/safety-4.md) | 163 | every review | | Shared code and the reference device | [`shared-code.md`](lessons/shared-code.md), [`shared-code-2.md`](lessons/shared-code-2.md), [`shared-code-3.md`](lessons/shared-code-3.md) | 131 | omamobile and app pull requests | -| Shell and scripts | [`shell.md`](lessons/shell.md), [`shell-2.md`](lessons/shell-2.md), [`shell-3.md`](lessons/shell-3.md), [`shell-4.md`](lessons/shell-4.md) | 165 | omamobile and app pull requests | -| Kernel (linux-omamobile) | [`kernel.md`](lessons/kernel.md), [`kernel-2.md`](lessons/kernel-2.md), [`kernel-3.md`](lessons/kernel-3.md), [`kernel-4.md`](lessons/kernel-4.md) | 189 | linux-omamobile pull requests | +| Shell and scripts | [`shell.md`](lessons/shell.md), [`shell-2.md`](lessons/shell-2.md), [`shell-3.md`](lessons/shell-3.md), [`shell-4.md`](lessons/shell-4.md) | 166 | omamobile and app pull requests | +| Kernel (linux-omamobile) | [`kernel.md`](lessons/kernel.md), [`kernel-2.md`](lessons/kernel-2.md), [`kernel-3.md`](lessons/kernel-3.md), [`kernel-4.md`](lessons/kernel-4.md) | 190 | linux-omamobile pull requests | | The gates themselves | [`gates.md`](lessons/gates.md), [`gates-2.md`](lessons/gates-2.md), [`gates-3.md`](lessons/gates-3.md) | 145 | every review | -| Reviews and merging | [`reviews.md`](lessons/reviews.md), [`reviews-2.md`](lessons/reviews-2.md), [`reviews-3.md`](lessons/reviews-3.md), [`reviews-4.md`](lessons/reviews-4.md) | 165 | every review | +| Reviews and merging | [`reviews.md`](lessons/reviews.md), [`reviews-2.md`](lessons/reviews-2.md), [`reviews-3.md`](lessons/reviews-3.md), [`reviews-4.md`](lessons/reviews-4.md) | 168 | every review | | Claims and evidence | [`claims.md`](lessons/claims.md), [`claims-2.md`](lessons/claims-2.md), [`claims-3.md`](lessons/claims-3.md), [`claims-4.md`](lessons/claims-4.md) | 226 | every review | -| Corrections (where a review was wrong) | [`corrections.md`](lessons/corrections.md), [`corrections-2.md`](lessons/corrections-2.md) | 64 | every review | +| Corrections (where a review was wrong) | [`corrections.md`](lessons/corrections.md), [`corrections-2.md`](lessons/corrections-2.md) | 65 | every review | A numbered file (`claims-2.md`) continues the one before it; an area's parts are read together. diff --git a/docs/review/lessons/claims-2.md b/docs/review/lessons/claims-2.md index 08a2c265a..0ebe35f05 100644 --- a/docs/review/lessons/claims-2.md +++ b/docs/review/lessons/claims-2.md @@ -3,6 +3,15 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-824. A sibling device's plan that explains or contradicts an AGENTS + gotcha about the reference phone is listed for the maintainer, with the run + that would settle it.** #852 traces early RTC wakes to stale S2MPG12 reads + (kernel #201) while AGENTS still calls the 7 Pro's early wakes unexplained, + shows "Wi-Fi stays connected across s2idle" to be a disassociate and rejoin + there, and prices the keep flag at 52 mA. *Check:* `grep -n` AGENTS section + 4 for each mechanism a device plan explains (the PMIC, the driver, the flag) + and name the 7 Pro run in the review's notes. Extends L-492 and L-657. + *From:* #852, round 60, 2026-11-17. - **L-823. A status line that quotes several measured numbers is checked for the condition each was measured under.** #852's "284 mA at 2028 MHz, 184-200 mA at 1014 MHz, 52 mA more with Wi-Fi kept" set a Wi-Fi-kept figure beside @@ -375,13 +384,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho - **L-107. A plan's claim about the DEVICES.md matrix is checked against the open PRs that change that row.** Extends L-28 and L-44. *From:* #35 with #34. -- **L-128. Read the host's USB log before interpreting a phone's - "re-enumeration".** The laptop's `journalctl -k` timestamps the gadget - leaving and arriving, and survives a phone whose RAM log is lost: husky - test 23's "re-enumerated after 22 s" was the boot itself. *From:* kernel - #33, round 10. -- **L-129. A CRC "clear" covers only what that register checks.** FTM5's - CRC register is the base check; config and CX errors come as events after a - reset. *Check:* which check covers the calibration area, and whether it - needs a reset, before a plan says a read answers "is it valid". *From:* - #35, round 10. diff --git a/docs/review/lessons/claims-3.md b/docs/review/lessons/claims-3.md index c614bbb8c..516ea95ea 100644 --- a/docs/review/lessons/claims-3.md +++ b/docs/review/lessons/claims-3.md @@ -3,6 +3,16 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-128. Read the host's USB log before interpreting a phone's + "re-enumeration".** The laptop's `journalctl -k` timestamps the gadget + leaving and arriving, and survives a phone whose RAM log is lost: husky + test 23's "re-enumerated after 22 s" was the boot itself. *From:* kernel + #33, round 10. +- **L-129. A CRC "clear" covers only what that register checks.** FTM5's + CRC register is the base check; config and CX errors come as events after a + reset. *Check:* which check covers the calibration area, and whether it + needs a reset, before a plan says a read answers "is it valid". *From:* + #35, round 10. - **L-130. Before putting a bootloader requirement down to the SoC, compare the reference phone's stock images.** Cheetah's stock vbmeta chains `boot` and `init_boot` with the same rollback index and ABL build as lynx, diff --git a/docs/review/lessons/claims.md b/docs/review/lessons/claims.md index 853f96390..4e92ef2f3 100644 --- a/docs/review/lessons/claims.md +++ b/docs/review/lessons/claims.md @@ -179,7 +179,12 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho 2026.11.08 mask the unit; two releases shipped without it while the PR was open. *Check:* `git tag -l 'release-*'` and `ls docs/release-notes` against every release name a diff uses as a boundary. Extends L-774 and L-653. - *From:* #633, round 63, 2026-11-20. + *From:* #633, round 63, 2026-11-20. (Extended 2026-11-25: the mirror case, + kernel tags. #1028 wrote "not in any release tag yet" for its minimum kernel + on 11-24, and `kernel-2026.11.24`, tagged that evening, carries half of it + (#289). Run `git -C tag --contains 'kernel-*'` for each PR + a minimum-kernel line names, at every round the PR stays open. Extends + L-774. *From:* #1028, round 68.) - **L-1046. A comment or upgrade message that names another package's version or behaviour goes stale while the PR waits.** #440's "once omamobile-omarchy 0.1.34 is installed: it writes the same line" described a plan for the 4.5 @@ -406,12 +411,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho package's `depends=`; if neither brings the package, the notes name it as a step before the first boot. Extends L-387, L-402 and L-442. *From:* #861, round 60, 2026-11-17. -- **L-824. A sibling device's plan that explains or contradicts an AGENTS - gotcha about the reference phone is listed for the maintainer, with the run - that would settle it.** #852 traces early RTC wakes to stale S2MPG12 reads - (kernel #201) while AGENTS still calls the 7 Pro's early wakes unexplained, - shows "Wi-Fi stays connected across s2idle" to be a disassociate and rejoin - there, and prices the keep flag at 52 mA. *Check:* `grep -n` AGENTS section - 4 for each mechanism a device plan explains (the PMIC, the driver, the flag) - and name the 7 Pro run in the review's notes. Extends L-492 and L-657. - *From:* #852, round 60, 2026-11-17. diff --git a/docs/review/lessons/corrections.md b/docs/review/lessons/corrections.md index 1ab2a0e73..90e51cdf8 100644 --- a/docs/review/lessons/corrections.md +++ b/docs/review/lessons/corrections.md @@ -3,6 +3,15 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **C-65 (2026-11-25). Round 67 told #998's maintainer that ten Python + wrappers would cost 80 to 100 MB, from 8 to 10 MB RSS each;** the author's + `RssAnon` and `VmSwap` figures gave about 5 MB each, because the + interpreter's shared pages are counted once. *Lesson:* a memory cost we + estimate for a contributor's design is counted as the private (anonymous) + memory each copy adds, not whole-process RSS: `python3 -c 'import time; + time.sleep(60)' & grep -E 'Rss(Anon|File)|Pss' /proc/$!/status + /proc/$!/smaps_rollup` before writing a figure, and quote `Pss` or + `RssAnon`. Extends C-4. *From:* #998, rounds 67 and 68. - **C-64 (2026-11-24). Round 66 told #1009's maintainer that there was no polkit agent on the phone, and offered options on that basis; Omarchy 4.5's shell has one.** `plugins/polkit/PolkitAgent.qml` ships in the signed diff --git a/docs/review/lessons/kernel-2.md b/docs/review/lessons/kernel-2.md index 6eae9fbfb..af5464ff0 100644 --- a/docs/review/lessons/kernel-2.md +++ b/docs/review/lessons/kernel-2.md @@ -3,6 +3,24 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-880. "Nothing changes for existing boards" for a media driver is + checked against the reference phone's overlays and its camera start, not the + board DTS's `status`.** Kernel #272 read as a Fold-only PR, but cheetah's + `DTB_OVERLAYS` enable the IMX386 and both ak7375 nodes and + `omamobile-camera-start` loads the modules at every boot, so an ungated 1 ms + wait in `ak7375_vcm_resume()` and a changed endpoint parse were 7 Pro + changes. *Check:* `git grep -n '' -- + arch/arm64/boot/dts/exynos/google/`, then `grep DTB_OVERLAYS + device/cheetah/device.conf` and the blacklist's comment for who loads the + module. Extends L-49, L-206 and L-348. *From:* kernel #272, round 61, + 2026-11-18. +- **L-879. A binding's `then:` is fed the SoC dtsi's own node.** Kernel + #271's schema demanded a clock name the SoC description doesn't use, so the + "one-line board follow-up" would have failed `dtbs_check`; a hand-made node + with the dtsi's names showed it in a minute. *Check:* copy the dtsi node, + change only the compatible, compile it and `dt-validate` it against the PR's + processed schema. Extends L-102 and L-236. *From:* kernel #271, round 61, + 2026-11-18. - **L-878. A dwc3 glue built on `dwc3_core_probe()` is checked for the runtime PM callbacks the core expects.** The core enables runtime PM itself; a glue with only sleep callbacks leaves a device that userspace can mark @@ -393,23 +411,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho once came without one, while their bodies said "checkpatch clean": it was run on a diff, where the sign-off check can't fire. `tools/kernel-pr-check` checks it now. *From:* kernel #10, #11, #12. -- **L-19. Clock fixes belong in the clock driver's field description, not - in a DT override.** `assigned-clock-parents` on a mux the driver describes - at the wrong bit writes a reserved bit. *Check:* the mux's shift and width - in `clk-gs101.c`/`clk-gs201.c` against Google's CMUCAL `cmucal-sfr.c` - (`SFR_ACCESS(..._SELECT, shift, width, ...)`) for that SoC; CMU_APM is the - ACPM firmware's own clock block, so prefer read-only there. *From:* - kernel #6 (gs101 APM_FUNC: driver bit 4, Google bits [1:0]). -- **L-20. Kconfig `depends on` must cover every bus the driver registers - on.** A driver that calls `spi_register_driver()` unconditionally with - `depends on I2C` fails to link with `CONFIG_SPI=n`; our config has SPI on, - so we'd never see it. *From:* kernel #8. -- **L-21. No wildcard compatibles** (`samsung,s6sy79x`): name the real part. - *From:* kernel #8. -- **L-22. Power domains: follow the upstream series, and leave live - co-processors alone.** A `google,gs101-pd` that differs from André - Draszik's pending upstream series (domains as PMU children, - `domain-supply`, the EL3 DTZPC call around every power change) will - conflict; without the DTZPC call a domain powered back on comes up with - its TrustZone settings reset. Powering off the AoC's domain while the AoC - runs, with no handshake, belongs to the AoC series. *From:* kernel #9. diff --git a/docs/review/lessons/kernel-3.md b/docs/review/lessons/kernel-3.md index 2184a8deb..0293a983b 100644 --- a/docs/review/lessons/kernel-3.md +++ b/docs/review/lessons/kernel-3.md @@ -3,6 +3,26 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-19. Clock fixes belong in the clock driver's field description, not + in a DT override.** `assigned-clock-parents` on a mux the driver describes + at the wrong bit writes a reserved bit. *Check:* the mux's shift and width + in `clk-gs101.c`/`clk-gs201.c` against Google's CMUCAL `cmucal-sfr.c` + (`SFR_ACCESS(..._SELECT, shift, width, ...)`) for that SoC; CMU_APM is the + ACPM firmware's own clock block, so prefer read-only there. *From:* + kernel #6 (gs101 APM_FUNC: driver bit 4, Google bits [1:0]). +- **L-20. Kconfig `depends on` must cover every bus the driver registers + on.** A driver that calls `spi_register_driver()` unconditionally with + `depends on I2C` fails to link with `CONFIG_SPI=n`; our config has SPI on, + so we'd never see it. *From:* kernel #8. +- **L-21. No wildcard compatibles** (`samsung,s6sy79x`): name the real part. + *From:* kernel #8. +- **L-22. Power domains: follow the upstream series, and leave live + co-processors alone.** A `google,gs101-pd` that differs from André + Draszik's pending upstream series (domains as PMU children, + `domain-supply`, the EL3 DTZPC call around every power change) will + conflict; without the DTZPC call a domain powered back on comes up with + its TrustZone settings reset. Powering off the AoC's domain while the AoC + runs, with no handshake, belongs to the AoC series. *From:* kernel #9. - **L-23. Thermal: the hardware trip is the last line of defence.** A driver that sends ACPM's TMU init must show the firmware's hardware thermal trip survives it; blocks with only a 110 °C critical trip need a reason. @@ -411,27 +431,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho arch/arm64/boot/dts` for boards including a touched dtsi; `dt-validate` each on the merge. Extends L-195 and L-309. *From:* kernel #187, round 42, 2026-11-07. -- **L-542. "As Google's driver does" is traced to the end of the vendor - function, including what it does with the answer.** Kernel #194's fallback - follows `syna_tcm_v1_detect()` up to the `IDENTIFY`/`RESET` order, but - `syna_tcm_v1_parse_idinfo()` rejects a zero-length record, so on the unit - that needed the fix the stock driver would fail too: the empty-record path - is our own, and the real difference is probably earlier, in stock's - power-up. *Check:* follow the vendor function past the cited step to its - parse and error returns, and ask which branch the contributor's unit would - take under stock. Extends L-61 and L-77. *From:* kernel #194, round 44, - 2026-11-08. -- **L-543. A panel-ID guard relaxed for a new ID is checked against the byte - the vendor driver keys its commands on, and tested with the commands the - guard blocked.** Google's `tg4c_get_panel_rev()` reads only 0xDB, so kernel - #212's new ID3 gets the same command set; the guard existed for the rate - switch, which the PR hadn't run. *Check:* the vendor driver's - `get_panel_rev`/`read_id` for which ID bytes select commands, then ask for - the guarded paths (rate switch, DPMS) on the new panel. Extends L-117 and - L-211. *From:* kernel #212, round 44, 2026-11-08. -- **L-544. A register map with no public source gets its provenance in the - commit message.** LWIS DTs give a part's address and widths but leave - register sequences to the HAL, so a driver whose registers can't be cited - says how they were found. *Check:* grep Google's GPL tree for each register; - if one is absent, ask. Extends L-61 and L-177. *From:* kernel #213, round - 44, 2026-11-08. diff --git a/docs/review/lessons/kernel-4.md b/docs/review/lessons/kernel-4.md index e0ca0ebaa..6025d7682 100644 --- a/docs/review/lessons/kernel-4.md +++ b/docs/review/lessons/kernel-4.md @@ -3,6 +3,30 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-542. "As Google's driver does" is traced to the end of the vendor + function, including what it does with the answer.** Kernel #194's fallback + follows `syna_tcm_v1_detect()` up to the `IDENTIFY`/`RESET` order, but + `syna_tcm_v1_parse_idinfo()` rejects a zero-length record, so on the unit + that needed the fix the stock driver would fail too: the empty-record path + is our own, and the real difference is probably earlier, in stock's + power-up. *Check:* follow the vendor function past the cited step to its + parse and error returns, and ask which branch the contributor's unit would + take under stock. Extends L-61 and L-77. *From:* kernel #194, round 44, + 2026-11-08. +- **L-543. A panel-ID guard relaxed for a new ID is checked against the byte + the vendor driver keys its commands on, and tested with the commands the + guard blocked.** Google's `tg4c_get_panel_rev()` reads only 0xDB, so kernel + #212's new ID3 gets the same command set; the guard existed for the rate + switch, which the PR hadn't run. *Check:* the vendor driver's + `get_panel_rev`/`read_id` for which ID bytes select commands, then ask for + the guarded paths (rate switch, DPMS) on the new panel. Extends L-117 and + L-211. *From:* kernel #212, round 44, 2026-11-08. +- **L-544. A register map with no public source gets its provenance in the + commit message.** LWIS DTs give a part's address and widths but leave + register sequences to the HAL, so a driver whose registers can't be cited + says how they were found. *Check:* grep Google's GPL tree for each register; + if one is absent, ask. Extends L-61 and L-177. *From:* kernel #213, round + 44, 2026-11-08. - **L-545. A sentence corrected on one board is grepped across every board that copied it.** Kernel #214 fixes akita's "the guard runs before the disks appear" (L-528). The same words are in `zuma-husky.dts` and diff --git a/docs/review/lessons/kernel.md b/docs/review/lessons/kernel.md index 8c624a1bd..f7517f561 100644 --- a/docs/review/lessons/kernel.md +++ b/docs/review/lessons/kernel.md @@ -3,6 +3,16 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-1189. A firmware-written address read through a sliding BAR window is + range-checked before it is read.** Kernel #295 read a trap record at the + address the BCM4389 left in its shared area; `brcmf_pcie_tcm_addr()` moves + the BAR1 window to any address it is given, so an unwritten or corrupt + pointer reaches an arbitrary backplane address, where a powered-down domain + faults, on the reference phone's Wi-Fi. *Check:* for each new + `read_tcm*`/`copy_dev_tomem` whose address came from the device, look for + `brcmf_pcie_valid_ram_range()` (or the bus's equivalent) before it, and read + `tcm_addr()` for whether the window follows the address. Extends L-542 and + L-875. *From:* kernel #295, round 68, 2026-11-25. - **L-1173. A retry loop whose first step is "nothing to do if the state is already good" can skip the cleanup a failed previous attempt left undone.** In kernel #294, an attempt that loaded the model but failed to lock is @@ -399,21 +409,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho with a 7 Pro reason, while the review laptop's logs had no such line; read `git log --format=%B -3 -- ` or `git log -L` for the touched function before writing "another phone's fix". *From:* kernel #290, round 66.) -- **L-880. "Nothing changes for existing boards" for a media driver is - checked against the reference phone's overlays and its camera start, not the - board DTS's `status`.** Kernel #272 read as a Fold-only PR, but cheetah's - `DTB_OVERLAYS` enable the IMX386 and both ak7375 nodes and - `omamobile-camera-start` loads the modules at every boot, so an ungated 1 ms - wait in `ak7375_vcm_resume()` and a changed endpoint parse were 7 Pro - changes. *Check:* `git grep -n '' -- - arch/arm64/boot/dts/exynos/google/`, then `grep DTB_OVERLAYS - device/cheetah/device.conf` and the blacklist's comment for who loads the - module. Extends L-49, L-206 and L-348. *From:* kernel #272, round 61, - 2026-11-18. -- **L-879. A binding's `then:` is fed the SoC dtsi's own node.** Kernel - #271's schema demanded a clock name the SoC description doesn't use, so the - "one-line board follow-up" would have failed `dtbs_check`; a hand-made node - with the dtsi's names showed it in a minute. *Check:* copy the dtsi node, - change only the compatible, compile it and `dt-validate` it against the PR's - processed schema. Extends L-102 and L-236. *From:* kernel #271, round 61, - 2026-11-18. diff --git a/docs/review/lessons/reviews-2.md b/docs/review/lessons/reviews-2.md index 3cf07fa6d..87fb7f932 100644 --- a/docs/review/lessons/reviews-2.md +++ b/docs/review/lessons/reviews-2.md @@ -3,6 +3,43 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-911. A versioned `depends` on a number that is not yet on main is a + claim on that number, re-checked every round and at the squash.** #697's + bridge asks for `omamobile-modem-sit>=0.3.37`, the branch's own number; main + reached 0.3.43 without the feature, so the published package satisfies it. + #866 requires `omamobile-omarchy>=0.1.49`, the version two other open PRs + carry; if the wrong one lands first, the line is met by a package without + the fix, with every `merge-tree` clean. *Check:* for each `'>='` a + PR adds, compare `` with `git show origin/main:packages//version` + and list every open PR that claims `` (`gh pr list --search`); put "the + providing PR merges as `` first" in the merge plan of all of them. + Extends L-639, L-477 and L-426. *From:* #697, round 61, and #866 with #879 + and #610, round 62, 2026-11-18. +- **L-910. When a draft's author hands it over in the thread, the review says + who was asked, whether they answered, and what the other draft must drop.** + #626's hand-over was offered by the maintainer and accepted by its author + four days later, with no word from the other contributor and #374 still + carrying the competing route. *Check:* read both threads for the last + comment of each party after the offer, and put the open acceptance in the + draft comment as a direct question. Extends L-720 and L-688. *From:* #626 + with #374, round 61, 2026-11-18. +- **L-906. A conflict in a defaults table is resolved key by key, because the + PR's side is a snapshot of the table from before main's additions.** #374's + `lib/paths.py` side lacked `follow_screen`, which main added for the 7 Pro's + sleep with the modem up; "take ours" would silently remove a default every + phone reads. *Check:* for a conflict inside a dict of defaults, diff each + side against the merge base and keep every key main added; hand over the + resolved lines. Extends L-184 and L-773. *From:* #374 and #376 against #791, + round 61, 2026-11-18. +- **L-899. A branch a contributor prepares on their fork for after a + dependency merges is read and gated in the round that hears of it, against + the dependency's head.** Kernel #202's side branch for the rebase onto #181 + was on the fork a day before it could be pushed; gating it twice caught a 90 + Hz mode the DECON refuses (L-898) and a clock skip (L-1071) before either + reached the PR or a phone run that would have had to be repeated. *Check:* + `git ls-remote ` for the branch a reply names, fetch it into a review + ref, and run `kernel-pr-check --build` with the dependency's head as BASE. + Extends L-429 and L-196. *From:* kernel #202, rounds 61 to 63, 2026-11-20. - **L-887. A "lands together with X" in our own comment is re-derived when the PR is cut down.** Round 52 tied #204 to #203 because it seeded a descriptor value; the cut-down hook reads nothing from #203, yet the @@ -376,40 +413,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho clone, and one deleted another's `review/pr12` mid-review. *Check:* name refs `review/prN-` (now `review/prN-rR-`, L-127) and pass commit ids to the gates. *From:* kernel #12, round 3. -- **L-44. A staged descriptor's refusal depends on the tooling PRs in - flight.** Tegu added `SOC_COMPATIBLE` while #27 was about to make either - key acceptable, so merging both would have made tegu installable without - the AVB footers its bootloader needs. *Check:* test a staged descriptor - against the heads of open PRs that touch `bin/omamobile` or - `tools/install-phone`. *From:* #24 with #27. -- **L-71. Our requests say which repository each piece goes in.** "A kernel - PR … with an overlay that enables it" put a bring-up overlay in the kernel, - against CONTRIBUTING §6.1 (extends L-31). *From:* issue #3 and kernel #32. -- **L-104. Run `git merge-tree` across every pair of open PRs that touch the - same files,** one contributor's parallel PRs included, and give the merge - order in each review. Look for duplicate mechanisms too (#34's - `ro_gate_clks` beside #40's private read-only gates). Extends L-39 and - L-73. *From:* kernel #34 with #40, #37 with #39. -- **L-105. When a contributor writes a private driver after we asked for - the common helper, find what pushed them off it** (here a PMU check that - can't defer inside the `__init` probe) and answer that, not only the - request again. *From:* kernel #40. -- **L-123. A fix-up commit on a rebase-merged PR is folded in.** Kernel - PRs land commit by commit, so #34's watchdog commit would have landed with - the CG_VAL-only read (a bisect could stop there with the watchdogs - unowned), and #38's driver commit claiming temperature. *Check:* `git - range-diff` for a new commit that only changes lines an earlier commit of - the same PR added; read the earlier messages against the new head. - *From:* kernel #34, #35, #38, round 10. -- **L-124. Before asking again, check whether the contributor's report - crossed our post.** The 23:11Z husky report answered round 9 before round 9 - was posted. *Check:* compare comment times with our post time. *From:* - kernel #33, round 10. -- **L-125. Check a whitespace nit by column, not by counting tabs.** - `expand` the hunk with its neighbours: `google,zumapro.h` gives every name - of that length two tabs. *From:* kernel #34, round 10 (withdrawn nit). -- **L-126. A binding PR's SoC condition can reject another open board's - DTB without a textual conflict.** #13's `soc_compatible: false` for - non-zuma boards fails lynx (gs201 IPOP). *Check:* merge each open board PR - with each open binding PR on the same schema and run `CHECK_DTBS=y`. - Extends L-104. *From:* kernel #43 with #13 and #37. diff --git a/docs/review/lessons/reviews-3.md b/docs/review/lessons/reviews-3.md index 2fca03e5b..f018acb4d 100644 --- a/docs/review/lessons/reviews-3.md +++ b/docs/review/lessons/reviews-3.md @@ -3,6 +3,43 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-44. A staged descriptor's refusal depends on the tooling PRs in + flight.** Tegu added `SOC_COMPATIBLE` while #27 was about to make either + key acceptable, so merging both would have made tegu installable without + the AVB footers its bootloader needs. *Check:* test a staged descriptor + against the heads of open PRs that touch `bin/omamobile` or + `tools/install-phone`. *From:* #24 with #27. +- **L-71. Our requests say which repository each piece goes in.** "A kernel + PR … with an overlay that enables it" put a bring-up overlay in the kernel, + against CONTRIBUTING §6.1 (extends L-31). *From:* issue #3 and kernel #32. +- **L-104. Run `git merge-tree` across every pair of open PRs that touch the + same files,** one contributor's parallel PRs included, and give the merge + order in each review. Look for duplicate mechanisms too (#34's + `ro_gate_clks` beside #40's private read-only gates). Extends L-39 and + L-73. *From:* kernel #34 with #40, #37 with #39. +- **L-105. When a contributor writes a private driver after we asked for + the common helper, find what pushed them off it** (here a PMU check that + can't defer inside the `__init` probe) and answer that, not only the + request again. *From:* kernel #40. +- **L-123. A fix-up commit on a rebase-merged PR is folded in.** Kernel + PRs land commit by commit, so #34's watchdog commit would have landed with + the CG_VAL-only read (a bisect could stop there with the watchdogs + unowned), and #38's driver commit claiming temperature. *Check:* `git + range-diff` for a new commit that only changes lines an earlier commit of + the same PR added; read the earlier messages against the new head. + *From:* kernel #34, #35, #38, round 10. +- **L-124. Before asking again, check whether the contributor's report + crossed our post.** The 23:11Z husky report answered round 9 before round 9 + was posted. *Check:* compare comment times with our post time. *From:* + kernel #33, round 10. +- **L-125. Check a whitespace nit by column, not by counting tabs.** + `expand` the hunk with its neighbours: `google,zumapro.h` gives every name + of that length two tabs. *From:* kernel #34, round 10 (withdrawn nit). +- **L-126. A binding PR's SoC condition can reject another open board's + DTB without a textual conflict.** #13's `soc_compatible: false` for + non-zuma boards fails lynx (gs201 IPOP). *Check:* merge each open board PR + with each open binding PR on the same schema and run `CHECK_DTBS=y`. + Extends L-104. *From:* kernel #43 with #13 and #37. - **L-127. Parallel reviewers suffix refs with their topic, and delete only refs they created.** In round 10 several used `review/prN-r10`, and one deleted (then restored) refs another was using. *Check:* @@ -376,42 +413,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho --format=%ci`) or the log's own stamps, convert every step to UTC, and lay it next to the thread's times before saying what ran before or after what. Extends L-344 and L-557. *From:* #514, round 45, 2026-11-08. -- **L-592. A follow-up report is counted against the full record when it - arrives.** The kernel #187 report described three power-on phases; the plan - written afterwards shows five power-ups, two with the charger in and music - playing. *Check:* when a contributor's plan follows a thread report, - tabulate the plan's write steps and compare the count with the report before - replying to either. Extends L-345 and L-488. *From:* #514 with kernel #187, - round 45, 2026-11-08. -- **L-641. Parallel reviewers work under a per-review topic, in ref names and - in a per-review scratch subfolder, and never glob-delete shared names.** In - round 46 one reviewer deleted others' refs with a `review/*-r46-*` glob and - ran `rm -f merge-*` in the round's shared folder; another lost - `review/pr471-r46-om` mid-review ("om" is too generic) and went on from the - commit id; a third wrote `threads.txt` and `pr-check-main` at the round - folder's top level, where other reviews keep files of the same names. - *Check:* `ls` the round folder and `git branch --list "review/*-"` - first (both empty for a topic unique to the run), write only under - `round//`, delete only by the exact names recorded at creation, - and pass commit ids to every later command. Extends L-43, L-127 and L-364. - *From:* #471, #530 and the round's cleanup, round 46, 2026-11-09. -- **L-642. After a maintainer fixup to a contributor branch, run the touched - package's whole `test/all`, not a subset.** The #371 fixup changed a - version and `depends` line, and that package's own test hard-coded the old - value, so CI failed. *Check:* for each package directory - the fixup touches, `packages/

/test/all` (and `tests/packages` for the - depends graph) on the fixed-up head before pushing it. Extends L-408. - *From:* #371, round 46, 2026-11-09. -- **L-643. A maintainer fixup on a contributor's branch is a new commit on - top, not an amend.** An amended commit that is already on the branch can - only be pushed with a force push, which rewrites the contributor's history. - *Check:* `git merge-base --is-ancestor HEAD` before - every push to someone else's branch; if it fails, redo the change as a new - commit. *From:* #371, round 46, 2026-11-09. -- **L-644. A stacked branch under a squash-merged base is rebased with - `--onto `, and the review says so.** #540 and #541 each carry - #493's four commits; after a squash merge none of them is patch-identical to - main's squash commit, so a plain `git rebase origin/main` replays them and - conflicts. *Check:* when a contributor says "I'll rebase once X merges", - give them `git rebase --onto origin/main `. *From:* #493 - with #540 and #541, round 46, 2026-11-09. diff --git a/docs/review/lessons/reviews-4.md b/docs/review/lessons/reviews-4.md index adfda598d..e0e27b281 100644 --- a/docs/review/lessons/reviews-4.md +++ b/docs/review/lessons/reviews-4.md @@ -3,6 +3,45 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-592. A follow-up report is counted against the full record when it + arrives.** The kernel #187 report described three power-on phases; the plan + written afterwards shows five power-ups, two with the charger in and music + playing. *Check:* when a contributor's plan follows a thread report, + tabulate the plan's write steps and compare the count with the report before + replying to either. Extends L-345 and L-488. *From:* #514 with kernel #187, + round 45, 2026-11-08. +- **L-641. Parallel reviewers work under a per-review topic, in ref names and + in a per-review scratch subfolder, and never glob-delete shared names.** In + round 46 one reviewer deleted others' refs with a `review/*-r46-*` glob and + ran `rm -f merge-*` in the round's shared folder; another lost + `review/pr471-r46-om` mid-review ("om" is too generic) and went on from the + commit id; a third wrote `threads.txt` and `pr-check-main` at the round + folder's top level, where other reviews keep files of the same names. + *Check:* `ls` the round folder and `git branch --list "review/*-"` + first (both empty for a topic unique to the run), write only under + `round//`, delete only by the exact names recorded at creation, + and pass commit ids to every later command. Extends L-43, L-127 and L-364. + *From:* #471, #530 and the round's cleanup, round 46, 2026-11-09. +- **L-642. After a maintainer fixup to a contributor branch, run the touched + package's whole `test/all`, not a subset.** The #371 fixup changed a + version and `depends` line, and that package's own test hard-coded the old + value, so CI failed. *Check:* for each package directory + the fixup touches, `packages/

/test/all` (and `tests/packages` for the + depends graph) on the fixed-up head before pushing it. Extends L-408. + *From:* #371, round 46, 2026-11-09. +- **L-643. A maintainer fixup on a contributor's branch is a new commit on + top, not an amend.** An amended commit that is already on the branch can + only be pushed with a force push, which rewrites the contributor's history. + *Check:* `git merge-base --is-ancestor HEAD` before + every push to someone else's branch; if it fails, redo the change as a new + commit. *From:* #371, round 46, 2026-11-09. +- **L-644. A stacked branch under a squash-merged base is rebased with + `--onto `, and the review says so.** #540 and #541 each carry + #493's four commits; after a squash merge none of them is patch-identical to + main's squash commit, so a plain `git rebase origin/main` replays them and + conflicts. *Check:* when a contributor says "I'll rebase once X merges", + give them `git rebase --onto origin/main `. *From:* #493 + with #540 and #541, round 46, 2026-11-09. - **L-645. An expectation we write into one PR about another PR's head goes stale when that PR is fixed, and the contributor may copy it into a runbook.** Round 45 told #505 "the screen will most likely go dark" because diff --git a/docs/review/lessons/reviews.md b/docs/review/lessons/reviews.md index 411e6d5e4..c8e7ba770 100644 --- a/docs/review/lessons/reviews.md +++ b/docs/review/lessons/reviews.md @@ -3,6 +3,36 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-1183. A gate keyed on a field that another unmerged PR adds leaves the + second PR inert on merge, so its phone run belongs in the first PR's run.** + #996's tile takes its new path only when #995's `radio_choice` is in sitd's + state; merged first it changes nothing, and the 7 Pro gets the new tile the + day #995 lands, under #995's run, which tested only the CLI. *Check:* for a + PR whose new path keys on another open PR's output, `git grep -n '' + origin/main` (empty) and the same in the other head; add the second PR's + user-facing step to the first PR's runbook and order the merges "first, run, + second". Extends L-1038 and L-911. *From:* #996 with #995, round 68, + 2026-11-25. +- **L-1182. A contributor's plan to land a blocker "in a follow-up once this + one is in" is read against the decision that made it a blocker.** On #1001 + the decision was no hotspot whose clients can reach the home network before + the isolation follow-up, and the author's plan put that follow-up after this + PR and bundled it with a new VPN feature. *Check:* for each "follow-up after + this merges" in a reply, find the decision or blocking point it answers and + say whether its order fits; ask for a new feature in the same follow-up to + be split from the blocker. Extends L-519 and L-887. *From:* #1001, round 68, + 2026-11-25. +- **L-1181. A two-dot diff of a shared tool against main, on a branch with an + old base, shows main's own later changes as the PR's.** `git diff + origin/main -- tools/build-packages tests/stage-boot-files` on #1025 + looked like a revert of the rename and of #1033's staging checks; against + the merge base the PR's change was 14 lines. *Check:* for any `tools/` or + `tests/` file a stale branch touches, read `git diff $(git merge-base + origin/main ) -- ` (or `origin/main...`) before + reporting a removed check, and `git merge-tree origin/main ` for what + the merge would keep. Extends L-790 (whose two-dot diff is right only when + the merge base is main's tip) and L-1028. *From:* #1025, round 68 (a near + miss in drafting), 2026-11-25. - **L-1177. When main is merged into a contributor's branch after another bump of the same package, the version file is read again before the squash.** #905 was merged as `omamobile-shell` 0.2.143, but in the merge its version @@ -376,40 +406,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho *Check:* for each "leave out X" in our last comment, grep the new head for X's nouns in code and tests, not only in the file we named. Extends L-183 and L-688. *From:* #582, round 61, 2026-11-18. -- **L-911. A versioned `depends` on a number that is not yet on main is a - claim on that number, re-checked every round and at the squash.** #697's - bridge asks for `omamobile-modem-sit>=0.3.37`, the branch's own number; main - reached 0.3.43 without the feature, so the published package satisfies it. - #866 requires `omamobile-omarchy>=0.1.49`, the version two other open PRs - carry; if the wrong one lands first, the line is met by a package without - the fix, with every `merge-tree` clean. *Check:* for each `'>='` a - PR adds, compare `` with `git show origin/main:packages//version` - and list every open PR that claims `` (`gh pr list --search`); put "the - providing PR merges as `` first" in the merge plan of all of them. - Extends L-639, L-477 and L-426. *From:* #697, round 61, and #866 with #879 - and #610, round 62, 2026-11-18. -- **L-910. When a draft's author hands it over in the thread, the review says - who was asked, whether they answered, and what the other draft must drop.** - #626's hand-over was offered by the maintainer and accepted by its author - four days later, with no word from the other contributor and #374 still - carrying the competing route. *Check:* read both threads for the last - comment of each party after the offer, and put the open acceptance in the - draft comment as a direct question. Extends L-720 and L-688. *From:* #626 - with #374, round 61, 2026-11-18. -- **L-906. A conflict in a defaults table is resolved key by key, because the - PR's side is a snapshot of the table from before main's additions.** #374's - `lib/paths.py` side lacked `follow_screen`, which main added for the 7 Pro's - sleep with the modem up; "take ours" would silently remove a default every - phone reads. *Check:* for a conflict inside a dict of defaults, diff each - side against the merge base and keep every key main added; hand over the - resolved lines. Extends L-184 and L-773. *From:* #374 and #376 against #791, - round 61, 2026-11-18. -- **L-899. A branch a contributor prepares on their fork for after a - dependency merges is read and gated in the round that hears of it, against - the dependency's head.** Kernel #202's side branch for the rebase onto #181 - was on the fork a day before it could be pushed; gating it twice caught a 90 - Hz mode the DECON refuses (L-898) and a clock skip (L-1071) before either - reached the PR or a phone run that would have had to be repeated. *Check:* - `git ls-remote ` for the branch a reply names, fetch it into a review - ref, and run `kernel-pr-check --build` with the dependency's head as BASE. - Extends L-429 and L-196. *From:* kernel #202, rounds 61 to 63, 2026-11-20. diff --git a/docs/review/lessons/safety-2.md b/docs/review/lessons/safety-2.md index 42e8b8137..91e90bf5c 100644 --- a/docs/review/lessons/safety-2.md +++ b/docs/review/lessons/safety-2.md @@ -3,6 +3,41 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-893. An installer PR that removes a fallback is reviewed as a table of + what each kind of computer sends the phone before and after.** For #877 + that table showed one variant removed (the raw `userdata` image from a + computer without `img2simg`) and none added, which made "no phone test + needed" a finding and not an assumption. *Check:* list the host conditions + the changed branch tests, and for each write the exact fastboot lines from + the suite's expected output on main and on the head. Extends L-223 and + L-668. *From:* #877, round 61, 2026-11-18. +- **L-885. A backup "taken after the stock boots, before any Trusty start" is + placed in UTC next to the author's other threads.** #203's reference backup + was dated the night between two days on which the same author's #874 says + the phone's first storage proxy start ran. *Check:* convert the backup's + time with the zone of the author's commits, search the author's open PRs + for dated hardware starts in that window, and ask which came first. + Extends L-591, L-168 and L-559. *From:* #203 with #874, round 61, + 2026-11-18. +- **L-884. An answer to "what do the slot flags read?" is decoded against the + last recorded bytes, and a "successful: yes" where we last agreed "no + marking" is a write to find.** #203's reply gave slot B as successful; the + earlier record and the restore since meant a new mark had to exist: a hand + `devinfo` write three days after "don't write `devinfo` again", disclosed + only when asked. *Check:* lay each reported byte of 0x30-0x37 next to the + previous record with the layout's bits (0x01 unbootable, 0x02 successful, + 0x04 active, 0x08 fastboot-ok), list every bit that moved, ask for each + what wrote it and when, and compare the dates with every hold in the + device issue. Extends L-36, L-359 and L-756. *From:* #203 with issue #143, + round 61, 2026-11-18. +- **L-870. A stop-condition grep that must come back empty is not where an + "expected line" goes.** #835 made the UFS `dme-set` line expected, and the + contributor offered to add it to the `after` helper's grep, whose Pass is + "empty"; that would have failed every later stage. *Check:* when a plan + excuses a log line, read each helper that greps for errors and its Pass + wording; an excused line gets its own counted check beside the helper, + never an entry in the must-be-empty pattern. Extends L-756 and L-183. + *From:* #835, round 61, 2026-11-18. - **L-868. A raised limit carried in a device tree follows the kernel image wherever it boots; a limit raised by a running guard doesn't.** Kernel #267 put husky's 4.45 V float in the battery node; the author's daily kernel, @@ -347,30 +382,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho drivers involved and reset with `echo b > /proc/sysrq-trigger`; if the state under test can source VBUS, a meter check with a stop condition comes before any replug. Extends L-88 and L-81. *From:* #136 with kernel #124, round 28. -- **L-295. `tools/usbc-deadman` is cheetah's MAX77759 tool,** with that - phone's I2C bus and registers built in. For another phone's USB-C step, the - dead-man we name is the generic `systemd-run --on-active=… systemctl reboot` - plus a `tools/phone-ssh --fresh` login. *Check:* any draft that names a - device tool for a step on another phone reads the tool for hard-coded buses, - addresses and compatibles. Extends L-276 and L-81. *From:* #131, round 27. -- **L-294. A regulator that sources VBUS is checked for every path that - enables it outside the Type-C state machine.** Those are DT - `regulator-boot-on` or `regulator-always-on` (the core enables it at - registration), fast role swap (no vSafe0V wait), and state left over from a - warm reset (a boost whose watchdog is off). *Check:* the binding forbids the - two properties, the TCPC sets `vbus_vsafe0v`, and we ask for a warm-reboot - read of the boost before any driver loads. *From:* kernel #124, round 27. -- **L-285. "The approved tool did the write" is checked for what made the - target writable.** `omamobile-bootctl` only opens `devinfo` for writing; the - guard bypass (`--setrw` on the partition and its parent for 30 s) was in the - owner's laptop script around it. An approval that names the tool leaves the - wrapper unreviewed. *Check:* for any write outside the allowlist, find who - lifts the read-only flag and whether that code was reviewed. Extends L-2 and - L-261. *From:* #125, round 26. -- **L-284. A hold on a safety step is checked for what it forces next.** - Telling the 9a owner "don't mark B" without also saying "don't `flash`" - would have led straight to the next fallback, because `flash` unmarks B and - the marking is what keeps the root. *Check:* for any "don't do X until I - decide", walk the owner's next routine step with X missing, and give the - safe interim path (here, `push` only). Extends L-81 and L-158. *From:* #125, - round 26 (a near miss in drafting). diff --git a/docs/review/lessons/safety-3.md b/docs/review/lessons/safety-3.md index a354700ea..4d042cfed 100644 --- a/docs/review/lessons/safety-3.md +++ b/docs/review/lessons/safety-3.md @@ -3,6 +3,33 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-295. `tools/usbc-deadman` is cheetah's MAX77759 tool,** with that + phone's I2C bus and registers built in. For another phone's USB-C step, the + dead-man we name is the generic `systemd-run --on-active=… systemctl reboot` + plus a `tools/phone-ssh --fresh` login. *Check:* any draft that names a + device tool for a step on another phone reads the tool for hard-coded buses, + addresses and compatibles. Extends L-276 and L-81. *From:* #131, round 27. +- **L-294. A regulator that sources VBUS is checked for every path that + enables it outside the Type-C state machine.** Those are DT + `regulator-boot-on` or `regulator-always-on` (the core enables it at + registration), fast role swap (no vSafe0V wait), and state left over from a + warm reset (a boost whose watchdog is off). *Check:* the binding forbids the + two properties, the TCPC sets `vbus_vsafe0v`, and we ask for a warm-reboot + read of the boost before any driver loads. *From:* kernel #124, round 27. +- **L-285. "The approved tool did the write" is checked for what made the + target writable.** `omamobile-bootctl` only opens `devinfo` for writing; the + guard bypass (`--setrw` on the partition and its parent for 30 s) was in the + owner's laptop script around it. An approval that names the tool leaves the + wrapper unreviewed. *Check:* for any write outside the allowlist, find who + lifts the read-only flag and whether that code was reviewed. Extends L-2 and + L-261. *From:* #125, round 26. +- **L-284. A hold on a safety step is checked for what it forces next.** + Telling the 9a owner "don't mark B" without also saying "don't `flash`" + would have led straight to the next fallback, because `flash` unmarks B and + the marking is what keeps the root. *Check:* for any "don't do X until I + decide", walk the owner's next routine step with X missing, and give the + safe interim path (here, `push` only). Extends L-81 and L-158. *From:* #125, + round 26 (a near miss in drafting). - **L-267. A recovery report that says "marked again" is a `devinfo` question.** On the 9a, marking slot B successful is a `devinfo` write, agreed only through `omamobile-bootctl` with a fresh backup and a full @@ -395,33 +422,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho every commit message and the thread for them (the L-324 pattern without the locally-administered exemption), and ask for placeholders and a rotation. Extends L-324 and L-145. *From:* #510, round 45, 2026-11-08. -- **L-564. `reboot-to` (and `bin/omamobile push`) stops no unit, so with the - modem up it leaves `/var/lib/omamobile/modem-up` behind and the next boot - skips the modem once.** *Check:* a runbook or test plan that reboots a phone - with the modem up stops it first (`systemctl stop omamobile-modem`; it takes - about 40 s and ends as "failed" for now, issue #532), or uses `systemctl - reboot`. To keep the modem off for a boot it is `systemctl mask - omamobile-modem-boot.target`, not `/etc/omamobile/modem-hold`, which matters - only after an unclean end. *From:* the 2026-11-08 7 Pro session, issue #532. -- **L-598. A code change that enables a protected-partition write waits until - its evidence is called verified, not provisional.** #436 marked its 3.11 - table "provisional, not a same-state row" in the same push that kept the - build flag enabling 3.11 writes at every boot. *Check:* for a PR that widens - a `devinfo`, GPT or calibration write, grep its notes for "provisional", "not - yet confirmed" and "still needs"; if one applies to the layout, ask for the - enabling switch to come out (or a split) until it goes. Extends L-2, L-36 and - L-527. *From:* #436, round 46, 2026-11-09. -- **L-599. (Provisional: from ABL's documented retry behaviour on 3.15, not - yet seen on 3.11.) A same-state row for slot metadata has no slot boot - between its two reads.** ABL spends a retry when it boots an unmarked slot, - so `getvar` before a boot and Linux's bytes after it disagree on a correct - layout. *Check:* when a row's retry byte is one below `getvar`, ask in which - order the reads were taken, and prescribe the Linux read, then fastboot by - the buttons, then `getvar`. Extends L-36 and L-527. *From:* #436, round 46, - 2026-11-09. -- **L-600. A "read-only check" a contributor reports is also read for what the - phone is running now.** #330's check showed a live session of an unpublished - image with `/sys/block/sda/ro` 0 on a single-slot phone. *Check:* for any - reported `ro` values, read the whole-disk lines first, then ask what booted, - how and since when, before reading the partition lines as a guard result. - Extends L-321 and L-562. *From:* #330, round 46, 2026-11-09. diff --git a/docs/review/lessons/safety-4.md b/docs/review/lessons/safety-4.md index 52aa66c58..51c58c66a 100644 --- a/docs/review/lessons/safety-4.md +++ b/docs/review/lessons/safety-4.md @@ -3,6 +3,36 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-564. `reboot-to` (and `bin/omamobile push`) stops no unit, so with the + modem up it leaves `/var/lib/omamobile/modem-up` behind and the next boot + skips the modem once.** *Check:* a runbook or test plan that reboots a phone + with the modem up stops it first (`systemctl stop omamobile-modem`; it takes + about 40 s and ends as "failed" for now, issue #532), or uses `systemctl + reboot`. To keep the modem off for a boot it is `systemctl mask + omamobile-modem-boot.target`, not `/etc/omamobile/modem-hold`, which matters + only after an unclean end. *From:* the 2026-11-08 7 Pro session, issue #532. +- **L-598. A code change that enables a protected-partition write waits until + its evidence is called verified, not provisional.** #436 marked its 3.11 + table "provisional, not a same-state row" in the same push that kept the + build flag enabling 3.11 writes at every boot. *Check:* for a PR that widens + a `devinfo`, GPT or calibration write, grep its notes for "provisional", "not + yet confirmed" and "still needs"; if one applies to the layout, ask for the + enabling switch to come out (or a split) until it goes. Extends L-2, L-36 and + L-527. *From:* #436, round 46, 2026-11-09. +- **L-599. (Provisional: from ABL's documented retry behaviour on 3.15, not + yet seen on 3.11.) A same-state row for slot metadata has no slot boot + between its two reads.** ABL spends a retry when it boots an unmarked slot, + so `getvar` before a boot and Linux's bytes after it disagree on a correct + layout. *Check:* when a row's retry byte is one below `getvar`, ask in which + order the reads were taken, and prescribe the Linux read, then fastboot by + the buttons, then `getvar`. Extends L-36 and L-527. *From:* #436, round 46, + 2026-11-09. +- **L-600. A "read-only check" a contributor reports is also read for what the + phone is running now.** #330's check showed a live session of an unpublished + image with `/sys/block/sda/ro` 0 on a single-slot phone. *Check:* for any + reported `ro` values, read the whole-disk lines first, then ask what booted, + how and since when, before reading the partition lines as a guard result. + Extends L-321 and L-562. *From:* #330, round 46, 2026-11-09. - **L-601. A guard change that makes a partition writable is checked for a writer in the same tree.** #530 opened enchilada's `boot_b` on `sde`, while `flash` and `push` refuse `android-v0`, `push` and `omamobile-boot-update` diff --git a/docs/review/lessons/safety.md b/docs/review/lessons/safety.md index 1ea8e346b..631c31860 100644 --- a/docs/review/lessons/safety.md +++ b/docs/review/lessons/safety.md @@ -3,6 +3,43 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-1188. A plan that ends every trial with a stock boot makes its backup + older than the next trial by construction.** #1002's backup was taken in a + rescue; v40 and v41 each followed a return to stock on slot A, and a stock + boot rewrites `efs`, `persist` and `modem_userdata`. *Check:* for a bring-up + plan whose return step boots stock, list each trial with the stock boot + before it, and ask which backup or `tools/nv-backup --check` covers the + PMIC, CPM or radio work in it. Extends L-168 and L-1061. *From:* #1002, + round 68, 2026-11-25. +- **L-1187. A device draft's commits are checked for shared paths every round, + because a bring-up branch can pick up a guard change on the way.** #1002's + round-68 head gained `initramfs/init` and `tools/nv-backup` commits under + device-sounding subjects, while the phone ran neither (its rescue used a + stock kernel and a device ramdisk). *Check:* `git diff --stat + origin/main... -- bin tools initramfs rootfs tests packages AGENTS.md + CONTRIBUTING.md` at the start of each round, and for each hit ask whether + the record's boots ran that file. Extends L-1121 and L-1156. *From:* #1002, + round 68, 2026-11-25. +- **L-1186. A bind mount added to a vendor chroot is judged by what every + process in the chroot can then open, not only by what our helper needs.** + #1055 bound the host's whole `/dev/input` read-only so the bridge could find + a rebound touchscreen; read-only still lets Google's HAL and storage proxy + read every key and keyboard. *Check:* `git diff origin/main... -- + 'packages/*/lib/*chroot*' | grep '^+.*bind '`, list for each new bind the + device nodes it exposes and the processes the runner starts in that root, + and offer the narrowest node the helper needs, bound by the host-side + runner. Extends L-571 and L-1126. *From:* #1055, round 68, 2026-11-25. +- **L-1185. A package step that turns on an upstream unit "as upstream's first + run does" is read for the safety condition in that unit's own comment, and + the condition is checked on a phone.** #1054 enables Omarchy's + `bt-agent.service`, whose comment calls auto-accepting pairings safe because + the adapter is pairable only while Omarchy's panel scans; the PR's own + reading on a 9a was `Pairable: yes`. *Check:* `bsdtar -xOf` the signed + package's unit, list each "safe because" clause, and ask for the read-only + state that tests it (here `bluetoothctl show | grep -E + 'Pairable|Discoverable'`, never the full output, which holds the address) on + the reference phone. Extends L-1166 and L-1126. *From:* #1054, round 68, + 2026-11-25. - **L-1162. A driver that starts writing a PMIC function's shadow registers is checked against the vendor's load for any command that commits them to non-volatile memory, and the write table is compared with the vendor's list @@ -380,38 +417,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho 'restricted\|memory-region\|iommus'` in the record and the board node, and ask for the sentence and the gate. Extends L-777 and L-486. *From:* #822 with kernel #255, round 61, 2026-11-18. -- **L-893. An installer PR that removes a fallback is reviewed as a table of - what each kind of computer sends the phone before and after.** For #877 - that table showed one variant removed (the raw `userdata` image from a - computer without `img2simg`) and none added, which made "no phone test - needed" a finding and not an assumption. *Check:* list the host conditions - the changed branch tests, and for each write the exact fastboot lines from - the suite's expected output on main and on the head. Extends L-223 and - L-668. *From:* #877, round 61, 2026-11-18. -- **L-885. A backup "taken after the stock boots, before any Trusty start" is - placed in UTC next to the author's other threads.** #203's reference backup - was dated the night between two days on which the same author's #874 says - the phone's first storage proxy start ran. *Check:* convert the backup's - time with the zone of the author's commits, search the author's open PRs - for dated hardware starts in that window, and ask which came first. - Extends L-591, L-168 and L-559. *From:* #203 with #874, round 61, - 2026-11-18. -- **L-884. An answer to "what do the slot flags read?" is decoded against the - last recorded bytes, and a "successful: yes" where we last agreed "no - marking" is a write to find.** #203's reply gave slot B as successful; the - earlier record and the restore since meant a new mark had to exist: a hand - `devinfo` write three days after "don't write `devinfo` again", disclosed - only when asked. *Check:* lay each reported byte of 0x30-0x37 next to the - previous record with the layout's bits (0x01 unbootable, 0x02 successful, - 0x04 active, 0x08 fastboot-ok), list every bit that moved, ask for each - what wrote it and when, and compare the dates with every hold in the - device issue. Extends L-36, L-359 and L-756. *From:* #203 with issue #143, - round 61, 2026-11-18. -- **L-870. A stop-condition grep that must come back empty is not where an - "expected line" goes.** #835 made the UFS `dme-set` line expected, and the - contributor offered to add it to the `after` helper's grep, whose Pass is - "empty"; that would have failed every later stage. *Check:* when a plan - excuses a log line, read each helper that greps for errors and its Pass - wording; an excused line gets its own counted check beside the helper, - never an entry in the must-be-empty pattern. Extends L-756 and L-183. - *From:* #835, round 61, 2026-11-18. diff --git a/docs/review/lessons/shell-2.md b/docs/review/lessons/shell-2.md index 933145e1b..069b6a1a7 100644 --- a/docs/review/lessons/shell-2.md +++ b/docs/review/lessons/shell-2.md @@ -16,6 +16,14 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho Where the expectation is "gone", ask for a state check (`/proc//stat` field 3 not `Z`); reproduce with `docker run -d sleep 600` and `docker exec`, against `docker run --init`. *From:* #998, round 66.) + (Extended 2026-11-25: shipped code too. #1014's `alive()` watched a + re-parented `wf-recorder` with `kill -0` and waited forever in the job + container, where it was a zombie; the laptop and the phone reap, so every + local run passed. For a shipped script, `git grep -n 'kill -0' -- + 'packages/*/bin' 'packages/*/libexec'` and ask whether the watched process + is the script's own child (`wait` works) or was started by another run with + `setsid ... &`; run the package's test both ways as above. *From:* #1014, + round 68.) - **L-975. A service that exits 0 with "nothing to do" behind a socket a daemon reconnects to at once turns "not ready yet" into a start-limit failure for the boot.** On the 9a, `omamobile-gnss-start` returns while @@ -357,9 +365,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho truncated input, and grep `if get_file` and `2>/dev/null` above each compare. Extends L-161 and L-635. *From:* #623 (after #596) and #625, round 50. -- **L-715. Folding independent once-only steps into one helper makes them all - wait for its precondition.** #581 moved `--no-first-run`, the user agent and - the input-method flags, which need no geometry, into a helper that returns - early when geometry is unknown. *Check:* list each step's own inputs and - confirm an early return for one input skips only the steps that need it. - Extends L-468. *From:* #581, round 50. diff --git a/docs/review/lessons/shell-3.md b/docs/review/lessons/shell-3.md index e2ff181a7..d02c0d4ca 100644 --- a/docs/review/lessons/shell-3.md +++ b/docs/review/lessons/shell-3.md @@ -3,6 +3,12 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-715. Folding independent once-only steps into one helper makes them all + wait for its precondition.** #581 moved `--no-first-run`, the user agent and + the input-method flags, which need no geometry, into a helper that returns + early when geometry is unknown. *Check:* list each step's own inputs and + confirm an early return for one input skips only the steps that need it. + Extends L-468. *From:* #581, round 50. - **L-714. A "learn the user's choice" feature is probed with the sensor at its floor and its ceiling.** The 7 Pro's light sensor is under the panel, so a covered reading is common; one slider move while covered taught #636's @@ -401,11 +407,3 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and ho compute when the first fresh value appears after opening; ask that what the first screen shows goes first. Extends L-235. *From:* #518, round 45, 2026-11-08. -- **L-574. (Provisional, not yet checked on a phone.) A network-sharing - feature is checked against the firewall the image turns on.** #525 makes the - hotspot's dnsmasq start, but firstboot's ufw denies incoming and forwarded - traffic, so a client's DHCP and DNS may never reach it, and the PR's test - (the server side came up) can't show that. *Check:* `git grep -n 'ufw ' - packages/omamobile-firstboot` for the defaults, and ask for one client test - (an address, then a ping out) before a "hotspot works" claim. Confirm or - drop once a client test has run. *From:* #525, round 45, 2026-11-08. diff --git a/docs/review/lessons/shell-4.md b/docs/review/lessons/shell-4.md index 74242c8d3..9106f383c 100644 --- a/docs/review/lessons/shell-4.md +++ b/docs/review/lessons/shell-4.md @@ -3,6 +3,14 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-574. (Provisional, not yet checked on a phone.) A network-sharing + feature is checked against the firewall the image turns on.** #525 makes the + hotspot's dnsmasq start, but firstboot's ufw denies incoming and forwarded + traffic, so a client's DHCP and DNS may never reach it, and the PR's test + (the server side came up) can't show that. *Check:* `git grep -n 'ufw ' + packages/omamobile-firstboot` for the defaults, and ask for one client test + (an address, then a ping out) before a "hotspot works" claim. Confirm or + drop once a client test has run. *From:* #525, round 45, 2026-11-08. - **L-575. A Mesa `pkgrel` bump moves `_omamobile` with it (1.3 with omamobile3, 1.4 with omamobile4).** The marker is what shows in `GL_VERSION` and the libgallium name, so a bump that leaves it reports the old build on diff --git a/docs/review/lessons/shell.md b/docs/review/lessons/shell.md index d15999c86..1f14abcc8 100644 --- a/docs/review/lessons/shell.md +++ b/docs/review/lessons/shell.md @@ -3,6 +3,16 @@ Part of [the review lessons](../LESSONS.md), which says how they are used and how they grow. +- **L-1184. A change that makes a daemon offer a mode it didn't offer before + is read against what upstream's own scripts pick when that mode appears.** + #1045's stand-in driver adds `performance`, and Omarchy's + `omarchy-powerprofiles-set` picks it on AC by default at every session + start; the PR's description and test covered only the owner's explicit + choice. *Check:* `bsdtar -xOf` the pinned package's callers of the daemon + (`grep -a -l ''` over its files), find each default and fallback + branch that names the new value, and walk a fresh session on each power + source with no saved state. Extends L-1166 and L-818. *From:* #1045, round + 68, 2026-11-25. - **L-1171. A test that reads the real machine (a fixed system path, the real `systemctl`) passes on a laptop and fails on a provisioned phone, where `tools/phone-install-package` runs `check()`, and a test that leans on the